!function(f){vari,e,t,m=wp.customize;m.Setting=m.Value.extend({initialize:function(e,t,n){m.Value.prototype.initialize.call(this,t,n),this.id=e,this.transport=this.transport||"refresh",this._dirty=n.dirty||!1,this.notifications=newm.Values({defaultConstructor:m.Notification}),this.bind(this.preview)},preview:function(){switch(this.transport){case"refresh":returnthis.previewer.refresh();case"postMessage":returnthis.previewer.send("setting",[this.id,this()])}},findControls:function(){varn=this,i=[];returnm.control.each(function(t){_.each(t.settings,function(e){e.id===n.id&&i.push(t)})}),i}}),m.utils={},m.utils.bubbleChildValueChanges=function(n,e){f.each(e,function(e,t){n[t].bind(function(e,t){n.parent&&e!==t&&n.parent.trigger("change",n)})})},e=function(e){vart,n,i=this,o=function(){vare=i.extended(m.Panel)&&i.expanded&&i.expanded()?i.container.find("ul.control-panel-content"):i.extended(m.Section)&&i.expanded&&i.expanded()?i.container.find("ul.accordion-section-content"):i.container;(n=0===(n=e.find(".control-focus:first")).length?e.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first():n).focus()};(e=e||{}).completeCallback?(t=e.completeCallback,e.completeCallback=function(){o(),t()}):e.completeCallback=o,i.expand?i.expand(e):e.completeCallback()},m.utils.prioritySort=function(e,t){returne.priority()===t.priority()&&"number"==typeofe.params.instanceNumber&&"number"==typeoft.params.instanceNumber?e.params.instanceNumber-t.params.instanceNumber:e.priority()-t.priority()},m.utils.isKeydownButNotEnterEvent=function(e){return"keydown"===e.type&&13!==e.which},m.utils.areElementListsEqual=function(e,t){returne.length===t.length&&-1===_.indexOf(_.map(_.zip(e,t),function(e){returnf(e[0]).is(e[1])}),!1)},i=m.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:f.noop},defaultExpandedArguments:{duration:"fast",completeCallback:f.noop},containerType:"container",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null},initialize:function(e,t){varn=this;n.id=e,(t=t||{}).params=_.defaults(t.params||{},n.defaults),f.extend(n,t),n.templateSelector="customize-"+n.containerType+"-"+n.params.type,n.container=f(n.params.content),0===n.container.length&&(n.container=f(n.getContainer())),n.deferred={embedded:newf.Deferred},n.priority=newm.Value,n.active=newm.Value,n.activeArgumentsQueue=[],n.expanded=newm.Value,n.expandedArgumentsQueue=[],n.active.bind(function(e){vart=n.activeArgumentsQueue.shift(),t=f.extend({},n.defaultActiveArguments,t);e=e&&n.isContextuallyActive(),n.onChangeActive(e,t)}),n.expanded.bind(function(e){vart=n.expandedArgumentsQueue.shift(),t=f.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),n.deferred.embedded.done(function(){n.attachEvents()}),m.utils.bubbleChildValueChanges(n,["priority","active"]),n.priority.set(n.params.priority),n.active.set(n.params.active),n.expanded.set(!1)},ready:function(){},_children:function(t,e){varn=this,i=[];returnm[e].each(function(e){e[t].get()===n.id&&i.push(e)}),i.sort(m.utils.prioritySort),i},isContextuallyActive:function(){thrownewError("Container.isContextuallyActive() must be overridden in a subclass.")},onChangeActive:function(e,t){varn,i,o=this;t.unchanged?t.completeCallback&&t.completeCallback():(n="resolved"===m.previewer.deferred.active.state()?t.duration:0,o.extended(m.Panel)&&(m.panel.each(function(e){e!==o&&e.expanded()&&(i=e,n=0)}),e||_.each(o.sections(),function(e){e.collapse({duration:0})})),f.contains(document,o.container[0])?e?o.container.stop(!0,!0).slideDown(n,t.completeCallback):o.expanded()?o.collapse({duration:n,completeCallback:function(){o.container.stop(!0,!0).slideUp(n,t.completeCallback)}}):o.container.stop(!0,!0).slideUp(n,t.completeCallback):(o.container.toggle(e),t.completeCallback&&t.completeCallback()),i&&i._recalculateTopMargin())},_toggleActive:function(e,t){returnt=t||{},e&&this.active.get()||!e&&!this.active.get()?(t.unchanged=!0,this.onChangeActive(this.active.get(),t),!1):(t.unchanged=!1,this.activeAr