function _setup(t,i){this.$element=t;this.options=e.extend({},Accordion.defaults,this.$element.data(),i);this.className="Accordion";this._init();l.register("Accordion",{ENTER:"toggle",SPACE:"toggle",ARROW_DOWN:"next",ARROW_UP:"previous",HOME:"first",END:"last"})}},{key:"_init",value:function _init(){var t=this;this._isInitializing=true;this.$tabs=this.$element.children("[data-accordion-item]");this.$tabs.each((function(t,i){var n=e(i),s=n.children("[data-tab-content]"),a=s[0].id||GetYoDigits(6,"accordion"),o=i.id?"".concat(i.id,"-label"):"".concat(a,"-label");n.find("a:first").attr({"aria-controls":a,id:o,"aria-expanded":false});s.attr({role:"region","aria-labelledby":o,"aria-hidden":true,id:a})}));var i=this.$element.find(".is-active").children("[data-tab-content]");if(i.length){this._initialAnchor=i.prev("a").attr("href");this._openSingleTab(i)}this._checkDeepLink=function(){var i=window.location.hash;if(!i.length){if(t._isInitializing)return;t._initialAnchor&&(i=t._initialAnchor)}var n=i&&e(i);var s=i&&t.$element.find('[href$="'.concat(i,'"]'));var a=!!(n.length&&s.length);if(a){n&&s&&s.length?s.parent("[data-accordion-item]").hasClass("is-active")||t._openSingleTab(n):t._closeAllTabs();t.options.deepLinkSmudge&&onLoad(e(window),(function(){var i=t.$element.offset();e("html, body").animate({scrollTop:i.top-t.options.deepLinkSmudgeOffset},t.options.deepLinkSmudgeDelay)}));t.$element.trigger("deeplink.zf.accordion",[s,n])}};this.options.deepLink&&this._checkDeepLink();this._events();this._isInitializing=false}},{key:"_events",value:function _events(){var t=this;this.$tabs.each((function(){var i=e(this);var n=i.children("[data-tab-content]");n.length&&i.children("a").off("click.zf.accordion keydown.zf.accordion").on("click.zf.accordion",(function(e){e.preventDefault();t.toggle(n)})).on("keydown.zf.accordion",(function(e){l.handleKey(e,"Accordion",{toggle:function toggle(){t.toggle(n)},next:function next(){var e=i.next().find("a").focus();t.options.multiExpand||e.trigger("click.zf.accordion")},previous:function previous(){var e=i.prev().find("a").focus();t.options.multiExpand||e.trigger("click.zf.accordion")},first:function first(){var e=t.$tabs.first().find(".accordion-title").focus();t.options.multiExpand||e.trigger("click.zf.accordion")},last:function last(){var e=t.$tabs.last().find(".accordion-title").focus();t.options.multiExpand||e.trigger("click.zf.accordion")},handled:function handled(){e.preventDefault()}})}))}));this.options.deepLink&&e(window).on("hashchange",this._checkDeepLink)}