<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[23280] branches/3.5: Compress scripts/styles: 3.5.1-alpha-23280.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/23280">23280</a></dd>
<dt>Author</dt> <dd>bumpbot</dd>
<dt>Date</dt> <dd>2013-01-04 22:36:35 +0000 (Fri, 04 Jan 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Compress scripts/styles: 3.5.1-alpha-23280.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branches35wpadminjspostminjs">branches/3.5/wp-admin/js/post.min.js</a></li>
<li><a href="#branches35wpincludescsseditormincss">branches/3.5/wp-includes/css/editor.min.css</a></li>
<li><a href="#branches35wpincludesjsmediaeditorminjs">branches/3.5/wp-includes/js/media-editor.min.js</a></li>
<li><a href="#branches35wpincludesjsmediaviewsminjs">branches/3.5/wp-includes/js/media-views.min.js</a></li>
<li><a href="#branches35wpincludesversionphp">branches/3.5/wp-includes/version.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branches35wpadminjspostminjs"></a>
<div class="modfile"><h4>Modified: branches/3.5/wp-admin/js/post.min.js (23279 => 23280)</h4>
<pre class="diff"><span>
<span class="info">--- branches/3.5/wp-admin/js/post.min.js        2013-01-04 22:34:43 UTC (rev 23279)
+++ branches/3.5/wp-admin/js/post.min.js        2013-01-04 22:36:35 UTC (rev 23280)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var tagBox,commentsBox,editPermalink,makeSlugeditClickable,WPSetThumbnailHTML,WPSetThumbnailID,WPRemoveThumbnail,wptitlehint;function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&amp;&amp;jQuery.inArray(d,c)==-1){c.push(d)}});return c}(function(a){tagBox={clean:function(c){var b=postL10n.comma;if(&quot;,&quot;!==b){c=c.replace(new RegExp(b,&quot;g&quot;),&quot;,&quot;)}c=c.replace(/\s*,\s*/g,&quot;,&quot;).replace(/,+/g,&quot;,&quot;).replace(/[,\s]+$/,&quot;&quot;).replace(/^[,\s]+/,&quot;&quot;);if(&quot;,&quot;!==b){c=c.replace(/,/g,b)}return c},parseTags:function(f){var i=f.id,c=i.split(&quot;-check-num-&quot;)[1],e=a(f).closest(&quot;.tagsdiv&quot;),h=e.find(&quot;.the-tags&quot;),b=postL10n.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.clean(g.join(b)));this.quickClicks(e);return false},quickClicks:function(d){var g=a(&quot;.the-tags&quot;,d),e=a(&quot;.tagche
 cklist&quot;,d),f=a(d).attr(&quot;id&quot;),b,c;if(!g.length){return}c=g.prop(&quot;disabled&quot;);b=g.val().split(postL10n.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a(&quot;&lt;span /&gt;&quot;).text(k);if(!c){h=a('&lt;a id=&quot;'+f+&quot;-check-num-&quot;+i+'&quot; class=&quot;ntdelbutton&quot;&gt;X&lt;/a&gt;');h.click(function(){tagBox.parseTags(this)});j.prepend(&quot;&amp;nbsp;&quot;).prepend(h)}e.append(j)})},flushTags:function(g,c,h){c=c||false;var d=a(&quot;.the-tags&quot;,g),j=a(&quot;input.newtag&quot;,g),b=postL10n.comma,e,i;i=c?a(c).text():j.val();tagsval=d.val();e=tagsval?tagsval+b+i:i;e=this.clean(e);e=array_unique_noempty(e.split(b)).join(b);d.val(e);this.quickClicks(g);if(!c){j.val(&quot;&quot;)}if(&quot;undefined&quot;==typeof(h)){j.focus()}return false},get:function(c){var b=c.substr(c.indexOf(&quot;-&quot;)+1);a.post(ajaxurl,{action:&quot;get-tagcloud&quot;,tax:b},function(e,d){if(0==e||&quot;success&quot;!=d){e=wpAjax.b
 roken}e=a('&lt;p id=&quot;tagcloud-'+b+'&quot; class=&quot;the-tagcloud&quot;&gt;'+e+&quot;&lt;/p&gt;&quot;);a(&quot;a&quot;,e).click(function(){tagBox.flushTags(a(this).closest(&quot;.inside&quot;).children(&quot;.tagsdiv&quot;),this);return false});a(&quot;#&quot;+c).after(e)})},init:function(){var b=this,c=a(&quot;div.ajaxtag&quot;);a(&quot;.tagsdiv&quot;).each(function(){tagBox.quickClicks(this)});a(&quot;input.tagadd&quot;,c).click(function(){b.flushTags(a(this).closest(&quot;.tagsdiv&quot;))});a(&quot;div.taghint&quot;,c).click(function(){a(this).css(&quot;visibility&quot;,&quot;hidden&quot;).parent().siblings(&quot;.newtag&quot;).focus()});a(&quot;input.newtag&quot;,c).blur(function(){if(this.value==&quot;&quot;){a(this).parent().siblings(&quot;.taghint&quot;).css(&quot;visibility&quot;,&quot;&quot;)}}).focus(function(){a(this).parent().siblings(&quot;.taghint&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}).keyup(function(d){if(13==d.which){tagBox.flushTags(a(
 this).closest(&quot;.tagsdiv&quot;));return false}}).keypress(function(d){if(13==d.which){d.preventDefault();return false}}).each(function(){var d=a(this).closest(&quot;div.tagsdiv&quot;).attr(&quot;id&quot;);a(this).suggest(ajaxurl+&quot;?action=ajax-tag-search&amp;tax=&quot;+d,{delay:500,minchars:2,multiple:true,multipleSep:postL10n.comma+&quot; &quot;})});a(&quot;#post&quot;).submit(function(){a(&quot;div.tagsdiv&quot;).each(function(){tagBox.flushTags(this,false,1)})});a(&quot;a.tagcloud-link&quot;).click(function(){if(!a(&quot;.the-tagcloud&quot;).length){tagBox.get(a(this).attr(&quot;id&quot;))}a(this).siblings(&quot;.the-tagcloud&quot;).toggle();return false})}};commentsBox={st:0,get:function(d,c){var b=this.st,e;if(!c){c=20}this.st+=c;this.total=d;a(&quot;#commentsdiv .spinner&quot;).show();e={action:&quot;get-comments&quot;,mode:&quot;single&quot;,_ajax_nonce:a(&quot;#add_comment_nonce&quot;).val(),p:a(&quot;#post_ID&quot;).val(),start:b,number:c};a.post(ajaxurl,e,f
 unction(f){f=wpAjax.parseAjaxResponse(f);a(&quot;#commentsdiv .widefat&quot;).show();a(&quot;#commentsdiv .spinner&quot;).hide();if(&quot;object&quot;==typeof f&amp;&amp;f.responses[0]){a(&quot;#the-comment-list&quot;).append(f.responses[0].data);theList=theExtraList=null;a(&quot;a[className*=':']&quot;).unbind();if(commentsBox.st&gt;commentsBox.total){a(&quot;#show-comments&quot;).hide()}else{a(&quot;#show-comments&quot;).show().children(&quot;a&quot;).html(postL10n.showcomm)}return}else{if(1==f){a(&quot;#show-comments&quot;).html(postL10n.endcomm);return}}a(&quot;#the-comment-list&quot;).append('&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;'+wpAjax.broken+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)});return false}};WPSetThumbnailHTML=function(b){a(&quot;.inside&quot;,&quot;#postimagediv&quot;).html(b)};WPSetThumbnailID=function(c){var b=a('input[value=&quot;_thumbnail_id&quot;]',&quot;#list-table&quot;);if(b.size()&gt;0){a(&quot;#meta\\[&quot;+b.attr(&quot;id&quot;).match(/[0-9]+/)+&
 quot;\\]\\[value\\]&quot;).text(c)}};WPRemoveThumbnail=function(b){a.post(ajaxurl,{action:&quot;set-post-thumbnail&quot;,post_id:a(&quot;#post_ID&quot;).val(),thumbnail_id:-1,_ajax_nonce:b,cookie:encodeURIComponent(document.cookie)},function(c){if(c==&quot;0&quot;){alert(setPostThumbnailL10n.error)}else{WPSetThumbnailHTML(c)}})}})(jQuery);jQuery(document).ready(function(f){var b,a,g=&quot;&quot;,e=0,h=f(&quot;#content&quot;);postboxes.add_postbox_toggles(pagenow);if(f(&quot;#tagsdiv-post_tag&quot;).length){tagBox.init()}else{f(&quot;#side-sortables, #normal-sortables, #advanced-sortables&quot;).children(&quot;div.postbox&quot;).each(function(){if(this.id.indexOf(&quot;tagsdiv-&quot;)===0){tagBox.init();return false}})}f(&quot;.categorydiv&quot;).each(function(){var n=f(this).attr(&quot;id&quot;),j=false,m,o,l,i,k;l=n.split(&quot;-&quot;);l.shift();i=l.join(&quot;-&quot;);k=i+&quot;_tab&quot;;if(i==&quot;category&quot;){k=&quot;cats&quot;}f(&quot;a&quot;,&quot;#&quot;+i+&quot
 ;-tabs&quot;).click(function(){var p=f(this).attr(&quot;href&quot;);f(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);f(&quot;#&quot;+i+&quot;-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();f(p).show();if(&quot;#&quot;+i+&quot;-all&quot;==p){deleteUserSetting(k)}else{setUserSetting(k,&quot;pop&quot;)}return false});if(getUserSetting(k)){f('a[href=&quot;#'+i+'-pop&quot;]',&quot;#&quot;+i+&quot;-tabs&quot;).click()}f(&quot;#new&quot;+i).one(&quot;focus&quot;,function(){f(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});f(&quot;#new&quot;+i).keypress(function(p){if(13===p.keyCode){p.preventDefault();f(&quot;#&quot;+i+&quot;-add-submit&quot;).click()}});f(&quot;#&quot;+i+&quot;-add-submit&quot;).click(function(){f(&quot;#new&quot;+i).focus()});m=function(){if(j){return}j=true;var p=jQuery(this),r=p.is(&quot;:checked&quot;),q=p.val().toString();f(&quot;#in-&quot;+i+&quot;-&quot;+q+&quot;, #in-&quot;+i+&quot;-
 category-&quot;+q).prop(&quot;checked&quot;,r);j=false};catAddBefore=function(p){if(!f(&quot;#new&quot;+i).val()){return false}p.data+=&quot;&amp;&quot;+f(&quot;:checked&quot;,&quot;#&quot;+i+&quot;checklist&quot;).serialize();f(&quot;#&quot;+i+&quot;-add-submit&quot;).prop(&quot;disabled&quot;,true);return p};o=function(u,t){var q,p=f(&quot;#new&quot;+i+&quot;_parent&quot;);f(&quot;#&quot;+i+&quot;-add-submit&quot;).prop(&quot;disabled&quot;,false);if(&quot;undefined&quot;!=t.parsed.responses[0]&amp;&amp;(q=t.parsed.responses[0].supplemental.newcat_parent)){p.before(q);p.remove()}};f(&quot;#&quot;+i+&quot;checklist&quot;).wpList({alt:&quot;&quot;,response:i+&quot;-ajax-response&quot;,addBefore:catAddBefore,addAfter:o});f(&quot;#&quot;+i+&quot;-add-toggle&quot;).click(function(){f(&quot;#&quot;+i+&quot;-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);f('a[href=&quot;#'+i+'-all&quot;]',&quot;#&quot;+i+&quot;-tabs&quot;).click();f(&quot;#new&quot;+i).focus();return fa
 lse});f(&quot;#&quot;+i+'checklist li.popular-category input[type=&quot;checkbox&quot;], #'+i+'checklist-pop input[type=&quot;checkbox&quot;]').live(&quot;click&quot;,function(){var p=f(this),r=p.is(&quot;:checked&quot;),q=p.val();if(q&amp;&amp;p.parents(&quot;#taxonomy-&quot;+i).length){f(&quot;#in-&quot;+i+&quot;-&quot;+q+&quot;, #in-popular-&quot;+i+&quot;-&quot;+q).prop(&quot;checked&quot;,r)}})});if(f(&quot;#postcustom&quot;).length){f(&quot;#the-list&quot;).wpList({addAfter:function(i,j){f(&quot;table#list-table&quot;).show()},addBefore:function(i){i.data+=&quot;&amp;post_id=&quot;+f(&quot;#post_ID&quot;).val();return i}})}if(f(&quot;#submitdiv&quot;).length){b=f(&quot;#timestamp&quot;).html();a=f(&quot;#post-visibility-display&quot;).html();function d(){var i=f(&quot;#post-visibility-select&quot;);if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).prop(&quot;checked&quot;,false);f(&quot;#sticky-span&quot;).hide()}else{f(&quot;#st
 icky-span&quot;).show()}if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;password&quot;){f(&quot;#password-span&quot;).hide()}else{f(&quot;#password-span&quot;).show()}}function c(){if(!f(&quot;#timestampdiv&quot;).length){return true}var p,q,j,s,r=f(&quot;#post_status&quot;),k=f('option[value=&quot;publish&quot;]',r),i=f(&quot;#aa&quot;).val(),n=f(&quot;#mm&quot;).val(),o=f(&quot;#jj&quot;).val(),m=f(&quot;#hh&quot;).val(),l=f(&quot;#mn&quot;).val();p=new Date(i,n-1,o,m,l);q=new Date(f(&quot;#hidden_aa&quot;).val(),f(&quot;#hidden_mm&quot;).val()-1,f(&quot;#hidden_jj&quot;).val(),f(&quot;#hidden_hh&quot;).val(),f(&quot;#hidden_mn&quot;).val());j=new Date(f(&quot;#cur_aa&quot;).val(),f(&quot;#cur_mm&quot;).val()-1,f(&quot;#cur_jj&quot;).val(),f(&quot;#cur_hh&quot;).val(),f(&quot;#cur_mn&quot;).val());if(p.getFullYear()!=i||(1+p.getMonth())!=n||p.getDate()!=o||p.getMinutes()!=l){f(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&quot;);re
 turn false}else{f(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}if(p&gt;j&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){s=postL10n.publishOnFuture;f(&quot;#publish&quot;).val(postL10n.schedule)}else{if(p&lt;=j&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){s=postL10n.publishOn;f(&quot;#publish&quot;).val(postL10n.publish)}else{s=postL10n.publishOnPast;f(&quot;#publish&quot;).val(postL10n.update)}}if(q.toUTCString()==p.toUTCString()){f(&quot;#timestamp&quot;).html(b)}else{f(&quot;#timestamp&quot;).html(s+&quot; &lt;b&gt;&quot;+f('option[value=&quot;'+f(&quot;#mm&quot;).val()+'&quot;]',&quot;#mm&quot;).text()+&quot; &quot;+o+&quot;, &quot;+i+&quot; @ &quot;+m+&quot;:&quot;+l+&quot;&lt;/b&gt; &quot;)}if(f(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){f(&quot;#publish&quot;).val(postL10n.update);if(k.length==0){r.append('&lt;opti
 on value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{k.html(postL10n.privatelyPublished)}f('option[value=&quot;publish&quot;]',r).prop(&quot;selected&quot;,true);f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if(f(&quot;#original_post_status&quot;).val()==&quot;future&quot;||f(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(k.length){k.remove();r.val(f(&quot;#hidden_post_status&quot;).val())}}else{k.html(postL10n.published)}if(r.is(&quot;:hidden&quot;)){f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}}f(&quot;#post-status-display&quot;).html(f(&quot;option:selected&quot;,r).text());if(f(&quot;option:selected&quot;,r).val()==&quot;private&quot;||f(&quot;option:selected&quot;,r).val()==&quot;publish&quot;){f(&quot;#save-post&quot;).hide()}else{f(&quot;#save-post&quot;).show();if(f(&quot;option:selected&quot;,r).val()==&quot;pending&quot;){f(&quot;#save-pos
 t&quot;).show().val(postL10n.savePending)}else{f(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}return true}f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if(f(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){d();f(&quot;#post-visibility-select&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){f(&quot;#post-visibility-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#visibility-radio-&quot;+f(&quot;#hidden-post-visibility&quot;).val()).prop(&quot;checked&quot;,true);f(&quot;#post_password&quot;).val(f(&quot;#hidden_post_password&quot;).val());f(&quot;#sticky&quot;).prop(&quot;checked&quot;,f(&quot;#hidden-post-sticky&quot;).prop(&quot;checked&quot;));f(&quot;#post-visibility-display&quot;).html(a);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();return false});f(&quot;.save-post-visibility&quot;,&quot;#pos
 t-visibility-select&quot;).click(function(){var i=f(&quot;#post-visibility-select&quot;);i.slideUp(&quot;fast&quot;);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).prop(&quot;checked&quot;,false)}if(true==f(&quot;#sticky&quot;).prop(&quot;checked&quot;)){g=&quot;Sticky&quot;}else{g=&quot;&quot;}f(&quot;#post-visibility-display&quot;).html(postL10n[f(&quot;input:radio:checked&quot;,i).val()+g]);return false});f(&quot;input:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){d()});f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if(f(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){f(&quot;#timestampdiv&quot;).slideDown(&quot;fast&quot;);f(&quot;#mm&quot;).focus();f(this).hide()}return false});f(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){f(&quot;#timestampdiv&quot;).slideUp(&quot;fast&
 quot;);f(&quot;#mm&quot;).val(f(&quot;#hidden_mm&quot;).val());f(&quot;#jj&quot;).val(f(&quot;#hidden_jj&quot;).val());f(&quot;#aa&quot;).val(f(&quot;#hidden_aa&quot;).val());f(&quot;#hh&quot;).val(f(&quot;#hidden_hh&quot;).val());f(&quot;#mn&quot;).val(f(&quot;#hidden_mn&quot;).val());f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});f(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){if(c()){f(&quot;#timestampdiv&quot;).slideUp(&quot;fast&quot;);f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show()}return false});f(&quot;#post&quot;).on(&quot;submit&quot;,function(i){if(!c()){i.preventDefault();f(&quot;#timestampdiv&quot;).show();f(&quot;#publishing-action .spinner&quot;).hide();f(&quot;#publish&quot;).prop(&quot;disabled&quot;,false).removeClass(&quot;button-primary-disabled&quot;);return false}});f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(function
 (){if(f(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){f(&quot;#post-status-select&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false});f(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#post_status&quot;).val(f(&quot;#hidden_post_status&quot;).val());f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false})}if(f(&quot;#edit-slug-box&quot;).length){editPermalink=function(j){var k,n=0,m=f(&quot;#editable-post-name&quot;),o=m.html(),r=f(&quot;#post_name&quot;),s=r.val(),p=f(&quot;#edit-slug-buttons&quot;),q=p.html(),l=f(&quot;#editable-post-name-full&quot;).html();f(&qu
 ot;#view-post-btn&quot;).hide();p.html('&lt;a href=&quot;#&quot; class=&quot;save button button-small&quot;&gt;'+postL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+postL10n.cancel+&quot;&lt;/a&gt;&quot;);p.children(&quot;.save&quot;).click(function(){var i=m.children(&quot;input&quot;).val();if(i==f(&quot;#editable-post-name-full&quot;).text()){return f(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click()}f.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:j,new_slug:i,new_title:f(&quot;#title&quot;).val(),samplepermalinknonce:f(&quot;#samplepermalinknonce&quot;).val()},function(t){f(&quot;#edit-slug-box&quot;).html(t);p.html(q);r.val(i);makeSlugeditClickable();f(&quot;#view-post-btn&quot;).show()});return false});f(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){f(&quot;#view-post-btn&quot;).show();m.html(o);p.html(q);r.val(s);return false});for(k=0;k&lt;l.length;++k){if(&quot;%&quot;==l.charAt(k)){n++}}slug_va
 lue=(n&gt;l.length/4)?&quot;&quot;:l;m.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children(&quot;input&quot;).keypress(function(t){var i=t.keyCode||0;if(13==i){p.children(&quot;.save&quot;).click();return false}if(27==i){p.children(&quot;.cancel&quot;).click();return false}r.val(this.value)}).focus()};makeSlugeditClickable=function(){f(&quot;#editable-post-name&quot;).click(function(){f(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}if(typeof(wpWordCount)!=&quot;undefined&quot;){f(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()]);h.keyup(function(j){var i=j.keyCode||j.charCode;if(i==e){return true}if(13==i||8==e||46==e){f(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()])}e=i;return true})}wptitlehint=function(k){k=k||&quot;title&quot;;var i=f(&quot;#&quot;+k),j=f(&quot;#&quot;+k+&quot;-prompt-text&quot;);if(i.val()==&quot;&quot;){j.remov
 eClass(&quot;screen-reader-text&quot;)}j.click(function(){f(this).addClass(&quot;screen-reader-text&quot;);i.focus()});i.blur(function(){if(this.value==&quot;&quot;){j.removeClass(&quot;screen-reader-text&quot;)}}).focus(function(){j.addClass(&quot;screen-reader-text&quot;)}).keydown(function(l){j.addClass(&quot;screen-reader-text&quot;);f(this).unbind(l)})};wptitlehint();(function(){var i=f(&quot;textarea#content&quot;),l=null,j;if(&quot;ontouchstart&quot; in window){return}function k(n){i.height(Math.max(50,l+n.pageY)+&quot;px&quot;);return false}function m(o){var n=f(&quot;#wp-content-editor-container&quot;).height();i.focus();f(document).unbind(&quot;mousemove&quot;,k).unbind(&quot;mouseup&quot;,m);n-=33;if(n&gt;50&amp;&amp;n&lt;5000&amp;&amp;n!=getUserSetting(&quot;ed_size&quot;)){setUserSetting(&quot;ed_size&quot;,n)}}i.css(&quot;resize&quot;,&quot;none&quot;);j=f('&lt;div id=&quot;content-resize-handle&quot;&gt;&lt;br&gt;&lt;/div&gt;');f(&quot;#wp-content-wrap&quot;).
 append(j);j.on(&quot;mousedown&quot;,function(n){l=i.height()-n.pageY;i.blur();f(document).mousemove(k).mouseup(m);return false})})();if(typeof(tinymce)!=&quot;undefined&quot;){tinymce.onAddEditor.add(function(i,j){if(j.id!=&quot;content&quot;||tinymce.isIOS5){return}j.onLoadContent.add(function(l,n){var p,k=parseInt(f(&quot;#content&quot;).css(&quot;height&quot;),10),m=f(&quot;#content_tbl tr.mceFirst&quot;).height();if(k&amp;&amp;!isNaN(k)&amp;&amp;m){p=(k-m)+12;if(p&gt;50&amp;&amp;p&lt;5000){f(&quot;#content_tbl&quot;).css(&quot;height&quot;,&quot;&quot;);f(&quot;#content_ifr&quot;).css(&quot;height&quot;,p+&quot;px&quot;)}}});j.onSaveContent.add(function(l,m){var k=f(&quot;#content_tbl&quot;).height();if(k&amp;&amp;k&gt;83&amp;&amp;k&lt;5000){k-=33;f(&quot;#content&quot;).css(&quot;height&quot;,k+&quot;px&quot;)}});j.onPostRender.add(function(){f(&quot;#content_resize&quot;).on(&quot;mousedown.wp-mce-resize&quot;,function(k){f(document).on(&quot;mouseup.wp-mce-resize&quo
 t;,function(m){var l=f(&quot;#wp-content-editor-container&quot;).height();l-=33;if(l&gt;50&amp;&amp;l&lt;5000&amp;&amp;l!=getUserSetting(&quot;ed_size&quot;)){setUserSetting(&quot;ed_size&quot;,l)}f(document).off(&quot;mouseup.wp-mce-resize&quot;)})})})})}});
</del><span class="cx">\ No newline at end of file
</span><ins>+var tagBox,commentsBox,editPermalink,makeSlugeditClickable,WPSetThumbnailHTML,WPSetThumbnailID,WPRemoveThumbnail,wptitlehint;function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&amp;&amp;jQuery.inArray(d,c)==-1){c.push(d)}});return c}(function(a){tagBox={clean:function(c){var b=postL10n.comma;if(&quot;,&quot;!==b){c=c.replace(new RegExp(b,&quot;g&quot;),&quot;,&quot;)}c=c.replace(/\s*,\s*/g,&quot;,&quot;).replace(/,+/g,&quot;,&quot;).replace(/[,\s]+$/,&quot;&quot;).replace(/^[,\s]+/,&quot;&quot;);if(&quot;,&quot;!==b){c=c.replace(/,/g,b)}return c},parseTags:function(f){var i=f.id,c=i.split(&quot;-check-num-&quot;)[1],e=a(f).closest(&quot;.tagsdiv&quot;),h=e.find(&quot;.the-tags&quot;),b=postL10n.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.clean(g.join(b)));this.quickClicks(e);return false},quickClicks:function(d){var g=a(&quot;.the-tags&quot;,d),e=a(&quot;.tagche
 cklist&quot;,d),f=a(d).attr(&quot;id&quot;),b,c;if(!g.length){return}c=g.prop(&quot;disabled&quot;);b=g.val().split(postL10n.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a(&quot;&lt;span /&gt;&quot;).text(k);if(!c){h=a('&lt;a id=&quot;'+f+&quot;-check-num-&quot;+i+'&quot; class=&quot;ntdelbutton&quot;&gt;X&lt;/a&gt;');h.click(function(){tagBox.parseTags(this)});j.prepend(&quot;&amp;nbsp;&quot;).prepend(h)}e.append(j)})},flushTags:function(g,c,h){c=c||false;var d=a(&quot;.the-tags&quot;,g),j=a(&quot;input.newtag&quot;,g),b=postL10n.comma,e,i;i=c?a(c).text():j.val();tagsval=d.val();e=tagsval?tagsval+b+i:i;e=this.clean(e);e=array_unique_noempty(e.split(b)).join(b);d.val(e);this.quickClicks(g);if(!c){j.val(&quot;&quot;)}if(&quot;undefined&quot;==typeof(h)){j.focus()}return false},get:function(c){var b=c.substr(c.indexOf(&quot;-&quot;)+1);a.post(ajaxurl,{action:&quot;get-tagcloud&quot;,tax:b},function(e,d){if(0==e||&quot;success&quot;!=d){e=wpAjax.b
 roken}e=a('&lt;p id=&quot;tagcloud-'+b+'&quot; class=&quot;the-tagcloud&quot;&gt;'+e+&quot;&lt;/p&gt;&quot;);a(&quot;a&quot;,e).click(function(){tagBox.flushTags(a(this).closest(&quot;.inside&quot;).children(&quot;.tagsdiv&quot;),this);return false});a(&quot;#&quot;+c).after(e)})},init:function(){var b=this,c=a(&quot;div.ajaxtag&quot;);a(&quot;.tagsdiv&quot;).each(function(){tagBox.quickClicks(this)});a(&quot;input.tagadd&quot;,c).click(function(){b.flushTags(a(this).closest(&quot;.tagsdiv&quot;))});a(&quot;div.taghint&quot;,c).click(function(){a(this).css(&quot;visibility&quot;,&quot;hidden&quot;).parent().siblings(&quot;.newtag&quot;).focus()});a(&quot;input.newtag&quot;,c).blur(function(){if(this.value==&quot;&quot;){a(this).parent().siblings(&quot;.taghint&quot;).css(&quot;visibility&quot;,&quot;&quot;)}}).focus(function(){a(this).parent().siblings(&quot;.taghint&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}).keyup(function(d){if(13==d.which){tagBox.flushTags(a(
 this).closest(&quot;.tagsdiv&quot;));return false}}).keypress(function(d){if(13==d.which){d.preventDefault();return false}}).each(function(){var d=a(this).closest(&quot;div.tagsdiv&quot;).attr(&quot;id&quot;);a(this).suggest(ajaxurl+&quot;?action=ajax-tag-search&amp;tax=&quot;+d,{delay:500,minchars:2,multiple:true,multipleSep:postL10n.comma+&quot; &quot;})});a(&quot;#post&quot;).submit(function(){a(&quot;div.tagsdiv&quot;).each(function(){tagBox.flushTags(this,false,1)})});a(&quot;a.tagcloud-link&quot;).click(function(){tagBox.get(a(this).attr(&quot;id&quot;));a(this).unbind().click(function(){a(this).siblings(&quot;.the-tagcloud&quot;).toggle();return false});return false})}};commentsBox={st:0,get:function(d,c){var b=this.st,e;if(!c){c=20}this.st+=c;this.total=d;a(&quot;#commentsdiv .spinner&quot;).show();e={action:&quot;get-comments&quot;,mode:&quot;single&quot;,_ajax_nonce:a(&quot;#add_comment_nonce&quot;).val(),p:a(&quot;#post_ID&quot;).val(),start:b,number:c};a.post(aja
 xurl,e,function(f){f=wpAjax.parseAjaxResponse(f);a(&quot;#commentsdiv .widefat&quot;).show();a(&quot;#commentsdiv .spinner&quot;).hide();if(&quot;object&quot;==typeof f&amp;&amp;f.responses[0]){a(&quot;#the-comment-list&quot;).append(f.responses[0].data);theList=theExtraList=null;a(&quot;a[className*=':']&quot;).unbind();if(commentsBox.st&gt;commentsBox.total){a(&quot;#show-comments&quot;).hide()}else{a(&quot;#show-comments&quot;).show().children(&quot;a&quot;).html(postL10n.showcomm)}return}else{if(1==f){a(&quot;#show-comments&quot;).html(postL10n.endcomm);return}}a(&quot;#the-comment-list&quot;).append('&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;'+wpAjax.broken+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)});return false}};WPSetThumbnailHTML=function(b){a(&quot;.inside&quot;,&quot;#postimagediv&quot;).html(b)};WPSetThumbnailID=function(c){var b=a('input[value=&quot;_thumbnail_id&quot;]',&quot;#list-table&quot;);if(b.size()&gt;0){a(&quot;#meta\\[&quot;+b.attr(&quot;id&quot;).match(/[0
 -9]+/)+&quot;\\]\\[value\\]&quot;).text(c)}};WPRemoveThumbnail=function(b){a.post(ajaxurl,{action:&quot;set-post-thumbnail&quot;,post_id:a(&quot;#post_ID&quot;).val(),thumbnail_id:-1,_ajax_nonce:b,cookie:encodeURIComponent(document.cookie)},function(c){if(c==&quot;0&quot;){alert(setPostThumbnailL10n.error)}else{WPSetThumbnailHTML(c)}})}})(jQuery);jQuery(document).ready(function(f){var b,a,g=&quot;&quot;,e=0,h=f(&quot;#content&quot;);postboxes.add_postbox_toggles(pagenow);if(f(&quot;#tagsdiv-post_tag&quot;).length){tagBox.init()}else{f(&quot;#side-sortables, #normal-sortables, #advanced-sortables&quot;).children(&quot;div.postbox&quot;).each(function(){if(this.id.indexOf(&quot;tagsdiv-&quot;)===0){tagBox.init();return false}})}f(&quot;.categorydiv&quot;).each(function(){var n=f(this).attr(&quot;id&quot;),j=false,m,o,l,i,k;l=n.split(&quot;-&quot;);l.shift();i=l.join(&quot;-&quot;);k=i+&quot;_tab&quot;;if(i==&quot;category&quot;){k=&quot;cats&quot;}f(&quot;a&quot;,&quot;#&quot;
 +i+&quot;-tabs&quot;).click(function(){var p=f(this).attr(&quot;href&quot;);f(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);f(&quot;#&quot;+i+&quot;-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();f(p).show();if(&quot;#&quot;+i+&quot;-all&quot;==p){deleteUserSetting(k)}else{setUserSetting(k,&quot;pop&quot;)}return false});if(getUserSetting(k)){f('a[href=&quot;#'+i+'-pop&quot;]',&quot;#&quot;+i+&quot;-tabs&quot;).click()}f(&quot;#new&quot;+i).one(&quot;focus&quot;,function(){f(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});f(&quot;#new&quot;+i).keypress(function(p){if(13===p.keyCode){p.preventDefault();f(&quot;#&quot;+i+&quot;-add-submit&quot;).click()}});f(&quot;#&quot;+i+&quot;-add-submit&quot;).click(function(){f(&quot;#new&quot;+i).focus()});m=function(){if(j){return}j=true;var p=jQuery(this),r=p.is(&quot;:checked&quot;),q=p.val().toString();f(&quot;#in-&quot;+i+&quot;-&quot;+q+&quot;, #in-&quot;+i
 +&quot;-category-&quot;+q).prop(&quot;checked&quot;,r);j=false};catAddBefore=function(p){if(!f(&quot;#new&quot;+i).val()){return false}p.data+=&quot;&amp;&quot;+f(&quot;:checked&quot;,&quot;#&quot;+i+&quot;checklist&quot;).serialize();f(&quot;#&quot;+i+&quot;-add-submit&quot;).prop(&quot;disabled&quot;,true);return p};o=function(u,t){var q,p=f(&quot;#new&quot;+i+&quot;_parent&quot;);f(&quot;#&quot;+i+&quot;-add-submit&quot;).prop(&quot;disabled&quot;,false);if(&quot;undefined&quot;!=t.parsed.responses[0]&amp;&amp;(q=t.parsed.responses[0].supplemental.newcat_parent)){p.before(q);p.remove()}};f(&quot;#&quot;+i+&quot;checklist&quot;).wpList({alt:&quot;&quot;,response:i+&quot;-ajax-response&quot;,addBefore:catAddBefore,addAfter:o});f(&quot;#&quot;+i+&quot;-add-toggle&quot;).click(function(){f(&quot;#&quot;+i+&quot;-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);f('a[href=&quot;#'+i+'-all&quot;]',&quot;#&quot;+i+&quot;-tabs&quot;).click();f(&quot;#new&quot;+i).focus();r
 eturn false});f(&quot;#&quot;+i+'checklist li.popular-category input[type=&quot;checkbox&quot;], #'+i+'checklist-pop input[type=&quot;checkbox&quot;]').live(&quot;click&quot;,function(){var p=f(this),r=p.is(&quot;:checked&quot;),q=p.val();if(q&amp;&amp;p.parents(&quot;#taxonomy-&quot;+i).length){f(&quot;#in-&quot;+i+&quot;-&quot;+q+&quot;, #in-popular-&quot;+i+&quot;-&quot;+q).prop(&quot;checked&quot;,r)}})});if(f(&quot;#postcustom&quot;).length){f(&quot;#the-list&quot;).wpList({addAfter:function(i,j){f(&quot;table#list-table&quot;).show()},addBefore:function(i){i.data+=&quot;&amp;post_id=&quot;+f(&quot;#post_ID&quot;).val();return i}})}if(f(&quot;#submitdiv&quot;).length){b=f(&quot;#timestamp&quot;).html();a=f(&quot;#post-visibility-display&quot;).html();function d(){var i=f(&quot;#post-visibility-select&quot;);if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).prop(&quot;checked&quot;,false);f(&quot;#sticky-span&quot;).hide()}else{f(&
 quot;#sticky-span&quot;).show()}if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;password&quot;){f(&quot;#password-span&quot;).hide()}else{f(&quot;#password-span&quot;).show()}}function c(){if(!f(&quot;#timestampdiv&quot;).length){return true}var p,q,j,s,r=f(&quot;#post_status&quot;),k=f('option[value=&quot;publish&quot;]',r),i=f(&quot;#aa&quot;).val(),n=f(&quot;#mm&quot;).val(),o=f(&quot;#jj&quot;).val(),m=f(&quot;#hh&quot;).val(),l=f(&quot;#mn&quot;).val();p=new Date(i,n-1,o,m,l);q=new Date(f(&quot;#hidden_aa&quot;).val(),f(&quot;#hidden_mm&quot;).val()-1,f(&quot;#hidden_jj&quot;).val(),f(&quot;#hidden_hh&quot;).val(),f(&quot;#hidden_mn&quot;).val());j=new Date(f(&quot;#cur_aa&quot;).val(),f(&quot;#cur_mm&quot;).val()-1,f(&quot;#cur_jj&quot;).val(),f(&quot;#cur_hh&quot;).val(),f(&quot;#cur_mn&quot;).val());if(p.getFullYear()!=i||(1+p.getMonth())!=n||p.getDate()!=o||p.getMinutes()!=l){f(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&q
 uot;);return false}else{f(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}if(p&gt;j&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){s=postL10n.publishOnFuture;f(&quot;#publish&quot;).val(postL10n.schedule)}else{if(p&lt;=j&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){s=postL10n.publishOn;f(&quot;#publish&quot;).val(postL10n.publish)}else{s=postL10n.publishOnPast;f(&quot;#publish&quot;).val(postL10n.update)}}if(q.toUTCString()==p.toUTCString()){f(&quot;#timestamp&quot;).html(b)}else{f(&quot;#timestamp&quot;).html(s+&quot; &lt;b&gt;&quot;+f('option[value=&quot;'+f(&quot;#mm&quot;).val()+'&quot;]',&quot;#mm&quot;).text()+&quot; &quot;+o+&quot;, &quot;+i+&quot; @ &quot;+m+&quot;:&quot;+l+&quot;&lt;/b&gt; &quot;)}if(f(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){f(&quot;#publish&quot;).val(postL10n.update);if(k.length==0){r.append('
 &lt;option value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{k.html(postL10n.privatelyPublished)}f('option[value=&quot;publish&quot;]',r).prop(&quot;selected&quot;,true);f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if(f(&quot;#original_post_status&quot;).val()==&quot;future&quot;||f(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(k.length){k.remove();r.val(f(&quot;#hidden_post_status&quot;).val())}}else{k.html(postL10n.published)}if(r.is(&quot;:hidden&quot;)){f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}}f(&quot;#post-status-display&quot;).html(f(&quot;option:selected&quot;,r).text());if(f(&quot;option:selected&quot;,r).val()==&quot;private&quot;||f(&quot;option:selected&quot;,r).val()==&quot;publish&quot;){f(&quot;#save-post&quot;).hide()}else{f(&quot;#save-post&quot;).show();if(f(&quot;option:selected&quot;,r).val()==&quot;pending&quot;){f(&quot;#
 save-post&quot;).show().val(postL10n.savePending)}else{f(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}return true}f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if(f(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){d();f(&quot;#post-visibility-select&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){f(&quot;#post-visibility-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#visibility-radio-&quot;+f(&quot;#hidden-post-visibility&quot;).val()).prop(&quot;checked&quot;,true);f(&quot;#post_password&quot;).val(f(&quot;#hidden_post_password&quot;).val());f(&quot;#sticky&quot;).prop(&quot;checked&quot;,f(&quot;#hidden-post-sticky&quot;).prop(&quot;checked&quot;));f(&quot;#post-visibility-display&quot;).html(a);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();return false});f(&quot;.save-post-visibility&quot;,&q
 uot;#post-visibility-select&quot;).click(function(){var i=f(&quot;#post-visibility-select&quot;);i.slideUp(&quot;fast&quot;);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).prop(&quot;checked&quot;,false)}if(true==f(&quot;#sticky&quot;).prop(&quot;checked&quot;)){g=&quot;Sticky&quot;}else{g=&quot;&quot;}f(&quot;#post-visibility-display&quot;).html(postL10n[f(&quot;input:radio:checked&quot;,i).val()+g]);return false});f(&quot;input:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){d()});f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if(f(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){f(&quot;#timestampdiv&quot;).slideDown(&quot;fast&quot;);f(&quot;#mm&quot;).focus();f(this).hide()}return false});f(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){f(&quot;#timestampdiv&quot;).slideUp(&qu
 ot;fast&quot;);f(&quot;#mm&quot;).val(f(&quot;#hidden_mm&quot;).val());f(&quot;#jj&quot;).val(f(&quot;#hidden_jj&quot;).val());f(&quot;#aa&quot;).val(f(&quot;#hidden_aa&quot;).val());f(&quot;#hh&quot;).val(f(&quot;#hidden_hh&quot;).val());f(&quot;#mn&quot;).val(f(&quot;#hidden_mn&quot;).val());f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});f(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){if(c()){f(&quot;#timestampdiv&quot;).slideUp(&quot;fast&quot;);f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show()}return false});f(&quot;#post&quot;).on(&quot;submit&quot;,function(i){if(!c()){i.preventDefault();f(&quot;#timestampdiv&quot;).show();f(&quot;#publishing-action .spinner&quot;).hide();f(&quot;#publish&quot;).prop(&quot;disabled&quot;,false).removeClass(&quot;button-primary-disabled&quot;);return false}});f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(
 function(){if(f(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){f(&quot;#post-status-select&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false});f(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#post_status&quot;).val(f(&quot;#hidden_post_status&quot;).val());f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false})}if(f(&quot;#edit-slug-box&quot;).length){editPermalink=function(j){var k,n=0,m=f(&quot;#editable-post-name&quot;),o=m.html(),r=f(&quot;#post_name&quot;),s=r.val(),p=f(&quot;#edit-slug-buttons&quot;),q=p.html(),l=f(&quot;#editable-post-name-full&quot;).html
 ();f(&quot;#view-post-btn&quot;).hide();p.html('&lt;a href=&quot;#&quot; class=&quot;save button button-small&quot;&gt;'+postL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+postL10n.cancel+&quot;&lt;/a&gt;&quot;);p.children(&quot;.save&quot;).click(function(){var i=m.children(&quot;input&quot;).val();if(i==f(&quot;#editable-post-name-full&quot;).text()){return f(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click()}f.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:j,new_slug:i,new_title:f(&quot;#title&quot;).val(),samplepermalinknonce:f(&quot;#samplepermalinknonce&quot;).val()},function(t){f(&quot;#edit-slug-box&quot;).html(t);p.html(q);r.val(i);makeSlugeditClickable();f(&quot;#view-post-btn&quot;).show()});return false});f(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){f(&quot;#view-post-btn&quot;).show();m.html(o);p.html(q);r.val(s);return false});for(k=0;k&lt;l.length;++k){if(&quot;%&quot;==l.charAt(k)){n++}
 }slug_value=(n&gt;l.length/4)?&quot;&quot;:l;m.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children(&quot;input&quot;).keypress(function(t){var i=t.keyCode||0;if(13==i){p.children(&quot;.save&quot;).click();return false}if(27==i){p.children(&quot;.cancel&quot;).click();return false}r.val(this.value)}).focus()};makeSlugeditClickable=function(){f(&quot;#editable-post-name&quot;).click(function(){f(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}if(typeof(wpWordCount)!=&quot;undefined&quot;){f(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()]);h.keyup(function(j){var i=j.keyCode||j.charCode;if(i==e){return true}if(13==i||8==e||46==e){f(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()])}e=i;return true})}wptitlehint=function(k){k=k||&quot;title&quot;;var i=f(&quot;#&quot;+k),j=f(&quot;#&quot;+k+&quot;-prompt-text&quot;);if(i.val()==&quot;&quot;)
 {j.removeClass(&quot;screen-reader-text&quot;)}j.click(function(){f(this).addClass(&quot;screen-reader-text&quot;);i.focus()});i.blur(function(){if(this.value==&quot;&quot;){j.removeClass(&quot;screen-reader-text&quot;)}}).focus(function(){j.addClass(&quot;screen-reader-text&quot;)}).keydown(function(l){j.addClass(&quot;screen-reader-text&quot;);f(this).unbind(l)})};wptitlehint();(function(){var i=f(&quot;textarea#content&quot;),l=null,j;if(&quot;ontouchstart&quot; in window){return}function k(n){i.height(Math.max(50,l+n.pageY)+&quot;px&quot;);return false}function m(o){var n=f(&quot;#wp-content-editor-container&quot;).height();i.focus();f(document).unbind(&quot;mousemove&quot;,k).unbind(&quot;mouseup&quot;,m);n-=33;if(n&gt;50&amp;&amp;n&lt;5000&amp;&amp;n!=getUserSetting(&quot;ed_size&quot;)){setUserSetting(&quot;ed_size&quot;,n)}}i.css(&quot;resize&quot;,&quot;none&quot;);j=f('&lt;div id=&quot;content-resize-handle&quot;&gt;&lt;br&gt;&lt;/div&gt;');f(&quot;#wp-content-wrap
 &quot;).append(j);j.on(&quot;mousedown&quot;,function(n){l=i.height()-n.pageY;i.blur();f(document).mousemove(k).mouseup(m);return false})})();if(typeof(tinymce)!=&quot;undefined&quot;){tinymce.onAddEditor.add(function(i,j){if(j.id!=&quot;content&quot;||tinymce.isIOS5){return}j.onLoadContent.add(function(l,n){var p,k=parseInt(f(&quot;#content&quot;).css(&quot;height&quot;),10),m=f(&quot;#content_tbl tr.mceFirst&quot;).height();if(k&amp;&amp;!isNaN(k)&amp;&amp;m){p=(k-m)+12;if(p&gt;50&amp;&amp;p&lt;5000){f(&quot;#content_tbl&quot;).css(&quot;height&quot;,&quot;&quot;);f(&quot;#content_ifr&quot;).css(&quot;height&quot;,p+&quot;px&quot;)}}});j.onSaveContent.add(function(l,m){var k=f(&quot;#content_tbl&quot;).height();if(k&amp;&amp;k&gt;83&amp;&amp;k&lt;5000){k-=33;f(&quot;#content&quot;).css(&quot;height&quot;,k+&quot;px&quot;)}});j.onPostRender.add(function(){f(&quot;#content_resize&quot;).on(&quot;mousedown.wp-mce-resize&quot;,function(k){f(document).on(&quot;mouseup.wp-mce-re
 size&quot;,function(m){var l=f(&quot;#wp-content-editor-container&quot;).height();l-=33;if(l&gt;50&amp;&amp;l&lt;5000&amp;&amp;l!=getUserSetting(&quot;ed_size&quot;)){setUserSetting(&quot;ed_size&quot;,l)}f(document).off(&quot;mouseup.wp-mce-resize&quot;)})})})})}});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="branches35wpincludescsseditormincss"></a>
<div class="modfile"><h4>Modified: branches/3.5/wp-includes/css/editor.min.css (23279 => 23280)</h4>
<pre class="diff"><span>
<span class="info">--- branches/3.5/wp-includes/css/editor.min.css        2013-01-04 22:34:43 UTC (rev 23279)
+++ branches/3.5/wp-includes/css/editor.min.css        2013-01-04 22:36:35 UTC (rev 23280)
</span><span class="lines">@@ -1 +1 @@
</span><del>-.wp_themeSkin table,.wp_themeSkin tbody,.wp_themeSkin a,.wp_themeSkin img,.wp_themeSkin tr,.wp_themeSkin div,.wp_themeSkin td,.wp_themeSkin iframe,.wp_themeSkin span,.wp_themeSkin *,.wp_themeSkin .mceText{border:0;margin:0;padding:0;white-space:nowrap;text-decoration:none;font-weight:normal;cursor:default;vertical-align:baseline;width:auto;border-collapse:separate}.wp_themeSkin a:hover,.wp_themeSkin a:link,.wp_themeSkin a:visited,.wp_themeSkin a:active{text-decoration:none;font-weight:normal;cursor:default}.wp_themeSkin table td{vertical-align:middle}.wp_themeSkin *,.wp_themeSkin a:hover,.wp_themeSkin a:link,.wp_themeSkin a:visited,.wp_themeSkin a:active{color:#555}.wp_themeSkin iframe{display:block}.wp_themeSkin #mce_fullscreen_ifr{background-color:#fff}.wp_themeSkin .mceToolbar{padding:1px}.wp_themeSkin .mceExternalToolbar{position:absolute;border-bottom:0;display:none}.wp_themeSkin .mceExternalToolbar td.mceToolbar{padding-right:13px}.wp_themeSkin .mceExternal
 Close{position:absolute;top:3px;right:3px;width:7px;height:7px;background:url(&quot;../js/tinymce/themes/advanced/img/icons.gif&quot;) -820px 0}.wp_themeSkin table.mceToolbar,.wp_themeSkin tr.mceFirst .mceToolbar tr td,.wp_themeSkin tr.mceLast .mceToolbar tr td{border:0;margin:0;padding:0}.wp_themeSkin table.mceLayout{border:0}.wp_themeSkin .mceStatusbar{display:block;font-family:sans-serif;font-size:12px;line-height:16px;padding:0 0 0 8px;overflow:visible;height:20px;border-top:1px solid #dfdfdf;color:#000;background-color:#f5f5f5}.rtl .wp_themeSkin .mceStatusbar{padding:0 8px 0 0}.wp_themeSkin .mceStatusbar *{color:#555}.wp_themeSkin .mceStatusbar div{float:left;padding:2px}.rtl .wp_themeSkin .mceStatusbar div{float:right}.wp_themeSkin .mceStatusbar a.mceResize{display:block;float:right;background:url(&quot;../js/tinymce/themes/advanced/img/icons.gif&quot;) -800px 0;width:20px;height:20px;cursor:se-resize}.rtl .wp_themeSkin .mceStatusbar a.mceResize{float:left}.wp_themeSki
 n .mceStatusbar a:hover{text-decoration:underline}.wp_themeSkin table.mceToolbar{margin:0 6px 2px}.wp_themeSkin table.mceToolbar :active,.wp_themeSkin table.mceToolbar :focus,.wp_themeSkin table.mceToolbar:focus,.wp_themeSkin span.mceSeparator:focus{outline:0}.wp_themeSkin #content_toolbar1{margin-top:2px}.wp_themeSkin .mceToolbar .mceToolbarEndListBox span{display:none}.wp_themeSkin span.mceIcon,.wp_themeSkin img.mceIcon{display:block;width:20px;height:20px}.wp_themeSkin .mceIcon{background:url(&quot;../js/tinymce/themes/advanced/img/icons.gif&quot;) no-repeat 20px 20px}.wp_themeSkin .mceButton{display:block;width:20px;height:20px;cursor:default;padding:1px 2px;margin:1px;-webkit-border-radius:2px;border-radius:2px}.wp_themeSkin a.mceButtonEnabled:hover{background-image:inherit 0 -10px}.wp_themeSkin .mceOldBoxModel a.mceButton span,.wp_themeSkin .mceOldBoxModel a.mceButton img{margin:0 0 0 1px}.wp_themeSkin .mceButtonDisabled .mceIcon{opacity:.2;filter:alpha(opacity=20)}.wp
 _themeSkin .mceSeparator{display:none}.wp_themeSkin .mceListBox,.wp_themeSkin .mceListBox a{display:block}.wp_themeSkin .mceListBox .mceText{padding:1px 4px 1px 5px;width:70px;text-align:left;text-decoration:none;-webkit-border-bottom-left-radius:2px;-webkit-border-top-left-radius:2px;border-bottom-left-radius:2px;border-top-left-radius:2px;font-family:sans-serif;font-size:12px;height:20px;line-height:20px;overflow:hidden}.wp_themeSkin .mceListBox{margin:1px;direction:ltr;background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.2);box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.2)}.wp_themeSkin .mceListBox .mceOpen{width:12px;height:20px;border-collapse:separate;padding:1px;-webkit-border-bottom-left-radius:0;-webkit-border-top-left-radius:0;border-bottom-left-radius:0;border-top-left-radius:0}.wp_themeSkin .mceListBox .mceFirst a{border-style:solid;border-width:1px;border-bottom-right-radius:2px;border-top-right-radius:2px}.wp_themeSkin .m
 ceListBox .mceOpen,.wp_themeSkin .mceListBoxHover .mceOpen,.wp_themeSkin .mceListBoxSelected .mceOpen,.wp_themeSkin table.mceListBoxEnabled .mceOpen{background-image:url(&quot;../images/down_arrow.gif&quot;);background-position:3px 1px;background-repeat:no-repeat}.wp_themeSkin .mceListBoxDisabled .mceText{color:gray}.wp_themeSkin .mceListBoxMenu{overflow:auto;overflow-x:hidden}.wp_themeSkin .mceOldBoxModel .mceListBox .mceText{height:22px}.wp_themeSkin select.mceListBox{font-family:sans-serif;font-size:12px;border-color:#b2b2b2;background-color:#fff}.wp_themeSkin .mceSplitButton a,.wp_themeSkin .mceSplitButton span{display:block;height:20px}.wp_themeSkin .mceSplitButton{display:block;direction:ltr}.wp_themeSkin table.mceSplitButton td{padding:2px;-webkit-border-radius:2px;border-radius:2px}.wp_themeSkin table.mceSplitButton:hover td{background-image:inherit 0 -10px}.wp_themeSkin .mceSplitButton a.mceAction{height:20px;width:20px;padding:1px 2px;border-right:0 none}.wp_themeS
 kin .mceSplitButton span.mceAction{background-image:url(&quot;../js/tinymce/themes/advanced/img/icons.gif&quot;);background-repeat:no-repeat;background-color:transparent;width:20px}.wp_themeSkin .mceSplitButton a.mceOpen{width:11px;height:20px;background-position:0 2px;background-repeat:no-repeat;padding:1px 0}.wp_themeSkin .mceSplitButton span.mceOpen{display:none}.wp_themeSkin .mceSplitButtonDisabled .mceAction{opacity:.3;filter:alpha(opacity=30)}.wp_themeSkin .mceListBox a.mceText,.wp_themeSkin .mceSplitButton a.mceAction{-webkit-border-bottom-left-radius:2px;-webkit-border-top-left-radius:2px;border-bottom-left-radius:2px;border-top-left-radius:2px}.wp_themeSkin .mceSplitButton a.mceOpen,.wp_themeSkin .mceListBox a.mceOpen{-webkit-border-bottom-right-radius:2px;-webkit-border-top-right-radius:2px;border-bottom-right-radius:2px;border-top-right-radius:2px}.wp_themeSkin span.mce_undo,.wp_themeSkin span.mce_redo,.wp_themeSkin span.mce_bullist,.wp_themeSkin span.mce_numlist,
 .wp_themeSkin span.mce_blockquote,.wp_themeSkin span.mce_charmap,.wp_themeSkin span.mce_bold,.wp_themeSkin span.mce_italic,.wp_themeSkin span.mce_underline,.wp_themeSkin span.mce_justifyleft,.wp_themeSkin span.mce_justifyright,.wp_themeSkin span.mce_justifycenter,.wp_themeSkin span.mce_justifyfull,.wp_themeSkin span.mce_indent,.wp_themeSkin span.mce_outdent,.wp_themeSkin span.mce_link,.wp_themeSkin span.mce_unlink,.wp_themeSkin span.mce_help,.wp_themeSkin span.mce_removeformat,.wp_themeSkin span.mce_fullscreen,.wp_themeSkin span.mce_wp_fullscreen,.wp_themeSkin span.mce_media,.wp_themeSkin span.mce_pastetext,.wp_themeSkin span.mce_pasteword,.wp_themeSkin span.mce_wp_help,.wp_themeSkin span.mce_wp_adv,.wp_themeSkin span.mce_wp_more,.wp_themeSkin span.mce_strikethrough,.wp_themeSkin span.mce_spellchecker,.wp_themeSkin span.mce_forecolor,.wp_themeSkin .mce_forecolorpicker,.wp_themeSkin .mceSplitButton .mce_spellchecker span.mce_spellchecker,.wp_themeSkin .mceSplitButton .mce_for
 ecolor span.mce_forecolor,.wp_themeSkin .mceSplitButton span.mce_numlist,.wp_themeSkin .mceSplitButton span.mce_bullist{background-image:url('../images/wpicons.png?ver=20120720')}.wp_themeSkin div.mceColorSplitMenu table{background-color:#ebebeb;border-color:#bbb}.wp_themeSkin .mceColorSplitMenu td{padding:2px}.wp_themeSkin .mceColorSplitMenu a{display:block;width:9px;height:9px;overflow:hidden;border-color:#b2b2b2}.wp_themeSkin .mceColorSplitMenu td.mceMoreColors{padding:1px 3px 1px 1px}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors{width:100%;height:auto;text-align:center;font-family:Tahoma,Verdana,Arial,Helvetica;font-size:11px;line-height:20px;border-color:#fff}.wp_themeSkin .mceColorPreview{margin:-5px 0 0 2px;width:16px;height:4px;overflow:hidden}.wp_themeSkin .mceMenu{position:absolute;left:0;top:0;z-index:1000;border-color:#ddd;direction:ltr}.wp_themeSkin .mceNoIcons span.mceIcon{width:0}.wp_themeSkin .mceNoIcons a .mceText{padding-left:10px}.wp_themeSkin .mceMenu 
 table{background-color:#ebeaeb}.wp_themeSkin .mceMenu a,.wp_themeSkin .mceMenu span,.wp_themeSkin .mceMenu{display:block}.wp_themeSkin .mceMenu td{height:20px;overflow:hidden}.wp_themeSkin .mceMenu a{position:relative;padding:3px 0 4px 0;text-decoration:none!important}.wp_themeSkin .mceMenu .mceText{position:relative;display:block;font-family:Tahoma,Verdana,Arial,Helvetica;cursor:default;margin:0;padding:0 25px;color:#000}.wp_themeSkin .mceMenu span.mceText,.wp_themeSkin .mceMenu .mcePreview{font-size:12px}.wp_themeSkin .mceMenu pre.mceText{font-family:Monospace}.wp_themeSkin .mceMenu .mceIcon{position:absolute;top:0;left:0;width:22px}.wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover,.wp_themeSkin .mceMenu .mceMenuItemActive{background-color:#f5f5f5}.wp_themeSkin td.mceMenuItemSeparator{height:1px;background-color:#aaa}.wp_themeSkin .mceMenuItemTitle a{border-top:0;border-right:0;border-left:0;border-bottom:1px solid #aaa;text-decoration:none!important;background-color:#ccc
 }.wp_themeSkin .mceMenuItemTitle span.mceText{font-weight:bold;padding-left:4px;color:#000}.wp_themeSkin .mceMenuItemSelected .mceIcon{background:url(&quot;../js/tinymce/themes/advanced/skins/default/img/menu_check.gif&quot;);color:#888}.wp_themeSkin .mceNoIcons .mceMenuItemSelected a{background:url(&quot;../js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif&quot;) no-repeat -6px center}.wp_themeSkin .mceMenu span.mceMenuLine{display:none}.wp_themeSkin .mceMenuItemSub a{background:url(&quot;../js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif&quot;) no-repeat top right}.wp_themeSkin .mceBlocker{position:absolute;left:0;top:0;z-index:1000;opacity:.5;filter:alpha(opacity=50);background:#FFF}.wp_themeSkin .mceProgress{position:absolute;left:0;top:0;z-index:1001;background:url(&quot;../js/tinymce/themes/advanced/skins/default/img/progress.gif&quot;) no-repeat;width:32px;height:32px;margin:-16px 0 0 -16px}.wp_themeSkin .mcePlaceHolder{border:1px dotted gray}.mc
 eRtl .mceListBox .mceText{text-align:right;padding:0 4px 0 0}.mceRtl .mceMenuItem .mceText{text-align:right}.wp_themeSkin .mce_address span.mceText{font-style:italic}.wp_themeSkin .mce_pre span.mceText{font-family:monospace}.wp_themeSkin .mce_h1 span.mceText{font-weight:bolder;font-size:17px}.wp_themeSkin .mce_h2 span.mceText{font-weight:bolder;font-size:16px}.wp_themeSkin .mce_h3 span.mceText{font-weight:bolder;font-size:15px}.wp_themeSkin .mce_h4 span.mceText{font-weight:bolder;font-size:14px}.wp_themeSkin .mce_h5 span.mceText{font-weight:bolder;font-size:13px}.wp_themeSkin .mce_h6 span.mceText{font-weight:bolder;font-size:12px}.wp_themeSkin span.mce_undo{background-position:-500px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_undo,.wp_themeSkin .mceButtonActive span.mce_undo{background-position:-500px 0}.wp_themeSkin span.mce_redo{background-position:-480px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_redo,.wp_themeSkin .mceButtonActive span.mce_redo{backgr
 ound-position:-480px 0}.wp_themeSkin span.mce_bullist{background-position:-40px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_bullist,.wp_themeSkin .mceButtonActive span.mce_bullist,.wp_themeSkin .mceSplitButton:hover span.mce_bullist{background-position:-40px 0}.wp_themeSkin span.mce_numlist{background-position:-60px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_numlist,.wp_themeSkin .mceButtonActive span.mce_numlist,.wp_themeSkin .mceSplitButton:hover span.mce_numlist{background-position:-60px 0}.wp_themeSkin span.mce_blockquote{background-position:-80px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_blockquote,.wp_themeSkin .mceButtonActive span.mce_blockquote{background-position:-80px 0}.wp_themeSkin span.mce_charmap{background-position:-420px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_charmap,.wp_themeSkin .mceButtonActive span.mce_charmap{background-position:-420px 0}.wp_themeSkin span.mce_bold{background-position:0 -20px}.wp_themeSkin .mc
 eButtonEnabled:hover span.mce_bold,.wp_themeSkin .mceButtonActive span.mce_bold{background-position:0 0}.wp_themeSkin span.mce_italic{background-position:-20px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_italic,.wp_themeSkin .mceButtonActive span.mce_italic{background-position:-20px 0}.wp_themeSkin span.mce_underline{background-position:-280px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_underline,.wp_themeSkin .mceButtonActive span.mce_underline{background-position:-280px 0}.wp_themeSkin span.mce_justifyleft{background-position:-100px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_justifyleft,.wp_themeSkin .mceButtonActive span.mce_justifyleft{background-position:-100px 0}.wp_themeSkin span.mce_justifyright{background-position:-140px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_justifyright,.wp_themeSkin .mceButtonActive span.mce_justifyright{background-position:-140px 0}.wp_themeSkin span.mce_justifycenter{background-position:-120px -20px}.wp
 _themeSkin .mceButtonEnabled:hover span.mce_justifycenter,.wp_themeSkin .mceButtonActive span.mce_justifycenter{background-position:-120px 0}.wp_themeSkin span.mce_justifyfull{background-position:-300px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_justifyfull,.wp_themeSkin .mceButtonActive span.mce_justifyfull{background-position:-300px 0}.wp_themeSkin span.mce_indent{background-position:-460px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_indent,.wp_themeSkin .mceButtonActive span.mce_indent{background-position:-460px 0}.wp_themeSkin span.mce_outdent{background-position:-440px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_outdent,.wp_themeSkin .mceButtonActive span.mce_outdent{background-position:-440px 0}.wp_themeSkin span.mce_link{background-position:-160px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_link,.wp_themeSkin .mceButtonActive span.mce_link{background-position:-160px 0}.wp_themeSkin span.mce_unlink{background-position:-180px -20px}.
 wp_themeSkin .mceButtonEnabled:hover span.mce_unlink,.wp_themeSkin .mceButtonActive span.mce_unlink{background-position:-180px 0}.wp_themeSkin span.mce_help{background-position:-520px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_help,.wp_themeSkin .mceButtonActive span.mce_help{background-position:-520px 0}.wp_themeSkin span.mce_removeformat{background-position:-380px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_removeformat,.wp_themeSkin .mceButtonActive span.mce_removeformat{background-position:-380px 0}.wp_themeSkin span.mce_strikethrough{background-position:-540px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_strikethrough,.wp_themeSkin .mceButtonActive span.mce_strikethrough{background-position:-540px 0}.wp_themeSkin .mceSplitButton .mce_forecolor span.mce_forecolor{background-position:-320px -20px}.wp_themeSkin .mceSplitButtonEnabled:hover span.mce_forecolor,.wp_themeSkin .mceSplitButtonSelected span.mce_forecolor{background-position:-320px 0}.wp
 _themeSkin .mce_forecolorpicker{background-position:-320px -20px}.wp_themeSkin span.mce_fullscreen{background-position:-240px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_fullscreen,.wp_themeSkin .mceButtonActive span.mce_fullscreen{background-position:-240px 0}.wp_themeSkin span.mce_wp_fullscreen{background-position:-240px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_wp_fullscreen,.wp_themeSkin .mceButtonActive span.mce_wp_fullscreen{background-position:-240px 0}.wp_themeSkin span.mce_media{background-position:-400px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_media,.wp_themeSkin .mceButtonActive span.mce_media{background-position:-400px 0}.wp_themeSkin span.mce_pastetext{background-position:-340px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_pastetext,.wp_themeSkin .mceButtonActive span.mce_pastetext{background-position:-340px 0}.wp_themeSkin span.mce_pasteword{background-position:-360px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_
 pasteword,.wp_themeSkin .mceButtonActive span.mce_pasteword{background-position:-360px 0}.wp_themeSkin span.mce_spellchecker{background-position:-220px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_spellchecker,.wp_themeSkin .mceSplitButtonEnabled:hover span.mce_spellchecker,.wp_themeSkin .mceButtonActive span.mce_spellchecker,.wp_themeSkin .mceSplitButtonSelected span.mce_spellchecker{background-position:-220px 0}.wp_themeSkin span.mce_wp_help{background-position:-520px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_wp_help,.wp_themeSkin .mceButtonActive span.mce_wp_help{background-position:-520px 0}.wp_themeSkin span.mce_wp_adv{background-position:-260px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_wp_adv,.wp_themeSkin .mceButtonActive span.mce_wp_adv{background-position:-260px 0}.wp_themeSkin span.mce_wp_more{background-position:-200px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_wp_more,.wp_themeSkin .mceButtonActive span.mce_wp_more{backgrou
 nd-position:-200px 0}.wp_themeSkin span.mce_cleanup{background-position:-380px -20px}.wp_themeSkin span.mce_anchor{background-position:-200px 0}.wp_themeSkin span.mce_sub{background-position:-600px 0}.wp_themeSkin span.mce_sup{background-position:-620px 0}.wp_themeSkin span.mce_newdocument{background-position:-520px 0}.wp_themeSkin span.mce_image{background-position:-380px 0}.wp_themeSkin span.mce_code{background-position:-260px 0}.wp_themeSkin span.mce_hr{background-position:-360px 0}.wp_themeSkin span.mce_visualaid{background-position:-660px 0}.wp_themeSkin span.mce_paste{background-position:-560px 0}.wp_themeSkin span.mce_copy{background-position:-700px 0}.wp_themeSkin span.mce_cut{background-position:-680px 0}.wp_themeSkin .mce_backcolor span.mceAction{background-position:-760px 0}.wp_themeSkin .mce_backcolorpicker{background-position:-760px 0}.wp_themeSkin span.mce_advhr{background-position:-0px -20px}.wp_themeSkin span.mce_ltr{background-position:-20px -20px}.wp_themeS
 kin span.mce_rtl{background-position:-40px -20px}.wp_themeSkin span.mce_emotions{background-position:-60px -20px}.wp_themeSkin span.mce_fullpage{background-position:-80px -20px}.wp_themeSkin span.mce_iespell{background-position:-120px -20px}.wp_themeSkin span.mce_insertdate{background-position:-140px -20px}.wp_themeSkin span.mce_inserttime{background-position:-160px -20px}.wp_themeSkin span.mce_absolute{background-position:-180px -20px}.wp_themeSkin span.mce_backward{background-position:-200px -20px}.wp_themeSkin span.mce_forward{background-position:-220px -20px}.wp_themeSkin span.mce_insert_layer{background-position:-240px -20px}.wp_themeSkin span.mce_insertlayer{background-position:-260px -20px}.wp_themeSkin span.mce_movebackward{background-position:-280px -20px}.wp_themeSkin span.mce_moveforward{background-position:-300px -20px}.wp_themeSkin span.mce_nonbreaking{background-position:-340px -20px}.wp_themeSkin span.mce_selectall{background-position:-400px -20px}.wp_themeSki
 n span.mce_preview{background-position:-420px -20px}.wp_themeSkin span.mce_print{background-position:-440px -20px}.wp_themeSkin span.mce_cancel{background-position:-460px -20px}.wp_themeSkin span.mce_save{background-position:-480px -20px}.wp_themeSkin span.mce_replace{background-position:-500px -20px}.wp_themeSkin span.mce_search{background-position:-520px -20px}.wp_themeSkin span.mce_styleprops{background-position:-560px -20px}.wp_themeSkin span.mce_table{background-position:-580px -20px}.wp_themeSkin span.mce_cell_props{background-position:-600px -20px}.wp_themeSkin span.mce_delete_table{background-position:-620px -20px}.wp_themeSkin span.mce_delete_col{background-position:-640px -20px}.wp_themeSkin span.mce_delete_row{background-position:-660px -20px}.wp_themeSkin span.mce_col_after{background-position:-680px -20px}.wp_themeSkin span.mce_col_before{background-position:-700px -20px}.wp_themeSkin span.mce_row_after{background-position:-720px -20px}.wp_themeSkin span.mce_row
 _before{background-position:-740px -20px}.wp_themeSkin span.mce_merge_cells{background-position:-760px -20px}.wp_themeSkin span.mce_table_props{background-position:-980px -20px}.wp_themeSkin span.mce_row_props{background-position:-780px -20px}.wp_themeSkin span.mce_split_cells{background-position:-800px -20px}.wp_themeSkin span.mce_template{background-position:-820px -20px}.wp_themeSkin span.mce_visualchars{background-position:-840px -20px}.wp_themeSkin span.mce_abbr{background-position:-860px -20px}.wp_themeSkin span.mce_acronym{background-position:-880px -20px}.wp_themeSkin span.mce_attribs{background-position:-900px -20px}.wp_themeSkin span.mce_cite{background-position:-920px -20px}.wp_themeSkin span.mce_del{background-position:-940px -20px}.wp_themeSkin span.mce_ins{background-position:-960px -20px}.wp_themeSkin span.mce_pagebreak{background-position:0 -40px}.wp_themeSkin span.mce_restoredraft{background-position:-20px -40px}.wp_themeSkin span.mce_visualblocks{background
 -position:-40px -40px}.wp_themeSkin .mceExternalToolbar,.wp_themeSkin .mceButton,.wp_themeSkin a.mceButtonEnabled:hover,.wp_themeSkin a.mceButtonActive,.wp_themeSkin a.mceButtonSelected,.wp_themeSkin .mceListBox .mceText,.wp_themeSkin .mceListBox .mceOpen,.wp_themeSkin select.mceListBox,.wp_themeSkin .mceSplitButton a.mceAction,.wp_themeSkin .mceSplitButton a.mceOpen,.wp_themeSkin .mceSplitButton a.mceOpen:hover,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction,.wp_themeSkin .mceSplitButton a.mceAction:hover,.wp_themeSkin div.mceColorSplitMenu table,.wp_themeSkin .mceColorSplitMenu a,.wp_themeSkin .mceColorSplitMenu a.mceMoreColors,.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover,.wp_themeSkin a.mceMoreColors:hover,.wp_themeSkin .mceMenu{border-style:solid;border-width:1px}.wp_themeSkin .mceListBox .mceText{border-right:0 none}.wp_themeSkin iframe{background:transparent}.wp_themeSkin .mceButton{border-color:tran
 sparent}.wp_themeSkin .mceListBox .mceText,.wp_themeSkin .mceListBox .mceOpen{border-color:transparent}.wp_themeSkin a.mceButtonEnabled:hover,.wp_themeSkin table.mceSplitButton:hover{border-color:#bbb;background:#eee;background-image:-webkit-gradient(linear,left bottom,left top,from(#e5e5e5),to(#fff));background-image:-webkit-linear-gradient(bottom,#e5e5e5,#fff);background-image:-moz-linear-gradient(bottom,#e5e5e5,#fff);background-image:-o-linear-gradient(bottom,#e5e5e5,#fff);background-image:linear-gradient(to top,#e5e5e5,#fff)}.wp_themeSkin a.mceButton:active,.wp_themeSkin a.mceButtonEnabled:active,.wp_themeSkin a.mceButtonSelected:active,.wp_themeSkin a.mceButtonActive,.wp_themeSkin a.mceButtonActive:active,.wp_themeSkin a.mceButtonActive:hover,.wp_themeSkin .mceSplitButtonSelected table,.wp_themeSkin .mceSplitButtonSelected table:hover{outline:0;border-color:#999 #ccc #ccc #999;background:#eee;background-image:-webkit-gradient(linear,left bottom,left top,from(#f6f6f6),to
 (#e3e3e3));background-image:-webkit-linear-gradient(bottom,#f6f6f6,#e3e3e3);background-image:-moz-linear-gradient(bottom,#f6f6f6,#e3e3e3);background-image:-o-linear-gradient(bottom,#f6f6f6,#e3e3e3);background-image:linear-gradient(to top,#f6f6f6,#e3e3e3)}.wp_themeSkin .mceSplitButtonSelected table a.mceOpen,.wp_themeSkin .mceSplitButtonSelected table a.mceAction{border-color:#999 #ccc #ccc #999}.wp_themeSkin .mceButtonDisabled{border-color:transparent}.wp_themeSkin .mceListBox .mceOpen{border-left:0}.wp_themeSkin .mceListBoxEnabled:hover,.wp_themeSkin .mceListBoxEnabled:active,.wp_themeSkin .mceListBoxHover,.wp_themeSkin .mceListBoxHover:active,.wp_themeSkin .mceListBoxSelected{-webkit-box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.3);box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.3);border-color:#bbb}.wp_themeSkin .mceSplitButton .mceLast span.mceOpen .mceIconOnly{display:block}.wp_themeSkin .mceSplitButton a.mceAction,.wp_themeSkin .mceSplitButton a.mceOpen{border-color:transpar
 ent}.wp_themeSkin .mceSplitButton:hover a{border-color:#bbb}.wp_themeSkin .mceSplitButtonEnabled a.mceOpen,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin .mceSplitButtonActive a.mceOpen,.wp_themeSkin .mceSplitButtonEnabled:hover a.mceOpen{background-image:url(&quot;../images/down_arrow.gif&quot;);background-position:1px 2px;background-repeat:no-repeat;border-left:0}.wp_themeSkin .mceSplitButtonActive td{-webkit-border-radius:3px;border-radius:3px}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover{border-color:#0a246a;background-color:#b6bdd2}.wp_themeSkin a.mceMoreColors:hover{border-color:#0a246a}.wp_themeSkin .mceMenuItemDisabled .mceText{color:#888}#mceModalBlocker{background:#000}.wp-editor-wrap{position:relative}.wp-editor-area{font-family:Consolas,Monaco,monospace;padding:10px;margin:1px 0 0;line-height:150%;border:0 none;outline:0;display:block;resize:vertical;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.wp-editor-
 tools{height:30px;padding:0 10px 0 0}.rtl .wp-editor-tools{padding:0 0 0 10px}.wp-editor-container{border-width:1px;border-style:solid;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-color:#ccc #ccc #dfdfdf}.wp-editor-container textarea.wp-editor-area{width:100%;margin:0;-webkit-box-shadow:none;box-shadow:none}.quicktags-toolbar,.wp_themeSkin tr.mceFirst td.mceToolbar{border-bottom:1px solid #d1d1d1;background:#eee;background-image:-webkit-gradient(linear,left bottom,left top,from(#e5e5e5),to(#f4f4f4));background-image:-webkit-linear-gradient(bottom,#e5e5e5,#f4f4f4);background-image:-moz-linear-gradient(bottom,#e5e5e5,#f4f4f4);background-image:-o-linear-gradient(bottom,#e5e5e5,#f4f4f4);background-image:linear-gradient(to top,#e5e5e5,#f4f4f4)}.wp-switch-editor{height:18px;font:13px/18px Arial,Helvetica,sans-serif normal;margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border-
 width:1px;border-style:solid;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;background-color:#f1f1f1;border-color:#dfdfdf #dfdfdf #ccc;color:#999}html[dir=&quot;rtl&quot;] .wp-switch-editor{float:left}.wp-switch-editor:active{background-color:#f1f1f1}.wp-switch-editor:hover{text-decoration:none!important}.js .tmce-active .wp-editor-area{color:white}.tmce-active .quicktags-toolbar{display:none}.tmce-active .switch-tmce,.html-active .switch-html{border-color:#ccc #ccc #f4f4f4;background-color:#f4f4f4;color:#555}.wp-media-buttons .button{margin-right:5px}.rtl .wp-media-buttons .button{margin-right:0;margin-left:5px}.wp-media-buttons .insert-media{padding-left:.4em}.rtl .wp-media-buttons .insert-media{padding-left:10px;padding-right:.4em}.wp-media-buttons a{text-decoration:none;color:#464646;font-size:12px}.wp-media-buttons img{padding:0 4px;vertical-align:middle}.wp-media-buttons span.wp-media-button
 s-icon{display:inline-block;width:16px;height:16px;vertical-align:text-top;margin:0 2px}.wp-media-buttons .add_media span.wp-media-buttons-icon{background:url('../../wp-admin/images/media-button.png') no-repeat top left}.quicktags-toolbar{border-bottom-style:solid;border-bottom-width:1px;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;padding:2px 8px 0;min-height:29px}.quicktags-toolbar&gt;div{padding:2px 4px 0}.quicktags-toolbar input{margin:2px 1px 4px;line-height:18px;display:inline-block;min-width:26px;padding:2px 4px;font:12px/18px Arial,Helvetica,sans-serif normal;color:#464646;border:1px solid #c3c3c3;-webkit-border-radius:3px;border-radius:3px;background:#eee;background-image:-webkit-gradient(linear,left bottom,left top,from(#e3e3e3),to(#fff));background-image:-webkit-linear-gradient(bottom,#e3e3e3,#fff);background-image:-moz-linear-gradient(bottom,#e3e3e3,#fff);background-image:-o-linear-g
 radient(bottom,#e3e3e3,#fff);background-image:linear-gradient(to top,#e3e3e3,#fff)}.quicktags-toolbar input:hover{border-color:#aaa;background:#ddd}.quicktags-toolbar input[value=&quot;link&quot;]{text-decoration:underline}.quicktags-toolbar input[value=&quot;del&quot;]{text-decoration:line-through}.quicktags-toolbar input[value=&quot;i&quot;]{font-style:italic}.quicktags-toolbar input[value=&quot;b&quot;]{font-weight:bold}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:155000}#wp_editimgbtn,#wp_delimgbtn,#wp_editgallery,#wp_delgallery{border-color:#999;background-color:#eee;margin:2px;padding:2px;border-width:1px;border-style:solid;-webkit-border-radius:3px;border-radius:3px}#wp_editimgbtn:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_delgallery:hover{border-color:#555;background-color:#ccc}#wp-link{background-color:#f5f5f5;line-height:1.4em;font-size:12px}#wp-link ol,#wp-link ul{list-style:none;margin:0;padding:0}#wp-link input[type=&q
 uot;text&quot;]{-webkit-box-sizing:border-box}#wp-link input[type=&quot;text&quot;],#wp-link textarea{border-width:1px;border-style:solid;-webkit-border-radius:4px;border-radius:4px;font-size:12px;margin:1px;padding:3px}#wp-link #link-options{padding:10px 0 14px;border-bottom:1px solid #dfdfdf;margin:0 6px 14px}#wp-link p.howto{margin:3px}#wp-link #internal-toggle{display:inline-block;cursor:pointer;padding-left:18px}#wp-link .toggle-arrow{background:transparent url('../images/toggle-arrow.png') top left no-repeat;height:23px;line-height:23px}#wp-link .toggle-arrow-active{background-position:center left}#wp-link label input[type=&quot;text&quot;]{width:360px;margin-top:5px}#wp-link #link-options label span,#wp-link #search-panel label span.search-label{display:inline-block;width:80px;text-align:right;padding-right:5px}#wp-link .link-search-field{float:left;margin-right:5px}#wp-link .link-search-wrapper{margin:5px 6px 9px;display:block;overflow:hidden}#wp-link .link-search-wr
 apper span{float:left;margin-top:4px}#wp-link .link-search-wrapper input[type=&quot;text&quot;]{float:left;width:220px}#wp-link .link-search-wrapper .spinner{margin:4px 2px 0 0;display:none;vertical-align:text-bottom}#wp-link .link-target{width:auto;padding:3px 0 0;margin:0 0 0 87px;font-size:11px}#wp-link .query-results{border:1px #dfdfdf solid;margin:0 5px 5px;background:#fff;height:185px;overflow:auto;position:relative}#wp-link li,#wp-link .query-notice{clear:both;margin-bottom:0;border-bottom:1px solid #f1f1f1;color:#333;padding:4px 6px;cursor:pointer;position:relative}#wp-link li:hover{background:#eaf2fa;color:#151515}#wp-link li.unselectable{border-bottom:1px solid #dfdfdf}#wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#333}#wp-link li.selected{background:#ddd;color:#333}#wp-link li.selected .item-title{font-weight:bold}#wp-link .item-title{display:inline-block;width:80%}#wp-link .item-info{text-transform:uppercase;color:#666;font-size:11px;position:a
 bsolute;right:5px;top:4px;bottom:0}#wp-link #search-results{display:none}#wp-link #search-panel{float:left;width:100%}#wp-link .river-waiting{display:none;padding:10px 0}#wp-link .river-waiting .spinner{margin:0 auto;display:block}#wp-link .submitbox{padding:5px 10px;font-size:11px;overflow:auto;height:29px}#wp-link-cancel{line-height:25px;float:left}#wp-link-update{line-height:23px;float:right}.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{position:absolute;left:-99999999px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:after{content:&quot;.&quot;;display:block;height:0;clear:both;visibility:hidden}.ui-helper-clearfix{display:inline-block}/*\*/* html .ui-helper-clearfix{height:1%}.ui-helper-clearfix{display:block}/**/.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-state-disabled{cursor:default!important}.ui-
 icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;z-index:99999;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.wp-dialog{position:absolute;
 width:300px;overflow:hidden}.wp-dialog .ui-dialog-titlebar{position:relative}.wp-dialog .ui-dialog-titlebar-close span{display:block;margin:1px}.wp-dialog .ui-dialog-content{position:relative;border:0;padding:0;background:0;overflow:auto;zoom:1}.wp-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em}.wp-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.wp-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.wp-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px}.ui-draggable .ui-dialog-titlebar{cursor:move}.wp-dialog{border:1px solid #999;-webkit-box-shadow:0 0 16px rgba(0,0,0,0.3);box-shadow:0 0 16px rgba(0,0,0,0.3)}.wp-dialog .ui-dialog-title{display:block;text-align:center;padding:1px 0 2px}.wp-dialog .ui-dialog-titlebar{padding:0 1em;background-color:#444;font-weight:bold;font-size:11px;line-height:18px;color:#e5e5e5}.wp-dialog{background
 -color:#fff;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;border-top-left-radius:4px;border-top-right-radius:4px}.wp-dialog .ui-dialog-titlebar{-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}.wp-dialog .ui-dialog-titlebar-close{position:absolute;width:29px;height:16px;top:2px;right:6px;background:url('../js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif') no-repeat -87px -16px;padding:0}.wp-dialog .ui-dialog-titlebar-close:hover,.wp-dialog .ui-dialog-titlebar-close:focus{background-position:-87px -32px}.ui-widget-overlay{background-color:#000;opacity:.6;filter:alpha(opacity=60)}.rtl #wp-link #internal-toggle{padding-right:18px;padding-left:0}.rtl #wp-link label span{text-align:left;padding-left:5px;padding-right:0}.rtl #wp-link .link-search-wrapper span{float:right}.rtl #wp-link .link-search-wrapper input[type=&quot;text&quot;]{float:right}.rtl #wp-link .li
 nk-target{margin:0 87px 0 0}.rtl #wp-link .item-info{left:5px;right:auto;top:4px;bottom:0}.rtl #wp-link #search-panel{float:right}.rtl #wp-link-cancel{float:right}.rtl #wp-link-update{float:left}.rtl #wp-link .toggle-arrow{background-position:top right}.rtl #wp-link .toggle-arrow-active{background-position:center right}.rtl .wp_themeSkin .mceListBox .mceText{text-align:right}.rtl .wp_themeSkin .mceNoIcons a .mceText{padding-right:10px;padding-left:25px}.rtl .mceListBoxMenu.mceNoIcons{margin-left:-14px}.clearlooks2 .mceFocus .mceTop .mceLeft{background:#444;border-left:1px solid #999;border-top:1px solid #999;-webkit-border-top-left-radius:3px;border-top-left-radius:3px}.clearlooks2 .mceFocus .mceTop .mceRight{background:#444;border-right:1px solid #999;border-top:1px solid #999;-webkit-border-top-right-radius:3px;border-top-right-radius:3px}.clearlooks2 .mceMiddle .mceLeft{background:#f1f1f1;border-left:1px solid #999}.clearlooks2 .mceMiddle .mceRight{background:#f1f1f1;bord
 er-right:1px solid #999}.clearlooks2 .mceBottom{background:#f1f1f1;border-bottom:1px solid #999}.clearlooks2 .mceBottom .mceLeft{background:#f1f1f1;border-bottom:1px solid #999;border-left:1px solid #999}.clearlooks2 .mceBottom .mceCenter{background:#f1f1f1;border-bottom:1px solid #999}.clearlooks2 .mceBottom .mceRight{background:#f1f1f1;border-bottom:1px solid #999;border-right:1px solid #999}.clearlooks2 .mceFocus .mceTop span{color:#e5e5e5}.fullscreen-overlay{z-index:149999;display:none;position:fixed;top:0;bottom:0;left:0;right:0;filter:inherit}.fullscreen-active .fullscreen-overlay,.fullscreen-active #wp-fullscreen-body{display:block}.fullscreen-fader{z-index:200000}.fullscreen-active .fullscreen-fader{display:none}#wp-fullscreen-body{width:100%;z-index:150005;display:none;position:absolute;top:0;left:0;font-size:12px}#wp-fullscreen-wrap{margin:0 auto 50px;position:relative;padding-top:60px}#wp-fullscreen-title{font-size:1.7em;line-height:100%;outline:medium none;paddin
 g:6px 7px;width:100%;margin-bottom:30px}#wp-fullscreen-container{padding:4px 10px 50px}#wp-fullscreen-title,#wp-fullscreen-container{-webkit-border-radius:0;border-radius:0;border:1px dashed transparent;background:transparent;-moz-transition-property:border-color;-moz-transition-duration:.6s;-webkit-transition-property:border-color;-webkit-transition-duration:.6s;-o-transition-property:border-color;-o-transition-duration:.6s;transition-property:border-color;transition-duration:.6s}#wp_mce_fullscreen{width:100%;min-height:300px;border:0;background:transparent;font-family:Consolas,Monaco,monospace;line-height:1.6em;padding:0;overflow-y:hidden;outline:0;resize:none}#wp-fullscreen-tagline{color:#bbb;font-size:18px;float:right;padding-top:5px}#fullscreen-topbar{position:fixed;top:0;left:0;z-index:150050;border-bottom-style:solid;border-bottom-width:1px;min-width:800px;width:100%;height:40px}#wp-fullscreen-toolbar{padding:6px 10px 0;clear:both;max-width:1100px;min-width:820px;marg
 in:0 auto}#wp-fullscreen-mode-bar,#wp-fullscreen-button-bar,#wp-fullscreen-close,#wp-fullscreen-count{float:left}#wp-fullscreen-save{float:right;padding:2px 2px 0 5px}#wp-fullscreen-count,#wp-fullscreen-close{padding-top:5px}#wp-fullscreen-central-toolbar{margin:auto;padding:0}#wp-fullscreen-buttons&gt;div{float:left}#wp-fullscreen-mode-bar{padding:1px 14px 0 0}#wp-fullscreen-modes a{display:block;font-size:11px;text-decoration:none;float:left;margin:1px 0 0 0;padding:2px 6px 2px;border-width:1px 1px 1px 0;border-style:solid;border-color:#bbb;color:#777;text-shadow:0 1px 0 #fff;background-color:#f4f4f4;background:#f4f4f4;background-image:-webkit-gradient(linear,left bottom,left top,from(#e4e4e4),to(#f9f9f9));background-image:-webkit-linear-gradient(bottom,#e4e4e4,#f9f9f9);background-image:-moz-linear-gradient(bottom,#e4e4e4,#f9f9f9);background-image:-o-linear-gradient(bottom,#e4e4e4,#f9f9f9);background-image:linear-gradient(to top,#e4e4e4,#f9f9f9)}#wp-fullscreen-modes a:hove
 r,.wp-html-mode #wp-fullscreen-modes a:last-child,.wp-tmce-mode #wp-fullscreen-modes a:first-child{color:#333;border-color:#999;background:#eee;background-image:-webkit-gradient(linear,left top,left bottom,from(#e4e4e4),to(#f9f9f9));background-image:-webkit-linear-gradient(top,#e4e4e4,#f9f9f9);background-image:-moz-linear-gradient(top,#e4e4e4,#f9f9f9);background-image:-o-linear-gradient(top,#e4e4e4,#f9f9f9);background-image:linear-gradient(to bottom,#e4e4e4,#f9f9f9)}#wp-fullscreen-modes a:first-child{border-width:1px;-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}#wp-fullscreen-modes a:last-child{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}#wp-fullscreen-buttons .active a{background:inherit}#wp-fullscreen-buttons .hidden{display:none}#wp-fullscreen-buttons .disabled{opacity:.5}.wp-html-mode #wp-fullscreen
 -buttons div{display:none}.wp-html-mode #wp-fullscreen-buttons div.wp-fullscreen-both{display:block}#fullscreen-topbar.fullscreen-make-sticky{display:block!important}#wp-fullscreen-save img{vertical-align:middle}#wp-fullscreen-save img,#wp-fullscreen-save span{padding-right:4px;display:none}#wp-fullscreen-buttons #wp_fs_image span.mce_image{background-image:url('../../wp-admin/images/media-button.png');background-position:2px 2px}.fullscreen-active #TB_overlay{z-index:150100}.fullscreen-active #TB_window{z-index:150102}#wp_mce_fullscreen_ifr{background:transparent}#wp_mce_fullscreen_parent #wp_mce_fullscreen_tbl tr.mceFirst{display:none}#wp-fullscreen-container .wp_themeSkin table td{vertical-align:top}.fullscreen-overlay{background:#fff}.wp-fullscreen-focus #wp-fullscreen-title,.wp-fullscreen-focus #wp-fullscreen-container{border-color:#ccc}#fullscreen-topbar{border-bottom-color:#dfdfdf;background:#f1f1f1;background-image:-webkit-gradient(linear,left bottom,left top,from(#e
 cecec),to(#f9f9f9));background-image:-webkit-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-moz-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-o-linear-gradient(bottom,#ececec,#f9f9f9);background-image:linear-gradient(to top,#ececec,#f9f9f9)}.fade-1000,.fade-600,.fade-400,.fade-300{opacity:0;-moz-transition-property:opacity;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.fade-1000{-moz-transition-duration:1s;-webkit-transition-duration:1s;-o-transition-duration:1s;transition-duration:1s}.fade-600{-moz-transition-duration:.6s;-webkit-transition-duration:.6s;-o-transition-duration:.6s;transition-duration:.6s}.fade-400{-moz-transition-duration:.4s;-webkit-transition-duration:.4s;-o-transition-duration:.4s;transition-duration:.4s}.fade-300{-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;transition-duration:.3s}.fade-trigger{opacity:1}.rtl #wp-fullscreen-tagline{float:lef
 t}.rtl #fullscreen-topbar{left:auto;right:0}.rtl #wp-fullscreen-mode-bar,.rtl #wp-fullscreen-button-bar,.rtl #wp-fullscreen-close,.rtl #wp-fullscreen-count{float:right}.rtl #wp-fullscreen-save{float:left}.rtl #wp-fullscreen-save{padding:2px 5px 0 2px}.rtl #wp-fullscreen-buttons&gt;div{float:right}.rtl #wp-fullscreen-mode-bar{padding:1px 0 0 14px}.rtl #wp-fullscreen-modes a{float:right;border-width:1px 0 1px 1px}.rtl #wp-fullscreen-modes a:first-child{-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:3px;-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:3px;border-width:1px;border-top-left-radius:0;border-top-right-radius:3px;border-bottom-left-radius:0;border-bottom-right-radius:3px}.rtl #wp-fullscreen-modes a:last-child{-webkit-border-top-right-radius:0;-webkit-border-top-left-radius:3px;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:3px;border-top-right-radius:0;border-top-left-radius:3px;border-bottom-right-radiu
 s:0;border-bottom-left-radius:3px}.rtl #wp-fullscreen-save img,.rtl #wp-fullscreen-save span{padding-right:0;padding-left:4px}@media print,(-o-min-device-pixel-ratio:5/4),(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.wp_themeSkin span.mce_undo,.wp_themeSkin span.mce_redo,.wp_themeSkin span.mce_bullist,.wp_themeSkin span.mce_numlist,.wp_themeSkin span.mce_blockquote,.wp_themeSkin span.mce_charmap,.wp_themeSkin span.mce_bold,.wp_themeSkin span.mce_italic,.wp_themeSkin span.mce_underline,.wp_themeSkin span.mce_justifyleft,.wp_themeSkin span.mce_justifyright,.wp_themeSkin span.mce_justifycenter,.wp_themeSkin span.mce_justifyfull,.wp_themeSkin span.mce_indent,.wp_themeSkin span.mce_outdent,.wp_themeSkin span.mce_link,.wp_themeSkin span.mce_unlink,.wp_themeSkin span.mce_help,.wp_themeSkin span.mce_removeformat,.wp_themeSkin span.mce_fullscreen,.wp_themeSkin span.mce_wp_fullscreen,.wp_themeSkin span.mce_media,.wp_themeSkin span.mce_pastetext,.wp_themeSkin span.mce_
 pasteword,.wp_themeSkin span.mce_wp_help,.wp_themeSkin span.mce_wp_adv,.wp_themeSkin span.mce_wp_more,.wp_themeSkin span.mce_strikethrough,.wp_themeSkin span.mce_spellchecker,.wp_themeSkin span.mce_forecolor,.wp_themeSkin .mce_forecolorpicker,.wp_themeSkin .mceSplitButton .mce_spellchecker span.mce_spellchecker,.wp_themeSkin .mceSplitButton .mce_forecolor span.mce_forecolor,.wp_themeSkin .mceSplitButton span.mce_numlist,.wp_themeSkin .mceSplitButton span.mce_bullist{background-image:url('../images/wpicons-2x.png?ver=20120720');background-size:560px 40px}.wp-media-buttons .add_media span.wp-media-buttons-icon,#wp-fullscreen-buttons #wp_fs_image span.mce_image{background-image:url('../../wp-admin/images/media-button-2x.png');background-size:16px 16px}.wp_themeSkin .mceListBox .mceOpen,.wp_themeSkin .mceListBoxHover .mceOpen,.wp_themeSkin .mceListBoxSelected .mceOpen,.wp_themeSkin table.mceListBoxEnabled .mceOpen{background-image:url('../images/down_arrow-2x.gif');background-si
 ze:10px 20px}.wp_themeSkin .mceSplitButtonEnabled a.mceOpen,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin .mceSplitButtonActive a.mceOpen,.wp_themeSkin .mceSplitButtonEnabled:hover a.mceOpen{background-image:url('../images/down_arrow-2x.gif');background-size:10px 20px}#wp-link .toggle-arrow{background:transparent url('../images/toggle-arrow-2x.png') top left no-repeat;background-size:19px 69px}}
</del><span class="cx">\ No newline at end of file
</span><ins>+.wp_themeSkin table,.wp_themeSkin tbody,.wp_themeSkin a,.wp_themeSkin img,.wp_themeSkin tr,.wp_themeSkin div,.wp_themeSkin td,.wp_themeSkin iframe,.wp_themeSkin span,.wp_themeSkin *,.wp_themeSkin .mceText{border:0;margin:0;padding:0;white-space:nowrap;text-decoration:none;font-weight:normal;cursor:default;vertical-align:baseline;width:auto;border-collapse:separate}.wp_themeSkin a:hover,.wp_themeSkin a:link,.wp_themeSkin a:visited,.wp_themeSkin a:active{text-decoration:none;font-weight:normal;cursor:default}.wp_themeSkin table td{vertical-align:middle}.wp_themeSkin *,.wp_themeSkin a:hover,.wp_themeSkin a:link,.wp_themeSkin a:visited,.wp_themeSkin a:active{color:#555}.wp_themeSkin iframe{display:block}.wp_themeSkin #mce_fullscreen_ifr{background-color:#fff}.wp_themeSkin .mceToolbar{padding:1px}.wp_themeSkin .mceExternalToolbar{position:absolute;border-bottom:0;display:none}.wp_themeSkin .mceExternalToolbar td.mceToolbar{padding-right:13px}.wp_themeSkin .mceExternal
 Close{position:absolute;top:3px;right:3px;width:7px;height:7px;background:url(&quot;../js/tinymce/themes/advanced/img/icons.gif&quot;) -820px 0}.wp_themeSkin table.mceToolbar,.wp_themeSkin tr.mceFirst .mceToolbar tr td,.wp_themeSkin tr.mceLast .mceToolbar tr td{border:0;margin:0;padding:0}.wp_themeSkin table.mceLayout{border:0}.wp_themeSkin .mceStatusbar{display:block;font-family:sans-serif;font-size:12px;line-height:16px;padding:0 0 0 8px;overflow:visible;height:20px;border-top:1px solid #dfdfdf;color:#000;background-color:#f5f5f5}.rtl .wp_themeSkin .mceStatusbar{padding:0 8px 0 0}.wp_themeSkin .mceStatusbar *{color:#555}.wp_themeSkin .mceStatusbar div{float:left;padding:2px}.rtl .wp_themeSkin .mceStatusbar div{float:right}.wp_themeSkin .mceStatusbar a.mceResize{display:block;float:right;background:url(&quot;../js/tinymce/themes/advanced/img/icons.gif&quot;) -800px 0;width:20px;height:20px;cursor:se-resize}.rtl .wp_themeSkin .mceStatusbar a.mceResize{float:left}.wp_themeSki
 n .mceStatusbar a:hover{text-decoration:underline}.wp_themeSkin table.mceToolbar{margin:0 6px 2px}.wp_themeSkin table.mceToolbar :active,.wp_themeSkin table.mceToolbar :focus,.wp_themeSkin table.mceToolbar:focus,.wp_themeSkin span.mceSeparator:focus{outline:0}.wp_themeSkin #content_toolbar1{margin-top:2px}.wp_themeSkin .mceToolbar .mceToolbarEndListBox span{display:none}.wp_themeSkin span.mceIcon,.wp_themeSkin img.mceIcon{display:block;width:20px;height:20px}.wp_themeSkin .mceIcon{background:url(&quot;../js/tinymce/themes/advanced/img/icons.gif&quot;) no-repeat 20px 20px}.wp_themeSkin .mceButton{display:block;width:20px;height:20px;cursor:default;padding:1px 2px;margin:1px;-webkit-border-radius:2px;border-radius:2px}.wp_themeSkin a.mceButtonEnabled:hover{background-image:inherit 0 -10px}.wp_themeSkin .mceOldBoxModel a.mceButton span,.wp_themeSkin .mceOldBoxModel a.mceButton img{margin:0 0 0 1px}.wp_themeSkin .mceButtonDisabled .mceIcon{opacity:.2;filter:alpha(opacity=20)}.wp
 _themeSkin .mceSeparator{display:none}.wp_themeSkin .mceListBox,.wp_themeSkin .mceListBox a{display:block}.wp_themeSkin .mceListBox .mceText{padding:1px 4px 1px 5px;width:70px;text-align:left;text-decoration:none;-webkit-border-bottom-left-radius:2px;-webkit-border-top-left-radius:2px;border-bottom-left-radius:2px;border-top-left-radius:2px;font-family:sans-serif;font-size:12px;height:20px;line-height:20px;overflow:hidden}.wp_themeSkin .mceListBox{margin:1px;direction:ltr;background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.2);box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.2)}.wp_themeSkin .mceListBox .mceOpen{width:12px;height:20px;border-collapse:separate;padding:1px;-webkit-border-bottom-left-radius:0;-webkit-border-top-left-radius:0;border-bottom-left-radius:0;border-top-left-radius:0}.wp_themeSkin .mceListBox .mceFirst a{border-style:solid;border-width:1px;border-bottom-right-radius:2px;border-top-right-radius:2px}.wp_themeSkin .m
 ceListBox .mceOpen,.wp_themeSkin .mceListBoxHover .mceOpen,.wp_themeSkin .mceListBoxSelected .mceOpen,.wp_themeSkin table.mceListBoxEnabled .mceOpen{background-image:url(&quot;../images/down_arrow.gif&quot;);background-position:3px 1px;background-repeat:no-repeat}.wp_themeSkin .mceListBoxDisabled .mceText{color:gray}.wp_themeSkin .mceListBoxMenu{overflow:auto;overflow-x:hidden}.wp_themeSkin .mceOldBoxModel .mceListBox .mceText{height:22px}.wp_themeSkin select.mceListBox{font-family:sans-serif;font-size:12px;border-color:#b2b2b2;background-color:#fff}.wp_themeSkin .mceSplitButton a,.wp_themeSkin .mceSplitButton span{display:block;height:20px}.wp_themeSkin .mceSplitButton{display:block;direction:ltr}.wp_themeSkin table.mceSplitButton td{padding:2px;-webkit-border-radius:2px;border-radius:2px}.wp_themeSkin table.mceSplitButton:hover td{background-image:inherit 0 -10px}.wp_themeSkin .mceSplitButton a.mceAction{height:20px;width:20px;padding:1px 2px;border-right:0 none}.wp_themeS
 kin .mceSplitButton span.mceAction{background-image:url(&quot;../js/tinymce/themes/advanced/img/icons.gif&quot;);background-repeat:no-repeat;background-color:transparent;width:20px}.wp_themeSkin .mceSplitButton a.mceOpen{width:11px;height:20px;background-position:0 2px;background-repeat:no-repeat;padding:1px 0}.wp_themeSkin .mceSplitButton span.mceOpen{display:none}.wp_themeSkin .mceSplitButtonDisabled .mceAction{opacity:.3;filter:alpha(opacity=30)}.wp_themeSkin .mceListBox a.mceText,.wp_themeSkin .mceSplitButton a.mceAction{-webkit-border-bottom-left-radius:2px;-webkit-border-top-left-radius:2px;border-bottom-left-radius:2px;border-top-left-radius:2px}.wp_themeSkin .mceSplitButton a.mceOpen,.wp_themeSkin .mceListBox a.mceOpen{-webkit-border-bottom-right-radius:2px;-webkit-border-top-right-radius:2px;border-bottom-right-radius:2px;border-top-right-radius:2px}.wp_themeSkin span.mce_undo,.wp_themeSkin span.mce_redo,.wp_themeSkin span.mce_bullist,.wp_themeSkin span.mce_numlist,
 .wp_themeSkin span.mce_blockquote,.wp_themeSkin span.mce_charmap,.wp_themeSkin span.mce_bold,.wp_themeSkin span.mce_italic,.wp_themeSkin span.mce_underline,.wp_themeSkin span.mce_justifyleft,.wp_themeSkin span.mce_justifyright,.wp_themeSkin span.mce_justifycenter,.wp_themeSkin span.mce_justifyfull,.wp_themeSkin span.mce_indent,.wp_themeSkin span.mce_outdent,.wp_themeSkin span.mce_link,.wp_themeSkin span.mce_unlink,.wp_themeSkin span.mce_help,.wp_themeSkin span.mce_removeformat,.wp_themeSkin span.mce_fullscreen,.wp_themeSkin span.mce_wp_fullscreen,.wp_themeSkin span.mce_media,.wp_themeSkin span.mce_pastetext,.wp_themeSkin span.mce_pasteword,.wp_themeSkin span.mce_wp_help,.wp_themeSkin span.mce_wp_adv,.wp_themeSkin span.mce_wp_more,.wp_themeSkin span.mce_strikethrough,.wp_themeSkin span.mce_spellchecker,.wp_themeSkin span.mce_forecolor,.wp_themeSkin .mce_forecolorpicker,.wp_themeSkin .mceSplitButton .mce_spellchecker span.mce_spellchecker,.wp_themeSkin .mceSplitButton .mce_for
 ecolor span.mce_forecolor,.wp_themeSkin .mceSplitButton span.mce_numlist,.wp_themeSkin .mceSplitButton span.mce_bullist{background-image:url('../images/wpicons.png?ver=20120720')}.wp_themeSkin div.mceColorSplitMenu table{background-color:#ebebeb;border-color:#bbb}.wp_themeSkin .mceColorSplitMenu td{padding:2px}.wp_themeSkin .mceColorSplitMenu a{display:block;width:9px;height:9px;overflow:hidden;border-color:#b2b2b2}.wp_themeSkin .mceColorSplitMenu td.mceMoreColors{padding:1px 3px 1px 1px}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors{width:100%;height:auto;text-align:center;font-family:Tahoma,Verdana,Arial,Helvetica;font-size:11px;line-height:20px;border-color:#fff}.wp_themeSkin .mceColorPreview{margin:-5px 0 0 2px;width:16px;height:4px;overflow:hidden}.wp_themeSkin .mceMenu{position:absolute;left:0;top:0;z-index:1000;border-color:#ddd;direction:ltr}.wp_themeSkin .mceNoIcons span.mceIcon{width:0}.wp_themeSkin .mceNoIcons a .mceText{padding-left:10px}.wp_themeSkin .mceMenu 
 table{background-color:#ebeaeb}.wp_themeSkin .mceMenu a,.wp_themeSkin .mceMenu span,.wp_themeSkin .mceMenu{display:block}.wp_themeSkin .mceMenu td{height:20px;overflow:hidden}.wp_themeSkin .mceMenu a{position:relative;padding:3px 0 4px 0;text-decoration:none!important}.wp_themeSkin .mceMenu .mceText{position:relative;display:block;font-family:Tahoma,Verdana,Arial,Helvetica;cursor:default;margin:0;padding:0 25px;color:#000}.wp_themeSkin .mceMenu span.mceText,.wp_themeSkin .mceMenu .mcePreview{font-size:12px}.wp_themeSkin .mceMenu pre.mceText{font-family:Monospace}.wp_themeSkin .mceMenu .mceIcon{position:absolute;top:0;left:0;width:22px}.wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover,.wp_themeSkin .mceMenu .mceMenuItemActive{background-color:#f5f5f5}.wp_themeSkin td.mceMenuItemSeparator{height:1px;background-color:#aaa}.wp_themeSkin .mceMenuItemTitle a{border-top:0;border-right:0;border-left:0;border-bottom:1px solid #aaa;text-decoration:none!important;background-color:#ccc
 }.wp_themeSkin .mceMenuItemTitle span.mceText{font-weight:bold;padding-left:4px;color:#000}.wp_themeSkin .mceMenuItemSelected .mceIcon{background:url(&quot;../js/tinymce/themes/advanced/skins/default/img/menu_check.gif&quot;);color:#888}.wp_themeSkin .mceNoIcons .mceMenuItemSelected a{background:url(&quot;../js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif&quot;) no-repeat -6px center}.wp_themeSkin .mceMenu span.mceMenuLine{display:none}.wp_themeSkin .mceMenuItemSub a{background:url(&quot;../js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif&quot;) no-repeat top right}.wp_themeSkin .mceBlocker{position:absolute;left:0;top:0;z-index:1000;opacity:.5;filter:alpha(opacity=50);background:#FFF}.wp_themeSkin .mceProgress{position:absolute;left:0;top:0;z-index:1001;background:url(&quot;../js/tinymce/themes/advanced/skins/default/img/progress.gif&quot;) no-repeat;width:32px;height:32px;margin:-16px 0 0 -16px}.wp_themeSkin .mcePlaceHolder{border:1px dotted gray}.mc
 eRtl .mceListBox .mceText{text-align:right;padding:0 4px 0 0}.mceRtl .mceMenuItem .mceText{text-align:right}.wp_themeSkin .mce_address span.mceText{font-style:italic}.wp_themeSkin .mce_pre span.mceText{font-family:monospace}.wp_themeSkin .mce_h1 span.mceText{font-weight:bolder;font-size:17px}.wp_themeSkin .mce_h2 span.mceText{font-weight:bolder;font-size:16px}.wp_themeSkin .mce_h3 span.mceText{font-weight:bolder;font-size:15px}.wp_themeSkin .mce_h4 span.mceText{font-weight:bolder;font-size:14px}.wp_themeSkin .mce_h5 span.mceText{font-weight:bolder;font-size:13px}.wp_themeSkin .mce_h6 span.mceText{font-weight:bolder;font-size:12px}.wp_themeSkin span.mce_undo{background-position:-500px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_undo,.wp_themeSkin .mceButtonActive span.mce_undo{background-position:-500px 0}.wp_themeSkin span.mce_redo{background-position:-480px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_redo,.wp_themeSkin .mceButtonActive span.mce_redo{backgr
 ound-position:-480px 0}.wp_themeSkin span.mce_bullist{background-position:-40px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_bullist,.wp_themeSkin .mceButtonActive span.mce_bullist,.wp_themeSkin .mceSplitButton:hover span.mce_bullist{background-position:-40px 0}.wp_themeSkin span.mce_numlist{background-position:-60px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_numlist,.wp_themeSkin .mceButtonActive span.mce_numlist,.wp_themeSkin .mceSplitButton:hover span.mce_numlist{background-position:-60px 0}.wp_themeSkin span.mce_blockquote{background-position:-80px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_blockquote,.wp_themeSkin .mceButtonActive span.mce_blockquote{background-position:-80px 0}.wp_themeSkin span.mce_charmap{background-position:-420px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_charmap,.wp_themeSkin .mceButtonActive span.mce_charmap{background-position:-420px 0}.wp_themeSkin span.mce_bold{background-position:0 -20px}.wp_themeSkin .mc
 eButtonEnabled:hover span.mce_bold,.wp_themeSkin .mceButtonActive span.mce_bold{background-position:0 0}.wp_themeSkin span.mce_italic{background-position:-20px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_italic,.wp_themeSkin .mceButtonActive span.mce_italic{background-position:-20px 0}.wp_themeSkin span.mce_underline{background-position:-280px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_underline,.wp_themeSkin .mceButtonActive span.mce_underline{background-position:-280px 0}.wp_themeSkin span.mce_justifyleft{background-position:-100px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_justifyleft,.wp_themeSkin .mceButtonActive span.mce_justifyleft{background-position:-100px 0}.wp_themeSkin span.mce_justifyright{background-position:-140px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_justifyright,.wp_themeSkin .mceButtonActive span.mce_justifyright{background-position:-140px 0}.wp_themeSkin span.mce_justifycenter{background-position:-120px -20px}.wp
 _themeSkin .mceButtonEnabled:hover span.mce_justifycenter,.wp_themeSkin .mceButtonActive span.mce_justifycenter{background-position:-120px 0}.wp_themeSkin span.mce_justifyfull{background-position:-300px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_justifyfull,.wp_themeSkin .mceButtonActive span.mce_justifyfull{background-position:-300px 0}.wp_themeSkin span.mce_indent{background-position:-460px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_indent,.wp_themeSkin .mceButtonActive span.mce_indent{background-position:-460px 0}.wp_themeSkin span.mce_outdent{background-position:-440px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_outdent,.wp_themeSkin .mceButtonActive span.mce_outdent{background-position:-440px 0}.wp_themeSkin span.mce_link{background-position:-160px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_link,.wp_themeSkin .mceButtonActive span.mce_link{background-position:-160px 0}.wp_themeSkin span.mce_unlink{background-position:-180px -20px}.
 wp_themeSkin .mceButtonEnabled:hover span.mce_unlink,.wp_themeSkin .mceButtonActive span.mce_unlink{background-position:-180px 0}.wp_themeSkin span.mce_help{background-position:-520px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_help,.wp_themeSkin .mceButtonActive span.mce_help{background-position:-520px 0}.wp_themeSkin span.mce_removeformat{background-position:-380px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_removeformat,.wp_themeSkin .mceButtonActive span.mce_removeformat{background-position:-380px 0}.wp_themeSkin span.mce_strikethrough{background-position:-540px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_strikethrough,.wp_themeSkin .mceButtonActive span.mce_strikethrough{background-position:-540px 0}.wp_themeSkin .mceSplitButton .mce_forecolor span.mce_forecolor{background-position:-320px -20px}.wp_themeSkin .mceSplitButtonEnabled:hover span.mce_forecolor,.wp_themeSkin .mceSplitButtonSelected span.mce_forecolor{background-position:-320px 0}.wp
 _themeSkin .mce_forecolorpicker{background-position:-320px -20px}.wp_themeSkin span.mce_fullscreen{background-position:-240px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_fullscreen,.wp_themeSkin .mceButtonActive span.mce_fullscreen{background-position:-240px 0}.wp_themeSkin span.mce_wp_fullscreen{background-position:-240px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_wp_fullscreen,.wp_themeSkin .mceButtonActive span.mce_wp_fullscreen{background-position:-240px 0}.wp_themeSkin span.mce_media{background-position:-400px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_media,.wp_themeSkin .mceButtonActive span.mce_media{background-position:-400px 0}.wp_themeSkin span.mce_pastetext{background-position:-340px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_pastetext,.wp_themeSkin .mceButtonActive span.mce_pastetext{background-position:-340px 0}.wp_themeSkin span.mce_pasteword{background-position:-360px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_
 pasteword,.wp_themeSkin .mceButtonActive span.mce_pasteword{background-position:-360px 0}.wp_themeSkin span.mce_spellchecker{background-position:-220px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_spellchecker,.wp_themeSkin .mceSplitButtonEnabled:hover span.mce_spellchecker,.wp_themeSkin .mceButtonActive span.mce_spellchecker,.wp_themeSkin .mceSplitButtonSelected span.mce_spellchecker{background-position:-220px 0}.wp_themeSkin span.mce_wp_help{background-position:-520px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_wp_help,.wp_themeSkin .mceButtonActive span.mce_wp_help{background-position:-520px 0}.wp_themeSkin span.mce_wp_adv{background-position:-260px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_wp_adv,.wp_themeSkin .mceButtonActive span.mce_wp_adv{background-position:-260px 0}.wp_themeSkin span.mce_wp_more{background-position:-200px -20px}.wp_themeSkin .mceButtonEnabled:hover span.mce_wp_more,.wp_themeSkin .mceButtonActive span.mce_wp_more{backgrou
 nd-position:-200px 0}.wp_themeSkin span.mce_cleanup{background-position:-380px -20px}.wp_themeSkin span.mce_anchor{background-position:-200px 0}.wp_themeSkin span.mce_sub{background-position:-600px 0}.wp_themeSkin span.mce_sup{background-position:-620px 0}.wp_themeSkin span.mce_newdocument{background-position:-520px 0}.wp_themeSkin span.mce_image{background-position:-380px 0}.wp_themeSkin span.mce_code{background-position:-260px 0}.wp_themeSkin span.mce_hr{background-position:-360px 0}.wp_themeSkin span.mce_visualaid{background-position:-660px 0}.wp_themeSkin span.mce_paste{background-position:-560px 0}.wp_themeSkin span.mce_copy{background-position:-700px 0}.wp_themeSkin span.mce_cut{background-position:-680px 0}.wp_themeSkin .mce_backcolor span.mceAction{background-position:-760px 0}.wp_themeSkin .mce_backcolorpicker{background-position:-760px 0}.wp_themeSkin span.mce_advhr{background-position:-0px -20px}.wp_themeSkin span.mce_ltr{background-position:-20px -20px}.wp_themeS
 kin span.mce_rtl{background-position:-40px -20px}.wp_themeSkin span.mce_emotions{background-position:-60px -20px}.wp_themeSkin span.mce_fullpage{background-position:-80px -20px}.wp_themeSkin span.mce_iespell{background-position:-120px -20px}.wp_themeSkin span.mce_insertdate{background-position:-140px -20px}.wp_themeSkin span.mce_inserttime{background-position:-160px -20px}.wp_themeSkin span.mce_absolute{background-position:-180px -20px}.wp_themeSkin span.mce_backward{background-position:-200px -20px}.wp_themeSkin span.mce_forward{background-position:-220px -20px}.wp_themeSkin span.mce_insert_layer{background-position:-240px -20px}.wp_themeSkin span.mce_insertlayer{background-position:-260px -20px}.wp_themeSkin span.mce_movebackward{background-position:-280px -20px}.wp_themeSkin span.mce_moveforward{background-position:-300px -20px}.wp_themeSkin span.mce_nonbreaking{background-position:-340px -20px}.wp_themeSkin span.mce_selectall{background-position:-400px -20px}.wp_themeSki
 n span.mce_preview{background-position:-420px -20px}.wp_themeSkin span.mce_print{background-position:-440px -20px}.wp_themeSkin span.mce_cancel{background-position:-460px -20px}.wp_themeSkin span.mce_save{background-position:-480px -20px}.wp_themeSkin span.mce_replace{background-position:-500px -20px}.wp_themeSkin span.mce_search{background-position:-520px -20px}.wp_themeSkin span.mce_styleprops{background-position:-560px -20px}.wp_themeSkin span.mce_table{background-position:-580px -20px}.wp_themeSkin span.mce_cell_props{background-position:-600px -20px}.wp_themeSkin span.mce_delete_table{background-position:-620px -20px}.wp_themeSkin span.mce_delete_col{background-position:-640px -20px}.wp_themeSkin span.mce_delete_row{background-position:-660px -20px}.wp_themeSkin span.mce_col_after{background-position:-680px -20px}.wp_themeSkin span.mce_col_before{background-position:-700px -20px}.wp_themeSkin span.mce_row_after{background-position:-720px -20px}.wp_themeSkin span.mce_row
 _before{background-position:-740px -20px}.wp_themeSkin span.mce_merge_cells{background-position:-760px -20px}.wp_themeSkin span.mce_table_props{background-position:-980px -20px}.wp_themeSkin span.mce_row_props{background-position:-780px -20px}.wp_themeSkin span.mce_split_cells{background-position:-800px -20px}.wp_themeSkin span.mce_template{background-position:-820px -20px}.wp_themeSkin span.mce_visualchars{background-position:-840px -20px}.wp_themeSkin span.mce_abbr{background-position:-860px -20px}.wp_themeSkin span.mce_acronym{background-position:-880px -20px}.wp_themeSkin span.mce_attribs{background-position:-900px -20px}.wp_themeSkin span.mce_cite{background-position:-920px -20px}.wp_themeSkin span.mce_del{background-position:-940px -20px}.wp_themeSkin span.mce_ins{background-position:-960px -20px}.wp_themeSkin span.mce_pagebreak{background-position:0 -40px}.wp_themeSkin span.mce_restoredraft{background-position:-20px -40px}.wp_themeSkin span.mce_visualblocks{background
 -position:-40px -40px}.wp_themeSkin .mceExternalToolbar,.wp_themeSkin .mceButton,.wp_themeSkin a.mceButtonEnabled:hover,.wp_themeSkin a.mceButtonActive,.wp_themeSkin a.mceButtonSelected,.wp_themeSkin .mceListBox .mceText,.wp_themeSkin .mceListBox .mceOpen,.wp_themeSkin select.mceListBox,.wp_themeSkin .mceSplitButton a.mceAction,.wp_themeSkin .mceSplitButton a.mceOpen,.wp_themeSkin .mceSplitButton a.mceOpen:hover,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction,.wp_themeSkin .mceSplitButton a.mceAction:hover,.wp_themeSkin div.mceColorSplitMenu table,.wp_themeSkin .mceColorSplitMenu a,.wp_themeSkin .mceColorSplitMenu a.mceMoreColors,.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover,.wp_themeSkin a.mceMoreColors:hover,.wp_themeSkin .mceMenu{border-style:solid;border-width:1px}.wp_themeSkin .mceListBox .mceText{border-right:0 none}.wp_themeSkin iframe{background:transparent}.wp_themeSkin .mceButton{border-color:tran
 sparent}.wp_themeSkin .mceListBox .mceText,.wp_themeSkin .mceListBox .mceOpen{border-color:transparent}.wp_themeSkin a.mceButtonEnabled:hover,.wp_themeSkin table.mceSplitButton:hover{border-color:#bbb;background:#eee;background-image:-webkit-gradient(linear,left bottom,left top,from(#e5e5e5),to(#fff));background-image:-webkit-linear-gradient(bottom,#e5e5e5,#fff);background-image:-moz-linear-gradient(bottom,#e5e5e5,#fff);background-image:-o-linear-gradient(bottom,#e5e5e5,#fff);background-image:linear-gradient(to top,#e5e5e5,#fff)}.wp_themeSkin a.mceButton:active,.wp_themeSkin a.mceButtonEnabled:active,.wp_themeSkin a.mceButtonSelected:active,.wp_themeSkin a.mceButtonActive,.wp_themeSkin a.mceButtonActive:active,.wp_themeSkin a.mceButtonActive:hover,.wp_themeSkin .mceSplitButtonSelected table,.wp_themeSkin .mceSplitButtonSelected table:hover{outline:0;border-color:#999 #ccc #ccc #999;background:#eee;background-image:-webkit-gradient(linear,left bottom,left top,from(#f6f6f6),to
 (#e3e3e3));background-image:-webkit-linear-gradient(bottom,#f6f6f6,#e3e3e3);background-image:-moz-linear-gradient(bottom,#f6f6f6,#e3e3e3);background-image:-o-linear-gradient(bottom,#f6f6f6,#e3e3e3);background-image:linear-gradient(to top,#f6f6f6,#e3e3e3)}.wp_themeSkin .mceSplitButtonSelected table a.mceOpen,.wp_themeSkin .mceSplitButtonSelected table a.mceAction{border-color:#999 #ccc #ccc #999}.wp_themeSkin .mceButtonDisabled{border-color:transparent}.wp_themeSkin .mceListBox .mceOpen{border-left:0}.wp_themeSkin .mceListBoxEnabled:hover,.wp_themeSkin .mceListBoxEnabled:active,.wp_themeSkin .mceListBoxHover,.wp_themeSkin .mceListBoxHover:active,.wp_themeSkin .mceListBoxSelected{-webkit-box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.3);box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.3);border-color:#bbb}.wp_themeSkin .mceSplitButton .mceLast span.mceOpen .mceIconOnly{display:block}.wp_themeSkin .mceSplitButton a.mceAction,.wp_themeSkin .mceSplitButton a.mceOpen{border-color:transpar
 ent}.wp_themeSkin .mceSplitButton:hover a{border-color:#bbb}.wp_themeSkin .mceSplitButtonEnabled a.mceOpen,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin .mceSplitButtonActive a.mceOpen,.wp_themeSkin .mceSplitButtonEnabled:hover a.mceOpen{background-image:url(&quot;../images/down_arrow.gif&quot;);background-position:1px 2px;background-repeat:no-repeat;border-left:0}.wp_themeSkin .mceSplitButtonActive td{-webkit-border-radius:3px;border-radius:3px}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover{border-color:#0a246a;background-color:#b6bdd2}.wp_themeSkin a.mceMoreColors:hover{border-color:#0a246a}.wp_themeSkin .mceMenuItemDisabled .mceText{color:#888}#mceModalBlocker{background:#000}.wp-editor-wrap{position:relative}.wp-editor-area{font-family:Consolas,Monaco,monospace;padding:10px;margin:1px 0 0;line-height:150%;border:0 none;outline:0;display:block;resize:vertical;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.wp-editor-
 tools{height:30px;padding:0 10px 0 0}.rtl .wp-editor-tools{padding:0 0 0 10px}.wp-editor-container{border-width:1px;border-style:solid;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-color:#ccc #ccc #dfdfdf}.wp-editor-container textarea.wp-editor-area{width:100%;margin:0;-webkit-box-shadow:none;box-shadow:none}.quicktags-toolbar,.wp_themeSkin tr.mceFirst td.mceToolbar{border-bottom:1px solid #d1d1d1;background:#eee;background-image:-webkit-gradient(linear,left bottom,left top,from(#e5e5e5),to(#f4f4f4));background-image:-webkit-linear-gradient(bottom,#e5e5e5,#f4f4f4);background-image:-moz-linear-gradient(bottom,#e5e5e5,#f4f4f4);background-image:-o-linear-gradient(bottom,#e5e5e5,#f4f4f4);background-image:linear-gradient(to top,#e5e5e5,#f4f4f4)}.wp-switch-editor{height:18px;font:13px/18px Arial,Helvetica,sans-serif normal;margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border-
 width:1px;border-style:solid;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;background-color:#f1f1f1;border-color:#dfdfdf #dfdfdf #ccc;color:#999}html[dir=&quot;rtl&quot;] .wp-switch-editor{float:left}.wp-switch-editor:active{background-color:#f1f1f1}.wp-switch-editor:hover{text-decoration:none!important}.js .tmce-active .wp-editor-area{color:white}.tmce-active .quicktags-toolbar{display:none}.tmce-active .switch-tmce,.html-active .switch-html{border-color:#ccc #ccc #f4f4f4;background-color:#f4f4f4;color:#555}.wp-media-buttons .button{margin-right:5px}.rtl .wp-media-buttons .button{margin-right:0;margin-left:5px}.wp-media-buttons .insert-media{padding-left:.4em}.rtl .wp-media-buttons .insert-media{padding-left:10px;padding-right:.4em}.wp-media-buttons a{text-decoration:none;color:#464646;font-size:12px}.wp-media-buttons img{padding:0 4px;vertical-align:middle}.wp-media-buttons span.wp-media-button
 s-icon{display:inline-block;width:16px;height:16px;vertical-align:text-top;margin:0 2px}.wp-media-buttons .add_media span.wp-media-buttons-icon{background:url('../../wp-admin/images/media-button.png') no-repeat top left}.quicktags-toolbar{border-bottom-style:solid;border-bottom-width:1px;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;padding:2px 8px 0;min-height:29px}.quicktags-toolbar&gt;div{padding:2px 4px 0}.quicktags-toolbar input{margin:2px 1px 4px;line-height:18px;display:inline-block;min-width:26px;padding:2px 4px;font:12px/18px Arial,Helvetica,sans-serif normal;color:#464646;border:1px solid #c3c3c3;-webkit-border-radius:3px;border-radius:3px;background:#eee;background-image:-webkit-gradient(linear,left bottom,left top,from(#e3e3e3),to(#fff));background-image:-webkit-linear-gradient(bottom,#e3e3e3,#fff);background-image:-moz-linear-gradient(bottom,#e3e3e3,#fff);background-image:-o-linear-g
 radient(bottom,#e3e3e3,#fff);background-image:linear-gradient(to top,#e3e3e3,#fff)}.quicktags-toolbar input:hover{border-color:#aaa;background:#ddd}.quicktags-toolbar input[value=&quot;link&quot;]{text-decoration:underline}.quicktags-toolbar input[value=&quot;del&quot;]{text-decoration:line-through}.quicktags-toolbar input[value=&quot;i&quot;]{font-style:italic}.quicktags-toolbar input[value=&quot;b&quot;]{font-weight:bold}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:155000}#wp_editimgbtn,#wp_delimgbtn,#wp_editgallery,#wp_delgallery{border-color:#999;background-color:#eee;margin:2px;padding:2px;border-width:1px;border-style:solid;-webkit-border-radius:3px;border-radius:3px}#wp_editimgbtn:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_delgallery:hover{border-color:#555;background-color:#ccc}#wp-link{background-color:#f5f5f5;line-height:1.4em;font-size:12px}#wp-link ol,#wp-link ul{list-style:none;margin:0;padding:0}#wp-link input[type=&q
 uot;text&quot;]{-webkit-box-sizing:border-box}#wp-link input[type=&quot;text&quot;],#wp-link textarea{border-width:1px;border-style:solid;-webkit-border-radius:4px;border-radius:4px;font-size:12px;margin:1px;padding:3px}#wp-link #link-options{padding:10px 0 14px;border-bottom:1px solid #dfdfdf;margin:0 6px 14px}#wp-link p.howto{margin:3px}#wp-link #internal-toggle{display:inline-block;cursor:pointer;padding-left:18px}#wp-link .toggle-arrow{background:transparent url('../images/toggle-arrow.png') top left no-repeat;height:23px;line-height:23px}#wp-link .toggle-arrow-active{background-position:center left}#wp-link label input[type=&quot;text&quot;]{width:360px;margin-top:5px}#wp-link #link-options label span,#wp-link #search-panel label span.search-label{display:inline-block;width:80px;text-align:right;padding-right:5px}#wp-link .link-search-field{float:left;width:220px}#wp-link .link-search-wrapper{margin:5px 6px 9px;display:block;overflow:hidden}#wp-link .link-search-wrapper
  span{float:left;margin-top:4px}#wp-link .link-search-wrapper .spinner{display:none;vertical-align:text-bottom}#wp-link .link-target{width:auto;padding:3px 0 0;margin:0 0 0 87px;font-size:11px}#wp-link .query-results{border:1px #dfdfdf solid;margin:0 5px 5px;background:#fff;height:185px;overflow:auto;position:relative}#wp-link li,#wp-link .query-notice{clear:both;margin-bottom:0;border-bottom:1px solid #f1f1f1;color:#333;padding:4px 6px;cursor:pointer;position:relative}#wp-link li:hover{background:#eaf2fa;color:#151515}#wp-link li.unselectable{border-bottom:1px solid #dfdfdf}#wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#333}#wp-link li.selected{background:#ddd;color:#333}#wp-link li.selected .item-title{font-weight:bold}#wp-link .item-title{display:inline-block;width:80%}#wp-link .item-info{text-transform:uppercase;color:#666;font-size:11px;position:absolute;right:5px;top:4px;bottom:0}#wp-link #search-results{display:none}#wp-link #search-panel{float:left
 ;width:100%}#wp-link .river-waiting{display:none;padding:10px 0}#wp-link .river-waiting .spinner{margin:0 auto;display:block}#wp-link .submitbox{padding:5px 10px;font-size:11px;overflow:auto;height:29px}#wp-link-cancel{line-height:25px;float:left}#wp-link-update{line-height:23px;float:right}.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{position:absolute;left:-99999999px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:after{content:&quot;.&quot;;display:block;height:0;clear:both;visibility:hidden}.ui-helper-clearfix{display:inline-block}/*\*/* html .ui-helper-clearfix{height:1%}.ui-helper-clearfix{display:block}/**/.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{pos
 ition:absolute;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;z-index:99999;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.wp-dialog{position:absolute;width:300px;overflow:hidden}.wp-dialog .ui-dialog-titlebar{position:relative}.wp-dialog .ui-dialog-titleba
 r-close span{display:block;margin:1px}.wp-dialog .ui-dialog-content{position:relative;border:0;padding:0;background:0;overflow:auto;zoom:1}.wp-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em}.wp-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.wp-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.wp-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px}.ui-draggable .ui-dialog-titlebar{cursor:move}.wp-dialog{border:1px solid #999;-webkit-box-shadow:0 0 16px rgba(0,0,0,0.3);box-shadow:0 0 16px rgba(0,0,0,0.3)}.wp-dialog .ui-dialog-title{display:block;text-align:center;padding:1px 0 2px}.wp-dialog .ui-dialog-titlebar{padding:0 1em;background-color:#444;font-weight:bold;font-size:11px;line-height:18px;color:#e5e5e5}.wp-dialog{background-color:#fff;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;border-top-left-radius:
 4px;border-top-right-radius:4px}.wp-dialog .ui-dialog-titlebar{-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}.wp-dialog .ui-dialog-titlebar-close{position:absolute;width:29px;height:16px;top:2px;right:6px;background:url('../js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif') no-repeat -87px -16px;padding:0}.rtl .wp-dialog .ui-dialog-titlebar-close{right:auto;left:6px}.wp-dialog .ui-dialog-titlebar-close:hover,.wp-dialog .ui-dialog-titlebar-close:focus{background-position:-87px -32px}.ui-widget-overlay{background-color:#000;opacity:.6;filter:alpha(opacity=60)}.rtl #wp-link #internal-toggle{padding-right:18px;padding-left:0}.rtl #wp-link #link-options label span,.rtl #wp-link #search-panel label span.search-label{text-align:left;padding-right:0;padding-left:5px}.rtl #wp-link #link-options label #url-field{direction:ltr}.rtl #wp-link .link-search-field,.rtl #wp-link .link-search-wrap
 per span{float:right}.rtl #wp-link .link-target{margin-right:87px;margin-left:0}.rtl #wp-link .item-info{left:5px;right:auto;top:4px;bottom:0}.rtl #wp-link #search-panel{float:right}.rtl #wp-link-cancel{float:right}.rtl #wp-link-update{float:left}.rtl #wp-link .toggle-arrow{background-position:top right}.rtl #wp-link .toggle-arrow-active{background-position:center right}.rtl .wp_themeSkin .mceListBox .mceText{text-align:right}.rtl .wp_themeSkin .mceNoIcons a .mceText{padding-right:10px;padding-left:25px}.rtl .mceListBoxMenu.mceNoIcons{direction:rtl}.clearlooks2 .mceFocus .mceTop .mceLeft{background:#444;border-left:1px solid #999;border-top:1px solid #999;-webkit-border-top-left-radius:3px;border-top-left-radius:3px}.clearlooks2 .mceFocus .mceTop .mceRight{background:#444;border-right:1px solid #999;border-top:1px solid #999;-webkit-border-top-right-radius:3px;border-top-right-radius:3px}.clearlooks2 .mceMiddle .mceLeft{background:#f1f1f1;border-left:1px solid #999}.clearloo
 ks2 .mceMiddle .mceRight{background:#f1f1f1;border-right:1px solid #999}.clearlooks2 .mceBottom{background:#f1f1f1;border-bottom:1px solid #999}.clearlooks2 .mceBottom .mceLeft{background:#f1f1f1;border-bottom:1px solid #999;border-left:1px solid #999}.clearlooks2 .mceBottom .mceCenter{background:#f1f1f1;border-bottom:1px solid #999}.clearlooks2 .mceBottom .mceRight{background:#f1f1f1;border-bottom:1px solid #999;border-right:1px solid #999}.clearlooks2 .mceFocus .mceTop span{color:#e5e5e5}.fullscreen-overlay{z-index:149999;display:none;position:fixed;top:0;bottom:0;left:0;right:0;filter:inherit}.fullscreen-active .fullscreen-overlay,.fullscreen-active #wp-fullscreen-body{display:block}.fullscreen-fader{z-index:200000}.fullscreen-active .fullscreen-fader{display:none}#wp-fullscreen-body{width:100%;z-index:150005;display:none;position:absolute;top:0;left:0;font-size:12px}#wp-fullscreen-wrap{margin:0 auto 50px;position:relative;padding-top:60px}#wp-fullscreen-title{font-size:1
 .7em;line-height:100%;outline:medium none;padding:6px 7px;width:100%;margin-bottom:30px}#wp-fullscreen-container{padding:4px 10px 50px}#wp-fullscreen-title,#wp-fullscreen-container{-webkit-border-radius:0;border-radius:0;border:1px dashed transparent;background:transparent;-moz-transition-property:border-color;-moz-transition-duration:.6s;-webkit-transition-property:border-color;-webkit-transition-duration:.6s;-o-transition-property:border-color;-o-transition-duration:.6s;transition-property:border-color;transition-duration:.6s}#wp_mce_fullscreen{width:100%;min-height:300px;border:0;background:transparent;font-family:Consolas,Monaco,monospace;line-height:1.6em;padding:0;overflow-y:hidden;outline:0;resize:none}#wp-fullscreen-tagline{color:#bbb;font-size:18px;float:right;padding-top:5px}#fullscreen-topbar{position:fixed;top:0;left:0;z-index:150050;border-bottom-style:solid;border-bottom-width:1px;min-width:800px;width:100%;height:40px}#wp-fullscreen-toolbar{padding:6px 10px 0;
 clear:both;max-width:1100px;min-width:820px;margin:0 auto}#wp-fullscreen-mode-bar,#wp-fullscreen-button-bar,#wp-fullscreen-close,#wp-fullscreen-count{float:left}#wp-fullscreen-save{float:right;padding:2px 2px 0 5px}#wp-fullscreen-count,#wp-fullscreen-close{padding-top:5px}#wp-fullscreen-central-toolbar{margin:auto;padding:0}#wp-fullscreen-buttons&gt;div{float:left}#wp-fullscreen-mode-bar{padding:1px 14px 0 0}#wp-fullscreen-modes a{display:block;font-size:11px;text-decoration:none;float:left;margin:1px 0 0 0;padding:2px 6px 2px;border-width:1px 1px 1px 0;border-style:solid;border-color:#bbb;color:#777;text-shadow:0 1px 0 #fff;background-color:#f4f4f4;background:#f4f4f4;background-image:-webkit-gradient(linear,left bottom,left top,from(#e4e4e4),to(#f9f9f9));background-image:-webkit-linear-gradient(bottom,#e4e4e4,#f9f9f9);background-image:-moz-linear-gradient(bottom,#e4e4e4,#f9f9f9);background-image:-o-linear-gradient(bottom,#e4e4e4,#f9f9f9);background-image:linear-gradient(to 
 top,#e4e4e4,#f9f9f9)}#wp-fullscreen-modes a:hover,.wp-html-mode #wp-fullscreen-modes a:last-child,.wp-tmce-mode #wp-fullscreen-modes a:first-child{color:#333;border-color:#999;background:#eee;background-image:-webkit-gradient(linear,left top,left bottom,from(#e4e4e4),to(#f9f9f9));background-image:-webkit-linear-gradient(top,#e4e4e4,#f9f9f9);background-image:-moz-linear-gradient(top,#e4e4e4,#f9f9f9);background-image:-o-linear-gradient(top,#e4e4e4,#f9f9f9);background-image:linear-gradient(to bottom,#e4e4e4,#f9f9f9)}#wp-fullscreen-modes a:first-child{border-width:1px;-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}#wp-fullscreen-modes a:last-child{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}#wp-fullscreen-buttons .active a{background:inherit}#wp-fullscreen-buttons .hidden{display:none}#wp-fullscreen-buttons .
 disabled{opacity:.5}.wp-html-mode #wp-fullscreen-buttons div{display:none}.wp-html-mode #wp-fullscreen-buttons div.wp-fullscreen-both{display:block}#fullscreen-topbar.fullscreen-make-sticky{display:block!important}#wp-fullscreen-save img{vertical-align:middle}#wp-fullscreen-save img,#wp-fullscreen-save span{padding-right:4px;display:none}#wp-fullscreen-buttons #wp_fs_image span.mce_image{background-image:url('../../wp-admin/images/media-button.png');background-position:2px 2px}.fullscreen-active #TB_overlay{z-index:150100}.fullscreen-active #TB_window{z-index:150102}#wp_mce_fullscreen_ifr{background:transparent}#wp_mce_fullscreen_parent #wp_mce_fullscreen_tbl tr.mceFirst{display:none}#wp-fullscreen-container .wp_themeSkin table td{vertical-align:top}.fullscreen-overlay{background:#fff}.wp-fullscreen-focus #wp-fullscreen-title,.wp-fullscreen-focus #wp-fullscreen-container{border-color:#ccc}#fullscreen-topbar{border-bottom-color:#dfdfdf;background:#f1f1f1;background-image:-web
 kit-gradient(linear,left bottom,left top,from(#ececec),to(#f9f9f9));background-image:-webkit-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-moz-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-o-linear-gradient(bottom,#ececec,#f9f9f9);background-image:linear-gradient(to top,#ececec,#f9f9f9)}.fade-1000,.fade-600,.fade-400,.fade-300{opacity:0;-moz-transition-property:opacity;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.fade-1000{-moz-transition-duration:1s;-webkit-transition-duration:1s;-o-transition-duration:1s;transition-duration:1s}.fade-600{-moz-transition-duration:.6s;-webkit-transition-duration:.6s;-o-transition-duration:.6s;transition-duration:.6s}.fade-400{-moz-transition-duration:.4s;-webkit-transition-duration:.4s;-o-transition-duration:.4s;transition-duration:.4s}.fade-300{-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;transition-duration:.3s}.fade-trigger
 {opacity:1}.rtl #wp-fullscreen-tagline{float:left}.rtl #fullscreen-topbar{left:auto;right:0}.rtl #wp-fullscreen-mode-bar,.rtl #wp-fullscreen-button-bar,.rtl #wp-fullscreen-close,.rtl #wp-fullscreen-count{float:right}.rtl #wp-fullscreen-save{float:left}.rtl #wp-fullscreen-save{padding:2px 5px 0 2px}.rtl #wp-fullscreen-buttons&gt;div{float:right}.rtl #wp-fullscreen-mode-bar{padding:1px 0 0 14px}.rtl #wp-fullscreen-modes a{float:right;border-width:1px 0 1px 1px}.rtl #wp-fullscreen-modes a:first-child{-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:3px;-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:3px;border-width:1px;border-top-left-radius:0;border-top-right-radius:3px;border-bottom-left-radius:0;border-bottom-right-radius:3px}.rtl #wp-fullscreen-modes a:last-child{-webkit-border-top-right-radius:0;-webkit-border-top-left-radius:3px;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:3px;border-top-right-radius:0;bord
 er-top-left-radius:3px;border-bottom-right-radius:0;border-bottom-left-radius:3px}.rtl #wp-fullscreen-save img,.rtl #wp-fullscreen-save span{padding-right:0;padding-left:4px}@media print,(-o-min-device-pixel-ratio:5/4),(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.wp_themeSkin span.mce_undo,.wp_themeSkin span.mce_redo,.wp_themeSkin span.mce_bullist,.wp_themeSkin span.mce_numlist,.wp_themeSkin span.mce_blockquote,.wp_themeSkin span.mce_charmap,.wp_themeSkin span.mce_bold,.wp_themeSkin span.mce_italic,.wp_themeSkin span.mce_underline,.wp_themeSkin span.mce_justifyleft,.wp_themeSkin span.mce_justifyright,.wp_themeSkin span.mce_justifycenter,.wp_themeSkin span.mce_justifyfull,.wp_themeSkin span.mce_indent,.wp_themeSkin span.mce_outdent,.wp_themeSkin span.mce_link,.wp_themeSkin span.mce_unlink,.wp_themeSkin span.mce_help,.wp_themeSkin span.mce_removeformat,.wp_themeSkin span.mce_fullscreen,.wp_themeSkin span.mce_wp_fullscreen,.wp_themeSkin span.mce_media,.wp_them
 eSkin span.mce_pastetext,.wp_themeSkin span.mce_pasteword,.wp_themeSkin span.mce_wp_help,.wp_themeSkin span.mce_wp_adv,.wp_themeSkin span.mce_wp_more,.wp_themeSkin span.mce_strikethrough,.wp_themeSkin span.mce_spellchecker,.wp_themeSkin span.mce_forecolor,.wp_themeSkin .mce_forecolorpicker,.wp_themeSkin .mceSplitButton .mce_spellchecker span.mce_spellchecker,.wp_themeSkin .mceSplitButton .mce_forecolor span.mce_forecolor,.wp_themeSkin .mceSplitButton span.mce_numlist,.wp_themeSkin .mceSplitButton span.mce_bullist{background-image:url('../images/wpicons-2x.png?ver=20120720');background-size:560px 40px}.wp-media-buttons .add_media span.wp-media-buttons-icon,#wp-fullscreen-buttons #wp_fs_image span.mce_image{background-image:url('../../wp-admin/images/media-button-2x.png');background-size:16px 16px}.wp_themeSkin .mceListBox .mceOpen,.wp_themeSkin .mceListBoxHover .mceOpen,.wp_themeSkin .mceListBoxSelected .mceOpen,.wp_themeSkin table.mceListBoxEnabled .mceOpen{background-image:
 url('../images/down_arrow-2x.gif');background-size:10px 20px}.wp_themeSkin .mceSplitButtonEnabled a.mceOpen,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin .mceSplitButtonActive a.mceOpen,.wp_themeSkin .mceSplitButtonEnabled:hover a.mceOpen{background-image:url('../images/down_arrow-2x.gif');background-size:10px 20px}#wp-link .toggle-arrow{background:transparent url('../images/toggle-arrow-2x.png') top left no-repeat;background-size:19px 69px}}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="branches35wpincludesjsmediaeditorminjs"></a>
<div class="modfile"><h4>Modified: branches/3.5/wp-includes/js/media-editor.min.js (23279 => 23280)</h4>
<pre class="diff"><span>
<span class="info">--- branches/3.5/wp-includes/js/media-editor.min.js        2013-01-04 22:34:43 UTC (rev 23279)
+++ branches/3.5/wp-includes/js/media-editor.min.js        2013-01-04 22:36:35 UTC (rev 23280)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(b){var a={};wp.media.string={props:function(f,i){var h,c,e,g,d;d=function(j){if(&quot;image&quot;===j.type&amp;&amp;!j.alt){j.alt=j.caption||j.title||&quot;&quot;;j.alt=j.alt.replace(/&lt;\/?[^&gt;]+&gt;/g,&quot;&quot;)}return j};f=f?_.clone(f):{};if(i&amp;&amp;i.type){f.type=i.type}if(&quot;image&quot;===f.type){f=_.defaults(f||{},{align:getUserSetting(&quot;align&quot;,&quot;none&quot;),size:getUserSetting(&quot;imgsize&quot;,&quot;medium&quot;),url:&quot;&quot;,classes:[]})}if(!i){return d(f)}f.title=f.title||i.title;h=f.link||getUserSetting(&quot;urlbutton&quot;,&quot;post&quot;);if(&quot;file&quot;===h){c=i.url}else{if(&quot;post&quot;===h){c=i.link}else{if(&quot;custom&quot;===h){c=f.linkUrl}}}f.linkUrl=c||&quot;&quot;;if(&quot;image&quot;===i.type){f.classes.push(&quot;wp-image-&quot;+i.id);g=i.sizes;e=g&amp;&amp;g[f.size]?g[f.size]:i;_.extend(f,_.pick(i,&quot;align&quot;,&quot;caption&quot;,&quot;alt&quot;),{width:e.width,height:e.height,src:e.u
 rl,captionId:&quot;attachment_&quot;+i.id})}else{f.title=f.title||i.filename;f.rel=f.rel||&quot;attachment wp-att-&quot;+i.id}return d(f)},link:function(d,e){var c;d=wp.media.string.props(d,e);c={tag:&quot;a&quot;,content:d.title,attrs:{href:d.linkUrl}};if(d.rel){c.attrs.rel=d.rel}return wp.html.string(c)},image:function(g,i){var c={},d,f,h,e;g=wp.media.string.props(g,i);f=g.classes||[];c.src=g.url;_.extend(c,_.pick(g,&quot;width&quot;,&quot;height&quot;,&quot;alt&quot;));if(g.align&amp;&amp;!g.caption){f.push(&quot;align&quot;+g.align)}if(g.size){f.push(&quot;size-&quot;+g.size)}c[&quot;class&quot;]=_.compact(f).join(&quot; &quot;);d={tag:&quot;img&quot;,attrs:c,single:true};if(g.linkUrl){d={tag:&quot;a&quot;,attrs:{href:g.linkUrl},content:d}}e=wp.html.string(d);if(g.caption){h={};if(c.width){h.width=c.width}if(g.captionId){h.id=g.captionId}if(g.align){h.align=&quot;align&quot;+g.align}e=wp.shortcode.string({tag:&quot;caption&quot;,attrs:h,content:e+&quot; &quot;+g.caption}
 )}return e}};wp.media.gallery=(function(){var c={};return{defaults:{order:&quot;ASC&quot;,id:wp.media.view.settings.post.id,itemtag:&quot;dl&quot;,icontag:&quot;dt&quot;,captiontag:&quot;dd&quot;,columns:&quot;3&quot;,size:&quot;thumbnail&quot;,orderby:&quot;menu_order ID&quot;},attachments:function(h){var j=h.string(),d=c[j],f,e,i,g;delete c[j];if(d){return d}f=_.defaults(h.attrs.named,wp.media.gallery.defaults);e=_.pick(f,&quot;orderby&quot;,&quot;order&quot;);e.type=&quot;image&quot;;e.perPage=-1;if(&quot;rand&quot;===f.orderby){f._orderbyRandom=true}if(!f.orderby||/^menu_order(?: ID)?$/i.test(f.orderby)){e.orderby=&quot;menuOrder&quot;}if(f.ids){e.post__in=f.ids.split(&quot;,&quot;);e.orderby=&quot;post__in&quot;}else{if(f.include){e.post__in=f.include.split(&quot;,&quot;)}}if(f.exclude){e.post__not_in=f.exclude.split(&quot;,&quot;)}if(!e.post__in){e.uploadedTo=f.id}g=_.omit(f,&quot;id&quot;,&quot;ids&quot;,&quot;include&quot;,&quot;exclude&quot;,&quot;orderby&quot;,&quo
 t;order&quot;);i=wp.media.query(e);i.gallery=new Backbone.Model(g);return i},shortcode:function(d){var f=d.props.toJSON(),e=_.pick(f,&quot;orderby&quot;,&quot;order&quot;),g,h;if(d.gallery){_.extend(e,d.gallery.toJSON())}e.ids=d.pluck(&quot;id&quot;);if(f.uploadedTo){e.id=f.uploadedTo}if(e._orderbyRandom){e.orderby=&quot;rand&quot;}delete e._orderbyRandom;if(e.ids&amp;&amp;&quot;post__in&quot;===e.orderby){delete e.orderby}_.each(wp.media.gallery.defaults,function(j,i){if(j===e[i]){delete e[i]}});g=new wp.shortcode({tag:&quot;gallery&quot;,attrs:e,type:&quot;single&quot;});h=new wp.media.model.Attachments(d.models,{props:f});h.gallery=d.gallery;c[g.string()]=h;return g},edit:function(g){var f=wp.shortcode.next(&quot;gallery&quot;,g),h=wp.media.gallery.defaults.id,d,e;if(!f||f.content!==g){return}f=f.shortcode;if(_.isUndefined(f.get(&quot;id&quot;))&amp;&amp;!_.isUndefined(h)){f.set(&quot;id&quot;,h)}d=wp.media.gallery.attachments(f);e=new wp.media.model.Selection(d.models,{p
 rops:d.props.toJSON(),multiple:true});e.gallery=d.gallery;e.more().done(function(){e.props.set({query:false});e.unmirror();e.props.unset(&quot;orderby&quot;)});if(this.frame){this.frame.dispose()}this.frame=wp.media({frame:&quot;post&quot;,state:&quot;gallery-edit&quot;,title:wp.media.view.l10n.editGalleryTitle,editing:true,multiple:true,selection:e}).open();return this.frame}}}());wp.media.featuredImage={get:function(){return wp.media.view.settings.post.featuredImageId},set:function(d){var c=wp.media.view.settings;c.post.featuredImageId=d;wp.media.post(&quot;set-post-thumbnail&quot;,{json:true,post_id:c.post.id,thumbnail_id:c.post.featuredImageId,_wpnonce:c.post.nonce}).done(function(e){b(&quot;.inside&quot;,&quot;#postimagediv&quot;).html(e)})},frame:function(){if(this._frame){return this._frame}this._frame=wp.media({state:&quot;featured-image&quot;,states:[new wp.media.controller.FeaturedImage()]});this._frame.on(&quot;toolbar:create:featured-image&quot;,function(c){this.
 createSelectToolbar(c,{text:wp.media.view.l10n.setFeaturedImage})},this._frame);this._frame.state(&quot;featured-image&quot;).on(&quot;select&quot;,this.select);return this._frame},select:function(){var d=wp.media.view.settings,c=this.get(&quot;selection&quot;).single();if(!d.post.featuredImageId){return}wp.media.featuredImage.set(c?c.id:-1)},init:function(){b(&quot;#postimagediv&quot;).on(&quot;click&quot;,&quot;#set-post-thumbnail&quot;,function(c){c.preventDefault();c.stopPropagation();wp.media.featuredImage.frame().open()}).on(&quot;click&quot;,&quot;#remove-post-thumbnail&quot;,function(){wp.media.view.settings.post.featuredImageId=-1})}};b(wp.media.featuredImage.init);wp.media.editor={insert:function(g){var d=typeof(tinymce)!=&quot;undefined&quot;,j=typeof(QTags)!=&quot;undefined&quot;,c=window.wpActiveEditor,f;if(window.send_to_editor){return window.send_to_editor.apply(this,arguments)}if(!c){if(d&amp;&amp;tinymce.activeEditor){f=tinymce.activeEditor;c=window.wpActive
 Editor=f.id}else{if(!j){return false}}}else{if(d){if(tinymce.activeEditor&amp;&amp;(tinymce.activeEditor.id==&quot;mce_fullscreen&quot;||tinymce.activeEditor.id==&quot;wp_mce_fullscreen&quot;)){f=tinymce.activeEditor}else{f=tinymce.get(c)}}}if(f&amp;&amp;!f.isHidden()){if(tinymce.isIE&amp;&amp;f.windowManager.insertimagebookmark){f.selection.moveToBookmark(f.windowManager.insertimagebookmark)}if(g.indexOf(&quot;[caption&quot;)!==-1){if(f.wpSetImgCaption){g=f.wpSetImgCaption(g)}}else{if(g.indexOf(&quot;[gallery&quot;)!==-1){if(f.plugins.wpgallery){g=f.plugins.wpgallery._do_gallery(g)}}else{if(g.indexOf(&quot;[embed&quot;)===0){if(f.plugins.wordpress){g=f.plugins.wordpress._setEmbed(g)}}}}f.execCommand(&quot;mceInsertContent&quot;,false,g)}else{if(j){QTags.insertContent(g)}else{document.getElementById(c).value+=g}}if(window.tb_remove){try{window.tb_remove()}catch(i){}}},add:function(e,c){var d=this.get(e);if(d){return d}d=a[e]=wp.media(_.defaults(c||{},{frame:&quot;post&quot;,
 state:&quot;insert&quot;,title:wp.media.view.l10n.addMedia,multiple:true}));d.on(&quot;insert&quot;,function(f){var g=d.state();f=f||g.get(&quot;selection&quot;);if(!f){return}b.when.apply(b,f.map(function(i){var h=g.display(i).toJSON();return this.send.attachment(h,i.toJSON())},this)).done(function(){wp.media.editor.insert(_.toArray(arguments).join(&quot;\n\n&quot;))})},this);d.state(&quot;gallery-edit&quot;).on(&quot;update&quot;,function(f){this.insert(wp.media.gallery.shortcode(f).string())},this);d.state(&quot;embed&quot;).on(&quot;select&quot;,function(){var g=d.state(),f=g.get(&quot;type&quot;),h=g.props.toJSON();h.url=h.url||&quot;&quot;;if(&quot;link&quot;===f){_.defaults(h,{title:h.url,linkUrl:h.url});this.send.link(h).done(function(i){wp.media.editor.insert(i)})}else{if(&quot;image&quot;===f){_.defaults(h,{title:h.url,linkUrl:&quot;&quot;,align:&quot;none&quot;,link:&quot;none&quot;});if(&quot;none&quot;===h.link){h.linkUrl=&quot;&quot;}else{if(&quot;file&quot;===
 h.link){h.linkUrl=h.url}}this.insert(wp.media.string.image(h))}}},this);d.state(&quot;featured-image&quot;).on(&quot;select&quot;,wp.media.featuredImage.select);d.setState(d.options.state);return d},id:function(c){if(c){return c}c=wpActiveEditor;if(!c&amp;&amp;typeof tinymce!==&quot;undefined&quot;&amp;&amp;tinymce.activeEditor){c=tinymce.activeEditor.id}c=c||&quot;&quot;;return c},get:function(c){c=this.id(c);return a[c]},remove:function(c){c=this.id(c);delete a[c]},send:{attachment:function(f,g){var c=g.caption,d,e;if(!wp.media.view.settings.captions){delete g.caption}f=wp.media.string.props(f,g);d={id:g.id,post_content:g.description,post_excerpt:c};if(f.linkUrl){d.url=f.linkUrl}if(&quot;image&quot;===g.type){e=wp.media.string.image(f);_.each({align:&quot;align&quot;,size:&quot;image-size&quot;,alt:&quot;image_alt&quot;},function(h,i){if(f[i]){d[h]=f[i]}})}else{e=wp.media.string.link(f);d.post_title=f.title}return wp.media.post(&quot;send-attachment-to-editor&quot;,{nonce:
 wp.media.view.settings.nonce.sendToEditor,attachment:d,html:e,post_id:wp.media.view.settings.post.id})},link:function(c){return wp.media.post(&quot;send-link-to-editor&quot;,{nonce:wp.media.view.settings.nonce.sendToEditor,src:c.linkUrl,title:c.title,html:wp.media.string.link(c),post_id:wp.media.view.settings.post.id})}},open:function(e){var d,c;e=this.id(e);if(typeof tinymce!==&quot;undefined&quot;){c=tinymce.get(e);if(tinymce.isIE&amp;&amp;c&amp;&amp;!c.isHidden()){c.focus();c.windowManager.insertimagebookmark=c.selection.getBookmark()}}d=this.get(e);if(!d){d=this.add(e)}return d.open()},init:function(){b(document.body).on(&quot;click&quot;,&quot;.insert-media&quot;,function(d){var e=b(this),c=e.data(&quot;editor&quot;);d.preventDefault();e.blur();wp.media.editor.open(c)})}};_.bindAll(wp.media.editor,&quot;open&quot;);b(wp.media.editor.init)}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(b){var a={};wp.media.string={props:function(f,i){var h,c,e,g,d,j=wp.media.view.settings.defaultProps;d=function(k){if(&quot;image&quot;===k.type&amp;&amp;!k.alt){k.alt=k.caption||k.title||&quot;&quot;;k.alt=k.alt.replace(/&lt;\/?[^&gt;]+&gt;/g,&quot;&quot;)}return k};f=f?_.clone(f):{};if(i&amp;&amp;i.type){f.type=i.type}if(&quot;image&quot;===f.type){f=_.defaults(f||{},{align:j.align||getUserSetting(&quot;align&quot;,&quot;none&quot;),size:j.size||getUserSetting(&quot;imgsize&quot;,&quot;medium&quot;),url:&quot;&quot;,classes:[]})}if(!i){return d(f)}f.title=f.title||i.title;h=f.link||j.link||getUserSetting(&quot;urlbutton&quot;,&quot;file&quot;);if(&quot;file&quot;===h){c=i.url}else{if(&quot;post&quot;===h){c=i.link}else{if(&quot;custom&quot;===h){c=f.linkUrl}}}f.linkUrl=c||&quot;&quot;;if(&quot;image&quot;===i.type){f.classes.push(&quot;wp-image-&quot;+i.id);g=i.sizes;e=g&amp;&amp;g[f.size]?g[f.size]:i;_.extend(f,_.pick(i,&quot;align&quot;,&quot;captio
 n&quot;,&quot;alt&quot;),{width:e.width,height:e.height,src:e.url,captionId:&quot;attachment_&quot;+i.id})}else{f.title=f.title||i.filename;f.rel=f.rel||&quot;attachment wp-att-&quot;+i.id}return d(f)},link:function(d,e){var c;d=wp.media.string.props(d,e);c={tag:&quot;a&quot;,content:d.title,attrs:{href:d.linkUrl}};if(d.rel){c.attrs.rel=d.rel}return wp.html.string(c)},image:function(g,i){var c={},d,f,h,e;g=wp.media.string.props(g,i);f=g.classes||[];c.src=g.url;_.extend(c,_.pick(g,&quot;width&quot;,&quot;height&quot;,&quot;alt&quot;));if(g.align&amp;&amp;!g.caption){f.push(&quot;align&quot;+g.align)}if(g.size){f.push(&quot;size-&quot;+g.size)}c[&quot;class&quot;]=_.compact(f).join(&quot; &quot;);d={tag:&quot;img&quot;,attrs:c,single:true};if(g.linkUrl){d={tag:&quot;a&quot;,attrs:{href:g.linkUrl},content:d}}e=wp.html.string(d);if(g.caption){h={};if(c.width){h.width=c.width}if(g.captionId){h.id=g.captionId}if(g.align){h.align=&quot;align&quot;+g.align}e=wp.shortcode.string({tag
 :&quot;caption&quot;,attrs:h,content:e+&quot; &quot;+g.caption})}return e}};wp.media.gallery=(function(){var c={};return{defaults:{order:&quot;ASC&quot;,id:wp.media.view.settings.post.id,itemtag:&quot;dl&quot;,icontag:&quot;dt&quot;,captiontag:&quot;dd&quot;,columns:&quot;3&quot;,size:&quot;thumbnail&quot;,orderby:&quot;menu_order ID&quot;},attachments:function(h){var j=h.string(),d=c[j],f,e,i,g;delete c[j];if(d){return d}f=_.defaults(h.attrs.named,wp.media.gallery.defaults);e=_.pick(f,&quot;orderby&quot;,&quot;order&quot;);e.type=&quot;image&quot;;e.perPage=-1;if(&quot;rand&quot;===f.orderby){f._orderbyRandom=true}if(!f.orderby||/^menu_order(?: ID)?$/i.test(f.orderby)){e.orderby=&quot;menuOrder&quot;}if(f.ids){e.post__in=f.ids.split(&quot;,&quot;);e.orderby=&quot;post__in&quot;}else{if(f.include){e.post__in=f.include.split(&quot;,&quot;)}}if(f.exclude){e.post__not_in=f.exclude.split(&quot;,&quot;)}if(!e.post__in){e.uploadedTo=f.id}g=_.omit(f,&quot;id&quot;,&quot;ids&quot;,&
 quot;include&quot;,&quot;exclude&quot;,&quot;orderby&quot;,&quot;order&quot;);i=wp.media.query(e);i.gallery=new Backbone.Model(g);return i},shortcode:function(d){var f=d.props.toJSON(),e=_.pick(f,&quot;orderby&quot;,&quot;order&quot;),g,h;if(d.gallery){_.extend(e,d.gallery.toJSON())}e.ids=d.pluck(&quot;id&quot;);if(f.uploadedTo){e.id=f.uploadedTo}if(e._orderbyRandom){e.orderby=&quot;rand&quot;}delete e._orderbyRandom;if(e.ids&amp;&amp;&quot;post__in&quot;===e.orderby){delete e.orderby}_.each(wp.media.gallery.defaults,function(j,i){if(j===e[i]){delete e[i]}});g=new wp.shortcode({tag:&quot;gallery&quot;,attrs:e,type:&quot;single&quot;});h=new wp.media.model.Attachments(d.models,{props:f});h.gallery=d.gallery;c[g.string()]=h;return g},edit:function(g){var f=wp.shortcode.next(&quot;gallery&quot;,g),h=wp.media.gallery.defaults.id,d,e;if(!f||f.content!==g){return}f=f.shortcode;if(_.isUndefined(f.get(&quot;id&quot;))&amp;&amp;!_.isUndefined(h)){f.set(&quot;id&quot;,h)}d=wp.media.ga
 llery.attachments(f);e=new wp.media.model.Selection(d.models,{props:d.props.toJSON(),multiple:true});e.gallery=d.gallery;e.more().done(function(){e.props.set({query:false});e.unmirror();e.props.unset(&quot;orderby&quot;)});if(this.frame){this.frame.dispose()}this.frame=wp.media({frame:&quot;post&quot;,state:&quot;gallery-edit&quot;,title:wp.media.view.l10n.editGalleryTitle,editing:true,multiple:true,selection:e}).open();return this.frame}}}());wp.media.featuredImage={get:function(){return wp.media.view.settings.post.featuredImageId},set:function(d){var c=wp.media.view.settings;c.post.featuredImageId=d;wp.media.post(&quot;set-post-thumbnail&quot;,{json:true,post_id:c.post.id,thumbnail_id:c.post.featuredImageId,_wpnonce:c.post.nonce}).done(function(e){b(&quot;.inside&quot;,&quot;#postimagediv&quot;).html(e)})},frame:function(){if(this._frame){return this._frame}this._frame=wp.media({state:&quot;featured-image&quot;,states:[new wp.media.controller.FeaturedImage()]});this._frame
 .on(&quot;toolbar:create:featured-image&quot;,function(c){this.createSelectToolbar(c,{text:wp.media.view.l10n.setFeaturedImage})},this._frame);this._frame.state(&quot;featured-image&quot;).on(&quot;select&quot;,this.select);return this._frame},select:function(){var d=wp.media.view.settings,c=this.get(&quot;selection&quot;).single();if(!d.post.featuredImageId){return}wp.media.featuredImage.set(c?c.id:-1)},init:function(){b(&quot;#postimagediv&quot;).on(&quot;click&quot;,&quot;#set-post-thumbnail&quot;,function(c){c.preventDefault();c.stopPropagation();wp.media.featuredImage.frame().open()}).on(&quot;click&quot;,&quot;#remove-post-thumbnail&quot;,function(){wp.media.view.settings.post.featuredImageId=-1})}};b(wp.media.featuredImage.init);wp.media.editor={insert:function(g){var d=typeof(tinymce)!=&quot;undefined&quot;,j=typeof(QTags)!=&quot;undefined&quot;,c=window.wpActiveEditor,f;if(window.send_to_editor){return window.send_to_editor.apply(this,arguments)}if(!c){if(d&amp;&amp
 ;tinymce.activeEditor){f=tinymce.activeEditor;c=window.wpActiveEditor=f.id}else{if(!j){return false}}}else{if(d){if(tinymce.activeEditor&amp;&amp;(tinymce.activeEditor.id==&quot;mce_fullscreen&quot;||tinymce.activeEditor.id==&quot;wp_mce_fullscreen&quot;)){f=tinymce.activeEditor}else{f=tinymce.get(c)}}}if(f&amp;&amp;!f.isHidden()){if(tinymce.isIE&amp;&amp;f.windowManager.insertimagebookmark){f.selection.moveToBookmark(f.windowManager.insertimagebookmark)}if(g.indexOf(&quot;[caption&quot;)!==-1){if(f.wpSetImgCaption){g=f.wpSetImgCaption(g)}}else{if(g.indexOf(&quot;[gallery&quot;)!==-1){if(f.plugins.wpgallery){g=f.plugins.wpgallery._do_gallery(g)}}else{if(g.indexOf(&quot;[embed&quot;)===0){if(f.plugins.wordpress){g=f.plugins.wordpress._setEmbed(g)}}}}f.execCommand(&quot;mceInsertContent&quot;,false,g)}else{if(j){QTags.insertContent(g)}else{document.getElementById(c).value+=g}}if(window.tb_remove){try{window.tb_remove()}catch(i){}}},add:function(e,c){var d=this.get(e);if(d){ret
 urn d}d=a[e]=wp.media(_.defaults(c||{},{frame:&quot;post&quot;,state:&quot;insert&quot;,title:wp.media.view.l10n.addMedia,multiple:true}));d.on(&quot;insert&quot;,function(f){var g=d.state();f=f||g.get(&quot;selection&quot;);if(!f){return}b.when.apply(b,f.map(function(i){var h=g.display(i).toJSON();return this.send.attachment(h,i.toJSON())},this)).done(function(){wp.media.editor.insert(_.toArray(arguments).join(&quot;\n\n&quot;))})},this);d.state(&quot;gallery-edit&quot;).on(&quot;update&quot;,function(f){this.insert(wp.media.gallery.shortcode(f).string())},this);d.state(&quot;embed&quot;).on(&quot;select&quot;,function(){var g=d.state(),f=g.get(&quot;type&quot;),h=g.props.toJSON();h.url=h.url||&quot;&quot;;if(&quot;link&quot;===f){_.defaults(h,{title:h.url,linkUrl:h.url});this.send.link(h).done(function(i){wp.media.editor.insert(i)})}else{if(&quot;image&quot;===f){_.defaults(h,{title:h.url,linkUrl:&quot;&quot;,align:&quot;none&quot;,link:&quot;none&quot;});if(&quot;none&quo
 t;===h.link){h.linkUrl=&quot;&quot;}else{if(&quot;file&quot;===h.link){h.linkUrl=h.url}}this.insert(wp.media.string.image(h))}}},this);d.state(&quot;featured-image&quot;).on(&quot;select&quot;,wp.media.featuredImage.select);d.setState(d.options.state);return d},id:function(c){if(c){return c}c=wpActiveEditor;if(!c&amp;&amp;typeof tinymce!==&quot;undefined&quot;&amp;&amp;tinymce.activeEditor){c=tinymce.activeEditor.id}c=c||&quot;&quot;;return c},get:function(c){c=this.id(c);return a[c]},remove:function(c){c=this.id(c);delete a[c]},send:{attachment:function(f,g){var c=g.caption,d,e;if(!wp.media.view.settings.captions){delete g.caption}f=wp.media.string.props(f,g);d={id:g.id,post_content:g.description,post_excerpt:c};if(f.linkUrl){d.url=f.linkUrl}if(&quot;image&quot;===g.type){e=wp.media.string.image(f);_.each({align:&quot;align&quot;,size:&quot;image-size&quot;,alt:&quot;image_alt&quot;},function(h,i){if(f[i]){d[h]=f[i]}})}else{e=wp.media.string.link(f);d.post_title=f.title}ret
 urn wp.media.post(&quot;send-attachment-to-editor&quot;,{nonce:wp.media.view.settings.nonce.sendToEditor,attachment:d,html:e,post_id:wp.media.view.settings.post.id})},link:function(c){return wp.media.post(&quot;send-link-to-editor&quot;,{nonce:wp.media.view.settings.nonce.sendToEditor,src:c.linkUrl,title:c.title,html:wp.media.string.link(c),post_id:wp.media.view.settings.post.id})}},open:function(e){var d,c;e=this.id(e);if(typeof tinymce!==&quot;undefined&quot;){c=tinymce.get(e);if(tinymce.isIE&amp;&amp;c&amp;&amp;!c.isHidden()){c.focus();c.windowManager.insertimagebookmark=c.selection.getBookmark()}}d=this.get(e);if(!d){d=this.add(e)}return d.open()},init:function(){b(document.body).on(&quot;click&quot;,&quot;.insert-media&quot;,function(d){var e=b(this),c=e.data(&quot;editor&quot;);d.preventDefault();e.blur();wp.media.editor.open(c)})}};_.bindAll(wp.media.editor,&quot;open&quot;);b(wp.media.editor.init)}(jQuery));
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="branches35wpincludesjsmediaviewsminjs"></a>
<div class="modfile"><h4>Modified: branches/3.5/wp-includes/js/media-views.min.js (23279 => 23280)</h4>
<pre class="diff"><span>
<span class="info">--- branches/3.5/wp-includes/js/media-views.min.js        2013-01-04 22:34:43 UTC (rev 23279)
+++ branches/3.5/wp-includes/js/media-views.min.js        2013-01-04 22:36:35 UTC (rev 23280)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(e){var f=wp.media,d=f.model.Attachment,c=f.model.Attachments,a=f.model.Query,b;b=f.view.l10n=typeof _wpMediaViewsL10n===&quot;undefined&quot;?{}:_wpMediaViewsL10n;f.view.settings=b.settings||{};delete b.settings;f.model.settings.post=f.view.settings.post;e.support.transition=(function(){var g=document.documentElement.style,h={WebkitTransition:&quot;webkitTransitionEnd&quot;,MozTransition:&quot;transitionend&quot;,OTransition:&quot;oTransitionEnd otransitionend&quot;,transition:&quot;transitionend&quot;},i;i=_.find(_.keys(h),function(j){return !_.isUndefined(g[j])});return i&amp;&amp;{end:h[i]}}());f.transition=function(g,h){var i=e.Deferred();h=h||2000;if(e.support.transition){if(!(g instanceof e)){g=e(g)}g.first().one(e.support.transition.end,i.resolve);_.delay(i.resolve,h)}else{i.resolve()}return i.promise()};f.controller.Region=function(g){_.extend(this,_.pick(g||{},&quot;id&quot;,&quot;view&quot;,&quot;selector&quot;))};f.controller.Region.extend=Ba
 ckbone.Model.extend;_.extend(f.controller.Region.prototype,{mode:function(g){if(!g){return this._mode}if(g===this._mode){return this}this.trigger(&quot;deactivate&quot;);this._mode=g;this.render(g);this.trigger(&quot;activate&quot;);return this},render:function(h){if(h&amp;&amp;h!==this._mode){return this.mode(h)}var i={view:null},g;this.trigger(&quot;create&quot;,i);g=i.view;this.trigger(&quot;render&quot;,g);if(g){this.set(g)}return this},get:function(){return this.view.views.first(this.selector)},set:function(g,h){if(h){h.add=false}return this.view.views.set(this.selector,g,h)},trigger:function(h){var i;if(!this._mode){return}var g=_.toArray(arguments);i=this.id+&quot;:&quot;+h;g[0]=i+&quot;:&quot;+this._mode;this.view.trigger.apply(this.view,g);g[0]=i;this.view.trigger.apply(this.view,g);return this}});f.controller.StateMachine=function(g){this.states=new Backbone.Collection(g)};f.controller.StateMachine.extend=Backbone.Model.extend;_.extend(f.controller.StateMachine.pro
 totype,Backbone.Events,{state:function(g){this.states=this.states||new Backbone.Collection();g=g||this._state;if(g&amp;&amp;!this.states.get(g)){this.states.add({id:g})}return this.states.get(g)},setState:function(h){var g=this.state();if((g&amp;&amp;h===g.id)||!this.states||!this.states.get(h)){return this}if(g){g.trigger(&quot;deactivate&quot;);this._lastState=g.id}this._state=h;this.state().trigger(&quot;activate&quot;);return this},lastState:function(){if(this._lastState){return this.state(this._lastState)}}});_.each([&quot;on&quot;,&quot;off&quot;,&quot;trigger&quot;],function(g){f.controller.StateMachine.prototype[g]=function(){this.states=this.states||new Backbone.Collection();this.states[g].apply(this.states,arguments);return this}});f.controller.State=Backbone.Model.extend({constructor:function(){this.on(&quot;activate&quot;,this._preActivate,this);this.on(&quot;activate&quot;,this.activate,this);this.on(&quot;activate&quot;,this._postActivate,this);this.on(&quot;de
 activate&quot;,this._deactivate,this);this.on(&quot;deactivate&quot;,this.deactivate,this);this.on(&quot;reset&quot;,this.reset,this);this.on(&quot;ready&quot;,this._ready,this);this.on(&quot;ready&quot;,this.ready,this);this.on(&quot;change:menu&quot;,this._updateMenu,this);Backbone.Model.apply(this,arguments)},ready:function(){},activate:function(){},deactivate:function(){},reset:function(){},_ready:function(){this._updateMenu()},_preActivate:function(){this.active=true},_postActivate:function(){this.on(&quot;change:menu&quot;,this._menu,this);this.on(&quot;change:titleMode&quot;,this._title,this);this.on(&quot;change:content&quot;,this._content,this);this.on(&quot;change:toolbar&quot;,this._toolbar,this);this.frame.on(&quot;title:render:default&quot;,this._renderTitle,this);this._title();this._menu();this._toolbar();this._content();this._router()},_deactivate:function(){this.active=false;this.frame.off(&quot;title:render:default&quot;,this._renderTitle,this);this.off(&quo
 t;change:menu&quot;,this._menu,this);this.off(&quot;change:titleMode&quot;,this._title,this);this.off(&quot;change:content&quot;,this._content,this);this.off(&quot;change:toolbar&quot;,this._toolbar,this)},_title:function(){this.frame.title.render(this.get(&quot;titleMode&quot;)||&quot;default&quot;)},_renderTitle:function(g){g.$el.text(this.get(&quot;title&quot;)||&quot;&quot;)},_router:function(){var h=this.frame.router,i=this.get(&quot;router&quot;),g;this.frame.$el.toggleClass(&quot;hide-router&quot;,!i);if(!i){return}this.frame.router.render(i);g=h.get();if(g&amp;&amp;g.select){g.select(this.frame.content.mode())}},_menu:function(){var i=this.frame.menu,h=this.get(&quot;menu&quot;),g;if(!h){return}i.mode(h);g=i.get();if(g&amp;&amp;g.select){g.select(this.id)}},_updateMenu:function(){var g=this.previous(&quot;menu&quot;),h=this.get(&quot;menu&quot;);if(g){this.frame.off(&quot;menu:render:&quot;+g,this._renderMenu,this)}if(h){this.frame.on(&quot;menu:render:&quot;+h,this.
 _renderMenu,this)}},_renderMenu:function(g){var i=this.get(&quot;menuItem&quot;),j=this.get(&quot;title&quot;),h=this.get(&quot;priority&quot;);if(!i&amp;&amp;j){i={text:j};if(h){i.priority=h}}if(!i){return}g.set(this.id,i)}});_.each([&quot;toolbar&quot;,&quot;content&quot;],function(g){f.controller.State.prototype[&quot;_&quot;+g]=function(){var h=this.get(g);if(h){this.frame[g].render(h)}}});f.controller.Library=f.controller.State.extend({defaults:{id:&quot;library&quot;,multiple:false,describe:false,toolbar:&quot;select&quot;,sidebar:&quot;settings&quot;,content:&quot;upload&quot;,router:&quot;browse&quot;,menu:&quot;default&quot;,searchable:true,filterable:false,sortable:true,title:b.mediaLibraryTitle,contentUserSetting:true,syncSelection:true},initialize:function(){var h=this.get(&quot;selection&quot;),g;if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query())}if(!(h instanceof f.model.Selection)){g=h;if(!g){g=this.get(&quot;library&quot;).props.toJSON
 ();g=_.omit(g,&quot;orderby&quot;,&quot;query&quot;)}this.set(&quot;selection&quot;,new f.model.Selection(null,{multiple:this.get(&quot;multiple&quot;),props:g}))}if(!this.get(&quot;edge&quot;)){this.set(&quot;edge&quot;,120)}if(!this.get(&quot;gutter&quot;)){this.set(&quot;gutter&quot;,8)}this.resetDisplays()},activate:function(){this.syncSelection();wp.Uploader.queue.on(&quot;add&quot;,this.uploading,this);this.get(&quot;selection&quot;).on(&quot;add remove reset&quot;,this.refreshContent,this);this.on(&quot;insert&quot;,this._insertDisplaySettings,this);if(this.get(&quot;contentUserSetting&quot;)){this.frame.on(&quot;content:activate&quot;,this.saveContentMode,this);this.set(&quot;content&quot;,getUserSetting(&quot;libraryContent&quot;,this.get(&quot;content&quot;)))}},deactivate:function(){this.recordSelection();this.frame.off(&quot;content:activate&quot;,this.saveContentMode,this);this.get(&quot;selection&quot;).off(null,null,this);wp.Uploader.queue.off(null,null,this)}
 ,reset:function(){this.get(&quot;selection&quot;).reset();this.resetDisplays();this.refreshContent()},resetDisplays:function(){this._displays=[];this._defaultDisplaySettings={align:getUserSetting(&quot;align&quot;,&quot;none&quot;),size:getUserSetting(&quot;imgsize&quot;,&quot;medium&quot;),link:getUserSetting(&quot;urlbutton&quot;,&quot;post&quot;)}},display:function(h){var g=this._displays;if(!g[h.cid]){g[h.cid]=new Backbone.Model(this._defaultDisplaySettings)}return g[h.cid]},_insertDisplaySettings:function(){var g=this.get(&quot;selection&quot;),h;if(g.length!==1){return}h=this.display(g.first()).toJSON();setUserSetting(&quot;align&quot;,h.align);setUserSetting(&quot;imgsize&quot;,h.size);setUserSetting(&quot;urlbutton&quot;,h.link)},syncSelection:function(){var h=this.get(&quot;selection&quot;),g=this.frame._selection;if(!this.get(&quot;syncSelection&quot;)||!g||!h){return}if(h.multiple){h.reset([],{silent:true});h.validateAll(g.attachments);g.difference=_.difference(g.
 attachments.models,h.models)}h.single(g.single)},recordSelection:function(){var i=this.get(&quot;selection&quot;),h=this.frame._selection,g;if(!this.get(&quot;syncSelection&quot;)||!h||!i){return}if(i.multiple){h.attachments.reset(i.toArray().concat(h.difference));h.difference=[]}else{h.attachments.add(i.toArray())}h.single=i._single},refreshContent:function(){var h=this.get(&quot;selection&quot;),j=this.frame,g=j.router.get(),i=j.content.mode();if(this.active&amp;&amp;!h.length&amp;&amp;!g.get(i)){this.frame.content.render(this.get(&quot;content&quot;))}},uploading:function(h){var g=this.frame.content;if(&quot;upload&quot;===g.mode()){this.frame.content.mode(&quot;browse&quot;)}if(this.get(&quot;multiple&quot;)){this.get(&quot;selection&quot;).add(h)}},saveContentMode:function(){if(&quot;browse&quot;!==this.get(&quot;router&quot;)){return}var h=this.frame.content.mode(),g=this.frame.router.get();if(g&amp;&amp;g.get(h)){setUserSetting(&quot;libraryContent&quot;,h)}}});f.cont
 roller.GalleryEdit=f.controller.Library.extend({defaults:{id:&quot;gallery-edit&quot;,multiple:false,describe:true,edge:199,editing:false,sortable:true,searchable:false,toolbar:&quot;gallery-edit&quot;,content:&quot;browse&quot;,title:b.editGalleryTitle,priority:60,dragInfo:true,syncSelection:false},initialize:function(){if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,new f.model.Selection())}if(!this.get(&quot;AttachmentView&quot;)){this.set(&quot;AttachmentView&quot;,f.view.Attachment.EditLibrary)}f.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){var g=this.get(&quot;library&quot;);g.props.set(&quot;type&quot;,&quot;image&quot;);this.get(&quot;library&quot;).observe(wp.Uploader.queue);this.frame.on(&quot;content:render:browse&quot;,this.gallerySettings,this);f.controller.Library.prototype.activate.apply(this,arguments)},deactivate:function(){this.get(&quot;library&quot;).unobserve(wp.Uploader.queue);this.frame.off(&quot;co
 ntent:render:browse&quot;,this.gallerySettings,this);f.controller.Library.prototype.deactivate.apply(this,arguments)},gallerySettings:function(h){var g=this.get(&quot;library&quot;);if(!g||!h){return}g.gallery=g.gallery||new Backbone.Model();h.sidebar.set({gallery:new f.view.Settings.Gallery({controller:this,model:g.gallery,priority:40})});h.toolbar.set(&quot;reverse&quot;,{text:b.reverseOrder,priority:80,click:function(){g.reset(g.toArray().reverse())}})}});f.controller.GalleryAdd=f.controller.Library.extend({defaults:_.defaults({id:&quot;gallery-library&quot;,filterable:&quot;uploaded&quot;,multiple:&quot;add&quot;,menu:&quot;gallery&quot;,toolbar:&quot;gallery-add&quot;,title:b.addToGalleryTitle,priority:100,syncSelection:false},f.controller.Library.prototype.defaults),initialize:function(){if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query({type:&quot;image&quot;}))}f.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){
 var g=this.get(&quot;library&quot;),h=this.frame.state(&quot;gallery-edit&quot;).get(&quot;library&quot;);if(this.editLibrary&amp;&amp;this.editLibrary!==h){g.unobserve(this.editLibrary)}g.validator=function(i){return !!this.mirroring.getByCid(i.cid)&amp;&amp;!h.getByCid(i.cid)&amp;&amp;f.model.Selection.prototype.validator.apply(this,arguments)};g.observe(h);this.editLibrary=h;f.controller.Library.prototype.activate.apply(this,arguments)}});f.controller.FeaturedImage=f.controller.Library.extend({defaults:_.defaults({id:&quot;featured-image&quot;,filterable:&quot;uploaded&quot;,multiple:false,toolbar:&quot;featured-image&quot;,title:b.setFeaturedImageTitle,priority:60,syncSelection:false},f.controller.Library.prototype.defaults),initialize:function(){var h,g;if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query({type:&quot;image&quot;}))}f.controller.Library.prototype.initialize.apply(this,arguments);h=this.get(&quot;library&quot;);g=h.comparator;h.comparat
 or=function(j,i){var l=!!this.mirroring.getByCid(j.cid),k=!!this.mirroring.getByCid(i.cid);if(!l&amp;&amp;k){return -1}else{if(l&amp;&amp;!k){return 1}else{return g.apply(this,arguments)}}};h.observe(this.get(&quot;selection&quot;))},activate:function(){this.updateSelection();this.frame.on(&quot;open&quot;,this.updateSelection,this);f.controller.Library.prototype.activate.apply(this,arguments)},deactivate:function(){this.frame.off(&quot;open&quot;,this.updateSelection,this);f.controller.Library.prototype.deactivate.apply(this,arguments)},updateSelection:function(){var g=this.get(&quot;selection&quot;),i=f.view.settings.post.featuredImageId,h;if(&quot;&quot;!==i&amp;&amp;-1!==i){h=d.get(i);h.fetch()}g.reset(h?[h]:[])}});f.controller.Embed=f.controller.State.extend({defaults:{id:&quot;embed&quot;,url:&quot;&quot;,menu:&quot;default&quot;,content:&quot;embed&quot;,toolbar:&quot;main-embed&quot;,type:&quot;link&quot;,title:b.insertFromUrlTitle,priority:120},sensitivity:200,initi
 alize:function(){this.debouncedScan=_.debounce(_.bind(this.scan,this),this.sensitivity);this.props=new Backbone.Model({url:&quot;&quot;});this.props.on(&quot;change:url&quot;,this.debouncedScan,this);this.props.on(&quot;change:url&quot;,this.refresh,this);this.on(&quot;scan&quot;,this.scanImage,this)},scan:function(){var h,i=this,g={type:&quot;link&quot;,scanners:[]};if(this.props.get(&quot;url&quot;)){this.trigger(&quot;scan&quot;,g)}if(g.scanners.length){h=g.scanners=e.when.apply(e,g.scanners);h.always(function(){if(i.get(&quot;scanners&quot;)===h){i.set(&quot;loading&quot;,false)}})}else{g.scanners=null}g.loading=!!g.scanners;this.set(g)},scanImage:function(h){var l=this.frame,j=this,i=this.props.get(&quot;url&quot;),k=new Image(),g=e.Deferred();h.scanners.push(g.promise());k.onload=function(){g.resolve();if(j!==l.state()||i!==j.props.get(&quot;url&quot;)){return}j.set({type:&quot;image&quot;});j.props.set({width:k.width,height:k.height})};k.onerror=g.reject;k.src=i},refr
 esh:function(){this.frame.toolbar.get().refresh()},reset:function(){this.props.clear().set({url:&quot;&quot;});if(this.active){this.refresh()}}});f.Views=function(h,g){this.view=h;this._views=_.isArray(g)?{&quot;&quot;:g}:g||{}};f.Views.extend=Backbone.Model.extend;_.extend(f.Views.prototype,{all:function(){return _.flatten(this._views)},get:function(g){g=g||&quot;&quot;;return this._views[g]},first:function(g){var h=this.get(g);return h&amp;&amp;h.length?h[0]:null},set:function(g,h,i){var k,j;if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}i=i||{};h=_.isArray(h)?h:[h];k=this.get(g);j=h;if(k){if(i.add){if(_.isUndefined(i.at)){j=k.concat(h)}else{j=k;j.splice.apply(j,[i.at,0].concat(h))}}else{_.each(j,function(l){l.__detach=true});_.each(k,function(l){if(l.__detach){l.$el.detach()}else{l.dispose()}});_.each(j,function(l){delete l.__detach})}}this._views[g]=j;_.each(h,function(n){var l=n.Views||f.Views,m=n.views=n.views||new l(n);m.parent=this.view;m.selector=g},this);if(!i.silent){t
 his._attach(g,h,_.extend({ready:this._isReady()},i))}return this},add:function(g,h,i){if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}return this.set(g,h,_.extend({add:true},i))},unset:function(g,h,i){var j;if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}h=h||[];if(j=this.get(g)){h=_.isArray(h)?h:[h];this._views[g]=h.length?_.difference(j,h):[]}if(!i||!i.silent){_.invoke(h,&quot;dispose&quot;)}return this},detach:function(){e(_.pluck(this.all(),&quot;el&quot;)).detach();return this},render:function(){var g={ready:this._isReady()};_.each(this._views,function(i,h){this._attach(h,i,g)},this);this.rendered=true;return this},dispose:function(g){if(!g||!g.silent){if(this.parent&amp;&amp;this.parent.views){this.parent.views.unset(this.selector,this.view,{silent:true})}delete this.parent;delete this.selector}_.invoke(this.all(),&quot;dispose&quot;);this._views=[];return this},replace:function(g,h){g.html(h);return this},insert:function(h,k,j){var g=j&amp;&amp;j.at,i;if(_.isNumber(g)&amp;&amp;(i
 =h.children()).length&gt;g){i.eq(g).before(k)}else{h.append(k)}return this},ready:function(){this.view.trigger(&quot;ready&quot;);_.chain(this.all()).map(function(g){return g.views}).flatten().where({attached:true}).invoke(&quot;ready&quot;)},_attach:function(g,h,i){var k=g?this.view.$(g):this.view.$el,j;if(!k.length){return this}j=_.chain(h).pluck(&quot;views&quot;).flatten().value();_.each(j,function(l){if(l.rendered){return}l.view.render();l.rendered=true},this);this[i.add?&quot;insert&quot;:&quot;replace&quot;](k,_.pluck(h,&quot;el&quot;),i);_.each(j,function(l){l.attached=true;if(i.ready){l.ready()}},this);return this},_isReady:function(){var g=this.view.el;while(g){if(g===document.body){return true}g=g.parentNode}return false}});f.View=Backbone.View.extend({Views:f.Views,constructor:function(g){this.views=new this.Views(this,this.views);this.on(&quot;ready&quot;,this.ready,this);if(g&amp;&amp;g.controller){this.controller=g.controller}Backbone.View.apply(this,arguments
 )},dispose:function(){this.undelegateEvents();if(this.model&amp;&amp;this.model.off){this.model.off(null,null,this)}if(this.collection&amp;&amp;this.collection.off){this.collection.off(null,null,this)}if(this.controller&amp;&amp;this.controller.off){this.controller.off(null,null,this)}if(this.views){this.views.dispose()}return this},remove:function(){this.dispose();return Backbone.View.prototype.remove.apply(this,arguments)},render:function(){var g;if(this.prepare){g=this.prepare()}this.views.detach();if(this.template){g=g||{};this.trigger(&quot;prepare&quot;,g);this.$el.html(this.template(g))}this.views.render();return this},prepare:function(){return this.options},ready:function(){}});f.view.Frame=f.View.extend({initialize:function(){this._createRegions();this._createStates()},_createRegions:function(){this.regions=this.regions?this.regions.slice():[];_.each(this.regions,function(g){this[g]=new f.controller.Region({view:this,id:g,selector:&quot;.media-frame-&quot;+g})},this
 )},_createStates:function(){this.states=new Backbone.Collection(null,{model:f.controller.State});this.states.on(&quot;add&quot;,function(g){g.frame=this;g.trigger(&quot;ready&quot;)},this);if(this.options.states){this.states.add(this.options.states)}},reset:function(){this.states.invoke(&quot;trigger&quot;,&quot;reset&quot;);return this}});_.extend(f.view.Frame.prototype,f.controller.StateMachine.prototype);f.view.MediaFrame=f.view.Frame.extend({className:&quot;media-frame&quot;,template:f.template(&quot;media-frame&quot;),regions:[&quot;menu&quot;,&quot;title&quot;,&quot;content&quot;,&quot;toolbar&quot;,&quot;router&quot;],initialize:function(){f.view.Frame.prototype.initialize.apply(this,arguments);_.defaults(this.options,{title:&quot;&quot;,modal:true,uploader:true});this.$el.addClass(&quot;wp-core-ui&quot;);if(this.options.modal){this.modal=new f.view.Modal({controller:this,title:this.options.title});this.modal.content(this)}if(wp.Uploader.limitExceeded||!wp.Uploader.br
 owser.supported){this.options.uploader=false}if(this.options.uploader){this.uploader=new f.view.UploaderWindow({controller:this,uploader:{dropzone:this.modal?this.modal.$el:this.$el,container:this.$el}});this.views.set(&quot;.media-frame-uploader&quot;,this.uploader)}this.on(&quot;attach&quot;,_.bind(this.views.ready,this.views),this);this.on(&quot;title:create:default&quot;,this.createTitle,this);this.title.mode(&quot;default&quot;);this.on(&quot;menu:create:default&quot;,this.createMenu,this)},render:function(){if(!this.state()&amp;&amp;this.options.state){this.setState(this.options.state)}return f.view.Frame.prototype.render.apply(this,arguments)},createTitle:function(g){g.view=new f.View({controller:this,tagName:&quot;h1&quot;})},createMenu:function(g){g.view=new f.view.Menu({controller:this})},createToolbar:function(g){g.view=new f.view.Toolbar({controller:this})},createRouter:function(g){g.view=new f.view.Router({controller:this})},createIframeStates:function(g){var j=
 f.view.settings,i=j.tabs,k=j.tabUrl,h;if(!i||!k){return}h=e(&quot;#post_ID&quot;);if(h.length){k+=&quot;&amp;post_id=&quot;+h.val()}_.each(i,function(m,n){var l=this.state(&quot;iframe:&quot;+n).set(_.defaults({tab:n,src:k+&quot;&amp;tab=&quot;+n,title:m,content:&quot;iframe&quot;,menu:&quot;default&quot;},g))},this);this.on(&quot;content:create:iframe&quot;,this.iframeContent,this);this.on(&quot;menu:render:default&quot;,this.iframeMenu,this);this.on(&quot;open&quot;,this.hijackThickbox,this);this.on(&quot;close&quot;,this.restoreThickbox,this)},iframeContent:function(g){this.$el.addClass(&quot;hide-toolbar&quot;);g.view=new f.view.Iframe({controller:this})},iframeMenu:function(h){var g={};if(!h){return}_.each(f.view.settings.tabs,function(i,j){g[&quot;iframe:&quot;+j]={text:this.state(&quot;iframe:&quot;+j).get(&quot;title&quot;),priority:200}},this);h.set(g)},hijackThickbox:function(){var g=this;if(!window.tb_remove||this._tb_remove){return}this._tb_remove=window.tb_remov
 e;window.tb_remove=function(){g.close();g.reset();g.setState(g.options.state);g._tb_remove.call(window)}},restoreThickbox:function(){if(!this._tb_remove){return}window.tb_remove=this._tb_remove;delete this._tb_remove}});_.each([&quot;open&quot;,&quot;close&quot;,&quot;attach&quot;,&quot;detach&quot;,&quot;escape&quot;],function(g){f.view.MediaFrame.prototype[g]=function(h){if(this.modal){this.modal[g].apply(this.modal,arguments)}return this}});f.view.MediaFrame.Select=f.view.MediaFrame.extend({initialize:function(){f.view.MediaFrame.prototype.initialize.apply(this,arguments);_.defaults(this.options,{selection:[],library:{},multiple:false,state:&quot;library&quot;});this.createSelection();this.createStates();this.bindHandlers()},createSelection:function(){var g=this,h=this.options.selection;if(!(h instanceof f.model.Selection)){this.options.selection=new f.model.Selection(h,{multiple:this.options.multiple})}this._selection={attachments:new c(),difference:[]}},createStates:fun
 ction(){var g=this.options;if(this.options.states){return}this.states.add([new f.controller.Library({library:f.query(g.library),multiple:g.multiple,title:g.title,priority:20})])},bindHandlers:function(){this.on(&quot;router:create:browse&quot;,this.createRouter,this);this.on(&quot;router:render:browse&quot;,this.browseRouter,this);this.on(&quot;content:create:browse&quot;,this.browseContent,this);this.on(&quot;content:render:upload&quot;,this.uploadContent,this);this.on(&quot;toolbar:create:select&quot;,this.createSelectToolbar,this)},browseRouter:function(g){g.set({upload:{text:b.uploadFilesTitle,priority:20},browse:{text:b.mediaLibraryTitle,priority:40}})},browseContent:function(g){var h=this.state();this.$el.removeClass(&quot;hide-toolbar&quot;);g.view=new f.view.AttachmentsBrowser({controller:this,collection:h.get(&quot;library&quot;),selection:h.get(&quot;selection&quot;),model:h,sortable:h.get(&quot;sortable&quot;),search:h.get(&quot;searchable&quot;),filters:h.get(&qu
 ot;filterable&quot;),display:h.get(&quot;displaySettings&quot;),dragInfo:h.get(&quot;dragInfo&quot;),AttachmentView:h.get(&quot;AttachmentView&quot;)})},uploadContent:function(){this.$el.removeClass(&quot;hide-toolbar&quot;);this.content.set(new f.view.UploaderInline({controller:this}))},createSelectToolbar:function(h,g){g=g||this.options.button||{};g.controller=this;h.view=new f.view.Toolbar.Select(g)}});f.view.MediaFrame.Post=f.view.MediaFrame.Select.extend({initialize:function(){_.defaults(this.options,{multiple:true,editing:false,state:&quot;insert&quot;});f.view.MediaFrame.Select.prototype.initialize.apply(this,arguments);this.createIframeStates()},createStates:function(){var g=this.options;this.states.add([new f.controller.Library({id:&quot;insert&quot;,title:b.insertMediaTitle,priority:20,toolbar:&quot;main-insert&quot;,filterable:&quot;all&quot;,library:f.query(g.library),multiple:g.multiple?&quot;reset&quot;:false,editable:true,allowLocalEdits:true,displaySettings:t
 rue,displayUserSettings:true}),new f.controller.Library({id:&quot;gallery&quot;,title:b.createGalleryTitle,priority:40,toolbar:&quot;main-gallery&quot;,filterable:&quot;uploaded&quot;,multiple:&quot;add&quot;,editable:false,library:f.query(_.defaults({type:&quot;image&quot;},g.library))}),new f.controller.Embed(),new f.controller.GalleryEdit({library:g.selection,editing:g.editing,menu:&quot;gallery&quot;}),new f.controller.GalleryAdd()]);if(f.view.settings.post.featuredImageId){this.states.add(new f.controller.FeaturedImage())}},bindHandlers:function(){f.view.MediaFrame.Select.prototype.bindHandlers.apply(this,arguments);this.on(&quot;menu:create:gallery&quot;,this.createMenu,this);this.on(&quot;toolbar:create:main-insert&quot;,this.createToolbar,this);this.on(&quot;toolbar:create:main-gallery&quot;,this.createToolbar,this);this.on(&quot;toolbar:create:featured-image&quot;,this.featuredImageToolbar,this);this.on(&quot;toolbar:create:main-embed&quot;,this.mainEmbedToolbar,thi
 s);var g={menu:{&quot;default&quot;:&quot;mainMenu&quot;,gallery:&quot;galleryMenu&quot;},content:{embed:&quot;embedContent&quot;,&quot;edit-selection&quot;:&quot;editSelectionContent&quot;},toolbar:{&quot;main-insert&quot;:&quot;mainInsertToolbar&quot;,&quot;main-gallery&quot;:&quot;mainGalleryToolbar&quot;,&quot;gallery-edit&quot;:&quot;galleryEditToolbar&quot;,&quot;gallery-add&quot;:&quot;galleryAddToolbar&quot;}};_.each(g,function(i,h){_.each(i,function(k,j){this.on(h+&quot;:render:&quot;+j,this[k],this)},this)},this)},mainMenu:function(g){g.set({&quot;library-separator&quot;:new f.View({className:&quot;separator&quot;,priority:100})})},galleryMenu:function(g){var h=this.lastState(),i=h&amp;&amp;h.id,j=this;g.set({cancel:{text:b.cancelGalleryTitle,priority:20,click:function(){if(i){j.setState(i)}else{j.close()}}},separateCancel:new f.View({className:&quot;separator&quot;,priority:40})})},embedContent:function(){var g=new f.view.Embed({controller:this,model:this.state()}
 ).render();this.content.set(g);g.url.focus()},editSelectionContent:function(){var i=this.state(),h=i.get(&quot;selection&quot;),g;g=new f.view.AttachmentsBrowser({controller:this,collection:h,selection:h,model:i,sortable:true,search:false,dragInfo:true,AttachmentView:f.view.Attachment.EditSelection}).render();g.toolbar.set(&quot;backToLibrary&quot;,{text:b.returnToLibrary,priority:-100,click:function(){this.controller.content.mode(&quot;browse&quot;)}});this.content.set(g)},selectionStatusToolbar:function(g){var h=this.state().get(&quot;editable&quot;);g.set(&quot;selection&quot;,new f.view.Selection({controller:this,collection:this.state().get(&quot;selection&quot;),priority:-40,editable:h&amp;&amp;function(){this.controller.content.mode(&quot;edit-selection&quot;)}}).render())},mainInsertToolbar:function(h){var g=this;this.selectionStatusToolbar(h);h.set(&quot;insert&quot;,{style:&quot;primary&quot;,priority:80,text:b.insertIntoPost,requires:{selection:true},click:function
 (){var j=g.state(),i=j.get(&quot;selection&quot;);g.close();j.trigger(&quot;insert&quot;,i).reset()}})},mainGalleryToolbar:function(h){var g=this;this.selectionStatusToolbar(h);h.set(&quot;gallery&quot;,{style:&quot;primary&quot;,text:b.createNewGallery,priority:60,requires:{selection:true},click:function(){var i=g.state().get(&quot;selection&quot;),j=g.state(&quot;gallery-edit&quot;),k=i.where({type:&quot;image&quot;});j.set(&quot;library&quot;,new f.model.Selection(k,{props:i.props.toJSON(),multiple:true}));this.controller.setState(&quot;gallery-edit&quot;)}})},featuredImageToolbar:function(g){this.createSelectToolbar(g,{text:b.setFeaturedImage,state:this.options.state||&quot;upload&quot;})},mainEmbedToolbar:function(g){g.view=new f.view.Toolbar.Embed({controller:this})},galleryEditToolbar:function(){var g=this.state().get(&quot;editing&quot;);this.toolbar.set(new f.view.Toolbar({controller:this,items:{insert:{style:&quot;primary&quot;,text:g?b.updateGallery:b.insertGaller
 y,priority:80,requires:{library:true},click:function(){var h=this.controller,i=h.state();h.close();i.trigger(&quot;update&quot;,i.get(&quot;library&quot;));h.reset();h.setState(&quot;upload&quot;)}}}}))},galleryAddToolbar:function(){this.toolbar.set(new f.view.Toolbar({controller:this,items:{insert:{style:&quot;primary&quot;,text:b.addToGallery,priority:80,requires:{selection:true},click:function(){var g=this.controller,i=g.state(),h=g.state(&quot;gallery-edit&quot;);h.get(&quot;library&quot;).add(i.get(&quot;selection&quot;).models);i.trigger(&quot;reset&quot;);g.setState(&quot;gallery-edit&quot;)}}}}))}});f.view.Modal=f.View.extend({tagName:&quot;div&quot;,template:f.template(&quot;media-modal&quot;),attributes:{tabindex:0},events:{&quot;click .media-modal-backdrop, .media-modal-close&quot;:&quot;escapeHandler&quot;,keydown:&quot;keydown&quot;},initialize:function(){_.defaults(this.options,{container:document.body,title:&quot;&quot;,propagate:true,freeze:true})},prepare:fu
 nction(){return{title:this.options.title}},attach:function(){if(this.views.attached){return this}if(!this.views.rendered){this.render()}this.$el.appendTo(this.options.container);this.views.attached=true;this.views.ready();return this.propagate(&quot;attach&quot;)},detach:function(){if(this.$el.is(&quot;:visible&quot;)){this.close()}this.$el.detach();this.views.attached=false;return this.propagate(&quot;detach&quot;)},open:function(){var h=this.$el,g=this.options;if(h.is(&quot;:visible&quot;)){return this}if(!this.views.attached){this.attach()}if(g.freeze){this._freeze={scrollTop:e(window).scrollTop()}}h.show().focus();return this.propagate(&quot;open&quot;)},close:function(g){var h=this._freeze;if(!this.views.attached||!this.$el.is(&quot;:visible&quot;)){return this}this.$el.hide();this.propagate(&quot;close&quot;);if(h){e(window).scrollTop(h.scrollTop)}if(g&amp;&amp;g.escape){this.propagate(&quot;escape&quot;)}return this},escape:function(){return this.close({escape:true})}
 ,escapeHandler:function(g){g.preventDefault();this.escape()},content:function(g){this.views.set(&quot;.media-modal-content&quot;,g);return this},propagate:function(g){this.trigger(g);if(this.options.propagate){this.controller.trigger(g)}return this},keydown:function(g){if(27===g.which){g.preventDefault();this.escape();return}}});f.view.FocusManager=f.View.extend({events:{keydown:&quot;recordTab&quot;,focusin:&quot;updateIndex&quot;},focus:function(){if(_.isUndefined(this.index)){return}this.$tabbables=this.$(&quot;:tabbable&quot;);this.$tabbables.eq(this.index).focus()},recordTab:function(h){if(9!==h.keyCode){return}if(_.isUndefined(this.index)){this.updateIndex(h)}if(_.isUndefined(this.index)){return}var g=this.index+(h.shiftKey?-1:1);if(g&gt;=0&amp;&amp;g&lt;this.$tabbables.length){this.index=g}else{delete this.index}},updateIndex:function(h){this.$tabbables=this.$(&quot;:tabbable&quot;);var g=this.$tabbables.index(h.target);if(-1===g){delete this.index}else{this.index=g}}
 });f.view.UploaderWindow=f.View.extend({tagName:&quot;div&quot;,className:&quot;uploader-window&quot;,template:f.template(&quot;uploader-window&quot;),initialize:function(){var g;this.$browser=e('&lt;a href=&quot;#&quot; class=&quot;browser&quot; /&gt;').hide().appendTo(&quot;body&quot;);g=this.options.uploader=_.defaults(this.options.uploader||{},{dropzone:this.$el,browser:this.$browser,params:{}});if(g.dropzone&amp;&amp;!(g.dropzone instanceof e)){g.dropzone=e(g.dropzone)}this.controller.on(&quot;activate&quot;,this.refresh,this)},refresh:function(){if(this.uploader){this.uploader.refresh()}},ready:function(){var h=f.view.settings.post.id,g;if(this.uploader){return}if(h){this.options.uploader.params.post_id=h}this.uploader=new wp.Uploader(this.options.uploader);g=this.uploader.dropzone;g.on(&quot;dropzone:enter&quot;,_.bind(this.show,this));g.on(&quot;dropzone:leave&quot;,_.bind(this.hide,this))},show:function(){var g=this.$el.show();_.defer(function(){g.css({opacity:1})})
 },hide:function(){var g=this.$el.css({opacity:0});f.transition(g).done(function(){if(&quot;0&quot;===g.css(&quot;opacity&quot;)){g.hide()}})}});f.view.UploaderInline=f.View.extend({tagName:&quot;div&quot;,className:&quot;uploader-inline&quot;,template:f.template(&quot;uploader-inline&quot;),initialize:function(){_.defaults(this.options,{message:&quot;&quot;,status:true});if(!this.options.$browser&amp;&amp;this.controller.uploader){this.options.$browser=this.controller.uploader.$browser}if(_.isUndefined(this.options.postId)){this.options.postId=f.view.settings.post.id}if(this.options.status){this.views.set(&quot;.upload-inline-status&quot;,new f.view.UploaderStatus({controller:this.controller}))}},dispose:function(){if(this.disposing){return f.View.prototype.dispose.apply(this,arguments)}this.disposing=true;return this.remove()},remove:function(){var g=f.View.prototype.remove.apply(this,arguments);_.defer(_.bind(this.refresh,this));return g},refresh:function(){var g=this.cont
 roller.uploader;if(g){g.refresh()}},ready:function(){var g=this.options.$browser,h;if(this.controller.uploader){h=this.$(&quot;.browser&quot;);if(h[0]===g[0]){return}g.detach().text(h.text());g[0].className=h[0].className;h.replaceWith(g.show())}this.refresh();return this}});f.view.UploaderStatus=f.View.extend({className:&quot;media-uploader-status&quot;,template:f.template(&quot;uploader-status&quot;),events:{&quot;click .upload-dismiss-errors&quot;:&quot;dismiss&quot;},initialize:function(){this.queue=wp.Uploader.queue;this.queue.on(&quot;add remove reset&quot;,this.visibility,this);this.queue.on(&quot;add remove reset change:percent&quot;,this.progress,this);this.queue.on(&quot;add remove reset change:uploading&quot;,this.info,this);this.errors=wp.Uploader.errors;this.errors.reset();this.errors.on(&quot;add remove reset&quot;,this.visibility,this);this.errors.on(&quot;add&quot;,this.error,this)},dispose:function(){wp.Uploader.queue.off(null,null,this);f.View.prototype.dis
 pose.apply(this,arguments);return this},visibility:function(){this.$el.toggleClass(&quot;uploading&quot;,!!this.queue.length);this.$el.toggleClass(&quot;errors&quot;,!!this.errors.length);this.$el.toggle(!!this.queue.length||!!this.errors.length)},ready:function(){_.each({&quot;$bar&quot;:&quot;.media-progress-bar div&quot;,&quot;$index&quot;:&quot;.upload-index&quot;,&quot;$total&quot;:&quot;.upload-total&quot;,&quot;$filename&quot;:&quot;.upload-filename&quot;},function(g,h){this[h]=this.$(g)},this);this.visibility();this.progress();this.info()},progress:function(){var g=this.queue,i=this.$bar,h=0;if(!i||!g.length){return}i.width((g.reduce(function(j,l){if(!l.get(&quot;uploading&quot;)){return j+100}var k=l.get(&quot;percent&quot;);return j+(_.isNumber(k)?k:100)},0)/g.length)+&quot;%&quot;)},info:function(){var g=this.queue,h=0,i;if(!g.length){return}i=this.queue.find(function(k,j){h=j;return k.get(&quot;uploading&quot;)});this.$index.text(h+1);this.$total.text(g.length);t
 his.$filename.html(i?this.filename(i.get(&quot;filename&quot;)):&quot;&quot;)},filename:function(g){return f.truncate(_.escape(g),24)},error:function(g){this.views.add(&quot;.upload-errors&quot;,new f.view.UploaderStatusError({filename:this.filename(g.get(&quot;file&quot;).name),message:g.get(&quot;message&quot;)}),{at:0})},dismiss:function(g){var h=this.views.get(&quot;.upload-errors&quot;);g.preventDefault();if(h){_.invoke(h,&quot;remove&quot;)}wp.Uploader.errors.reset()}});f.view.UploaderStatusError=f.View.extend({className:&quot;upload-error&quot;,template:f.template(&quot;uploader-status-error&quot;)});f.view.Toolbar=f.View.extend({tagName:&quot;div&quot;,className:&quot;media-toolbar&quot;,initialize:function(){var i=this.controller.state(),h=this.selection=i.get(&quot;selection&quot;),g=this.library=i.get(&quot;library&quot;);this._views={};this.primary=new f.view.PriorityList();this.secondary=new f.view.PriorityList();this.primary.$el.addClass(&quot;media-toolbar-pri
 mary&quot;);this.secondary.$el.addClass(&quot;media-toolbar-secondary&quot;);this.views.set([this.secondary,this.primary]);if(this.options.items){this.set(this.options.items,{silent:true})}if(!this.options.silent){this.render()}if(h){h.on(&quot;add remove reset&quot;,this.refresh,this)}if(g){g.on(&quot;add remove reset&quot;,this.refresh,this)}},dispose:function(){if(this.selection){this.selection.off(null,null,this)}if(this.library){this.library.off(null,null,this)}return f.View.prototype.dispose.apply(this,arguments)},ready:function(){this.refresh()},set:function(j,g,h){var i;h=h||{};if(_.isObject(j)){_.each(j,function(k,l){this.set(l,k,{silent:true})},this)}else{if(!(g instanceof Backbone.View)){g.classes=[&quot;media-button-&quot;+j].concat(g.classes||[]);g=new f.view.Button(g).render()}g.controller=g.controller||this.controller;this._views[j]=g;i=g.options.priority&lt;0?&quot;secondary&quot;:&quot;primary&quot;;this[i].set(j,g,h)}if(!h.silent){this.refresh()}return this
 },get:function(g){return this._views[g]},unset:function(h,g){delete this._views[h];this.primary.unset(h,g);this.secondary.unset(h,g);if(!g||!g.silent){this.refresh()}return this},refresh:function(){var i=this.controller.state(),g=i.get(&quot;library&quot;),h=i.get(&quot;selection&quot;);_.each(this._views,function(j){if(!j.model||!j.options||!j.options.requires){return}var l=j.options.requires,k=false;if(l.selection&amp;&amp;h&amp;&amp;!h.length){k=true}else{if(l.library&amp;&amp;g&amp;&amp;!g.length){k=true}}j.model.set(&quot;disabled&quot;,k)})}});f.view.Toolbar.Select=f.view.Toolbar.extend({initialize:function(){var h=this.options,g=h.controller,i=g.state().get(&quot;selection&quot;);_.bindAll(this,&quot;clickSelect&quot;);_.defaults(h,{event:&quot;select&quot;,state:false,reset:true,close:true,text:b.select,requires:{selection:true}});h.items=_.defaults(h.items||{},{select:{style:&quot;primary&quot;,text:h.text,priority:80,click:this.clickSelect,requires:h.requires}});f.
 view.Toolbar.prototype.initialize.apply(this,arguments)},clickSelect:function(){var h=this.options,g=this.controller;if(h.close){g.close()}if(h.event){g.state().trigger(h.event)}if(h.reset){g.reset()}if(h.state){g.setState(h.state)}}});f.view.Toolbar.Embed=f.view.Toolbar.Select.extend({initialize:function(){_.defaults(this.options,{text:b.insertIntoPost,requires:false});f.view.Toolbar.Select.prototype.initialize.apply(this,arguments)},refresh:function(){var g=this.controller.state().props.get(&quot;url&quot;);this.get(&quot;select&quot;).model.set(&quot;disabled&quot;,!g||g===&quot;http://&quot;);f.view.Toolbar.Select.prototype.refresh.apply(this,arguments)}});f.view.Button=f.View.extend({tagName:&quot;a&quot;,className:&quot;media-button&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;click&quot;},defaults:{text:&quot;&quot;,style:&quot;&quot;,size:&quot;large&quot;,disabled:false},initialize:function(){this.model=new Backbone.Model(this.defaults);_.each(this.defa
 ults,function(i,g){var h=this.options[g];if(_.isUndefined(h)){return}this.model.set(g,h);delete this.options[g]},this);this.model.on(&quot;change&quot;,this.render,this)},render:function(){var h=[&quot;button&quot;,this.className],g=this.model.toJSON();if(g.style){h.push(&quot;button-&quot;+g.style)}if(g.size){h.push(&quot;button-&quot;+g.size)}h=_.uniq(h.concat(this.options.classes));this.el.className=h.join(&quot; &quot;);this.$el.attr(&quot;disabled&quot;,g.disabled);this.$el.text(this.model.get(&quot;text&quot;));return this},click:function(g){if(&quot;#&quot;===this.attributes.href){g.preventDefault()}if(this.options.click&amp;&amp;!this.model.get(&quot;disabled&quot;)){this.options.click.apply(this,arguments)}}});f.view.ButtonGroup=f.View.extend({tagName:&quot;div&quot;,className:&quot;button-group button-large media-button-group&quot;,initialize:function(){this.buttons=_.map(this.options.buttons||[],function(g){if(g instanceof Backbone.View){return g}else{return new f
 .view.Button(g).render()}});delete this.options.buttons;if(this.options.classes){this.$el.addClass(this.options.classes)}},render:function(){this.$el.html(e(_.pluck(this.buttons,&quot;el&quot;)).detach());return this}});f.view.PriorityList=f.View.extend({tagName:&quot;div&quot;,initialize:function(){this._views={};this.set(_.extend({},this._views,this.options.views),{silent:true});delete this.options.views;if(!this.options.silent){this.render()}},set:function(l,h,j){var k,g,i;j=j||{};if(_.isObject(l)){_.each(l,function(m,n){this.set(n,m)},this);return this}if(!(h instanceof Backbone.View)){h=this.toView(h,l,j)}h.controller=h.controller||this.controller;this.unset(l);k=h.options.priority||10;g=this.views.get()||[];_.find(g,function(n,m){if(n.options.priority&gt;k){i=m;return true}});this._views[l]=h;this.views.add(h,{at:_.isNumber(i)?i:g.length||0});return this},get:function(g){return this._views[g]},unset:function(h){var g=this.get(h);if(g){g.remove()}delete this._views[h];r
 eturn this},toView:function(g){return new f.View(g)}});f.view.MenuItem=f.View.extend({tagName:&quot;a&quot;,className:&quot;media-menu-item&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;_click&quot;},_click:function(g){var h=this.options.click;if(g){g.preventDefault()}if(h){h.call(this)}else{this.click()}},click:function(){var g=this.options.state;if(g){this.controller.setState(g)}},render:function(){var g=this.options;if(g.text){this.$el.text(g.text)}else{if(g.html){this.$el.html(g.html)}}return this}});f.view.Menu=f.view.PriorityList.extend({tagName:&quot;div&quot;,className:&quot;media-menu&quot;,property:&quot;state&quot;,ItemView:f.view.MenuItem,region:&quot;menu&quot;,toView:function(g,h){g=g||{};g[this.property]=g[this.property]||h;return new this.ItemView(g).render()},ready:function(){f.view.PriorityList.prototype.ready.apply(this,arguments);this.visibility()},set:function(){f.view.PriorityList.prototype.set.apply(this,arguments);this.visibility()},unset:
 function(){f.view.PriorityList.prototype.unset.apply(this,arguments);this.visibility()},visibility:function(){var j=this.region,h=this.controller[j].get(),g=this.views.get(),i=!g||g.length&lt;2;if(this===h){this.controller.$el.toggleClass(&quot;hide-&quot;+j,i)}},select:function(h){var g=this.get(h);if(!g){return}this.deselect();g.$el.addClass(&quot;active&quot;)},deselect:function(){this.$el.children().removeClass(&quot;active&quot;)}});f.view.RouterItem=f.view.MenuItem.extend({click:function(){var g=this.options.contentMode;if(g){this.controller.content.mode(g)}}});f.view.Router=f.view.Menu.extend({tagName:&quot;div&quot;,className:&quot;media-router&quot;,property:&quot;contentMode&quot;,ItemView:f.view.RouterItem,region:&quot;router&quot;,initialize:function(){this.controller.on(&quot;content:render&quot;,this.update,this);f.view.Menu.prototype.initialize.apply(this,arguments)},update:function(){var g=this.controller.content.mode();if(g){this.select(g)}}});f.view.Sidebar
 =f.view.PriorityList.extend({className:&quot;media-sidebar&quot;});f.view.Attachment=f.View.extend({tagName:&quot;li&quot;,className:&quot;attachment&quot;,template:f.template(&quot;attachment&quot;),events:{&quot;click .attachment-preview&quot;:&quot;toggleSelectionHandler&quot;,&quot;change [data-setting]&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] input&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] select&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] textarea&quot;:&quot;updateSetting&quot;,&quot;click .close&quot;:&quot;removeFromLibrary&quot;,&quot;click .check&quot;:&quot;removeFromSelection&quot;,&quot;click a&quot;:&quot;preventDefault&quot;},buttons:{},initialize:function(){var g=this.options.selection;this.model.on(&quot;change:sizes change:uploading change:caption change:title&quot;,this.render,this);this.model.on(&quot;change:percent&quot;,this.progress,this);this.model.on(&quot;add&quot;,this.select,this);this.model.on
 (&quot;remove&quot;,this.deselect,this);if(g){g.on(&quot;reset&quot;,this.updateSelect,this)}this.model.on(&quot;selection:single selection:unsingle&quot;,this.details,this);this.details(this.model,this.controller.state().get(&quot;selection&quot;))},dispose:function(){var g=this.options.selection;this.updateAll();if(g){g.off(null,null,this)}f.View.prototype.dispose.apply(this,arguments);return this},render:function(){var g=_.defaults(this.model.toJSON(),{orientation:&quot;landscape&quot;,uploading:false,type:&quot;&quot;,subtype:&quot;&quot;,icon:&quot;&quot;,filename:&quot;&quot;,caption:&quot;&quot;,title:&quot;&quot;,dateFormatted:&quot;&quot;,width:&quot;&quot;,height:&quot;&quot;,compat:false,alt:&quot;&quot;,description:&quot;&quot;});g.buttons=this.buttons;g.describe=this.controller.state().get(&quot;describe&quot;);if(&quot;image&quot;===g.type){g.size=this.imageSize()}g.can={};if(g.nonces){g.can.remove=!!g.nonces[&quot;delete&quot;];g.can.save=!!g.nonces.update}if(
 this.controller.state().get(&quot;allowLocalEdits&quot;)){g.allowLocalEdits=true}this.views.detach();this.$el.html(this.template(g));this.$el.toggleClass(&quot;uploading&quot;,g.uploading);if(g.uploading){this.$bar=this.$(&quot;.media-progress-bar div&quot;)}else{delete this.$bar}this.updateSelect();this.updateSave();this.views.render();return this},progress:function(){if(this.$bar&amp;&amp;this.$bar.length){this.$bar.width(this.model.get(&quot;percent&quot;)+&quot;%&quot;)}},toggleSelectionHandler:function(g){var h;if(g.shiftKey){h=&quot;between&quot;}else{if(g.ctrlKey||g.metaKey){h=&quot;toggle&quot;}}this.toggleSelection({method:h})},toggleSelection:function(p){var k=this.collection,l=this.options.selection,j=this.model,g=p&amp;&amp;p.method,m,n,h,i,o;if(!l){return}m=l.single();g=_.isUndefined(g)?l.multiple:g;if(&quot;between&quot;===g&amp;&amp;m&amp;&amp;l.multiple){if(m===j){return}i=k.indexOf(m);o=k.indexOf(this.model);if(i&lt;o){h=k.models.slice(i,o+1)}else{h=k.models
 .slice(o,i+1)}l.add(h).single(j);return}else{if(&quot;toggle&quot;===g){l[this.selected()?&quot;remove&quot;:&quot;add&quot;](j).single(j);return}}if(g!==&quot;add&quot;){g=&quot;reset&quot;}if(this.selected()){l[m===j?&quot;remove&quot;:&quot;single&quot;](j)}else{l[g](j).single(j)}},updateSelect:function(){this[this.selected()?&quot;select&quot;:&quot;deselect&quot;]()},selected:function(){var g=this.options.selection;if(g){return !!g.getByCid(this.model.cid)}},select:function(g,i){var h=this.options.selection;if(!h||(i&amp;&amp;i!==h)){return}this.$el.addClass(&quot;selected&quot;)},deselect:function(g,i){var h=this.options.selection;if(!h||(i&amp;&amp;i!==h)){return}this.$el.removeClass(&quot;selected&quot;)},details:function(g,j){var i=this.options.selection,h;if(i!==j){return}h=i.single();this.$el.toggleClass(&quot;details&quot;,h===this.model)},preventDefault:function(g){g.preventDefault()},imageSize:function(g){var h=this.model.get(&quot;sizes&quot;);g=g||&quot;mediu
 m&quot;;if(h&amp;&amp;h[g]){return _.clone(h[g])}else{return{url:this.model.get(&quot;url&quot;),width:this.model.get(&quot;width&quot;),height:this.model.get(&quot;height&quot;),orientation:this.model.get(&quot;orientation&quot;)}}},updateSetting:function(i){var g=e(i.target).closest(&quot;[data-setting]&quot;),h,j;if(!g.length){return}h=g.data(&quot;setting&quot;);j=i.target.value;if(this.model.get(h)!==j){this.save(h,j)}},save:function(){var g=this,i=this._save=this._save||{status:&quot;ready&quot;},h=this.model.save.apply(this.model,arguments),j=i.requests?e.when(h,i.requests):h;if(i.savedTimer){clearTimeout(i.savedTimer)}this.updateSave(&quot;waiting&quot;);i.requests=j;j.always(function(){if(i.requests!==j){return}g.updateSave(j.state()===&quot;resolved&quot;?&quot;complete&quot;:&quot;error&quot;);i.savedTimer=setTimeout(function(){g.updateSave(&quot;ready&quot;);delete i.savedTimer},2000)})},updateSave:function(g){var h=this._save=this._save||{status:&quot;ready&quot
 ;};if(g&amp;&amp;g!==h.status){this.$el.removeClass(&quot;save-&quot;+h.status);h.status=g}this.$el.addClass(&quot;save-&quot;+h.status);return this},updateAll:function(){var h=this.$(&quot;[data-setting]&quot;),g=this.model,i;i=_.chain(h).map(function(k){var m=e(&quot;input, textarea, select, [value]&quot;,k),j,l;if(!m.length){return}j=e(k).data(&quot;setting&quot;);l=m.val();if(g.get(j)!==l){return[j,l]}}).compact().object().value();if(!_.isEmpty(i)){g.save(i)}},removeFromLibrary:function(g){g.stopPropagation();this.collection.remove(this.model)},removeFromSelection:function(h){var g=this.options.selection;if(!g){return}h.stopPropagation();g.remove(this.model)}});f.view.Attachment.Library=f.view.Attachment.extend({buttons:{check:true}});f.view.Attachment.EditLibrary=f.view.Attachment.extend({buttons:{close:true}});f.view.Attachments=f.View.extend({tagName:&quot;ul&quot;,className:&quot;attachments&quot;,cssTemplate:f.template(&quot;attachments-css&quot;),events:{scroll:&qu
 ot;scroll&quot;},initialize:function(){this.el.id=_.uniqueId(&quot;__attachments-view-&quot;);_.defaults(this.options,{refreshSensitivity:200,refreshThreshold:3,AttachmentView:f.view.Attachment,sortable:false,resize:true});this._viewsByCid={};this.collection.on(&quot;add&quot;,function(i,g,h){this.views.add(this.createAttachmentView(i),{at:h.index})},this);this.collection.on(&quot;remove&quot;,function(j,g,i){var h=this._viewsByCid[j.cid];delete this._viewsByCid[j.cid];if(h){h.remove()}},this);this.collection.on(&quot;reset&quot;,this.render,this);this.scroll=_.chain(this.scroll).bind(this).throttle(this.options.refreshSensitivity).value();this.initSortable();_.bindAll(this,&quot;css&quot;);this.model.on(&quot;change:edge change:gutter&quot;,this.css,this);this._resizeCss=_.debounce(_.bind(this.css,this),this.refreshSensitivity);if(this.options.resize){e(window).on(&quot;resize.attachments&quot;,this._resizeCss)}this.css()},dispose:function(){this.collection.props.off(null,n
 ull,this);e(window).off(&quot;resize.attachments&quot;,this._resizeCss);f.View.prototype.dispose.apply(this,arguments)},css:function(){var g=e(&quot;#&quot;+this.el.id+&quot;-css&quot;);if(g.length){g.remove()}f.view.Attachments.$head().append(this.cssTemplate({id:this.el.id,edge:this.edge(),gutter:this.model.get(&quot;gutter&quot;)}))},edge:function(){var i=this.model.get(&quot;edge&quot;),j,h,g;if(!this.$el.is(&quot;:visible&quot;)){return i}j=this.model.get(&quot;gutter&quot;)*2;h=this.$el.width()-j;g=Math.ceil(h/(i+j));i=Math.floor((h-(g*j))/g);return i},initSortable:function(){var g=this.collection;if(!this.options.sortable||!e.fn.sortable){return}this.$el.sortable(_.extend({disabled:!!g.comparator,containment:this.$el,tolerance:&quot;pointer&quot;,start:function(h,i){i.item.data(&quot;sortableIndexStart&quot;,i.item.index())},update:function(j,k){var i=g.at(k.item.data(&quot;sortableIndexStart&quot;)),h=g.comparator;delete g.comparator;g.remove(i,{silent:true}).add(i,{
 silent:true,at:k.item.index()});g.comparator=h;g.trigger(&quot;reset&quot;,g);g.saveMenuOrder()}},this.options.sortable));g.props.on(&quot;change:orderby&quot;,function(){this.$el.sortable(&quot;option&quot;,&quot;disabled&quot;,!!g.comparator)},this);this.collection.props.on(&quot;change:orderby&quot;,this.refreshSortable,this);this.refreshSortable()},refreshSortable:function(){if(!this.options.sortable||!e.fn.sortable){return}var i=this.collection,h=i.props.get(&quot;orderby&quot;),g=&quot;menuOrder&quot;===h||!i.comparator;this.$el.sortable(&quot;option&quot;,&quot;disabled&quot;,!g)},createAttachmentView:function(h){var g=new this.options.AttachmentView({controller:this.controller,model:h,collection:this.collection,selection:this.options.selection});return this._viewsByCid[h.cid]=g},prepare:function(){if(this.collection.length){this.views.set(this.collection.map(this.createAttachmentView,this))}else{this.views.unset();this.collection.more().done(this.scroll)}},ready:func
 tion(){this.scroll()},scroll:function(g){if(!this.$el.is(&quot;:visible&quot;)){return}if(this.collection.hasMore()&amp;&amp;this.el.scrollHeight&lt;this.el.scrollTop+(this.el.clientHeight*this.options.refreshThreshold)){this.collection.more().done(this.scroll)}}},{$head:(function(){var g;return function(){return g=g||e(&quot;head&quot;)}}())});f.view.Search=f.View.extend({tagName:&quot;input&quot;,className:&quot;search&quot;,attributes:{type:&quot;search&quot;,placeholder:b.search},events:{input:&quot;search&quot;,keyup:&quot;search&quot;,change:&quot;search&quot;,search:&quot;search&quot;},render:function(){this.el.value=this.model.escape(&quot;search&quot;);return this},search:function(g){if(g.target.value){this.model.set(&quot;search&quot;,g.target.value)}else{this.model.unset(&quot;search&quot;)}}});f.view.AttachmentFilters=f.View.extend({tagName:&quot;select&quot;,className:&quot;attachment-filters&quot;,events:{change:&quot;change&quot;},keys:[],initialize:function()
 {this.createFilters();_.extend(this.filters,this.options.filters);this.$el.html(_.chain(this.filters).map(function(g,h){return{el:this.make(&quot;option&quot;,{value:h},g.text),priority:g.priority||50}},this).sortBy(&quot;priority&quot;).pluck(&quot;el&quot;).value());this.model.on(&quot;change&quot;,this.select,this);this.select()},createFilters:function(){this.filters={}},change:function(h){var g=this.filters[this.el.value];if(g){this.model.set(g.props)}},select:function(){var g=this.model,i=&quot;all&quot;,h=g.toJSON();_.find(this.filters,function(k,l){var j=_.all(k.props,function(n,m){return n===(_.isUndefined(h[m])?null:h[m])});if(j){return i=l}});this.$el.val(i)}});f.view.AttachmentFilters.Uploaded=f.view.AttachmentFilters.extend({createFilters:function(){var h=this.model.get(&quot;type&quot;),g=f.view.settings.mimeTypes,i;if(g&amp;&amp;h){i=g[h]}this.filters={all:{text:i||b.allMediaItems,props:{uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;},priority:
 10},uploaded:{text:b.uploadedToThisPost,props:{uploadedTo:f.view.settings.post.id,orderby:&quot;menuOrder&quot;,order:&quot;ASC&quot;},priority:20}}}});f.view.AttachmentFilters.All=f.view.AttachmentFilters.extend({createFilters:function(){var g={};_.each(f.view.settings.mimeTypes||{},function(i,h){g[h]={text:i,props:{type:h,uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;}}});g.all={text:b.allMediaItems,props:{type:null,uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;},priority:10};g.uploaded={text:b.uploadedToThisPost,props:{type:null,uploadedTo:f.view.settings.post.id,orderby:&quot;menuOrder&quot;,order:&quot;ASC&quot;},priority:20};this.filters=g}});f.view.AttachmentsBrowser=f.View.extend({tagName:&quot;div&quot;,className:&quot;attachments-browser&quot;,initialize:function(){_.defaults(this.options,{filters:false,search:true,display:false,AttachmentView:f.view.Attachment.Library});this.createToolbar();this.updateContent();this.createSidebar(
 );this.collection.on(&quot;add remove reset&quot;,this.updateContent,this)},dispose:function(){this.options.selection.off(null,null,this);f.View.prototype.dispose.apply(this,arguments);return this},createToolbar:function(){var h,g;this.toolbar=new f.view.Toolbar({controller:this.controller});this.views.add(this.toolbar);h=this.options.filters;if(&quot;uploaded&quot;===h){g=f.view.AttachmentFilters.Uploaded}else{if(&quot;all&quot;===h){g=f.view.AttachmentFilters.All}}if(g){this.toolbar.set(&quot;filters&quot;,new g({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search){this.toolbar.set(&quot;search&quot;,new f.view.Search({controller:this.controller,model:this.collection.props,priority:60}).render())}if(this.options.dragInfo){this.toolbar.set(&quot;dragInfo&quot;,new f.View({el:e('&lt;div class=&quot;instructions&quot;&gt;'+b.dragInfo+&quot;&lt;/div&gt;&quot;)[0],priority:-40}))}},updateContent:function(){var g=this;if(!this.a
 ttachments){this.createAttachments()}if(!this.collection.length){this.collection.more().done(function(){if(!g.collection.length){g.createUploader()}})}},removeContent:function(){_.each([&quot;attachments&quot;,&quot;uploader&quot;],function(g){if(this[g]){this[g].remove();delete this[g]}},this)},createUploader:function(){this.removeContent();this.uploader=new f.view.UploaderInline({controller:this.controller,status:false,message:b.noItemsFound});this.views.add(this.uploader)},createAttachments:function(){this.removeContent();this.attachments=new f.view.Attachments({controller:this.controller,collection:this.collection,selection:this.options.selection,model:this.model,sortable:this.options.sortable,AttachmentView:this.options.AttachmentView});this.views.add(this.attachments)},createSidebar:function(){var g=this.options,h=g.selection,i=this.sidebar=new f.view.Sidebar({controller:this.controller});this.views.add(i);if(this.controller.uploader){i.set(&quot;uploads&quot;,new f.vi
 ew.UploaderStatus({controller:this.controller,priority:40}))}h.on(&quot;selection:single&quot;,this.createSingle,this);h.on(&quot;selection:unsingle&quot;,this.disposeSingle,this);if(h.single()){this.createSingle()}},createSingle:function(){var h=this.sidebar,i=this.options.selection.single(),g={};h.set(&quot;details&quot;,new f.view.Attachment.Details({controller:this.controller,model:i,priority:80}));h.set(&quot;compat&quot;,new f.view.AttachmentCompat({controller:this.controller,model:i,priority:120}));if(this.options.display){h.set(&quot;display&quot;,new f.view.Settings.AttachmentDisplay({controller:this.controller,model:this.model.display(i),attachment:i,priority:160,userSettings:this.model.get(&quot;displayUserSettings&quot;)}))}},disposeSingle:function(){var g=this.sidebar;g.unset(&quot;details&quot;);g.unset(&quot;compat&quot;);g.unset(&quot;display&quot;)}});f.view.Selection=f.View.extend({tagName:&quot;div&quot;,className:&quot;media-selection&quot;,template:f.tem
 plate(&quot;media-selection&quot;),events:{&quot;click .edit-selection&quot;:&quot;edit&quot;,&quot;click .clear-selection&quot;:&quot;clear&quot;},initialize:function(){_.defaults(this.options,{editable:false,clearable:true});this.attachments=new f.view.Attachments.Selection({controller:this.controller,collection:this.collection,selection:this.collection,model:new Backbone.Model({edge:40,gutter:5})});this.views.set(&quot;.selection-view&quot;,this.attachments);this.collection.on(&quot;add remove reset&quot;,this.refresh,this);this.controller.on(&quot;content:activate&quot;,this.refresh,this)},ready:function(){this.refresh()},refresh:function(){if(!this.$el.children().length){return}var h=this.collection,g=&quot;edit-selection&quot;===this.controller.content.mode();this.$el.toggleClass(&quot;empty&quot;,!h.length);this.$el.toggleClass(&quot;one&quot;,1===h.length);this.$el.toggleClass(&quot;editing&quot;,g);this.$(&quot;.count&quot;).text(b.selected.replace(&quot;%d&quot;,h.
 length))},edit:function(g){g.preventDefault();if(this.options.editable){this.options.editable.call(this,this.collection)}},clear:function(g){g.preventDefault();this.collection.reset()}});f.view.Attachment.Selection=f.view.Attachment.extend({className:&quot;attachment selection&quot;,toggleSelection:function(){this.options.selection.single(this.model)}});f.view.Attachments.Selection=f.view.Attachments.extend({events:{},initialize:function(){_.defaults(this.options,{sortable:true,resize:false,AttachmentView:f.view.Attachment.Selection});return f.view.Attachments.prototype.initialize.apply(this,arguments)}});f.view.Attachment.EditSelection=f.view.Attachment.Selection.extend({buttons:{close:true}});f.view.Settings=f.View.extend({events:{&quot;click button&quot;:&quot;updateHandler&quot;,&quot;change input&quot;:&quot;updateHandler&quot;,&quot;change select&quot;:&quot;updateHandler&quot;,&quot;change textarea&quot;:&quot;updateHandler&quot;},initialize:function(){this.model=this
 .model||new Backbone.Model();this.model.on(&quot;change&quot;,this.updateChanges,this)},prepare:function(){return _.defaults({model:this.model.toJSON()},this.options)},render:function(){f.View.prototype.render.apply(this,arguments);_(this.model.attributes).chain().keys().each(this.update,this);return this},update:function(j){var k=this.model.get(j),i=this.$('[data-setting=&quot;'+j+'&quot;]'),g,h;if(!i.length){return}if(i.is(&quot;select&quot;)){h=i.find('[value=&quot;'+k+'&quot;]');if(h.length){i.find(&quot;option&quot;).prop(&quot;selected&quot;,false);h.prop(&quot;selected&quot;,true)}else{this.model.set(j,i.find(&quot;:selected&quot;).val())}}else{if(i.hasClass(&quot;button-group&quot;)){g=i.find(&quot;button&quot;).removeClass(&quot;active&quot;);g.filter('[value=&quot;'+k+'&quot;]').addClass(&quot;active&quot;)}else{if(i.is('input[type=&quot;text&quot;], textarea')){if(!i.is(&quot;:focus&quot;)){i.val(k)}}else{if(i.is('input[type=&quot;checkbox&quot;]')){i.attr(&quot;c
 hecked&quot;,!!k)}}}}},updateHandler:function(i){var h=e(i.target).closest(&quot;[data-setting]&quot;),j=i.target.value,g;i.preventDefault();if(!h.length){return}if(h.is('input[type=&quot;checkbox&quot;]')){j=h[0].checked}this.model.set(h.data(&quot;setting&quot;),j);if(g=h.data(&quot;userSetting&quot;)){setUserSetting(g,j)}},updateChanges:function(h,g){if(g.changes){_(g.changes).chain().keys().each(this.update,this)}}});f.view.Settings.AttachmentDisplay=f.view.Settings.extend({className:&quot;attachment-display-settings&quot;,template:f.template(&quot;attachment-display-settings&quot;),initialize:function(){var g=this.options.attachment;_.defaults(this.options,{userSettings:false});f.view.Settings.prototype.initialize.apply(this,arguments);this.model.on(&quot;change:link&quot;,this.updateLinkTo,this);if(g){g.on(&quot;change:uploading&quot;,this.render,this)}},dispose:function(){var g=this.options.attachment;if(g){g.off(null,null,this)}f.view.Settings.prototype.dispose.apply
 (this,arguments)},render:function(){var g=this.options.attachment;if(g){_.extend(this.options,{sizes:g.get(&quot;sizes&quot;),type:g.get(&quot;type&quot;)})}f.view.Settings.prototype.render.call(this);this.updateLinkTo();return this},updateLinkTo:function(){var h=this.model.get(&quot;link&quot;),i=this.$(&quot;.link-to-custom&quot;),g=this.options.attachment;if(&quot;none&quot;===h||(!g&amp;&amp;&quot;custom&quot;!==h)){i.hide();return}if(g){if(&quot;post&quot;===h){i.val(g.get(&quot;link&quot;))}else{if(&quot;file&quot;===h){i.val(g.get(&quot;url&quot;))}else{if(!this.model.get(&quot;linkUrl&quot;)){i.val(&quot;http://&quot;)}}}i.prop(&quot;readonly&quot;,&quot;custom&quot;!==h)}i.show();if(i.is(&quot;:visible&quot;)){i.focus()[0].select()}}});f.view.Settings.Gallery=f.view.Settings.extend({className:&quot;gallery-settings&quot;,template:f.template(&quot;gallery-settings&quot;)});f.view.Attachment.Details=f.view.Attachment.extend({tagName:&quot;div&quot;,className:&quot;att
 achment-details&quot;,template:f.template(&quot;attachment-details&quot;),events:{&quot;change [data-setting]&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] input&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] select&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] textarea&quot;:&quot;updateSetting&quot;,&quot;click .delete-attachment&quot;:&quot;deleteAttachment&quot;,&quot;click .edit-attachment&quot;:&quot;editAttachment&quot;,&quot;click .refresh-attachment&quot;:&quot;refreshAttachment&quot;},initialize:function(){this.focusManager=new f.view.FocusManager({el:this.el});f.view.Attachment.prototype.initialize.apply(this,arguments)},render:function(){f.view.Attachment.prototype.render.apply(this,arguments);this.focusManager.focus();return this},deleteAttachment:function(g){g.preventDefault();if(confirm(b.warnDelete)){this.model.destroy()}},editAttachment:function(g){this.$el.addClass(&quot;needs-refresh&quot;)},refreshAttachment:functi
 on(g){this.$el.removeClass(&quot;needs-refresh&quot;);g.preventDefault();this.model.fetch()}});f.view.AttachmentCompat=f.View.extend({tagName:&quot;form&quot;,className:&quot;compat-item&quot;,events:{submit:&quot;preventDefault&quot;,&quot;change input&quot;:&quot;save&quot;,&quot;change select&quot;:&quot;save&quot;,&quot;change textarea&quot;:&quot;save&quot;},initialize:function(){this.focusManager=new f.view.FocusManager({el:this.el});this.model.on(&quot;change:compat&quot;,this.render,this)},dispose:function(){if(this.$(&quot;:focus&quot;).length){this.save()}return f.View.prototype.dispose.apply(this,arguments)},render:function(){var g=this.model.get(&quot;compat&quot;);if(!g||!g.item){return}this.views.detach();this.$el.html(g.item);this.views.render();this.focusManager.focus();return this},preventDefault:function(g){g.preventDefault()},save:function(g){var h={};if(g){g.preventDefault()}_.each(this.$el.serializeArray(),function(i){h[i.name]=i.value});this.model.saveC
 ompat(h)}});f.view.Iframe=f.View.extend({className:&quot;media-iframe&quot;,render:function(){this.views.detach();this.$el.html('&lt;iframe src=&quot;'+this.controller.state().get(&quot;src&quot;)+'&quot; /&gt;');this.views.render();return this}});f.view.Embed=f.View.extend({className:&quot;media-embed&quot;,initialize:function(){this.url=new f.view.EmbedUrl({controller:this.controller,model:this.model.props}).render();this.views.set([this.url]);this.refresh();this.model.on(&quot;change:type&quot;,this.refresh,this);this.model.on(&quot;change:loading&quot;,this.loading,this)},settings:function(g){if(this._settings){this._settings.remove()}this._settings=g;this.views.add(g)},refresh:function(){var h=this.model.get(&quot;type&quot;),g;if(&quot;image&quot;===h){g=f.view.EmbedImage}else{if(&quot;link&quot;===h){g=f.view.EmbedLink}else{return}}this.settings(new g({controller:this.controller,model:this.model.props,priority:40}))},loading:function(){this.$el.toggleClass(&quot;embed
 -loading&quot;,this.model.get(&quot;loading&quot;))}});f.view.EmbedUrl=f.View.extend({tagName:&quot;label&quot;,className:&quot;embed-url&quot;,events:{input:&quot;url&quot;,keyup:&quot;url&quot;,change:&quot;url&quot;},initialize:function(){this.input=this.make(&quot;input&quot;,{type:&quot;text&quot;,value:this.model.get(&quot;url&quot;)||&quot;&quot;});this.spinner=this.make(&quot;span&quot;,{&quot;class&quot;:&quot;spinner&quot;});this.$input=e(this.input);this.$el.append([this.input,this.spinner]);this.model.on(&quot;change:url&quot;,this.render,this)},render:function(){var g=this.$input;if(g.is(&quot;:focus&quot;)){return}this.input.value=this.model.get(&quot;url&quot;)||&quot;http://&quot;;f.View.prototype.render.apply(this,arguments);return this},ready:function(){this.focus()},url:function(g){this.model.set(&quot;url&quot;,g.target.value)},focus:function(){var g=this.$input;if(g.is(&quot;:visible&quot;)){g.focus()[0].select()}}});f.view.EmbedLink=f.view.Settings.exte
 nd({className:&quot;embed-link-settings&quot;,template:f.template(&quot;embed-link-settings&quot;)});f.view.EmbedImage=f.view.Settings.AttachmentDisplay.extend({className:&quot;embed-image-settings&quot;,template:f.template(&quot;embed-image-settings&quot;),initialize:function(){f.view.Settings.AttachmentDisplay.prototype.initialize.apply(this,arguments);this.model.on(&quot;change:url&quot;,this.updateImage,this)},updateImage:function(){this.$(&quot;img&quot;).attr(&quot;src&quot;,this.model.get(&quot;url&quot;))}})}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(e){var f=wp.media,d=f.model.Attachment,c=f.model.Attachments,a=f.model.Query,b;b=f.view.l10n=typeof _wpMediaViewsL10n===&quot;undefined&quot;?{}:_wpMediaViewsL10n;f.view.settings=b.settings||{};delete b.settings;f.model.settings.post=f.view.settings.post;e.support.transition=(function(){var g=document.documentElement.style,h={WebkitTransition:&quot;webkitTransitionEnd&quot;,MozTransition:&quot;transitionend&quot;,OTransition:&quot;oTransitionEnd otransitionend&quot;,transition:&quot;transitionend&quot;},i;i=_.find(_.keys(h),function(j){return !_.isUndefined(g[j])});return i&amp;&amp;{end:h[i]}}());f.transition=function(g,h){var i=e.Deferred();h=h||2000;if(e.support.transition){if(!(g instanceof e)){g=e(g)}g.first().one(e.support.transition.end,i.resolve);_.delay(i.resolve,h)}else{i.resolve()}return i.promise()};f.controller.Region=function(g){_.extend(this,_.pick(g||{},&quot;id&quot;,&quot;view&quot;,&quot;selector&quot;))};f.controller.Region.extend=Ba
 ckbone.Model.extend;_.extend(f.controller.Region.prototype,{mode:function(g){if(!g){return this._mode}if(g===this._mode){return this}this.trigger(&quot;deactivate&quot;);this._mode=g;this.render(g);this.trigger(&quot;activate&quot;);return this},render:function(h){if(h&amp;&amp;h!==this._mode){return this.mode(h)}var i={view:null},g;this.trigger(&quot;create&quot;,i);g=i.view;this.trigger(&quot;render&quot;,g);if(g){this.set(g)}return this},get:function(){return this.view.views.first(this.selector)},set:function(g,h){if(h){h.add=false}return this.view.views.set(this.selector,g,h)},trigger:function(h){var i;if(!this._mode){return}var g=_.toArray(arguments);i=this.id+&quot;:&quot;+h;g[0]=i+&quot;:&quot;+this._mode;this.view.trigger.apply(this.view,g);g[0]=i;this.view.trigger.apply(this.view,g);return this}});f.controller.StateMachine=function(g){this.states=new Backbone.Collection(g)};f.controller.StateMachine.extend=Backbone.Model.extend;_.extend(f.controller.StateMachine.pro
 totype,Backbone.Events,{state:function(g){this.states=this.states||new Backbone.Collection();g=g||this._state;if(g&amp;&amp;!this.states.get(g)){this.states.add({id:g})}return this.states.get(g)},setState:function(h){var g=this.state();if((g&amp;&amp;h===g.id)||!this.states||!this.states.get(h)){return this}if(g){g.trigger(&quot;deactivate&quot;);this._lastState=g.id}this._state=h;this.state().trigger(&quot;activate&quot;);return this},lastState:function(){if(this._lastState){return this.state(this._lastState)}}});_.each([&quot;on&quot;,&quot;off&quot;,&quot;trigger&quot;],function(g){f.controller.StateMachine.prototype[g]=function(){this.states=this.states||new Backbone.Collection();this.states[g].apply(this.states,arguments);return this}});f.controller.State=Backbone.Model.extend({constructor:function(){this.on(&quot;activate&quot;,this._preActivate,this);this.on(&quot;activate&quot;,this.activate,this);this.on(&quot;activate&quot;,this._postActivate,this);this.on(&quot;de
 activate&quot;,this._deactivate,this);this.on(&quot;deactivate&quot;,this.deactivate,this);this.on(&quot;reset&quot;,this.reset,this);this.on(&quot;ready&quot;,this._ready,this);this.on(&quot;ready&quot;,this.ready,this);this.on(&quot;change:menu&quot;,this._updateMenu,this);Backbone.Model.apply(this,arguments)},ready:function(){},activate:function(){},deactivate:function(){},reset:function(){},_ready:function(){this._updateMenu()},_preActivate:function(){this.active=true},_postActivate:function(){this.on(&quot;change:menu&quot;,this._menu,this);this.on(&quot;change:titleMode&quot;,this._title,this);this.on(&quot;change:content&quot;,this._content,this);this.on(&quot;change:toolbar&quot;,this._toolbar,this);this.frame.on(&quot;title:render:default&quot;,this._renderTitle,this);this._title();this._menu();this._toolbar();this._content();this._router()},_deactivate:function(){this.active=false;this.frame.off(&quot;title:render:default&quot;,this._renderTitle,this);this.off(&quo
 t;change:menu&quot;,this._menu,this);this.off(&quot;change:titleMode&quot;,this._title,this);this.off(&quot;change:content&quot;,this._content,this);this.off(&quot;change:toolbar&quot;,this._toolbar,this)},_title:function(){this.frame.title.render(this.get(&quot;titleMode&quot;)||&quot;default&quot;)},_renderTitle:function(g){g.$el.text(this.get(&quot;title&quot;)||&quot;&quot;)},_router:function(){var h=this.frame.router,i=this.get(&quot;router&quot;),g;this.frame.$el.toggleClass(&quot;hide-router&quot;,!i);if(!i){return}this.frame.router.render(i);g=h.get();if(g&amp;&amp;g.select){g.select(this.frame.content.mode())}},_menu:function(){var i=this.frame.menu,h=this.get(&quot;menu&quot;),g;if(!h){return}i.mode(h);g=i.get();if(g&amp;&amp;g.select){g.select(this.id)}},_updateMenu:function(){var g=this.previous(&quot;menu&quot;),h=this.get(&quot;menu&quot;);if(g){this.frame.off(&quot;menu:render:&quot;+g,this._renderMenu,this)}if(h){this.frame.on(&quot;menu:render:&quot;+h,this.
 _renderMenu,this)}},_renderMenu:function(g){var i=this.get(&quot;menuItem&quot;),j=this.get(&quot;title&quot;),h=this.get(&quot;priority&quot;);if(!i&amp;&amp;j){i={text:j};if(h){i.priority=h}}if(!i){return}g.set(this.id,i)}});_.each([&quot;toolbar&quot;,&quot;content&quot;],function(g){f.controller.State.prototype[&quot;_&quot;+g]=function(){var h=this.get(g);if(h){this.frame[g].render(h)}}});f.controller.Library=f.controller.State.extend({defaults:{id:&quot;library&quot;,multiple:false,describe:false,toolbar:&quot;select&quot;,sidebar:&quot;settings&quot;,content:&quot;upload&quot;,router:&quot;browse&quot;,menu:&quot;default&quot;,searchable:true,filterable:false,sortable:true,title:b.mediaLibraryTitle,contentUserSetting:true,syncSelection:true},initialize:function(){var h=this.get(&quot;selection&quot;),g;if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query())}if(!(h instanceof f.model.Selection)){g=h;if(!g){g=this.get(&quot;library&quot;).props.toJSON
 ();g=_.omit(g,&quot;orderby&quot;,&quot;query&quot;)}this.set(&quot;selection&quot;,new f.model.Selection(null,{multiple:this.get(&quot;multiple&quot;),props:g}))}if(!this.get(&quot;edge&quot;)){this.set(&quot;edge&quot;,120)}if(!this.get(&quot;gutter&quot;)){this.set(&quot;gutter&quot;,8)}this.resetDisplays()},activate:function(){this.syncSelection();wp.Uploader.queue.on(&quot;add&quot;,this.uploading,this);this.get(&quot;selection&quot;).on(&quot;add remove reset&quot;,this.refreshContent,this);if(this.get(&quot;contentUserSetting&quot;)){this.frame.on(&quot;content:activate&quot;,this.saveContentMode,this);this.set(&quot;content&quot;,getUserSetting(&quot;libraryContent&quot;,this.get(&quot;content&quot;)))}},deactivate:function(){this.recordSelection();this.frame.off(&quot;content:activate&quot;,this.saveContentMode,this);this.get(&quot;selection&quot;).off(null,null,this);wp.Uploader.queue.off(null,null,this)},reset:function(){this.get(&quot;selection&quot;).reset();thi
 s.resetDisplays();this.refreshContent()},resetDisplays:function(){var g=f.view.settings.defaultProps;this._displays=[];this._defaultDisplaySettings={align:g.align||getUserSetting(&quot;align&quot;,&quot;none&quot;),size:g.size||getUserSetting(&quot;imgsize&quot;,&quot;medium&quot;),link:g.link||getUserSetting(&quot;urlbutton&quot;,&quot;file&quot;)}},display:function(h){var g=this._displays;if(!g[h.cid]){g[h.cid]=new Backbone.Model(this._defaultDisplaySettings)}return g[h.cid]},syncSelection:function(){var h=this.get(&quot;selection&quot;),g=this.frame._selection;if(!this.get(&quot;syncSelection&quot;)||!g||!h){return}if(h.multiple){h.reset([],{silent:true});h.validateAll(g.attachments);g.difference=_.difference(g.attachments.models,h.models)}h.single(g.single)},recordSelection:function(){var i=this.get(&quot;selection&quot;),h=this.frame._selection,g;if(!this.get(&quot;syncSelection&quot;)||!h||!i){return}if(i.multiple){h.attachments.reset(i.toArray().concat(h.difference));
 h.difference=[]}else{h.attachments.add(i.toArray())}h.single=i._single},refreshContent:function(){var h=this.get(&quot;selection&quot;),j=this.frame,g=j.router.get(),i=j.content.mode();if(this.active&amp;&amp;!h.length&amp;&amp;g&amp;&amp;!g.get(i)){this.frame.content.render(this.get(&quot;content&quot;))}},uploading:function(h){var g=this.frame.content;if(&quot;upload&quot;===g.mode()){this.frame.content.mode(&quot;browse&quot;)}this.get(&quot;selection&quot;).add(h)},saveContentMode:function(){if(&quot;browse&quot;!==this.get(&quot;router&quot;)){return}var h=this.frame.content.mode(),g=this.frame.router.get();if(g&amp;&amp;g.get(h)){setUserSetting(&quot;libraryContent&quot;,h)}}});f.controller.GalleryEdit=f.controller.Library.extend({defaults:{id:&quot;gallery-edit&quot;,multiple:false,describe:true,edge:199,editing:false,sortable:true,searchable:false,toolbar:&quot;gallery-edit&quot;,content:&quot;browse&quot;,title:b.editGalleryTitle,priority:60,dragInfo:true,syncSelect
 ion:false},initialize:function(){if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,new f.model.Selection())}if(!this.get(&quot;AttachmentView&quot;)){this.set(&quot;AttachmentView&quot;,f.view.Attachment.EditLibrary)}f.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){var g=this.get(&quot;library&quot;);g.props.set(&quot;type&quot;,&quot;image&quot;);this.get(&quot;library&quot;).observe(wp.Uploader.queue);this.frame.on(&quot;content:render:browse&quot;,this.gallerySettings,this);f.controller.Library.prototype.activate.apply(this,arguments)},deactivate:function(){this.get(&quot;library&quot;).unobserve(wp.Uploader.queue);this.frame.off(&quot;content:render:browse&quot;,this.gallerySettings,this);f.controller.Library.prototype.deactivate.apply(this,arguments)},gallerySettings:function(h){var g=this.get(&quot;library&quot;);if(!g||!h){return}g.gallery=g.gallery||new Backbone.Model();h.sidebar.set({gallery:new f.view.Settings.Galle
 ry({controller:this,model:g.gallery,priority:40})});h.toolbar.set(&quot;reverse&quot;,{text:b.reverseOrder,priority:80,click:function(){g.reset(g.toArray().reverse())}})}});f.controller.GalleryAdd=f.controller.Library.extend({defaults:_.defaults({id:&quot;gallery-library&quot;,filterable:&quot;uploaded&quot;,multiple:&quot;add&quot;,menu:&quot;gallery&quot;,toolbar:&quot;gallery-add&quot;,title:b.addToGalleryTitle,priority:100,syncSelection:false},f.controller.Library.prototype.defaults),initialize:function(){if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query({type:&quot;image&quot;}))}f.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){var g=this.get(&quot;library&quot;),h=this.frame.state(&quot;gallery-edit&quot;).get(&quot;library&quot;);if(this.editLibrary&amp;&amp;this.editLibrary!==h){g.unobserve(this.editLibrary)}g.validator=function(i){return !!this.mirroring.getByCid(i.cid)&amp;&amp;!h.getByCid(i.cid)&amp;&amp;f.
 model.Selection.prototype.validator.apply(this,arguments)};g.observe(h);this.editLibrary=h;f.controller.Library.prototype.activate.apply(this,arguments)}});f.controller.FeaturedImage=f.controller.Library.extend({defaults:_.defaults({id:&quot;featured-image&quot;,filterable:&quot;uploaded&quot;,multiple:false,toolbar:&quot;featured-image&quot;,title:b.setFeaturedImageTitle,priority:60,syncSelection:false},f.controller.Library.prototype.defaults),initialize:function(){var h,g;if(!this.get(&quot;library&quot;)){this.set(&quot;library&quot;,f.query({type:&quot;image&quot;}))}f.controller.Library.prototype.initialize.apply(this,arguments);h=this.get(&quot;library&quot;);g=h.comparator;h.comparator=function(j,i){var l=!!this.mirroring.getByCid(j.cid),k=!!this.mirroring.getByCid(i.cid);if(!l&amp;&amp;k){return -1}else{if(l&amp;&amp;!k){return 1}else{return g.apply(this,arguments)}}};h.observe(this.get(&quot;selection&quot;))},activate:function(){this.updateSelection();this.frame.on
 (&quot;open&quot;,this.updateSelection,this);f.controller.Library.prototype.activate.apply(this,arguments)},deactivate:function(){this.frame.off(&quot;open&quot;,this.updateSelection,this);f.controller.Library.prototype.deactivate.apply(this,arguments)},updateSelection:function(){var g=this.get(&quot;selection&quot;),i=f.view.settings.post.featuredImageId,h;if(&quot;&quot;!==i&amp;&amp;-1!==i){h=d.get(i);h.fetch()}g.reset(h?[h]:[])}});f.controller.Embed=f.controller.State.extend({defaults:{id:&quot;embed&quot;,url:&quot;&quot;,menu:&quot;default&quot;,content:&quot;embed&quot;,toolbar:&quot;main-embed&quot;,type:&quot;link&quot;,title:b.insertFromUrlTitle,priority:120},sensitivity:200,initialize:function(){this.debouncedScan=_.debounce(_.bind(this.scan,this),this.sensitivity);this.props=new Backbone.Model({url:&quot;&quot;});this.props.on(&quot;change:url&quot;,this.debouncedScan,this);this.props.on(&quot;change:url&quot;,this.refresh,this);this.on(&quot;scan&quot;,this.scan
 Image,this)},scan:function(){var h,i=this,g={type:&quot;link&quot;,scanners:[]};if(this.props.get(&quot;url&quot;)){this.trigger(&quot;scan&quot;,g)}if(g.scanners.length){h=g.scanners=e.when.apply(e,g.scanners);h.always(function(){if(i.get(&quot;scanners&quot;)===h){i.set(&quot;loading&quot;,false)}})}else{g.scanners=null}g.loading=!!g.scanners;this.set(g)},scanImage:function(h){var l=this.frame,j=this,i=this.props.get(&quot;url&quot;),k=new Image(),g=e.Deferred();h.scanners.push(g.promise());k.onload=function(){g.resolve();if(j!==l.state()||i!==j.props.get(&quot;url&quot;)){return}j.set({type:&quot;image&quot;});j.props.set({width:k.width,height:k.height})};k.onerror=g.reject;k.src=i},refresh:function(){this.frame.toolbar.get().refresh()},reset:function(){this.props.clear().set({url:&quot;&quot;});if(this.active){this.refresh()}}});f.Views=function(h,g){this.view=h;this._views=_.isArray(g)?{&quot;&quot;:g}:g||{}};f.Views.extend=Backbone.Model.extend;_.extend(f.Views.prototy
 pe,{all:function(){return _.flatten(this._views)},get:function(g){g=g||&quot;&quot;;return this._views[g]},first:function(g){var h=this.get(g);return h&amp;&amp;h.length?h[0]:null},set:function(g,h,i){var k,j;if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}i=i||{};h=_.isArray(h)?h:[h];k=this.get(g);j=h;if(k){if(i.add){if(_.isUndefined(i.at)){j=k.concat(h)}else{j=k;j.splice.apply(j,[i.at,0].concat(h))}}else{_.each(j,function(l){l.__detach=true});_.each(k,function(l){if(l.__detach){l.$el.detach()}else{l.dispose()}});_.each(j,function(l){delete l.__detach})}}this._views[g]=j;_.each(h,function(n){var l=n.Views||f.Views,m=n.views=n.views||new l(n);m.parent=this.view;m.selector=g},this);if(!i.silent){this._attach(g,h,_.extend({ready:this._isReady()},i))}return this},add:function(g,h,i){if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}return this.set(g,h,_.extend({add:true},i))},unset:function(g,h,i){var j;if(!_.isString(g)){i=h;h=g;g=&quot;&quot;}h=h||[];if(j=this.get(g)){h=_.isArray(h)?h:[h];
 this._views[g]=h.length?_.difference(j,h):[]}if(!i||!i.silent){_.invoke(h,&quot;dispose&quot;)}return this},detach:function(){e(_.pluck(this.all(),&quot;el&quot;)).detach();return this},render:function(){var g={ready:this._isReady()};_.each(this._views,function(i,h){this._attach(h,i,g)},this);this.rendered=true;return this},dispose:function(g){if(!g||!g.silent){if(this.parent&amp;&amp;this.parent.views){this.parent.views.unset(this.selector,this.view,{silent:true})}delete this.parent;delete this.selector}_.invoke(this.all(),&quot;dispose&quot;);this._views=[];return this},replace:function(g,h){g.html(h);return this},insert:function(h,k,j){var g=j&amp;&amp;j.at,i;if(_.isNumber(g)&amp;&amp;(i=h.children()).length&gt;g){i.eq(g).before(k)}else{h.append(k)}return this},ready:function(){this.view.trigger(&quot;ready&quot;);_.chain(this.all()).map(function(g){return g.views}).flatten().where({attached:true}).invoke(&quot;ready&quot;)},_attach:function(g,h,i){var k=g?this.view.$(g):
 this.view.$el,j;if(!k.length){return this}j=_.chain(h).pluck(&quot;views&quot;).flatten().value();_.each(j,function(l){if(l.rendered){return}l.view.render();l.rendered=true},this);this[i.add?&quot;insert&quot;:&quot;replace&quot;](k,_.pluck(h,&quot;el&quot;),i);_.each(j,function(l){l.attached=true;if(i.ready){l.ready()}},this);return this},_isReady:function(){var g=this.view.el;while(g){if(g===document.body){return true}g=g.parentNode}return false}});f.View=Backbone.View.extend({Views:f.Views,constructor:function(g){this.views=new this.Views(this,this.views);this.on(&quot;ready&quot;,this.ready,this);if(g&amp;&amp;g.controller){this.controller=g.controller}Backbone.View.apply(this,arguments)},dispose:function(){this.undelegateEvents();if(this.model&amp;&amp;this.model.off){this.model.off(null,null,this)}if(this.collection&amp;&amp;this.collection.off){this.collection.off(null,null,this)}if(this.controller&amp;&amp;this.controller.off){this.controller.off(null,null,this)}if(t
 his.views){this.views.dispose()}return this},remove:function(){this.dispose();return Backbone.View.prototype.remove.apply(this,arguments)},render:function(){var g;if(this.prepare){g=this.prepare()}this.views.detach();if(this.template){g=g||{};this.trigger(&quot;prepare&quot;,g);this.$el.html(this.template(g))}this.views.render();return this},prepare:function(){return this.options},ready:function(){}});f.view.Frame=f.View.extend({initialize:function(){this._createRegions();this._createStates()},_createRegions:function(){this.regions=this.regions?this.regions.slice():[];_.each(this.regions,function(g){this[g]=new f.controller.Region({view:this,id:g,selector:&quot;.media-frame-&quot;+g})},this)},_createStates:function(){this.states=new Backbone.Collection(null,{model:f.controller.State});this.states.on(&quot;add&quot;,function(g){g.frame=this;g.trigger(&quot;ready&quot;)},this);if(this.options.states){this.states.add(this.options.states)}},reset:function(){this.states.invoke(&q
 uot;trigger&quot;,&quot;reset&quot;);return this}});_.extend(f.view.Frame.prototype,f.controller.StateMachine.prototype);f.view.MediaFrame=f.view.Frame.extend({className:&quot;media-frame&quot;,template:f.template(&quot;media-frame&quot;),regions:[&quot;menu&quot;,&quot;title&quot;,&quot;content&quot;,&quot;toolbar&quot;,&quot;router&quot;],initialize:function(){f.view.Frame.prototype.initialize.apply(this,arguments);_.defaults(this.options,{title:&quot;&quot;,modal:true,uploader:true});this.$el.addClass(&quot;wp-core-ui&quot;);if(this.options.modal){this.modal=new f.view.Modal({controller:this,title:this.options.title});this.modal.content(this)}if(wp.Uploader.limitExceeded||!wp.Uploader.browser.supported){this.options.uploader=false}if(this.options.uploader){this.uploader=new f.view.UploaderWindow({controller:this,uploader:{dropzone:this.modal?this.modal.$el:this.$el,container:this.$el}});this.views.set(&quot;.media-frame-uploader&quot;,this.uploader)}this.on(&quot;attach&q
 uot;,_.bind(this.views.ready,this.views),this);this.on(&quot;title:create:default&quot;,this.createTitle,this);this.title.mode(&quot;default&quot;);this.on(&quot;menu:create:default&quot;,this.createMenu,this)},render:function(){if(!this.state()&amp;&amp;this.options.state){this.setState(this.options.state)}return f.view.Frame.prototype.render.apply(this,arguments)},createTitle:function(g){g.view=new f.View({controller:this,tagName:&quot;h1&quot;})},createMenu:function(g){g.view=new f.view.Menu({controller:this})},createToolbar:function(g){g.view=new f.view.Toolbar({controller:this})},createRouter:function(g){g.view=new f.view.Router({controller:this})},createIframeStates:function(g){var j=f.view.settings,i=j.tabs,k=j.tabUrl,h;if(!i||!k){return}h=e(&quot;#post_ID&quot;);if(h.length){k+=&quot;&amp;post_id=&quot;+h.val()}_.each(i,function(m,n){var l=this.state(&quot;iframe:&quot;+n).set(_.defaults({tab:n,src:k+&quot;&amp;tab=&quot;+n,title:m,content:&quot;iframe&quot;,menu:&qu
 ot;default&quot;},g))},this);this.on(&quot;content:create:iframe&quot;,this.iframeContent,this);this.on(&quot;menu:render:default&quot;,this.iframeMenu,this);this.on(&quot;open&quot;,this.hijackThickbox,this);this.on(&quot;close&quot;,this.restoreThickbox,this)},iframeContent:function(g){this.$el.addClass(&quot;hide-toolbar&quot;);g.view=new f.view.Iframe({controller:this})},iframeMenu:function(h){var g={};if(!h){return}_.each(f.view.settings.tabs,function(i,j){g[&quot;iframe:&quot;+j]={text:this.state(&quot;iframe:&quot;+j).get(&quot;title&quot;),priority:200}},this);h.set(g)},hijackThickbox:function(){var g=this;if(!window.tb_remove||this._tb_remove){return}this._tb_remove=window.tb_remove;window.tb_remove=function(){g.close();g.reset();g.setState(g.options.state);g._tb_remove.call(window)}},restoreThickbox:function(){if(!this._tb_remove){return}window.tb_remove=this._tb_remove;delete this._tb_remove}});_.each([&quot;open&quot;,&quot;close&quot;,&quot;attach&quot;,&quot;de
 tach&quot;,&quot;escape&quot;],function(g){f.view.MediaFrame.prototype[g]=function(h){if(this.modal){this.modal[g].apply(this.modal,arguments)}return this}});f.view.MediaFrame.Select=f.view.MediaFrame.extend({initialize:function(){f.view.MediaFrame.prototype.initialize.apply(this,arguments);_.defaults(this.options,{selection:[],library:{},multiple:false,state:&quot;library&quot;});this.createSelection();this.createStates();this.bindHandlers()},createSelection:function(){var g=this,h=this.options.selection;if(!(h instanceof f.model.Selection)){this.options.selection=new f.model.Selection(h,{multiple:this.options.multiple})}this._selection={attachments:new c(),difference:[]}},createStates:function(){var g=this.options;if(this.options.states){return}this.states.add([new f.controller.Library({library:f.query(g.library),multiple:g.multiple,title:g.title,priority:20})])},bindHandlers:function(){this.on(&quot;router:create:browse&quot;,this.createRouter,this);this.on(&quot;router:r
 ender:browse&quot;,this.browseRouter,this);this.on(&quot;content:create:browse&quot;,this.browseContent,this);this.on(&quot;content:render:upload&quot;,this.uploadContent,this);this.on(&quot;toolbar:create:select&quot;,this.createSelectToolbar,this)},browseRouter:function(g){g.set({upload:{text:b.uploadFilesTitle,priority:20},browse:{text:b.mediaLibraryTitle,priority:40}})},browseContent:function(g){var h=this.state();this.$el.removeClass(&quot;hide-toolbar&quot;);g.view=new f.view.AttachmentsBrowser({controller:this,collection:h.get(&quot;library&quot;),selection:h.get(&quot;selection&quot;),model:h,sortable:h.get(&quot;sortable&quot;),search:h.get(&quot;searchable&quot;),filters:h.get(&quot;filterable&quot;),display:h.get(&quot;displaySettings&quot;),dragInfo:h.get(&quot;dragInfo&quot;),AttachmentView:h.get(&quot;AttachmentView&quot;)})},uploadContent:function(){this.$el.removeClass(&quot;hide-toolbar&quot;);this.content.set(new f.view.UploaderInline({controller:this}))},c
 reateSelectToolbar:function(h,g){g=g||this.options.button||{};g.controller=this;h.view=new f.view.Toolbar.Select(g)}});f.view.MediaFrame.Post=f.view.MediaFrame.Select.extend({initialize:function(){_.defaults(this.options,{multiple:true,editing:false,state:&quot;insert&quot;});f.view.MediaFrame.Select.prototype.initialize.apply(this,arguments);this.createIframeStates()},createStates:function(){var g=this.options;this.states.add([new f.controller.Library({id:&quot;insert&quot;,title:b.insertMediaTitle,priority:20,toolbar:&quot;main-insert&quot;,filterable:&quot;all&quot;,library:f.query(g.library),multiple:g.multiple?&quot;reset&quot;:false,editable:true,allowLocalEdits:true,displaySettings:true,displayUserSettings:true}),new f.controller.Library({id:&quot;gallery&quot;,title:b.createGalleryTitle,priority:40,toolbar:&quot;main-gallery&quot;,filterable:&quot;uploaded&quot;,multiple:&quot;add&quot;,editable:false,library:f.query(_.defaults({type:&quot;image&quot;},g.library))}),
 new f.controller.Embed(),new f.controller.GalleryEdit({library:g.selection,editing:g.editing,menu:&quot;gallery&quot;}),new f.controller.GalleryAdd()]);if(f.view.settings.post.featuredImageId){this.states.add(new f.controller.FeaturedImage())}},bindHandlers:function(){f.view.MediaFrame.Select.prototype.bindHandlers.apply(this,arguments);this.on(&quot;menu:create:gallery&quot;,this.createMenu,this);this.on(&quot;toolbar:create:main-insert&quot;,this.createToolbar,this);this.on(&quot;toolbar:create:main-gallery&quot;,this.createToolbar,this);this.on(&quot;toolbar:create:featured-image&quot;,this.featuredImageToolbar,this);this.on(&quot;toolbar:create:main-embed&quot;,this.mainEmbedToolbar,this);var g={menu:{&quot;default&quot;:&quot;mainMenu&quot;,gallery:&quot;galleryMenu&quot;},content:{embed:&quot;embedContent&quot;,&quot;edit-selection&quot;:&quot;editSelectionContent&quot;},toolbar:{&quot;main-insert&quot;:&quot;mainInsertToolbar&quot;,&quot;main-gallery&quot;:&quot;mainG
 alleryToolbar&quot;,&quot;gallery-edit&quot;:&quot;galleryEditToolbar&quot;,&quot;gallery-add&quot;:&quot;galleryAddToolbar&quot;}};_.each(g,function(i,h){_.each(i,function(k,j){this.on(h+&quot;:render:&quot;+j,this[k],this)},this)},this)},mainMenu:function(g){g.set({&quot;library-separator&quot;:new f.View({className:&quot;separator&quot;,priority:100})})},galleryMenu:function(g){var h=this.lastState(),i=h&amp;&amp;h.id,j=this;g.set({cancel:{text:b.cancelGalleryTitle,priority:20,click:function(){if(i){j.setState(i)}else{j.close()}}},separateCancel:new f.View({className:&quot;separator&quot;,priority:40})})},embedContent:function(){var g=new f.view.Embed({controller:this,model:this.state()}).render();this.content.set(g);g.url.focus()},editSelectionContent:function(){var i=this.state(),h=i.get(&quot;selection&quot;),g;g=new f.view.AttachmentsBrowser({controller:this,collection:h,selection:h,model:i,sortable:true,search:false,dragInfo:true,AttachmentView:f.view.Attachment.Edit
 Selection}).render();g.toolbar.set(&quot;backToLibrary&quot;,{text:b.returnToLibrary,priority:-100,click:function(){this.controller.content.mode(&quot;browse&quot;)}});this.content.set(g)},selectionStatusToolbar:function(g){var h=this.state().get(&quot;editable&quot;);g.set(&quot;selection&quot;,new f.view.Selection({controller:this,collection:this.state().get(&quot;selection&quot;),priority:-40,editable:h&amp;&amp;function(){this.controller.content.mode(&quot;edit-selection&quot;)}}).render())},mainInsertToolbar:function(h){var g=this;this.selectionStatusToolbar(h);h.set(&quot;insert&quot;,{style:&quot;primary&quot;,priority:80,text:b.insertIntoPost,requires:{selection:true},click:function(){var j=g.state(),i=j.get(&quot;selection&quot;);g.close();j.trigger(&quot;insert&quot;,i).reset()}})},mainGalleryToolbar:function(h){var g=this;this.selectionStatusToolbar(h);h.set(&quot;gallery&quot;,{style:&quot;primary&quot;,text:b.createNewGallery,priority:60,requires:{selection:true
 },click:function(){var i=g.state().get(&quot;selection&quot;),j=g.state(&quot;gallery-edit&quot;),k=i.where({type:&quot;image&quot;});j.set(&quot;library&quot;,new f.model.Selection(k,{props:i.props.toJSON(),multiple:true}));this.controller.setState(&quot;gallery-edit&quot;)}})},featuredImageToolbar:function(g){this.createSelectToolbar(g,{text:b.setFeaturedImage,state:this.options.state||&quot;upload&quot;})},mainEmbedToolbar:function(g){g.view=new f.view.Toolbar.Embed({controller:this})},galleryEditToolbar:function(){var g=this.state().get(&quot;editing&quot;);this.toolbar.set(new f.view.Toolbar({controller:this,items:{insert:{style:&quot;primary&quot;,text:g?b.updateGallery:b.insertGallery,priority:80,requires:{library:true},click:function(){var h=this.controller,i=h.state();h.close();i.trigger(&quot;update&quot;,i.get(&quot;library&quot;));h.reset();h.setState(&quot;upload&quot;)}}}}))},galleryAddToolbar:function(){this.toolbar.set(new f.view.Toolbar({controller:this,item
 s:{insert:{style:&quot;primary&quot;,text:b.addToGallery,priority:80,requires:{selection:true},click:function(){var g=this.controller,i=g.state(),h=g.state(&quot;gallery-edit&quot;);h.get(&quot;library&quot;).add(i.get(&quot;selection&quot;).models);i.trigger(&quot;reset&quot;);g.setState(&quot;gallery-edit&quot;)}}}}))}});f.view.Modal=f.View.extend({tagName:&quot;div&quot;,template:f.template(&quot;media-modal&quot;),attributes:{tabindex:0},events:{&quot;click .media-modal-backdrop, .media-modal-close&quot;:&quot;escapeHandler&quot;,keydown:&quot;keydown&quot;},initialize:function(){_.defaults(this.options,{container:document.body,title:&quot;&quot;,propagate:true,freeze:true})},prepare:function(){return{title:this.options.title}},attach:function(){if(this.views.attached){return this}if(!this.views.rendered){this.render()}this.$el.appendTo(this.options.container);this.views.attached=true;this.views.ready();return this.propagate(&quot;attach&quot;)},detach:function(){if(this
 .$el.is(&quot;:visible&quot;)){this.close()}this.$el.detach();this.views.attached=false;return this.propagate(&quot;detach&quot;)},open:function(){var h=this.$el,g=this.options;if(h.is(&quot;:visible&quot;)){return this}if(!this.views.attached){this.attach()}if(g.freeze){this._freeze={scrollTop:e(window).scrollTop()}}h.show().focus();return this.propagate(&quot;open&quot;)},close:function(g){var h=this._freeze;if(!this.views.attached||!this.$el.is(&quot;:visible&quot;)){return this}this.$el.hide();this.propagate(&quot;close&quot;);if(h){e(window).scrollTop(h.scrollTop)}if(g&amp;&amp;g.escape){this.propagate(&quot;escape&quot;)}return this},escape:function(){return this.close({escape:true})},escapeHandler:function(g){g.preventDefault();this.escape()},content:function(g){this.views.set(&quot;.media-modal-content&quot;,g);return this},propagate:function(g){this.trigger(g);if(this.options.propagate){this.controller.trigger(g)}return this},keydown:function(g){if(27===g.which){g.p
 reventDefault();this.escape();return}}});f.view.FocusManager=f.View.extend({events:{keydown:&quot;recordTab&quot;,focusin:&quot;updateIndex&quot;},focus:function(){if(_.isUndefined(this.index)){return}this.$tabbables=this.$(&quot;:tabbable&quot;);this.$tabbables.eq(this.index).focus()},recordTab:function(h){if(9!==h.keyCode){return}if(_.isUndefined(this.index)){this.updateIndex(h)}if(_.isUndefined(this.index)){return}var g=this.index+(h.shiftKey?-1:1);if(g&gt;=0&amp;&amp;g&lt;this.$tabbables.length){this.index=g}else{delete this.index}},updateIndex:function(h){this.$tabbables=this.$(&quot;:tabbable&quot;);var g=this.$tabbables.index(h.target);if(-1===g){delete this.index}else{this.index=g}}});f.view.UploaderWindow=f.View.extend({tagName:&quot;div&quot;,className:&quot;uploader-window&quot;,template:f.template(&quot;uploader-window&quot;),initialize:function(){var g;this.$browser=e('&lt;a href=&quot;#&quot; class=&quot;browser&quot; /&gt;').hide().appendTo(&quot;body&quot;);g
 =this.options.uploader=_.defaults(this.options.uploader||{},{dropzone:this.$el,browser:this.$browser,params:{}});if(g.dropzone&amp;&amp;!(g.dropzone instanceof e)){g.dropzone=e(g.dropzone)}this.controller.on(&quot;activate&quot;,this.refresh,this)},refresh:function(){if(this.uploader){this.uploader.refresh()}},ready:function(){var h=f.view.settings.post.id,g;if(this.uploader){return}if(h){this.options.uploader.params.post_id=h}this.uploader=new wp.Uploader(this.options.uploader);g=this.uploader.dropzone;g.on(&quot;dropzone:enter&quot;,_.bind(this.show,this));g.on(&quot;dropzone:leave&quot;,_.bind(this.hide,this))},show:function(){var g=this.$el.show();_.defer(function(){g.css({opacity:1})})},hide:function(){var g=this.$el.css({opacity:0});f.transition(g).done(function(){if(&quot;0&quot;===g.css(&quot;opacity&quot;)){g.hide()}})}});f.view.UploaderInline=f.View.extend({tagName:&quot;div&quot;,className:&quot;uploader-inline&quot;,template:f.template(&quot;uploader-inline&quot;
 ),initialize:function(){_.defaults(this.options,{message:&quot;&quot;,status:true});if(!this.options.$browser&amp;&amp;this.controller.uploader){this.options.$browser=this.controller.uploader.$browser}if(_.isUndefined(this.options.postId)){this.options.postId=f.view.settings.post.id}if(this.options.status){this.views.set(&quot;.upload-inline-status&quot;,new f.view.UploaderStatus({controller:this.controller}))}},dispose:function(){if(this.disposing){return f.View.prototype.dispose.apply(this,arguments)}this.disposing=true;return this.remove()},remove:function(){var g=f.View.prototype.remove.apply(this,arguments);_.defer(_.bind(this.refresh,this));return g},refresh:function(){var g=this.controller.uploader;if(g){g.refresh()}},ready:function(){var g=this.options.$browser,h;if(this.controller.uploader){h=this.$(&quot;.browser&quot;);if(h[0]===g[0]){return}g.detach().text(h.text());g[0].className=h[0].className;h.replaceWith(g.show())}this.refresh();return this}});f.view.Uploade
 rStatus=f.View.extend({className:&quot;media-uploader-status&quot;,template:f.template(&quot;uploader-status&quot;),events:{&quot;click .upload-dismiss-errors&quot;:&quot;dismiss&quot;},initialize:function(){this.queue=wp.Uploader.queue;this.queue.on(&quot;add remove reset&quot;,this.visibility,this);this.queue.on(&quot;add remove reset change:percent&quot;,this.progress,this);this.queue.on(&quot;add remove reset change:uploading&quot;,this.info,this);this.errors=wp.Uploader.errors;this.errors.reset();this.errors.on(&quot;add remove reset&quot;,this.visibility,this);this.errors.on(&quot;add&quot;,this.error,this)},dispose:function(){wp.Uploader.queue.off(null,null,this);f.View.prototype.dispose.apply(this,arguments);return this},visibility:function(){this.$el.toggleClass(&quot;uploading&quot;,!!this.queue.length);this.$el.toggleClass(&quot;errors&quot;,!!this.errors.length);this.$el.toggle(!!this.queue.length||!!this.errors.length)},ready:function(){_.each({&quot;$bar&quot;:
 &quot;.media-progress-bar div&quot;,&quot;$index&quot;:&quot;.upload-index&quot;,&quot;$total&quot;:&quot;.upload-total&quot;,&quot;$filename&quot;:&quot;.upload-filename&quot;},function(g,h){this[h]=this.$(g)},this);this.visibility();this.progress();this.info()},progress:function(){var g=this.queue,i=this.$bar,h=0;if(!i||!g.length){return}i.width((g.reduce(function(j,l){if(!l.get(&quot;uploading&quot;)){return j+100}var k=l.get(&quot;percent&quot;);return j+(_.isNumber(k)?k:100)},0)/g.length)+&quot;%&quot;)},info:function(){var g=this.queue,h=0,i;if(!g.length){return}i=this.queue.find(function(k,j){h=j;return k.get(&quot;uploading&quot;)});this.$index.text(h+1);this.$total.text(g.length);this.$filename.html(i?this.filename(i.get(&quot;filename&quot;)):&quot;&quot;)},filename:function(g){return f.truncate(_.escape(g),24)},error:function(g){this.views.add(&quot;.upload-errors&quot;,new f.view.UploaderStatusError({filename:this.filename(g.get(&quot;file&quot;).name),message:g.
 get(&quot;message&quot;)}),{at:0})},dismiss:function(g){var h=this.views.get(&quot;.upload-errors&quot;);g.preventDefault();if(h){_.invoke(h,&quot;remove&quot;)}wp.Uploader.errors.reset()}});f.view.UploaderStatusError=f.View.extend({className:&quot;upload-error&quot;,template:f.template(&quot;uploader-status-error&quot;)});f.view.Toolbar=f.View.extend({tagName:&quot;div&quot;,className:&quot;media-toolbar&quot;,initialize:function(){var i=this.controller.state(),h=this.selection=i.get(&quot;selection&quot;),g=this.library=i.get(&quot;library&quot;);this._views={};this.primary=new f.view.PriorityList();this.secondary=new f.view.PriorityList();this.primary.$el.addClass(&quot;media-toolbar-primary&quot;);this.secondary.$el.addClass(&quot;media-toolbar-secondary&quot;);this.views.set([this.secondary,this.primary]);if(this.options.items){this.set(this.options.items,{silent:true})}if(!this.options.silent){this.render()}if(h){h.on(&quot;add remove reset&quot;,this.refresh,this)}if(
 g){g.on(&quot;add remove reset&quot;,this.refresh,this)}},dispose:function(){if(this.selection){this.selection.off(null,null,this)}if(this.library){this.library.off(null,null,this)}return f.View.prototype.dispose.apply(this,arguments)},ready:function(){this.refresh()},set:function(j,g,h){var i;h=h||{};if(_.isObject(j)){_.each(j,function(k,l){this.set(l,k,{silent:true})},this)}else{if(!(g instanceof Backbone.View)){g.classes=[&quot;media-button-&quot;+j].concat(g.classes||[]);g=new f.view.Button(g).render()}g.controller=g.controller||this.controller;this._views[j]=g;i=g.options.priority&lt;0?&quot;secondary&quot;:&quot;primary&quot;;this[i].set(j,g,h)}if(!h.silent){this.refresh()}return this},get:function(g){return this._views[g]},unset:function(h,g){delete this._views[h];this.primary.unset(h,g);this.secondary.unset(h,g);if(!g||!g.silent){this.refresh()}return this},refresh:function(){var i=this.controller.state(),g=i.get(&quot;library&quot;),h=i.get(&quot;selection&quot;);_.
 each(this._views,function(j){if(!j.model||!j.options||!j.options.requires){return}var l=j.options.requires,k=false;if(l.selection&amp;&amp;h&amp;&amp;!h.length){k=true}else{if(l.library&amp;&amp;g&amp;&amp;!g.length){k=true}}j.model.set(&quot;disabled&quot;,k)})}});f.view.Toolbar.Select=f.view.Toolbar.extend({initialize:function(){var h=this.options,g=h.controller,i=g.state().get(&quot;selection&quot;);_.bindAll(this,&quot;clickSelect&quot;);_.defaults(h,{event:&quot;select&quot;,state:false,reset:true,close:true,text:b.select,requires:{selection:true}});h.items=_.defaults(h.items||{},{select:{style:&quot;primary&quot;,text:h.text,priority:80,click:this.clickSelect,requires:h.requires}});f.view.Toolbar.prototype.initialize.apply(this,arguments)},clickSelect:function(){var h=this.options,g=this.controller;if(h.close){g.close()}if(h.event){g.state().trigger(h.event)}if(h.reset){g.reset()}if(h.state){g.setState(h.state)}}});f.view.Toolbar.Embed=f.view.Toolbar.Select.extend({ini
 tialize:function(){_.defaults(this.options,{text:b.insertIntoPost,requires:false});f.view.Toolbar.Select.prototype.initialize.apply(this,arguments)},refresh:function(){var g=this.controller.state().props.get(&quot;url&quot;);this.get(&quot;select&quot;).model.set(&quot;disabled&quot;,!g||g===&quot;http://&quot;);f.view.Toolbar.Select.prototype.refresh.apply(this,arguments)}});f.view.Button=f.View.extend({tagName:&quot;a&quot;,className:&quot;media-button&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;click&quot;},defaults:{text:&quot;&quot;,style:&quot;&quot;,size:&quot;large&quot;,disabled:false},initialize:function(){this.model=new Backbone.Model(this.defaults);_.each(this.defaults,function(i,g){var h=this.options[g];if(_.isUndefined(h)){return}this.model.set(g,h);delete this.options[g]},this);this.model.on(&quot;change&quot;,this.render,this)},render:function(){var h=[&quot;button&quot;,this.className],g=this.model.toJSON();if(g.style){h.push(&quot;button-&quot
 ;+g.style)}if(g.size){h.push(&quot;button-&quot;+g.size)}h=_.uniq(h.concat(this.options.classes));this.el.className=h.join(&quot; &quot;);this.$el.attr(&quot;disabled&quot;,g.disabled);this.$el.text(this.model.get(&quot;text&quot;));return this},click:function(g){if(&quot;#&quot;===this.attributes.href){g.preventDefault()}if(this.options.click&amp;&amp;!this.model.get(&quot;disabled&quot;)){this.options.click.apply(this,arguments)}}});f.view.ButtonGroup=f.View.extend({tagName:&quot;div&quot;,className:&quot;button-group button-large media-button-group&quot;,initialize:function(){this.buttons=_.map(this.options.buttons||[],function(g){if(g instanceof Backbone.View){return g}else{return new f.view.Button(g).render()}});delete this.options.buttons;if(this.options.classes){this.$el.addClass(this.options.classes)}},render:function(){this.$el.html(e(_.pluck(this.buttons,&quot;el&quot;)).detach());return this}});f.view.PriorityList=f.View.extend({tagName:&quot;div&quot;,initialize:
 function(){this._views={};this.set(_.extend({},this._views,this.options.views),{silent:true});delete this.options.views;if(!this.options.silent){this.render()}},set:function(l,h,j){var k,g,i;j=j||{};if(_.isObject(l)){_.each(l,function(m,n){this.set(n,m)},this);return this}if(!(h instanceof Backbone.View)){h=this.toView(h,l,j)}h.controller=h.controller||this.controller;this.unset(l);k=h.options.priority||10;g=this.views.get()||[];_.find(g,function(n,m){if(n.options.priority&gt;k){i=m;return true}});this._views[l]=h;this.views.add(h,{at:_.isNumber(i)?i:g.length||0});return this},get:function(g){return this._views[g]},unset:function(h){var g=this.get(h);if(g){g.remove()}delete this._views[h];return this},toView:function(g){return new f.View(g)}});f.view.MenuItem=f.View.extend({tagName:&quot;a&quot;,className:&quot;media-menu-item&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;_click&quot;},_click:function(g){var h=this.options.click;if(g){g.preventDefault()}if(h){h.c
 all(this)}else{this.click()}},click:function(){var g=this.options.state;if(g){this.controller.setState(g)}},render:function(){var g=this.options;if(g.text){this.$el.text(g.text)}else{if(g.html){this.$el.html(g.html)}}return this}});f.view.Menu=f.view.PriorityList.extend({tagName:&quot;div&quot;,className:&quot;media-menu&quot;,property:&quot;state&quot;,ItemView:f.view.MenuItem,region:&quot;menu&quot;,toView:function(g,h){g=g||{};g[this.property]=g[this.property]||h;return new this.ItemView(g).render()},ready:function(){f.view.PriorityList.prototype.ready.apply(this,arguments);this.visibility()},set:function(){f.view.PriorityList.prototype.set.apply(this,arguments);this.visibility()},unset:function(){f.view.PriorityList.prototype.unset.apply(this,arguments);this.visibility()},visibility:function(){var j=this.region,h=this.controller[j].get(),g=this.views.get(),i=!g||g.length&lt;2;if(this===h){this.controller.$el.toggleClass(&quot;hide-&quot;+j,i)}},select:function(h){var g=t
 his.get(h);if(!g){return}this.deselect();g.$el.addClass(&quot;active&quot;)},deselect:function(){this.$el.children().removeClass(&quot;active&quot;)}});f.view.RouterItem=f.view.MenuItem.extend({click:function(){var g=this.options.contentMode;if(g){this.controller.content.mode(g)}}});f.view.Router=f.view.Menu.extend({tagName:&quot;div&quot;,className:&quot;media-router&quot;,property:&quot;contentMode&quot;,ItemView:f.view.RouterItem,region:&quot;router&quot;,initialize:function(){this.controller.on(&quot;content:render&quot;,this.update,this);f.view.Menu.prototype.initialize.apply(this,arguments)},update:function(){var g=this.controller.content.mode();if(g){this.select(g)}}});f.view.Sidebar=f.view.PriorityList.extend({className:&quot;media-sidebar&quot;});f.view.Attachment=f.View.extend({tagName:&quot;li&quot;,className:&quot;attachment&quot;,template:f.template(&quot;attachment&quot;),events:{&quot;click .attachment-preview&quot;:&quot;toggleSelectionHandler&quot;,&quot;cha
 nge [data-setting]&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] input&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] select&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] textarea&quot;:&quot;updateSetting&quot;,&quot;click .close&quot;:&quot;removeFromLibrary&quot;,&quot;click .check&quot;:&quot;removeFromSelection&quot;,&quot;click a&quot;:&quot;preventDefault&quot;},buttons:{},initialize:function(){var g=this.options.selection;this.model.on(&quot;change:sizes change:uploading change:caption change:title&quot;,this.render,this);this.model.on(&quot;change:percent&quot;,this.progress,this);this.model.on(&quot;add&quot;,this.select,this);this.model.on(&quot;remove&quot;,this.deselect,this);if(g){g.on(&quot;reset&quot;,this.updateSelect,this)}this.model.on(&quot;selection:single selection:unsingle&quot;,this.details,this);this.details(this.model,this.controller.state().get(&quot;selection&quot;))},dispose:function(){var g=this.options.s
 election;this.updateAll();if(g){g.off(null,null,this)}f.View.prototype.dispose.apply(this,arguments);return this},render:function(){var g=_.defaults(this.model.toJSON(),{orientation:&quot;landscape&quot;,uploading:false,type:&quot;&quot;,subtype:&quot;&quot;,icon:&quot;&quot;,filename:&quot;&quot;,caption:&quot;&quot;,title:&quot;&quot;,dateFormatted:&quot;&quot;,width:&quot;&quot;,height:&quot;&quot;,compat:false,alt:&quot;&quot;,description:&quot;&quot;});g.buttons=this.buttons;g.describe=this.controller.state().get(&quot;describe&quot;);if(&quot;image&quot;===g.type){g.size=this.imageSize()}g.can={};if(g.nonces){g.can.remove=!!g.nonces[&quot;delete&quot;];g.can.save=!!g.nonces.update}if(this.controller.state().get(&quot;allowLocalEdits&quot;)){g.allowLocalEdits=true}this.views.detach();this.$el.html(this.template(g));this.$el.toggleClass(&quot;uploading&quot;,g.uploading);if(g.uploading){this.$bar=this.$(&quot;.media-progress-bar div&quot;)}else{delete this.$bar}this.upda
 teSelect();this.updateSave();this.views.render();return this},progress:function(){if(this.$bar&amp;&amp;this.$bar.length){this.$bar.width(this.model.get(&quot;percent&quot;)+&quot;%&quot;)}},toggleSelectionHandler:function(g){var h;if(g.shiftKey){h=&quot;between&quot;}else{if(g.ctrlKey||g.metaKey){h=&quot;toggle&quot;}}this.toggleSelection({method:h})},toggleSelection:function(p){var k=this.collection,l=this.options.selection,j=this.model,g=p&amp;&amp;p.method,m,n,h,i,o;if(!l){return}m=l.single();g=_.isUndefined(g)?l.multiple:g;if(&quot;between&quot;===g&amp;&amp;m&amp;&amp;l.multiple){if(m===j){return}i=k.indexOf(m);o=k.indexOf(this.model);if(i&lt;o){h=k.models.slice(i,o+1)}else{h=k.models.slice(o,i+1)}l.add(h).single(j);return}else{if(&quot;toggle&quot;===g){l[this.selected()?&quot;remove&quot;:&quot;add&quot;](j).single(j);return}}if(g!==&quot;add&quot;){g=&quot;reset&quot;}if(this.selected()){l[m===j?&quot;remove&quot;:&quot;single&quot;](j)}else{l[g](j).single(j)}},upda
 teSelect:function(){this[this.selected()?&quot;select&quot;:&quot;deselect&quot;]()},selected:function(){var g=this.options.selection;if(g){return !!g.getByCid(this.model.cid)}},select:function(g,i){var h=this.options.selection;if(!h||(i&amp;&amp;i!==h)){return}this.$el.addClass(&quot;selected&quot;)},deselect:function(g,i){var h=this.options.selection;if(!h||(i&amp;&amp;i!==h)){return}this.$el.removeClass(&quot;selected&quot;)},details:function(g,j){var i=this.options.selection,h;if(i!==j){return}h=i.single();this.$el.toggleClass(&quot;details&quot;,h===this.model)},preventDefault:function(g){g.preventDefault()},imageSize:function(g){var h=this.model.get(&quot;sizes&quot;);g=g||&quot;medium&quot;;if(h&amp;&amp;h[g]){return _.clone(h[g])}else{return{url:this.model.get(&quot;url&quot;),width:this.model.get(&quot;width&quot;),height:this.model.get(&quot;height&quot;),orientation:this.model.get(&quot;orientation&quot;)}}},updateSetting:function(i){var g=e(i.target).closest(&quo
 t;[data-setting]&quot;),h,j;if(!g.length){return}h=g.data(&quot;setting&quot;);j=i.target.value;if(this.model.get(h)!==j){this.save(h,j)}},save:function(){var g=this,i=this._save=this._save||{status:&quot;ready&quot;},h=this.model.save.apply(this.model,arguments),j=i.requests?e.when(h,i.requests):h;if(i.savedTimer){clearTimeout(i.savedTimer)}this.updateSave(&quot;waiting&quot;);i.requests=j;j.always(function(){if(i.requests!==j){return}g.updateSave(j.state()===&quot;resolved&quot;?&quot;complete&quot;:&quot;error&quot;);i.savedTimer=setTimeout(function(){g.updateSave(&quot;ready&quot;);delete i.savedTimer},2000)})},updateSave:function(g){var h=this._save=this._save||{status:&quot;ready&quot;};if(g&amp;&amp;g!==h.status){this.$el.removeClass(&quot;save-&quot;+h.status);h.status=g}this.$el.addClass(&quot;save-&quot;+h.status);return this},updateAll:function(){var h=this.$(&quot;[data-setting]&quot;),g=this.model,i;i=_.chain(h).map(function(k){var m=e(&quot;input, textarea, sel
 ect, [value]&quot;,k),j,l;if(!m.length){return}j=e(k).data(&quot;setting&quot;);l=m.val();if(g.get(j)!==l){return[j,l]}}).compact().object().value();if(!_.isEmpty(i)){g.save(i)}},removeFromLibrary:function(g){g.stopPropagation();this.collection.remove(this.model)},removeFromSelection:function(h){var g=this.options.selection;if(!g){return}h.stopPropagation();g.remove(this.model)}});f.view.Attachment.Library=f.view.Attachment.extend({buttons:{check:true}});f.view.Attachment.EditLibrary=f.view.Attachment.extend({buttons:{close:true}});f.view.Attachments=f.View.extend({tagName:&quot;ul&quot;,className:&quot;attachments&quot;,cssTemplate:f.template(&quot;attachments-css&quot;),events:{scroll:&quot;scroll&quot;},initialize:function(){this.el.id=_.uniqueId(&quot;__attachments-view-&quot;);_.defaults(this.options,{refreshSensitivity:200,refreshThreshold:3,AttachmentView:f.view.Attachment,sortable:false,resize:true});this._viewsByCid={};this.collection.on(&quot;add&quot;,function(i,g
 ,h){this.views.add(this.createAttachmentView(i),{at:h.index})},this);this.collection.on(&quot;remove&quot;,function(j,g,i){var h=this._viewsByCid[j.cid];delete this._viewsByCid[j.cid];if(h){h.remove()}},this);this.collection.on(&quot;reset&quot;,this.render,this);this.scroll=_.chain(this.scroll).bind(this).throttle(this.options.refreshSensitivity).value();this.initSortable();_.bindAll(this,&quot;css&quot;);this.model.on(&quot;change:edge change:gutter&quot;,this.css,this);this._resizeCss=_.debounce(_.bind(this.css,this),this.refreshSensitivity);if(this.options.resize){e(window).on(&quot;resize.attachments&quot;,this._resizeCss)}this.css()},dispose:function(){this.collection.props.off(null,null,this);e(window).off(&quot;resize.attachments&quot;,this._resizeCss);f.View.prototype.dispose.apply(this,arguments)},css:function(){var g=e(&quot;#&quot;+this.el.id+&quot;-css&quot;);if(g.length){g.remove()}f.view.Attachments.$head().append(this.cssTemplate({id:this.el.id,edge:this.edge
 (),gutter:this.model.get(&quot;gutter&quot;)}))},edge:function(){var i=this.model.get(&quot;edge&quot;),j,h,g;if(!this.$el.is(&quot;:visible&quot;)){return i}j=this.model.get(&quot;gutter&quot;)*2;h=this.$el.width()-j;g=Math.ceil(h/(i+j));i=Math.floor((h-(g*j))/g);return i},initSortable:function(){var g=this.collection;if(!this.options.sortable||!e.fn.sortable){return}this.$el.sortable(_.extend({disabled:!!g.comparator,containment:this.$el,tolerance:&quot;pointer&quot;,start:function(h,i){i.item.data(&quot;sortableIndexStart&quot;,i.item.index())},update:function(j,k){var i=g.at(k.item.data(&quot;sortableIndexStart&quot;)),h=g.comparator;delete g.comparator;g.remove(i,{silent:true}).add(i,{silent:true,at:k.item.index()});g.comparator=h;g.trigger(&quot;reset&quot;,g);g.saveMenuOrder()}},this.options.sortable));g.props.on(&quot;change:orderby&quot;,function(){this.$el.sortable(&quot;option&quot;,&quot;disabled&quot;,!!g.comparator)},this);this.collection.props.on(&quot;change:
 orderby&quot;,this.refreshSortable,this);this.refreshSortable()},refreshSortable:function(){if(!this.options.sortable||!e.fn.sortable){return}var i=this.collection,h=i.props.get(&quot;orderby&quot;),g=&quot;menuOrder&quot;===h||!i.comparator;this.$el.sortable(&quot;option&quot;,&quot;disabled&quot;,!g)},createAttachmentView:function(h){var g=new this.options.AttachmentView({controller:this.controller,model:h,collection:this.collection,selection:this.options.selection});return this._viewsByCid[h.cid]=g},prepare:function(){if(this.collection.length){this.views.set(this.collection.map(this.createAttachmentView,this))}else{this.views.unset();this.collection.more().done(this.scroll)}},ready:function(){this.scroll()},scroll:function(g){if(!this.$el.is(&quot;:visible&quot;)){return}if(this.collection.hasMore()&amp;&amp;this.el.scrollHeight&lt;this.el.scrollTop+(this.el.clientHeight*this.options.refreshThreshold)){this.collection.more().done(this.scroll)}}},{$head:(function(){var g;
 return function(){return g=g||e(&quot;head&quot;)}}())});f.view.Search=f.View.extend({tagName:&quot;input&quot;,className:&quot;search&quot;,attributes:{type:&quot;search&quot;,placeholder:b.search},events:{input:&quot;search&quot;,keyup:&quot;search&quot;,change:&quot;search&quot;,search:&quot;search&quot;},render:function(){this.el.value=this.model.escape(&quot;search&quot;);return this},search:function(g){if(g.target.value){this.model.set(&quot;search&quot;,g.target.value)}else{this.model.unset(&quot;search&quot;)}}});f.view.AttachmentFilters=f.View.extend({tagName:&quot;select&quot;,className:&quot;attachment-filters&quot;,events:{change:&quot;change&quot;},keys:[],initialize:function(){this.createFilters();_.extend(this.filters,this.options.filters);this.$el.html(_.chain(this.filters).map(function(g,h){return{el:this.make(&quot;option&quot;,{value:h},g.text),priority:g.priority||50}},this).sortBy(&quot;priority&quot;).pluck(&quot;el&quot;).value());this.model.on(&quot;c
 hange&quot;,this.select,this);this.select()},createFilters:function(){this.filters={}},change:function(h){var g=this.filters[this.el.value];if(g){this.model.set(g.props)}},select:function(){var g=this.model,i=&quot;all&quot;,h=g.toJSON();_.find(this.filters,function(k,l){var j=_.all(k.props,function(n,m){return n===(_.isUndefined(h[m])?null:h[m])});if(j){return i=l}});this.$el.val(i)}});f.view.AttachmentFilters.Uploaded=f.view.AttachmentFilters.extend({createFilters:function(){var h=this.model.get(&quot;type&quot;),g=f.view.settings.mimeTypes,i;if(g&amp;&amp;h){i=g[h]}this.filters={all:{text:i||b.allMediaItems,props:{uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;},priority:10},uploaded:{text:b.uploadedToThisPost,props:{uploadedTo:f.view.settings.post.id,orderby:&quot;menuOrder&quot;,order:&quot;ASC&quot;},priority:20}}}});f.view.AttachmentFilters.All=f.view.AttachmentFilters.extend({createFilters:function(){var g={};_.each(f.view.settings.mimeTypes||{},funct
 ion(i,h){g[h]={text:i,props:{type:h,uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;}}});g.all={text:b.allMediaItems,props:{type:null,uploadedTo:null,orderby:&quot;date&quot;,order:&quot;DESC&quot;},priority:10};g.uploaded={text:b.uploadedToThisPost,props:{type:null,uploadedTo:f.view.settings.post.id,orderby:&quot;menuOrder&quot;,order:&quot;ASC&quot;},priority:20};this.filters=g}});f.view.AttachmentsBrowser=f.View.extend({tagName:&quot;div&quot;,className:&quot;attachments-browser&quot;,initialize:function(){_.defaults(this.options,{filters:false,search:true,display:false,AttachmentView:f.view.Attachment.Library});this.createToolbar();this.updateContent();this.createSidebar();this.collection.on(&quot;add remove reset&quot;,this.updateContent,this)},dispose:function(){this.options.selection.off(null,null,this);f.View.prototype.dispose.apply(this,arguments);return this},createToolbar:function(){var h,g;this.toolbar=new f.view.Toolbar({controller:this.controller
 });this.views.add(this.toolbar);h=this.options.filters;if(&quot;uploaded&quot;===h){g=f.view.AttachmentFilters.Uploaded}else{if(&quot;all&quot;===h){g=f.view.AttachmentFilters.All}}if(g){this.toolbar.set(&quot;filters&quot;,new g({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search){this.toolbar.set(&quot;search&quot;,new f.view.Search({controller:this.controller,model:this.collection.props,priority:60}).render())}if(this.options.dragInfo){this.toolbar.set(&quot;dragInfo&quot;,new f.View({el:e('&lt;div class=&quot;instructions&quot;&gt;'+b.dragInfo+&quot;&lt;/div&gt;&quot;)[0],priority:-40}))}},updateContent:function(){var g=this;if(!this.attachments){this.createAttachments()}if(!this.collection.length){this.collection.more().done(function(){if(!g.collection.length){g.createUploader()}})}},removeContent:function(){_.each([&quot;attachments&quot;,&quot;uploader&quot;],function(g){if(this[g]){this[g].remove();delete this[g]}},
 this)},createUploader:function(){this.removeContent();this.uploader=new f.view.UploaderInline({controller:this.controller,status:false,message:b.noItemsFound});this.views.add(this.uploader)},createAttachments:function(){this.removeContent();this.attachments=new f.view.Attachments({controller:this.controller,collection:this.collection,selection:this.options.selection,model:this.model,sortable:this.options.sortable,AttachmentView:this.options.AttachmentView});this.views.add(this.attachments)},createSidebar:function(){var g=this.options,h=g.selection,i=this.sidebar=new f.view.Sidebar({controller:this.controller});this.views.add(i);if(this.controller.uploader){i.set(&quot;uploads&quot;,new f.view.UploaderStatus({controller:this.controller,priority:40}))}h.on(&quot;selection:single&quot;,this.createSingle,this);h.on(&quot;selection:unsingle&quot;,this.disposeSingle,this);if(h.single()){this.createSingle()}},createSingle:function(){var h=this.sidebar,i=this.options.selection.singl
 e(),g={};h.set(&quot;details&quot;,new f.view.Attachment.Details({controller:this.controller,model:i,priority:80}));h.set(&quot;compat&quot;,new f.view.AttachmentCompat({controller:this.controller,model:i,priority:120}));if(this.options.display){h.set(&quot;display&quot;,new f.view.Settings.AttachmentDisplay({controller:this.controller,model:this.model.display(i),attachment:i,priority:160,userSettings:this.model.get(&quot;displayUserSettings&quot;)}))}},disposeSingle:function(){var g=this.sidebar;g.unset(&quot;details&quot;);g.unset(&quot;compat&quot;);g.unset(&quot;display&quot;)}});f.view.Selection=f.View.extend({tagName:&quot;div&quot;,className:&quot;media-selection&quot;,template:f.template(&quot;media-selection&quot;),events:{&quot;click .edit-selection&quot;:&quot;edit&quot;,&quot;click .clear-selection&quot;:&quot;clear&quot;},initialize:function(){_.defaults(this.options,{editable:false,clearable:true});this.attachments=new f.view.Attachments.Selection({controller:t
 his.controller,collection:this.collection,selection:this.collection,model:new Backbone.Model({edge:40,gutter:5})});this.views.set(&quot;.selection-view&quot;,this.attachments);this.collection.on(&quot;add remove reset&quot;,this.refresh,this);this.controller.on(&quot;content:activate&quot;,this.refresh,this)},ready:function(){this.refresh()},refresh:function(){if(!this.$el.children().length){return}var h=this.collection,g=&quot;edit-selection&quot;===this.controller.content.mode();this.$el.toggleClass(&quot;empty&quot;,!h.length);this.$el.toggleClass(&quot;one&quot;,1===h.length);this.$el.toggleClass(&quot;editing&quot;,g);this.$(&quot;.count&quot;).text(b.selected.replace(&quot;%d&quot;,h.length))},edit:function(g){g.preventDefault();if(this.options.editable){this.options.editable.call(this,this.collection)}},clear:function(g){g.preventDefault();this.collection.reset()}});f.view.Attachment.Selection=f.view.Attachment.extend({className:&quot;attachment selection&quot;,toggle
 Selection:function(){this.options.selection.single(this.model)}});f.view.Attachments.Selection=f.view.Attachments.extend({events:{},initialize:function(){_.defaults(this.options,{sortable:true,resize:false,AttachmentView:f.view.Attachment.Selection});return f.view.Attachments.prototype.initialize.apply(this,arguments)}});f.view.Attachment.EditSelection=f.view.Attachment.Selection.extend({buttons:{close:true}});f.view.Settings=f.View.extend({events:{&quot;click button&quot;:&quot;updateHandler&quot;,&quot;change input&quot;:&quot;updateHandler&quot;,&quot;change select&quot;:&quot;updateHandler&quot;,&quot;change textarea&quot;:&quot;updateHandler&quot;},initialize:function(){this.model=this.model||new Backbone.Model();this.model.on(&quot;change&quot;,this.updateChanges,this)},prepare:function(){return _.defaults({model:this.model.toJSON()},this.options)},render:function(){f.View.prototype.render.apply(this,arguments);_(this.model.attributes).chain().keys().each(this.update,t
 his);return this},update:function(j){var k=this.model.get(j),i=this.$('[data-setting=&quot;'+j+'&quot;]'),g,h;if(!i.length){return}if(i.is(&quot;select&quot;)){h=i.find('[value=&quot;'+k+'&quot;]');if(h.length){i.find(&quot;option&quot;).prop(&quot;selected&quot;,false);h.prop(&quot;selected&quot;,true)}else{this.model.set(j,i.find(&quot;:selected&quot;).val())}}else{if(i.hasClass(&quot;button-group&quot;)){g=i.find(&quot;button&quot;).removeClass(&quot;active&quot;);g.filter('[value=&quot;'+k+'&quot;]').addClass(&quot;active&quot;)}else{if(i.is('input[type=&quot;text&quot;], textarea')){if(!i.is(&quot;:focus&quot;)){i.val(k)}}else{if(i.is('input[type=&quot;checkbox&quot;]')){i.attr(&quot;checked&quot;,!!k)}}}}},updateHandler:function(i){var h=e(i.target).closest(&quot;[data-setting]&quot;),j=i.target.value,g;i.preventDefault();if(!h.length){return}if(h.is('input[type=&quot;checkbox&quot;]')){j=h[0].checked}this.model.set(h.data(&quot;setting&quot;),j);if(g=h.data(&quot;user
 Setting&quot;)){setUserSetting(g,j)}},updateChanges:function(h,g){if(g.changes){_(g.changes).chain().keys().each(this.update,this)}}});f.view.Settings.AttachmentDisplay=f.view.Settings.extend({className:&quot;attachment-display-settings&quot;,template:f.template(&quot;attachment-display-settings&quot;),initialize:function(){var g=this.options.attachment;_.defaults(this.options,{userSettings:false});f.view.Settings.prototype.initialize.apply(this,arguments);this.model.on(&quot;change:link&quot;,this.updateLinkTo,this);if(g){g.on(&quot;change:uploading&quot;,this.render,this)}},dispose:function(){var g=this.options.attachment;if(g){g.off(null,null,this)}f.view.Settings.prototype.dispose.apply(this,arguments)},render:function(){var g=this.options.attachment;if(g){_.extend(this.options,{sizes:g.get(&quot;sizes&quot;),type:g.get(&quot;type&quot;)})}f.view.Settings.prototype.render.call(this);this.updateLinkTo();return this},updateLinkTo:function(){var h=this.model.get(&quot;link&
 quot;),i=this.$(&quot;.link-to-custom&quot;),g=this.options.attachment;if(&quot;none&quot;===h||(!g&amp;&amp;&quot;custom&quot;!==h)){i.hide();return}if(g){if(&quot;post&quot;===h){i.val(g.get(&quot;link&quot;))}else{if(&quot;file&quot;===h){i.val(g.get(&quot;url&quot;))}else{if(!this.model.get(&quot;linkUrl&quot;)){i.val(&quot;http://&quot;)}}}i.prop(&quot;readonly&quot;,&quot;custom&quot;!==h)}i.show();if(i.is(&quot;:visible&quot;)){i.focus()[0].select()}}});f.view.Settings.Gallery=f.view.Settings.extend({className:&quot;gallery-settings&quot;,template:f.template(&quot;gallery-settings&quot;)});f.view.Attachment.Details=f.view.Attachment.extend({tagName:&quot;div&quot;,className:&quot;attachment-details&quot;,template:f.template(&quot;attachment-details&quot;),events:{&quot;change [data-setting]&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] input&quot;:&quot;updateSetting&quot;,&quot;change [data-setting] select&quot;:&quot;updateSetting&quot;,&quot;change [d
 ata-setting] textarea&quot;:&quot;updateSetting&quot;,&quot;click .delete-attachment&quot;:&quot;deleteAttachment&quot;,&quot;click .edit-attachment&quot;:&quot;editAttachment&quot;,&quot;click .refresh-attachment&quot;:&quot;refreshAttachment&quot;},initialize:function(){this.focusManager=new f.view.FocusManager({el:this.el});f.view.Attachment.prototype.initialize.apply(this,arguments)},render:function(){f.view.Attachment.prototype.render.apply(this,arguments);this.focusManager.focus();return this},deleteAttachment:function(g){g.preventDefault();if(confirm(b.warnDelete)){this.model.destroy()}},editAttachment:function(g){this.$el.addClass(&quot;needs-refresh&quot;)},refreshAttachment:function(g){this.$el.removeClass(&quot;needs-refresh&quot;);g.preventDefault();this.model.fetch()}});f.view.AttachmentCompat=f.View.extend({tagName:&quot;form&quot;,className:&quot;compat-item&quot;,events:{submit:&quot;preventDefault&quot;,&quot;change input&quot;:&quot;save&quot;,&quot;change 
 select&quot;:&quot;save&quot;,&quot;change textarea&quot;:&quot;save&quot;},initialize:function(){this.focusManager=new f.view.FocusManager({el:this.el});this.model.on(&quot;change:compat&quot;,this.render,this)},dispose:function(){if(this.$(&quot;:focus&quot;).length){this.save()}return f.View.prototype.dispose.apply(this,arguments)},render:function(){var g=this.model.get(&quot;compat&quot;);if(!g||!g.item){return}this.views.detach();this.$el.html(g.item);this.views.render();this.focusManager.focus();return this},preventDefault:function(g){g.preventDefault()},save:function(g){var h={};if(g){g.preventDefault()}_.each(this.$el.serializeArray(),function(i){h[i.name]=i.value});this.model.saveCompat(h)}});f.view.Iframe=f.View.extend({className:&quot;media-iframe&quot;,render:function(){this.views.detach();this.$el.html('&lt;iframe src=&quot;'+this.controller.state().get(&quot;src&quot;)+'&quot; /&gt;');this.views.render();return this}});f.view.Embed=f.View.extend({className:&quo
 t;media-embed&quot;,initialize:function(){this.url=new f.view.EmbedUrl({controller:this.controller,model:this.model.props}).render();this.views.set([this.url]);this.refresh();this.model.on(&quot;change:type&quot;,this.refresh,this);this.model.on(&quot;change:loading&quot;,this.loading,this)},settings:function(g){if(this._settings){this._settings.remove()}this._settings=g;this.views.add(g)},refresh:function(){var h=this.model.get(&quot;type&quot;),g;if(&quot;image&quot;===h){g=f.view.EmbedImage}else{if(&quot;link&quot;===h){g=f.view.EmbedLink}else{return}}this.settings(new g({controller:this.controller,model:this.model.props,priority:40}))},loading:function(){this.$el.toggleClass(&quot;embed-loading&quot;,this.model.get(&quot;loading&quot;))}});f.view.EmbedUrl=f.View.extend({tagName:&quot;label&quot;,className:&quot;embed-url&quot;,events:{input:&quot;url&quot;,keyup:&quot;url&quot;,change:&quot;url&quot;},initialize:function(){this.input=this.make(&quot;input&quot;,{type:&qu
 ot;text&quot;,value:this.model.get(&quot;url&quot;)||&quot;&quot;});this.spinner=this.make(&quot;span&quot;,{&quot;class&quot;:&quot;spinner&quot;});this.$input=e(this.input);this.$el.append([this.input,this.spinner]);this.model.on(&quot;change:url&quot;,this.render,this)},render:function(){var g=this.$input;if(g.is(&quot;:focus&quot;)){return}this.input.value=this.model.get(&quot;url&quot;)||&quot;http://&quot;;f.View.prototype.render.apply(this,arguments);return this},ready:function(){this.focus()},url:function(g){this.model.set(&quot;url&quot;,g.target.value)},focus:function(){var g=this.$input;if(g.is(&quot;:visible&quot;)){g.focus()[0].select()}}});f.view.EmbedLink=f.view.Settings.extend({className:&quot;embed-link-settings&quot;,template:f.template(&quot;embed-link-settings&quot;)});f.view.EmbedImage=f.view.Settings.AttachmentDisplay.extend({className:&quot;embed-image-settings&quot;,template:f.template(&quot;embed-image-settings&quot;),initialize:function(){f.view.Set
 tings.AttachmentDisplay.prototype.initialize.apply(this,arguments);this.model.on(&quot;change:url&quot;,this.updateImage,this)},updateImage:function(){this.$(&quot;img&quot;).attr(&quot;src&quot;,this.model.get(&quot;url&quot;))}})}(jQuery));
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="branches35wpincludesversionphp"></a>
<div class="modfile"><h4>Modified: branches/3.5/wp-includes/version.php (23279 => 23280)</h4>
<pre class="diff"><span>
<span class="info">--- branches/3.5/wp-includes/version.php        2013-01-04 22:34:43 UTC (rev 23279)
+++ branches/3.5/wp-includes/version.php        2013-01-04 22:36:35 UTC (rev 23280)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global string $wp_version
</span><span class="cx">  */
</span><del>-$wp_version = '3.5.1-alpha-23258';
</del><ins>+$wp_version = '3.5.1-alpha-23280';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
</span></span></pre>
</div>
</div>

</body>
</html>