PaletteSwitcher/palette-switcher-v2/dist/assets/index-2f9598f2.js
2024-01-16 06:44:06 +01:00

2 lines
100 KiB
JavaScript

(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function i(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(r){if(r.ep)return;r.ep=!0;const s=i(r);fetch(r.href,s)}})();const fn=(e,t)=>e===t,be=Symbol("solid-proxy"),Kt={equals:fn};let hn=Ti;const dt=1,Xt=2,wi={owned:null,cleanups:null,context:null,owner:null};var x=null;let me=null,pn=null,k=null,D=null,lt=null,ce=0;function Ei(e,t){const i=k,n=x,r=e.length===0,s=t===void 0?n:t,a=r?wi:{owned:null,cleanups:null,context:s?s.context:null,owner:s},o=r?e:()=>e(()=>K(()=>de(a)));x=a,k=null;try{return ft(o,!0)}finally{k=i,x=n}}function xt(e,t){t=t?Object.assign({},Kt,t):Kt;const i={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=r=>(typeof r=="function"&&(r=r(i.value)),ki(i,r));return[Ii.bind(i),n]}function Ct(e,t,i){const n=Ci(e,t,!1,dt);ue(n)}function j(e,t,i){i=i?Object.assign({},Kt,i):Kt;const n=Ci(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=i.equals||void 0,ue(n),Ii.bind(n)}function K(e){if(k===null)return e();const t=k;k=null;try{return e()}finally{k=t}}function xi(e,t,i){const n=Array.isArray(e);let r,s=i&&i.defer;return a=>{let o;if(n){o=Array(e.length);for(let u=0;u<e.length;u++)o[u]=e[u]()}else o=e();if(s){s=!1;return}const l=K(()=>t(o,r,a));return r=o,l}}function Ai(e){return x===null||(x.cleanups===null?x.cleanups=[e]:x.cleanups.push(e)),e}function vn(){return x}function gn(e,t){const i=x,n=k;x=e,k=null;try{return ft(t,!0)}catch(r){Ce(r)}finally{x=i,k=n}}function mn(e){const t=k,i=x;return Promise.resolve().then(()=>{k=t,x=i;let n;return ft(e,!1),k=x=null,n?n.done:void 0})}function Li(e,t){const i=Symbol("context");return{id:i,Provider:En(i),defaultValue:e}}function yn(e){return x&&x.context&&x.context[e.id]!==void 0?x.context[e.id]:e.defaultValue}function ke(e){const t=j(e),i=j(()=>we(t()));return i.toArray=()=>{const n=i();return Array.isArray(n)?n:n!=null?[n]:[]},i}function Ii(){if(this.sources&&this.state)if(this.state===dt)ue(this);else{const e=D;D=null,ft(()=>Yt(this),!1),D=e}if(k){const e=this.observers?this.observers.length:0;k.sources?(k.sources.push(this),k.sourceSlots.push(e)):(k.sources=[this],k.sourceSlots=[e]),this.observers?(this.observers.push(k),this.observerSlots.push(k.sources.length-1)):(this.observers=[k],this.observerSlots=[k.sources.length-1])}return this.value}function ki(e,t,i){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&ft(()=>{for(let r=0;r<e.observers.length;r+=1){const s=e.observers[r],a=me&&me.running;a&&me.disposed.has(s),(a?!s.tState:!s.state)&&(s.pure?D.push(s):lt.push(s),s.observers&&Si(s)),a||(s.state=dt)}if(D.length>1e6)throw D=[],new Error},!1)),t}function ue(e){if(!e.fn)return;de(e);const t=ce;_n(e,e.value,t)}function _n(e,t,i){let n;const r=x,s=k;k=x=e;try{n=e.fn(t)}catch(a){return e.pure&&(e.state=dt,e.owned&&e.owned.forEach(de),e.owned=null),e.updatedAt=i+1,Ce(a)}finally{k=s,x=r}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?ki(e,n):e.value=n,e.updatedAt=i)}function Ci(e,t,i,n=dt,r){const s={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:x,context:x?x.context:null,pure:i};return x===null||x!==wi&&(x.owned?x.owned.push(s):x.owned=[s]),s}function Oi(e){if(e.state===0)return;if(e.state===Xt)return Yt(e);if(e.suspense&&K(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ce);)e.state&&t.push(e);for(let i=t.length-1;i>=0;i--)if(e=t[i],e.state===dt)ue(e);else if(e.state===Xt){const n=D;D=null,ft(()=>Yt(e,t[0]),!1),D=n}}function ft(e,t){if(D)return e();let i=!1;t||(D=[]),lt?i=!0:lt=[],ce++;try{const n=e();return bn(i),n}catch(n){i||(lt=null),D=null,Ce(n)}}function bn(e){if(D&&(Ti(D),D=null),e)return;const t=lt;lt=null,t.length&&ft(()=>hn(t),!1)}function Ti(e){for(let t=0;t<e.length;t++)Oi(e[t])}function Yt(e,t){e.state=0;for(let i=0;i<e.sources.length;i+=1){const n=e.sources[i];if(n.sources){const r=n.state;r===dt?n!==t&&(!n.updatedAt||n.updatedAt<ce)&&Oi(n):r===Xt&&Yt(n,t)}}}function Si(e){for(let t=0;t<e.observers.length;t+=1){const i=e.observers[t];i.state||(i.state=Xt,i.pure?D.push(i):lt.push(i),i.observers&&Si(i))}}function de(e){let t;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),n=e.sourceSlots.pop(),r=i.observers;if(r&&r.length){const s=r.pop(),a=i.observerSlots.pop();n<r.length&&(s.sourceSlots[a]=n,r[n]=s,i.observerSlots[n]=a)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)de(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function wn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Ce(e,t=x){throw wn(e)}function we(e){if(typeof e=="function"&&!e.length)return we(e());if(Array.isArray(e)){const t=[];for(let i=0;i<e.length;i++){const n=we(e[i]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function En(e,t){return function(n){let r;return Ct(()=>r=K(()=>(x.context={...x.context,[e]:n.value},ke(()=>n.children))),void 0),r}}function $(e,t){return K(()=>e(t||{}))}function Bt(){return!0}const xn={get(e,t,i){return t===be?i:e.get(t)},has(e,t){return t===be?!0:e.has(t)},set:Bt,deleteProperty:Bt,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Bt,deleteProperty:Bt}},ownKeys(e){return e.keys()}};function ye(e){return(e=typeof e=="function"?e():e)?e:{}}function An(){for(let e=0,t=this.length;e<t;++e){const i=this[e]();if(i!==void 0)return i}}function Ln(...e){let t=!1;for(let a=0;a<e.length;a++){const o=e[a];t=t||!!o&&be in o,e[a]=typeof o=="function"?(t=!0,j(o)):o}if(t)return new Proxy({get(a){for(let o=e.length-1;o>=0;o--){const l=ye(e[o])[a];if(l!==void 0)return l}},has(a){for(let o=e.length-1;o>=0;o--)if(a in ye(e[o]))return!0;return!1},keys(){const a=[];for(let o=0;o<e.length;o++)a.push(...Object.keys(ye(e[o])));return[...new Set(a)]}},xn);const i={},n=Object.create(null);for(let a=e.length-1;a>=0;a--){const o=e[a];if(!o)continue;const l=Object.getOwnPropertyNames(o);for(let u=l.length-1;u>=0;u--){const c=l[u];if(c==="__proto__"||c==="constructor")continue;const d=Object.getOwnPropertyDescriptor(o,c);if(!n[c])n[c]=d.get?{enumerable:!0,configurable:!0,get:An.bind(i[c]=[d.get.bind(o)])}:d.value!==void 0?d:void 0;else{const v=i[c];v&&(d.get?v.push(d.get.bind(o)):d.value!==void 0&&v.push(()=>d.value))}}}const r={},s=Object.keys(n);for(let a=s.length-1;a>=0;a--){const o=s[a],l=n[o];l&&l.get?Object.defineProperty(r,o,l):r[o]=l?l.value:void 0}return r}const In=e=>`Stale read from <${e}>.`;function Pi(e){const t=e.keyed,i=j(()=>e.when,void 0,{equals:(n,r)=>t?n===r:!n==!r});return j(()=>{const n=i();if(n){const r=e.children;return typeof r=="function"&&r.length>0?K(()=>r(t?n:()=>{if(!K(i))throw In("Show");return e.when})):r}return e.fallback},void 0,void 0)}function kn(e,t,i){let n=i.length,r=t.length,s=n,a=0,o=0,l=t[r-1].nextSibling,u=null;for(;a<r||o<s;){if(t[a]===i[o]){a++,o++;continue}for(;t[r-1]===i[s-1];)r--,s--;if(r===a){const c=s<n?o?i[o-1].nextSibling:i[s-o]:l;for(;o<s;)e.insertBefore(i[o++],c)}else if(s===o)for(;a<r;)(!u||!u.has(t[a]))&&t[a].remove(),a++;else if(t[a]===i[s-1]&&i[o]===t[r-1]){const c=t[--r].nextSibling;e.insertBefore(i[o++],t[a++].nextSibling),e.insertBefore(i[--s],c),t[r]=i[s]}else{if(!u){u=new Map;let d=o;for(;d<s;)u.set(i[d],d++)}const c=u.get(t[a]);if(c!=null)if(o<c&&c<s){let d=a,v=1,p;for(;++d<r&&d<s&&!((p=u.get(t[d]))==null||p!==c+v);)v++;if(v>c-o){const h=t[a];for(;o<c;)e.insertBefore(i[o++],h)}else e.replaceChild(i[o++],t[a++])}else a++;else t[a++].remove()}}}const si="_$DX_DELEGATE";function Cn(e,t,i,n={}){let r;return Ei(s=>{r=s,t===document?e():Nt(t,e(),t.firstChild?null:void 0,i)},n.owner),()=>{r(),t.textContent=""}}function St(e,t,i){let n;const r=()=>{const a=document.createElement("template");return a.innerHTML=e,i?a.content.firstChild.firstChild:a.content.firstChild},s=t?()=>K(()=>document.importNode(n||(n=r()),!0)):()=>(n||(n=r())).cloneNode(!0);return s.cloneNode=s,s}function On(e,t=window.document){const i=t[si]||(t[si]=new Set);for(let n=0,r=e.length;n<r;n++){const s=e[n];i.has(s)||(i.add(s),t.addEventListener(s,Tn))}}function Nt(e,t,i,n){if(i!==void 0&&!n&&(n=[]),typeof t!="function")return Gt(e,t,n,i);Ct(r=>Gt(e,t(),r,i),n)}function Tn(e){const t=`$$${e.type}`;let i=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==i&&Object.defineProperty(e,"target",{configurable:!0,value:i}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return i||document}});i;){const n=i[t];if(n&&!i.disabled){const r=i[`${t}Data`];if(r!==void 0?n.call(i,r,e):n.call(i,e),e.cancelBubble)return}i=i._$host||i.parentNode||i.host}}function Gt(e,t,i,n,r){for(;typeof i=="function";)i=i();if(t===i)return i;const s=typeof t,a=n!==void 0;if(e=a&&i[0]&&i[0].parentNode||e,s==="string"||s==="number")if(s==="number"&&(t=t.toString()),a){let o=i[0];o&&o.nodeType===3?o.data!==t&&(o.data=t):o=document.createTextNode(t),i=vt(e,i,n,o)}else i!==""&&typeof i=="string"?i=e.firstChild.data=t:i=e.textContent=t;else if(t==null||s==="boolean")i=vt(e,i,n);else{if(s==="function")return Ct(()=>{let o=t();for(;typeof o=="function";)o=o();i=Gt(e,o,i,n)}),()=>i;if(Array.isArray(t)){const o=[],l=i&&Array.isArray(i);if(Ee(o,t,i,r))return Ct(()=>i=Gt(e,o,i,n,!0)),()=>i;if(o.length===0){if(i=vt(e,i,n),a)return i}else l?i.length===0?oi(e,o,n):kn(e,i,o):(i&&vt(e),oi(e,o));i=o}else if(t.nodeType){if(Array.isArray(i)){if(a)return i=vt(e,i,n,t);vt(e,i,null,t)}else i==null||i===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);i=t}}return i}function Ee(e,t,i,n){let r=!1;for(let s=0,a=t.length;s<a;s++){let o=t[s],l=i&&i[s],u;if(!(o==null||o===!0||o===!1))if((u=typeof o)=="object"&&o.nodeType)e.push(o);else if(Array.isArray(o))r=Ee(e,o,l)||r;else if(u==="function")if(n){for(;typeof o=="function";)o=o();r=Ee(e,Array.isArray(o)?o:[o],Array.isArray(l)?l:[l])||r}else e.push(o),r=!0;else{const c=String(o);l&&l.nodeType===3&&l.data===c?e.push(l):e.push(document.createTextNode(c))}}return r}function oi(e,t,i=null){for(let n=0,r=t.length;n<r;n++)e.insertBefore(t[n],i)}function vt(e,t,i,n){if(i===void 0)return e.textContent="";const r=n||document.createTextNode("");if(t.length){let s=!1;for(let a=t.length-1;a>=0;a--){const o=t[a];if(r!==o){const l=o.parentNode===e;!s&&!a?l?e.replaceChild(r,o):e.insertBefore(r,i):l&&o.remove()}else s=!0}}else e.insertBefore(r,i);return[r]}const Sn=!1;const Pn=St('<header><nav class="bg-white border-gray-200 px-4 lg:px-6 py-2.5 dark:bg-gray-800"><div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl"><a href="/" class="flex items-center"><span class="self-center text-xl font-semibold whitespace-nowrap dark:text-white">Palette Switcher</span></a><div class="flex items-center lg:order-2"><a href="/about" class="text-gray-800 dark:text-white hover:bg-gray-50 focus:ring-4 focus:ring-gray-300 font-medium rounded-lg text-sm px-4 lg:px-5 py-2 lg:py-2.5 mr-2 dark:hover:bg-gray-700 focus:outline-none dark:focus:ring-gray-800">About'),Dn=()=>Pn();var Hn=function(){function e(t,i){i===void 0&&(i=[]),this._eventType=t,this._eventFunctions=i}return e.prototype.init=function(){var t=this;this._eventFunctions.forEach(function(i){typeof window<"u"&&window.addEventListener(t._eventType,i)})},e}(),Rn=function(){function e(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{}}}return e.prototype.addInstance=function(t,i,n,r){if(r===void 0&&(r=!1),!this._instances[t])return console.warn("Flowbite: Component ".concat(t," does not exist.")),!1;if(this._instances[t][n]&&!r){console.warn("Flowbite: Instance with ID ".concat(n," already exists."));return}r&&this._instances[t][n]&&this._instances[t][n].destroyAndRemoveInstance(),this._instances[t][n||this._generateRandomId()]=i},e.prototype.getAllInstances=function(){return this._instances},e.prototype.getInstances=function(t){return this._instances[t]?this._instances[t]:(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},e.prototype.getInstance=function(t,i){if(this._componentAndInstanceCheck(t,i)){if(!this._instances[t][i]){console.warn("Flowbite: Instance with ID ".concat(i," does not exist."));return}return this._instances[t][i]}},e.prototype.destroyAndRemoveInstance=function(t,i){this._componentAndInstanceCheck(t,i)&&(this.destroyInstanceObject(t,i),this.removeInstance(t,i))},e.prototype.removeInstance=function(t,i){this._componentAndInstanceCheck(t,i)&&delete this._instances[t][i]},e.prototype.destroyInstanceObject=function(t,i){this._componentAndInstanceCheck(t,i)&&this._instances[t][i].destroy()},e.prototype.instanceExists=function(t,i){return!(!this._instances[t]||!this._instances[t][i])},e.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},e.prototype._componentAndInstanceCheck=function(t,i){return this._instances[t]?this._instances[t][i]?!0:(console.warn("Flowbite: Instance with ID ".concat(i," does not exist.")),!1):(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},e}(),w=new Rn;typeof window<"u"&&(window.FlowbiteInstances=w);var Jt=globalThis&&globalThis.__assign||function(){return Jt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Jt.apply(this,arguments)},Qt={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},zn={id:null,override:!0},Di=function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=[]),n===void 0&&(n=Qt),r===void 0&&(r=zn),this._instanceId=r.id?r.id:t.id,this._accordionEl=t,this._items=i,this._options=Jt(Jt({},Qt),n),this._initialized=!1,this.init(),w.addInstance("Accordion",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._items.forEach(function(i){i.active&&t.open(i.id);var n=function(){t.toggle(i.id)};i.triggerEl.addEventListener("click",n),i.clickHandler=n}),this._initialized=!0)},e.prototype.destroy=function(){this._items.length&&this._initialized&&(this._items.forEach(function(t){t.triggerEl.removeEventListener("click",t.clickHandler),delete t.clickHandler}),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Accordion",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getItem=function(t){return this._items.filter(function(i){return i.id===t})[0]},e.prototype.open=function(t){var i,n,r=this,s=this.getItem(t);this._options.alwaysOpen||this._items.map(function(a){var o,l;a!==s&&((o=a.triggerEl.classList).remove.apply(o,r._options.activeClasses.split(" ")),(l=a.triggerEl.classList).add.apply(l,r._options.inactiveClasses.split(" ")),a.targetEl.classList.add("hidden"),a.triggerEl.setAttribute("aria-expanded","false"),a.active=!1,a.iconEl&&a.iconEl.classList.remove("rotate-180"))}),(i=s.triggerEl.classList).add.apply(i,this._options.activeClasses.split(" ")),(n=s.triggerEl.classList).remove.apply(n,this._options.inactiveClasses.split(" ")),s.triggerEl.setAttribute("aria-expanded","true"),s.targetEl.classList.remove("hidden"),s.active=!0,s.iconEl&&s.iconEl.classList.add("rotate-180"),this._options.onOpen(this,s)},e.prototype.toggle=function(t){var i=this.getItem(t);i.active?this.close(t):this.open(t),this._options.onToggle(this,i)},e.prototype.close=function(t){var i,n,r=this.getItem(t);(i=r.triggerEl.classList).remove.apply(i,this._options.activeClasses.split(" ")),(n=r.triggerEl.classList).add.apply(n,this._options.inactiveClasses.split(" ")),r.targetEl.classList.add("hidden"),r.triggerEl.setAttribute("aria-expanded","false"),r.active=!1,r.iconEl&&r.iconEl.classList.remove("rotate-180"),this._options.onClose(this,r)},e}();function Oe(){document.querySelectorAll("[data-accordion]").forEach(function(e){var t=e.getAttribute("data-accordion"),i=e.getAttribute("data-active-classes"),n=e.getAttribute("data-inactive-classes"),r=[];e.querySelectorAll("[data-accordion-target]").forEach(function(s){if(s.closest("[data-accordion]")===e){var a={id:s.getAttribute("data-accordion-target"),triggerEl:s,targetEl:document.querySelector(s.getAttribute("data-accordion-target")),iconEl:s.querySelector("[data-accordion-icon]"),active:s.getAttribute("aria-expanded")==="true"};r.push(a)}}),new Di(e,r,{alwaysOpen:t==="open",activeClasses:i||Qt.activeClasses,inactiveClasses:n||Qt.inactiveClasses})})}typeof window<"u"&&(window.Accordion=Di,window.initAccordions=Oe);var Zt=globalThis&&globalThis.__assign||function(){return Zt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Zt.apply(this,arguments)},ai={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},jn={id:null,override:!0},xe=function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=ai),r===void 0&&(r=jn),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=Zt(Zt({},ai),n),this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Collapse",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._clickHandler=function(){t.toggle()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Collapse",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},e.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},e.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},e}();function Te(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(e){var t=e.getAttribute("data-collapse-toggle"),i=document.getElementById(t);i?w.instanceExists("Collapse",i.getAttribute("id"))?new xe(i,e,{},{id:i.getAttribute("id")+"_"+w._generateRandomId()}):new xe(i,e):console.error('The target element with id "'.concat(t,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=xe,window.initCollapses=Te);var ot=globalThis&&globalThis.__assign||function(){return ot=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ot.apply(this,arguments)},Ft={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},Bn={id:null,override:!0},Hi=function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=[]),n===void 0&&(n=Ft),r===void 0&&(r=Bn),this._instanceId=r.id?r.id:t.id,this._carouselEl=t,this._items=i,this._options=ot(ot(ot({},Ft),n),{indicators:ot(ot({},Ft.indicators),n.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._initialized=!1,this.init(),w.addInstance("Carousel",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._items.map(function(i){i.el.classList.add("absolute","inset-0","transition-transform","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(i,n){i.el.addEventListener("click",function(){t.slideTo(n)})}),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Carousel",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getItem=function(t){return this._items[t]},e.prototype.slideTo=function(t){var i=this._items[t],n={left:i.position===0?this._items[this._items.length-1]:this._items[i.position-1],middle:i,right:i.position===this._items.length-1?this._items[0]:this._items[i.position+1]};this._rotate(n),this._setActiveItem(i),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},e.prototype.next=function(){var t=this._getActiveItem(),i=null;t.position===this._items.length-1?i=this._items[0]:i=this._items[t.position+1],this.slideTo(i.position),this._options.onNext(this)},e.prototype.prev=function(){var t=this._getActiveItem(),i=null;t.position===0?i=this._items[this._items.length-1]:i=this._items[t.position-1],this.slideTo(i.position),this._options.onPrev(this)},e.prototype._rotate=function(t){this._items.map(function(i){i.el.classList.add("hidden")}),t.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),t.left.el.classList.add("-translate-x-full","z-10"),t.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),t.middle.el.classList.add("translate-x-0","z-20"),t.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),t.right.el.classList.add("translate-x-full","z-10")},e.prototype.cycle=function(){var t=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){t.next()},this._intervalDuration))},e.prototype.pause=function(){clearInterval(this._intervalInstance)},e.prototype._getActiveItem=function(){return this._activeItem},e.prototype._setActiveItem=function(t){var i,n,r=this;this._activeItem=t;var s=t.position;this._indicators.length&&(this._indicators.map(function(a){var o,l;a.el.setAttribute("aria-current","false"),(o=a.el.classList).remove.apply(o,r._options.indicators.activeClasses.split(" ")),(l=a.el.classList).add.apply(l,r._options.indicators.inactiveClasses.split(" "))}),(i=this._indicators[s].el.classList).add.apply(i,this._options.indicators.activeClasses.split(" ")),(n=this._indicators[s].el.classList).remove.apply(n,this._options.indicators.inactiveClasses.split(" ")),this._indicators[s].el.setAttribute("aria-current","true"))},e}();function Se(){document.querySelectorAll("[data-carousel]").forEach(function(e){var t=e.getAttribute("data-carousel-interval"),i=e.getAttribute("data-carousel")==="slide",n=[],r=0;e.querySelectorAll("[data-carousel-item]").length&&Array.from(e.querySelectorAll("[data-carousel-item]")).map(function(u,c){n.push({position:c,el:u}),u.getAttribute("data-carousel-item")==="active"&&(r=c)});var s=[];e.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(e.querySelectorAll("[data-carousel-slide-to]")).map(function(u){s.push({position:parseInt(u.getAttribute("data-carousel-slide-to")),el:u})});var a=new Hi(e,n,{defaultPosition:r,indicators:{items:s},interval:t||Ft.interval});i&&a.cycle();var o=e.querySelector("[data-carousel-next]"),l=e.querySelector("[data-carousel-prev]");o&&o.addEventListener("click",function(){a.next()}),l&&l.addEventListener("click",function(){a.prev()})})}typeof window<"u"&&(window.Carousel=Hi,window.initCarousels=Se);var te=globalThis&&globalThis.__assign||function(){return te=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},te.apply(this,arguments)},li={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},qn={id:null,override:!0},Ri=function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=li),r===void 0&&(r=qn),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=te(te({},li),n),this._initialized=!1,this.init(),w.addInstance("Dismiss",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._clickHandler=function(){t.hide()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Dismiss",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){var t=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){t._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},e}();function Pe(){document.querySelectorAll("[data-dismiss-target]").forEach(function(e){var t=e.getAttribute("data-dismiss-target"),i=document.querySelector(t);i?new Ri(i,e):console.error('The dismiss element with id "'.concat(t,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=Ri,window.initDismisses=Pe);var B="top",F="bottom",W="right",q="left",De="auto",Pt=[B,F,W,q],gt="start",Ot="end",Vn="clippingParents",zi="viewport",Et="popper",Mn="reference",ci=Pt.reduce(function(e,t){return e.concat([t+"-"+gt,t+"-"+Ot])},[]),ji=[].concat(Pt,[De]).reduce(function(e,t){return e.concat([t,t+"-"+gt,t+"-"+Ot])},[]),$n="beforeRead",Nn="read",Fn="afterRead",Wn="beforeMain",Un="main",Kn="afterMain",Xn="beforeWrite",Yn="write",Gn="afterWrite",Jn=[$n,Nn,Fn,Wn,Un,Kn,Xn,Yn,Gn];function X(e){return e?(e.nodeName||"").toLowerCase():null}function M(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ut(e){var t=M(e).Element;return e instanceof t||e instanceof Element}function N(e){var t=M(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function He(e){if(typeof ShadowRoot>"u")return!1;var t=M(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qn(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},s=t.elements[i];!N(s)||!X(s)||(Object.assign(s.style,n),Object.keys(r).forEach(function(a){var o=r[a];o===!1?s.removeAttribute(a):s.setAttribute(a,o===!0?"":o)}))})}function Zn(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],s=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]),o=a.reduce(function(l,u){return l[u]="",l},{});!N(r)||!X(r)||(Object.assign(r.style,o),Object.keys(s).forEach(function(l){r.removeAttribute(l)}))})}}const tr={name:"applyStyles",enabled:!0,phase:"write",fn:Qn,effect:Zn,requires:["computeStyles"]};function U(e){return e.split("-")[0]}var ct=Math.max,ee=Math.min,mt=Math.round;function Ae(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Bi(){return!/^((?!chrome|android).)*safari/i.test(Ae())}function yt(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var n=e.getBoundingClientRect(),r=1,s=1;t&&N(e)&&(r=e.offsetWidth>0&&mt(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&mt(n.height)/e.offsetHeight||1);var a=ut(e)?M(e):window,o=a.visualViewport,l=!Bi()&&i,u=(n.left+(l&&o?o.offsetLeft:0))/r,c=(n.top+(l&&o?o.offsetTop:0))/s,d=n.width/r,v=n.height/s;return{width:d,height:v,top:c,right:u+d,bottom:c+v,left:u,x:u,y:c}}function Re(e){var t=yt(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function qi(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&He(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Y(e){return M(e).getComputedStyle(e)}function er(e){return["table","td","th"].indexOf(X(e))>=0}function it(e){return((ut(e)?e.ownerDocument:e.document)||window.document).documentElement}function fe(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(He(e)?e.host:null)||it(e)}function ui(e){return!N(e)||Y(e).position==="fixed"?null:e.offsetParent}function ir(e){var t=/firefox/i.test(Ae()),i=/Trident/i.test(Ae());if(i&&N(e)){var n=Y(e);if(n.position==="fixed")return null}var r=fe(e);for(He(r)&&(r=r.host);N(r)&&["html","body"].indexOf(X(r))<0;){var s=Y(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Dt(e){for(var t=M(e),i=ui(e);i&&er(i)&&Y(i).position==="static";)i=ui(i);return i&&(X(i)==="html"||X(i)==="body"&&Y(i).position==="static")?t:i||ir(e)||t}function ze(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function At(e,t,i){return ct(e,ee(t,i))}function nr(e,t,i){var n=At(e,t,i);return n>i?i:n}function Vi(){return{top:0,right:0,bottom:0,left:0}}function Mi(e){return Object.assign({},Vi(),e)}function $i(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}var rr=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,Mi(typeof t!="number"?t:$i(t,Pt))};function sr(e){var t,i=e.state,n=e.name,r=e.options,s=i.elements.arrow,a=i.modifiersData.popperOffsets,o=U(i.placement),l=ze(o),u=[q,W].indexOf(o)>=0,c=u?"height":"width";if(!(!s||!a)){var d=rr(r.padding,i),v=Re(s),p=l==="y"?B:q,h=l==="y"?F:W,f=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],g=a[l]-i.rects.reference[l],m=Dt(s),L=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,A=f/2-g/2,_=d[p],E=L-v[c]-d[h],I=L/2-v[c]/2+A,O=At(_,I,E),T=l;i.modifiersData[n]=(t={},t[T]=O,t.centerOffset=O-I,t)}}function or(e){var t=e.state,i=e.options,n=i.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||qi(t.elements.popper,r)&&(t.elements.arrow=r))}const ar={name:"arrow",enabled:!0,phase:"main",fn:sr,effect:or,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _t(e){return e.split("-")[1]}var lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cr(e,t){var i=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:mt(i*r)/r||0,y:mt(n*r)/r||0}}function di(e){var t,i=e.popper,n=e.popperRect,r=e.placement,s=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,v=a.x,p=v===void 0?0:v,h=a.y,f=h===void 0?0:h,g=typeof c=="function"?c({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var m=a.hasOwnProperty("x"),L=a.hasOwnProperty("y"),A=q,_=B,E=window;if(u){var I=Dt(i),O="clientHeight",T="clientWidth";if(I===M(i)&&(I=it(i),Y(I).position!=="static"&&o==="absolute"&&(O="scrollHeight",T="scrollWidth")),I=I,r===B||(r===q||r===W)&&s===Ot){_=F;var y=d&&I===E&&E.visualViewport?E.visualViewport.height:I[O];f-=y-n.height,f*=l?1:-1}if(r===q||(r===B||r===F)&&s===Ot){A=W;var b=d&&I===E&&E.visualViewport?E.visualViewport.width:I[T];p-=b-n.width,p*=l?1:-1}}var C=Object.assign({position:o},u&&lr),H=c===!0?cr({x:p,y:f},M(i)):{x:p,y:f};if(p=H.x,f=H.y,l){var S;return Object.assign({},C,(S={},S[_]=L?"0":"",S[A]=m?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",S))}return Object.assign({},C,(t={},t[_]=L?f+"px":"",t[A]=m?p+"px":"",t.transform="",t))}function ur(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=n===void 0?!0:n,s=i.adaptive,a=s===void 0?!0:s,o=i.roundOffsets,l=o===void 0?!0:o,u={placement:U(t.placement),variation:_t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,di(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,di(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ur,data:{}};var qt={passive:!0};function fr(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,s=r===void 0?!0:r,a=n.resize,o=a===void 0?!0:a,l=M(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",i.update,qt)}),o&&l.addEventListener("resize",i.update,qt),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",i.update,qt)}),o&&l.removeEventListener("resize",i.update,qt)}}const hr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fr,data:{}};var pr={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(e){return e.replace(/left|right|bottom|top/g,function(t){return pr[t]})}var vr={start:"end",end:"start"};function fi(e){return e.replace(/start|end/g,function(t){return vr[t]})}function je(e){var t=M(e),i=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Be(e){return yt(it(e)).left+je(e).scrollLeft}function gr(e,t){var i=M(e),n=it(e),r=i.visualViewport,s=n.clientWidth,a=n.clientHeight,o=0,l=0;if(r){s=r.width,a=r.height;var u=Bi();(u||!u&&t==="fixed")&&(o=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:o+Be(e),y:l}}function mr(e){var t,i=it(e),n=je(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=ct(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ct(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Be(e),l=-n.scrollTop;return Y(r||i).direction==="rtl"&&(o+=ct(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:o,y:l}}function qe(e){var t=Y(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function Ni(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:N(e)&&qe(e)?e:Ni(fe(e))}function Lt(e,t){var i;t===void 0&&(t=[]);var n=Ni(e),r=n===((i=e.ownerDocument)==null?void 0:i.body),s=M(n),a=r?[s].concat(s.visualViewport||[],qe(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Lt(fe(a)))}function Le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yr(e,t){var i=yt(e,!1,t==="fixed");return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}function hi(e,t,i){return t===zi?Le(gr(e,i)):ut(t)?yr(t,i):Le(mr(it(e)))}function _r(e){var t=Lt(fe(e)),i=["absolute","fixed"].indexOf(Y(e).position)>=0,n=i&&N(e)?Dt(e):e;return ut(n)?t.filter(function(r){return ut(r)&&qi(r,n)&&X(r)!=="body"}):[]}function br(e,t,i,n){var r=t==="clippingParents"?_r(e):[].concat(t),s=[].concat(r,[i]),a=s[0],o=s.reduce(function(l,u){var c=hi(e,u,n);return l.top=ct(c.top,l.top),l.right=ee(c.right,l.right),l.bottom=ee(c.bottom,l.bottom),l.left=ct(c.left,l.left),l},hi(e,a,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Fi(e){var t=e.reference,i=e.element,n=e.placement,r=n?U(n):null,s=n?_t(n):null,a=t.x+t.width/2-i.width/2,o=t.y+t.height/2-i.height/2,l;switch(r){case B:l={x:a,y:t.y-i.height};break;case F:l={x:a,y:t.y+t.height};break;case W:l={x:t.x+t.width,y:o};break;case q:l={x:t.x-i.width,y:o};break;default:l={x:t.x,y:t.y}}var u=r?ze(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case gt:l[u]=l[u]-(t[c]/2-i[c]/2);break;case Ot:l[u]=l[u]+(t[c]/2-i[c]/2);break}}return l}function Tt(e,t){t===void 0&&(t={});var i=t,n=i.placement,r=n===void 0?e.placement:n,s=i.strategy,a=s===void 0?e.strategy:s,o=i.boundary,l=o===void 0?Vn:o,u=i.rootBoundary,c=u===void 0?zi:u,d=i.elementContext,v=d===void 0?Et:d,p=i.altBoundary,h=p===void 0?!1:p,f=i.padding,g=f===void 0?0:f,m=Mi(typeof g!="number"?g:$i(g,Pt)),L=v===Et?Mn:Et,A=e.rects.popper,_=e.elements[h?L:v],E=br(ut(_)?_:_.contextElement||it(e.elements.popper),l,c,a),I=yt(e.elements.reference),O=Fi({reference:I,element:A,strategy:"absolute",placement:r}),T=Le(Object.assign({},A,O)),y=v===Et?T:I,b={top:E.top-y.top+m.top,bottom:y.bottom-E.bottom+m.bottom,left:E.left-y.left+m.left,right:y.right-E.right+m.right},C=e.modifiersData.offset;if(v===Et&&C){var H=C[r];Object.keys(b).forEach(function(S){var R=[W,F].indexOf(S)>=0?1:-1,V=[B,F].indexOf(S)>=0?"y":"x";b[S]+=H[V]*R})}return b}function wr(e,t){t===void 0&&(t={});var i=t,n=i.placement,r=i.boundary,s=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,u=l===void 0?ji:l,c=_t(n),d=c?o?ci:ci.filter(function(h){return _t(h)===c}):Pt,v=d.filter(function(h){return u.indexOf(h)>=0});v.length===0&&(v=d);var p=v.reduce(function(h,f){return h[f]=Tt(e,{placement:f,boundary:r,rootBoundary:s,padding:a})[U(f)],h},{});return Object.keys(p).sort(function(h,f){return p[h]-p[f]})}function Er(e){if(U(e)===De)return[];var t=Wt(e);return[fi(e),t,fi(t)]}function xr(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,s=r===void 0?!0:r,a=i.altAxis,o=a===void 0?!0:a,l=i.fallbackPlacements,u=i.padding,c=i.boundary,d=i.rootBoundary,v=i.altBoundary,p=i.flipVariations,h=p===void 0?!0:p,f=i.allowedAutoPlacements,g=t.options.placement,m=U(g),L=m===g,A=l||(L||!h?[Wt(g)]:Er(g)),_=[g].concat(A).reduce(function(pt,G){return pt.concat(U(G)===De?wr(t,{placement:G,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:f}):G)},[]),E=t.rects.reference,I=t.rects.popper,O=new Map,T=!0,y=_[0],b=0;b<_.length;b++){var C=_[b],H=U(C),S=_t(C)===gt,R=[B,F].indexOf(H)>=0,V=R?"width":"height",P=Tt(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:v,padding:u}),z=R?S?W:q:S?F:B;E[V]>I[V]&&(z=Wt(z));var ht=Wt(z),nt=[];if(s&&nt.push(P[H]<=0),o&&nt.push(P[z]<=0,P[ht]<=0),nt.every(function(pt){return pt})){y=C,T=!1;break}O.set(C,nt)}if(T)for(var Ht=h?3:1,he=function(G){var wt=_.find(function(zt){var rt=O.get(zt);if(rt)return rt.slice(0,G).every(function(pe){return pe})});if(wt)return y=wt,"break"},bt=Ht;bt>0;bt--){var Rt=he(bt);if(Rt==="break")break}t.placement!==y&&(t.modifiersData[n]._skip=!0,t.placement=y,t.reset=!0)}}const Ar={name:"flip",enabled:!0,phase:"main",fn:xr,requiresIfExists:["offset"],data:{_skip:!1}};function pi(e,t,i){return i===void 0&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function vi(e){return[B,W,F,q].some(function(t){return e[t]>=0})}function Lr(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,a=Tt(t,{elementContext:"reference"}),o=Tt(t,{altBoundary:!0}),l=pi(a,n),u=pi(o,r,s),c=vi(l),d=vi(u);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Ir={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lr};function kr(e,t,i){var n=U(e),r=[q,B].indexOf(n)>=0?-1:1,s=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,a=s[0],o=s[1];return a=a||0,o=(o||0)*r,[q,W].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}function Cr(e){var t=e.state,i=e.options,n=e.name,r=i.offset,s=r===void 0?[0,0]:r,a=ji.reduce(function(c,d){return c[d]=kr(d,t.rects,s),c},{}),o=a[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}const Or={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cr};function Tr(e){var t=e.state,i=e.name;t.modifiersData[i]=Fi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Sr={name:"popperOffsets",enabled:!0,phase:"read",fn:Tr,data:{}};function Pr(e){return e==="x"?"y":"x"}function Dr(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,s=r===void 0?!0:r,a=i.altAxis,o=a===void 0?!1:a,l=i.boundary,u=i.rootBoundary,c=i.altBoundary,d=i.padding,v=i.tether,p=v===void 0?!0:v,h=i.tetherOffset,f=h===void 0?0:h,g=Tt(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=U(t.placement),L=_t(t.placement),A=!L,_=ze(m),E=Pr(_),I=t.modifiersData.popperOffsets,O=t.rects.reference,T=t.rects.popper,y=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,b=typeof y=="number"?{mainAxis:y,altAxis:y}:Object.assign({mainAxis:0,altAxis:0},y),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(I){if(s){var S,R=_==="y"?B:q,V=_==="y"?F:W,P=_==="y"?"height":"width",z=I[_],ht=z+g[R],nt=z-g[V],Ht=p?-T[P]/2:0,he=L===gt?O[P]:T[P],bt=L===gt?-T[P]:-O[P],Rt=t.elements.arrow,pt=p&&Rt?Re(Rt):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vi(),wt=G[R],zt=G[V],rt=At(0,O[P],pt[P]),pe=A?O[P]/2-Ht-rt-wt-b.mainAxis:he-rt-wt-b.mainAxis,on=A?-O[P]/2+Ht+rt+zt+b.mainAxis:bt+rt+zt+b.mainAxis,ve=t.elements.arrow&&Dt(t.elements.arrow),an=ve?_==="y"?ve.clientTop||0:ve.clientLeft||0:0,Ge=(S=C?.[_])!=null?S:0,ln=z+pe-Ge-an,cn=z+on-Ge,Je=At(p?ee(ht,ln):ht,z,p?ct(nt,cn):nt);I[_]=Je,H[_]=Je-z}if(o){var Qe,un=_==="x"?B:q,dn=_==="x"?F:W,st=I[E],jt=E==="y"?"height":"width",Ze=st+g[un],ti=st-g[dn],ge=[B,q].indexOf(m)!==-1,ei=(Qe=C?.[E])!=null?Qe:0,ii=ge?Ze:st-O[jt]-T[jt]-ei+b.altAxis,ni=ge?st+O[jt]+T[jt]-ei-b.altAxis:ti,ri=p&&ge?nr(ii,st,ni):At(p?ii:Ze,st,p?ni:ti);I[E]=ri,H[E]=ri-st}t.modifiersData[n]=H}}const Hr={name:"preventOverflow",enabled:!0,phase:"main",fn:Dr,requiresIfExists:["offset"]};function Rr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zr(e){return e===M(e)||!N(e)?je(e):Rr(e)}function jr(e){var t=e.getBoundingClientRect(),i=mt(t.width)/e.offsetWidth||1,n=mt(t.height)/e.offsetHeight||1;return i!==1||n!==1}function Br(e,t,i){i===void 0&&(i=!1);var n=N(t),r=N(t)&&jr(t),s=it(t),a=yt(e,r,i),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&((X(t)!=="body"||qe(s))&&(o=zr(t)),N(t)?(l=yt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Be(s))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function qr(e){var t=new Map,i=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function r(s){i.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(o){if(!i.has(o)){var l=t.get(o);l&&r(l)}}),n.push(s)}return e.forEach(function(s){i.has(s.name)||r(s)}),n}function Vr(e){var t=qr(e);return Jn.reduce(function(i,n){return i.concat(t.filter(function(r){return r.phase===n}))},[])}function Mr(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function $r(e){var t=e.reduce(function(i,n){var r=i[n.name];return i[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,i},{});return Object.keys(t).map(function(i){return t[i]})}var gi={placement:"bottom",modifiers:[],strategy:"absolute"};function mi(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Nr(e){e===void 0&&(e={});var t=e,i=t.defaultModifiers,n=i===void 0?[]:i,r=t.defaultOptions,s=r===void 0?gi:r;return function(o,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},gi,s),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},d=[],v=!1,p={state:c,setOptions:function(m){var L=typeof m=="function"?m(c.options):m;f(),c.options=Object.assign({},s,c.options,L),c.scrollParents={reference:ut(o)?Lt(o):o.contextElement?Lt(o.contextElement):[],popper:Lt(l)};var A=Vr($r([].concat(n,c.options.modifiers)));return c.orderedModifiers=A.filter(function(_){return _.enabled}),h(),p.update()},forceUpdate:function(){if(!v){var m=c.elements,L=m.reference,A=m.popper;if(mi(L,A)){c.rects={reference:Br(L,Dt(A),c.options.strategy==="fixed"),popper:Re(A)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(b){return c.modifiersData[b.name]=Object.assign({},b.data)});for(var _=0;_<c.orderedModifiers.length;_++){if(c.reset===!0){c.reset=!1,_=-1;continue}var E=c.orderedModifiers[_],I=E.fn,O=E.options,T=O===void 0?{}:O,y=E.name;typeof I=="function"&&(c=I({state:c,options:T,name:y,instance:p})||c)}}}},update:Mr(function(){return new Promise(function(g){p.forceUpdate(),g(c)})}),destroy:function(){f(),v=!0}};if(!mi(o,l))return p;p.setOptions(u).then(function(g){!v&&u.onFirstUpdate&&u.onFirstUpdate(g)});function h(){c.orderedModifiers.forEach(function(g){var m=g.name,L=g.options,A=L===void 0?{}:L,_=g.effect;if(typeof _=="function"){var E=_({state:c,name:m,instance:p,options:A}),I=function(){};d.push(E||I)}})}function f(){d.forEach(function(g){return g()}),d=[]}return p}}var Fr=[hr,Sr,dr,tr,Or,Ar,Hr,ar,Ir],Ve=Nr({defaultModifiers:Fr}),Q=globalThis&&globalThis.__assign||function(){return Q=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Q.apply(this,arguments)},Vt=globalThis&&globalThis.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,s;n<r;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},Z={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},Wr={id:null,override:!0},Wi=function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=Z),r===void 0&&(r=Wr),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=Q(Q({},Z),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Dropdown",this,this._instanceId,r.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._popperInstance=this._createPopperInstance(),this._setupEventListeners(),this._initialized=!0)},e.prototype.destroy=function(){var t=this,i=this._getTriggerEvents();this._options.triggerType==="click"&&i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._clickHandler)}),this._options.triggerType==="hover"&&(i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hoverShowTriggerElHandler),t._targetEl.removeEventListener(n,t._hoverShowTargetElHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hoverHideHandler),t._targetEl.removeEventListener(n,t._hoverHideHandler)})),this._popperInstance.destroy(),this._initialized=!1},e.prototype.removeInstance=function(){w.removeInstance("Dropdown",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var t=this,i=this._getTriggerEvents();this._clickHandler=function(){t.toggle()},this._options.triggerType==="click"&&i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._clickHandler)}),this._hoverShowTriggerElHandler=function(n){n.type==="click"?t.toggle():setTimeout(function(){t.show()},t._options.delay)},this._hoverShowTargetElHandler=function(){t.show()},this._hoverHideHandler=function(){setTimeout(function(){t._targetEl.matches(":hover")||t.hide()},t._options.delay)},this._options.triggerType==="hover"&&(i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hoverShowTriggerElHandler),t._targetEl.addEventListener(n,t._hoverShowTargetElHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hoverHideHandler),t._targetEl.addEventListener(n,t._hoverHideHandler)}))},e.prototype._createPopperInstance=function(){return Ve(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(i){t._handleClickOutside(i,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,i){var n=t.target,r=this._options.ignoreClickOutsideClass,s=!1;if(r){var a=document.querySelectorAll(".".concat(r));a.forEach(function(o){if(o.contains(n)){s=!0;return}})}n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&!s&&this.isVisible()&&this.hide()},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},e.prototype.isVisible=function(){return this._visible},e.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(t){return Q(Q({},t),{modifiers:Vt(Vt([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(t){return Q(Q({},t),{modifiers:Vt(Vt([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},e}();function Me(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(e){var t=e.getAttribute("data-dropdown-toggle"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-dropdown-placement"),r=e.getAttribute("data-dropdown-offset-skidding"),s=e.getAttribute("data-dropdown-offset-distance"),a=e.getAttribute("data-dropdown-trigger"),o=e.getAttribute("data-dropdown-delay"),l=e.getAttribute("data-dropdown-ignore-click-outside-class");new Wi(i,e,{placement:n||Z.placement,triggerType:a||Z.triggerType,offsetSkidding:r?parseInt(r):Z.offsetSkidding,offsetDistance:s?parseInt(s):Z.offsetDistance,delay:o?parseInt(o):Z.delay,ignoreClickOutsideClass:l||Z.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(t,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=Wi,window.initDropdowns=Me);var ie=globalThis&&globalThis.__assign||function(){return ie=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ie.apply(this,arguments)},ne={placement:"center",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},Ur={id:null,override:!0},Ui=function(){function e(t,i,n){t===void 0&&(t=null),i===void 0&&(i=ne),n===void 0&&(n=Ur),this._eventListenerInstances=[],this._instanceId=n.id?n.id:t.id,this._targetEl=t,this._options=ie(ie({},ne),i),this._isHidden=!0,this._backdropEl=null,this._initialized=!1,this.init(),w.addInstance("Modal",this,this._instanceId,n.override)}return e.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._getPlacementClasses().map(function(i){t._targetEl.classList.add(i)}),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Modal",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._createBackdrop=function(){var t;if(this._isHidden){var i=document.createElement("div");i.setAttribute("modal-backdrop",""),(t=i.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(i),this._backdropEl=i}},e.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},e.prototype._setupModalCloseEventListeners=function(){var t=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(i){t._handleOutsideClick(i.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(i){i.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._handleOutsideClick=function(t){(t===this._targetEl||t===this._backdropEl&&this.isVisible())&&this.hide()},e.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},e.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},e.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,this._options.closable&&this._setupModalCloseEventListeners(),document.body.classList.add("overflow-hidden"),this._options.onShow(this))},e.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},e.prototype.isVisible=function(){return!this._isHidden},e.prototype.isHidden=function(){return this._isHidden},e.prototype.addEventListenerInstance=function(t,i,n){this._eventListenerInstances.push({element:t,type:i,handler:n})},e.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(t){t.element.removeEventListener(t.type,t.handler)}),this._eventListenerInstances=[]},e.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},e}();function $e(){document.querySelectorAll("[data-modal-target]").forEach(function(e){var t=e.getAttribute("data-modal-target"),i=document.getElementById(t);if(i){var n=i.getAttribute("data-modal-placement"),r=i.getAttribute("data-modal-backdrop");new Ui(i,{placement:n||ne.placement,backdrop:r||ne.backdrop})}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(e){var t=e.getAttribute("data-modal-toggle"),i=document.getElementById(t);if(i){var n=w.getInstance("Modal",t);if(n){var r=function(){n.toggle()};e.addEventListener("click",r),n.addEventListenerInstance(e,"click",r)}else console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(e){var t=e.getAttribute("data-modal-show"),i=document.getElementById(t);if(i){var n=w.getInstance("Modal",t);if(n){var r=function(){n.show()};e.addEventListener("click",r),n.addEventListenerInstance(e,"click",r)}else console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(e){var t=e.getAttribute("data-modal-hide"),i=document.getElementById(t);if(i){var n=w.getInstance("Modal",t);if(n){var r=function(){n.hide()};e.addEventListener("click",r),n.addEventListenerInstance(e,"click",r)}else console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=Ui,window.initModals=$e);var re=globalThis&&globalThis.__assign||function(){return re=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},re.apply(this,arguments)},at={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},Kr={id:null,override:!0},Ki=function(){function e(t,i,n){t===void 0&&(t=null),i===void 0&&(i=at),n===void 0&&(n=Kr),this._eventListenerInstances=[],this._instanceId=n.id?n.id:t.id,this._targetEl=t,this._options=re(re({},at),i),this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Drawer",this,this._instanceId,n.override)}return e.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform"),this._getPlacementClasses(this._options.placement).base.map(function(i){t._targetEl.classList.add(i)}),this._handleEscapeKey=function(i){i.key==="Escape"&&t.isVisible()&&t.hide()},document.addEventListener("keydown",this._handleEscapeKey),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),document.removeEventListener("keydown",this._handleEscapeKey),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Drawer",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(i){t._targetEl.classList.remove(i)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(i){t._targetEl.classList.add(i)})):(this._getPlacementClasses(this._options.placement).active.map(function(i){t._targetEl.classList.remove(i)}),this._getPlacementClasses(this._options.placement).inactive.map(function(i){t._targetEl.classList.add(i)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(i){t._targetEl.classList.add(i)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(i){t._targetEl.classList.remove(i)})):(this._getPlacementClasses(this._options.placement).active.map(function(i){t._targetEl.classList.add(i)}),this._getPlacementClasses(this._options.placement).inactive.map(function(i){t._targetEl.classList.remove(i)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},e.prototype._createBackdrop=function(){var t,i=this;if(!this._visible){var n=document.createElement("div");n.setAttribute("drawer-backdrop",""),(t=n.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(n),n.addEventListener("click",function(){i.hide()})}},e.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},e.prototype._getPlacementClasses=function(t){switch(t){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e.prototype.addEventListenerInstance=function(t,i,n){this._eventListenerInstances.push({element:t,type:i,handler:n})},e.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(t){t.element.removeEventListener(t.type,t.handler)}),this._eventListenerInstances=[]},e.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},e}();function Ne(){document.querySelectorAll("[data-drawer-target]").forEach(function(e){var t=e.getAttribute("data-drawer-target"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-drawer-placement"),r=e.getAttribute("data-drawer-body-scrolling"),s=e.getAttribute("data-drawer-backdrop"),a=e.getAttribute("data-drawer-edge"),o=e.getAttribute("data-drawer-edge-offset");new Ki(i,{placement:n||at.placement,bodyScrolling:r?r==="true":at.bodyScrolling,backdrop:s?s==="true":at.backdrop,edge:a?a==="true":at.edge,edgeOffset:o||at.edgeOffset})}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(e){var t=e.getAttribute("data-drawer-toggle"),i=document.getElementById(t);if(i){var n=w.getInstance("Drawer",t);if(n){var r=function(){n.toggle()};e.addEventListener("click",r),n.addEventListenerInstance(e,"click",r)}else console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(e){var t=e.getAttribute("data-drawer-dismiss")?e.getAttribute("data-drawer-dismiss"):e.getAttribute("data-drawer-hide"),i=document.getElementById(t);if(i){var n=w.getInstance("Drawer",t);if(n){var r=function(){n.hide()};e.addEventListener("click",r),n.addEventListenerInstance(e,"click",r)}else console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(e){var t=e.getAttribute("data-drawer-show"),i=document.getElementById(t);if(i){var n=w.getInstance("Drawer",t);if(n){var r=function(){n.show()};e.addEventListener("click",r),n.addEventListenerInstance(e,"click",r)}else console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=Ki,window.initDrawers=Ne);var se=globalThis&&globalThis.__assign||function(){return se=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},se.apply(this,arguments)},yi={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},Xr={id:null,override:!0},Xi=function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=[]),n===void 0&&(n=yi),r===void 0&&(r=Xr),this._instanceId=r.id?r.id:t.id,this._tabsEl=t,this._items=i,this._activeTab=n?this.getTab(n.defaultTabId):null,this._options=se(se({},yi),n),this._initialized=!1,this.init(),w.addInstance("Tabs",this,this._tabsEl.id,!0),w.addInstance("Tabs",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._activeTab||this.setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(i){i.triggerEl.addEventListener("click",function(){t.show(i.id)})}))},e.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},e.prototype.removeInstance=function(){this.destroy(),w.removeInstance("Tabs",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getActiveTab=function(){return this._activeTab},e.prototype.setActiveTab=function(t){this._activeTab=t},e.prototype.getTab=function(t){return this._items.filter(function(i){return i.id===t})[0]},e.prototype.show=function(t,i){var n,r,s=this;i===void 0&&(i=!1);var a=this.getTab(t);a===this._activeTab&&!i||(this._items.map(function(o){var l,u;o!==a&&((l=o.triggerEl.classList).remove.apply(l,s._options.activeClasses.split(" ")),(u=o.triggerEl.classList).add.apply(u,s._options.inactiveClasses.split(" ")),o.targetEl.classList.add("hidden"),o.triggerEl.setAttribute("aria-selected","false"))}),(n=a.triggerEl.classList).add.apply(n,this._options.activeClasses.split(" ")),(r=a.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(" ")),a.triggerEl.setAttribute("aria-selected","true"),a.targetEl.classList.remove("hidden"),this.setActiveTab(a),this._options.onShow(this,a))},e}();function Fe(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(e){var t=[],i=null;e.querySelectorAll('[role="tab"]').forEach(function(n){var r=n.getAttribute("aria-selected")==="true",s={id:n.getAttribute("data-tabs-target"),triggerEl:n,targetEl:document.querySelector(n.getAttribute("data-tabs-target"))};t.push(s),r&&(i=s.id)}),new Xi(e,t,{defaultTabId:i})})}typeof window<"u"&&(window.Tabs=Xi,window.initTabs=Fe);var tt=globalThis&&globalThis.__assign||function(){return tt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},tt.apply(this,arguments)},Mt=globalThis&&globalThis.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,s;n<r;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},oe={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Yr={id:null,override:!0},Yi=function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=oe),r===void 0&&(r=Yr),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=tt(tt({},oe),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Tooltip",this,this._instanceId,r.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},e.prototype.destroy=function(){var t=this;if(this._initialized){var i=this._getTriggerEvents();i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},e.prototype.removeInstance=function(){w.removeInstance("Tooltip",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var t=this,i=this._getTriggerEvents();this._showHandler=function(){t.show()},this._hideHandler=function(){t.hide()},i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hideHandler)})},e.prototype._createPopperInstance=function(){return Ve(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype._setupKeydownListener=function(){var t=this;this._keydownEventListener=function(i){i.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(i){t._handleClickOutside(i,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,i){var n=t.target;n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},e.prototype.isVisible=function(){return this._visible},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},e.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(t){return tt(tt({},t),{modifiers:Mt(Mt([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(t){return tt(tt({},t),{modifiers:Mt(Mt([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},e}();function We(){document.querySelectorAll("[data-tooltip-target]").forEach(function(e){var t=e.getAttribute("data-tooltip-target"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-tooltip-trigger"),r=e.getAttribute("data-tooltip-placement");new Yi(i,e,{placement:r||oe.placement,triggerType:n||oe.triggerType})}else console.error('The tooltip element with id "'.concat(t,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=Yi,window.initTooltips=We);var et=globalThis&&globalThis.__assign||function(){return et=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},et.apply(this,arguments)},$t=globalThis&&globalThis.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,s;n<r;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},It={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Gr={id:null,override:!0},Gi=function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=It),r===void 0&&(r=Gr),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=et(et({},It),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Popover",this,r.id?r.id:this._targetEl.id,r.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},e.prototype.destroy=function(){var t=this;if(this._initialized){var i=this._getTriggerEvents();i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._showHandler),t._targetEl.removeEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hideHandler),t._targetEl.removeEventListener(n,t._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},e.prototype.removeInstance=function(){w.removeInstance("Popover",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var t=this,i=this._getTriggerEvents();this._showHandler=function(){t.show()},this._hideHandler=function(){setTimeout(function(){t._targetEl.matches(":hover")||t.hide()},100)},i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._showHandler),t._targetEl.addEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hideHandler),t._targetEl.addEventListener(n,t._hideHandler)})},e.prototype._createPopperInstance=function(){return Ve(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype._setupKeydownListener=function(){var t=this;this._keydownEventListener=function(i){i.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(i){t._handleClickOutside(i,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,i){var n=t.target;n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},e.prototype.isVisible=function(){return this._visible},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},e.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(t){return et(et({},t),{modifiers:$t($t([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(t){return et(et({},t),{modifiers:$t($t([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},e}();function Ue(){document.querySelectorAll("[data-popover-target]").forEach(function(e){var t=e.getAttribute("data-popover-target"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-popover-trigger"),r=e.getAttribute("data-popover-placement"),s=e.getAttribute("data-popover-offset");new Gi(i,e,{placement:r||It.placement,offset:s?parseInt(s):It.offset,triggerType:n||It.triggerType})}else console.error('The popover element with id "'.concat(t,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=Gi,window.initPopovers=Ue);var ae=globalThis&&globalThis.__assign||function(){return ae=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ae.apply(this,arguments)},Ie={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Jr={id:null,override:!0},Ji=function(){function e(t,i,n,r,s){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=null),r===void 0&&(r=Ie),s===void 0&&(s=Jr),this._instanceId=s.id?s.id:n.id,this._parentEl=t,this._triggerEl=i,this._targetEl=n,this._options=ae(ae({},Ie),r),this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Dial",this,this._instanceId,s.override)}return e.prototype.init=function(){var t=this;if(this._triggerEl&&this._targetEl&&!this._initialized){var i=this._getTriggerEventTypes(this._options.triggerType);this._showEventHandler=function(){t.show()},i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._showEventHandler),t._targetEl.addEventListener(n,t._showEventHandler)}),this._hideEventHandler=function(){t._parentEl.matches(":hover")||t.hide()},i.hideEvents.forEach(function(n){t._parentEl.addEventListener(n,t._hideEventHandler)}),this._initialized=!0}},e.prototype.destroy=function(){var t=this;if(this._initialized){var i=this._getTriggerEventTypes(this._options.triggerType);i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._showEventHandler),t._targetEl.removeEventListener(n,t._showEventHandler)}),i.hideEvents.forEach(function(n){t._parentEl.removeEventListener(n,t._hideEventHandler)}),this._initialized=!1}},e.prototype.removeInstance=function(){w.removeInstance("Dial",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this._visible?this.hide():this.show()},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e.prototype._getTriggerEventTypes=function(t){switch(t){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e}();function Ke(){document.querySelectorAll("[data-dial-init]").forEach(function(e){var t=e.querySelector("[data-dial-toggle]");if(t){var i=t.getAttribute("data-dial-toggle"),n=document.getElementById(i);if(n){var r=t.getAttribute("data-dial-trigger");new Ji(e,t,n,{triggerType:r||Ie.triggerType})}else console.error("Dial with id ".concat(i," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(e.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=Ji,window.initDials=Ke);var le=globalThis&&globalThis.__assign||function(){return le=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},le.apply(this,arguments)},_i={minValue:null,maxValue:null,onIncrement:function(){},onDecrement:function(){}},Qr={id:null,override:!0},Qi=function(){function e(t,i,n,r,s){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=null),r===void 0&&(r=_i),s===void 0&&(s=Qr),this._instanceId=s.id?s.id:t.id,this._targetEl=t,this._incrementEl=i,this._decrementEl=n,this._options=le(le({},_i),r),this._initialized=!1,this.init(),w.addInstance("InputCounter",this,this._instanceId,s.override)}return e.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._inputHandler=function(i){{var n=i.target;/^\d*$/.test(n.value)||(n.value=n.value.replace(/[^\d]/g,"")),t._options.maxValue!==null&&parseInt(n.value)>t._options.maxValue&&(n.value=t._options.maxValue.toString()),t._options.minValue!==null&&parseInt(n.value)<t._options.minValue&&(n.value=t._options.minValue.toString())}},this._incrementClickHandler=function(){t.increment()},this._decrementClickHandler=function(){t.decrement()},this._targetEl.addEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.addEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.addEventListener("click",this._decrementClickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._targetEl&&this._initialized&&(this._targetEl.removeEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.removeEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.removeEventListener("click",this._decrementClickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("InputCounter",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getCurrentValue=function(){return parseInt(this._targetEl.value)||0},e.prototype.increment=function(){this._options.maxValue!==null&&this.getCurrentValue()>=this._options.maxValue||(this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this))},e.prototype.decrement=function(){this._options.minValue!==null&&this.getCurrentValue()<=this._options.minValue||(this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this))},e}();function Xe(){document.querySelectorAll("[data-input-counter]").forEach(function(e){var t=e.id,i=document.querySelector('[data-input-counter-increment="'+t+'"]'),n=document.querySelector('[data-input-counter-decrement="'+t+'"]'),r=e.getAttribute("data-input-counter-min"),s=e.getAttribute("data-input-counter-max");e?w.instanceExists("InputCounter",e.getAttribute("id"))||new Qi(e,i||null,n||null,{minValue:r?parseInt(r):null,maxValue:s?parseInt(s):null}):console.error('The target element with id "'.concat(t,'" does not exist. Please check the data-input-counter attribute.'))})}typeof window<"u"&&(window.InputCounter=Qi,window.initInputCounters=Xe);function Zr(){Oe(),Te(),Se(),Pe(),Me(),$e(),Ne(),Fe(),We(),Ue(),Ke(),Xe()}typeof window<"u"&&(window.initFlowbite=Zr);var ts=new Hn("load",[Oe,Te,Se,Pe,Me,$e,Ne,Fe,We,Ue,Ke,Xe]);ts.init();const es=St('<footer class="p-4 bg-white sm:p-6 dark:bg-gray-800"><div class="mx-auto max-w-screen-xl"><div class="sm:flex sm:items-center sm:justify-between"><span class="text-sm text-gray-500 sm:text-center dark:text-gray-400">© 2022 <a href="https://flowbite.com" class="hover:underline">Flowbite™</a>. All Rights Reserved.</span><div class="flex mt-4 space-x-6 sm:justify-center sm:mt-0"><a href="#" class="text-gray-500 hover:text-gray-900 dark:hover:text-white"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path fill-rule="evenodd" d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z" clip-rule="evenodd"></path></svg></a><a href="#" class="text-gray-500 hover:text-gray-900 dark:hover:text-white"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path fill-rule="evenodd" d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z" clip-rule="evenodd"></path></svg></a><a href="#" class="text-gray-500 hover:text-gray-900 dark:hover:text-white"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"></path></svg></a><a href="#" class="text-gray-500 hover:text-gray-900 dark:hover:text-white"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg></a><a href="#" class="text-gray-500 hover:text-gray-900 dark:hover:text-white"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path fill-rule="evenodd" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10c5.51 0 10-4.48 10-10S17.51 2 12 2zm6.605 4.61a8.502 8.502 0 011.93 5.314c-.281-.054-3.101-.629-5.943-.271-.065-.141-.12-.293-.184-.445a25.416 25.416 0 00-.564-1.236c3.145-1.28 4.577-3.124 4.761-3.362zM12 3.475c2.17 0 4.154.813 5.662 2.148-.152.216-1.443 1.941-4.48 3.08-1.399-2.57-2.95-4.675-3.189-5A8.687 8.687 0 0112 3.475zm-3.633.803a53.896 53.896 0 013.167 4.935c-3.992 1.063-7.517 1.04-7.896 1.04a8.581 8.581 0 014.729-5.975zM3.453 12.01v-.26c.37.01 4.512.065 8.775-1.215.25.477.477.965.694 1.453-.109.033-.228.065-.336.098-4.404 1.42-6.747 5.303-6.942 5.629a8.522 8.522 0 01-2.19-5.705zM12 20.547a8.482 8.482 0 01-5.239-1.8c.152-.315 1.888-3.656 6.703-5.337.022-.01.033-.01.054-.022a35.318 35.318 0 011.823 6.475 8.4 8.4 0 01-3.341.684zm4.761-1.465c-.086-.52-.542-3.015-1.659-6.084 2.679-.423 5.022.271 5.314.369a8.468 8.468 0 01-3.655 5.715z" clip-rule="evenodd">'),is=()=>es(),ns=St('<div class="flex flex-col h-screen"><main class="mb-auto">'),rs=e=>(()=>{const t=ns(),i=t.firstChild;return Nt(t,$(Dn,{}),i),Nt(i,()=>e.children),Nt(t,$(is,{}),null),t})();function ss(){let e=new Set;function t(r){return e.add(r),()=>e.delete(r)}let i=!1;function n(r,s){if(i)return!(i=!1);const a={to:r,options:s,defaultPrevented:!1,preventDefault:()=>a.defaultPrevented=!0};for(const o of e)o.listener({...a,from:o.location,retry:l=>{l&&(i=!0),o.navigate(r,{...s,resolve:!1})}});return!a.defaultPrevented}return{subscribe:t,confirm:n}}const os=/^(?:[a-z0-9]+:)?\/\//i,as=/^\/+|(\/)\/+$/g;function kt(e,t=!1){const i=e.replace(as,"$1");return i?t||/^[?#]/.test(i)?i:"/"+i:""}function Ut(e,t,i){if(os.test(t))return;const n=kt(e),r=i&&kt(i);let s="";return!r||t.startsWith("/")?s=n:r.toLowerCase().indexOf(n.toLowerCase())!==0?s=n+r:s=r,(s||"/")+kt(t,!s)}function ls(e,t){return kt(e).replace(/\/*(\*.*)?$/g,"")+kt(t)}function Zi(e){const t={};return e.searchParams.forEach((i,n)=>{t[n]=i}),t}function cs(e,t,i){const[n,r]=e.split("/*",2),s=n.split("/").filter(Boolean),a=s.length;return o=>{const l=o.split("/").filter(Boolean),u=l.length-a;if(u<0||u>0&&r===void 0&&!t)return null;const c={path:a?"":"/",params:{}},d=v=>i===void 0?void 0:i[v];for(let v=0;v<a;v++){const p=s[v],h=l[v],f=p[0]===":",g=f?p.slice(1):p;if(f&&_e(h,d(g)))c.params[g]=h;else if(f||!_e(h,p))return null;c.path+=`/${h}`}if(r){const v=u?l.slice(-u).join("/"):"";if(_e(v,d(r)))c.params[r]=v;else return null}return c}}function _e(e,t){const i=n=>n.localeCompare(e,void 0,{sensitivity:"base"})===0;return t===void 0?!0:typeof t=="string"?i(t):typeof t=="function"?t(e):Array.isArray(t)?t.some(i):t instanceof RegExp?t.test(e):!1}function us(e){const[t,i]=e.pattern.split("/*",2),n=t.split("/").filter(Boolean);return n.reduce((r,s)=>r+(s.startsWith(":")?2:3),n.length-(i===void 0?0:1))}function tn(e){const t=new Map,i=vn();return new Proxy({},{get(n,r){return t.has(r)||gn(i,()=>t.set(r,j(()=>e()[r]))),t.get(r)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())}})}function en(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let i=e.slice(0,t.index),n=e.slice(t.index+t[0].length);const r=[i,i+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(n);)r.push(i+=t[1]),n=n.slice(t[0].length);return en(n).reduce((s,a)=>[...s,...r.map(o=>o+a)],[])}const ds=100,fs=Li(),Ye=Li();function hs(e,t=""){const{component:i,load:n,children:r,metadata:s}=e,a=!r||Array.isArray(r)&&!r.length,o={key:e,component:i,load:n,metadata:s};return nn(e.path).reduce((l,u)=>{for(const c of en(u)){const d=ls(t,c);let v=a?d:d.split("/*",1)[0];v=v.split("/").map(p=>p.startsWith(":")||p.startsWith("*")?p:encodeURIComponent(p)).join("/"),l.push({...o,originalPath:c,pattern:v,matcher:cs(v,!a,e.matchFilters)})}return l},[])}function ps(e,t=0){return{routes:e,score:us(e[e.length-1])*1e4-t,matcher(i){const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r],a=s.matcher(i);if(!a)return null;n.unshift({...a,route:s})}return n}}}function nn(e){return Array.isArray(e)?e:[e]}function rn(e,t="",i=[],n=[]){const r=nn(e);for(let s=0,a=r.length;s<a;s++){const o=r[s];if(o&&typeof o=="object"){o.hasOwnProperty("path")||(o.path="");const l=hs(o,t);for(const u of l){i.push(u);const c=Array.isArray(o.children)&&o.children.length===0;if(o.children&&!c)rn(o.children,u.pattern,i,n);else{const d=ps([...i],n.length);n.push(d)}i.pop()}}}return i.length?n:n.sort((s,a)=>a.score-s.score)}function sn(e,t){for(let i=0,n=e.length;i<n;i++){const r=e[i].matcher(t);if(r)return r}return[]}function vs(e,t){const i=new URL("http://sar"),n=j(l=>{const u=e();try{return new URL(u,i)}catch{return console.error(`Invalid path ${u}`),l}},i,{equals:(l,u)=>l.href===u.href}),r=j(()=>n().pathname),s=j(()=>n().search,!0),a=j(()=>n().hash),o=()=>"";return{get pathname(){return r()},get search(){return s()},get hash(){return a()},get state(){return t()},get key(){return o()},query:tn(xi(s,()=>Zi(n())))}}let J;function gs(e,t,i={}){const{signal:[n,r],utils:s={}}=e,a=s.parsePath||(y=>y),o=s.renderPath||(y=>y),l=s.beforeLeave||ss(),u=Ut("",i.base||"");if(u===void 0)throw new Error(`${u} is not a valid base path`);u&&!n().value&&r({value:u,replace:!0,scroll:!1});const[c,d]=xt(!1),v=async y=>{d(!0);try{await mn(y)}finally{d(!1)}},[p,h]=xt(n().value),[f,g]=xt(n().state),m=vs(p,f),L=[],A=xt([]),_={pattern:u,params:{},path:()=>u,outlet:()=>null,resolvePath(y){return Ut(u,y)}};return Ct(()=>{const{value:y,state:b}=n();K(()=>{y!==p()&&v(()=>{J="native",h(y),g(b),A[1]([])}).then(()=>{J=void 0})})}),{base:_,location:m,isRouting:c,renderPath:o,parsePath:a,navigatorFactory:I,beforeLeave:l,preloadRoute:T,submissions:A};function E(y,b,C){K(()=>{if(typeof b=="number"){b&&(s.go?l.confirm(b,C)&&s.go(b):console.warn("Router integration does not support relative routing"));return}const{replace:H,resolve:S,scroll:R,state:V}={replace:!1,resolve:!0,scroll:!0,...C},P=S?y.resolvePath(b):Ut("",b);if(P===void 0)throw new Error(`Path '${b}' is not a routable path`);if(L.length>=ds)throw new Error("Too many redirects");const z=p();if((P!==z||V!==f())&&!Sn){if(l.confirm(P,C)){const ht=L.push({value:z,replace:H,scroll:R,state:f()});v(()=>{J="navigate",h(P),g(V),A[1]([])}).then(()=>{L.length===ht&&(J=void 0,O({value:P,state:V}))})}}})}function I(y){return y=y||yn(Ye)||_,(b,C)=>E(y,b,C)}function O(y){const b=L[0];b&&((y.value!==b.value||y.state!==b.state)&&r({...y,replace:b.replace,scroll:b.scroll}),L.length=0)}function T(y,b){const C=sn(t(),y.pathname),H=J;J="preload";for(let S in C){const{route:R,params:V}=C[S];R.component&&R.component.preload&&R.component.preload(),b&&R.load&&R.load({params:V,location:{pathname:y.pathname,search:y.search,hash:y.hash,query:Zi(y),state:null,key:""},intent:"preload"})}J=H}}function ms(e,t,i,n,r){const{base:s,location:a}=e,{pattern:o,component:l,load:u}=n().route,c=j(()=>n().path);l&&l.preload&&l.preload();const d=u?u({params:r,location:a,intent:J||"initial"}):void 0;return{parent:t,pattern:o,path:c,params:r,outlet:()=>l?$(l,{params:r,location:a,data:d,get children(){return i()}}):i(),resolvePath(p){return Ut(s.path(),p,c())}}}const ys=e=>t=>{const{base:i}=t,n=ke(()=>t.children),r=j(()=>rn(t.root?{component:t.root,children:n()}:n(),t.base||"")),s=gs(e,r,{base:i});return e.create&&e.create(s),$(fs.Provider,{value:s,get children(){return $(_s,{routerState:s,get branches(){return r()}})}})};function _s(e){const t=j(()=>sn(e.branches,e.routerState.location.pathname)),i=tn(()=>{const a=t(),o={};for(let l=0;l<a.length;l++)Object.assign(o,a[l].params);return o}),n=[];let r;const s=j(xi(t,(a,o,l)=>{let u=o&&a.length===o.length;const c=[];for(let d=0,v=a.length;d<v;d++){const p=o&&o[d],h=a[d];l&&p&&h.route.key===p.route.key?c[d]=l[d]:(u=!1,n[d]&&n[d](),Ei(f=>{n[d]=f,c[d]=ms(e.routerState,c[d-1]||e.routerState.base,bs(()=>s()[d+1]),()=>t()[d],i)}))}return n.splice(a.length).forEach(d=>d()),l&&u?l:(r=c[0],c)}));return $(Pi,{get when(){return s()&&r},keyed:!0,children:a=>$(Ye.Provider,{value:a,get children(){return a.outlet()}})})}const bs=e=>()=>$(Pi,{get when(){return e()},keyed:!0,children:t=>$(Ye.Provider,{value:t,get children(){return t.outlet()}})}),bi=e=>{const t=ke(()=>e.children);return Ln(e,{get children(){return t()}})};function ws([e,t],i,n){return[i?()=>i(e()):e,n?r=>t(n(r)):t]}function Es(e){if(e==="#")return null;try{return document.querySelector(e)}catch{return null}}function xs(e){let t=!1;const i=r=>typeof r=="string"?{value:r}:r,n=ws(xt(i(e.get()),{equals:(r,s)=>r.value===s.value}),void 0,r=>(!t&&e.set(r),r));return e.init&&Ai(e.init((r=e.get())=>{t=!0,n[1](i(r)),t=!1})),ys({signal:n,create:e.create,utils:e.utils})}function As(e,t,i){return e.addEventListener(t,i),()=>e.removeEventListener(t,i)}function Ls(e,t){const i=Es(`#${e}`);i?i.scrollIntoView():t&&window.scrollTo(0,0)}const Is=new Map;function ks(e=!0,t=!1,i="/_server"){return n=>{const r=n.base.path(),s=n.navigatorFactory(n.base);let a={};function o(h){return h.namespaceURI==="http://www.w3.org/2000/svg"}function l(h){if(h.defaultPrevented||h.button!==0||h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)return;const f=h.composedPath().find(E=>E instanceof Node&&E.nodeName.toUpperCase()==="A");if(!f||t&&!f.getAttribute("link"))return;const g=o(f),m=g?f.href.baseVal:f.href;if((g?f.target.baseVal:f.target)||!m&&!f.hasAttribute("state"))return;const A=(f.getAttribute("rel")||"").split(/\s+/);if(f.hasAttribute("download")||A&&A.includes("external"))return;const _=g?new URL(m,document.baseURI):new URL(m);if(!(_.origin!==window.location.origin||r&&_.pathname&&!_.pathname.toLowerCase().startsWith(r.toLowerCase())))return[f,_]}function u(h){const f=l(h);if(!f)return;const[g,m]=f,L=n.parsePath(m.pathname+m.search+m.hash),A=g.getAttribute("state");h.preventDefault(),s(L,{resolve:!1,replace:g.hasAttribute("replace"),scroll:!g.hasAttribute("noscroll"),state:A&&JSON.parse(A)})}function c(h){const f=l(h);if(!f)return;const[g,m]=f;a[m.pathname]||n.preloadRoute(m,g.getAttribute("preload")!=="false")}function d(h){const f=l(h);if(!f)return;const[g,m]=f;a[m.pathname]||(a[m.pathname]=setTimeout(()=>{n.preloadRoute(m,g.getAttribute("preload")!=="false"),delete a[m.pathname]},200))}function v(h){const f=l(h);if(!f)return;const[,g]=f;a[g.pathname]&&(clearTimeout(a[g.pathname]),delete a[g.pathname])}function p(h){let f=h.submitter&&h.submitter.hasAttribute("formaction")?h.submitter.formAction:h.target.action;if(!f)return;if(!f.startsWith("https://action/")){const m=new URL(f);if(f=n.parsePath(m.pathname+m.search),!f.startsWith(i))return}if(h.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const g=Is.get(f);if(g){h.preventDefault();const m=new FormData(h.target);h.submitter&&h.submitter.name&&m.append(h.submitter.name,h.submitter.value),g.call(n,m)}}On(["click","submit"]),document.addEventListener("click",u),e&&(document.addEventListener("mouseover",d),document.addEventListener("mouseout",v),document.addEventListener("focusin",c),document.addEventListener("touchstart",c)),document.addEventListener("submit",p),Ai(()=>{document.removeEventListener("click",u),e&&(document.removeEventListener("mouseover",d),document.removeEventListener("mouseout",v),document.removeEventListener("focusin",c),document.removeEventListener("touchstart",c)),document.removeEventListener("submit",p)})}}function Cs(e){return xs({get:()=>({value:window.location.pathname+window.location.search+window.location.hash,state:history.state}),set({value:t,replace:i,scroll:n,state:r}){i?window.history.replaceState(r,"",t):window.history.pushState(r,"",t),Ls(window.location.hash.slice(1),n)},init:t=>As(window,"popstate",()=>t()),create:ks(e.preload,e.explicitLinks,e.actionBase),utils:{go:t=>window.history.go(t)}})(e)}const Os=St('<div class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8">ABOUT'),Ts=()=>Os(),Ss=St('<div class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8">CONTENT'),Ps=()=>Ss(),Ds=document.getElementById("root");Cn(()=>$(Cs,{root:rs,get children(){return[$(bi,{path:"/about",component:Ts}),$(bi,{path:"/",component:Ps})]}}),Ds);