!function(a,b){varc,d,e,f,g,h=wp.customize;h.Setting=h.Value.extend({initialize:function(a,b,c){h.Value.prototype.initialize.call(this,b,c),this.id=a,this.transport=this.transport||"refresh",this.bind(this.preview)},preview:function(){switch(this.transport){case"refresh":returnthis.previewer.refresh();case"postMessage":returnthis.previewer.send("setting",[this.id,this()])}}}),c=function(a,c){b.each(c,function(b,c){a[c].bind(function(b,c){a.parent&&b!==c&&a.parent.trigger("change",a)})})},e=function(a){varb,c,d;b=this,a=a||{},d=function(){b.container.find(":focusable:first").focus(),b.container[0].scrollIntoView(!0)},a.completeCallback?(c=a.completeCallback,a.completeCallback=function(){d(),c()}):a.completeCallback=d,b.expand?b.expand(a):a.completeCallback()},f=function(a){return"keydown"===a.type&&13!==a.which},g=function(a,c){vard=a.length===c.length&&-1===_.map(_.zip(a,c),function(a){returnb(a[0]).is(a[1])}).indexOf(!1);returnd},d=h.Class.extend({defaultActiveArguments:{duration:"fast"},defaultExpandedArguments:{duration:"fast"},initialize:function(a,d){vare=this;e.id=a,e.params={},b.extend(e,d||{}),e.container=b(e.params.content),e.deferred={ready:newb.Deferred},e.priority=newh.Value,e.active=newh.Value,e.activeArgumentsQueue=[],e.expanded=newh.Value,e.expandedArgumentsQueue=[],e.active.bind(function(a){varc=e.activeArgumentsQueue.shift();c=b.extend({},e.defaultActiveArguments,c),a=a&&e.isContextuallyActive(),e.onChangeActive(a,c)}),e.expanded.bind(function(a){varc=e.expandedArgumentsQueue.shift();c=b.extend({},e.defaultExpandedArguments,c),e.onChangeExpanded(a,c)}),e.attachEvents(),c(e,["priority","active"]),e.priority.set(isNaN(e.params.priority)?100:e.params.priority),e.active.set(e.params.active),e.expanded.set(!1)},ready:function(){},_children:function(a,b){varc=this,d=[];returnh[b].each(function(b){b[a].get()===c.id&&d.push(b)}),d.sort(function(a,b){returna.priority()-b.priority()}),d},isContextuallyActive:function(){thrownewError("Must override with subclass.")},onChangeActive:function(a,b){varc="resolved"===h.previewer.deferred.active.state()?b.duration:0;a?this.container.stop(!0,!0).slideDown(c,b.completeCallback):this.container.stop(!0,!0).slideUp(c,b.completeCallback)},_toggleActive:function(a,b){varc=this;returnb=b||{},a&&this.active.get()||!a&&!this.active.get()?(b.unchanged=!0,c.onChangeActive(c.active.get(),b),!1):(b.unchanged=!1,this.activeArgumentsQueue.push(b),this.active.set(a),!0)},activate:function(a){returnthis._toggleActive(!0,a)},deactivate:function(a){returnthis._toggleActive(!1,a)},onChangeExpanded:function(){thrownewError("Must override with subclass.")},_toggleExpanded:function(a,b){varc=this;returnb=b||{},a&&this.expanded.get()||!a&&!this.expanded.get()?(b.unchanged=!0,c.onChangeExpanded(c.expanded.get(),b),!1):(b.unchanged=!1,this.expandedArgumentsQueue.push(b),this.expanded.set(a),!0)},expand:function(a){returnthis._toggleExpanded(!0,a)},collapse:function(a){returnthis._toggleExpanded(!1,a)},focus:e}),h.Section=d.extend({initialize:function(a,e){varf=this;d.prototype.initialize.call(f,a,e),f.id=a,f.panel=newh.Value,f.panel.bind(function(a){b(f.container).toggleClass("control-subsection",!!a)}),f.panel.set(f.params.panel||""),c(f,["panel"]),f.embed(),f.deferred.ready.done(function(){f.ready()})},embed:function(){vara,c=this;a=function(a){vard;a?h.panel(a,function(a){a.deferred.ready.done(function(){d=a.container.find("ul:first"),c.container.parent().is(d)||d.append(c.container),c.deferred.ready.resolve()})}):(d=b("#customize-theme-controls").children("ul"),c.container.parent().is(d)||d.append(c.container),c.deferred.ready.resolve())},c.panel.bind(a),a(c.panel.get())},attachEvents:function(){vara=this;a.container.find(".accordion-section-title").on("click keydown",function(b){f(b)||(b.preventDefault(),a.expanded()?a.collapse():a.expand())})},isContextuallyActive:function(){vara=this,b=a.controls(),c=0;return_(b).each(function(a){a.active()&&(c+=1)}),0!==c},controls:function(){returnthis._children("section","control")},onChangeExpanded:function(a,b){va