(()=>{(function(){"use strict";$("body").on("click","[role='tab']",function(){i(this)});function i(t){$(t).closest("[role='tablist']").find("[role='tab']").each(function(){if($(this).hasClass("active")&&this!==t){let n=new Event("hide.tw.tab");$(this)[0].dispatchEvent(n)}if(!$(this).hasClass("active")&&this===t){let n=new Event("show.tw.tab");$(this)[0].dispatchEvent(n)}}),$(t).closest("[role='tablist']").find("[role='tab']").removeClass("active").attr("aria-selected",!1),$(t).addClass("active").attr("aria-selected",!0);let e=$(t).attr("data-tw-target"),s=$(e).closest(".tab-content").width();$(e).closest(".tab-content").children(".tab-pane").removeAttr("style").removeClass("active"),$(e).css("width",s+"px").addClass("active")}(function(e){addEventListener("resize",s=>{$("[role='tabpanel']").each(function(){if($(this).hasClass("active")){let n=$(this).closest(".tab-content").width();$(this).css("width",n+"px")}})})})();function a(t){return{show(){i(t)}}}(function(){$("[role='tab']").each(function(){this.__tab=a(this)}),window.tailwind===void 0&&(window.tailwind={}),window.tailwind.Tab={getInstance(e){return e.__tab},getOrCreateInstance(e){return e.__tab===void 0?a(e):e.__tab}}})()})();})();
