text: (()=>{var a=new Event("alpine-i18n:locale-change"),r=new Event("alpine-i18n:ready"),o={version:"2.2.0",set locale(e){this.checkLocale(e),this.currentLocale=e,document.dispatchEvent(a)},get locale(){return this.currentLocale},currentLocale:"",messages:{},fallbackLocale:"",create(e,i){this.messages=i,this.checkLocale(e),this.locale=e},checkLocale(e){if(!Object.keys(this.messages).includes(e))throw new Error(`Alpine I18n: The locale ${this.locale} does not exist.`)},t(e,i){let n="";try{if(n=e.split(".").reduce((t,l)=>t[l],this.messages[this.locale]),!n)throw""}catch{}if(!n&&this.fallbackLocale.length)n=e.split(".").reduce((t,l)=>t[l],this.messages[this.fallbackLocale]);else if(!n)return e;for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let l=i[t],c=new RegExp("{s*("+t+")s*}","g");n=n.replaceAll(c,l)}return n}};function s(e){window.AlpineI18n=e.reactive(o),document.dispatchEvent(r),e.magic("locale",i=>n=>{if(!n)return window.AlpineI18n.locale;window.AlpineI18n.locale=n}),e.magic("t",i=>(n,t)=>window.AlpineI18n.t(n,t))}document.addEventListener("alpine:initializing",()=>{s(window.Alpine)});})();
  