Skip to content

Firefly III: a personal finances manager

Auto commit for release 'develop' on 2024-03-11

github-actionsdfdbfae4b5c9
diff --git a/config/firefly.php b/config/firefly.php
index 5b5b132490..435b506e32 100644
--- a/config/firefly.php
+++ b/config/firefly.php
@@ -117,7 +117,7 @@ return [
'expression_engine' => false,
// see cer.php for exchange rates feature flag.
],
- 'version' => 'develop/2024-03-07',
+ 'version' => 'develop/2024-03-11',
'api_version' => '2.0.12',
'db_version' => 23,
diff --git a/public/build/assets/create-9bb8a4d8.js b/public/build/assets/create-b70c5f7e.js
similarity index 97%
rename from public/build/assets/create-9bb8a4d8.js
rename to public/build/assets/create-b70c5f7e.js
index 4c7d88cda2..0c836fa97c 100644
--- a/public/build/assets/create-9bb8a4d8.js
+++ b/public/build/assets/create-b70c5f7e.js
@@ -1 +1 @@
-import{a as m,d as y,f as d}from"./format-money-db0e5105.js";import{d as w,c as b}from"./create-empty-split-0cfec852.js";import{l as v,a as T,b as C,c as P,p as E,d as _,s as L,e as c,f as S,g as D,h as A,i as x,j as k,k as h,m as p}from"./splice-errors-into-transactions-bdbe4899.js";import{l,i as r,m as B}from"./vendor-0a0b4763.js";import"./get-d7bb5fb3.js";class M{post(t){let s="/api/v2/transactions";return m.post(s,t)}}let n=[],u=[];document.addEventListener("location-remove",e=>{u[e.detail.index].remove()});function O(e){let t=0;if(document.querySelector("#form")._x_dataStack[0].$data.entries[t].hasLocation===!1){u[t]=new l.marker(e.latlng,{draggable:!0}),u[t].on("dragend",U),u[t].addTo(n[t]);const o=new CustomEvent("location-set",{detail:{latitude:e.latlng.lat,longitude:e.latlng.lng,index:t,zoomLevel:n[t].getZoom()}});document.dispatchEvent(o)}}function F(e){let t=0;const s=new CustomEvent("location-zoom",{detail:{index:t,zoomLevel:n[t].getZoom()}});document.dispatchEvent(s)}function U(e){let t=e.target,s=t.getLatLng();t.setLatLng(new l.LatLng(s.lat,s.lng),{draggable:"true"});const o=new CustomEvent("location-move",{detail:{latitude:s.lat,longitude:s.lng,index:0}});document.dispatchEvent(o)}function z(e){if(e>0){console.warn("Corwardly refuse to add a map on split #"+(e+1));return}if(typeof n[e]>"u"){let t=document.getElementById("location_map");t&&(n[e]=l.map(t).setView([t.dataset.latitude,t.dataset.longitude],t.dataset.zoomLevel),l.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(n[e]),n[e].on("click",O),n[e].on("zoomend",F))}}const a=k();let I=function(){return{entries:[],formStates:{loadingCurrencies:!0,loadingBudgets:!0,loadingPiggyBanks:!0,loadingSubscriptions:!0,isSubmitting:!1,returnHereButton:!1,saveAsNewButton:!1,resetButton:!0,rulesButton:!0,webhooksButton:!0},formBehaviour:{formType:"create",foreignCurrencyEnabled:!0},formData:{defaultCurrency:null,enabledCurrencies:[],nativeCurrencies:[],foreignCurrencies:[],budgets:[],piggyBanks:[],subscriptions:[]},groupProperties:{transactionType:"unknown",title:null,id:null,totalAmount:0},notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},filters:{source:[],destination:[]},changedDateTime(e){console.warn("changedDateTime, event is not used")},changedDescription(e){console.warn("changedDescription, event is not used")},changedDestinationAccount(e){this.detectTransactionType()},changedSourceAccount(e){this.detectTransactionType()},detectTransactionType(){const e=this.entries[0].source_account.type??"unknown",t=this.entries[0].destination_account.type??"unknown";if(e==="unknown"&&t==="unknown"){this.groupProperties.transactionType="unknown",console.warn("Cannot infer transaction type from two unknown accounts.");return}if(e===t&&["Asset account","Loan","Debt","Mortgage"].includes(e)){this.groupProperties.transactionType="transfer",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),console.log("filter down currencies for transfer."),this.filterNativeCurrencies(this.entries[0].source_account.currency_code),this.filterForeignCurrencies(this.entries[0].destination_account.currency_code);return}if(e==="Asset account"&&["Expense account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="withdrawal",console.log('[a] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(e==="Asset account"&&t==="unknown"){this.groupProperties.transactionType="withdrawal",console.log('[b] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),console.log(this.entries[0].source_account),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(["Debt","Loan","Mortgage"].includes(e)&&t==="Expense account"){this.groupProperties.transactionType="withdrawal",console.log('[c] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(e==="Revenue account"&&["Asset account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}if(e==="unknown"&&["Asset account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}if(e==="Expense account"&&["Asset account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="deposit",console.warn('FORCE transaction type to be "'+this.groupProperties.transactionType+'".'),this.entries[0].source_account.id="";return}if(["Debt","Loan","Mortgage"].includes(e)&&t==="Asset account"){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}console.warn('Unknown account combination between "'+e+'" and "'+t+'".')},formattedTotalAmount(){return this.entries.length===0?d(this.groupProperties.totalAmount,"EUR"):d(this.groupProperties.totalAmount,this.entries[0].currency_code??"EUR")},filterForeignCurrencies(e){let t=[],s;for(let o in this.formData.enabledCurrencies)if(this.formData.enabledCurrencies.hasOwnProperty(o)){let i=this.formData.enabledCurrencies[o];i.code===e&&(s=i)}t.push(s),this.formData.foreignCurrencies=t,t.length===1&&t[0].code===this.entries[0].source_account.currency_code&&(console.log("Foreign currency is same as source currency. Disable foreign amount."),this.formBehaviour.foreignCurrencyEnabled=!1),t.length===1&&t[0].code!==this.entries[0].source_account.currency_code&&(console.log("Foreign currency is NOT same as source currency. Enable foreign amount."),this.formBehaviour.foreignCurrencyEnabled=!0);for(let o in this.entries)this.entries.hasOwnProperty(o)&&(this.entries[o].foreign_currency_code=e)},filterNativeCurrencies(e){let t=[],s;for(let o in this.formData.enabledCurrencies)if(this.formData.enabledCurrencies.hasOwnProperty(o)){let i=this.formData.enabledCurrencies[o];i.code===e&&(s=i)}t.push(s),this.formData.nativeCurrencies=t;for(let o in this.entries)this.entries.hasOwnProperty(o)&&(this.entries[o].currency_code=e)},changedAmount(e){const t=parseInt(e.target.dataset.index);this.entries[t].amount=parseFloat(e.target.value),this.groupProperties.totalAmount=0;for(let s in this.entries)this.entries.hasOwnProperty(s)&&(this.groupProperties.totalAmount=this.groupProperties.totalAmount+parseFloat(this.entries[s].amount))},addedSplit(){},processUpload(e){this.showMessageOrRedirectUser()},processUploadError(e){this.notifications.success.show=!1,this.notifications.wait.show=!1,this.notifications.error.show=!0,this.formStates.isSubmitting=!1,this.notifications.error.text=r.t("firefly.errors_upload"),console.error(e)},init(){this.addSplit(),v().then(e=>{this.formStates.loadingCurrencies=!1,this.formData.defaultCurrency=e.defaultCurrency,this.formData.enabledCurrencies=e.enabledCurrencies,this.formData.nativeCurrencies=e.nativeCurrencies,this.formData.foreignCurrencies=e.foreignCurrencies}),T().then(e=>{this.formData.budgets=e,this.formStates.loadingBudgets=!1}),C().then(e=>{this.formData.piggyBanks=e,this.formStates.loadingPiggyBanks=!1}),P().then(e=>{this.formData.subscriptions=e,this.formStates.loadingSubscriptions=!1}),document.addEventListener("upload-success",e=>{this.processUpload(e),document.querySelectorAll("input[type=file]").value=""}),document.addEventListener("upload-error",e=>{this.processUploadError(e)}),document.addEventListener("location-move",e=>{this.entries[e.detail.index].latitude=e.detail.latitude,this.entries[e.detail.index].longitude=e.detail.longitude}),document.addEventListener("location-set",e=>{this.entries[e.detail.index].hasLocation=!0,this.entries[e.detail.index].latitude=e.detail.latitude,this.entries[e.detail.index].longitude=e.detail.longitude,this.entries[e.detail.index].zoomLevel=e.detail.zoomLevel}),document.addEventListener("location-zoom",e=>{this.entries[e.detail.index].hasLocation=!0,this.entries[e.detail.index].zoomLevel=e.detail.zoomLevel}),this.filters.source=["Asset account","Loan","Debt","Mortgage","Revenue account"],this.filters.destination=["Expense account","Loan","Debt","Mortgage","Asset account"]},submitTransaction(){this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1;for(let o in this.entries)this.entries.hasOwnProperty(o)&&(this.entries[o].errors=w());this.formStates.isSubmitting=!0,this.detectTransactionType();let e=E(this.entries,null,this.groupProperties.transactionType),t={group_title:this.groupProperties.title,fire_webhooks:this.formStates.webhooksButton,apply_rules:this.formStates.rulesButton,transactions:e};this.groupProperties.title===null&&e.length>1&&(t.group_title=e[0].description);let s=new M;console.log(t),s.post(t).then(o=>{const i=o.data.data;if(this.groupProperties.id=parseInt(i.id),this.groupProperties.title=i.attributes.group_title??i.attributes.transactions[0].description,_(this.groupProperties.id,i.attributes.transactions)>0){this.notifications.wait.show=!0,this.notifications.wait.text=r.t("firefly.wait_attachments");return}this.showMessageOrRedirectUser()}).catch(o=>{this.submitting=!1,console.log(o),typeof o.response<"u"&&this.parseErrors(o.response.data)})},showMessageOrRedirectUser(){if(this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.returnHereButton){this.notifications.success.show=!0,this.notifications.success.url="transactions/show/"+this.groupProperties.id,this.notifications.success.text=r.t("firefly.stored_journal_js",{description:this.groupProperties.title}),this.formStates.resetButton&&(this.entries=[],this.addSplit(),this.groupProperties.totalAmount=0);return}window.location="transactions/show/"+this.groupProperties.id+"?transaction_group_id="+this.groupProperties.id+"&message=created"},parseErrors(e){this.notifications.error.show=!0,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.isSubmitting=!1,this.notifications.error.text=r.t("firefly.errors_submission_v2",{errorMessage:e.message}),e.hasOwnProperty("errors")&&(this.entries=L(e.errors,this.entries))},addSplit(){this.entries.push(b()),setTimeout(()=>{B.init("select.ac-tags",{allowClear:!0,server:a.tag,liveServer:!0,clearEnd:!0,allowNew:!0,notFoundMessage:r.t("firefly.nothing_found"),noCache:!0,fetchOptions:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}}});const e=this.entries.length-1;z(e);const t=function(s,o,i){return s.name_with_balance+'<br><small class="text-muted">'+r.t("firefly.account_type_"+s.type)+"</small>"};c({selector:"input.ac-source",serverUrl:a.account,onChange:S,onSelectItem:D,hiddenValue:this.entries[e].source_account.alpine_name}),c({selector:"input.ac-dest",serverUrl:a.account,filters:this.filters.destination,onRenderItem:t,onChange:A,onSelectItem:x}),c({selector:"input.ac-category",serverUrl:a.category,valueField:"id",labelField:"name",onChange:h,onSelectItem:h}),c({selector:"input.ac-description",serverUrl:a.description,valueField:"id",labelField:"description",onChange:p,onSelectItem:p})},150)},removeSplit(e){this.entries.splice(e,1),document.querySelector("#split-0-tab").click()},clearLocation(e){e.preventDefault();const t=e.currentTarget,s=parseInt(t.attributes["data-index"].value);this.entries[s].hasLocation=!1,this.entries[s].latitude=null,this.entries[s].longitude=null,this.entries[s].zoomLevel=null;const o=new CustomEvent("location-remove",{detail:{index:s}});return document.dispatchEvent(o),!1}}},g={transactions:I,dates:y};function f(){Object.keys(g).forEach(e=>{console.log(`Loading page component "${e}"`);let t=g[e]();Alpine.data(e,()=>t)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),f()});window.bootstrapped&&(console.log("Loaded through window variable."),f());
+import{a as m,d as y,f as d}from"./format-money-5a1aa122.js";import{d as w,c as b}from"./create-empty-split-70d17748.js";import{l as v,a as T,b as C,c as P,p as E,d as _,s as L,e as c,f as S,g as D,h as A,i as x,j as k,k as h,m as p}from"./splice-errors-into-transactions-5b51d5fd.js";import{l,i as r,m as B}from"./vendor-291d7a70.js";import"./get-316f0281.js";class M{post(t){let s="/api/v2/transactions";return m.post(s,t)}}let n=[],u=[];document.addEventListener("location-remove",e=>{u[e.detail.index].remove()});function O(e){let t=0;if(document.querySelector("#form")._x_dataStack[0].$data.entries[t].hasLocation===!1){u[t]=new l.marker(e.latlng,{draggable:!0}),u[t].on("dragend",U),u[t].addTo(n[t]);const o=new CustomEvent("location-set",{detail:{latitude:e.latlng.lat,longitude:e.latlng.lng,index:t,zoomLevel:n[t].getZoom()}});document.dispatchEvent(o)}}function F(e){let t=0;const s=new CustomEvent("location-zoom",{detail:{index:t,zoomLevel:n[t].getZoom()}});document.dispatchEvent(s)}function U(e){let t=e.target,s=t.getLatLng();t.setLatLng(new l.LatLng(s.lat,s.lng),{draggable:"true"});const o=new CustomEvent("location-move",{detail:{latitude:s.lat,longitude:s.lng,index:0}});document.dispatchEvent(o)}function z(e){if(e>0){console.warn("Corwardly refuse to add a map on split #"+(e+1));return}if(typeof n[e]>"u"){let t=document.getElementById("location_map");t&&(n[e]=l.map(t).setView([t.dataset.latitude,t.dataset.longitude],t.dataset.zoomLevel),l.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(n[e]),n[e].on("click",O),n[e].on("zoomend",F))}}const a=k();let I=function(){return{entries:[],formStates:{loadingCurrencies:!0,loadingBudgets:!0,loadingPiggyBanks:!0,loadingSubscriptions:!0,isSubmitting:!1,returnHereButton:!1,saveAsNewButton:!1,resetButton:!0,rulesButton:!0,webhooksButton:!0},formBehaviour:{formType:"create",foreignCurrencyEnabled:!0},formData:{defaultCurrency:null,enabledCurrencies:[],nativeCurrencies:[],foreignCurrencies:[],budgets:[],piggyBanks:[],subscriptions:[]},groupProperties:{transactionType:"unknown",title:null,id:null,totalAmount:0},notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},filters:{source:[],destination:[]},changedDateTime(e){console.warn("changedDateTime, event is not used")},changedDescription(e){console.warn("changedDescription, event is not used")},changedDestinationAccount(e){this.detectTransactionType()},changedSourceAccount(e){this.detectTransactionType()},detectTransactionType(){const e=this.entries[0].source_account.type??"unknown",t=this.entries[0].destination_account.type??"unknown";if(e==="unknown"&&t==="unknown"){this.groupProperties.transactionType="unknown",console.warn("Cannot infer transaction type from two unknown accounts.");return}if(e===t&&["Asset account","Loan","Debt","Mortgage"].includes(e)){this.groupProperties.transactionType="transfer",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),console.log("filter down currencies for transfer."),this.filterNativeCurrencies(this.entries[0].source_account.currency_code),this.filterForeignCurrencies(this.entries[0].destination_account.currency_code);return}if(e==="Asset account"&&["Expense account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="withdrawal",console.log('[a] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(e==="Asset account"&&t==="unknown"){this.groupProperties.transactionType="withdrawal",console.log('[b] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),console.log(this.entries[0].source_account),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(["Debt","Loan","Mortgage"].includes(e)&&t==="Expense account"){this.groupProperties.transactionType="withdrawal",console.log('[c] Transaction type is detected to be "'+this.groupProperties.transactionType+'".'),this.filterNativeCurrencies(this.entries[0].source_account.currency_code);return}if(e==="Revenue account"&&["Asset account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}if(e==="unknown"&&["Asset account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}if(e==="Expense account"&&["Asset account","Debt","Loan","Mortgage"].includes(t)){this.groupProperties.transactionType="deposit",console.warn('FORCE transaction type to be "'+this.groupProperties.transactionType+'".'),this.entries[0].source_account.id="";return}if(["Debt","Loan","Mortgage"].includes(e)&&t==="Asset account"){this.groupProperties.transactionType="deposit",console.log('Transaction type is detected to be "'+this.groupProperties.transactionType+'".');return}console.warn('Unknown account combination between "'+e+'" and "'+t+'".')},formattedTotalAmount(){return this.entries.length===0?d(this.groupProperties.totalAmount,"EUR"):d(this.groupProperties.totalAmount,this.entries[0].currency_code??"EUR")},filterForeignCurrencies(e){let t=[],s;for(let o in this.formData.enabledCurrencies)if(this.formData.enabledCurrencies.hasOwnProperty(o)){let i=this.formData.enabledCurrencies[o];i.code===e&&(s=i)}t.push(s),this.formData.foreignCurrencies=t,t.length===1&&t[0].code===this.entries[0].source_account.currency_code&&(console.log("Foreign currency is same as source currency. Disable foreign amount."),this.formBehaviour.foreignCurrencyEnabled=!1),t.length===1&&t[0].code!==this.entries[0].source_account.currency_code&&(console.log("Foreign currency is NOT same as source currency. Enable foreign amount."),this.formBehaviour.foreignCurrencyEnabled=!0);for(let o in this.entries)this.entries.hasOwnProperty(o)&&(this.entries[o].foreign_currency_code=e)},filterNativeCurrencies(e){let t=[],s;for(let o in this.formData.enabledCurrencies)if(this.formData.enabledCurrencies.hasOwnProperty(o)){let i=this.formData.enabledCurrencies[o];i.code===e&&(s=i)}t.push(s),this.formData.nativeCurrencies=t;for(let o in this.entries)this.entries.hasOwnProperty(o)&&(this.entries[o].currency_code=e)},changedAmount(e){const t=parseInt(e.target.dataset.index);this.entries[t].amount=parseFloat(e.target.value),this.groupProperties.totalAmount=0;for(let s in this.entries)this.entries.hasOwnProperty(s)&&(this.groupProperties.totalAmount=this.groupProperties.totalAmount+parseFloat(this.entries[s].amount))},addedSplit(){},processUpload(e){this.showMessageOrRedirectUser()},processUploadError(e){this.notifications.success.show=!1,this.notifications.wait.show=!1,this.notifications.error.show=!0,this.formStates.isSubmitting=!1,this.notifications.error.text=r.t("firefly.errors_upload"),console.error(e)},init(){this.addSplit(),v().then(e=>{this.formStates.loadingCurrencies=!1,this.formData.defaultCurrency=e.defaultCurrency,this.formData.enabledCurrencies=e.enabledCurrencies,this.formData.nativeCurrencies=e.nativeCurrencies,this.formData.foreignCurrencies=e.foreignCurrencies}),T().then(e=>{this.formData.budgets=e,this.formStates.loadingBudgets=!1}),C().then(e=>{this.formData.piggyBanks=e,this.formStates.loadingPiggyBanks=!1}),P().then(e=>{this.formData.subscriptions=e,this.formStates.loadingSubscriptions=!1}),document.addEventListener("upload-success",e=>{this.processUpload(e),document.querySelectorAll("input[type=file]").value=""}),document.addEventListener("upload-error",e=>{this.processUploadError(e)}),document.addEventListener("location-move",e=>{this.entries[e.detail.index].latitude=e.detail.latitude,this.entries[e.detail.index].longitude=e.detail.longitude}),document.addEventListener("location-set",e=>{this.entries[e.detail.index].hasLocation=!0,this.entries[e.detail.index].latitude=e.detail.latitude,this.entries[e.detail.index].longitude=e.detail.longitude,this.entries[e.detail.index].zoomLevel=e.detail.zoomLevel}),document.addEventListener("location-zoom",e=>{this.entries[e.detail.index].hasLocation=!0,this.entries[e.detail.index].zoomLevel=e.detail.zoomLevel}),this.filters.source=["Asset account","Loan","Debt","Mortgage","Revenue account"],this.filters.destination=["Expense account","Loan","Debt","Mortgage","Asset account"]},submitTransaction(){this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1;for(let o in this.entries)this.entries.hasOwnProperty(o)&&(this.entries[o].errors=w());this.formStates.isSubmitting=!0,this.detectTransactionType();let e=E(this.entries,null,this.groupProperties.transactionType),t={group_title:this.groupProperties.title,fire_webhooks:this.formStates.webhooksButton,apply_rules:this.formStates.rulesButton,transactions:e};this.groupProperties.title===null&&e.length>1&&(t.group_title=e[0].description);let s=new M;console.log(t),s.post(t).then(o=>{const i=o.data.data;if(this.groupProperties.id=parseInt(i.id),this.groupProperties.title=i.attributes.group_title??i.attributes.transactions[0].description,_(this.groupProperties.id,i.attributes.transactions)>0){this.notifications.wait.show=!0,this.notifications.wait.text=r.t("firefly.wait_attachments");return}this.showMessageOrRedirectUser()}).catch(o=>{this.submitting=!1,console.log(o),typeof o.response<"u"&&this.parseErrors(o.response.data)})},showMessageOrRedirectUser(){if(this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.returnHereButton){this.notifications.success.show=!0,this.notifications.success.url="transactions/show/"+this.groupProperties.id,this.notifications.success.text=r.t("firefly.stored_journal_js",{description:this.groupProperties.title}),this.formStates.resetButton&&(this.entries=[],this.addSplit(),this.groupProperties.totalAmount=0);return}window.location="transactions/show/"+this.groupProperties.id+"?transaction_group_id="+this.groupProperties.id+"&message=created"},parseErrors(e){this.notifications.error.show=!0,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.isSubmitting=!1,this.notifications.error.text=r.t("firefly.errors_submission_v2",{errorMessage:e.message}),e.hasOwnProperty("errors")&&(this.entries=L(e.errors,this.entries))},addSplit(){this.entries.push(b()),setTimeout(()=>{B.init("select.ac-tags",{allowClear:!0,server:a.tag,liveServer:!0,clearEnd:!0,allowNew:!0,notFoundMessage:r.t("firefly.nothing_found"),noCache:!0,fetchOptions:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}}});const e=this.entries.length-1;z(e);const t=function(s,o,i){return s.name_with_balance+'<br><small class="text-muted">'+r.t("firefly.account_type_"+s.type)+"</small>"};c({selector:"input.ac-source",serverUrl:a.account,onChange:S,onSelectItem:D,hiddenValue:this.entries[e].source_account.alpine_name}),c({selector:"input.ac-dest",serverUrl:a.account,filters:this.filters.destination,onRenderItem:t,onChange:A,onSelectItem:x}),c({selector:"input.ac-category",serverUrl:a.category,valueField:"id",labelField:"name",onChange:h,onSelectItem:h}),c({selector:"input.ac-description",serverUrl:a.description,valueField:"id",labelField:"description",onChange:p,onSelectItem:p})},150)},removeSplit(e){this.entries.splice(e,1),document.querySelector("#split-0-tab").click()},clearLocation(e){e.preventDefault();const t=e.currentTarget,s=parseInt(t.attributes["data-index"].value);this.entries[s].hasLocation=!1,this.entries[s].latitude=null,this.entries[s].longitude=null,this.entries[s].zoomLevel=null;const o=new CustomEvent("location-remove",{detail:{index:s}});return document.dispatchEvent(o),!1}}},g={transactions:I,dates:y};function f(){Object.keys(g).forEach(e=>{console.log(`Loading page component "${e}"`);let t=g[e]();Alpine.data(e,()=>t)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),f()});window.bootstrapped&&(console.log("Loaded through window variable."),f());
diff --git a/public/build/assets/create-empty-split-0cfec852.js b/public/build/assets/create-empty-split-70d17748.js
similarity index 93%
rename from public/build/assets/create-empty-split-0cfec852.js
rename to public/build/assets/create-empty-split-70d17748.js
index 6d80a89d86..0352cfede9 100644
--- a/public/build/assets/create-empty-split-0cfec852.js
+++ b/public/build/assets/create-empty-split-70d17748.js
@@ -1 +1 @@
-import{f as n}from"./vendor-0a0b4763.js";function e(){return{id:"",name:"",alpine_name:""}}function o(){return{description:[],amount:[],currency_code:[],foreign_amount:[],foreign_currency_code:[],source_account:[],destination_account:[],budget_id:[],category_name:[],piggy_bank_id:[],bill_id:[],tags:[],notes:[],internal_reference:[],external_url:[],latitude:[],longitude:[],zoom_level:[],date:[],interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[]}}function d(){let t=n(new Date,"yyyy-MM-dd HH:mm");return{description:"",amount:"",currency_code:"EUR",foreign_amount:"",foreign_currency_code:"",source_account:e(),destination_account:e(),budget_id:null,category_name:"",piggy_bank_id:null,bill_id:null,tags:[],notes:"",internal_reference:"",external_url:"",hasLocation:!1,latitude:null,longitude:null,zoomLevel:null,date:t,interest_date:"",book_date:"",process_date:"",due_date:"",payment_date:"",invoice_date:"",errors:o()}}export{d as c,o as d};
+import{f as n}from"./vendor-291d7a70.js";function e(){return{id:"",name:"",alpine_name:""}}function o(){return{description:[],amount:[],currency_code:[],foreign_amount:[],foreign_currency_code:[],source_account:[],destination_account:[],budget_id:[],category_name:[],piggy_bank_id:[],bill_id:[],tags:[],notes:[],internal_reference:[],external_url:[],latitude:[],longitude:[],zoom_level:[],date:[],interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[]}}function d(){let t=n(new Date,"yyyy-MM-dd HH:mm");return{description:"",amount:"",currency_code:"EUR",foreign_amount:"",foreign_currency_code:"",source_account:e(),destination_account:e(),budget_id:null,category_name:"",piggy_bank_id:null,bill_id:null,tags:[],notes:"",internal_reference:"",external_url:"",hasLocation:!1,latitude:null,longitude:null,zoomLevel:null,date:t,interest_date:"",book_date:"",process_date:"",due_date:"",payment_date:"",invoice_date:"",errors:o()}}export{d as c,o as d};
diff --git a/public/build/assets/dashboard-5dd24f6d.js b/public/build/assets/dashboard-39513f31.js
similarity index 98%
rename from public/build/assets/dashboard-5dd24f6d.js
rename to public/build/assets/dashboard-39513f31.js
index 6c1f1ec72e..f754215792 100644
--- a/public/build/assets/dashboard-5dd24f6d.js
+++ b/public/build/assets/dashboard-39513f31.js
@@ -1 +1 @@
-import{a as I,f,g as v,P as bt,d as wt}from"./format-money-db0e5105.js";import{f as p,C as m,a as S,i as g,S as vt,F as mt,L as Ct,b as kt,A as Pt,B as Dt,T as xt,P as Ot,c as Ft,d as St,p as Mt,e as At,g as Bt,h as jt,j as Wt,k as It}from"./vendor-0a0b4763.js";import{G as st}from"./get-f12826cc.js";import{G as $t}from"./get-04515a82.js";import{G as Vt,a as Kt}from"./get-d7bb5fb3.js";class Lt{get(e,n,a){return I.get("/api/v2/summary/basic",{params:{start:e,end:n,code:a}})}}function P(t,e,n){const a=p(e,"y-MM-dd")+"_"+p(n,"y-MM-dd")+"_"+t;return console.log("getCacheKey: "+a),String(a)}let U=!1;const Et=()=>({balanceBox:{amounts:[],subtitles:[]},billBox:{paid:[],unpaid:[]},leftBox:{left:[],perDay:[]},netBox:{net:[]},autoConversion:!1,loading:!1,boxData:null,boxOptions:null,getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-boxes-data",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){this.boxData=r,this.generateOptions(this.boxData);return}new Lt().get(p(t,"yyyy-MM-dd"),p(e,"yyyy-MM-dd"),null).then(i=>{this.boxData=i.data,window.store.set(n,i.data),this.generateOptions(this.boxData)})},generateOptions(t){this.balanceBox={amounts:[],subtitles:[]},this.billBox={paid:[],unpaid:[]},this.leftBox={left:[],perDay:[]},this.netBox={net:[]};let e={};for(const n in t)if(t.hasOwnProperty(n)){const a=t[n];if(!a.hasOwnProperty("key"))continue;let r=a.key;if(this.autoConversion){if(r.startsWith("balance-in-native")){this.balanceBox.amounts.push(f(a.value,a.currency_code)),e.hasOwnProperty(a.currency_code)||(e[a.currency_code]="");continue}if(r.startsWith("spent-in-native")){e.hasOwnProperty(a.currency_code)||(e[a.currency_code]=""),e[a.currency_code]=e[a.currency_code]+f(a.value,a.currency_code);continue}if(r.startsWith("earned-in-native")){e.hasOwnProperty(a.currency_code)||(e[a.currency_code]=""),e[a.currency_code]=f(a.value,a.currency_code)+" + "+e[a.currency_code];continue}if(r.startsWith("bills-unpaid-in-native")){this.billBox.unpaid.push(f(a.value,a.currency_code));continue}if(r.startsWith("bills-paid-in-native")){this.billBox.paid.push(f(a.value,a.currency_code));continue}if(r.startsWith("left-to-spend-in-native")){this.leftBox.left.push(f(a.value,a.currency_code));continue}if(r.startsWith("left-per-day-to-spend-in-native")){this.leftBox.perDay.push(f(a.value,a.currency_code));continue}if(r.startsWith("net-worth-in-native")){this.netBox.net.push(f(a.value,a.currency_code));continue}}if(!this.autoConversion&&!r.endsWith("native")){if(r.startsWith("balance-in-")){this.balanceBox.amounts.push(f(a.value,a.currency_code));continue}if(r.startsWith("spent-in-")){e.hasOwnProperty(a.currency_code)||(e[a.currency_code]=""),e[a.currency_code]=e[a.currency_code]+f(a.value,a.currency_code);continue}if(r.startsWith("earned-in-")){e.hasOwnProperty(a.currency_code)||(e[a.currency_code]=""),e[a.currency_code]=f(a.value,a.currency_code)+" + "+e[a.currency_code];continue}if(r.startsWith("bills-unpaid-in-")){this.billBox.unpaid.push(f(a.value,a.currency_code));continue}if(r.startsWith("bills-paid-in-")){this.billBox.paid.push(f(a.value,a.currency_code));continue}if(r.startsWith("left-to-spend-in-")){this.leftBox.left.push(f(a.value,a.currency_code));continue}if(r.startsWith("left-per-day-to-spend-in-")){this.leftBox.perDay.push(f(a.value,a.currency_code));continue}r.startsWith("net-worth-in-")&&this.netBox.net.push(f(a.value,a.currency_code))}}for(let n in e)e.hasOwnProperty(n)&&this.balanceBox.subtitles.push(e[n]);this.loading=!1},loadBoxes(){if(this.loading!==!0){if(this.loading=!0,this.boxData===null){this.getFreshData();return}this.generateOptions(this.boxData),this.loading=!1}},init(){Promise.all([v("viewRange"),v("autoConversion",!1)]).then(t=>{U=!0,this.autoConversion=t[1],this.loadBoxes()}),window.store.observe("end",()=>{U&&(this.boxData=null,this.loadBoxes())}),window.store.observe("autoConversion",t=>{U&&(this.autoConversion=t,this.loadBoxes())})}});class Gt{put(e,n){let a="/api/v1/preferences/"+e;return I.put(a,{data:n})}}function Tt(t,e=null){window.store.set(t,e),new Gt().put(t,e).then(a=>{}).catch(()=>{new bt().post(t,e).then(r=>{})})}let Rt=class{dashboard(e,n){let a=p(e,"y-MM-dd"),r=p(n,"y-MM-dd");return I.get("/api/v2/chart/account/dashboard",{params:{start:a,end:r}})}expense(e,n){let a=p(e,"y-MM-dd"),r=p(n,"y-MM-dd");return I.get("/api/v2/chart/account/expense-dashboard",{params:{start:a,end:r}})}};function N(t){return t==="sankey"?{type:"sankey",data:{datasets:[]},options:{animations:!1}}:t==="pie"?{type:"pie",data:{datasets:[]}}:t==="column"?{type:"bar",data:{labels:[],datasets:[]},options:{plugins:{tooltip:{callbacks:{label:function(e){let n=e.dataset.currency_code;return f(e.raw,n)}}}},maintainAspectRatio:!1,scales:{}}}:t==="line"?{options:{plugins:{tooltip:{callbacks:{label:function(e){let n=e.dataset.currency_code;return f(e.raw,n)}}}},maintainAspectRatio:!1,scales:{x:{type:"time",time:{tooltipFormat:"PP"}}}},type:"line",data:{labels:[],datasets:[]}}:{}}let q=new m("#36a2eb"),W=new m("#ff6384"),G=new m("#4bc0c0"),ft=new m("#ff9f40"),qt=new m("#9966ff"),Nt=new m("#ffcd56"),Yt=new m("#c9cbcf"),lt=0;window.theme==="dark"&&(W.darken(.3).desaturate(.3),G.darken(.3).desaturate(.3),q.darken(.3).desaturate(.3),ft.darken(.3).desaturate(.3));let z=[W,ft,q,G,qt,Nt,Yt,G];function B(t,e){let n={borderColor:W.rgbString(),backgroundColor:W.rgbString()},a;switch(t){default:let o=Math.floor(lt/2)%z.length;a=new m(z[o].rgbString()),a.lighten(.38),n={borderColor:z[o].hexString(),backgroundColor:a.hexString()};break;case"spent":a=new m(q.rgbString()),a.lighten(.38),n={borderColor:q.rgbString(),backgroundColor:a.rgbString()};break;case"left":a=new m(G.rgbString()),a.lighten(.38),n={borderColor:G.rgbString(),backgroundColor:a.rgbString()};break;case"overspent":a=new m(W.rgbString()),a.lighten(.22),n={borderColor:W.rgbString(),backgroundColor:a.rgbString()};break}return lt++,e==="border"?n.borderColor:e==="background"?n.backgroundColor:"#FF0000"}let M=[],$=null,H=null,J=!1;const Ut=()=>({loading:!1,loadingAccounts:!1,accountList:[],autoConversion:!1,chartOptions:null,switchAutoConversion(){this.autoConversion=!this.autoConversion,Tt("autoConversion",this.autoConversion)},getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-accounts-chart",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){console.log(r),this.drawChart(this.generateOptions(r)),this.loading=!1;return}new Rt().dashboard(t,e,null).then(i=>{this.chartData=i.data,window.store.set(n,i.data),console.log(i.data),this.drawChart(this.generateOptions(this.chartData)),this.loading=!1})},generateOptions(t){M=[];let e=N("line");for(let n=0;n<t.length;n++)if(t.hasOwnProperty(n)){let a="y",r=t[n],o={},i=[];n===0&&(e.data.labels=Object.keys(r.entries)),o.label=r.label,this.autoConversion&&(M.push(r.native_currency_code),o.currency_code=r.native_currency_code,i=Object.values(r.native_entries),a="y"+r.native_currency_code),this.autoConversion||(a="y"+r.currency_code,o.currency_code=r.currency_code,M.push(r.currency_code),i=Object.values(r.entries)),o.yAxisID=a,o.data=i,e.data.datasets.push(o)}for(let n in M)if(M.hasOwnProperty(n)){let a="y"+M[n];e.options.scales.hasOwnProperty(a)||(e.options.scales[a]={id:n,type:"linear",position:parseInt(n)===1?"right":"left",ticks:{callback:function(r,o,i){return f(r,M[n])}}})}return e},loadChart(){if(this.loading!==!0){if(this.loading=!0,H===null){this.getFreshData();return}this.drawChart(this.generateOptions(H)),this.loading=!1}},drawChart(t){if($!==null){$.options=t.options,$.data=t.data,$.update();return}$=new S(document.querySelector("#account-chart"),t)},loadAccounts(){if(this.loadingAccounts===!0)return;if(this.loadingAccounts=!0,this.accountList.length>0){this.loadingAccounts=!1;return}const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-accounts-data",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){this.accountList=r,this.loadingAccounts=!1;return}const o=10;let i=0,l=0,u=[];Promise.all([v("frontpageAccounts")]).then(d=>{i=d[0].length;for(let h in d[0]){let c=d[0];if(c.hasOwnProperty(h)){let _=c[h];new st().show(_,new Date(window.store.get("end"))).then(w=>{let C=w.data.data;const yt={page:1,start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))};new st().transactions(C.id,yt).then(at=>{let nt=[];for(let A=0;A<at.data.data.length&&!(A>=o);A++){let O=at.data.data[A],rt={title:O.attributes.group_title===null?"":O.attributes.group_title,id:O.id,transactions:[]};for(let Y=0;Y<O.attributes.transactions.length;Y++){let k=O.attributes.transactions[Y];const ot=k.type==="withdrawal"?parseFloat(k.native_amount)*-1:parseFloat(k.native_amount),it=k.type==="withdrawal"?parseFloat(k.amount)*-1:parseFloat(k.amount);rt.transactions.push({description:k.description,id:O.id,type:k.type,amount_raw:it,amount:f(it,k.currency_code),native_amount_raw:ot,native_amount:f(ot,k.native_currency_code)})}nt.push(rt)}u.push({name:C.attributes.name,order:C.attributes.order,id:C.id,balance_raw:parseFloat(C.attributes.current_balance),balance:f(C.attributes.current_balance,C.attributes.currency_code),native_balance_raw:parseFloat(C.attributes.native_current_balance),native_balance:f(C.attributes.native_current_balance,C.attributes.native_currency_code),groups:nt}),l++,l===i&&(u.sort((A,O)=>A.order-O.order),this.accountList=u,this.loadingAccounts=!1,window.store.set(n,u))})})}}})},init(){Promise.all([v("viewRange","1M"),v("autoConversion",!1),v("language","en_US")]).then(t=>{this.autoConversion=t[1],J=!0,this.loadChart(),this.loadAccounts()}),window.store.observe("end",()=>{J&&(H=null,this.accountList=[],this.loadChart(),this.loadAccounts())}),window.store.observe("autoConversion",()=>{J&&(this.loadChart(),this.loadAccounts())})}});let zt=class{dashboard(e,n){let a=p(e,"y-MM-dd"),r=p(n,"y-MM-dd");return I.get("/api/v2/chart/budget/dashboard",{params:{start:a,end:r}})}},V=[],T=null,F=null,Z=!1;const Ht=()=>({loading:!1,autoConversion:!1,loadChart(){if(this.loading!==!0){if(this.loading=!0,F!==null){this.drawChart(this.generateOptions(F)),this.loading=!1;return}this.getFreshData()}},drawChart(t){if(T!==null){T.data.datasets=t.data.datasets,T.update();return}T=new S(document.querySelector("#budget-chart"),t)},getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-budgets-chart",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){F=r,this.drawChart(this.generateOptions(F)),this.loading=!1;return}new zt().dashboard(t,e,null).then(i=>{F=i.data,this.drawChart(this.generateOptions(F)),window.store.set(n,F),this.loading=!1})},generateOptions(t){V=[];let e=N("column");e.options.locale=window.store.get("locale").replace("_","-"),e.options.plugins={tooltip:{callbacks:{title:function(n){return n.label},label:function(n){let a=n.dataset.label||"";return a&&(a+=": "),a+" "+f(n.parsed.y,V[n.parsed.x]??"EUR")}}}},e.data={labels:[],datasets:[{label:g.t("firefly.spent"),data:[],borderWidth:1,stack:1,backgroundColor:B("spent","background"),borderColor:B("spent","border")},{label:g.t("firefly.left"),data:[],borderWidth:1,stack:1,backgroundColor:B("left","background"),borderColor:B("left","border")},{label:g.t("firefly.overspent"),data:[],borderWidth:1,stack:1,backgroundColor:B("overspent","background"),borderColor:B("overspent","border")}]};for(const n in t)if(t.hasOwnProperty(n)){let a=t[n],r=a.label+" ("+a.currency_code+")";e.data.labels.push(r),this.autoConversion&&(V.push(a.native_currency_code),e.data.datasets[0].data.push(parseFloat(a.native_entries.spent)*-1),e.data.datasets[1].data.push(parseFloat(a.native_entries.left)),e.data.datasets[2].data.push(parseFloat(a.native_entries.overspent))),this.autoConversion||(V.push(a.currency_code),e.data.datasets[0].data.push(parseFloat(a.entries.spent)*-1),e.data.datasets[1].data.push(parseFloat(a.entries.left)),e.data.datasets[2].data.push(parseFloat(a.entries.overspent)))}return e.options.scales={y:{ticks:{callback:function(n){return f(n,V[0]??"EUR")}}}},e},init(){Promise.all([v("autoConversion",!1)]).then(t=>{this.autoConversion=t[0],Z=!0,this.loading===!1&&this.loadChart()}),window.store.observe("end",()=>{Z&&this.loading===!1&&(F=null,this.loadChart())}),window.store.observe("autoConversion",t=>{Z&&(this.autoConversion=t,this.loading===!1&&this.loadChart())})}});class Jt{dashboard(e,n){let a=p(e,"y-MM-dd"),r=p(n,"y-MM-dd");return I.get("/api/v2/chart/category/dashboard",{params:{start:a,end:r}})}}let ut=[],K=null,j=null,Q=!1;const Zt=()=>({loading:!1,autoConversion:!1,generateOptions(t){ut=[];let e=N("column"),n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o.currency_code;this.autoConversion&&(i=o.native_currency_code),n.hasOwnProperty(i)||(n[i]={name:i,yAxisID:"",data:{}},ut.push(i))}for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o.currency_code;this.autoConversion&&(i=o.native_currency_code);for(const l in n)if(n.hasOwnProperty(l)){let u=0;i===l&&(u=parseFloat(o.amount),""+o.currency_code,this.autoConversion&&(u=parseFloat(o.native_amount),""+o.native_currency_code)),n[l].data.hasOwnProperty(o.label)&&(n[l].data[o.label]=n[l].data[o.label]+u),n[l].data.hasOwnProperty(o.label)||(n[l].data[o.label]=u)}e.data.labels.includes(o.label)||e.data.labels.push(o.label)}let a=0;for(const r in n){let o="y"+r,i={label:r,currency_code:r,yAxisID:o,data:[]};for(const l in n[r].data)i.data.push(n[r].data[l]);e.data.datasets.push(i),e.options.scales.hasOwnProperty(o)||(e.options.scales[o]={beginAtZero:!0,type:"linear",position:a===1?"right":"left",ticks:{callback:function(l,u,d){return f(l,r)}}},a++)}return e},drawChart(t){if(K!==null){K.options=t.options,K.data=t.data,K.update();return}K=new S(document.querySelector("#category-chart"),t)},getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-categories-chart",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){j=r,this.drawChart(this.generateOptions(j)),this.loading=!1;return}new Jt().dashboard(t,e,null).then(i=>{j=i.data,this.drawChart(this.generateOptions(i.data)),window.store.set(n,j),this.loading=!1})},loadChart(){if(this.loading!==!0){if(this.loading=!0,j!==null){this.drawChart(this.generateOptions(j)),this.loading=!1;return}this.getFreshData()}},init(){Promise.all([v("autoConversion",!1)]).then(t=>{this.autoConversion=t[0],Q=!0,this.loadChart()}),window.store.observe("end",()=>{Q&&(this.chartData=null,this.loadChart())}),window.store.observe("autoConversion",t=>{Q&&(this.autoConversion=t,this.loadChart())})}});S.register({SankeyController:vt,Flow:mt});const ct="dashboard-sankey-data";let X=!1,R=null,D=[],y=!1,s={category:null,unknown_category:null,in:null,out:null,unknown_source:null,unknown_dest:null,unknown_account:null,expense_account:null,revenue_account:null,budget:null,unknown_budget:null,all_money:null};const dt=function(t){return t.includes(s.revenue_account)?"forestgreen":t.includes("("+s.in+",")?"green":t.includes(s.budget)||t.includes(s.unknown_budget)?"Orchid":t.includes("("+s.out+",")?"MediumOrchid":t.includes(s.all_money)?"blue":"red"};function L(t,e,n,a){if(t==="category"&&e!==null&&n==="in")return s.category+' "'+e+'" ('+s.in+(y?", "+a+")":")");if(t==="category"&&e===null&&n==="in")return s.unknown_category+" ("+s.in+(y?", "+a+")":")");if(t==="category"&&e!==null&&n==="out")return s.category+' "'+e+'" ('+s.out+(y?", "+a+")":")");if(t==="category"&&e===null&&n==="out")return s.unknown_category+" ("+s.out+(y?", "+a+")":")");if(t==="account"&&e===null&&n==="in")return s.unknown_source+(y?" ("+a+")":"");if(t==="account"&&e!==null&&n==="in")return s.revenue_account+'"'+e+'"'+(y?" ("+a+")":"");if(t==="account"&&e===null&&n==="out")return s.unknown_dest+(y?" ("+a+")":"");if(t==="account"&&e!==null&&n==="out")return s.expense_account+' "'+e+'"'+(y?" ("+a+")":"");if(t==="budget"&&e!==null)return s.budget+' "'+e+'"'+(y?" ("+a+")":"");if(t==="budget"&&e===null)return s.unknown_budget+(y?" ("+a+")":"");console.error('Cannot handle: type:"'+t+'", dir: "'+n+'"')}function E(t,e,n){if(t==="category"&&e!==null)return s.category+' "'+e+'"'+(y?" ("+n+")":"");if(t==="category"&&e===null)return s.unknown_category+(y?" ("+n+")":"");if(t==="account"&&e===null)return s.unknown_account+(y?" ("+n+")":"");if(t==="account"&&e!==null)return e+(y?" ("+n+")":"");if(t==="budget"&&e!==null)return s.budget+' "'+e+'"'+(y?" ("+n+")":"");if(t==="budget"&&e===null)return s.unknown_budget+(y?" ("+n+")":"");console.error('Cannot handle: type:"'+t+'"')}const Qt=()=>({loading:!1,autoConversion:!1,generateOptions(){let t=N("sankey"),e={},n={};for(let r in D)if(D.hasOwnProperty(r)){let o=D[r];for(let i in o.attributes.transactions)if(o.attributes.transactions.hasOwnProperty(i)){let l=o.attributes.transactions[i],u=this.autoConversion?l.native_currency_code:l.currency_code,d=this.autoConversion?parseFloat(l.native_amount):parseFloat(l.amount),h;if(l.type==="deposit"){let c=L("category",l.category_name,"in",u),_=L("account",l.source_name,"in",u);n[c]=E("category",l.category_name,u),n[_]=E("account",l.source_name,u),h=_+"-"+c+"-"+u,e.hasOwnProperty(h)||(e[h]={from:_,to:c,amount:0}),e[h].amount+=d,h=c+"-"+s.all_money+"-"+u,e.hasOwnProperty(h)||(e[h]={from:c,to:s.all_money+(this.autoConversion?" ("+u+")":""),amount:0}),e[h].amount+=d}if(l.type==="withdrawal"){let c=L("budget",l.budget_name,"out",u);n[c]=E("budget",l.budget_name,u),h=s.all_money+"-"+c+"-"+u,e.hasOwnProperty(h)||(e[h]={from:s.all_money+(this.autoConversion?" ("+u+")":""),to:c,amount:0}),e[h].amount+=d;let _=L("category",l.category_name,"out",u);n[_]=E("category",l.category_name,u),h=c+"-"+_+"-"+u,e.hasOwnProperty(h)||(e[h]={from:c,to:_,amount:0}),e[h].amount+=d;let w=L("account",l.destination_name,"out",u);n[w]=E("account",l.destination_name,u),h=_+"-"+w+"-"+u,e.hasOwnProperty(h)||(e[h]={from:_,to:w,amount:0}),e[h].amount+=d}}}let a={label:"Firefly III dashboard sankey chart",data:[],colorFrom:r=>dt(r.dataset.data[r.dataIndex]?r.dataset.data[r.dataIndex].from:""),colorTo:r=>dt(r.dataset.data[r.dataIndex]?r.dataset.data[r.dataIndex].to:""),colorMode:"gradient",labels:n,size:"min"};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r];a.data.push({from:o.from,to:o.to,flow:o.amount})}return t.data.datasets.push(a),t},drawChart(t){if(R!==null){R.data.datasets=t.data.datasets,R.update();return}R=new S(document.querySelector("#sankey-chart"),t)},getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P(ct,t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){D=r,this.drawChart(this.generateOptions()),this.loading=!1;return}let o={start:p(t,"y-MM-dd"),end:p(e,"y-MM-dd"),type:"withdrawal,deposit",page:1};this.downloadTransactions(o)},downloadTransactions(t){const e=new Date(window.store.get("start")),n=new Date(window.store.get("end")),a=P(ct,e,n);new $t().list(t).then(o=>{if(D=[...D,...o.data.data],parseInt(o.data.meta.pagination.total_pages)>t.page){t.page++,this.downloadTransactions(t);return}window.store.set(a,D),this.drawChart(this.generateOptions()),this.loading=!1})},loadChart(){if(this.loading!==!0){if(this.loading=!0,D.length!==0){this.drawChart(this.generateOptions()),this.loading=!1;return}this.getFreshData()}},init(){D=[],Promise.all([v("autoConversion",!1)]).then(t=>{this.autoConversion=t[0],y=t[0],s.all_money=g.t("firefly.all_money"),s.category=g.t("firefly.category"),s.in=g.t("firefly.money_flowing_in"),s.out=g.t("firefly.money_flowing_out"),s.unknown_category=g.t("firefly.unknown_category_plain"),s.unknown_source=g.t("firefly.unknown_source_plain"),s.unknown_dest=g.t("firefly.unknown_dest_plain"),s.unknown_account=g.t("firefly.unknown_any_plain"),s.unknown_budget=g.t("firefly.unknown_budget_plain"),s.expense_account=g.t("firefly.expense_account"),s.revenue_account=g.t("firefly.revenue_account"),s.budget=g.t("firefly.budget"),X=!0,this.loadChart()}),window.store.observe("end",()=>{X&&(this.transactions=[],this.loadChart())}),window.store.observe("autoConversion",t=>{X&&(this.autoConversion=t,this.loadChart())})}});let tt=!1,b={};function gt(t){return new Vt().list(t).then(n=>{let a=n.data.data;for(let r in a)if(a.hasOwnProperty(r)){let o=a[r];if(o.attributes.active&&o.attributes.pay_dates.length>0){let i=o.attributes.object_group_id===null?0:o.attributes.object_group_id,l=o.attributes.object_group_title===null?g.t("firefly.default_group_title_name_plain"):o.attributes.object_group_title,u=o.attributes.object_group_order===null?0:o.attributes.object_group_order;b.hasOwnProperty(i)||(b[i]={id:i,title:l,order:u,payment_info:{},bills:[]});let d={id:o.id,name:o.attributes.name,amount_min:o.attributes.amount_min,amount_max:o.attributes.amount_max,amount:(parseFloat(o.attributes.amount_max)+parseFloat(o.attributes.amount_min))/2,currency_code:o.attributes.currency_code,native_amount_min:o.attributes.native_amount_min,native_amount_max:o.attributes.native_amount_max,native_amount:(parseFloat(o.attributes.native_amount_max)+parseFloat(o.attributes.native_amount_min))/2,native_currency_code:o.attributes.native_currency_code,transactions:[],pay_dates:o.attributes.pay_dates,paid:o.attributes.paid_dates.length>0};d.expected_amount=t.autoConversion?f(d.native_amount,d.native_currency_code):f(d.amount,d.currency_code),d.expected_times=g.t("firefly.subscr_expected_x_times",{times:o.attributes.pay_dates.length,amount:d.expected_amount});for(let h in o.attributes.paid_dates)if(o.attributes.paid_dates.hasOwnProperty(h)){const c=o.attributes.paid_dates[h];let _=100;t.autoConversion&&(_=Math.round(-100+parseFloat(c.native_amount)*-1/parseFloat(d.native_amount)*100)),t.autoConversion||(_=Math.round(-100+parseFloat(c.amount)*-1/parseFloat(d.amount)*100));let w={amount:t.autoConversion?f(c.native_amount,c.native_currency_code):f(c.amount,c.currency_code),percentage:_,date:p(new Date(c.date),"PP"),foreign_amount:null};c.foreign_currency_code!==null&&(w.foreign_amount=t.autoConversion?c.foreign_native_amount:c.foreign_amount,w.foreign_currency_code=t.autoConversion?c.native_currency_code:c.foreign_currency_code),d.transactions.push(w)}if(b[i].bills.push(d),o.attributes.paid_dates.length===0){const h=o.attributes.pay_dates.length*d.amount,c=o.attributes.pay_dates.length*d.native_amount;b[i].payment_info.hasOwnProperty(d.currency_code)||(b[i].payment_info[d.currency_code]={currency_code:d.currency_code,paid:0,unpaid:0,native_currency_code:d.native_currency_code,native_paid:0,native_unpaid:0}),b[i].payment_info[d.currency_code].unpaid+=h,b[i].payment_info[d.currency_code].native_unpaid+=c}if(o.attributes.paid_dates.length>0){for(let h in o.attributes.paid_dates)if(o.attributes.paid_dates.hasOwnProperty(h)){let c=o.attributes.paid_dates[h];b[i].payment_info.hasOwnProperty(c.currency_code)||(b[i].payment_info[c.currency_code]={currency_code:d.currency_code,paid:0,unpaid:0,native_currency_code:d.native_currency_code,native_paid:0,native_unpaid:0});const _=parseFloat(c.amount)*-1,w=parseFloat(c.native_amount)*-1;b[i].payment_info[c.currency_code].paid+=_,b[i].payment_info[c.currency_code].native_paid+=w}}}}return parseInt(n.data.meta.pagination.total_pages)>t.page?(t.page++,gt(t)):Promise.resolve()})}const Xt=()=>({loading:!1,autoConversion:!1,subscriptions:[],startSubscriptions(){this.loading=!0;let t=new Date(window.store.get("start")),e=new Date(window.store.get("end"));const n=window.store.get("cacheValid");let a=window.store.get(P("subscriptions-data-dashboard",t,e));n&&typeof a<"u",b={},this.subscriptions=[];let r={start:p(t,"y-MM-dd"),end:p(e,"y-MM-dd"),autoConversion:this.autoConversion,page:1};gt(r).then(()=>{let o=Object.values(b);for(let i in o)if(o.hasOwnProperty(i)){let l=o[i];const u=Object.keys(l.payment_info);l.col_size=u.length===1?"col-6 offset-3":"col-6",l.chart_width=u.length===1?"50%":"100%",l.payment_length=u.length,this.subscriptions.push(l)}this.loading=!1})},drawPieChart(t,e,n){let a="#pie_"+t+"_"+n.currency_code;const r=this.autoConversion?n.native_unpaid:n.unpaid,o=this.autoConversion?n.native_paid:n.paid,i=this.autoConversion?n.native_currency_code:n.currency_code,u={type:"doughnut",data:{labels:[g.t("firefly.paid"),g.t("firefly.unpaid")],datasets:[{label:g.t("firefly.subscriptions_in_group",{title:e}),data:[o,r],backgroundColor:["rgb(54, 162, 235)","rgb(255, 99, 132)"],hoverOffset:4}]},options:{plugins:{tooltip:{callbacks:{label:function(h){return h.dataset.label+": "+f(h.raw,i)}}}}}};var d=S.getChart(document.querySelector(a));typeof d<"u"&&d.destroy(),new S(document.querySelector(a),u)},init(){Promise.all([v("autoConversion",!1)]).then(t=>{this.autoConversion=t[0],tt=!0,this.loading===!1&&this.startSubscriptions()}),window.store.observe("end",()=>{tt&&this.loading===!1&&this.startSubscriptions()}),window.store.observe("autoConversion",t=>{tt&&(this.autoConversion=t,this.loading===!1&&this.startSubscriptions())})}});let x={},et=!1;const ht="dashboard-piggies-data",te=()=>({loading:!1,autoConversion:!1,sankeyGrouping:"account",piggies:[],getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P(ht,t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){x=r,this.parsePiggies(),this.loading=!1;return}let o={start:p(t,"y-MM-dd"),end:p(e,"y-MM-dd"),page:1};this.downloadPiggyBanks(o)},downloadPiggyBanks(t){const e=new Date(window.store.get("start")),n=new Date(window.store.get("end")),a=P(ht,e,n);new Kt().list(t).then(o=>{if(x=[...x,...o.data.data],parseInt(o.data.meta.pagination.total_pages)>t.page){t.page++,this.downloadPiggyBanks(t);return}window.store.set(a,x),this.parsePiggies(),this.loading=!1})},parsePiggies(){let t=[];for(let e in x)if(x.hasOwnProperty(e)){let n=x[e];if(n.attributes.percentage>=100||n.attributes.percentage===0)continue;let a=n.object_group_title??g.t("firefly.default_group_title_name_plain");t.hasOwnProperty(a)||(t[a]={id:n.object_group_id??0,title:a,order:n.object_group_order??0,piggies:[]});let r={id:n.id,name:n.attributes.name,percentage:parseInt(n.attributes.percentage),amount:this.autoConversion?n.attributes.native_current_amount:n.attributes.current_amount,left_to_save:this.autoConversion?n.attributes.native_left_to_save:n.attributes.left_to_save,target_amount:this.autoConversion?n.attributes.native_target_amount:n.attributes.target_amount,save_per_month:this.autoConversion?n.attributes.native_save_per_month:n.attributes.save_per_month,currency_code:this.autoConversion?n.attributes.native_currency_code:n.attributes.currency_code};t[a].piggies.push(r)}this.piggies=Object.values(t)},loadPiggyBanks(){if(this.loading!==!0){if(this.loading=!0,this.piggies.length!==0){this.parsePiggies(),this.loading=!1;return}this.getFreshData()}},init(){x=[],Promise.all([v("autoConversion",!1)]).then(t=>{et=!0,this.autoConversion=t[0],this.loadPiggyBanks()}),window.store.observe("end",()=>{et&&(x=[],this.loadPiggyBanks())}),window.store.observe("autoConversion",t=>{et&&(this.autoConversion=t,this.loadPiggyBanks())})}});S.register({LineController:Ct,LineElement:kt,ArcElement:Pt,BarController:Dt,TimeScale:xt,PieController:Ot,BarElement:Ft,Filler:St,Colors:Mt,LinearScale:At,CategoryScale:Bt,PointElement:jt,Tooltip:Wt,Legend:It});const pt={dates:wt,boxes:Et,accounts:Ut,budgets:Ht,categories:Zt,sankey:Qt,subscriptions:Xt,piggies:te};function _t(t){Object.keys(t).forEach(e=>{let n=t[e]();Alpine.data(e,()=>n)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),_t(pt)});window.bootstrapped&&(console.log("Loaded through window variable."),_t(pt));
+import{a as I,f,g as v,P as bt,d as wt}from"./format-money-5a1aa122.js";import{f as p,C as m,a as S,i as g,S as vt,F as mt,L as Ct,b as kt,A as Pt,B as Dt,T as xt,P as Ot,c as Ft,d as St,p as Mt,e as At,g as Bt,h as jt,j as Wt,k as It}from"./vendor-291d7a70.js";import{G as st}from"./get-2d864c96.js";import{G as $t}from"./get-a398221d.js";import{G as Vt,a as Kt}from"./get-316f0281.js";class Lt{get(e,n,a){return I.get("/api/v2/summary/basic",{params:{start:e,end:n,code:a}})}}function P(t,e,n){const a=p(e,"y-MM-dd")+"_"+p(n,"y-MM-dd")+"_"+t;return console.log("getCacheKey: "+a),String(a)}let U=!1;const Et=()=>({balanceBox:{amounts:[],subtitles:[]},billBox:{paid:[],unpaid:[]},leftBox:{left:[],perDay:[]},netBox:{net:[]},autoConversion:!1,loading:!1,boxData:null,boxOptions:null,getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-boxes-data",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){this.boxData=r,this.generateOptions(this.boxData);return}new Lt().get(p(t,"yyyy-MM-dd"),p(e,"yyyy-MM-dd"),null).then(i=>{this.boxData=i.data,window.store.set(n,i.data),this.generateOptions(this.boxData)})},generateOptions(t){this.balanceBox={amounts:[],subtitles:[]},this.billBox={paid:[],unpaid:[]},this.leftBox={left:[],perDay:[]},this.netBox={net:[]};let e={};for(const n in t)if(t.hasOwnProperty(n)){const a=t[n];if(!a.hasOwnProperty("key"))continue;let r=a.key;if(this.autoConversion){if(r.startsWith("balance-in-native")){this.balanceBox.amounts.push(f(a.value,a.currency_code)),e.hasOwnProperty(a.currency_code)||(e[a.currency_code]="");continue}if(r.startsWith("spent-in-native")){e.hasOwnProperty(a.currency_code)||(e[a.currency_code]=""),e[a.currency_code]=e[a.currency_code]+f(a.value,a.currency_code);continue}if(r.startsWith("earned-in-native")){e.hasOwnProperty(a.currency_code)||(e[a.currency_code]=""),e[a.currency_code]=f(a.value,a.currency_code)+" + "+e[a.currency_code];continue}if(r.startsWith("bills-unpaid-in-native")){this.billBox.unpaid.push(f(a.value,a.currency_code));continue}if(r.startsWith("bills-paid-in-native")){this.billBox.paid.push(f(a.value,a.currency_code));continue}if(r.startsWith("left-to-spend-in-native")){this.leftBox.left.push(f(a.value,a.currency_code));continue}if(r.startsWith("left-per-day-to-spend-in-native")){this.leftBox.perDay.push(f(a.value,a.currency_code));continue}if(r.startsWith("net-worth-in-native")){this.netBox.net.push(f(a.value,a.currency_code));continue}}if(!this.autoConversion&&!r.endsWith("native")){if(r.startsWith("balance-in-")){this.balanceBox.amounts.push(f(a.value,a.currency_code));continue}if(r.startsWith("spent-in-")){e.hasOwnProperty(a.currency_code)||(e[a.currency_code]=""),e[a.currency_code]=e[a.currency_code]+f(a.value,a.currency_code);continue}if(r.startsWith("earned-in-")){e.hasOwnProperty(a.currency_code)||(e[a.currency_code]=""),e[a.currency_code]=f(a.value,a.currency_code)+" + "+e[a.currency_code];continue}if(r.startsWith("bills-unpaid-in-")){this.billBox.unpaid.push(f(a.value,a.currency_code));continue}if(r.startsWith("bills-paid-in-")){this.billBox.paid.push(f(a.value,a.currency_code));continue}if(r.startsWith("left-to-spend-in-")){this.leftBox.left.push(f(a.value,a.currency_code));continue}if(r.startsWith("left-per-day-to-spend-in-")){this.leftBox.perDay.push(f(a.value,a.currency_code));continue}r.startsWith("net-worth-in-")&&this.netBox.net.push(f(a.value,a.currency_code))}}for(let n in e)e.hasOwnProperty(n)&&this.balanceBox.subtitles.push(e[n]);this.loading=!1},loadBoxes(){if(this.loading!==!0){if(this.loading=!0,this.boxData===null){this.getFreshData();return}this.generateOptions(this.boxData),this.loading=!1}},init(){Promise.all([v("viewRange"),v("autoConversion",!1)]).then(t=>{U=!0,this.autoConversion=t[1],this.loadBoxes()}),window.store.observe("end",()=>{U&&(this.boxData=null,this.loadBoxes())}),window.store.observe("autoConversion",t=>{U&&(this.autoConversion=t,this.loadBoxes())})}});class Gt{put(e,n){let a="/api/v1/preferences/"+e;return I.put(a,{data:n})}}function Tt(t,e=null){window.store.set(t,e),new Gt().put(t,e).then(a=>{}).catch(()=>{new bt().post(t,e).then(r=>{})})}let Rt=class{dashboard(e,n){let a=p(e,"y-MM-dd"),r=p(n,"y-MM-dd");return I.get("/api/v2/chart/account/dashboard",{params:{start:a,end:r}})}expense(e,n){let a=p(e,"y-MM-dd"),r=p(n,"y-MM-dd");return I.get("/api/v2/chart/account/expense-dashboard",{params:{start:a,end:r}})}};function N(t){return t==="sankey"?{type:"sankey",data:{datasets:[]},options:{animations:!1}}:t==="pie"?{type:"pie",data:{datasets:[]}}:t==="column"?{type:"bar",data:{labels:[],datasets:[]},options:{plugins:{tooltip:{callbacks:{label:function(e){let n=e.dataset.currency_code;return f(e.raw,n)}}}},maintainAspectRatio:!1,scales:{}}}:t==="line"?{options:{plugins:{tooltip:{callbacks:{label:function(e){let n=e.dataset.currency_code;return f(e.raw,n)}}}},maintainAspectRatio:!1,scales:{x:{type:"time",time:{tooltipFormat:"PP"}}}},type:"line",data:{labels:[],datasets:[]}}:{}}let q=new m("#36a2eb"),W=new m("#ff6384"),G=new m("#4bc0c0"),ft=new m("#ff9f40"),qt=new m("#9966ff"),Nt=new m("#ffcd56"),Yt=new m("#c9cbcf"),lt=0;window.theme==="dark"&&(W.darken(.3).desaturate(.3),G.darken(.3).desaturate(.3),q.darken(.3).desaturate(.3),ft.darken(.3).desaturate(.3));let z=[W,ft,q,G,qt,Nt,Yt,G];function B(t,e){let n={borderColor:W.rgbString(),backgroundColor:W.rgbString()},a;switch(t){default:let o=Math.floor(lt/2)%z.length;a=new m(z[o].rgbString()),a.lighten(.38),n={borderColor:z[o].hexString(),backgroundColor:a.hexString()};break;case"spent":a=new m(q.rgbString()),a.lighten(.38),n={borderColor:q.rgbString(),backgroundColor:a.rgbString()};break;case"left":a=new m(G.rgbString()),a.lighten(.38),n={borderColor:G.rgbString(),backgroundColor:a.rgbString()};break;case"overspent":a=new m(W.rgbString()),a.lighten(.22),n={borderColor:W.rgbString(),backgroundColor:a.rgbString()};break}return lt++,e==="border"?n.borderColor:e==="background"?n.backgroundColor:"#FF0000"}let M=[],$=null,H=null,J=!1;const Ut=()=>({loading:!1,loadingAccounts:!1,accountList:[],autoConversion:!1,chartOptions:null,switchAutoConversion(){this.autoConversion=!this.autoConversion,Tt("autoConversion",this.autoConversion)},getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-accounts-chart",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){console.log(r),this.drawChart(this.generateOptions(r)),this.loading=!1;return}new Rt().dashboard(t,e,null).then(i=>{this.chartData=i.data,window.store.set(n,i.data),console.log(i.data),this.drawChart(this.generateOptions(this.chartData)),this.loading=!1})},generateOptions(t){M=[];let e=N("line");for(let n=0;n<t.length;n++)if(t.hasOwnProperty(n)){let a="y",r=t[n],o={},i=[];n===0&&(e.data.labels=Object.keys(r.entries)),o.label=r.label,this.autoConversion&&(M.push(r.native_currency_code),o.currency_code=r.native_currency_code,i=Object.values(r.native_entries),a="y"+r.native_currency_code),this.autoConversion||(a="y"+r.currency_code,o.currency_code=r.currency_code,M.push(r.currency_code),i=Object.values(r.entries)),o.yAxisID=a,o.data=i,e.data.datasets.push(o)}for(let n in M)if(M.hasOwnProperty(n)){let a="y"+M[n];e.options.scales.hasOwnProperty(a)||(e.options.scales[a]={id:n,type:"linear",position:parseInt(n)===1?"right":"left",ticks:{callback:function(r,o,i){return f(r,M[n])}}})}return e},loadChart(){if(this.loading!==!0){if(this.loading=!0,H===null){this.getFreshData();return}this.drawChart(this.generateOptions(H)),this.loading=!1}},drawChart(t){if($!==null){$.options=t.options,$.data=t.data,$.update();return}$=new S(document.querySelector("#account-chart"),t)},loadAccounts(){if(this.loadingAccounts===!0)return;if(this.loadingAccounts=!0,this.accountList.length>0){this.loadingAccounts=!1;return}const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-accounts-data",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){this.accountList=r,this.loadingAccounts=!1;return}const o=10;let i=0,l=0,u=[];Promise.all([v("frontpageAccounts")]).then(d=>{i=d[0].length;for(let h in d[0]){let c=d[0];if(c.hasOwnProperty(h)){let _=c[h];new st().show(_,new Date(window.store.get("end"))).then(w=>{let C=w.data.data;const yt={page:1,start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))};new st().transactions(C.id,yt).then(at=>{let nt=[];for(let A=0;A<at.data.data.length&&!(A>=o);A++){let O=at.data.data[A],rt={title:O.attributes.group_title===null?"":O.attributes.group_title,id:O.id,transactions:[]};for(let Y=0;Y<O.attributes.transactions.length;Y++){let k=O.attributes.transactions[Y];const ot=k.type==="withdrawal"?parseFloat(k.native_amount)*-1:parseFloat(k.native_amount),it=k.type==="withdrawal"?parseFloat(k.amount)*-1:parseFloat(k.amount);rt.transactions.push({description:k.description,id:O.id,type:k.type,amount_raw:it,amount:f(it,k.currency_code),native_amount_raw:ot,native_amount:f(ot,k.native_currency_code)})}nt.push(rt)}u.push({name:C.attributes.name,order:C.attributes.order,id:C.id,balance_raw:parseFloat(C.attributes.current_balance),balance:f(C.attributes.current_balance,C.attributes.currency_code),native_balance_raw:parseFloat(C.attributes.native_current_balance),native_balance:f(C.attributes.native_current_balance,C.attributes.native_currency_code),groups:nt}),l++,l===i&&(u.sort((A,O)=>A.order-O.order),this.accountList=u,this.loadingAccounts=!1,window.store.set(n,u))})})}}})},init(){Promise.all([v("viewRange","1M"),v("autoConversion",!1),v("language","en_US")]).then(t=>{this.autoConversion=t[1],J=!0,this.loadChart(),this.loadAccounts()}),window.store.observe("end",()=>{J&&(H=null,this.accountList=[],this.loadChart(),this.loadAccounts())}),window.store.observe("autoConversion",()=>{J&&(this.loadChart(),this.loadAccounts())})}});let zt=class{dashboard(e,n){let a=p(e,"y-MM-dd"),r=p(n,"y-MM-dd");return I.get("/api/v2/chart/budget/dashboard",{params:{start:a,end:r}})}},V=[],T=null,F=null,Z=!1;const Ht=()=>({loading:!1,autoConversion:!1,loadChart(){if(this.loading!==!0){if(this.loading=!0,F!==null){this.drawChart(this.generateOptions(F)),this.loading=!1;return}this.getFreshData()}},drawChart(t){if(T!==null){T.data.datasets=t.data.datasets,T.update();return}T=new S(document.querySelector("#budget-chart"),t)},getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-budgets-chart",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){F=r,this.drawChart(this.generateOptions(F)),this.loading=!1;return}new zt().dashboard(t,e,null).then(i=>{F=i.data,this.drawChart(this.generateOptions(F)),window.store.set(n,F),this.loading=!1})},generateOptions(t){V=[];let e=N("column");e.options.locale=window.store.get("locale").replace("_","-"),e.options.plugins={tooltip:{callbacks:{title:function(n){return n.label},label:function(n){let a=n.dataset.label||"";return a&&(a+=": "),a+" "+f(n.parsed.y,V[n.parsed.x]??"EUR")}}}},e.data={labels:[],datasets:[{label:g.t("firefly.spent"),data:[],borderWidth:1,stack:1,backgroundColor:B("spent","background"),borderColor:B("spent","border")},{label:g.t("firefly.left"),data:[],borderWidth:1,stack:1,backgroundColor:B("left","background"),borderColor:B("left","border")},{label:g.t("firefly.overspent"),data:[],borderWidth:1,stack:1,backgroundColor:B("overspent","background"),borderColor:B("overspent","border")}]};for(const n in t)if(t.hasOwnProperty(n)){let a=t[n],r=a.label+" ("+a.currency_code+")";e.data.labels.push(r),this.autoConversion&&(V.push(a.native_currency_code),e.data.datasets[0].data.push(parseFloat(a.native_entries.spent)*-1),e.data.datasets[1].data.push(parseFloat(a.native_entries.left)),e.data.datasets[2].data.push(parseFloat(a.native_entries.overspent))),this.autoConversion||(V.push(a.currency_code),e.data.datasets[0].data.push(parseFloat(a.entries.spent)*-1),e.data.datasets[1].data.push(parseFloat(a.entries.left)),e.data.datasets[2].data.push(parseFloat(a.entries.overspent)))}return e.options.scales={y:{ticks:{callback:function(n){return f(n,V[0]??"EUR")}}}},e},init(){Promise.all([v("autoConversion",!1)]).then(t=>{this.autoConversion=t[0],Z=!0,this.loading===!1&&this.loadChart()}),window.store.observe("end",()=>{Z&&this.loading===!1&&(F=null,this.loadChart())}),window.store.observe("autoConversion",t=>{Z&&(this.autoConversion=t,this.loading===!1&&this.loadChart())})}});class Jt{dashboard(e,n){let a=p(e,"y-MM-dd"),r=p(n,"y-MM-dd");return I.get("/api/v2/chart/category/dashboard",{params:{start:a,end:r}})}}let ut=[],K=null,j=null,Q=!1;const Zt=()=>({loading:!1,autoConversion:!1,generateOptions(t){ut=[];let e=N("column"),n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o.currency_code;this.autoConversion&&(i=o.native_currency_code),n.hasOwnProperty(i)||(n[i]={name:i,yAxisID:"",data:{}},ut.push(i))}for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o.currency_code;this.autoConversion&&(i=o.native_currency_code);for(const l in n)if(n.hasOwnProperty(l)){let u=0;i===l&&(u=parseFloat(o.amount),""+o.currency_code,this.autoConversion&&(u=parseFloat(o.native_amount),""+o.native_currency_code)),n[l].data.hasOwnProperty(o.label)&&(n[l].data[o.label]=n[l].data[o.label]+u),n[l].data.hasOwnProperty(o.label)||(n[l].data[o.label]=u)}e.data.labels.includes(o.label)||e.data.labels.push(o.label)}let a=0;for(const r in n){let o="y"+r,i={label:r,currency_code:r,yAxisID:o,data:[]};for(const l in n[r].data)i.data.push(n[r].data[l]);e.data.datasets.push(i),e.options.scales.hasOwnProperty(o)||(e.options.scales[o]={beginAtZero:!0,type:"linear",position:a===1?"right":"left",ticks:{callback:function(l,u,d){return f(l,r)}}},a++)}return e},drawChart(t){if(K!==null){K.options=t.options,K.data=t.data,K.update();return}K=new S(document.querySelector("#category-chart"),t)},getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P("dashboard-categories-chart",t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){j=r,this.drawChart(this.generateOptions(j)),this.loading=!1;return}new Jt().dashboard(t,e,null).then(i=>{j=i.data,this.drawChart(this.generateOptions(i.data)),window.store.set(n,j),this.loading=!1})},loadChart(){if(this.loading!==!0){if(this.loading=!0,j!==null){this.drawChart(this.generateOptions(j)),this.loading=!1;return}this.getFreshData()}},init(){Promise.all([v("autoConversion",!1)]).then(t=>{this.autoConversion=t[0],Q=!0,this.loadChart()}),window.store.observe("end",()=>{Q&&(this.chartData=null,this.loadChart())}),window.store.observe("autoConversion",t=>{Q&&(this.autoConversion=t,this.loadChart())})}});S.register({SankeyController:vt,Flow:mt});const ct="dashboard-sankey-data";let X=!1,R=null,D=[],y=!1,s={category:null,unknown_category:null,in:null,out:null,unknown_source:null,unknown_dest:null,unknown_account:null,expense_account:null,revenue_account:null,budget:null,unknown_budget:null,all_money:null};const dt=function(t){return t.includes(s.revenue_account)?"forestgreen":t.includes("("+s.in+",")?"green":t.includes(s.budget)||t.includes(s.unknown_budget)?"Orchid":t.includes("("+s.out+",")?"MediumOrchid":t.includes(s.all_money)?"blue":"red"};function L(t,e,n,a){if(t==="category"&&e!==null&&n==="in")return s.category+' "'+e+'" ('+s.in+(y?", "+a+")":")");if(t==="category"&&e===null&&n==="in")return s.unknown_category+" ("+s.in+(y?", "+a+")":")");if(t==="category"&&e!==null&&n==="out")return s.category+' "'+e+'" ('+s.out+(y?", "+a+")":")");if(t==="category"&&e===null&&n==="out")return s.unknown_category+" ("+s.out+(y?", "+a+")":")");if(t==="account"&&e===null&&n==="in")return s.unknown_source+(y?" ("+a+")":"");if(t==="account"&&e!==null&&n==="in")return s.revenue_account+'"'+e+'"'+(y?" ("+a+")":"");if(t==="account"&&e===null&&n==="out")return s.unknown_dest+(y?" ("+a+")":"");if(t==="account"&&e!==null&&n==="out")return s.expense_account+' "'+e+'"'+(y?" ("+a+")":"");if(t==="budget"&&e!==null)return s.budget+' "'+e+'"'+(y?" ("+a+")":"");if(t==="budget"&&e===null)return s.unknown_budget+(y?" ("+a+")":"");console.error('Cannot handle: type:"'+t+'", dir: "'+n+'"')}function E(t,e,n){if(t==="category"&&e!==null)return s.category+' "'+e+'"'+(y?" ("+n+")":"");if(t==="category"&&e===null)return s.unknown_category+(y?" ("+n+")":"");if(t==="account"&&e===null)return s.unknown_account+(y?" ("+n+")":"");if(t==="account"&&e!==null)return e+(y?" ("+n+")":"");if(t==="budget"&&e!==null)return s.budget+' "'+e+'"'+(y?" ("+n+")":"");if(t==="budget"&&e===null)return s.unknown_budget+(y?" ("+n+")":"");console.error('Cannot handle: type:"'+t+'"')}const Qt=()=>({loading:!1,autoConversion:!1,generateOptions(){let t=N("sankey"),e={},n={};for(let r in D)if(D.hasOwnProperty(r)){let o=D[r];for(let i in o.attributes.transactions)if(o.attributes.transactions.hasOwnProperty(i)){let l=o.attributes.transactions[i],u=this.autoConversion?l.native_currency_code:l.currency_code,d=this.autoConversion?parseFloat(l.native_amount):parseFloat(l.amount),h;if(l.type==="deposit"){let c=L("category",l.category_name,"in",u),_=L("account",l.source_name,"in",u);n[c]=E("category",l.category_name,u),n[_]=E("account",l.source_name,u),h=_+"-"+c+"-"+u,e.hasOwnProperty(h)||(e[h]={from:_,to:c,amount:0}),e[h].amount+=d,h=c+"-"+s.all_money+"-"+u,e.hasOwnProperty(h)||(e[h]={from:c,to:s.all_money+(this.autoConversion?" ("+u+")":""),amount:0}),e[h].amount+=d}if(l.type==="withdrawal"){let c=L("budget",l.budget_name,"out",u);n[c]=E("budget",l.budget_name,u),h=s.all_money+"-"+c+"-"+u,e.hasOwnProperty(h)||(e[h]={from:s.all_money+(this.autoConversion?" ("+u+")":""),to:c,amount:0}),e[h].amount+=d;let _=L("category",l.category_name,"out",u);n[_]=E("category",l.category_name,u),h=c+"-"+_+"-"+u,e.hasOwnProperty(h)||(e[h]={from:c,to:_,amount:0}),e[h].amount+=d;let w=L("account",l.destination_name,"out",u);n[w]=E("account",l.destination_name,u),h=_+"-"+w+"-"+u,e.hasOwnProperty(h)||(e[h]={from:_,to:w,amount:0}),e[h].amount+=d}}}let a={label:"Firefly III dashboard sankey chart",data:[],colorFrom:r=>dt(r.dataset.data[r.dataIndex]?r.dataset.data[r.dataIndex].from:""),colorTo:r=>dt(r.dataset.data[r.dataIndex]?r.dataset.data[r.dataIndex].to:""),colorMode:"gradient",labels:n,size:"min"};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r];a.data.push({from:o.from,to:o.to,flow:o.amount})}return t.data.datasets.push(a),t},drawChart(t){if(R!==null){R.data.datasets=t.data.datasets,R.update();return}R=new S(document.querySelector("#sankey-chart"),t)},getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P(ct,t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){D=r,this.drawChart(this.generateOptions()),this.loading=!1;return}let o={start:p(t,"y-MM-dd"),end:p(e,"y-MM-dd"),type:"withdrawal,deposit",page:1};this.downloadTransactions(o)},downloadTransactions(t){const e=new Date(window.store.get("start")),n=new Date(window.store.get("end")),a=P(ct,e,n);new $t().list(t).then(o=>{if(D=[...D,...o.data.data],parseInt(o.data.meta.pagination.total_pages)>t.page){t.page++,this.downloadTransactions(t);return}window.store.set(a,D),this.drawChart(this.generateOptions()),this.loading=!1})},loadChart(){if(this.loading!==!0){if(this.loading=!0,D.length!==0){this.drawChart(this.generateOptions()),this.loading=!1;return}this.getFreshData()}},init(){D=[],Promise.all([v("autoConversion",!1)]).then(t=>{this.autoConversion=t[0],y=t[0],s.all_money=g.t("firefly.all_money"),s.category=g.t("firefly.category"),s.in=g.t("firefly.money_flowing_in"),s.out=g.t("firefly.money_flowing_out"),s.unknown_category=g.t("firefly.unknown_category_plain"),s.unknown_source=g.t("firefly.unknown_source_plain"),s.unknown_dest=g.t("firefly.unknown_dest_plain"),s.unknown_account=g.t("firefly.unknown_any_plain"),s.unknown_budget=g.t("firefly.unknown_budget_plain"),s.expense_account=g.t("firefly.expense_account"),s.revenue_account=g.t("firefly.revenue_account"),s.budget=g.t("firefly.budget"),X=!0,this.loadChart()}),window.store.observe("end",()=>{X&&(this.transactions=[],this.loadChart())}),window.store.observe("autoConversion",t=>{X&&(this.autoConversion=t,this.loadChart())})}});let tt=!1,b={};function gt(t){return new Vt().list(t).then(n=>{let a=n.data.data;for(let r in a)if(a.hasOwnProperty(r)){let o=a[r];if(o.attributes.active&&o.attributes.pay_dates.length>0){let i=o.attributes.object_group_id===null?0:o.attributes.object_group_id,l=o.attributes.object_group_title===null?g.t("firefly.default_group_title_name_plain"):o.attributes.object_group_title,u=o.attributes.object_group_order===null?0:o.attributes.object_group_order;b.hasOwnProperty(i)||(b[i]={id:i,title:l,order:u,payment_info:{},bills:[]});let d={id:o.id,name:o.attributes.name,amount_min:o.attributes.amount_min,amount_max:o.attributes.amount_max,amount:(parseFloat(o.attributes.amount_max)+parseFloat(o.attributes.amount_min))/2,currency_code:o.attributes.currency_code,native_amount_min:o.attributes.native_amount_min,native_amount_max:o.attributes.native_amount_max,native_amount:(parseFloat(o.attributes.native_amount_max)+parseFloat(o.attributes.native_amount_min))/2,native_currency_code:o.attributes.native_currency_code,transactions:[],pay_dates:o.attributes.pay_dates,paid:o.attributes.paid_dates.length>0};d.expected_amount=t.autoConversion?f(d.native_amount,d.native_currency_code):f(d.amount,d.currency_code),d.expected_times=g.t("firefly.subscr_expected_x_times",{times:o.attributes.pay_dates.length,amount:d.expected_amount});for(let h in o.attributes.paid_dates)if(o.attributes.paid_dates.hasOwnProperty(h)){const c=o.attributes.paid_dates[h];let _=100;t.autoConversion&&(_=Math.round(-100+parseFloat(c.native_amount)*-1/parseFloat(d.native_amount)*100)),t.autoConversion||(_=Math.round(-100+parseFloat(c.amount)*-1/parseFloat(d.amount)*100));let w={amount:t.autoConversion?f(c.native_amount,c.native_currency_code):f(c.amount,c.currency_code),percentage:_,date:p(new Date(c.date),"PP"),foreign_amount:null};c.foreign_currency_code!==null&&(w.foreign_amount=t.autoConversion?c.foreign_native_amount:c.foreign_amount,w.foreign_currency_code=t.autoConversion?c.native_currency_code:c.foreign_currency_code),d.transactions.push(w)}if(b[i].bills.push(d),o.attributes.paid_dates.length===0){const h=o.attributes.pay_dates.length*d.amount,c=o.attributes.pay_dates.length*d.native_amount;b[i].payment_info.hasOwnProperty(d.currency_code)||(b[i].payment_info[d.currency_code]={currency_code:d.currency_code,paid:0,unpaid:0,native_currency_code:d.native_currency_code,native_paid:0,native_unpaid:0}),b[i].payment_info[d.currency_code].unpaid+=h,b[i].payment_info[d.currency_code].native_unpaid+=c}if(o.attributes.paid_dates.length>0){for(let h in o.attributes.paid_dates)if(o.attributes.paid_dates.hasOwnProperty(h)){let c=o.attributes.paid_dates[h];b[i].payment_info.hasOwnProperty(c.currency_code)||(b[i].payment_info[c.currency_code]={currency_code:d.currency_code,paid:0,unpaid:0,native_currency_code:d.native_currency_code,native_paid:0,native_unpaid:0});const _=parseFloat(c.amount)*-1,w=parseFloat(c.native_amount)*-1;b[i].payment_info[c.currency_code].paid+=_,b[i].payment_info[c.currency_code].native_paid+=w}}}}return parseInt(n.data.meta.pagination.total_pages)>t.page?(t.page++,gt(t)):Promise.resolve()})}const Xt=()=>({loading:!1,autoConversion:!1,subscriptions:[],startSubscriptions(){this.loading=!0;let t=new Date(window.store.get("start")),e=new Date(window.store.get("end"));const n=window.store.get("cacheValid");let a=window.store.get(P("subscriptions-data-dashboard",t,e));n&&typeof a<"u",b={},this.subscriptions=[];let r={start:p(t,"y-MM-dd"),end:p(e,"y-MM-dd"),autoConversion:this.autoConversion,page:1};gt(r).then(()=>{let o=Object.values(b);for(let i in o)if(o.hasOwnProperty(i)){let l=o[i];const u=Object.keys(l.payment_info);l.col_size=u.length===1?"col-6 offset-3":"col-6",l.chart_width=u.length===1?"50%":"100%",l.payment_length=u.length,this.subscriptions.push(l)}this.loading=!1})},drawPieChart(t,e,n){let a="#pie_"+t+"_"+n.currency_code;const r=this.autoConversion?n.native_unpaid:n.unpaid,o=this.autoConversion?n.native_paid:n.paid,i=this.autoConversion?n.native_currency_code:n.currency_code,u={type:"doughnut",data:{labels:[g.t("firefly.paid"),g.t("firefly.unpaid")],datasets:[{label:g.t("firefly.subscriptions_in_group",{title:e}),data:[o,r],backgroundColor:["rgb(54, 162, 235)","rgb(255, 99, 132)"],hoverOffset:4}]},options:{plugins:{tooltip:{callbacks:{label:function(h){return h.dataset.label+": "+f(h.raw,i)}}}}}};var d=S.getChart(document.querySelector(a));typeof d<"u"&&d.destroy(),new S(document.querySelector(a),u)},init(){Promise.all([v("autoConversion",!1)]).then(t=>{this.autoConversion=t[0],tt=!0,this.loading===!1&&this.startSubscriptions()}),window.store.observe("end",()=>{tt&&this.loading===!1&&this.startSubscriptions()}),window.store.observe("autoConversion",t=>{tt&&(this.autoConversion=t,this.loading===!1&&this.startSubscriptions())})}});let x={},et=!1;const ht="dashboard-piggies-data",te=()=>({loading:!1,autoConversion:!1,sankeyGrouping:"account",piggies:[],getFreshData(){const t=new Date(window.store.get("start")),e=new Date(window.store.get("end")),n=P(ht,t,e),a=window.store.get("cacheValid");let r=window.store.get(n);if(a&&typeof r<"u"){x=r,this.parsePiggies(),this.loading=!1;return}let o={start:p(t,"y-MM-dd"),end:p(e,"y-MM-dd"),page:1};this.downloadPiggyBanks(o)},downloadPiggyBanks(t){const e=new Date(window.store.get("start")),n=new Date(window.store.get("end")),a=P(ht,e,n);new Kt().list(t).then(o=>{if(x=[...x,...o.data.data],parseInt(o.data.meta.pagination.total_pages)>t.page){t.page++,this.downloadPiggyBanks(t);return}window.store.set(a,x),this.parsePiggies(),this.loading=!1})},parsePiggies(){let t=[];for(let e in x)if(x.hasOwnProperty(e)){let n=x[e];if(n.attributes.percentage>=100||n.attributes.percentage===0)continue;let a=n.object_group_title??g.t("firefly.default_group_title_name_plain");t.hasOwnProperty(a)||(t[a]={id:n.object_group_id??0,title:a,order:n.object_group_order??0,piggies:[]});let r={id:n.id,name:n.attributes.name,percentage:parseInt(n.attributes.percentage),amount:this.autoConversion?n.attributes.native_current_amount:n.attributes.current_amount,left_to_save:this.autoConversion?n.attributes.native_left_to_save:n.attributes.left_to_save,target_amount:this.autoConversion?n.attributes.native_target_amount:n.attributes.target_amount,save_per_month:this.autoConversion?n.attributes.native_save_per_month:n.attributes.save_per_month,currency_code:this.autoConversion?n.attributes.native_currency_code:n.attributes.currency_code};t[a].piggies.push(r)}this.piggies=Object.values(t)},loadPiggyBanks(){if(this.loading!==!0){if(this.loading=!0,this.piggies.length!==0){this.parsePiggies(),this.loading=!1;return}this.getFreshData()}},init(){x=[],Promise.all([v("autoConversion",!1)]).then(t=>{et=!0,this.autoConversion=t[0],this.loadPiggyBanks()}),window.store.observe("end",()=>{et&&(x=[],this.loadPiggyBanks())}),window.store.observe("autoConversion",t=>{et&&(this.autoConversion=t,this.loadPiggyBanks())})}});S.register({LineController:Ct,LineElement:kt,ArcElement:Pt,BarController:Dt,TimeScale:xt,PieController:Ot,BarElement:Ft,Filler:St,Colors:Mt,LinearScale:At,CategoryScale:Bt,PointElement:jt,Tooltip:Wt,Legend:It});const pt={dates:wt,boxes:Et,accounts:Ut,budgets:Ht,categories:Zt,sankey:Qt,subscriptions:Xt,piggies:te};function _t(t){Object.keys(t).forEach(e=>{let n=t[e]();Alpine.data(e,()=>n)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),_t(pt)});window.bootstrapped&&(console.log("Loaded through window variable."),_t(pt));
diff --git a/public/build/assets/edit-40e70481.js b/public/build/assets/edit-0146de3c.js
similarity index 94%
rename from public/build/assets/edit-40e70481.js
rename to public/build/assets/edit-0146de3c.js
index 8d70e5654a..950a71432b 100644
--- a/public/build/assets/edit-40e70481.js
+++ b/public/build/assets/edit-0146de3c.js
@@ -1 +1 @@
-import{d as p,f as l}from"./format-money-db0e5105.js";import{G as f}from"./get-04515a82.js";import{p as g}from"./parse-downloaded-splits-84d22cdd.js";import{p as m,d as w,e as a,f as y,g as b,h as P,i as S,l as v,a as C,b as A,c as _,s as E,j as D,k as c,m as u}from"./splice-errors-into-transactions-bdbe4899.js";import{i as o,m as T}from"./vendor-0a0b4763.js";import{d as x}from"./create-empty-split-0cfec852.js";import{P as B}from"./put-ade65e7d.js";import"./get-d7bb5fb3.js";const n=D();let L=function(){return{entries:[],originals:[],formStates:{loadingCurrencies:!0,loadingBudgets:!0,loadingPiggyBanks:!0,loadingSubscriptions:!0,isSubmitting:!1,returnHereButton:!1,saveAsNewButton:!1,resetButton:!0,rulesButton:!0,webhooksButton:!0},formBehaviour:{formType:"edit",foreignCurrencyEnabled:!0},formData:{defaultCurrency:null,enabledCurrencies:[],nativeCurrencies:[],foreignCurrencies:[],budgets:[],piggyBanks:[],subscriptions:[]},groupProperties:{transactionType:"unknown",title:null,editTitle:null,id:null,totalAmount:0},notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},submitTransaction(){this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1;for(let e in this.entries)this.entries.hasOwnProperty(e)&&(this.entries[e].errors=x());this.formStates.isSubmitting=!0;let t=m(this.entries,this.originals,this.groupProperties.transactionType),s={group_title:this.groupProperties.editTitle,fire_webhooks:this.formStates.webhooksButton,apply_rules:this.formStates.rulesButton,transactions:t};this.groupProperties.title===null&&t.length>1&&(s.group_title=t[0].description);let r=new B;console.log(s),r.put(s,{id:this.groupProperties.id}).then(e=>{const i=e.data.data;if(this.groupProperties.id=parseInt(i.id),this.groupProperties.title=i.attributes.group_title??i.attributes.transactions[0].description,w(this.groupProperties.id,i.attributes.transactions)>0){this.notifications.wait.show=!0,this.notifications.wait.text=o.t("firefly.wait_attachments");return}this.showMessageOrRedirectUser()}).catch(e=>{this.submitting=!1,console.log(e),typeof e.response<"u"&&this.parseErrors(e.response.data)})},filters:{source:[],destination:[]},addedSplit(){setTimeout(()=>{const t=function(s,r,e){return s.name_with_balance+'<br><small class="text-muted">'+o.t("firefly.account_type_"+s.type)+"</small>"};a({selector:"input.ac-source",serverUrl:n.account,filters:this.filters.source,onRenderItem:t,onChange:y,onSelectItem:b}),a({selector:"input.ac-dest",serverUrl:n.account,filters:this.filters.destination,onRenderItem:t,onChange:P,onSelectItem:S}),a({selector:"input.ac-category",serverUrl:n.category,valueField:"id",labelField:"name",onChange:c,onSelectItem:c}),a({selector:"input.ac-description",serverUrl:n.description,valueField:"id",labelField:"description",onChange:u,onSelectItem:u})},250)},changedDateTime(t){console.warn("changedDateTime, event is not used")},changedDescription(t){console.warn("changedDescription, event is not used")},changedDestinationAccount(t){console.warn("changedDestinationAccount, event is not used")},changedSourceAccount(t){console.warn("changedSourceAccount, event is not used")},formattedTotalAmount(){return this.entries.length===0?l(this.groupProperties.totalAmount,"EUR"):l(this.groupProperties.totalAmount,this.entries[0].currency_code??"EUR")},getTags(t){return console.log("at get tags "+t),console.log(this.entries[t].tags),this.entries[t].tags??[]},getTransactionGroup(){this.entries=[];const t=window.location.href.split("/"),s=parseInt(t[t.length-1]);new f().show(s,{}).then(e=>{const i=e.data.data;this.groupProperties.id=parseInt(i.id),this.groupProperties.transactionType=i.attributes.transactions[0].type.toLowerCase(),this.groupProperties.title=i.attributes.title??i.attributes.transactions[0].description,this.entries=g(i.attributes.transactions,parseInt(i.id)),this.notifications.wait.show=!1}).then(()=>{this.groupProperties.totalAmount=0;for(let e in this.entries)this.entries.hasOwnProperty(e)&&(this.groupProperties.totalAmount=this.groupProperties.totalAmount+parseFloat(this.entries[e].amount),this.filters.source.push(this.entries[e].source_account.type),this.filters.destination.push(this.entries[e].destination_account.type));console.log(this.filters),setTimeout(()=>{T.init("select.ac-tags",{allowClear:!0,server:n.tag,liveServer:!0,clearEnd:!0,allowNew:!0,notFoundMessage:o.t("firefly.nothing_found"),noCache:!0,fetchOptions:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}}})},150)})},init(){this.notifications.wait.show=!0,this.notifications.wait.text=o.t("firefly.wait_loading_transaction"),this.getTransactionGroup(),v().then(t=>{this.formStates.loadingCurrencies=!1,this.formData.defaultCurrency=t.defaultCurrency,this.formData.enabledCurrencies=t.enabledCurrencies,this.formData.nativeCurrencies=t.nativeCurrencies,this.formData.foreignCurrencies=t.foreignCurrencies}),C().then(t=>{this.formData.budgets=t,this.formStates.loadingBudgets=!1}),A().then(t=>{this.formData.piggyBanks=t,this.formStates.loadingPiggyBanks=!1}),_().then(t=>{this.formData.subscriptions=t,this.formStates.loadingSubscriptions=!1}),document.addEventListener("upload-success",t=>{this.processUpload(t),document.querySelectorAll("input[type=file]").value=""}),document.addEventListener("upload-error",t=>{this.processUploadError(t)}),document.addEventListener("location-move",t=>{this.entries[t.detail.index].latitude=t.detail.latitude,this.entries[t.detail.index].longitude=t.detail.longitude}),document.addEventListener("location-set",t=>{this.entries[t.detail.index].hasLocation=!0,this.entries[t.detail.index].latitude=t.detail.latitude,this.entries[t.detail.index].longitude=t.detail.longitude,this.entries[t.detail.index].zoomLevel=t.detail.zoomLevel}),document.addEventListener("location-zoom",t=>{this.entries[t.detail.index].hasLocation=!0,this.entries[t.detail.index].zoomLevel=t.detail.zoomLevel})},changedAmount(t){const s=parseInt(t.target.dataset.index);this.entries[s].amount=parseFloat(t.target.value),this.groupProperties.totalAmount=0;for(let r in this.entries)this.entries.hasOwnProperty(r)&&(this.groupProperties.totalAmount=this.groupProperties.totalAmount+parseFloat(this.entries[r].amount))},showMessageOrRedirectUser(){if(this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.returnHereButton){this.notifications.success.show=!0,this.notifications.success.url="transactions/show/"+this.groupProperties.id,this.notifications.success.text=o.t("firefly.updated_journal_js",{description:this.groupProperties.title});return}window.location="transactions/show/"+this.groupProperties.id+"?transaction_group_id="+this.groupProperties.id+"&message=updated"},parseErrors(t){this.notifications.error.show=!0,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.isSubmitting=!1,this.notifications.error.text=o.t("firefly.errors_submission_v2",{errorMessage:t.message}),t.hasOwnProperty("errors")&&(this.entries=E(t.errors,this.entries))},processUpload(t){this.showMessageOrRedirectUser()},processUploadError(t){this.notifications.success.show=!1,this.notifications.wait.show=!1,this.notifications.error.show=!0,this.formStates.isSubmitting=!1,this.notifications.error.text=o.t("firefly.errors_upload"),console.error(t)}}},h={transactions:L,dates:p};function d(){Object.keys(h).forEach(t=>{console.log(`Loading page component "${t}"`);let s=h[t]();Alpine.data(t,()=>s)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),d()});window.bootstrapped&&(console.log("Loaded through window variable."),d());
+import{d as p,f as l}from"./format-money-5a1aa122.js";import{G as f}from"./get-a398221d.js";import{p as g}from"./parse-downloaded-splits-ce04c01c.js";import{p as m,d as w,e as a,f as y,g as b,h as P,i as S,l as v,a as C,b as A,c as _,s as E,j as D,k as c,m as u}from"./splice-errors-into-transactions-5b51d5fd.js";import{i as o,m as T}from"./vendor-291d7a70.js";import{d as x}from"./create-empty-split-70d17748.js";import{P as B}from"./put-02a25c9f.js";import"./get-316f0281.js";const n=D();let L=function(){return{entries:[],originals:[],formStates:{loadingCurrencies:!0,loadingBudgets:!0,loadingPiggyBanks:!0,loadingSubscriptions:!0,isSubmitting:!1,returnHereButton:!1,saveAsNewButton:!1,resetButton:!0,rulesButton:!0,webhooksButton:!0},formBehaviour:{formType:"edit",foreignCurrencyEnabled:!0},formData:{defaultCurrency:null,enabledCurrencies:[],nativeCurrencies:[],foreignCurrencies:[],budgets:[],piggyBanks:[],subscriptions:[]},groupProperties:{transactionType:"unknown",title:null,editTitle:null,id:null,totalAmount:0},notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},submitTransaction(){this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1;for(let e in this.entries)this.entries.hasOwnProperty(e)&&(this.entries[e].errors=x());this.formStates.isSubmitting=!0;let t=m(this.entries,this.originals,this.groupProperties.transactionType),s={group_title:this.groupProperties.editTitle,fire_webhooks:this.formStates.webhooksButton,apply_rules:this.formStates.rulesButton,transactions:t};this.groupProperties.title===null&&t.length>1&&(s.group_title=t[0].description);let r=new B;console.log(s),r.put(s,{id:this.groupProperties.id}).then(e=>{const i=e.data.data;if(this.groupProperties.id=parseInt(i.id),this.groupProperties.title=i.attributes.group_title??i.attributes.transactions[0].description,w(this.groupProperties.id,i.attributes.transactions)>0){this.notifications.wait.show=!0,this.notifications.wait.text=o.t("firefly.wait_attachments");return}this.showMessageOrRedirectUser()}).catch(e=>{this.submitting=!1,console.log(e),typeof e.response<"u"&&this.parseErrors(e.response.data)})},filters:{source:[],destination:[]},addedSplit(){setTimeout(()=>{const t=function(s,r,e){return s.name_with_balance+'<br><small class="text-muted">'+o.t("firefly.account_type_"+s.type)+"</small>"};a({selector:"input.ac-source",serverUrl:n.account,filters:this.filters.source,onRenderItem:t,onChange:y,onSelectItem:b}),a({selector:"input.ac-dest",serverUrl:n.account,filters:this.filters.destination,onRenderItem:t,onChange:P,onSelectItem:S}),a({selector:"input.ac-category",serverUrl:n.category,valueField:"id",labelField:"name",onChange:c,onSelectItem:c}),a({selector:"input.ac-description",serverUrl:n.description,valueField:"id",labelField:"description",onChange:u,onSelectItem:u})},250)},changedDateTime(t){console.warn("changedDateTime, event is not used")},changedDescription(t){console.warn("changedDescription, event is not used")},changedDestinationAccount(t){console.warn("changedDestinationAccount, event is not used")},changedSourceAccount(t){console.warn("changedSourceAccount, event is not used")},formattedTotalAmount(){return this.entries.length===0?l(this.groupProperties.totalAmount,"EUR"):l(this.groupProperties.totalAmount,this.entries[0].currency_code??"EUR")},getTags(t){return console.log("at get tags "+t),console.log(this.entries[t].tags),this.entries[t].tags??[]},getTransactionGroup(){this.entries=[];const t=window.location.href.split("/"),s=parseInt(t[t.length-1]);new f().show(s,{}).then(e=>{const i=e.data.data;this.groupProperties.id=parseInt(i.id),this.groupProperties.transactionType=i.attributes.transactions[0].type.toLowerCase(),this.groupProperties.title=i.attributes.title??i.attributes.transactions[0].description,this.entries=g(i.attributes.transactions,parseInt(i.id)),this.notifications.wait.show=!1}).then(()=>{this.groupProperties.totalAmount=0;for(let e in this.entries)this.entries.hasOwnProperty(e)&&(this.groupProperties.totalAmount=this.groupProperties.totalAmount+parseFloat(this.entries[e].amount),this.filters.source.push(this.entries[e].source_account.type),this.filters.destination.push(this.entries[e].destination_account.type));console.log(this.filters),setTimeout(()=>{T.init("select.ac-tags",{allowClear:!0,server:n.tag,liveServer:!0,clearEnd:!0,allowNew:!0,notFoundMessage:o.t("firefly.nothing_found"),noCache:!0,fetchOptions:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}}})},150)})},init(){this.notifications.wait.show=!0,this.notifications.wait.text=o.t("firefly.wait_loading_transaction"),this.getTransactionGroup(),v().then(t=>{this.formStates.loadingCurrencies=!1,this.formData.defaultCurrency=t.defaultCurrency,this.formData.enabledCurrencies=t.enabledCurrencies,this.formData.nativeCurrencies=t.nativeCurrencies,this.formData.foreignCurrencies=t.foreignCurrencies}),C().then(t=>{this.formData.budgets=t,this.formStates.loadingBudgets=!1}),A().then(t=>{this.formData.piggyBanks=t,this.formStates.loadingPiggyBanks=!1}),_().then(t=>{this.formData.subscriptions=t,this.formStates.loadingSubscriptions=!1}),document.addEventListener("upload-success",t=>{this.processUpload(t),document.querySelectorAll("input[type=file]").value=""}),document.addEventListener("upload-error",t=>{this.processUploadError(t)}),document.addEventListener("location-move",t=>{this.entries[t.detail.index].latitude=t.detail.latitude,this.entries[t.detail.index].longitude=t.detail.longitude}),document.addEventListener("location-set",t=>{this.entries[t.detail.index].hasLocation=!0,this.entries[t.detail.index].latitude=t.detail.latitude,this.entries[t.detail.index].longitude=t.detail.longitude,this.entries[t.detail.index].zoomLevel=t.detail.zoomLevel}),document.addEventListener("location-zoom",t=>{this.entries[t.detail.index].hasLocation=!0,this.entries[t.detail.index].zoomLevel=t.detail.zoomLevel})},changedAmount(t){const s=parseInt(t.target.dataset.index);this.entries[s].amount=parseFloat(t.target.value),this.groupProperties.totalAmount=0;for(let r in this.entries)this.entries.hasOwnProperty(r)&&(this.groupProperties.totalAmount=this.groupProperties.totalAmount+parseFloat(this.entries[r].amount))},showMessageOrRedirectUser(){if(this.notifications.error.show=!1,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.returnHereButton){this.notifications.success.show=!0,this.notifications.success.url="transactions/show/"+this.groupProperties.id,this.notifications.success.text=o.t("firefly.updated_journal_js",{description:this.groupProperties.title});return}window.location="transactions/show/"+this.groupProperties.id+"?transaction_group_id="+this.groupProperties.id+"&message=updated"},parseErrors(t){this.notifications.error.show=!0,this.notifications.success.show=!1,this.notifications.wait.show=!1,this.formStates.isSubmitting=!1,this.notifications.error.text=o.t("firefly.errors_submission_v2",{errorMessage:t.message}),t.hasOwnProperty("errors")&&(this.entries=E(t.errors,this.entries))},processUpload(t){this.showMessageOrRedirectUser()},processUploadError(t){this.notifications.success.show=!1,this.notifications.wait.show=!1,this.notifications.error.show=!0,this.formStates.isSubmitting=!1,this.notifications.error.text=o.t("firefly.errors_upload"),console.error(t)}}},h={transactions:L,dates:p};function d(){Object.keys(h).forEach(t=>{console.log(`Loading page component "${t}"`);let s=h[t]();Alpine.data(t,()=>s)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),d()});window.bootstrapped&&(console.log("Loaded through window variable."),d());
diff --git a/public/build/assets/format-money-db0e5105.js b/public/build/assets/format-money-5a1aa122.js
similarity index 99%
rename from public/build/assets/format-money-db0e5105.js
rename to public/build/assets/format-money-5a1aa122.js
index e989fb7f11..1ee7d9af05 100644
--- a/public/build/assets/format-money-db0e5105.js
+++ b/public/build/assets/format-money-5a1aa122.js
@@ -1 +1 @@
-import{q as y,s as d,r as l,t as p,u as _,v as c,w as b,x as N,y as P,z as v,D as g,i as C,E as B,G as x,H as O,J as o,K as E,N as T,f as L,O as S,Q as W,R as U,U as I,V as q,W as Q,X as V,Y,Z as $,_ as j,$ as z,a0 as X,a1 as F,a2 as G,a3 as H,a4 as J,a5 as K,a6 as Z,a7 as ee,a8 as te,a9 as ae,aa as se,ab as ne,ac as re,ad as le,ae as de,af as oe,ag as ie,ah as ue,ai as ge,aj as ce,ak as we,al as he,am as ye}from"./vendor-0a0b4763.js";const k="/",h=y.create({baseURL:k,withCredentials:!0});y.defaults.withCredentials=!0;y.defaults.baseURL=k;class R{getByName(e){return h.get("/api/v1/preferences/"+e)}getByNameNow(e){return h.get("/api/v1/preferences/"+e)}postByName(e,a){return h.post("/api/v1/preferences",{name:e,data:a})}}class A{post(e,a){let s="/api/v1/preferences";return h.post(s,{name:e,data:a})}}function fe(t,e=null){return new R().getByName(t).then(s=>Promise.resolve(m(t,s))).catch(()=>{new A().post(t,e).then(i=>Promise.resolve(m(t,i)))})}function m(t,e){return e.data.data.attributes.data}function w(t,e=null){const a=window.store.get("cacheValid");if(a&&window.hasOwnProperty(t))return Promise.resolve(window[t]);const s=window.store.get(t);return a&&typeof s<"u"?Promise.resolve(s):new R().getByName(t).then(u=>Promise.resolve(M(t,u))).catch(()=>{new A().post(t,e).then(n=>Promise.resolve(M(t,n)))})}function M(t,e){let a=e.data.data.attributes.data;return window.store.set(t,a),a}function be(t,e){let a,s;switch(t){case"last365":a=d(g(e,365)),s=l(e);break;case"last90":a=d(g(e,90)),s=l(e);break;case"last30":a=d(g(e,30)),s=l(e);break;case"last7":a=d(g(e,7)),s=l(e);break;case"YTD":a=v(e),s=l(e);break;case"QTD":a=p(e),s=l(e);break;case"MTD":a=c(e),s=l(e);break;case"1D":a=d(e),s=l(e);break;case"1W":a=d(N(e,{weekStartsOn:1})),s=l(P(e,{weekStartsOn:1}));break;case"1M":a=d(c(e)),s=l(b(e));break;case"3M":a=d(p(e)),s=l(_(e));break;case"6M":e.getMonth()<=5&&(a=new Date(e),a.setMonth(0),a.setDate(1),a=d(a),s=new Date(e),s.setMonth(5),s.setDate(30),s=l(a)),e.getMonth()>5&&(a=new Date(e),a.setMonth(6),a.setDate(1),a=d(a),s=new Date(e),s.setMonth(11),s.setDate(31),s=l(a));break;case"1Y":a=new Date(e),a.setMonth(0),a.setDate(1),a=d(a),s=new Date(e),s.setMonth(11),s.setDate(31),s=l(s);break}return{start:a,end:s}}let D=!1;function pe(t){if(D===!1){const e=t.replace("-","_");D=!0;const a=7*24*60*60*1e3;return console.log('Will load language "'+e+'"'),C.use(B).init({load:"languageOnly",fallbackLng:"en",lng:e,debug:!1,backend:{backends:[x,O],backendOptions:[{load:"languageOnly",expirationTime:a},{loadPath:"./v2/i18n/{{lng}}.json"}]}})}return console.warn("Loading translations skipped."),Promise.resolve()}o.addPlugin(E);window.bootstrapped=!1;window.store=o;fe("lastActivity").then(t=>{const e=o.get("lastActivity");o.set("cacheValid",e===t),o.set("lastActivity",t),console.log("Server value: "+t),console.log("Local value: "+e),console.log("Cache valid: "+(e===t))}).then(()=>{Promise.all([w("viewRange"),w("darkMode"),w("locale"),w("language")]).then(t=>{if(!o.get("start")||!o.get("end")){const e=be(t[0],new Date);o.set("start",e.start),o.set("end",e.end)}window.__localeId__=t[2],o.set("language",t[3]),o.set("locale",t[3]),pe(t[3]).then(()=>{const e=new Event("firefly-iii-bootstrapped");document.dispatchEvent(e),window.bootstrapped=!0})})});window.axios=y;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.Alpine=T;const f={bg:S,cs:W,da:U,de:I,el:q,enGB:Q,enUS:V,es:Y,ca:$,fi:j,fr:z,hu:X,id:F,it:G,ja:H,ko:J,nb:K,nn:Z,nl:ee,pl:te,ptBR:ae,pt:se,ro:ne,ru:re,sk:le,sl:de,sv:oe,tr:ie,uk:ue,vi:ge,zhTW:ce,zhCN:we};function r(t,e="PP"){let a=window.__localeId__.replace("_","");return L(t,e,{locale:f[a]??f[a.slice(0,2)]??f.enUS})}const Me=()=>({range:{start:null,end:null},defaultRange:{start:null,end:null},language:"en_US",init(){this.range={start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))},this.defaultRange={start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))},this.language=window.store.get("language"),this.locale=window.store.get("locale"),this.locale=this.locale==="equal"?this.language:this.locale,window.__localeId__=this.language,this.buildDateRange(),window.store.observe("start",t=>{this.range.start=new Date(t)}),window.store.observe("end",t=>{this.range.end=new Date(t),this.buildDateRange()})},buildDateRange(){let t=this.getNextRange(),e=this.getPrevRange(),a=this.lastDays(7),s=this.lastDays(30),i=this.mtd(),u=this.ytd(),n=document.getElementsByClassName("daterange-holder")[0];n.textContent=r(this.range.start)+" - "+r(this.range.end),n.setAttribute("data-start",r(this.range.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(this.range.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-current")[0],n.textContent=r(this.defaultRange.start)+" - "+r(this.defaultRange.end),n.setAttribute("data-start",r(this.defaultRange.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(this.defaultRange.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-next")[0],n.textContent=r(t.start)+" - "+r(t.end),n.setAttribute("data-start",r(t.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(t.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-prev")[0],n.textContent=r(e.start)+" - "+r(e.end),n.setAttribute("data-start",r(e.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(e.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-7d")[0],n.setAttribute("data-start",r(a.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(a.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-90d")[0],n.setAttribute("data-start",r(s.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(s.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-mtd")[0],n.setAttribute("data-start",r(i.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(i.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-ytd")[0],n.setAttribute("data-start",r(u.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(u.end,"yyyy-MM-dd"))},getNextRange(){let t=c(this.range.start),e=he(t,1),a=b(e);return{start:e,end:a}},getPrevRange(){let t=c(this.range.start),e=ye(t,1),a=b(e);return{start:e,end:a}},ytd(){let t=new Date;return{start:v(this.range.start),end:t}},mtd(){let t=new Date;return{start:c(this.range.start),end:t}},lastDays(t){let e=new Date;return{start:g(e,t),end:e}},changeDateRange(t){t.preventDefault();let e=t.currentTarget,a=new Date(e.getAttribute("data-start")),s=new Date(e.getAttribute("data-end"));return window.store.set("start",a),window.store.set("end",s),!1}});function De(t,e){let a=window.__localeId__.replace("_","-");return Intl.NumberFormat(a,{style:"currency",currency:e}).format(t)}export{A as P,h as a,r as b,Me as d,De as f,w as g};
+import{q as y,s as d,r as l,t as p,u as _,v as c,w as b,x as N,y as P,z as v,D as g,i as C,E as B,G as x,H as O,J as o,K as E,N as T,f as L,O as S,Q as W,R as U,U as I,V as q,W as Q,X as V,Y,Z as $,_ as j,$ as z,a0 as X,a1 as F,a2 as G,a3 as H,a4 as J,a5 as K,a6 as Z,a7 as ee,a8 as te,a9 as ae,aa as se,ab as ne,ac as re,ad as le,ae as de,af as oe,ag as ie,ah as ue,ai as ge,aj as ce,ak as we,al as he,am as ye}from"./vendor-291d7a70.js";const k="/",h=y.create({baseURL:k,withCredentials:!0});y.defaults.withCredentials=!0;y.defaults.baseURL=k;class R{getByName(e){return h.get("/api/v1/preferences/"+e)}getByNameNow(e){return h.get("/api/v1/preferences/"+e)}postByName(e,a){return h.post("/api/v1/preferences",{name:e,data:a})}}class A{post(e,a){let s="/api/v1/preferences";return h.post(s,{name:e,data:a})}}function fe(t,e=null){return new R().getByName(t).then(s=>Promise.resolve(m(t,s))).catch(()=>{new A().post(t,e).then(i=>Promise.resolve(m(t,i)))})}function m(t,e){return e.data.data.attributes.data}function w(t,e=null){const a=window.store.get("cacheValid");if(a&&window.hasOwnProperty(t))return Promise.resolve(window[t]);const s=window.store.get(t);return a&&typeof s<"u"?Promise.resolve(s):new R().getByName(t).then(u=>Promise.resolve(M(t,u))).catch(()=>{new A().post(t,e).then(n=>Promise.resolve(M(t,n)))})}function M(t,e){let a=e.data.data.attributes.data;return window.store.set(t,a),a}function be(t,e){let a,s;switch(t){case"last365":a=d(g(e,365)),s=l(e);break;case"last90":a=d(g(e,90)),s=l(e);break;case"last30":a=d(g(e,30)),s=l(e);break;case"last7":a=d(g(e,7)),s=l(e);break;case"YTD":a=v(e),s=l(e);break;case"QTD":a=p(e),s=l(e);break;case"MTD":a=c(e),s=l(e);break;case"1D":a=d(e),s=l(e);break;case"1W":a=d(N(e,{weekStartsOn:1})),s=l(P(e,{weekStartsOn:1}));break;case"1M":a=d(c(e)),s=l(b(e));break;case"3M":a=d(p(e)),s=l(_(e));break;case"6M":e.getMonth()<=5&&(a=new Date(e),a.setMonth(0),a.setDate(1),a=d(a),s=new Date(e),s.setMonth(5),s.setDate(30),s=l(a)),e.getMonth()>5&&(a=new Date(e),a.setMonth(6),a.setDate(1),a=d(a),s=new Date(e),s.setMonth(11),s.setDate(31),s=l(a));break;case"1Y":a=new Date(e),a.setMonth(0),a.setDate(1),a=d(a),s=new Date(e),s.setMonth(11),s.setDate(31),s=l(s);break}return{start:a,end:s}}let D=!1;function pe(t){if(D===!1){const e=t.replace("-","_");D=!0;const a=7*24*60*60*1e3;return console.log('Will load language "'+e+'"'),C.use(B).init({load:"languageOnly",fallbackLng:"en",lng:e,debug:!1,backend:{backends:[x,O],backendOptions:[{load:"languageOnly",expirationTime:a},{loadPath:"./v2/i18n/{{lng}}.json"}]}})}return console.warn("Loading translations skipped."),Promise.resolve()}o.addPlugin(E);window.bootstrapped=!1;window.store=o;fe("lastActivity").then(t=>{const e=o.get("lastActivity");o.set("cacheValid",e===t),o.set("lastActivity",t),console.log("Server value: "+t),console.log("Local value: "+e),console.log("Cache valid: "+(e===t))}).then(()=>{Promise.all([w("viewRange"),w("darkMode"),w("locale"),w("language")]).then(t=>{if(!o.get("start")||!o.get("end")){const e=be(t[0],new Date);o.set("start",e.start),o.set("end",e.end)}window.__localeId__=t[2],o.set("language",t[3]),o.set("locale",t[3]),pe(t[3]).then(()=>{const e=new Event("firefly-iii-bootstrapped");document.dispatchEvent(e),window.bootstrapped=!0})})});window.axios=y;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.Alpine=T;const f={bg:S,cs:W,da:U,de:I,el:q,enGB:Q,enUS:V,es:Y,ca:$,fi:j,fr:z,hu:X,id:F,it:G,ja:H,ko:J,nb:K,nn:Z,nl:ee,pl:te,ptBR:ae,pt:se,ro:ne,ru:re,sk:le,sl:de,sv:oe,tr:ie,uk:ue,vi:ge,zhTW:ce,zhCN:we};function r(t,e="PP"){let a=window.__localeId__.replace("_","");return L(t,e,{locale:f[a]??f[a.slice(0,2)]??f.enUS})}const Me=()=>({range:{start:null,end:null},defaultRange:{start:null,end:null},language:"en_US",init(){this.range={start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))},this.defaultRange={start:new Date(window.store.get("start")),end:new Date(window.store.get("end"))},this.language=window.store.get("language"),this.locale=window.store.get("locale"),this.locale=this.locale==="equal"?this.language:this.locale,window.__localeId__=this.language,this.buildDateRange(),window.store.observe("start",t=>{this.range.start=new Date(t)}),window.store.observe("end",t=>{this.range.end=new Date(t),this.buildDateRange()})},buildDateRange(){let t=this.getNextRange(),e=this.getPrevRange(),a=this.lastDays(7),s=this.lastDays(30),i=this.mtd(),u=this.ytd(),n=document.getElementsByClassName("daterange-holder")[0];n.textContent=r(this.range.start)+" - "+r(this.range.end),n.setAttribute("data-start",r(this.range.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(this.range.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-current")[0],n.textContent=r(this.defaultRange.start)+" - "+r(this.defaultRange.end),n.setAttribute("data-start",r(this.defaultRange.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(this.defaultRange.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-next")[0],n.textContent=r(t.start)+" - "+r(t.end),n.setAttribute("data-start",r(t.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(t.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-prev")[0],n.textContent=r(e.start)+" - "+r(e.end),n.setAttribute("data-start",r(e.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(e.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-7d")[0],n.setAttribute("data-start",r(a.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(a.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-90d")[0],n.setAttribute("data-start",r(s.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(s.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-mtd")[0],n.setAttribute("data-start",r(i.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(i.end,"yyyy-MM-dd")),n=document.getElementsByClassName("daterange-ytd")[0],n.setAttribute("data-start",r(u.start,"yyyy-MM-dd")),n.setAttribute("data-end",r(u.end,"yyyy-MM-dd"))},getNextRange(){let t=c(this.range.start),e=he(t,1),a=b(e);return{start:e,end:a}},getPrevRange(){let t=c(this.range.start),e=ye(t,1),a=b(e);return{start:e,end:a}},ytd(){let t=new Date;return{start:v(this.range.start),end:t}},mtd(){let t=new Date;return{start:c(this.range.start),end:t}},lastDays(t){let e=new Date;return{start:g(e,t),end:e}},changeDateRange(t){t.preventDefault();let e=t.currentTarget,a=new Date(e.getAttribute("data-start")),s=new Date(e.getAttribute("data-end"));return window.store.set("start",a),window.store.set("end",s),!1}});function De(t,e){let a=window.__localeId__.replace("_","-");return Intl.NumberFormat(a,{style:"currency",currency:e}).format(t)}export{A as P,h as a,r as b,Me as d,De as f,w as g};
diff --git a/public/build/assets/get-f12826cc.js b/public/build/assets/get-2d864c96.js
similarity index 70%
rename from public/build/assets/get-f12826cc.js
rename to public/build/assets/get-2d864c96.js
index 537285c584..832327b499 100644
--- a/public/build/assets/get-f12826cc.js
+++ b/public/build/assets/get-2d864c96.js
@@ -1 +1 @@
-import{a as s}from"./format-money-db0e5105.js";import{f as n}from"./vendor-0a0b4763.js";class c{show(a,t){return s.get("/api/v2/accounts/"+a,{params:t})}index(a){return s.get("/api/v2/accounts",{params:a})}transactions(a,t){const r={page:t.page??1};return t.hasOwnProperty("start")&&(r.start=n(t.start,"y-MM-dd")),t.hasOwnProperty("end")&&(r.end=n(t.end,"y-MM-dd")),s.get("/api/v2/accounts/"+a+"/transactions",{params:r})}}export{c as G};
+import{a as s}from"./format-money-5a1aa122.js";import{f as n}from"./vendor-291d7a70.js";class c{show(a,t){return s.get("/api/v2/accounts/"+a,{params:t})}index(a){return s.get("/api/v2/accounts",{params:a})}transactions(a,t){const r={page:t.page??1};return t.hasOwnProperty("start")&&(r.start=n(t.start,"y-MM-dd")),t.hasOwnProperty("end")&&(r.end=n(t.end,"y-MM-dd")),s.get("/api/v2/accounts/"+a+"/transactions",{params:r})}}export{c as G};
diff --git a/public/build/assets/get-d7bb5fb3.js b/public/build/assets/get-316f0281.js
similarity index 81%
rename from public/build/assets/get-d7bb5fb3.js
rename to public/build/assets/get-316f0281.js
index b97e5ab0e3..adb36ed9ec 100644
--- a/public/build/assets/get-d7bb5fb3.js
+++ b/public/build/assets/get-316f0281.js
@@ -1 +1 @@
-import{a as s}from"./format-money-db0e5105.js";let t=class{list(a){return s.get("/api/v2/subscriptions",{params:a})}paid(a){return s.get("/api/v2/subscriptions/sum/paid",{params:a})}unpaid(a){return s.get("/api/v2/subscriptions/sum/unpaid",{params:a})}};class e{list(a){return s.get("/api/v2/piggy-banks",{params:a})}}export{t as G,e as a};
+import{a as s}from"./format-money-5a1aa122.js";let t=class{list(a){return s.get("/api/v2/subscriptions",{params:a})}paid(a){return s.get("/api/v2/subscriptions/sum/paid",{params:a})}unpaid(a){return s.get("/api/v2/subscriptions/sum/unpaid",{params:a})}};class e{list(a){return s.get("/api/v2/piggy-banks",{params:a})}}export{t as G,e as a};
diff --git a/public/build/assets/get-04515a82.js b/public/build/assets/get-a398221d.js
similarity index 75%
rename from public/build/assets/get-04515a82.js
rename to public/build/assets/get-a398221d.js
index 0d736b237d..d03af3e6f7 100644
--- a/public/build/assets/get-04515a82.js
+++ b/public/build/assets/get-a398221d.js
@@ -1 +1 @@
-import{a as t}from"./format-money-db0e5105.js";class n{list(a){return t.get("/api/v2/transactions",{params:a})}infiniteList(a){return t.get("/api/v2/infinite/transactions",{params:a})}show(a,i){return t.get("/api/v2/transactions/"+a,{params:i})}}export{n as G};
+import{a as t}from"./format-money-5a1aa122.js";class n{list(a){return t.get("/api/v2/transactions",{params:a})}infiniteList(a){return t.get("/api/v2/infinite/transactions",{params:a})}show(a,i){return t.get("/api/v2/transactions/"+a,{params:i})}}export{n as G};
diff --git a/public/build/assets/index-a7622e11.js b/public/build/assets/index-80c224c9.js
similarity index 96%
rename from public/build/assets/index-a7622e11.js
rename to public/build/assets/index-80c224c9.js
index 57b50e7c46..488f02f68e 100644
--- a/public/build/assets/index-a7622e11.js
+++ b/public/build/assets/index-80c224c9.js
@@ -1 +1 @@
-import{b,d as V,f as u}from"./format-money-db0e5105.js";import{M as E,I as j,f as m,i as d,o as T}from"./vendor-0a0b4763.js";import{P as c}from"./put-ade65e7d.js";/* empty css */import{G as C}from"./get-04515a82.js";class R{init(t){document.addEventListener("cellValueChanged",()=>{console.log("I just realized a cell value has changed.")}),console.log("AmountEditor.init"),this.params=t,this.originalValue=t.value,this.eGui=document.createElement("div"),this.input=document.createElement("input"),this.input.type="number",this.input.min="0",this.input.step="any",this.input.style.overflow="hidden",this.input.style.textOverflow="ellipsis",this.input.autofocus=!0,this.input.value=parseFloat(t.value.amount).toFixed(t.value.decimal_places)}onChange(t){console.log("AmountEditor.onChange"),this.params.onValueChange(t),this.params.stopEditing(t)}afterGuiAttached(){this.input.focus(),this.input.select()}getGui(){return console.log("AmountEditor.getGui"),this.eGui.appendChild(this.input),this.eGui}getValue(){return console.log("AmountEditor.getValue"),this.originalValue.amount=parseFloat(this.input.value),this.submitAmount(this.originalValue),this.originalValue}submitAmount(t){console.log("AmountEditor.submitAmount"),console.log(t);const i=t.amount;console.log('New value for field "amount" in transaction journal #'+t.transaction_journal_id+" of group #"+t.id+' is "'+i+'"');let n={transactions:[{transaction_journal_id:t.transaction_journal_id,amount:i}]};new c().put(n,{id:t.id})}}class x{constructor(){this.type="all",this.rowCount=null,this.sortModel=null}rowCount(){return this.rowCount}getRows(t){console.log("The sort model used is: ",t.sortModel);let i=[];for(let a in t.sortModel)if(t.sortModel.hasOwnProperty(a)){let o=t.sortModel[a];i.push({column:o.colId,direction:o.sort})}new C().infiniteList({start_row:t.startRow,end_row:t.endRow,type:this.type,sorting:i}).then(a=>{this.parseTransactions(a.data.data,t.successCallback),this.rowCount=a.data.meta.pagination.total}).catch(a=>{console.log(a)})}parseTransactions(t,i){let n=[];for(let a in t)if(t.hasOwnProperty(a)){let o=t[a],l=o.attributes.transactions.length>1,f=!0;for(let g in o.attributes.transactions)if(o.attributes.transactions.hasOwnProperty(g)){let r=o.attributes.transactions[g],s={};s.split=l,s.firstSplit=f,s.group_title=o.attributes.group_title,s.created_at=o.attributes.created_at,s.updated_at=o.attributes.updated_at,s.user=o.attributes.user,s.user_group=o.attributes.user_group,s.id=parseInt(o.id),s.transaction_journal_id=parseInt(r.transaction_journal_id),s.description=r.description,s.date=new Date(r.date),s.from={name:r.source_name,id:r.source_id,type:r.source_type},s.to={name:r.destination_name,id:r.destination_id,type:r.destination_type},s.category={name:r.category_name,id:r.category_id},s.budget={name:r.budget_name,id:r.budget_id},s.amount={id:parseInt(o.id),transaction_journal_id:parseInt(r.transaction_journal_id),type:r.type,amount:r.amount,currency_code:r.currency_code,decimal_places:r.currency_decimal_places,foreign_amount:r.foreign_amount,foreign_currency_code:r.foreign_currency_code,foreign_decimal_places:r.foreign_currency_decimal_places},s.icon={classes:"fa fa-solid fa-arrow-left",id:s.id},f=!1,n.push(s)}}return i(n,!1),n}setType(t){this.type=t}}class A{init(t){console.log("DateTimeEditor.init"),this.params=t,this.originalValue=t.value,this.eGui=document.createElement("div"),this.input=document.createElement("input"),this.input.type="datetime-local",this.input.style.overflow="hidden",this.input.style.textOverflow="ellipsis",this.input.value=b(t.value,"yyyy-MM-dd HH:mm")}onChange(t){console.log("DateTimeEditor.onChange"),this.params.onValueChange(t),this.params.stopEditing(t)}afterGuiAttached(){this.input.focus()}getGui(){return console.log("DateTimeEditor.getGui"),this.eGui.appendChild(this.input),this.eGui}getValue(){return console.log("DateTimeEditor.getValue"),this.originalValue=this.input.value,this.originalValue}submitAmount(t){console.log("AmountEditor.submitAmount"),console.log(t);const i=t.amount;console.log('New value for field "amount" in transaction journal #'+t.transaction_journal_id+" of group #"+t.id+' is "'+i+'"');let n={transactions:[{transaction_journal_id:t.transaction_journal_id,amount:i}]};new c().put(n,{id:t.id})}}const _=new x,p=window.location.href.split("/"),M=p[p.length-1];_.setType(M);let w;const D=["description","amount","date"],G=e=>{console.log("onCellEditRequestMethod");const t=e.data,i=e.colDef.field;let n=e.newValue;if(!D.includes(i)){console.log("Field "+i+" is not editable.");return}i==="amount"&&(n=e.newValue.amount,console.log("New value is now"+n)),console.log('New value for field "'+i+'" in transaction journal #'+t.transaction_journal_id+" of group #"+t.id+' is "'+n+'"'),t[i]=n,w.getRowNode(String(e.rowIndex)).updateData(t);let o={transactions:[{transaction_journal_id:t.transaction_journal_id}]};o.transactions[0][i]=n,new c().put(o,{id:t.id})},P={rowModelType:"infinite",datasource:_,cacheOverflowSize:1,cacheBlockSize:20,onCellEditRequest:G,readOnlyEdit:!0,getRowId:function(e){return console.log("getRowId",e.data.id),e.data.id},columnDefs:[{field:"icon",editable:!1,headerName:"",sortable:!1,width:40,cellRenderer:function(e){return e.getValue()?'<a href="./transactions/show/'+parseInt(e.value.id)+'"><em class="'+e.value.classes+'"></em></a>':""}},{field:"description",cellDataType:"text",editable:!0},{field:"amount",editable:function(e){return e.data.amount.foreign_amount===null&&e.data.amount.foreign_currency_code===null},cellEditor:R,cellRenderer(e){if(e.getValue()){let t="",i=parseFloat(e.getValue().amount),n=e.getValue(),a="text-danger";if(n.type==="withdrawal"&&(i=i*-1),n.type==="deposit"&&(a="text-success"),n.type==="transfer"&&(a="text-info"),t+='<span class="'+a+'">'+u(i,e.getValue().currency_code)+"</span>",n.foreign_amount){let o=parseFloat(e.getValue().foreign_amount);n.type==="withdrawal"&&(o=o*-1),t+=' (<span class="'+a+'">'+u(o,n.foreign_currency_code)+"</span>)"}return t}return""}},{field:"date",editable:!0,cellDataType:"date",cellEditor:A,cellEditorPopup:!0,cellEditorPopupPosition:"under",cellRenderer(e){return e.getValue()?m(e.getValue(),d.t("config.date_time_fns_short")):""}},{field:"from",cellDataType:"text",cellRenderer:function(e){if(e.getValue()){let t=e.getValue();return'<a href="./accounts/show/'+t.id+'">'+t.name+"</a>"}return""}},{field:"to",cellDataType:"text",cellRenderer:function(e){if(e.getValue()){let t=e.getValue();return'<a href="./accounts/show/'+t.id+'">'+t.name+"</a>"}return""}},{field:"category",cellDataType:"text",cellRenderer:function(e){if(e.getValue()){let t=e.getValue();if(t.id!==null)return'<a href="./categories/show/'+t.id+'">'+t.name+"</a>"}return""}},{field:"budget",cellDataType:"text",cellRenderer:function(e){if(e.getValue()){let t=e.getValue();if(t.id!==null)return'<a href="./budgets/show/'+t.id+'">'+t.name+"</a>"}return""}}]};E.registerModules([j]);let v=function(){return{notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},transactions:[],totalPages:1,perPage:50,page:1,tableColumns:{description:{enabled:!0},source:{enabled:!0},destination:{enabled:!0},amount:{enabled:!0}},table:null,formatMoney(e,t){return u(e,t)},format(e){return m(e,d.t("config.date_time_fns"))},init(){this.notifications.wait.show=!0,this.notifications.wait.text=d.t("firefly.wait_loading_data"),w=T(document.querySelector("#grid"),P)},parseTransactions(e){for(let t in e)if(e.hasOwnProperty(t)){let i=e[t],n=i.attributes.transactions.length>1,a=!0;for(let o in i.attributes.transactions)if(i.attributes.transactions.hasOwnProperty(o)){let l=i.attributes.transactions[o];l.split=n,tranaction.icon="fa fa-solid fa-arrow-left",l.firstSplit=a,l.group_title=i.attributes.group_title,l.id=i.id,l.created_at=i.attributes.created_at,l.updated_at=i.attributes.updated_at,l.user=i.attributes.user,l.user_group=i.attributes.user_group,a=!1,this.transactions.push(l)}}this.notifications.wait.show=!1,console.log("refresh!")}}},h={index:v,dates:V};function y(){Object.keys(h).forEach(e=>{console.log(`Loading page component "${e}"`);let t=h[e]();Alpine.data(e,()=>t)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),y()});window.bootstrapped&&(console.log("Loaded through window variable."),y());
+import{b,d as V,f as u}from"./format-money-5a1aa122.js";import{M as E,I as j,f as m,i as d,o as T}from"./vendor-291d7a70.js";import{P as c}from"./put-02a25c9f.js";/* empty css */import{G as C}from"./get-a398221d.js";class R{init(t){document.addEventListener("cellValueChanged",()=>{console.log("I just realized a cell value has changed.")}),console.log("AmountEditor.init"),this.params=t,this.originalValue=t.value,this.eGui=document.createElement("div"),this.input=document.createElement("input"),this.input.type="number",this.input.min="0",this.input.step="any",this.input.style.overflow="hidden",this.input.style.textOverflow="ellipsis",this.input.autofocus=!0,this.input.value=parseFloat(t.value.amount).toFixed(t.value.decimal_places)}onChange(t){console.log("AmountEditor.onChange"),this.params.onValueChange(t),this.params.stopEditing(t)}afterGuiAttached(){this.input.focus(),this.input.select()}getGui(){return console.log("AmountEditor.getGui"),this.eGui.appendChild(this.input),this.eGui}getValue(){return console.log("AmountEditor.getValue"),this.originalValue.amount=parseFloat(this.input.value),this.submitAmount(this.originalValue),this.originalValue}submitAmount(t){console.log("AmountEditor.submitAmount"),console.log(t);const i=t.amount;console.log('New value for field "amount" in transaction journal #'+t.transaction_journal_id+" of group #"+t.id+' is "'+i+'"');let n={transactions:[{transaction_journal_id:t.transaction_journal_id,amount:i}]};new c().put(n,{id:t.id})}}class x{constructor(){this.type="all",this.rowCount=null,this.sortModel=null}rowCount(){return this.rowCount}getRows(t){console.log("The sort model used is: ",t.sortModel);let i=[];for(let a in t.sortModel)if(t.sortModel.hasOwnProperty(a)){let o=t.sortModel[a];i.push({column:o.colId,direction:o.sort})}new C().infiniteList({start_row:t.startRow,end_row:t.endRow,type:this.type,sorting:i}).then(a=>{this.parseTransactions(a.data.data,t.successCallback),this.rowCount=a.data.meta.pagination.total}).catch(a=>{console.log(a)})}parseTransactions(t,i){let n=[];for(let a in t)if(t.hasOwnProperty(a)){let o=t[a],l=o.attributes.transactions.length>1,f=!0;for(let g in o.attributes.transactions)if(o.attributes.transactions.hasOwnProperty(g)){let r=o.attributes.transactions[g],s={};s.split=l,s.firstSplit=f,s.group_title=o.attributes.group_title,s.created_at=o.attributes.created_at,s.updated_at=o.attributes.updated_at,s.user=o.attributes.user,s.user_group=o.attributes.user_group,s.id=parseInt(o.id),s.transaction_journal_id=parseInt(r.transaction_journal_id),s.description=r.description,s.date=new Date(r.date),s.from={name:r.source_name,id:r.source_id,type:r.source_type},s.to={name:r.destination_name,id:r.destination_id,type:r.destination_type},s.category={name:r.category_name,id:r.category_id},s.budget={name:r.budget_name,id:r.budget_id},s.amount={id:parseInt(o.id),transaction_journal_id:parseInt(r.transaction_journal_id),type:r.type,amount:r.amount,currency_code:r.currency_code,decimal_places:r.currency_decimal_places,foreign_amount:r.foreign_amount,foreign_currency_code:r.foreign_currency_code,foreign_decimal_places:r.foreign_currency_decimal_places},s.icon={classes:"fa fa-solid fa-arrow-left",id:s.id},f=!1,n.push(s)}}return i(n,!1),n}setType(t){this.type=t}}class A{init(t){console.log("DateTimeEditor.init"),this.params=t,this.originalValue=t.value,this.eGui=document.createElement("div"),this.input=document.createElement("input"),this.input.type="datetime-local",this.input.style.overflow="hidden",this.input.style.textOverflow="ellipsis",this.input.value=b(t.value,"yyyy-MM-dd HH:mm")}onChange(t){console.log("DateTimeEditor.onChange"),this.params.onValueChange(t),this.params.stopEditing(t)}afterGuiAttached(){this.input.focus()}getGui(){return console.log("DateTimeEditor.getGui"),this.eGui.appendChild(this.input),this.eGui}getValue(){return console.log("DateTimeEditor.getValue"),this.originalValue=this.input.value,this.originalValue}submitAmount(t){console.log("AmountEditor.submitAmount"),console.log(t);const i=t.amount;console.log('New value for field "amount" in transaction journal #'+t.transaction_journal_id+" of group #"+t.id+' is "'+i+'"');let n={transactions:[{transaction_journal_id:t.transaction_journal_id,amount:i}]};new c().put(n,{id:t.id})}}const _=new x,p=window.location.href.split("/"),M=p[p.length-1];_.setType(M);let w;const D=["description","amount","date"],G=e=>{console.log("onCellEditRequestMethod");const t=e.data,i=e.colDef.field;let n=e.newValue;if(!D.includes(i)){console.log("Field "+i+" is not editable.");return}i==="amount"&&(n=e.newValue.amount,console.log("New value is now"+n)),console.log('New value for field "'+i+'" in transaction journal #'+t.transaction_journal_id+" of group #"+t.id+' is "'+n+'"'),t[i]=n,w.getRowNode(String(e.rowIndex)).updateData(t);let o={transactions:[{transaction_journal_id:t.transaction_journal_id}]};o.transactions[0][i]=n,new c().put(o,{id:t.id})},P={rowModelType:"infinite",datasource:_,cacheOverflowSize:1,cacheBlockSize:20,onCellEditRequest:G,readOnlyEdit:!0,getRowId:function(e){return console.log("getRowId",e.data.id),e.data.id},columnDefs:[{field:"icon",editable:!1,headerName:"",sortable:!1,width:40,cellRenderer:function(e){return e.getValue()?'<a href="./transactions/show/'+parseInt(e.value.id)+'"><em class="'+e.value.classes+'"></em></a>':""}},{field:"description",cellDataType:"text",editable:!0},{field:"amount",editable:function(e){return e.data.amount.foreign_amount===null&&e.data.amount.foreign_currency_code===null},cellEditor:R,cellRenderer(e){if(e.getValue()){let t="",i=parseFloat(e.getValue().amount),n=e.getValue(),a="text-danger";if(n.type==="withdrawal"&&(i=i*-1),n.type==="deposit"&&(a="text-success"),n.type==="transfer"&&(a="text-info"),t+='<span class="'+a+'">'+u(i,e.getValue().currency_code)+"</span>",n.foreign_amount){let o=parseFloat(e.getValue().foreign_amount);n.type==="withdrawal"&&(o=o*-1),t+=' (<span class="'+a+'">'+u(o,n.foreign_currency_code)+"</span>)"}return t}return""}},{field:"date",editable:!0,cellDataType:"date",cellEditor:A,cellEditorPopup:!0,cellEditorPopupPosition:"under",cellRenderer(e){return e.getValue()?m(e.getValue(),d.t("config.date_time_fns_short")):""}},{field:"from",cellDataType:"text",cellRenderer:function(e){if(e.getValue()){let t=e.getValue();return'<a href="./accounts/show/'+t.id+'">'+t.name+"</a>"}return""}},{field:"to",cellDataType:"text",cellRenderer:function(e){if(e.getValue()){let t=e.getValue();return'<a href="./accounts/show/'+t.id+'">'+t.name+"</a>"}return""}},{field:"category",cellDataType:"text",cellRenderer:function(e){if(e.getValue()){let t=e.getValue();if(t.id!==null)return'<a href="./categories/show/'+t.id+'">'+t.name+"</a>"}return""}},{field:"budget",cellDataType:"text",cellRenderer:function(e){if(e.getValue()){let t=e.getValue();if(t.id!==null)return'<a href="./budgets/show/'+t.id+'">'+t.name+"</a>"}return""}}]};E.registerModules([j]);let v=function(){return{notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},transactions:[],totalPages:1,perPage:50,page:1,tableColumns:{description:{enabled:!0},source:{enabled:!0},destination:{enabled:!0},amount:{enabled:!0}},table:null,formatMoney(e,t){return u(e,t)},format(e){return m(e,d.t("config.date_time_fns"))},init(){this.notifications.wait.show=!0,this.notifications.wait.text=d.t("firefly.wait_loading_data"),w=T(document.querySelector("#grid"),P)},parseTransactions(e){for(let t in e)if(e.hasOwnProperty(t)){let i=e[t],n=i.attributes.transactions.length>1,a=!0;for(let o in i.attributes.transactions)if(i.attributes.transactions.hasOwnProperty(o)){let l=i.attributes.transactions[o];l.split=n,tranaction.icon="fa fa-solid fa-arrow-left",l.firstSplit=a,l.group_title=i.attributes.group_title,l.id=i.id,l.created_at=i.attributes.created_at,l.updated_at=i.attributes.updated_at,l.user=i.attributes.user,l.user_group=i.attributes.user_group,a=!1,this.transactions.push(l)}}this.notifications.wait.show=!1,console.log("refresh!")}}},h={index:v,dates:V};function y(){Object.keys(h).forEach(e=>{console.log(`Loading page component "${e}"`);let t=h[e]();Alpine.data(e,()=>t)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),y()});window.bootstrapped&&(console.log("Loaded through window variable."),y());
diff --git a/public/build/assets/index-12a21fa7.js b/public/build/assets/index-fdc173aa.js
similarity index 90%
rename from public/build/assets/index-12a21fa7.js
rename to public/build/assets/index-fdc173aa.js
index 5acc482367..aee36c6dae 100644
--- a/public/build/assets/index-12a21fa7.js
+++ b/public/build/assets/index-fdc173aa.js
@@ -1 +1 @@
-import{d as u,f as l}from"./format-money-db0e5105.js";import{f as d,i as n}from"./vendor-0a0b4763.js";/* empty css */import{G as f}from"./get-f12826cc.js";const o=window.location.href.split("/"),h=o[o.length-1];let b=function(){return{notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},totalPages:1,page:1,tableColumns:{name:{enabled:!0}},sortingColumn:"",sortDirection:"",accounts:[],sort(a){return this.sortingColumn=a,this.sortDirection=this.sortDirection==="asc"?"desc":"asc",this.loadAccounts(),!1},formatMoney(a,e){return l(a,e)},format(a){return d(a,n.t("config.date_time_fns"))},init(){this.notifications.wait.show=!0,this.notifications.wait.text=n.t("firefly.wait_loading_data"),this.loadAccounts()},loadAccounts(){this.notifications.wait.show=!0,this.notifications.wait.text=n.t("firefly.wait_loading_data"),this.accounts=[];const a=[{column:this.sortingColumn,direction:this.sortDirection}];new f().index({sorting:a,type:h,page:this.page}).then(e=>{for(let i=0;i<e.data.data.length;i++)if(e.data.data.hasOwnProperty(i)){let t=e.data.data[i],c={id:parseInt(t.id),active:t.attributes.active,name:t.attributes.name,type:t.attributes.type,iban:t.attributes.iban===null?"":t.attributes.iban.match(/.{1,4}/g).join(" "),account_number:t.attributes.account_number===null?"":t.attributes.account_number,current_balance:t.attributes.current_balance,currency_code:t.attributes.currency_code,native_current_balance:t.attributes.native_current_balance,native_currency_code:t.attributes.native_currency_code};this.accounts.push(c)}this.notifications.wait.show=!1})}}},r={index:b,dates:u};function s(){Object.keys(r).forEach(a=>{console.log(`Loading page component "${a}"`);let e=r[a]();Alpine.data(a,()=>e)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),s()});window.bootstrapped&&(console.log("Loaded through window variable."),s());
+import{d as u,f as l}from"./format-money-5a1aa122.js";import{f as d,i as n}from"./vendor-291d7a70.js";/* empty css */import{G as f}from"./get-2d864c96.js";const o=window.location.href.split("/"),h=o[o.length-1];let b=function(){return{notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},totalPages:1,page:1,tableColumns:{name:{enabled:!0}},sortingColumn:"",sortDirection:"",accounts:[],sort(a){return this.sortingColumn=a,this.sortDirection=this.sortDirection==="asc"?"desc":"asc",this.loadAccounts(),!1},formatMoney(a,e){return l(a,e)},format(a){return d(a,n.t("config.date_time_fns"))},init(){this.notifications.wait.show=!0,this.notifications.wait.text=n.t("firefly.wait_loading_data"),this.loadAccounts()},loadAccounts(){this.notifications.wait.show=!0,this.notifications.wait.text=n.t("firefly.wait_loading_data"),this.accounts=[];const a=[{column:this.sortingColumn,direction:this.sortDirection}];new f().index({sorting:a,type:h,page:this.page}).then(e=>{for(let i=0;i<e.data.data.length;i++)if(e.data.data.hasOwnProperty(i)){let t=e.data.data[i],c={id:parseInt(t.id),active:t.attributes.active,name:t.attributes.name,type:t.attributes.type,iban:t.attributes.iban===null?"":t.attributes.iban.match(/.{1,4}/g).join(" "),account_number:t.attributes.account_number===null?"":t.attributes.account_number,current_balance:t.attributes.current_balance,currency_code:t.attributes.currency_code,native_current_balance:t.attributes.native_current_balance,native_currency_code:t.attributes.native_currency_code};this.accounts.push(c)}this.notifications.wait.show=!1})}}},r={index:b,dates:u};function s(){Object.keys(r).forEach(a=>{console.log(`Loading page component "${a}"`);let e=r[a]();Alpine.data(a,()=>e)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),s()});window.bootstrapped&&(console.log("Loaded through window variable."),s());
diff --git a/public/build/assets/parse-downloaded-splits-84d22cdd.js b/public/build/assets/parse-downloaded-splits-ce04c01c.js
similarity index 91%
rename from public/build/assets/parse-downloaded-splits-84d22cdd.js
rename to public/build/assets/parse-downloaded-splits-ce04c01c.js
index 95e8c357f2..988c916640 100644
--- a/public/build/assets/parse-downloaded-splits-84d22cdd.js
+++ b/public/build/assets/parse-downloaded-splits-ce04c01c.js
@@ -1 +1 @@
-import{c as o}from"./create-empty-split-0cfec852.js";import{f as _}from"./vendor-0a0b4763.js";function l(a,r){let n=[];for(let i in a)if(a.hasOwnProperty(i)){let e=a[i],t=o();t.transaction_journal_id=e.transaction_journal_id,t.transaction_group_id=r,t.bill_id=e.bill_id,t.bill_name=e.bill_name,t.budget_id=e.budget_id,t.budget_name=e.budget_name,t.category_name=e.category_name,t.category_id=e.category_id,t.piggy_bank_id=e.piggy_bank_id,t.piggy_bank_name=e.piggy_bank_name,t.book_date=e.book_date,t.due_date=e.due_date,t.interest_date=e.interest_date,t.invoice_date=e.invoice_date,t.payment_date=e.payment_date,t.process_date=e.process_date,t.external_url=e.external_url,t.internal_reference=e.internal_reference,t.notes=e.notes,t.tags=e.tags,t.amount=parseFloat(e.amount).toFixed(e.currency_decimal_places),t.currency_code=e.currency_code,e.foreign_amount!==null&&(t.forein_currency_code=e.foreign_currency_code,t.foreign_amount=parseFloat(e.foreign_amount).toFixed(e.foreign_currency_decimal_places)),t.date=_(new Date(e.date),"yyyy-MM-dd HH:mm"),t.description=e.description,t.destination_account={id:e.destination_id,name:e.destination_name,type:e.destination_type,alpine_name:e.destination_name},t.source_account={id:e.source_id,name:e.source_name,type:e.source_type,alpine_name:e.source_name},e.latitude!==null&&(t.hasLocation=!0,t.latitude=e.latitude,t.longitude=e.longitude,t.zoomLevel=e.zoom_level),n.push(t)}return n}export{l as p};
+import{c as o}from"./create-empty-split-70d17748.js";import{f as _}from"./vendor-291d7a70.js";function l(a,r){let n=[];for(let i in a)if(a.hasOwnProperty(i)){let e=a[i],t=o();t.transaction_journal_id=e.transaction_journal_id,t.transaction_group_id=r,t.bill_id=e.bill_id,t.bill_name=e.bill_name,t.budget_id=e.budget_id,t.budget_name=e.budget_name,t.category_name=e.category_name,t.category_id=e.category_id,t.piggy_bank_id=e.piggy_bank_id,t.piggy_bank_name=e.piggy_bank_name,t.book_date=e.book_date,t.due_date=e.due_date,t.interest_date=e.interest_date,t.invoice_date=e.invoice_date,t.payment_date=e.payment_date,t.process_date=e.process_date,t.external_url=e.external_url,t.internal_reference=e.internal_reference,t.notes=e.notes,t.tags=e.tags,t.amount=parseFloat(e.amount).toFixed(e.currency_decimal_places),t.currency_code=e.currency_code,e.foreign_amount!==null&&(t.forein_currency_code=e.foreign_currency_code,t.foreign_amount=parseFloat(e.foreign_amount).toFixed(e.foreign_currency_decimal_places)),t.date=_(new Date(e.date),"yyyy-MM-dd HH:mm"),t.description=e.description,t.destination_account={id:e.destination_id,name:e.destination_name,type:e.destination_type,alpine_name:e.destination_name},t.source_account={id:e.source_id,name:e.source_name,type:e.source_type,alpine_name:e.source_name},e.latitude!==null&&(t.hasLocation=!0,t.latitude=e.latitude,t.longitude=e.longitude,t.zoomLevel=e.zoom_level),n.push(t)}return n}export{l as p};
diff --git a/public/build/assets/put-ade65e7d.js b/public/build/assets/put-02a25c9f.js
similarity index 55%
rename from public/build/assets/put-ade65e7d.js
rename to public/build/assets/put-02a25c9f.js
index 79f80c0ff4..df41009c2c 100644
--- a/public/build/assets/put-ade65e7d.js
+++ b/public/build/assets/put-02a25c9f.js
@@ -1 +1 @@
-import{a as p}from"./format-money-db0e5105.js";class u{put(t,a){let r="/api/v2/transactions/"+parseInt(a.id);return p.put(r,t)}}export{u as P};
+import{a as p}from"./format-money-5a1aa122.js";class u{put(t,a){let r="/api/v2/transactions/"+parseInt(a.id);return p.put(r,t)}}export{u as P};
diff --git a/public/build/assets/show-6bc4010b.js b/public/build/assets/show-7b497861.js
similarity index 98%
rename from public/build/assets/show-6bc4010b.js
rename to public/build/assets/show-7b497861.js
index 368075d9a8..f859f29c89 100644
--- a/public/build/assets/show-6bc4010b.js
+++ b/public/build/assets/show-7b497861.js
@@ -1 +1 @@
-var y=Object.defineProperty;var w=(i,t,e)=>t in i?y(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var r=(i,t,e)=>(w(i,typeof t!="symbol"?t+"":t,e),e);import{d as v,f as b}from"./format-money-db0e5105.js";import{f as g,i as h}from"./vendor-0a0b4763.js";import{G as E}from"./get-04515a82.js";import{p as _}from"./parse-downloaded-splits-84d22cdd.js";import"./create-empty-split-0cfec852.js";class l{constructor(t){if(this.constructor===l)throw new Error("It's abstract class");this.context=t}event_show(){this.context.typeElement.hideError(),this.context.typeElement.element.value=this.context.value,this.context.element.dispatchEvent(new CustomEvent("show"))}event_shown(){this.context.element.dispatchEvent(new CustomEvent("shown"))}event_hide(){this.context.element.dispatchEvent(new CustomEvent("hide"))}event_hidden(){this.context.element.dispatchEvent(new CustomEvent("hidden"))}init(){throw new Error("Method `init` not define!")}enable(){throw new Error("Method `enable` not define!")}disable(){throw new Error("Method `disable` not define!")}hide(){throw new Error("Method `hide` not define!")}}class L extends l{init(){this.popover=new bootstrap.Popover(this.context.element,{container:"body",content:this.context.typeElement.create(),html:!0,customClass:"dark-editable",title:this.context.title}),this.context.element.addEventListener("show.bs.popover",()=>{this.event_show()}),this.context.element.addEventListener("shown.bs.popover",()=>{this.event_shown()}),this.context.element.addEventListener("hide.bs.popover",()=>{this.event_hide()}),this.context.element.addEventListener("hidden.bs.popover",()=>{this.event_hidden()}),document.addEventListener("click",t=>{const e=t.target;if(e===this.popover.tip||e===this.context.element)return;let n=e;for(;n=n.parentNode;)if(n===this.popover.tip)return;this.hide()})}enable(){this.popover.enable()}disable(){this.popover.disable()}hide(){this.popover.hide()}}class T extends l{init(){const t=()=>{if(!this.context.disabled){const e=this.context.typeElement.create();this.event_show(),this.context.element.removeEventListener("click",t),this.context.element.innerHTML="",this.context.element.append(e),this.event_shown()}};this.context.element.addEventListener("click",t)}enable(){}disable(){}hide(){this.event_hide(),this.context.element.innerHTML=this.context.value,setTimeout(()=>{this.init(),this.event_hidden()},100)}}class c{constructor(t){r(this,"context",null);r(this,"element",null);r(this,"error",null);r(this,"form",null);r(this,"load",null);r(this,"buttonGroup",null);r(this,"buttons",{success:null,cancel:null});if(this.constructor===c)throw new Error("It's abstract class");this.context=t}create(){throw new Error("Method `create` not define!")}createContainer(t){const e=document.createElement("div");this.element=t,this.error=this.createContainerError(),this.form=this.createContainerForm(),this.load=this.createContainerLoad(),this.buttons.success=this.createButtonSuccess(),this.buttons.cancel=this.createButtonCancel();const n=document.createElement("div");n.classList.add("col-12");const s=document.createElement("label");s.classList.add("visually-hidden"),s.for=t.id,n.append(s,t);const o=document.createElement("div");return o.classList.add("col-12"),this.buttonGroup=this.createButtonGroup(),this.buttonGroup.append(this.buttons.success,this.buttons.cancel),o.append(this.buttonGroup),this.form.append(n,o),e.append(this.error,this.form),e}createButtonGroup(){const t=document.createElement("div");return t.classList.add("btn-group","btn-group-sm"),t}createContainerError(){const t=document.createElement("div");return t.classList.add("text-danger","fst-italic","mb-2","fw-bold"),t.style.display="none",t}createContainerForm(){const t=document.createElement("form");return t.classList.add("row","row-cols-lg-auto","g-3","align-items-center"),t.addEventListener("submit",async e=>{e.preventDefault();const n=this.getValue();if(this.context.send&&this.context.pk&&this.context.url&&this.context.value!==n){this.showLoad();let s;try{const o=await this.ajax(n);o.ok?s=await this.context.success(o,n):s=await this.context.error(o,n)||`${o.status} ${o.statusText}`}catch(o){console.error(o),s=o}s?(this.setError(s),this.showError()):(this.setError(null),this.hideError(),this.context.value=this.getValue(),this.context.modeElement.hide(),this.initText()),this.hideLoad()}else this.context.value=this.getValue(),this.context.modeElement.hide(),this.initText();this.context.element.dispatchEvent(new CustomEvent("save"))}),t}createContainerLoad(){const t=document.createElement("div");t.style.display="none",t.style.position="absolute",t.style.background="white",t.style.width="100%",t.style.height="100%",t.style.top=0,t.style.left=0;const e=document.createElement("div");return e.classList.add("dark-editable-loader"),t.append(e),t}createButton(){const t=document.createElement("button");return t.type="button",t.classList.add("btn","btn-sm"),t.style.color="transparent",t.style.textShadow="0 0 0 white",t}createButtonSuccess(){const t=this.createButton();return t.type="submit",t.classList.add("btn-success"),t.innerHTML="✔",t}createButtonCancel(){const t=this.createButton();t.classList.add("btn-danger");const e=document.createElement("div");return e.innerHTML="✖",t.append(e),t.addEventListener("click",()=>{this.context.modeElement.hide()}),t}hideLoad(){this.load.style.display="none"}showLoad(){this.load.style.display="block"}ajax(t){let e=this.context.url,n,s=!1;console.log(this.context),this.context.options.formType==="journal_description"&&(s=!0,n={transactions:[{transaction_journal_id:this.context.options.journalId,description:t}]}),s===!1&&console.error('Cannot deal with form type "'+this.context.formType+'"');const o={headers:{"Content-Type":"application/json","X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}};return o.method=this.context.ajaxOptions.method,this.context.options.method&&(o.method=this.context.options.method),o.method==="POST"||this.context.options.method==="PUT"?o.body=JSON.stringify(n):e+="?"+new URLSearchParams(form).toString(),fetch(e,o)}async successResponse(t,e){}async errorResponse(t,e){}setError(t){this.error.innerHTML=t}showError(){this.error.style.display="block"}hideError(){this.error&&(this.error.style.display="none")}createElement(t){const e=document.createElement(t);return console.log(e),e.classList.add("form-control"),this.context.required&&(e.required=this.context.required),this.add_focus(e),e}add_focus(t){this.context.element.addEventListener("shown",function(){t.focus()})}initText(){return this.context.value===""?(this.context.element.innerHTML=this.context.emptytext,!0):(this.context.element.innerHTML=this.context.value,!1)}initOptions(){}getValue(){return this.element.value}}class M extends c{create(){const t=this.createElement("input"),e=this.context.element.id+"_input";return t.type=this.context.type,t.id=e,t.autocomplete="off",t.placeholder=this.context.element.innerText,t.classList.add("form-control","form-control-md"),this.createContainer(t)}}class C extends c{create(){const t=this.createElement("textarea");return this.createContainer(t)}}class k extends c{create(){const t=this.createElement("select");return this.context.source.forEach(e=>{const n=document.createElement("option");n.value=e.value,n.innerHTML=e.text,t.append(n)}),this.createContainer(t)}initText(){if(this.context.element.innerHTML=this.context.emptytext,this.context.value!==""&&this.context.source.length>0)for(const t in this.context.source){const e=this.context.source[t];if(e.value==this.context.value)return this.context.element.innerHTML=e.text,!1}return!0}initOptions(){this.context.get_opt("source",[]),typeof this.context.source=="string"&&this.context.source!==""&&(this.context.source=JSON.parse(this.context.source))}}class f extends c{create(){const t=this.createElement("input");return t.type="date",this.createContainer(t)}initText(){return this.value===""?(this.context.element.innerHTML=this.context.emptytext,!0):(this.context.element.innerHTML=moment(this.context.value).format(this.context.viewformat),!1)}initOptions(){this.context.get_opt("format","YYYY-MM-DD"),this.context.get_opt("viewformat","YYYY-MM-DD")}}class D extends f{create(){const t=this.createElement("input");return t.type="datetime-local",this.createContainer(t)}initOptions(){this.context.get_opt("format","YYYY-MM-DD HH:mm"),this.context.get_opt("viewformat","YYYY-MM-DD HH:mm"),this.context.value=moment(this.context.value).format("YYYY-MM-DDTHH:mm")}}class Y{constructor(t,e={}){r(this,"modeElement",null);r(this,"typeElement",null);r(this,"mode",null);r(this,"type",null);r(this,"emptytext",null);r(this,"viewformat",null);r(this,"pk",null);r(this,"name",null);this.element=t,this.options=e,this.init_options(),this.typeElement=this.route_type(),this.typeElement.initOptions(),this.modeElement=this.route_mode(),this.modeElement.init(),this.init_text(),this.init_style(),this.disabled&&this.disable(),this.element.dispatchEvent(new CustomEvent("init"))}get_opt(t,e){var n,s;return this[t]=((n=this.element.dataset)==null?void 0:n[t])??((s=this.options)==null?void 0:s[t])??e}get_opt_bool(t,e){return this.get_opt(t,e),typeof this[t]!="boolean"&&(this[t]==="true"?this[t]=!0:this[t]==="false"?this[t]=!1:this[t]=e),this[t]}init_options(){var t,e,n,s;this.get_opt("value",this.element.innerHTML),this.get_opt("name",this.element.id),this.get_opt("pk",null),this.get_opt("title",""),this.get_opt("type","text"),this.get_opt("emptytext","Empty"),this.get_opt("mode","popup"),this.get_opt("url",null),this.get_opt("ajaxOptions",{}),this.ajaxOptions=Object.assign({method:"POST",dataType:"text"},this.ajaxOptions),this.get_opt_bool("send",!0),this.get_opt_bool("disabled",!1),this.get_opt_bool("required",!1),(t=this.options)!=null&&t.success&&typeof((e=this.options)==null?void 0:e.success)=="function"&&(this.success=this.options.success),(n=this.options)!=null&&n.error&&typeof((s=this.options)==null?void 0:s.error)=="function"&&(this.error=this.options.error)}init_text(){const t="dark-editable-element-empty";this.element.classList.remove(t),this.typeElement.initText()&&this.element.classList.add(t)}init_style(){this.element.classList.add("dark-editable-element")}route_mode(){switch(this.mode){default:throw new Error(`Mode ${this.mode} not found!`);case"popup":return new L(this);case"inline":return new T(this)}}route_type(){if(this.type.prototype instanceof c)return new this.type(this);if(typeof this.type=="string")switch(this.type){case"text":case"password":case"email":case"url":case"tel":case"number":case"range":case"time":return new M(this);case"textarea":return new C(this);case"select":return new k(this);case"date":return new f(this);case"datetime":return new D(this)}throw new Error("Undefined type")}async success(t,e){return await this.typeElement.successResponse(t,e)}async error(t,e){return await this.typeElement.errorResponse(t,e)}enable(){this.disabled=!1,this.element.classList.remove("dark-editable-element-disabled"),this.modeElement.enable()}disable(){this.disabled=!0,this.element.classList.add("dark-editable-element-disabled"),this.modeElement.enable()}setValue(t){this.value=t,this.init_text()}getValue(){return this.value}}function H(i){const t=parseInt(i.dataset.id),e=parseInt(i.dataset.group),n={pk:e,mode:"inline",url:"./api/v2/transactions/"+e,formType:"journal_description",journalId:t,method:"PUT"};new Y(i,n)}let I=function(){return{notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},groupProperties:{id:0,transactionType:"",transactionTypeTranslated:"",title:"",date:new Date},dateFields:["book_date","due_date","interest_date","invoice_date","payment_date","process_date"],metaFields:["external_id","internal_reference","sepa_batch_id","sepa_ct_id","sepa_ct_op","sepa_db","sepa_country","sepa_cc","sepa_ep","sepa_ci","external_url"],amounts:{},entries:[],pageProperties:{},formatMoney(i,t){return console.log("formatting",i,t),t===""&&(t="EUR"),b(i,t)},format(i){return g(i,h.t("config.date_time_fns"))},init(){this.notifications.wait.show=!0,this.notifications.wait.text=h.t("firefly.wait_loading_data");const i=window.location.href.split("/"),t=parseInt(i[i.length-1]);new E().show(t,{}).then(n=>{const s=n.data.data;this.groupProperties.id=parseInt(s.id),this.groupProperties.transactionType=s.attributes.transactions[0].type,this.groupProperties.transactionTypeTranslated=h.t("firefly."+s.attributes.transactions[0].type),this.groupProperties.title=s.attributes.title??s.attributes.transactions[0].description,this.entries=_(s.attributes.transactions,parseInt(s.id)),this.notifications.wait.show=!1}).then(()=>{for(let s in this.entries)if(this.entries.hasOwnProperty(s)){const o=this.entries[s].currency_code,a=this.entries[s].foreign_currency_code;this.amounts[o]===void 0&&(this.amounts[o]=0,this.amounts[o]+=parseFloat(this.entries[s].amount)),a!==null&&a!==""&&this.amounts[a]===void 0&&(this.amounts[a]=0,this.amounts[a]+=parseFloat(this.entries[s].foreign_amount)),parseInt(s)===0&&(this.groupProperties.date=this.entries[s].date)}const n=document.querySelectorAll(".journal_description");for(const s in n)if(n.hasOwnProperty(s)){const o=n[s];o.addEventListener("save",function(a){parseInt(a.currentTarget.dataset.id);const d=parseInt(a.currentTarget.dataset.group),u=parseInt(a.currentTarget.dataset.length),p=a.currentTarget.textContent;console.log(u),u===1&&(document.querySelector('.group_title[data-group="'+d+'"]').textContent=p,document.querySelector('.group_title_title[data-group="'+d+'"]').textContent=p)}),H(o)}}).catch(n=>{this.notifications.error.show=!0,this.notifications.error.text=n.message})}}},m={show:I,dates:v};function x(){Object.keys(m).forEach(i=>{console.log(`Loading page component "${i}"`);let t=m[i]();Alpine.data(i,()=>t)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),x()});window.bootstrapped&&(console.log("Loaded through window variable."),x());
+var y=Object.defineProperty;var w=(i,t,e)=>t in i?y(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var r=(i,t,e)=>(w(i,typeof t!="symbol"?t+"":t,e),e);import{d as v,f as b}from"./format-money-5a1aa122.js";import{f as g,i as h}from"./vendor-291d7a70.js";import{G as E}from"./get-a398221d.js";import{p as _}from"./parse-downloaded-splits-ce04c01c.js";import"./create-empty-split-70d17748.js";class l{constructor(t){if(this.constructor===l)throw new Error("It's abstract class");this.context=t}event_show(){this.context.typeElement.hideError(),this.context.typeElement.element.value=this.context.value,this.context.element.dispatchEvent(new CustomEvent("show"))}event_shown(){this.context.element.dispatchEvent(new CustomEvent("shown"))}event_hide(){this.context.element.dispatchEvent(new CustomEvent("hide"))}event_hidden(){this.context.element.dispatchEvent(new CustomEvent("hidden"))}init(){throw new Error("Method `init` not define!")}enable(){throw new Error("Method `enable` not define!")}disable(){throw new Error("Method `disable` not define!")}hide(){throw new Error("Method `hide` not define!")}}class L extends l{init(){this.popover=new bootstrap.Popover(this.context.element,{container:"body",content:this.context.typeElement.create(),html:!0,customClass:"dark-editable",title:this.context.title}),this.context.element.addEventListener("show.bs.popover",()=>{this.event_show()}),this.context.element.addEventListener("shown.bs.popover",()=>{this.event_shown()}),this.context.element.addEventListener("hide.bs.popover",()=>{this.event_hide()}),this.context.element.addEventListener("hidden.bs.popover",()=>{this.event_hidden()}),document.addEventListener("click",t=>{const e=t.target;if(e===this.popover.tip||e===this.context.element)return;let n=e;for(;n=n.parentNode;)if(n===this.popover.tip)return;this.hide()})}enable(){this.popover.enable()}disable(){this.popover.disable()}hide(){this.popover.hide()}}class T extends l{init(){const t=()=>{if(!this.context.disabled){const e=this.context.typeElement.create();this.event_show(),this.context.element.removeEventListener("click",t),this.context.element.innerHTML="",this.context.element.append(e),this.event_shown()}};this.context.element.addEventListener("click",t)}enable(){}disable(){}hide(){this.event_hide(),this.context.element.innerHTML=this.context.value,setTimeout(()=>{this.init(),this.event_hidden()},100)}}class c{constructor(t){r(this,"context",null);r(this,"element",null);r(this,"error",null);r(this,"form",null);r(this,"load",null);r(this,"buttonGroup",null);r(this,"buttons",{success:null,cancel:null});if(this.constructor===c)throw new Error("It's abstract class");this.context=t}create(){throw new Error("Method `create` not define!")}createContainer(t){const e=document.createElement("div");this.element=t,this.error=this.createContainerError(),this.form=this.createContainerForm(),this.load=this.createContainerLoad(),this.buttons.success=this.createButtonSuccess(),this.buttons.cancel=this.createButtonCancel();const n=document.createElement("div");n.classList.add("col-12");const s=document.createElement("label");s.classList.add("visually-hidden"),s.for=t.id,n.append(s,t);const o=document.createElement("div");return o.classList.add("col-12"),this.buttonGroup=this.createButtonGroup(),this.buttonGroup.append(this.buttons.success,this.buttons.cancel),o.append(this.buttonGroup),this.form.append(n,o),e.append(this.error,this.form),e}createButtonGroup(){const t=document.createElement("div");return t.classList.add("btn-group","btn-group-sm"),t}createContainerError(){const t=document.createElement("div");return t.classList.add("text-danger","fst-italic","mb-2","fw-bold"),t.style.display="none",t}createContainerForm(){const t=document.createElement("form");return t.classList.add("row","row-cols-lg-auto","g-3","align-items-center"),t.addEventListener("submit",async e=>{e.preventDefault();const n=this.getValue();if(this.context.send&&this.context.pk&&this.context.url&&this.context.value!==n){this.showLoad();let s;try{const o=await this.ajax(n);o.ok?s=await this.context.success(o,n):s=await this.context.error(o,n)||`${o.status} ${o.statusText}`}catch(o){console.error(o),s=o}s?(this.setError(s),this.showError()):(this.setError(null),this.hideError(),this.context.value=this.getValue(),this.context.modeElement.hide(),this.initText()),this.hideLoad()}else this.context.value=this.getValue(),this.context.modeElement.hide(),this.initText();this.context.element.dispatchEvent(new CustomEvent("save"))}),t}createContainerLoad(){const t=document.createElement("div");t.style.display="none",t.style.position="absolute",t.style.background="white",t.style.width="100%",t.style.height="100%",t.style.top=0,t.style.left=0;const e=document.createElement("div");return e.classList.add("dark-editable-loader"),t.append(e),t}createButton(){const t=document.createElement("button");return t.type="button",t.classList.add("btn","btn-sm"),t.style.color="transparent",t.style.textShadow="0 0 0 white",t}createButtonSuccess(){const t=this.createButton();return t.type="submit",t.classList.add("btn-success"),t.innerHTML="✔",t}createButtonCancel(){const t=this.createButton();t.classList.add("btn-danger");const e=document.createElement("div");return e.innerHTML="✖",t.append(e),t.addEventListener("click",()=>{this.context.modeElement.hide()}),t}hideLoad(){this.load.style.display="none"}showLoad(){this.load.style.display="block"}ajax(t){let e=this.context.url,n,s=!1;console.log(this.context),this.context.options.formType==="journal_description"&&(s=!0,n={transactions:[{transaction_journal_id:this.context.options.journalId,description:t}]}),s===!1&&console.error('Cannot deal with form type "'+this.context.formType+'"');const o={headers:{"Content-Type":"application/json","X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}};return o.method=this.context.ajaxOptions.method,this.context.options.method&&(o.method=this.context.options.method),o.method==="POST"||this.context.options.method==="PUT"?o.body=JSON.stringify(n):e+="?"+new URLSearchParams(form).toString(),fetch(e,o)}async successResponse(t,e){}async errorResponse(t,e){}setError(t){this.error.innerHTML=t}showError(){this.error.style.display="block"}hideError(){this.error&&(this.error.style.display="none")}createElement(t){const e=document.createElement(t);return console.log(e),e.classList.add("form-control"),this.context.required&&(e.required=this.context.required),this.add_focus(e),e}add_focus(t){this.context.element.addEventListener("shown",function(){t.focus()})}initText(){return this.context.value===""?(this.context.element.innerHTML=this.context.emptytext,!0):(this.context.element.innerHTML=this.context.value,!1)}initOptions(){}getValue(){return this.element.value}}class M extends c{create(){const t=this.createElement("input"),e=this.context.element.id+"_input";return t.type=this.context.type,t.id=e,t.autocomplete="off",t.placeholder=this.context.element.innerText,t.classList.add("form-control","form-control-md"),this.createContainer(t)}}class C extends c{create(){const t=this.createElement("textarea");return this.createContainer(t)}}class k extends c{create(){const t=this.createElement("select");return this.context.source.forEach(e=>{const n=document.createElement("option");n.value=e.value,n.innerHTML=e.text,t.append(n)}),this.createContainer(t)}initText(){if(this.context.element.innerHTML=this.context.emptytext,this.context.value!==""&&this.context.source.length>0)for(const t in this.context.source){const e=this.context.source[t];if(e.value==this.context.value)return this.context.element.innerHTML=e.text,!1}return!0}initOptions(){this.context.get_opt("source",[]),typeof this.context.source=="string"&&this.context.source!==""&&(this.context.source=JSON.parse(this.context.source))}}class f extends c{create(){const t=this.createElement("input");return t.type="date",this.createContainer(t)}initText(){return this.value===""?(this.context.element.innerHTML=this.context.emptytext,!0):(this.context.element.innerHTML=moment(this.context.value).format(this.context.viewformat),!1)}initOptions(){this.context.get_opt("format","YYYY-MM-DD"),this.context.get_opt("viewformat","YYYY-MM-DD")}}class D extends f{create(){const t=this.createElement("input");return t.type="datetime-local",this.createContainer(t)}initOptions(){this.context.get_opt("format","YYYY-MM-DD HH:mm"),this.context.get_opt("viewformat","YYYY-MM-DD HH:mm"),this.context.value=moment(this.context.value).format("YYYY-MM-DDTHH:mm")}}class Y{constructor(t,e={}){r(this,"modeElement",null);r(this,"typeElement",null);r(this,"mode",null);r(this,"type",null);r(this,"emptytext",null);r(this,"viewformat",null);r(this,"pk",null);r(this,"name",null);this.element=t,this.options=e,this.init_options(),this.typeElement=this.route_type(),this.typeElement.initOptions(),this.modeElement=this.route_mode(),this.modeElement.init(),this.init_text(),this.init_style(),this.disabled&&this.disable(),this.element.dispatchEvent(new CustomEvent("init"))}get_opt(t,e){var n,s;return this[t]=((n=this.element.dataset)==null?void 0:n[t])??((s=this.options)==null?void 0:s[t])??e}get_opt_bool(t,e){return this.get_opt(t,e),typeof this[t]!="boolean"&&(this[t]==="true"?this[t]=!0:this[t]==="false"?this[t]=!1:this[t]=e),this[t]}init_options(){var t,e,n,s;this.get_opt("value",this.element.innerHTML),this.get_opt("name",this.element.id),this.get_opt("pk",null),this.get_opt("title",""),this.get_opt("type","text"),this.get_opt("emptytext","Empty"),this.get_opt("mode","popup"),this.get_opt("url",null),this.get_opt("ajaxOptions",{}),this.ajaxOptions=Object.assign({method:"POST",dataType:"text"},this.ajaxOptions),this.get_opt_bool("send",!0),this.get_opt_bool("disabled",!1),this.get_opt_bool("required",!1),(t=this.options)!=null&&t.success&&typeof((e=this.options)==null?void 0:e.success)=="function"&&(this.success=this.options.success),(n=this.options)!=null&&n.error&&typeof((s=this.options)==null?void 0:s.error)=="function"&&(this.error=this.options.error)}init_text(){const t="dark-editable-element-empty";this.element.classList.remove(t),this.typeElement.initText()&&this.element.classList.add(t)}init_style(){this.element.classList.add("dark-editable-element")}route_mode(){switch(this.mode){default:throw new Error(`Mode ${this.mode} not found!`);case"popup":return new L(this);case"inline":return new T(this)}}route_type(){if(this.type.prototype instanceof c)return new this.type(this);if(typeof this.type=="string")switch(this.type){case"text":case"password":case"email":case"url":case"tel":case"number":case"range":case"time":return new M(this);case"textarea":return new C(this);case"select":return new k(this);case"date":return new f(this);case"datetime":return new D(this)}throw new Error("Undefined type")}async success(t,e){return await this.typeElement.successResponse(t,e)}async error(t,e){return await this.typeElement.errorResponse(t,e)}enable(){this.disabled=!1,this.element.classList.remove("dark-editable-element-disabled"),this.modeElement.enable()}disable(){this.disabled=!0,this.element.classList.add("dark-editable-element-disabled"),this.modeElement.enable()}setValue(t){this.value=t,this.init_text()}getValue(){return this.value}}function H(i){const t=parseInt(i.dataset.id),e=parseInt(i.dataset.group),n={pk:e,mode:"inline",url:"./api/v2/transactions/"+e,formType:"journal_description",journalId:t,method:"PUT"};new Y(i,n)}let I=function(){return{notifications:{error:{show:!1,text:"",url:""},success:{show:!1,text:"",url:""},wait:{show:!1,text:""}},groupProperties:{id:0,transactionType:"",transactionTypeTranslated:"",title:"",date:new Date},dateFields:["book_date","due_date","interest_date","invoice_date","payment_date","process_date"],metaFields:["external_id","internal_reference","sepa_batch_id","sepa_ct_id","sepa_ct_op","sepa_db","sepa_country","sepa_cc","sepa_ep","sepa_ci","external_url"],amounts:{},entries:[],pageProperties:{},formatMoney(i,t){return console.log("formatting",i,t),t===""&&(t="EUR"),b(i,t)},format(i){return g(i,h.t("config.date_time_fns"))},init(){this.notifications.wait.show=!0,this.notifications.wait.text=h.t("firefly.wait_loading_data");const i=window.location.href.split("/"),t=parseInt(i[i.length-1]);new E().show(t,{}).then(n=>{const s=n.data.data;this.groupProperties.id=parseInt(s.id),this.groupProperties.transactionType=s.attributes.transactions[0].type,this.groupProperties.transactionTypeTranslated=h.t("firefly."+s.attributes.transactions[0].type),this.groupProperties.title=s.attributes.title??s.attributes.transactions[0].description,this.entries=_(s.attributes.transactions,parseInt(s.id)),this.notifications.wait.show=!1}).then(()=>{for(let s in this.entries)if(this.entries.hasOwnProperty(s)){const o=this.entries[s].currency_code,a=this.entries[s].foreign_currency_code;this.amounts[o]===void 0&&(this.amounts[o]=0,this.amounts[o]+=parseFloat(this.entries[s].amount)),a!==null&&a!==""&&this.amounts[a]===void 0&&(this.amounts[a]=0,this.amounts[a]+=parseFloat(this.entries[s].foreign_amount)),parseInt(s)===0&&(this.groupProperties.date=this.entries[s].date)}const n=document.querySelectorAll(".journal_description");for(const s in n)if(n.hasOwnProperty(s)){const o=n[s];o.addEventListener("save",function(a){parseInt(a.currentTarget.dataset.id);const d=parseInt(a.currentTarget.dataset.group),u=parseInt(a.currentTarget.dataset.length),p=a.currentTarget.textContent;console.log(u),u===1&&(document.querySelector('.group_title[data-group="'+d+'"]').textContent=p,document.querySelector('.group_title_title[data-group="'+d+'"]').textContent=p)}),H(o)}}).catch(n=>{this.notifications.error.show=!0,this.notifications.error.text=n.message})}}},m={show:I,dates:v};function x(){Object.keys(m).forEach(i=>{console.log(`Loading page component "${i}"`);let t=m[i]();Alpine.data(i,()=>t)}),Alpine.start()}document.addEventListener("firefly-iii-bootstrapped",()=>{console.log("Loaded through event listener."),x()});window.bootstrapped&&(console.log("Loaded through window variable."),x());
diff --git a/public/build/assets/splice-errors-into-transactions-bdbe4899.js b/public/build/assets/splice-errors-into-transactions-5b51d5fd.js
similarity index 98%
rename from public/build/assets/splice-errors-into-transactions-bdbe4899.js
rename to public/build/assets/splice-errors-into-transactions-5b51d5fd.js
index 1023f2fb3e..9211e58153 100644
--- a/public/build/assets/splice-errors-into-transactions-bdbe4899.js
+++ b/public/build/assets/splice-errors-into-transactions-5b51d5fd.js
@@ -1 +1 @@
-import{a as l}from"./format-money-db0e5105.js";import{a as p,G as f}from"./get-d7bb5fb3.js";import{n as m,i as _}from"./vendor-0a0b4763.js";function x(r,t,a){let n=[];for(let o in r)if(r.hasOwnProperty(o)){const e=r[o];let i=!1,u={};t!==null&&t.hasOwnProperty(o)&&(i=!0,t[o]);let c={};(i&&u.description!==e.description||!i)&&(c.description=e.description),c.source_name=e.source_account.name,c.destination_name=e.destination_account.name,c.amount=e.amount,c.currency_code=e.currency_code,c.date=e.date,c.interest_date=e.interest_date,c.book_date=e.book_date,c.process_date=e.process_date,c.due_date=e.due_date,c.payment_date=e.payment_date,c.invoice_date=e.invoice_date,c.budget_id=e.budget_id,c.category_name=e.category_name,c.piggy_bank_id=e.piggy_bank_id,c.bill_id=e.bill_id,c.tags=e.tags,c.notes=e.notes,c.internal_reference=e.internal_reference,c.external_url=e.external_url,c.store_location=!1,e.hasLocation&&(c.store_location=!0,c.longitude=e.longitude.toString(),c.latitude=e.latitude.toString(),c.zoom_level=e.zoomLevel),typeof e.foreign_currency_code<"u"&&e.foreign_currency_code.toString()!==""&&(c.foreign_currency_code=e.foreign_currency_code,typeof e.foreign_amount<"u"&&e.foreign_amount.toString()!==""&&(c.foreign_amount=e.foreign_amount),(typeof e.foreign_amount>"u"||e.foreign_amount.toString()==="")&&(delete c.foreign_amount,delete c.foreign_currency_code)),typeof e.source_account.id<"u"&&e.source_account.id.toString()!==""&&(c.source_id=e.source_account.id),typeof e.destination_account.id<"u"&&e.destination_account.id.toString()!==""&&(c.destination_id=e.destination_account.id),c.type=a,n.push(c)}return n}let g=class{list(t){return l.get("/api/v2/currencies",{params:t})}};function C(){let r={page:1,limit:1337};return new g().list(r).then(a=>{let n={defaultCurrency:{},nativeCurrencies:[],foreignCurrencies:[],enabledCurrencies:[]};n.foreignCurrencies.push({id:0,name:"(no foreign currency)",code:"",default:!1,symbol:"",decimal_places:2});for(let o in a.data.data)if(a.data.data.hasOwnProperty(o)){let e=a.data.data[o];if(e.attributes.enabled){let i={id:e.id,name:e.attributes.name,code:e.attributes.code,default:e.attributes.default,symbol:e.attributes.symbol,decimal_places:e.attributes.decimal_places};i.default&&(n.defaultCurrency=i),n.enabledCurrencies.push(i),n.nativeCurrencies.push(i),n.foreignCurrencies.push(i)}}return n})}class y{list(t){return l.get("/api/v2/budgets",{params:t})}}function $(){let r={page:1,limit:1337};return new y().list(r).then(a=>{let n=[{id:0,name:"(no budget)"}];for(let o in a.data.data)if(a.data.data.hasOwnProperty(o)){let e=a.data.data[o],i={id:e.id,name:e.attributes.name};n.push(i)}return n})}function O(){let r={page:1,limit:1337};return new p().list(r).then(a=>{let n={0:{id:0,name:"(no group)",order:0,piggyBanks:[{id:0,name:"(no piggy bank)",order:0}]}};for(let o in a.data.data)if(a.data.data.hasOwnProperty(o)){let e=a.data.data[o],i=e.attributes.object_group_id??"0",u=e.attributes.object_group_title??"(no group)",c={id:e.id,name:e.attributes.name,order:e.attributes.order};n.hasOwnProperty(i)||(n[i]={id:i,name:u,order:e.attributes.object_group_order??0,piggyBanks:[]}),n[i].piggyBanks.push(c),n[i].piggyBanks.sort((d,s)=>d.order-s.order)}return Object.keys(n).sort().reduce((o,e)=>(o[e]=n[e],o),{})})}function P(){let r={page:1,limit:1337};return new f().list(r).then(a=>{let n={0:{id:0,name:"(no group)",order:0,subscriptions:[{id:0,name:"(no subscription)",order:0}]}};for(let o in a.data.data)if(a.data.data.hasOwnProperty(o)){let e=a.data.data[o],i=e.attributes.object_group_id??"0",u=e.attributes.object_group_title??"(no group)",c={id:e.id,name:e.attributes.name,order:e.attributes.order};n.hasOwnProperty(i)||(n[i]={id:i,name:u,order:e.attributes.object_group_order??0,subscriptions:[]}),n[i].subscriptions.push(c),n[i].subscriptions.sort((d,s)=>d.order-s.order)}return Object.keys(n).sort().reduce((o,e)=>(o[e]=n[e],o),{})})}function j(){return{description:"/api/v2/autocomplete/transaction-descriptions",account:"/api/v2/autocomplete/accounts",category:"/api/v2/autocomplete/categories",tag:"/api/v2/autocomplete/tags"}}function A(r){const t={server:r.serverUrl,serverParams:{},fetchOptions:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}},hiddenInput:!0,highlightTyped:!0,liveServer:!0};typeof r.filters<"u"&&r.filters.length>0&&(t.serverParams.types=r.filters),typeof r.onRenderItem<"u"&&r.onRenderItem!==null&&(t.onRenderItem=r.onRenderItem),r.valueField&&(t.valueField=r.valueField),r.labelField&&(t.labelField=r.labelField),r.onSelectItem&&(t.onSelectItem=r.onSelectItem),r.onChange&&(t.onChange=r.onChange),r.hiddenValue&&(t.hiddenValue=r.hiddenValue),m.init(r.selector,t)}function q(r,t){const a=parseInt(t._searchInput.attributes["data-index"].value);if(typeof r<"u"&&r.name){document.querySelector("#form")._x_dataStack[0].$data.entries[a].category_name=r.name;return}document.querySelector("#form")._x_dataStack[0].$data.entries[a].category_name=t._searchInput.value}function E(r,t){const a=parseInt(t._searchInput.attributes["data-index"].value);if(typeof r<"u"&&r.description){document.querySelector("#form")._x_dataStack[0].$data.entries[a].description=r.description;return}document.querySelector("#form")._x_dataStack[0].$data.entries[a].description=t._searchInput.value}function B(r,t){if(typeof r>"u"){const a=parseInt(t._searchInput.attributes["data-index"].value);if(document.querySelector("#form")._x_dataStack[0].$data.entries[a].destination_account.name===t._searchInput.value){console.warn('Ignore hallucinated destination account name change to "'+t._searchInput.value+'"');return}document.querySelector("#form")._x_dataStack[0].$data.entries[a].destination_account={name:t._searchInput.value,alpine_name:t._searchInput.value},document.querySelector("#form")._x_dataStack[0].changedDestinationAccount()}}function F(r,t){const a=parseInt(t._searchInput.attributes["data-index"].value);document.querySelector("#form")._x_dataStack[0].$data.entries[a].destination_account={id:r.id,name:r.name,alpine_name:r.name,type:r.type,currency_code:r.currency_code},document.querySelector("#form")._x_dataStack[0].changedDestinationAccount()}function G(r,t){if(typeof r>"u"){const a=parseInt(t._searchInput.attributes["data-index"].value);if(document.querySelector("#form")._x_dataStack[0].$data.entries[a].source_account.name===t._searchInput.value)return;document.querySelector("#form")._x_dataStack[0].$data.entries[a].source_account={name:t._searchInput.value,alpine_name:t._searchInput.value},document.querySelector("#form")._x_dataStack[0].changedSourceAccount()}}function R(r,t){const a=parseInt(t._searchInput.attributes["data-index"].value);document.querySelector("#form")._x_dataStack[0].$data.entries[a].source_account={id:r.id,name:r.name,alpine_name:r.name,type:r.type,currency_code:r.currency_code},document.querySelector("#form")._x_dataStack[0].changedSourceAccount()}class h{post(t,a,n){let o="/api/v1/attachments";return l.post(o,{filename:t,attachable_type:a,attachable_id:n})}upload(t,a){let n="./api/v1/attachments/"+t+"/upload";return axios.post(n,a)}}let b=function(r){let t=r.length,a=0,n=!1;for(const o in r)if(r.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294&&n===!1){let e=new h;e.post(r[o].name,"TransactionJournal",r[o].journal).then(i=>{let u=parseInt(i.data.data.id);e.upload(u,r[o].content).then(c=>{if(a++,a===t){const d=new CustomEvent("upload-success",{some:"details"});document.dispatchEvent(d)}}).catch(c=>{console.error("Could not upload"),console.error(c),a++;const d=new CustomEvent("upload-failed",{error:c});document.dispatchEvent(d),n=!0})}).catch(i=>{console.error("Could not create upload."),console.error(i),a++;const u=new CustomEvent("upload-failed",{error:i});document.dispatchEvent(u),n=!0})}};function T(r,t){t=t.reverse();let a=[],n=0,o=[],e=document.querySelectorAll('input[name="attachments[]"]');for(const i in e)if(e.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294)for(const u in e[i].files)e[i].files.hasOwnProperty(u)&&/^0$|^[1-9]\d*$/.test(u)&&u<=4294967294&&(a.push({journal:t[i].transaction_journal_id,file:e[i].files[u]}),n++);for(const i in a)a.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294&&function(u,c){let d=new FileReader;d.onloadend=function(s){s.target.readyState===FileReader.DONE&&(o.push({name:a[c].file.name,journal:a[c].journal,content:new Blob([s.target.result])}),o.length===n&&b(o))},d.readAsArrayBuffer(u.file)}(a[i],i);return n}function v(r,t,a){let n=[];for(let o in a)a.hasOwnProperty(o)&&n.push(a[o].replace(r,t));return n}function D(r,t){let a,n,o;for(const e in r)if(r.hasOwnProperty(e)){if(e==="group_title"){console.error("Cannot handle error in group title.");continue}if(a=parseInt(e.split(".")[1]),n=e.split(".")[2],o=v(e,n,r[e]),!t.hasOwnProperty(a)){console.error("Cannot handle errors in index #"+a);continue}switch(n){case"currency_code":case"foreign_currency_code":case"category_name":case"piggy_bank_id":case"notes":case"internal_reference":case"external_url":case"latitude":case"longitude":case"zoom_level":case"interest_date":case"book_date":case"process_date":case"due_date":case"payment_date":case"invoice_date":case"amount":case"date":case"budget_id":case"bill_id":case"description":case"tags":t[a].errors[n]=o;break;case"source_name":case"source_id":t[a].errors.source_account=t[a].errors.source_account.concat(o);break;case"type":t[a].errors.source_account=t[a].errors.source_account.concat([_.t("validation.bad_type_source")]),t[a].errors.destination_account=t[a].errors.destination_account.concat([_.t("validation.bad_type_destination")]);break;case"destination_name":case"destination_id":t[a].errors.destination_account=t[a].errors.destination_account.concat(o);break;case"foreign_amount":case"foreign_currency_id":t[a].errors.foreign_amount=t[a].errors.foreign_amount.concat(o);break}typeof t[a]<"u"&&(t[a].errors.source_account=Array.from(new Set(t[a].errors.source_account)),t[a].errors.destination_account=Array.from(new Set(t[a].errors.destination_account)))}return console.log(t[0].errors),t}export{$ as a,O as b,P as c,T as d,A as e,G as f,R as g,B as h,F as i,j,q as k,C as l,E as m,x as p,D as s};
+import{a as l}from"./format-money-5a1aa122.js";import{a as p,G as f}from"./get-316f0281.js";import{n as m,i as _}from"./vendor-291d7a70.js";function x(r,t,a){let n=[];for(let o in r)if(r.hasOwnProperty(o)){const e=r[o];let i=!1,u={};t!==null&&t.hasOwnProperty(o)&&(i=!0,t[o]);let c={};(i&&u.description!==e.description||!i)&&(c.description=e.description),c.source_name=e.source_account.name,c.destination_name=e.destination_account.name,c.amount=e.amount,c.currency_code=e.currency_code,c.date=e.date,c.interest_date=e.interest_date,c.book_date=e.book_date,c.process_date=e.process_date,c.due_date=e.due_date,c.payment_date=e.payment_date,c.invoice_date=e.invoice_date,c.budget_id=e.budget_id,c.category_name=e.category_name,c.piggy_bank_id=e.piggy_bank_id,c.bill_id=e.bill_id,c.tags=e.tags,c.notes=e.notes,c.internal_reference=e.internal_reference,c.external_url=e.external_url,c.store_location=!1,e.hasLocation&&(c.store_location=!0,c.longitude=e.longitude.toString(),c.latitude=e.latitude.toString(),c.zoom_level=e.zoomLevel),typeof e.foreign_currency_code<"u"&&e.foreign_currency_code.toString()!==""&&(c.foreign_currency_code=e.foreign_currency_code,typeof e.foreign_amount<"u"&&e.foreign_amount.toString()!==""&&(c.foreign_amount=e.foreign_amount),(typeof e.foreign_amount>"u"||e.foreign_amount.toString()==="")&&(delete c.foreign_amount,delete c.foreign_currency_code)),typeof e.source_account.id<"u"&&e.source_account.id.toString()!==""&&(c.source_id=e.source_account.id),typeof e.destination_account.id<"u"&&e.destination_account.id.toString()!==""&&(c.destination_id=e.destination_account.id),c.type=a,n.push(c)}return n}let g=class{list(t){return l.get("/api/v2/currencies",{params:t})}};function C(){let r={page:1,limit:1337};return new g().list(r).then(a=>{let n={defaultCurrency:{},nativeCurrencies:[],foreignCurrencies:[],enabledCurrencies:[]};n.foreignCurrencies.push({id:0,name:"(no foreign currency)",code:"",default:!1,symbol:"",decimal_places:2});for(let o in a.data.data)if(a.data.data.hasOwnProperty(o)){let e=a.data.data[o];if(e.attributes.enabled){let i={id:e.id,name:e.attributes.name,code:e.attributes.code,default:e.attributes.default,symbol:e.attributes.symbol,decimal_places:e.attributes.decimal_places};i.default&&(n.defaultCurrency=i),n.enabledCurrencies.push(i),n.nativeCurrencies.push(i),n.foreignCurrencies.push(i)}}return n})}class y{list(t){return l.get("/api/v2/budgets",{params:t})}}function $(){let r={page:1,limit:1337};return new y().list(r).then(a=>{let n=[{id:0,name:"(no budget)"}];for(let o in a.data.data)if(a.data.data.hasOwnProperty(o)){let e=a.data.data[o],i={id:e.id,name:e.attributes.name};n.push(i)}return n})}function O(){let r={page:1,limit:1337};return new p().list(r).then(a=>{let n={0:{id:0,name:"(no group)",order:0,piggyBanks:[{id:0,name:"(no piggy bank)",order:0}]}};for(let o in a.data.data)if(a.data.data.hasOwnProperty(o)){let e=a.data.data[o],i=e.attributes.object_group_id??"0",u=e.attributes.object_group_title??"(no group)",c={id:e.id,name:e.attributes.name,order:e.attributes.order};n.hasOwnProperty(i)||(n[i]={id:i,name:u,order:e.attributes.object_group_order??0,piggyBanks:[]}),n[i].piggyBanks.push(c),n[i].piggyBanks.sort((d,s)=>d.order-s.order)}return Object.keys(n).sort().reduce((o,e)=>(o[e]=n[e],o),{})})}function P(){let r={page:1,limit:1337};return new f().list(r).then(a=>{let n={0:{id:0,name:"(no group)",order:0,subscriptions:[{id:0,name:"(no subscription)",order:0}]}};for(let o in a.data.data)if(a.data.data.hasOwnProperty(o)){let e=a.data.data[o],i=e.attributes.object_group_id??"0",u=e.attributes.object_group_title??"(no group)",c={id:e.id,name:e.attributes.name,order:e.attributes.order};n.hasOwnProperty(i)||(n[i]={id:i,name:u,order:e.attributes.object_group_order??0,subscriptions:[]}),n[i].subscriptions.push(c),n[i].subscriptions.sort((d,s)=>d.order-s.order)}return Object.keys(n).sort().reduce((o,e)=>(o[e]=n[e],o),{})})}function j(){return{description:"/api/v2/autocomplete/transaction-descriptions",account:"/api/v2/autocomplete/accounts",category:"/api/v2/autocomplete/categories",tag:"/api/v2/autocomplete/tags"}}function A(r){const t={server:r.serverUrl,serverParams:{},fetchOptions:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content}},hiddenInput:!0,highlightTyped:!0,liveServer:!0};typeof r.filters<"u"&&r.filters.length>0&&(t.serverParams.types=r.filters),typeof r.onRenderItem<"u"&&r.onRenderItem!==null&&(t.onRenderItem=r.onRenderItem),r.valueField&&(t.valueField=r.valueField),r.labelField&&(t.labelField=r.labelField),r.onSelectItem&&(t.onSelectItem=r.onSelectItem),r.onChange&&(t.onChange=r.onChange),r.hiddenValue&&(t.hiddenValue=r.hiddenValue),m.init(r.selector,t)}function q(r,t){const a=parseInt(t._searchInput.attributes["data-index"].value);if(typeof r<"u"&&r.name){document.querySelector("#form")._x_dataStack[0].$data.entries[a].category_name=r.name;return}document.querySelector("#form")._x_dataStack[0].$data.entries[a].category_name=t._searchInput.value}function E(r,t){const a=parseInt(t._searchInput.attributes["data-index"].value);if(typeof r<"u"&&r.description){document.querySelector("#form")._x_dataStack[0].$data.entries[a].description=r.description;return}document.querySelector("#form")._x_dataStack[0].$data.entries[a].description=t._searchInput.value}function B(r,t){if(typeof r>"u"){const a=parseInt(t._searchInput.attributes["data-index"].value);if(document.querySelector("#form")._x_dataStack[0].$data.entries[a].destination_account.name===t._searchInput.value){console.warn('Ignore hallucinated destination account name change to "'+t._searchInput.value+'"');return}document.querySelector("#form")._x_dataStack[0].$data.entries[a].destination_account={name:t._searchInput.value,alpine_name:t._searchInput.value},document.querySelector("#form")._x_dataStack[0].changedDestinationAccount()}}function F(r,t){const a=parseInt(t._searchInput.attributes["data-index"].value);document.querySelector("#form")._x_dataStack[0].$data.entries[a].destination_account={id:r.id,name:r.name,alpine_name:r.name,type:r.type,currency_code:r.currency_code},document.querySelector("#form")._x_dataStack[0].changedDestinationAccount()}function G(r,t){if(typeof r>"u"){const a=parseInt(t._searchInput.attributes["data-index"].value);if(document.querySelector("#form")._x_dataStack[0].$data.entries[a].source_account.name===t._searchInput.value)return;document.querySelector("#form")._x_dataStack[0].$data.entries[a].source_account={name:t._searchInput.value,alpine_name:t._searchInput.value},document.querySelector("#form")._x_dataStack[0].changedSourceAccount()}}function R(r,t){const a=parseInt(t._searchInput.attributes["data-index"].value);document.querySelector("#form")._x_dataStack[0].$data.entries[a].source_account={id:r.id,name:r.name,alpine_name:r.name,type:r.type,currency_code:r.currency_code},document.querySelector("#form")._x_dataStack[0].changedSourceAccount()}class h{post(t,a,n){let o="/api/v1/attachments";return l.post(o,{filename:t,attachable_type:a,attachable_id:n})}upload(t,a){let n="./api/v1/attachments/"+t+"/upload";return axios.post(n,a)}}let b=function(r){let t=r.length,a=0,n=!1;for(const o in r)if(r.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294&&n===!1){let e=new h;e.post(r[o].name,"TransactionJournal",r[o].journal).then(i=>{let u=parseInt(i.data.data.id);e.upload(u,r[o].content).then(c=>{if(a++,a===t){const d=new CustomEvent("upload-success",{some:"details"});document.dispatchEvent(d)}}).catch(c=>{console.error("Could not upload"),console.error(c),a++;const d=new CustomEvent("upload-failed",{error:c});document.dispatchEvent(d),n=!0})}).catch(i=>{console.error("Could not create upload."),console.error(i),a++;const u=new CustomEvent("upload-failed",{error:i});document.dispatchEvent(u),n=!0})}};function T(r,t){t=t.reverse();let a=[],n=0,o=[],e=document.querySelectorAll('input[name="attachments[]"]');for(const i in e)if(e.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294)for(const u in e[i].files)e[i].files.hasOwnProperty(u)&&/^0$|^[1-9]\d*$/.test(u)&&u<=4294967294&&(a.push({journal:t[i].transaction_journal_id,file:e[i].files[u]}),n++);for(const i in a)a.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294&&function(u,c){let d=new FileReader;d.onloadend=function(s){s.target.readyState===FileReader.DONE&&(o.push({name:a[c].file.name,journal:a[c].journal,content:new Blob([s.target.result])}),o.length===n&&b(o))},d.readAsArrayBuffer(u.file)}(a[i],i);return n}function v(r,t,a){let n=[];for(let o in a)a.hasOwnProperty(o)&&n.push(a[o].replace(r,t));return n}function D(r,t){let a,n,o;for(const e in r)if(r.hasOwnProperty(e)){if(e==="group_title"){console.error("Cannot handle error in group title.");continue}if(a=parseInt(e.split(".")[1]),n=e.split(".")[2],o=v(e,n,r[e]),!t.hasOwnProperty(a)){console.error("Cannot handle errors in index #"+a);continue}switch(n){case"currency_code":case"foreign_currency_code":case"category_name":case"piggy_bank_id":case"notes":case"internal_reference":case"external_url":case"latitude":case"longitude":case"zoom_level":case"interest_date":case"book_date":case"process_date":case"due_date":case"payment_date":case"invoice_date":case"amount":case"date":case"budget_id":case"bill_id":case"description":case"tags":t[a].errors[n]=o;break;case"source_name":case"source_id":t[a].errors.source_account=t[a].errors.source_account.concat(o);break;case"type":t[a].errors.source_account=t[a].errors.source_account.concat([_.t("validation.bad_type_source")]),t[a].errors.destination_account=t[a].errors.destination_account.concat([_.t("validation.bad_type_destination")]);break;case"destination_name":case"destination_id":t[a].errors.destination_account=t[a].errors.destination_account.concat(o);break;case"foreign_amount":case"foreign_currency_id":t[a].errors.foreign_amount=t[a].errors.foreign_amount.concat(o);break}typeof t[a]<"u"&&(t[a].errors.source_account=Array.from(new Set(t[a].errors.source_account)),t[a].errors.destination_account=Array.from(new Set(t[a].errors.destination_account)))}return console.log(t[0].errors),t}export{$ as a,O as b,P as c,T as d,A as e,G as f,R as g,B as h,F as i,j,q as k,C as l,E as m,x as p,D as s};
diff --git a/public/build/assets/vendor-0a0b4763.js b/public/build/assets/vendor-291d7a70.js
similarity index 97%
rename from public/build/assets/vendor-0a0b4763.js
rename to public/build/assets/vendor-291d7a70.js
index c4566ec5f5..99cb66e9ae 100644
--- a/public/build/assets/vendor-0a0b4763.js
+++ b/public/build/assets/vendor-291d7a70.js
@@ -9,15 +9,15 @@ var co=Object.defineProperty;var uo=(s,e,t)=>e in s?co(s,e,{enumerable:!0,config
`+r+"]":"["+a.join(",")+"]",gap=r,n}if(rep&&typeof rep=="object")for(o=rep.length,t=0;t<o;t+=1)typeof rep[t]=="string"&&(i=rep[t],n=str(i,l),n&&a.push(quote(i)+(gap?": ":":")+n));else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(n=str(i,l),n&&a.push(quote(i)+(gap?": ":":")+n));return n=a.length===0?"{}":gap?`{
`+gap+a.join(`,
`+gap)+`
-`+r+"}":"{"+a.join(",")+"}",gap=r,n}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(s,e,t){var i;if(gap="",indent="",typeof t=="number")for(i=0;i<t;i+=1)indent+=" ";else typeof t=="string"&&(indent=t);if(rep=e,e&&typeof e!="function"&&(typeof e!="object"||typeof e.length!="number"))throw new Error("JSON.stringify");return str("",{"":s})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(s,e){var t,i,n=s[e];if(n&&typeof n=="object")for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i=walk(n,t),i!==void 0?n[t]=i:delete n[t]);return reviver.call(s,e,n)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(s){return"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()),json2$1}var json2=json2Plugin;function json2Plugin(){return requireJson2(),{}}var engine=storeEngine,storages=all,plugins=[json2],store_legacy=engine.createStore(storages,plugins);const store$1=getDefaultExportFromCjs(store_legacy);var util=util$7,bind$1=util.bind,each$2=util.each,create=util.create,slice$1=util.slice,events=eventsPlugin$1;function eventsPlugin$1(){var s=_newPubSub();return{watch:e,unwatch:t,once:i,set:n,remove:o,clearAll:r};function e(a,l,d){return s.on(l,bind$1(this,d))}function t(a,l){s.off(l)}function i(a,l,d){s.once(l,bind$1(this,d))}function n(a,l,d){var h=this.get(l);a(),s.fire(l,d,h)}function o(a,l){var d=this.get(l);a(),s.fire(l,void 0,d)}function r(a){var l={};this.each(function(d,h){l[h]=d}),a(),each$2(l,function(d,h){s.fire(h,void 0,d)})}}function _newPubSub(){return create(_pubSubBase,{_id:0,_subSignals:{},_subCallbacks:{}})}var _pubSubBase={_id:null,_subCallbacks:null,_subSignals:null,on:function(s,e){return this._subCallbacks[s]||(this._subCallbacks[s]={}),this._id+=1,this._subCallbacks[s][this._id]=e,this._subSignals[this._id]=s,this._id},off:function(s){var e=this._subSignals[s];delete this._subCallbacks[e][s],delete this._subSignals[s]},once:function(s,e){var t=this.on(s,bind$1(this,function(){e.apply(this,arguments),this.off(t)}))},fire:function(s){var e=slice$1(arguments,1);each$2(this._subCallbacks[s],function(t){t.apply(this,e)})}},eventsPlugin=events,observe=[eventsPlugin,observePlugin];function observePlugin(){return{observe:s,unobserve:e};function s(t,i,n){var o=this.watch(i,n);return n(this.get(i)),o}function e(t,i){this.unwatch(i)}}const observePlugin$1=getDefaultExportFromCjs(observe);var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(s){queueJob(s)}function queueJob(s){queue.includes(s)||queue.push(s),queueFlush()}function dequeueJob(s){let e=queue.indexOf(s);e!==-1&&e>lastFlushedIndex&&queue.splice(e,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let s=0;s<queue.length;s++)queue[s](),lastFlushedIndex=s;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect$3,release,raw,shouldSchedule=!0;function disableEffectScheduling(s){shouldSchedule=!1,s(),shouldSchedule=!0}function setReactivityEngine(s){reactive=s.reactive,release=s.release,effect$3=e=>s.effect(e,{scheduler:t=>{shouldSchedule?scheduler(t):t()}}),raw=s.raw}function overrideEffect(s){effect$3=s}function elementBoundEffect(s){let e=()=>{};return[i=>{let n=effect$3(i);return s._x_effects||(s._x_effects=new Set,s._x_runEffects=()=>{s._x_effects.forEach(o=>o())}),s._x_effects.add(n),e=()=>{n!==void 0&&(s._x_effects.delete(n),release(n))},n},()=>{e()}]}function watch(s,e){let t=!0,i,n=effect$3(()=>{let o=s();JSON.stringify(o),t?i=o:queueMicrotask(()=>{e(o,i),i=o}),t=!1});return()=>release(n)}function dispatch(s,e,t={}){s.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0,cancelable:!0}))}function walk(s,e){if(typeof ShadowRoot=="function"&&s instanceof ShadowRoot){Array.from(s.children).forEach(n=>walk(n,e));return}let t=!1;if(e(s,()=>t=!0),t)return;let i=s.firstElementChild;for(;i;)walk(i,e),i=i.nextElementSibling}function warn(s,...e){console.warn(`Alpine Warning: ${s}`,...e)}var started=!1;function start$1(){started&&warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),started=!0,document.body||warn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),dispatch(document,"alpine:init"),dispatch(document,"alpine:initializing"),startObservingMutations(),onElAdded(e=>initTree(e,walk)),onElRemoved(e=>destroyTree(e)),onAttributesAdded((e,t)=>{directives(e,t).forEach(i=>i())});let s=e=>!closestRoot(e.parentElement,!0);Array.from(document.querySelectorAll(allSelectors().join(","))).filter(s).forEach(e=>{initTree(e)}),dispatch(document,"alpine:initialized")}var rootSelectorCallbacks=[],initSelectorCallbacks=[];function rootSelectors(){return rootSelectorCallbacks.map(s=>s())}function allSelectors(){return rootSelectorCallbacks.concat(initSelectorCallbacks).map(s=>s())}function addRootSelector(s){rootSelectorCallbacks.push(s)}function addInitSelector(s){initSelectorCallbacks.push(s)}function closestRoot(s,e=!1){return findClosest(s,t=>{if((e?allSelectors():rootSelectors()).some(n=>t.matches(n)))return!0})}function findClosest(s,e){if(s){if(e(s))return s;if(s._x_teleportBack&&(s=s._x_teleportBack),!!s.parentElement)return findClosest(s.parentElement,e)}}function isRoot(s){return rootSelectors().some(e=>s.matches(e))}var initInterceptors=[];function interceptInit(s){initInterceptors.push(s)}function initTree(s,e=walk,t=()=>{}){deferHandlingDirectives(()=>{e(s,(i,n)=>{if(i._x_inited){i._x_ignore&&n();return}t(i,n),initInterceptors.forEach(o=>o(i,n)),directives(i,i.attributes).forEach(o=>o()),i._x_ignore?n():i._x_inited=!0})})}function destroyTree(s,e=walk){e(s,t=>{cleanupAttributes(t),cleanupElement(t),delete t._x_inited})}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(s){onElAddeds.push(s)}function onElRemoved(s,e){typeof e=="function"?(s._x_cleanups||(s._x_cleanups=[]),s._x_cleanups.push(e)):(e=s,onElRemoveds.push(e))}function onAttributesAdded(s){onAttributeAddeds.push(s)}function onAttributeRemoved(s,e,t){s._x_attributeCleanups||(s._x_attributeCleanups={}),s._x_attributeCleanups[e]||(s._x_attributeCleanups[e]=[]),s._x_attributeCleanups[e].push(t)}function cleanupAttributes(s,e){s._x_attributeCleanups&&Object.entries(s._x_attributeCleanups).forEach(([t,i])=>{(e===void 0||e.includes(t))&&(i.forEach(n=>n()),delete s._x_attributeCleanups[t])})}function cleanupElement(s){if(s._x_cleanups)for(;s._x_cleanups.length;)s._x_cleanups.pop()()}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var queuedMutations=[];function flushObserver(){let s=observer.takeRecords();queuedMutations.push(()=>s.length>0&&onMutate(s));let e=queuedMutations.length;queueMicrotask(()=>{if(queuedMutations.length===e)for(;queuedMutations.length>0;)queuedMutations.shift()()})}function mutateDom(s){if(!currentlyObserving)return s();stopObservingMutations();let e=s();return startObservingMutations(),e}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(s){if(isCollecting){deferredMutations=deferredMutations.concat(s);return}let e=new Set,t=new Set,i=new Map,n=new Map;for(let o=0;o<s.length;o++)if(!s[o].target._x_ignoreMutationObserver&&(s[o].type==="childList"&&(s[o].addedNodes.forEach(r=>r.nodeType===1&&e.add(r)),s[o].removedNodes.forEach(r=>r.nodeType===1&&t.add(r))),s[o].type==="attributes")){let r=s[o].target,a=s[o].attributeName,l=s[o].oldValue,d=()=>{i.has(r)||i.set(r,[]),i.get(r).push({name:a,value:r.getAttribute(a)})},h=()=>{n.has(r)||n.set(r,[]),n.get(r).push(a)};r.hasAttribute(a)&&l===null?d():r.hasAttribute(a)?(h(),d()):h()}n.forEach((o,r)=>{cleanupAttributes(r,o)}),i.forEach((o,r)=>{onAttributeAddeds.forEach(a=>a(r,o))});for(let o of t)e.has(o)||(onElRemoveds.forEach(r=>r(o)),destroyTree(o));e.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of e)o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,onElAddeds.forEach(r=>r(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);e.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),e=null,t=null,i=null,n=null}function scope(s){return mergeProxies(closestDataStack(s))}function addScopeToNode(s,e,t){return s._x_dataStack=[e,...closestDataStack(t||s)],()=>{s._x_dataStack=s._x_dataStack.filter(i=>i!==e)}}function closestDataStack(s){return s._x_dataStack?s._x_dataStack:typeof ShadowRoot=="function"&&s instanceof ShadowRoot?closestDataStack(s.host):s.parentNode?closestDataStack(s.parentNode):[]}function mergeProxies(s){return new Proxy({objects:s},mergeProxyTrap)}var mergeProxyTrap={ownKeys({objects:s}){return Array.from(new Set(s.flatMap(e=>Object.keys(e))))},has({objects:s},e){return e==Symbol.unscopables?!1:s.some(t=>Reflect.has(t,e))},get({objects:s},e,t){return e=="toJSON"?collapseProxies:Reflect.get(s.find(i=>Reflect.has(i,e))||{},e,t)},set({objects:s},e,t,i){const n=s.find(r=>Reflect.has(r,e))||s[s.length-1],o=Object.getOwnPropertyDescriptor(n,e);return o!=null&&o.set&&(o!=null&&o.get)?Reflect.set(n,e,t,i):Reflect.set(n,e,t)}};function collapseProxies(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function initInterceptors2(s){let e=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,t=(i,n="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([o,{value:r,enumerable:a}])=>{if(a===!1||r===void 0||typeof r=="object"&&r!==null&&r.__v_skip)return;let l=n===""?o:`${n}.${o}`;typeof r=="object"&&r!==null&&r._x_interceptor?i[o]=r.initialize(s,l,o):e(r)&&r!==i&&!(r instanceof Element)&&t(r,l)})};return t(s)}function interceptor(s,e=()=>{}){let t={initialValue:void 0,_x_interceptor:!0,initialize(i,n,o){return s(this.initialValue,()=>get$1(i,n),r=>set$1(i,n,r),n,o)}};return e(t),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let n=t.initialize.bind(t);t.initialize=(o,r,a)=>{let l=i.initialize(o,r,a);return t.initialValue=l,n(o,r,a)}}else t.initialValue=i;return t}}function get$1(s,e){return e.split(".").reduce((t,i)=>t[i],s)}function set$1(s,e,t){if(typeof e=="string"&&(e=e.split(".")),e.length===1)s[e[0]]=t;else{if(e.length===0)throw error;return s[e[0]]||(s[e[0]]={}),set$1(s[e[0]],e.slice(1),t)}}var magics={};function magic(s,e){magics[s]=e}function injectMagics(s,e){return Object.entries(magics).forEach(([t,i])=>{let n=null;function o(){if(n)return n;{let[r,a]=getElementBoundUtilities(e);return n={interceptor,...r},onElRemoved(e,a),n}}Object.defineProperty(s,`$${t}`,{get(){return i(e,o())},enumerable:!1})}),s}function tryCatch(s,e,t,...i){try{return t(...i)}catch(n){handleError(n,s,e)}}function handleError(s,e,t=void 0){s=Object.assign(s??{message:"No error message given."},{el:e,expression:t}),console.warn(`Alpine Expression Error: ${s.message}
+`+r+"}":"{"+a.join(",")+"}",gap=r,n}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(s,e,t){var i;if(gap="",indent="",typeof t=="number")for(i=0;i<t;i+=1)indent+=" ";else typeof t=="string"&&(indent=t);if(rep=e,e&&typeof e!="function"&&(typeof e!="object"||typeof e.length!="number"))throw new Error("JSON.stringify");return str("",{"":s})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(s,e){var t,i,n=s[e];if(n&&typeof n=="object")for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i=walk(n,t),i!==void 0?n[t]=i:delete n[t]);return reviver.call(s,e,n)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(s){return"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()),json2$1}var json2=json2Plugin;function json2Plugin(){return requireJson2(),{}}var engine=storeEngine,storages=all,plugins=[json2],store_legacy=engine.createStore(storages,plugins);const store$1=getDefaultExportFromCjs(store_legacy);var util=util$7,bind$1=util.bind,each$2=util.each,create=util.create,slice$1=util.slice,events=eventsPlugin$1;function eventsPlugin$1(){var s=_newPubSub();return{watch:e,unwatch:t,once:i,set:n,remove:o,clearAll:r};function e(a,l,d){return s.on(l,bind$1(this,d))}function t(a,l){s.off(l)}function i(a,l,d){s.once(l,bind$1(this,d))}function n(a,l,d){var h=this.get(l);a(),s.fire(l,d,h)}function o(a,l){var d=this.get(l);a(),s.fire(l,void 0,d)}function r(a){var l={};this.each(function(d,h){l[h]=d}),a(),each$2(l,function(d,h){s.fire(h,void 0,d)})}}function _newPubSub(){return create(_pubSubBase,{_id:0,_subSignals:{},_subCallbacks:{}})}var _pubSubBase={_id:null,_subCallbacks:null,_subSignals:null,on:function(s,e){return this._subCallbacks[s]||(this._subCallbacks[s]={}),this._id+=1,this._subCallbacks[s][this._id]=e,this._subSignals[this._id]=s,this._id},off:function(s){var e=this._subSignals[s];delete this._subCallbacks[e][s],delete this._subSignals[s]},once:function(s,e){var t=this.on(s,bind$1(this,function(){e.apply(this,arguments),this.off(t)}))},fire:function(s){var e=slice$1(arguments,1);each$2(this._subCallbacks[s],function(t){t.apply(this,e)})}},eventsPlugin=events,observe=[eventsPlugin,observePlugin];function observePlugin(){return{observe:s,unobserve:e};function s(t,i,n){var o=this.watch(i,n);return n(this.get(i)),o}function e(t,i){this.unwatch(i)}}const observePlugin$1=getDefaultExportFromCjs(observe);var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(s){queueJob(s)}function queueJob(s){queue.includes(s)||queue.push(s),queueFlush()}function dequeueJob(s){let e=queue.indexOf(s);e!==-1&&e>lastFlushedIndex&&queue.splice(e,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let s=0;s<queue.length;s++)queue[s](),lastFlushedIndex=s;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect$3,release,raw,shouldSchedule=!0;function disableEffectScheduling(s){shouldSchedule=!1,s(),shouldSchedule=!0}function setReactivityEngine(s){reactive=s.reactive,release=s.release,effect$3=e=>s.effect(e,{scheduler:t=>{shouldSchedule?scheduler(t):t()}}),raw=s.raw}function overrideEffect(s){effect$3=s}function elementBoundEffect(s){let e=()=>{};return[i=>{let n=effect$3(i);return s._x_effects||(s._x_effects=new Set,s._x_runEffects=()=>{s._x_effects.forEach(o=>o())}),s._x_effects.add(n),e=()=>{n!==void 0&&(s._x_effects.delete(n),release(n))},n},()=>{e()}]}function watch(s,e){let t=!0,i,n=effect$3(()=>{let o=s();JSON.stringify(o),t?i=o:queueMicrotask(()=>{e(o,i),i=o}),t=!1});return()=>release(n)}function dispatch(s,e,t={}){s.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0,cancelable:!0}))}function walk(s,e){if(typeof ShadowRoot=="function"&&s instanceof ShadowRoot){Array.from(s.children).forEach(n=>walk(n,e));return}let t=!1;if(e(s,()=>t=!0),t)return;let i=s.firstElementChild;for(;i;)walk(i,e),i=i.nextElementSibling}function warn(s,...e){console.warn(`Alpine Warning: ${s}`,...e)}var started=!1;function start$1(){started&&warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),started=!0,document.body||warn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),dispatch(document,"alpine:init"),dispatch(document,"alpine:initializing"),startObservingMutations(),onElAdded(e=>initTree(e,walk)),onElRemoved(e=>destroyTree(e)),onAttributesAdded((e,t)=>{directives(e,t).forEach(i=>i())});let s=e=>!closestRoot(e.parentElement,!0);Array.from(document.querySelectorAll(allSelectors().join(","))).filter(s).forEach(e=>{initTree(e)}),dispatch(document,"alpine:initialized")}var rootSelectorCallbacks=[],initSelectorCallbacks=[];function rootSelectors(){return rootSelectorCallbacks.map(s=>s())}function allSelectors(){return rootSelectorCallbacks.concat(initSelectorCallbacks).map(s=>s())}function addRootSelector(s){rootSelectorCallbacks.push(s)}function addInitSelector(s){initSelectorCallbacks.push(s)}function closestRoot(s,e=!1){return findClosest(s,t=>{if((e?allSelectors():rootSelectors()).some(n=>t.matches(n)))return!0})}function findClosest(s,e){if(s){if(e(s))return s;if(s._x_teleportBack&&(s=s._x_teleportBack),!!s.parentElement)return findClosest(s.parentElement,e)}}function isRoot(s){return rootSelectors().some(e=>s.matches(e))}var initInterceptors=[];function interceptInit(s){initInterceptors.push(s)}function initTree(s,e=walk,t=()=>{}){deferHandlingDirectives(()=>{e(s,(i,n)=>{t(i,n),initInterceptors.forEach(o=>o(i,n)),directives(i,i.attributes).forEach(o=>o()),i._x_ignore&&n()})})}function destroyTree(s,e=walk){e(s,t=>{cleanupAttributes(t),cleanupElement(t)})}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(s){onElAddeds.push(s)}function onElRemoved(s,e){typeof e=="function"?(s._x_cleanups||(s._x_cleanups=[]),s._x_cleanups.push(e)):(e=s,onElRemoveds.push(e))}function onAttributesAdded(s){onAttributeAddeds.push(s)}function onAttributeRemoved(s,e,t){s._x_attributeCleanups||(s._x_attributeCleanups={}),s._x_attributeCleanups[e]||(s._x_attributeCleanups[e]=[]),s._x_attributeCleanups[e].push(t)}function cleanupAttributes(s,e){s._x_attributeCleanups&&Object.entries(s._x_attributeCleanups).forEach(([t,i])=>{(e===void 0||e.includes(t))&&(i.forEach(n=>n()),delete s._x_attributeCleanups[t])})}function cleanupElement(s){if(s._x_cleanups)for(;s._x_cleanups.length;)s._x_cleanups.pop()()}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var queuedMutations=[];function flushObserver(){let s=observer.takeRecords();queuedMutations.push(()=>s.length>0&&onMutate(s));let e=queuedMutations.length;queueMicrotask(()=>{if(queuedMutations.length===e)for(;queuedMutations.length>0;)queuedMutations.shift()()})}function mutateDom(s){if(!currentlyObserving)return s();stopObservingMutations();let e=s();return startObservingMutations(),e}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(s){if(isCollecting){deferredMutations=deferredMutations.concat(s);return}let e=new Set,t=new Set,i=new Map,n=new Map;for(let o=0;o<s.length;o++)if(!s[o].target._x_ignoreMutationObserver&&(s[o].type==="childList"&&(s[o].addedNodes.forEach(r=>r.nodeType===1&&e.add(r)),s[o].removedNodes.forEach(r=>r.nodeType===1&&t.add(r))),s[o].type==="attributes")){let r=s[o].target,a=s[o].attributeName,l=s[o].oldValue,d=()=>{i.has(r)||i.set(r,[]),i.get(r).push({name:a,value:r.getAttribute(a)})},h=()=>{n.has(r)||n.set(r,[]),n.get(r).push(a)};r.hasAttribute(a)&&l===null?d():r.hasAttribute(a)?(h(),d()):h()}n.forEach((o,r)=>{cleanupAttributes(r,o)}),i.forEach((o,r)=>{onAttributeAddeds.forEach(a=>a(r,o))});for(let o of t)e.has(o)||(onElRemoveds.forEach(r=>r(o)),destroyTree(o));e.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of e)t.has(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,onElAddeds.forEach(r=>r(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);e.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),e=null,t=null,i=null,n=null}function scope(s){return mergeProxies(closestDataStack(s))}function addScopeToNode(s,e,t){return s._x_dataStack=[e,...closestDataStack(t||s)],()=>{s._x_dataStack=s._x_dataStack.filter(i=>i!==e)}}function closestDataStack(s){return s._x_dataStack?s._x_dataStack:typeof ShadowRoot=="function"&&s instanceof ShadowRoot?closestDataStack(s.host):s.parentNode?closestDataStack(s.parentNode):[]}function mergeProxies(s){return new Proxy({objects:s},mergeProxyTrap)}var mergeProxyTrap={ownKeys({objects:s}){return Array.from(new Set(s.flatMap(e=>Object.keys(e))))},has({objects:s},e){return e==Symbol.unscopables?!1:s.some(t=>Object.prototype.hasOwnProperty.call(t,e)||Reflect.has(t,e))},get({objects:s},e,t){return e=="toJSON"?collapseProxies:Reflect.get(s.find(i=>Reflect.has(i,e))||{},e,t)},set({objects:s},e,t,i){const n=s.find(r=>Object.prototype.hasOwnProperty.call(r,e))||s[s.length-1],o=Object.getOwnPropertyDescriptor(n,e);return o!=null&&o.set&&(o!=null&&o.get)?Reflect.set(n,e,t,i):Reflect.set(n,e,t)}};function collapseProxies(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function initInterceptors2(s){let e=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,t=(i,n="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([o,{value:r,enumerable:a}])=>{if(a===!1||r===void 0||typeof r=="object"&&r!==null&&r.__v_skip)return;let l=n===""?o:`${n}.${o}`;typeof r=="object"&&r!==null&&r._x_interceptor?i[o]=r.initialize(s,l,o):e(r)&&r!==i&&!(r instanceof Element)&&t(r,l)})};return t(s)}function interceptor(s,e=()=>{}){let t={initialValue:void 0,_x_interceptor:!0,initialize(i,n,o){return s(this.initialValue,()=>get$1(i,n),r=>set$1(i,n,r),n,o)}};return e(t),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let n=t.initialize.bind(t);t.initialize=(o,r,a)=>{let l=i.initialize(o,r,a);return t.initialValue=l,n(o,r,a)}}else t.initialValue=i;return t}}function get$1(s,e){return e.split(".").reduce((t,i)=>t[i],s)}function set$1(s,e,t){if(typeof e=="string"&&(e=e.split(".")),e.length===1)s[e[0]]=t;else{if(e.length===0)throw error;return s[e[0]]||(s[e[0]]={}),set$1(s[e[0]],e.slice(1),t)}}var magics={};function magic(s,e){magics[s]=e}function injectMagics(s,e){return Object.entries(magics).forEach(([t,i])=>{let n=null;function o(){if(n)return n;{let[r,a]=getElementBoundUtilities(e);return n={interceptor,...r},onElRemoved(e,a),n}}Object.defineProperty(s,`$${t}`,{get(){return i(e,o())},enumerable:!1})}),s}function tryCatch(s,e,t,...i){try{return t(...i)}catch(n){handleError(n,s,e)}}function handleError(s,e,t=void 0){s=Object.assign(s??{message:"No error message given."},{el:e,expression:t}),console.warn(`Alpine Expression Error: ${s.message}
${t?'Expression: "'+t+`"
-`:""}`,e),setTimeout(()=>{throw s},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(s){let e=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1;let t=s();return shouldAutoEvaluateFunctions=e,t}function evaluate(s,e,t={}){let i;return evaluateLater(s,e)(n=>i=n,t),i}function evaluateLater(...s){return theEvaluatorFunction(...s)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(s){theEvaluatorFunction=s}function normalEvaluator(s,e){let t={};injectMagics(t,s);let i=[t,...closestDataStack(s)],n=typeof e=="function"?generateEvaluatorFromFunction(i,e):generateEvaluatorFromString(i,e,s);return tryCatch.bind(null,s,e,n)}function generateEvaluatorFromFunction(s,e){return(t=()=>{},{scope:i={},params:n=[]}={})=>{let o=e.apply(mergeProxies([i,...s]),n);runIfTypeOfFunction(t,o)}}var evaluatorMemo={};function generateFunctionFromString(s,e){if(evaluatorMemo[s])return evaluatorMemo[s];let t=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(s.trim())||/^(let|const)\s/.test(s.trim())?`(async()=>{ ${s} })()`:s,o=(()=>{try{let r=new t(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(r,"name",{value:`[Alpine] ${s}`}),r}catch(r){return handleError(r,e,s),Promise.resolve()}})();return evaluatorMemo[s]=o,o}function generateEvaluatorFromString(s,e,t){let i=generateFunctionFromString(e,t);return(n=()=>{},{scope:o={},params:r=[]}={})=>{i.result=void 0,i.finished=!1;let a=mergeProxies([o,...s]);if(typeof i=="function"){let l=i(i,a).catch(d=>handleError(d,t,e));i.finished?(runIfTypeOfFunction(n,i.result,a,r,t),i.result=void 0):l.then(d=>{runIfTypeOfFunction(n,d,a,r,t)}).catch(d=>handleError(d,t,e)).finally(()=>i.result=void 0)}}}function runIfTypeOfFunction(s,e,t,i,n){if(shouldAutoEvaluateFunctions&&typeof e=="function"){let o=e.apply(t,i);o instanceof Promise?o.then(r=>runIfTypeOfFunction(s,r,t,i)).catch(r=>handleError(r,n,e)):s(o)}else typeof e=="object"&&e instanceof Promise?e.then(o=>s(o)):s(e)}var prefixAsString="x-";function prefix(s=""){return prefixAsString+s}function setPrefix(s){prefixAsString=s}var directiveHandlers={};function directive(s,e){return directiveHandlers[s]=e,{before(t){if(!directiveHandlers[t]){console.warn(String.raw`Cannot find directive \`${t}\`. \`${s}\` will use the default order of execution`);return}const i=directiveOrder.indexOf(t);directiveOrder.splice(i>=0?i:directiveOrder.indexOf("DEFAULT"),0,s)}}}function directives(s,e,t){if(e=Array.from(e),s._x_virtualDirectives){let o=Object.entries(s._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),r=attributesOnly(o);o=o.map(a=>r.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(o)}let i={};return e.map(toTransformedAttributes((o,r)=>i[o]=r)).filter(outNonAlpineAttributes).map(toParsedDirectives(i,t)).sort(byPriority).map(o=>getDirectiveHandler(s,o))}function attributesOnly(s){return Array.from(s).map(toTransformedAttributes()).filter(e=>!outNonAlpineAttributes(e))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(s){isDeferringHandlers=!0;let e=Symbol();currentHandlerStackKey=e,directiveHandlerStacks.set(e,[]);let t=()=>{for(;directiveHandlerStacks.get(e).length;)directiveHandlerStacks.get(e).shift()();directiveHandlerStacks.delete(e)},i=()=>{isDeferringHandlers=!1,t()};s(t),i()}function getElementBoundUtilities(s){let e=[],t=a=>e.push(a),[i,n]=elementBoundEffect(s);return e.push(n),[{Alpine:alpine_default,effect:i,cleanup:t,evaluateLater:evaluateLater.bind(evaluateLater,s),evaluate:evaluate.bind(evaluate,s)},()=>e.forEach(a=>a())]}function getDirectiveHandler(s,e){let t=()=>{},i=directiveHandlers[e.type]||t,[n,o]=getElementBoundUtilities(s);onAttributeRemoved(s,e.original,o);let r=()=>{s._x_ignore||s._x_ignoreSelf||(i.inline&&i.inline(s,e,n),i=i.bind(i,s,e,n),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(i):i())};return r.runCleanups=o,r}var startingWith=(s,e)=>({name:t,value:i})=>(t.startsWith(s)&&(t=t.replace(s,e)),{name:t,value:i}),into=s=>s;function toTransformedAttributes(s=()=>{}){return({name:e,value:t})=>{let{name:i,value:n}=attributeTransformers.reduce((o,r)=>r(o),{name:e,value:t});return i!==e&&s(i,e),{name:i,value:n}}}var attributeTransformers=[];function mapAttributes(s){attributeTransformers.push(s)}function outNonAlpineAttributes({name:s}){return alpineAttributeRegex().test(s)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(s,e){return({name:t,value:i})=>{let n=t.match(alpineAttributeRegex()),o=t.match(/:([a-zA-Z0-9\-_:]+)/),r=t.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||s[t]||t;return{type:n?n[1]:null,value:o?o[1]:null,modifiers:r.map(l=>l.replace(".","")),expression:i,original:a}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(s,e){let t=directiveOrder.indexOf(s.type)===-1?DEFAULT:s.type,i=directiveOrder.indexOf(e.type)===-1?DEFAULT:e.type;return directiveOrder.indexOf(t)-directiveOrder.indexOf(i)}var tickStack=[],isHolding=!1;function nextTick(s=()=>{}){return queueMicrotask(()=>{isHolding||setTimeout(()=>{releaseNextTicks()})}),new Promise(e=>{tickStack.push(()=>{s(),e()})})}function releaseNextTicks(){for(isHolding=!1;tickStack.length;)tickStack.shift()()}function holdNextTicks(){isHolding=!0}function setClasses(s,e){return Array.isArray(e)?setClassesFromString(s,e.join(" ")):typeof e=="object"&&e!==null?setClassesFromObject(s,e):typeof e=="function"?setClasses(s,e()):setClassesFromString(s,e)}function setClassesFromString(s,e){let t=n=>n.split(" ").filter(o=>!s.classList.contains(o)).filter(Boolean),i=n=>(s.classList.add(...n),()=>{s.classList.remove(...n)});return e=e===!0?e="":e||"",i(t(e))}function setClassesFromObject(s,e){let t=a=>a.split(" ").filter(Boolean),i=Object.entries(e).flatMap(([a,l])=>l?t(a):!1).filter(Boolean),n=Object.entries(e).flatMap(([a,l])=>l?!1:t(a)).filter(Boolean),o=[],r=[];return n.forEach(a=>{s.classList.contains(a)&&(s.classList.remove(a),r.push(a))}),i.forEach(a=>{s.classList.contains(a)||(s.classList.add(a),o.push(a))}),()=>{r.forEach(a=>s.classList.add(a)),o.forEach(a=>s.classList.remove(a))}}function setStyles(s,e){return typeof e=="object"&&e!==null?setStylesFromObject(s,e):setStylesFromString(s,e)}function setStylesFromObject(s,e){let t={};return Object.entries(e).forEach(([i,n])=>{t[i]=s.style[i],i.startsWith("--")||(i=kebabCase(i)),s.style.setProperty(i,n)}),setTimeout(()=>{s.style.length===0&&s.removeAttribute("style")}),()=>{setStyles(s,t)}}function setStylesFromString(s,e){let t=s.getAttribute("style",e);return s.setAttribute("style",e),()=>{s.setAttribute("style",t||"")}}function kebabCase(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function once(s,e=()=>{}){let t=!1;return function(){t?e.apply(this,arguments):(t=!0,s.apply(this,arguments))}}directive("transition",(s,{value:e,modifiers:t,expression:i},{evaluate:n})=>{typeof i=="function"&&(i=n(i)),i!==!1&&(!i||typeof i=="boolean"?registerTransitionsFromHelper(s,t,e):registerTransitionsFromClassString(s,i,e))});function registerTransitionsFromClassString(s,e,t){registerTransitionObject(s,setClasses,""),{enter:n=>{s._x_transition.enter.during=n},"enter-start":n=>{s._x_transition.enter.start=n},"enter-end":n=>{s._x_transition.enter.end=n},leave:n=>{s._x_transition.leave.during=n},"leave-start":n=>{s._x_transition.leave.start=n},"leave-end":n=>{s._x_transition.leave.end=n}}[t](e)}function registerTransitionsFromHelper(s,e,t){registerTransitionObject(s,setStyles);let i=!e.includes("in")&&!e.includes("out")&&!t,n=i||e.includes("in")||["enter"].includes(t),o=i||e.includes("out")||["leave"].includes(t);e.includes("in")&&!i&&(e=e.filter((E,T)=>T<e.indexOf("out"))),e.includes("out")&&!i&&(e=e.filter((E,T)=>T>e.indexOf("out")));let r=!e.includes("opacity")&&!e.includes("scale"),a=r||e.includes("opacity"),l=r||e.includes("scale"),d=a?0:1,h=l?modifierValue(e,"scale",95)/100:1,p=modifierValue(e,"delay",0)/1e3,m=modifierValue(e,"origin","center"),v="opacity, transform",y=modifierValue(e,"duration",150)/1e3,b=modifierValue(e,"duration",75)/1e3,S="cubic-bezier(0.4, 0.0, 0.2, 1)";n&&(s._x_transition.enter.during={transformOrigin:m,transitionDelay:`${p}s`,transitionProperty:v,transitionDuration:`${y}s`,transitionTimingFunction:S},s._x_transition.enter.start={opacity:d,transform:`scale(${h})`},s._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(s._x_transition.leave.during={transformOrigin:m,transitionDelay:`${p}s`,transitionProperty:v,transitionDuration:`${b}s`,transitionTimingFunction:S},s._x_transition.leave.start={opacity:1,transform:"scale(1)"},s._x_transition.leave.end={opacity:d,transform:`scale(${h})`})}function registerTransitionObject(s,e,t={}){s._x_transition||(s._x_transition={enter:{during:t,start:t,end:t},leave:{during:t,start:t,end:t},in(i=()=>{},n=()=>{}){transition(s,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,n)},out(i=()=>{},n=()=>{}){transition(s,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,n)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(s,e,t,i){const n=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let o=()=>n(t);if(e){s._x_transition&&(s._x_transition.enter||s._x_transition.leave)?s._x_transition.enter&&(Object.entries(s._x_transition.enter.during).length||Object.entries(s._x_transition.enter.start).length||Object.entries(s._x_transition.enter.end).length)?s._x_transition.in(t):o():s._x_transition?s._x_transition.in(t):o();return}s._x_hidePromise=s._x_transition?new Promise((r,a)=>{s._x_transition.out(()=>{},()=>r(i)),s._x_transitioning&&s._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let r=closestHide(s);r?(r._x_hideChildren||(r._x_hideChildren=[]),r._x_hideChildren.push(s)):n(()=>{let a=l=>{let d=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([h])=>h());return delete l._x_hidePromise,delete l._x_hideChildren,d};a(s).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function closestHide(s){let e=s.parentNode;if(e)return e._x_hidePromise?e:closestHide(e)}function transition(s,e,{during:t,start:i,end:n}={},o=()=>{},r=()=>{}){if(s._x_transitioning&&s._x_transitioning.cancel(),Object.keys(t).length===0&&Object.keys(i).length===0&&Object.keys(n).length===0){o(),r();return}let a,l,d;performTransition(s,{start(){a=e(s,i)},during(){l=e(s,t)},before:o,end(){a(),d=e(s,n)},after:r,cleanup(){l(),d()}})}function performTransition(s,e){let t,i,n,o=once(()=>{mutateDom(()=>{t=!0,i||e.before(),n||(e.end(),releaseNextTicks()),e.after(),s.isConnected&&e.cleanup(),delete s._x_transitioning})});s._x_transitioning={beforeCancels:[],beforeCancel(r){this.beforeCancels.push(r)},cancel:once(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},mutateDom(()=>{e.start(),e.during()}),holdNextTicks(),requestAnimationFrame(()=>{if(t)return;let r=Number(getComputedStyle(s).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(s).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;r===0&&(r=Number(getComputedStyle(s).animationDuration.replace("s",""))*1e3),mutateDom(()=>{e.before()}),i=!0,requestAnimationFrame(()=>{t||(mutateDom(()=>{e.end()}),releaseNextTicks(),setTimeout(s._x_transitioning.finish,r+a),n=!0)})})}function modifierValue(s,e,t){if(s.indexOf(e)===-1)return t;const i=s[s.indexOf(e)+1];if(!i||e==="scale"&&isNaN(i))return t;if(e==="duration"||e==="delay"){let n=i.match(/([0-9]+)ms/);if(n)return n[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(s[s.indexOf(e)+2])?[i,s[s.indexOf(e)+2]].join(" "):i}var isCloning=!1;function skipDuringClone(s,e=()=>{}){return(...t)=>isCloning?e(...t):s(...t)}function onlyDuringClone(s){return(...e)=>isCloning&&s(...e)}var interceptors=[];function interceptClone(s){interceptors.push(s)}function cloneNode(s,e){interceptors.forEach(t=>t(s,e)),isCloning=!0,dontRegisterReactiveSideEffects(()=>{initTree(e,(t,i)=>{i(t,()=>{})})}),isCloning=!1}var isCloningLegacy=!1;function clone$2(s,e){e._x_dataStack||(e._x_dataStack=s._x_dataStack),isCloning=!0,isCloningLegacy=!0,dontRegisterReactiveSideEffects(()=>{cloneTree(e)}),isCloning=!1,isCloningLegacy=!1}function cloneTree(s){let e=!1;initTree(s,(i,n)=>{walk(i,(o,r)=>{if(e&&isRoot(o))return r();e=!0,n(o,r)})})}function dontRegisterReactiveSideEffects(s){let e=effect$3;overrideEffect((t,i)=>{let n=e(t);return release(n),()=>{}}),s(),overrideEffect(e)}function bind(s,e,t,i=[]){switch(s._x_bindings||(s._x_bindings=reactive({})),s._x_bindings[e]=t,e=i.includes("camel")?camelCase(e):e,e){case"value":bindInputValue(s,t);break;case"style":bindStyles(s,t);break;case"class":bindClasses(s,t);break;case"selected":case"checked":bindAttributeAndProperty(s,e,t);break;default:bindAttribute(s,e,t);break}}function bindInputValue(s,e){if(s.type==="radio")s.attributes.value===void 0&&(s.value=e),window.fromModel&&(typeof e=="boolean"?s.checked=safeParseBoolean(s.value)===e:s.checked=checkedAttrLooseCompare(s.value,e));else if(s.type==="checkbox")Number.isInteger(e)?s.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?s.value=String(e):Array.isArray(e)?s.checked=e.some(t=>checkedAttrLooseCompare(t,s.value)):s.checked=!!e;else if(s.tagName==="SELECT")updateSelect(s,e);else{if(s.value===e)return;s.value=e===void 0?"":e}}function bindClasses(s,e){s._x_undoAddedClasses&&s._x_undoAddedClasses(),s._x_undoAddedClasses=setClasses(s,e)}function bindStyles(s,e){s._x_undoAddedStyles&&s._x_undoAddedStyles(),s._x_undoAddedStyles=setStyles(s,e)}function bindAttributeAndProperty(s,e,t){bindAttribute(s,e,t),setPropertyIfChanged(s,e,t)}function bindAttribute(s,e,t){[null,void 0,!1].includes(t)&&attributeShouldntBePreservedIfFalsy(e)?s.removeAttribute(e):(isBooleanAttr(e)&&(t=e),setIfChanged(s,e,t))}function setIfChanged(s,e,t){s.getAttribute(e)!=t&&s.setAttribute(e,t)}function setPropertyIfChanged(s,e,t){s[e]!==t&&(s[e]=t)}function updateSelect(s,e){const t=[].concat(e).map(i=>i+"");Array.from(s.options).forEach(i=>{i.selected=t.includes(i.value)})}function camelCase(s){return s.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function checkedAttrLooseCompare(s,e){return s==e}function safeParseBoolean(s){return[1,"1","true","on","yes",!0].includes(s)?!0:[0,"0","false","off","no",!1].includes(s)?!1:s?!!s:null}function isBooleanAttr(s){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(s)}function attributeShouldntBePreservedIfFalsy(s){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(s)}function getBinding(s,e,t){return s._x_bindings&&s._x_bindings[e]!==void 0?s._x_bindings[e]:getAttributeBinding(s,e,t)}function extractProp(s,e,t,i=!0){if(s._x_bindings&&s._x_bindings[e]!==void 0)return s._x_bindings[e];if(s._x_inlineBindings&&s._x_inlineBindings[e]!==void 0){let n=s._x_inlineBindings[e];return n.extract=i,dontAutoEvaluateFunctions(()=>evaluate(s,n.expression))}return getAttributeBinding(s,e,t)}function getAttributeBinding(s,e,t){let i=s.getAttribute(e);return i===null?typeof t=="function"?t():t:i===""?!0:isBooleanAttr(e)?!![e,"true"].includes(i):i}function debounce$5(s,e){var t;return function(){var i=this,n=arguments,o=function(){t=null,s.apply(i,n)};clearTimeout(t),t=setTimeout(o,e)}}function throttle$1(s,e){let t;return function(){let i=this,n=arguments;t||(s.apply(i,n),t=!0,setTimeout(()=>t=!1,e))}}function entangle({get:s,set:e},{get:t,set:i}){let n=!0,o,r=effect$3(()=>{let a=s(),l=t();if(n)i(cloneIfObject(a)),n=!1;else{let d=JSON.stringify(a),h=JSON.stringify(l);d!==o?i(cloneIfObject(a)):d!==h&&e(cloneIfObject(l))}o=JSON.stringify(s()),JSON.stringify(t())});return()=>{release(r)}}function cloneIfObject(s){return typeof s=="object"?JSON.parse(JSON.stringify(s)):s}function plugin(s){(Array.isArray(s)?s:[s]).forEach(t=>t(alpine_default))}var stores={},isReactive=!1;function store(s,e){if(isReactive||(stores=reactive(stores),isReactive=!0),e===void 0)return stores[s];stores[s]=e,typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&stores[s].init(),initInterceptors2(stores[s])}function getStores(){return stores}var binds={};function bind2(s,e){let t=typeof e!="function"?()=>e:e;return s instanceof Element?applyBindingsObject(s,t()):(binds[s]=t,()=>{})}function injectBindingProviders(s){return Object.entries(binds).forEach(([e,t])=>{Object.defineProperty(s,e,{get(){return(...i)=>t(...i)}})}),s}function applyBindingsObject(s,e,t){let i=[];for(;i.length;)i.pop()();let n=Object.entries(e).map(([r,a])=>({name:r,value:a})),o=attributesOnly(n);return n=n.map(r=>o.find(a=>a.name===r.name)?{name:`x-bind:${r.name}`,value:`"${r.value}"`}:r),directives(s,n,t).map(r=>{i.push(r.runCleanups),r()}),()=>{for(;i.length;)i.pop()()}}var datas={};function data(s,e){datas[s]=e}function injectDataProviders(s,e){return Object.entries(datas).forEach(([t,i])=>{Object.defineProperty(s,t,{get(){return(...n)=>i.bind(e)(...n)},enumerable:!1})}),s}var Alpine={get reactive(){return reactive},get release(){return release},get effect(){return effect$3},get raw(){return raw},version:"3.13.6",flushAndStopDeferringMutations,dontAutoEvaluateFunctions,disableEffectScheduling,startObservingMutations,stopObservingMutations,setReactivityEngine,onAttributeRemoved,onAttributesAdded,closestDataStack,skipDuringClone,onlyDuringClone,addRootSelector,addInitSelector,interceptClone,addScopeToNode,deferMutations,mapAttributes,evaluateLater,interceptInit,setEvaluator,mergeProxies,extractProp,findClosest,onElRemoved,closestRoot,destroyTree,interceptor,transition,setStyles,mutateDom,directive,entangle,throttle:throttle$1,debounce:debounce$5,evaluate,initTree,nextTick,prefixed:prefix,prefix:setPrefix,plugin,magic,store,start:start$1,clone:clone$2,cloneNode,bound:getBinding,$data:scope,watch,walk,data,bind:bind2},alpine_default=Alpine;function makeMap(s,e){const t=Object.create(null),i=s.split(",");for(let n=0;n<i.length;n++)t[i[n]]=!0;return e?n=>!!t[n.toLowerCase()]:n=>!!t[n]}var EMPTY_OBJ=Object.freeze({}),hasOwnProperty=Object.prototype.hasOwnProperty,hasOwn=(s,e)=>hasOwnProperty.call(s,e),isArray$1=Array.isArray,isMap=s=>toTypeString(s)==="[object Map]",isString=s=>typeof s=="string",isSymbol=s=>typeof s=="symbol",isObject$1=s=>s!==null&&typeof s=="object",objectToString=Object.prototype.toString,toTypeString=s=>objectToString.call(s),toRawType=s=>toTypeString(s).slice(8,-1),isIntegerKey=s=>isString(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,cacheStringFunction=s=>{const e=Object.create(null);return t=>e[t]||(e[t]=s(t))},capitalize$1=cacheStringFunction(s=>s.charAt(0).toUpperCase()+s.slice(1)),hasChanged=(s,e)=>s!==e&&(s===s||e===e),targetMap=new WeakMap,effectStack=[],activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate");function isEffect(s){return s&&s._isEffect===!0}function effect2(s,e=EMPTY_OBJ){isEffect(s)&&(s=s.raw);const t=createReactiveEffect(s,e);return e.lazy||t(),t}function stop(s){s.active&&(cleanup(s),s.options.onStop&&s.options.onStop(),s.active=!1)}var uid$1=0;function createReactiveEffect(s,e){const t=function(){if(!t.active)return s();if(!effectStack.includes(t)){cleanup(t);try{return enableTracking(),effectStack.push(t),activeEffect=t,s()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return t.id=uid$1++,t.allowRecurse=!!e.allowRecurse,t._isEffect=!0,t.active=!0,t.raw=s,t.deps=[],t.options=e,t}function cleanup(s){const{deps:e}=s;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(s);e.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const s=trackStack.pop();shouldTrack=s===void 0?!0:s}function track(s,e,t){if(!shouldTrack||activeEffect===void 0)return;let i=targetMap.get(s);i||targetMap.set(s,i=new Map);let n=i.get(t);n||i.set(t,n=new Set),n.has(activeEffect)||(n.add(activeEffect),activeEffect.deps.push(n),activeEffect.options.onTrack&&activeEffect.options.onTrack({effect:activeEffect,target:s,type:e,key:t}))}function trigger(s,e,t,i,n,o){const r=targetMap.get(s);if(!r)return;const a=new Set,l=h=>{h&&h.forEach(p=>{(p!==activeEffect||p.allowRecurse)&&a.add(p)})};if(e==="clear")r.forEach(l);else if(t==="length"&&isArray$1(s))r.forEach((h,p)=>{(p==="length"||p>=i)&&l(h)});else switch(t!==void 0&&l(r.get(t)),e){case"add":isArray$1(s)?isIntegerKey(t)&&l(r.get("length")):(l(r.get(ITERATE_KEY)),isMap(s)&&l(r.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$1(s)||(l(r.get(ITERATE_KEY)),isMap(s)&&l(r.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(s)&&l(r.get(ITERATE_KEY));break}const d=h=>{h.options.onTrigger&&h.options.onTrigger({effect:h,target:s,key:t,type:e,newValue:i,oldValue:n,oldTarget:o}),h.options.scheduler?h.options.scheduler(h):h()};a.forEach(d)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(s=>Symbol[s]).filter(isSymbol)),get2=createGetter(),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const s={};return["includes","indexOf","lastIndexOf"].forEach(e=>{s[e]=function(...t){const i=toRaw(this);for(let o=0,r=this.length;o<r;o++)track(i,"get",o+"");const n=i[e](...t);return n===-1||n===!1?i[e](...t.map(toRaw)):n}}),["push","pop","shift","unshift","splice"].forEach(e=>{s[e]=function(...t){pauseTracking();const i=toRaw(this)[e].apply(this,t);return resetTracking(),i}}),s}function createGetter(s=!1,e=!1){return function(i,n,o){if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_raw"&&o===(s?e?shallowReadonlyMap:readonlyMap:e?shallowReactiveMap:reactiveMap).get(i))return i;const r=isArray$1(i);if(!s&&r&&hasOwn(arrayInstrumentations,n))return Reflect.get(arrayInstrumentations,n,o);const a=Reflect.get(i,n,o);return(isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(s||track(i,"get",n),e)?a:isRef(a)?!r||!isIntegerKey(n)?a.value:a:isObject$1(a)?s?readonly(a):reactive2(a):a}}var set2=createSetter();function createSetter(s=!1){return function(t,i,n,o){let r=t[i];if(!s&&(n=toRaw(n),r=toRaw(r),!isArray$1(t)&&isRef(r)&&!isRef(n)))return r.value=n,!0;const a=isArray$1(t)&&isIntegerKey(i)?Number(i)<t.length:hasOwn(t,i),l=Reflect.set(t,i,n,o);return t===toRaw(o)&&(a?hasChanged(n,r)&&trigger(t,"set",i,n,r):trigger(t,"add",i,n)),l}}function deleteProperty(s,e){const t=hasOwn(s,e),i=s[e],n=Reflect.deleteProperty(s,e);return n&&t&&trigger(s,"delete",e,void 0,i),n}function has(s,e){const t=Reflect.has(s,e);return(!isSymbol(e)||!builtInSymbols.has(e))&&track(s,"has",e),t}function ownKeys$3(s){return track(s,"iterate",isArray$1(s)?"length":ITERATE_KEY),Reflect.ownKeys(s)}var mutableHandlers={get:get2,set:set2,deleteProperty,has,ownKeys:ownKeys$3},readonlyHandlers={get:readonlyGet,set(s,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,s),!0},deleteProperty(s,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,s),!0}},toReactive=s=>isObject$1(s)?reactive2(s):s,toReadonly=s=>isObject$1(s)?readonly(s):s,toShallow=s=>s,getProto=s=>Reflect.getPrototypeOf(s);function get$1$1(s,e,t=!1,i=!1){s=s.__v_raw;const n=toRaw(s),o=toRaw(e);e!==o&&!t&&track(n,"get",e),!t&&track(n,"get",o);const{has:r}=getProto(n),a=i?toShallow:t?toReadonly:toReactive;if(r.call(n,e))return a(s.get(e));if(r.call(n,o))return a(s.get(o));s!==n&&s.get(e)}function has$1(s,e=!1){const t=this.__v_raw,i=toRaw(t),n=toRaw(s);return s!==n&&!e&&track(i,"has",s),!e&&track(i,"has",n),s===n?t.has(s):t.has(s)||t.has(n)}function size(s,e=!1){return s=s.__v_raw,!e&&track(toRaw(s),"iterate",ITERATE_KEY),Reflect.get(s,"size",s)}function add(s){s=toRaw(s);const e=toRaw(this);return getProto(e).has.call(e,s)||(e.add(s),trigger(e,"add",s,s)),this}function set$1$1(s,e){e=toRaw(e);const t=toRaw(this),{has:i,get:n}=getProto(t);let o=i.call(t,s);o?checkIdentityKeys(t,i,s):(s=toRaw(s),o=i.call(t,s));const r=n.call(t,s);return t.set(s,e),o?hasChanged(e,r)&&trigger(t,"set",s,e,r):trigger(t,"add",s,e),this}function deleteEntry(s){const e=toRaw(this),{has:t,get:i}=getProto(e);let n=t.call(e,s);n?checkIdentityKeys(e,t,s):(s=toRaw(s),n=t.call(e,s));const o=i?i.call(e,s):void 0,r=e.delete(s);return n&&trigger(e,"delete",s,void 0,o),r}function clear(){const s=toRaw(this),e=s.size!==0,t=isMap(s)?new Map(s):new Set(s),i=s.clear();return e&&trigger(s,"clear",void 0,void 0,t),i}function createForEach(s,e){return function(i,n){const o=this,r=o.__v_raw,a=toRaw(r),l=e?toShallow:s?toReadonly:toReactive;return!s&&track(a,"iterate",ITERATE_KEY),r.forEach((d,h)=>i.call(n,l(d),l(h),o))}}function createIterableMethod(s,e,t){return function(...i){const n=this.__v_raw,o=toRaw(n),r=isMap(o),a=s==="entries"||s===Symbol.iterator&&r,l=s==="keys"&&r,d=n[s](...i),h=t?toShallow:e?toReadonly:toReactive;return!e&&track(o,"iterate",l?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:p,done:m}=d.next();return m?{value:p,done:m}:{value:a?[h(p[0]),h(p[1])]:h(p),done:m}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(s){return function(...e){{const t=e[0]?`on key "${e[0]}" `:"";console.warn(`${capitalize$1(s)} operation ${t}failed: target is readonly.`,toRaw(this))}return s==="delete"?!1:this}}function createInstrumentations(){const s={get(o){return get$1$1(this,o)},get size(){return size(this)},has:has$1,add,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},e={get(o){return get$1$1(this,o,!1,!0)},get size(){return size(this)},has:has$1,add,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},t={get(o){return get$1$1(this,o,!0)},get size(){return size(this,!0)},has(o){return has$1.call(this,o,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},i={get(o){return get$1$1(this,o,!0,!0)},get size(){return size(this,!0)},has(o){return has$1.call(this,o,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=createIterableMethod(o,!1,!1),t[o]=createIterableMethod(o,!0,!1),e[o]=createIterableMethod(o,!1,!0),i[o]=createIterableMethod(o,!0,!0)}),[s,t,e,i]}var[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(s,e){const t=e?s?shallowReadonlyInstrumentations:shallowInstrumentations:s?readonlyInstrumentations:mutableInstrumentations;return(i,n,o)=>n==="__v_isReactive"?!s:n==="__v_isReadonly"?s:n==="__v_raw"?i:Reflect.get(hasOwn(t,n)&&n in i?t:i,n,o)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)};function checkIdentityKeys(s,e,t){const i=toRaw(t);if(i!==t&&e.call(s,i)){const n=toRawType(s);console.warn(`Reactive ${n} contains both the raw and reactive versions of the same object${n==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(s){return s.__v_skip||!Object.isExtensible(s)?0:targetTypeMap(toRawType(s))}function reactive2(s){return s&&s.__v_isReadonly?s:createReactiveObject(s,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(s){return createReactiveObject(s,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(s,e,t,i,n){if(!isObject$1(s))return console.warn(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(e&&s.__v_isReactive))return s;const o=n.get(s);if(o)return o;const r=getTargetType(s);if(r===0)return s;const a=new Proxy(s,r===2?i:t);return n.set(s,a),a}function toRaw(s){return s&&toRaw(s.__v_raw)||s}function isRef(s){return!!(s&&s.__v_isRef===!0)}magic("nextTick",()=>nextTick);magic("dispatch",s=>dispatch.bind(dispatch,s));magic("watch",(s,{evaluateLater:e,cleanup:t})=>(i,n)=>{let o=e(i),a=watch(()=>{let l;return o(d=>l=d),l},n);t(a)});magic("store",getStores);magic("data",s=>scope(s));magic("root",s=>closestRoot(s));magic("refs",s=>(s._x_refs_proxy||(s._x_refs_proxy=mergeProxies(getArrayOfRefObject(s))),s._x_refs_proxy));function getArrayOfRefObject(s){let e=[];return findClosest(s,t=>{t._x_refs&&e.push(t._x_refs)}),e}var globalIdMemo={};function findAndIncrementId(s){return globalIdMemo[s]||(globalIdMemo[s]=0),++globalIdMemo[s]}function closestIdRoot(s,e){return findClosest(s,t=>{if(t._x_ids&&t._x_ids[e])return!0})}function setIdRoot(s,e){s._x_ids||(s._x_ids={}),s._x_ids[e]||(s._x_ids[e]=findAndIncrementId(e))}magic("id",(s,{cleanup:e})=>(t,i=null)=>{let n=`${t}${i?`-${i}`:""}`;return cacheIdByNameOnElement(s,n,e,()=>{let o=closestIdRoot(s,t),r=o?o._x_ids[t]:findAndIncrementId(t);return i?`${t}-${r}-${i}`:`${t}-${r}`})});interceptClone((s,e)=>{s._x_id&&(e._x_id=s._x_id)});function cacheIdByNameOnElement(s,e,t,i){if(s._x_id||(s._x_id={}),s._x_id[e])return s._x_id[e];let n=i();return s._x_id[e]=n,t(()=>{delete s._x_id[e]}),n}magic("el",s=>s);warnMissingPluginMagic("Focus","focus","focus");warnMissingPluginMagic("Persist","persist","persist");function warnMissingPluginMagic(s,e,t){magic(e,i=>warn(`You can't use [$${e}] without first installing the "${s}" plugin here: https://alpinejs.dev/plugins/${t}`,i))}directive("modelable",(s,{expression:e},{effect:t,evaluateLater:i,cleanup:n})=>{let o=i(e),r=()=>{let h;return o(p=>h=p),h},a=i(`${e} = __placeholder`),l=h=>a(()=>{},{scope:{__placeholder:h}}),d=r();l(d),queueMicrotask(()=>{if(!s._x_model)return;s._x_removeModelListeners.default();let h=s._x_model.get,p=s._x_model.set,m=entangle({get(){return h()},set(v){p(v)}},{get(){return r()},set(v){l(v)}});n(m)})});directive("teleport",(s,{modifiers:e,expression:t},{cleanup:i})=>{s.tagName.toLowerCase()!=="template"&&warn("x-teleport can only be used on a <template> tag",s);let n=getTarget(t),o=s.content.cloneNode(!0).firstElementChild;s._x_teleport=o,o._x_teleportBack=s,s.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),s._x_forwardEvents&&s._x_forwardEvents.forEach(a=>{o.addEventListener(a,l=>{l.stopPropagation(),s.dispatchEvent(new l.constructor(l.type,l))})}),addScopeToNode(o,{},s);let r=(a,l,d)=>{d.includes("prepend")?l.parentNode.insertBefore(a,l):d.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};mutateDom(()=>{r(o,n,e),initTree(o),o._x_ignore=!0}),s._x_teleportPutBack=()=>{let a=getTarget(t);mutateDom(()=>{r(s._x_teleport,a,e)})},i(()=>o.remove())});var teleportContainerDuringClone=document.createElement("div");function getTarget(s){let e=skipDuringClone(()=>document.querySelector(s),()=>teleportContainerDuringClone)();return e||warn(`Cannot find x-teleport element for selector: "${s}"`),e}var handler=()=>{};handler.inline=(s,{modifiers:e},{cleanup:t})=>{e.includes("self")?s._x_ignoreSelf=!0:s._x_ignore=!0,t(()=>{e.includes("self")?delete s._x_ignoreSelf:delete s._x_ignore})};directive("ignore",handler);directive("effect",skipDuringClone((s,{expression:e},{effect:t})=>{t(evaluateLater(s,e))}));function on(s,e,t,i){let n=s,o=l=>i(l),r={},a=(l,d)=>h=>d(l,h);if(t.includes("dot")&&(e=dotSyntax(e)),t.includes("camel")&&(e=camelCase2(e)),t.includes("passive")&&(r.passive=!0),t.includes("capture")&&(r.capture=!0),t.includes("window")&&(n=window),t.includes("document")&&(n=document),t.includes("debounce")){let l=t[t.indexOf("debounce")+1]||"invalid-wait",d=isNumeric(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=debounce$5(o,d)}if(t.includes("throttle")){let l=t[t.indexOf("throttle")+1]||"invalid-wait",d=isNumeric(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=throttle$1(o,d)}return t.includes("prevent")&&(o=a(o,(l,d)=>{d.preventDefault(),l(d)})),t.includes("stop")&&(o=a(o,(l,d)=>{d.stopPropagation(),l(d)})),t.includes("self")&&(o=a(o,(l,d)=>{d.target===s&&l(d)})),(t.includes("away")||t.includes("outside"))&&(n=document,o=a(o,(l,d)=>{s.contains(d.target)||d.target.isConnected!==!1&&(s.offsetWidth<1&&s.offsetHeight<1||s._x_isShown!==!1&&l(d))})),t.includes("once")&&(o=a(o,(l,d)=>{l(d),n.removeEventListener(e,o,r)})),o=a(o,(l,d)=>{isKeyEvent(e)&&isListeningForASpecificKeyThatHasntBeenPressed(d,t)||l(d)}),n.addEventListener(e,o,r),()=>{n.removeEventListener(e,o,r)}}function dotSyntax(s){return s.replace(/-/g,".")}function camelCase2(s){return s.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function isNumeric(s){return!Array.isArray(s)&&!isNaN(s)}function kebabCase2(s){return[" ","_"].includes(s)?s:s.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function isKeyEvent(s){return["keydown","keyup"].includes(s)}function isListeningForASpecificKeyThatHasntBeenPressed(s,e){let t=e.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(t.includes("debounce")){let o=t.indexOf("debounce");t.splice(o,isNumeric((t[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.includes("throttle")){let o=t.indexOf("throttle");t.splice(o,isNumeric((t[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.length===0||t.length===1&&keyToModifiers(s.key).includes(t[0]))return!1;const n=["ctrl","shift","alt","meta","cmd","super"].filter(o=>t.includes(o));return t=t.filter(o=>!n.includes(o)),!(n.length>0&&n.filter(r=>((r==="cmd"||r==="super")&&(r="meta"),s[`${r}Key`])).length===n.length&&keyToModifiers(s.key).includes(t[0]))}function keyToModifiers(s){if(!s)return[];s=kebabCase2(s);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return e[s]=s,Object.keys(e).map(t=>{if(e[t]===s)return t}).filter(t=>t)}directive("model",(s,{modifiers:e,expression:t},{effect:i,cleanup:n})=>{let o=s;e.includes("parent")&&(o=s.parentNode);let r=evaluateLater(o,t),a;typeof t=="string"?a=evaluateLater(o,`${t} = __placeholder`):typeof t=="function"&&typeof t()=="string"?a=evaluateLater(o,`${t()} = __placeholder`):a=()=>{};let l=()=>{let m;return r(v=>m=v),isGetterSetter(m)?m.get():m},d=m=>{let v;r(y=>v=y),isGetterSetter(v)?v.set(m):a(()=>{},{scope:{__placeholder:m}})};typeof t=="string"&&s.type==="radio"&&mutateDom(()=>{s.hasAttribute("name")||s.setAttribute("name",t)});var h=s.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(s.type)||e.includes("lazy")?"change":"input";let p=isCloning?()=>{}:on(s,h,e,m=>{d(getInputValue(s,e,m,l()))});if(e.includes("fill")&&([void 0,null,""].includes(l())||s.type==="checkbox"&&Array.isArray(l()))&&s.dispatchEvent(new Event(h,{})),s._x_removeModelListeners||(s._x_removeModelListeners={}),s._x_removeModelListeners.default=p,n(()=>s._x_removeModelListeners.default()),s.form){let m=on(s.form,"reset",[],v=>{nextTick(()=>s._x_model&&s._x_model.set(s.value))});n(()=>m())}s._x_model={get(){return l()},set(m){d(m)}},s._x_forceModelUpdate=m=>{m===void 0&&typeof t=="string"&&t.match(/\./)&&(m=""),window.fromModel=!0,mutateDom(()=>bind(s,"value",m)),delete window.fromModel},i(()=>{let m=l();e.includes("unintrusive")&&document.activeElement.isSameNode(s)||s._x_forceModelUpdate(m)})});function getInputValue(s,e,t,i){return mutateDom(()=>{if(t instanceof CustomEvent&&t.detail!==void 0)return t.detail!==null&&t.detail!==void 0?t.detail:t.target.value;if(s.type==="checkbox")if(Array.isArray(i)){let n=null;return e.includes("number")?n=safeParseNumber(t.target.value):e.includes("boolean")?n=safeParseBoolean(t.target.value):n=t.target.value,t.target.checked?i.concat([n]):i.filter(o=>!checkedAttrLooseCompare2(o,n))}else return t.target.checked;else return s.tagName.toLowerCase()==="select"&&s.multiple?e.includes("number")?Array.from(t.target.selectedOptions).map(n=>{let o=n.value||n.text;return safeParseNumber(o)}):e.includes("boolean")?Array.from(t.target.selectedOptions).map(n=>{let o=n.value||n.text;return safeParseBoolean(o)}):Array.from(t.target.selectedOptions).map(n=>n.value||n.text):e.includes("number")?safeParseNumber(t.target.value):e.includes("boolean")?safeParseBoolean(t.target.value):e.includes("trim")?t.target.value.trim():t.target.value})}function safeParseNumber(s){let e=s?parseFloat(s):null;return isNumeric2(e)?e:s}function checkedAttrLooseCompare2(s,e){return s==e}function isNumeric2(s){return!Array.isArray(s)&&!isNaN(s)}function isGetterSetter(s){return s!==null&&typeof s=="object"&&typeof s.get=="function"&&typeof s.set=="function"}directive("cloak",s=>queueMicrotask(()=>mutateDom(()=>s.removeAttribute(prefix("cloak")))));addInitSelector(()=>`[${prefix("init")}]`);directive("init",skipDuringClone((s,{expression:e},{evaluate:t})=>typeof e=="string"?!!e.trim()&&t(e,{},!1):t(e,{},!1)));directive("text",(s,{expression:e},{effect:t,evaluateLater:i})=>{let n=i(e);t(()=>{n(o=>{mutateDom(()=>{s.textContent=o})})})});directive("html",(s,{expression:e},{effect:t,evaluateLater:i})=>{let n=i(e);t(()=>{n(o=>{mutateDom(()=>{s.innerHTML=o,s._x_ignoreSelf=!0,initTree(s),delete s._x_ignoreSelf})})})});mapAttributes(startingWith(":",into(prefix("bind:"))));var handler2=(s,{value:e,modifiers:t,expression:i,original:n},{effect:o})=>{if(!e){let a={};injectBindingProviders(a),evaluateLater(s,i)(d=>{applyBindingsObject(s,d,n)},{scope:a});return}if(e==="key")return storeKeyForXFor(s,i);if(s._x_inlineBindings&&s._x_inlineBindings[e]&&s._x_inlineBindings[e].extract)return;let r=evaluateLater(s,i);o(()=>r(a=>{a===void 0&&typeof i=="string"&&i.match(/\./)&&(a=""),mutateDom(()=>bind(s,e,a,t))}))};handler2.inline=(s,{value:e,modifiers:t,expression:i})=>{e&&(s._x_inlineBindings||(s._x_inlineBindings={}),s._x_inlineBindings[e]={expression:i,extract:!1})};directive("bind",handler2);function storeKeyForXFor(s,e){s._x_keyExpression=e}addRootSelector(()=>`[${prefix("data")}]`);directive("data",(s,{expression:e},{cleanup:t})=>{if(shouldSkipRegisteringDataDuringClone(s))return;e=e===""?"{}":e;let i={};injectMagics(i,s);let n={};injectDataProviders(n,i);let o=evaluate(s,e,{scope:n});(o===void 0||o===!0)&&(o={}),injectMagics(o,s);let r=reactive(o);initInterceptors2(r);let a=addScopeToNode(s,r);r.init&&evaluate(s,r.init),t(()=>{r.destroy&&evaluate(s,r.destroy),a()})});interceptClone((s,e)=>{s._x_dataStack&&(e._x_dataStack=s._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function shouldSkipRegisteringDataDuringClone(s){return isCloning?isCloningLegacy?!0:s.hasAttribute("data-has-alpine-state"):!1}directive("show",(s,{modifiers:e,expression:t},{effect:i})=>{let n=evaluateLater(s,t);s._x_doHide||(s._x_doHide=()=>{mutateDom(()=>{s.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),s._x_doShow||(s._x_doShow=()=>{mutateDom(()=>{s.style.length===1&&s.style.display==="none"?s.removeAttribute("style"):s.style.removeProperty("display")})});let o=()=>{s._x_doHide(),s._x_isShown=!1},r=()=>{s._x_doShow(),s._x_isShown=!0},a=()=>setTimeout(r),l=once(p=>p?r():o(),p=>{typeof s._x_toggleAndCascadeWithTransitions=="function"?s._x_toggleAndCascadeWithTransitions(s,p,r,o):p?a():o()}),d,h=!0;i(()=>n(p=>{!h&&p===d||(e.includes("immediate")&&(p?a():o()),l(p),d=p,h=!1)}))});directive("for",(s,{expression:e},{effect:t,cleanup:i})=>{let n=parseForExpression(e),o=evaluateLater(s,n.items),r=evaluateLater(s,s._x_keyExpression||"index");s._x_prevKeys=[],s._x_lookup={},t(()=>loop(s,n,o,r)),i(()=>{Object.values(s._x_lookup).forEach(a=>a.remove()),delete s._x_prevKeys,delete s._x_lookup})});function loop(s,e,t,i){let n=r=>typeof r=="object"&&!Array.isArray(r),o=s;t(r=>{isNumeric3(r)&&r>=0&&(r=Array.from(Array(r).keys(),S=>S+1)),r===void 0&&(r=[]);let a=s._x_lookup,l=s._x_prevKeys,d=[],h=[];if(n(r))r=Object.entries(r).map(([S,E])=>{let T=getIterationScopeVariables(e,E,S,r);i(R=>{h.includes(R)&&warn("Duplicate key on x-for",s),h.push(R)},{scope:{index:S,...T}}),d.push(T)});else for(let S=0;S<r.length;S++){let E=getIterationScopeVariables(e,r[S],S,r);i(T=>{h.includes(T)&&warn("Duplicate key on x-for",s),h.push(T)},{scope:{index:S,...E}}),d.push(E)}let p=[],m=[],v=[],y=[];for(let S=0;S<l.length;S++){let E=l[S];h.indexOf(E)===-1&&v.push(E)}l=l.filter(S=>!v.includes(S));let b="template";for(let S=0;S<h.length;S++){let E=h[S],T=l.indexOf(E);if(T===-1)l.splice(S,0,E),p.push([b,S]);else if(T!==S){let R=l.splice(S,1)[0],A=l.splice(T-1,1)[0];l.splice(S,0,A),l.splice(T,0,R),m.push([R,A])}else y.push(E);b=E}for(let S=0;S<v.length;S++){let E=v[S];a[E]._x_effects&&a[E]._x_effects.forEach(dequeueJob),a[E].remove(),a[E]=null,delete a[E]}for(let S=0;S<m.length;S++){let[E,T]=m[S],R=a[E],A=a[T],D=document.createElement("div");mutateDom(()=>{A||warn('x-for ":key" is undefined or invalid',o,T,a),A.after(D),R.after(A),A._x_currentIfEl&&A.after(A._x_currentIfEl),D.before(R),R._x_currentIfEl&&R.after(R._x_currentIfEl),D.remove()}),A._x_refreshXForScope(d[h.indexOf(T)])}for(let S=0;S<p.length;S++){let[E,T]=p[S],R=E==="template"?o:a[E];R._x_currentIfEl&&(R=R._x_currentIfEl);let A=d[T],D=h[T],x=document.importNode(o.content,!0).firstElementChild,M=reactive(A);addScopeToNode(x,M,o),x._x_refreshXForScope=I=>{Object.entries(I).forEach(([V,U])=>{M[V]=U})},mutateDom(()=>{R.after(x),skipDuringClone(()=>initTree(x))()}),typeof D=="object"&&warn("x-for key cannot be an object, it must be a string or an integer",o),a[D]=x}for(let S=0;S<y.length;S++)a[y[S]]._x_refreshXForScope(d[h.indexOf(y[S])]);o._x_prevKeys=h})}function parseForExpression(s){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,t=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,n=s.match(i);if(!n)return;let o={};o.items=n[2].trim();let r=n[1].replace(t,"").trim(),a=r.match(e);return a?(o.item=r.replace(e,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=r,o}function getIterationScopeVariables(s,e,t,i){let n={};return/^\[.*\]$/.test(s.item)&&Array.isArray(e)?s.item.replace("[","").replace("]","").split(",").map(r=>r.trim()).forEach((r,a)=>{n[r]=e[a]}):/^\{.*\}$/.test(s.item)&&!Array.isArray(e)&&typeof e=="object"?s.item.replace("{","").replace("}","").split(",").map(r=>r.trim()).forEach(r=>{n[r]=e[r]}):n[s.item]=e,s.index&&(n[s.index]=t),s.collection&&(n[s.collection]=i),n}function isNumeric3(s){return!Array.isArray(s)&&!isNaN(s)}function handler3(){}handler3.inline=(s,{expression:e},{cleanup:t})=>{let i=closestRoot(s);i._x_refs||(i._x_refs={}),i._x_refs[e]=s,t(()=>delete i._x_refs[e])};directive("ref",handler3);directive("if",(s,{expression:e},{effect:t,cleanup:i})=>{s.tagName.toLowerCase()!=="template"&&warn("x-if can only be used on a <template> tag",s);let n=evaluateLater(s,e),o=()=>{if(s._x_currentIfEl)return s._x_currentIfEl;let a=s.content.cloneNode(!0).firstElementChild;return addScopeToNode(a,{},s),mutateDom(()=>{s.after(a),skipDuringClone(()=>initTree(a))()}),s._x_currentIfEl=a,s._x_undoIf=()=>{walk(a,l=>{l._x_effects&&l._x_effects.forEach(dequeueJob)}),a.remove(),delete s._x_currentIfEl},a},r=()=>{s._x_undoIf&&(s._x_undoIf(),delete s._x_undoIf)};t(()=>n(a=>{a?o():r()})),i(()=>s._x_undoIf&&s._x_undoIf())});directive("id",(s,{expression:e},{evaluate:t})=>{t(e).forEach(n=>setIdRoot(s,n))});interceptClone((s,e)=>{s._x_ids&&(e._x_ids=s._x_ids)});mapAttributes(startingWith("@",into(prefix("on:"))));directive("on",skipDuringClone((s,{value:e,modifiers:t,expression:i},{cleanup:n})=>{let o=i?evaluateLater(s,i):()=>{};s.tagName.toLowerCase()==="template"&&(s._x_forwardEvents||(s._x_forwardEvents=[]),s._x_forwardEvents.includes(e)||s._x_forwardEvents.push(e));let r=on(s,e,t,a=>{o(()=>{},{scope:{$event:a},params:[a]})});n(()=>r())}));warnMissingPluginDirective("Collapse","collapse","collapse");warnMissingPluginDirective("Intersect","intersect","intersect");warnMissingPluginDirective("Focus","trap","focus");warnMissingPluginDirective("Mask","mask","mask");function warnMissingPluginDirective(s,e,t){directive(e,i=>warn(`You can't use [x-${e}] without first installing the "${s}" plugin here: https://alpinejs.dev/plugins/${t}`,i))}alpine_default.setEvaluator(normalEvaluator);alpine_default.setReactivityEngine({reactive:reactive2,effect:effect2,release:stop,raw:toRaw});var src_default=alpine_default,module_default=src_default,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(s,e){return s.concat([e+"-"+start,e+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(s,e){return s.concat([e,e+"-"+start,e+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(s){return s?(s.nodeName||"").toLowerCase():null}function getWindow(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var e=s.ownerDocument;return e&&e.defaultView||window}return s}function isElement$1(s){var e=getWindow(s).Element;return s instanceof e||s instanceof Element}function isHTMLElement(s){var e=getWindow(s).HTMLElement;return s instanceof e||s instanceof HTMLElement}function isShadowRoot(s){if(typeof ShadowRoot>"u")return!1;var e=getWindow(s).ShadowRoot;return s instanceof e||s instanceof ShadowRoot}function applyStyles(s){var e=s.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];!isHTMLElement(o)||!getNodeName(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(r){var a=n[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function effect$2(s){var e=s.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],o=e.attributes[i]||{},r=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=r.reduce(function(l,d){return l[d]="",l},{});!isHTMLElement(n)||!getNodeName(n)||(Object.assign(n.style,a),Object.keys(o).forEach(function(l){n.removeAttribute(l)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(s){return s.split("-")[0]}var max=Math.max,min=Math.min,round$1=Math.round;function getUAString(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(s,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=s.getBoundingClientRect(),n=1,o=1;e&&isHTMLElement(s)&&(n=s.offsetWidth>0&&round$1(i.width)/s.offsetWidth||1,o=s.offsetHeight>0&&round$1(i.height)/s.offsetHeight||1);var r=isElement$1(s)?getWindow(s):window,a=r.visualViewport,l=!isLayoutViewport()&&t,d=(i.left+(l&&a?a.offsetLeft:0))/n,h=(i.top+(l&&a?a.offsetTop:0))/o,p=i.width/n,m=i.height/o;return{width:p,height:m,top:h,right:d+p,bottom:h+m,left:d,x:d,y:h}}function getLayoutRect(s){var e=getBoundingClientRect(s),t=s.offsetWidth,i=s.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:s.offsetLeft,y:s.offsetTop,width:t,height:i}}function contains(s,e){var t=e.getRootNode&&e.getRootNode();if(s.contains(e))return!0;if(t&&isShadowRoot(t)){var i=e;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function getComputedStyle$2(s){return getWindow(s).getComputedStyle(s)}function isTableElement(s){return["table","td","th"].indexOf(getNodeName(s))>=0}function getDocumentElement(s){return((isElement$1(s)?s.ownerDocument:s.document)||window.document).documentElement}function getParentNode(s){return getNodeName(s)==="html"?s:s.assignedSlot||s.parentNode||(isShadowRoot(s)?s.host:null)||getDocumentElement(s)}function getTrueOffsetParent(s){return!isHTMLElement(s)||getComputedStyle$2(s).position==="fixed"?null:s.offsetParent}function getContainingBlock(s){var e=/firefox/i.test(getUAString()),t=/Trident/i.test(getUAString());if(t&&isHTMLElement(s)){var i=getComputedStyle$2(s);if(i.position==="fixed")return null}var n=getParentNode(s);for(isShadowRoot(n)&&(n=n.host);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var o=getComputedStyle$2(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function getOffsetParent(s){for(var e=getWindow(s),t=getTrueOffsetParent(s);t&&isTableElement(t)&&getComputedStyle$2(t).position==="static";)t=getTrueOffsetParent(t);return t&&(getNodeName(t)==="html"||getNodeName(t)==="body"&&getComputedStyle$2(t).position==="static")?e:t||getContainingBlock(s)||e}function getMainAxisFromPlacement(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function within(s,e,t){return max(s,min(e,t))}function withinMaxClamp(s,e,t){var i=within(s,e,t);return i>t?t:i}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(s){return Object.assign({},getFreshSideObject(),s)}function expandToHashMap(s,e){return e.reduce(function(t,i){return t[i]=s,t},{})}var toPaddingObject=function s(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,mergePaddingObject(typeof e!="number"?e:expandToHashMap(e,basePlacements))};function arrow(s){var e,t=s.state,i=s.name,n=s.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,a=getBasePlacement(t.placement),l=getMainAxisFromPlacement(a),d=[left,right].indexOf(a)>=0,h=d?"height":"width";if(!(!o||!r)){var p=toPaddingObject(n.padding,t),m=getLayoutRect(o),v=l==="y"?top:left,y=l==="y"?bottom:right,b=t.rects.reference[h]+t.rects.reference[l]-r[l]-t.rects.popper[h],S=r[l]-t.rects.reference[l],E=getOffsetParent(o),T=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,R=b/2-S/2,A=p[v],D=T-m[h]-p[y],x=T/2-m[h]/2+R,M=within(A,x,D),I=l;t.modifiersData[i]=(e={},e[I]=M,e.centerOffset=M-x,e)}}function effect$1(s){var e=s.state,t=s.options,i=t.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||contains(e.elements.popper,n)&&(e.elements.arrow=n))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(s){return s.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(s,e){var t=s.x,i=s.y,n=e.devicePixelRatio||1;return{x:round$1(t*n)/n||0,y:round$1(i*n)/n||0}}function mapToStyles(s){var e,t=s.popper,i=s.popperRect,n=s.placement,o=s.variation,r=s.offsets,a=s.position,l=s.gpuAcceleration,d=s.adaptive,h=s.roundOffsets,p=s.isFixed,m=r.x,v=m===void 0?0:m,y=r.y,b=y===void 0?0:y,S=typeof h=="function"?h({x:v,y:b}):{x:v,y:b};v=S.x,b=S.y;var E=r.hasOwnProperty("x"),T=r.hasOwnProperty("y"),R=left,A=top,D=window;if(d){var x=getOffsetParent(t),M="clientHeight",I="clientWidth";if(x===getWindow(t)&&(x=getDocumentElement(t),getComputedStyle$2(x).position!=="static"&&a==="absolute"&&(M="scrollHeight",I="scrollWidth")),x=x,n===top||(n===left||n===right)&&o===end){A=bottom;var V=p&&x===D&&D.visualViewport?D.visualViewport.height:x[M];b-=V-i.height,b*=l?1:-1}if(n===left||(n===top||n===bottom)&&o===end){R=right;var U=p&&x===D&&D.visualViewport?D.visualViewport.width:x[I];v-=U-i.width,v*=l?1:-1}}var B=Object.assign({position:a},d&&unsetSides),Y=h===!0?roundOffsetsByDPR({x:v,y:b},getWindow(t)):{x:v,y:b};if(v=Y.x,b=Y.y,l){var ne;return Object.assign({},B,(ne={},ne[A]=T?"0":"",ne[R]=E?"0":"",ne.transform=(D.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",ne))}return Object.assign({},B,(e={},e[A]=T?b+"px":"",e[R]=E?v+"px":"",e.transform="",e))}function computeStyles(s){var e=s.state,t=s.options,i=t.gpuAcceleration,n=i===void 0?!0:i,o=t.adaptive,r=o===void 0?!0:o,a=t.roundOffsets,l=a===void 0?!0:a,d={placement:getBasePlacement(e.placement),variation:getVariation(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,mapToStyles(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,mapToStyles(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(s){var e=s.state,t=s.instance,i=s.options,n=i.scroll,o=n===void 0?!0:n,r=i.resize,a=r===void 0?!0:r,l=getWindow(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(h){h.addEventListener("scroll",t.update,passive)}),a&&l.addEventListener("resize",t.update,passive),function(){o&&d.forEach(function(h){h.removeEventListener("scroll",t.update,passive)}),a&&l.removeEventListener("resize",t.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function s(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(s){return s.replace(/left|right|bottom|top/g,function(e){return hash$1[e]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(s){return s.replace(/start|end/g,function(e){return hash[e]})}function getWindowScroll(s){var e=getWindow(s),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function getWindowScrollBarX(s){return getBoundingClientRect(getDocumentElement(s)).left+getWindowScroll(s).scrollLeft}function getViewportRect(s,e){var t=getWindow(s),i=getDocumentElement(s),n=t.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){o=n.width,r=n.height;var d=isLayoutViewport();(d||!d&&e==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:o,height:r,x:a+getWindowScrollBarX(s),y:l}}function getDocumentRect(s){var e,t=getDocumentElement(s),i=getWindowScroll(s),n=(e=s.ownerDocument)==null?void 0:e.body,o=max(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=max(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+getWindowScrollBarX(s),l=-i.scrollTop;return getComputedStyle$2(n||t).direction==="rtl"&&(a+=max(t.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function isScrollParent(s){var e=getComputedStyle$2(s),t=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+i)}function getScrollParent(s){return["html","body","#document"].indexOf(getNodeName(s))>=0?s.ownerDocument.body:isHTMLElement(s)&&isScrollParent(s)?s:getScrollParent(getParentNode(s))}function listScrollParents(s,e){var t;e===void 0&&(e=[]);var i=getScrollParent(s),n=i===((t=s.ownerDocument)==null?void 0:t.body),o=getWindow(i),r=n?[o].concat(o.visualViewport||[],isScrollParent(i)?i:[]):i,a=e.concat(r);return n?a:a.concat(listScrollParents(getParentNode(r)))}function rectToClientRect(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function getInnerBoundingClientRect(s,e){var t=getBoundingClientRect(s,!1,e==="fixed");return t.top=t.top+s.clientTop,t.left=t.left+s.clientLeft,t.bottom=t.top+s.clientHeight,t.right=t.left+s.clientWidth,t.width=s.clientWidth,t.height=s.clientHeight,t.x=t.left,t.y=t.top,t}function getClientRectFromMixedType(s,e,t){return e===viewport?rectToClientRect(getViewportRect(s,t)):isElement$1(e)?getInnerBoundingClientRect(e,t):rectToClientRect(getDocumentRect(getDocumentElement(s)))}function getClippingParents(s){var e=listScrollParents(getParentNode(s)),t=["absolute","fixed"].indexOf(getComputedStyle$2(s).position)>=0,i=t&&isHTMLElement(s)?getOffsetParent(s):s;return isElement$1(i)?e.filter(function(n){return isElement$1(n)&&contains(n,i)&&getNodeName(n)!=="body"}):[]}function getClippingRect(s,e,t,i){var n=e==="clippingParents"?getClippingParents(s):[].concat(e),o=[].concat(n,[t]),r=o[0],a=o.reduce(function(l,d){var h=getClientRectFromMixedType(s,d,i);return l.top=max(h.top,l.top),l.right=min(h.right,l.right),l.bottom=min(h.bottom,l.bottom),l.left=max(h.left,l.left),l},getClientRectFromMixedType(s,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function computeOffsets(s){var e=s.reference,t=s.element,i=s.placement,n=i?getBasePlacement(i):null,o=i?getVariation(i):null,r=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(n){case top:l={x:r,y:e.y-t.height};break;case bottom:l={x:r,y:e.y+e.height};break;case right:l={x:e.x+e.width,y:a};break;case left:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var d=n?getMainAxisFromPlacement(n):null;if(d!=null){var h=d==="y"?"height":"width";switch(o){case start:l[d]=l[d]-(e[h]/2-t[h]/2);break;case end:l[d]=l[d]+(e[h]/2-t[h]/2);break}}return l}function detectOverflow(s,e){e===void 0&&(e={});var t=e,i=t.placement,n=i===void 0?s.placement:i,o=t.strategy,r=o===void 0?s.strategy:o,a=t.boundary,l=a===void 0?clippingParents:a,d=t.rootBoundary,h=d===void 0?viewport:d,p=t.elementContext,m=p===void 0?popper:p,v=t.altBoundary,y=v===void 0?!1:v,b=t.padding,S=b===void 0?0:b,E=mergePaddingObject(typeof S!="number"?S:expandToHashMap(S,basePlacements)),T=m===popper?reference:popper,R=s.rects.popper,A=s.elements[y?T:m],D=getClippingRect(isElement$1(A)?A:A.contextElement||getDocumentElement(s.elements.popper),l,h,r),x=getBoundingClientRect(s.elements.reference),M=computeOffsets({reference:x,element:R,strategy:"absolute",placement:n}),I=rectToClientRect(Object.assign({},R,M)),V=m===popper?I:x,U={top:D.top-V.top+E.top,bottom:V.bottom-D.bottom+E.bottom,left:D.left-V.left+E.left,right:V.right-D.right+E.right},B=s.modifiersData.offset;if(m===popper&&B){var Y=B[n];Object.keys(U).forEach(function(ne){var ee=[right,bottom].indexOf(ne)>=0?1:-1,F=[top,bottom].indexOf(ne)>=0?"y":"x";U[ne]+=Y[F]*ee})}return U}function computeAutoPlacement(s,e){e===void 0&&(e={});var t=e,i=t.placement,n=t.boundary,o=t.rootBoundary,r=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,d=l===void 0?placements:l,h=getVariation(i),p=h?a?variationPlacements:variationPlacements.filter(function(y){return getVariation(y)===h}):basePlacements,m=p.filter(function(y){return d.indexOf(y)>=0});m.length===0&&(m=p);var v=m.reduce(function(y,b){return y[b]=detectOverflow(s,{placement:b,boundary:n,rootBoundary:o,padding:r})[getBasePlacement(b)],y},{});return Object.keys(v).sort(function(y,b){return v[y]-v[b]})}function getExpandedFallbackPlacements(s){if(getBasePlacement(s)===auto)return[];var e=getOppositePlacement(s);return[getOppositeVariationPlacement(s),e,getOppositeVariationPlacement(e)]}function flip(s){var e=s.state,t=s.options,i=s.name;if(!e.modifiersData[i]._skip){for(var n=t.mainAxis,o=n===void 0?!0:n,r=t.altAxis,a=r===void 0?!0:r,l=t.fallbackPlacements,d=t.padding,h=t.boundary,p=t.rootBoundary,m=t.altBoundary,v=t.flipVariations,y=v===void 0?!0:v,b=t.allowedAutoPlacements,S=e.options.placement,E=getBasePlacement(S),T=E===S,R=l||(T||!y?[getOppositePlacement(S)]:getExpandedFallbackPlacements(S)),A=[S].concat(R).reduce(function(le,oe){return le.concat(getBasePlacement(oe)===auto?computeAutoPlacement(e,{placement:oe,boundary:h,rootBoundary:p,padding:d,flipVariations:y,allowedAutoPlacements:b}):oe)},[]),D=e.rects.reference,x=e.rects.popper,M=new Map,I=!0,V=A[0],U=0;U<A.length;U++){var B=A[U],Y=getBasePlacement(B),ne=getVariation(B)===start,ee=[top,bottom].indexOf(Y)>=0,F=ee?"width":"height",$=detectOverflow(e,{placement:B,boundary:h,rootBoundary:p,altBoundary:m,padding:d}),q=ee?ne?right:left:ne?bottom:top;D[F]>x[F]&&(q=getOppositePlacement(q));var W=getOppositePlacement(q),J=[];if(o&&J.push($[Y]<=0),a&&J.push($[q]<=0,$[W]<=0),J.every(function(le){return le})){V=B,I=!1;break}M.set(B,J)}if(I)for(var K=y?3:1,ue=function(oe){var ie=A.find(function(we){var Pe=M.get(we);if(Pe)return Pe.slice(0,oe).every(function(He){return He})});if(ie)return V=ie,"break"},ve=K;ve>0;ve--){var ae=ue(ve);if(ae==="break")break}e.placement!==V&&(e.modifiersData[i]._skip=!0,e.placement=V,e.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(s,e,t){return t===void 0&&(t={x:0,y:0}),{top:s.top-e.height-t.y,right:s.right-e.width+t.x,bottom:s.bottom-e.height+t.y,left:s.left-e.width-t.x}}function isAnySideFullyClipped(s){return[top,right,bottom,left].some(function(e){return s[e]>=0})}function hide(s){var e=s.state,t=s.name,i=e.rects.reference,n=e.rects.popper,o=e.modifiersData.preventOverflow,r=detectOverflow(e,{elementContext:"reference"}),a=detectOverflow(e,{altBoundary:!0}),l=getSideOffsets(r,i),d=getSideOffsets(a,n,o),h=isAnySideFullyClipped(l),p=isAnySideFullyClipped(d);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(s,e,t){var i=getBasePlacement(s),n=[left,top].indexOf(i)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:s})):t,r=o[0],a=o[1];return r=r||0,a=(a||0)*n,[left,right].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function offset(s){var e=s.state,t=s.options,i=s.name,n=t.offset,o=n===void 0?[0,0]:n,r=placements.reduce(function(h,p){return h[p]=distanceAndSkiddingToXY(p,e.rects,o),h},{}),a=r[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=r}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(s){var e=s.state,t=s.name;e.modifiersData[t]=computeOffsets({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(s){return s==="x"?"y":"x"}function preventOverflow(s){var e=s.state,t=s.options,i=s.name,n=t.mainAxis,o=n===void 0?!0:n,r=t.altAxis,a=r===void 0?!1:r,l=t.boundary,d=t.rootBoundary,h=t.altBoundary,p=t.padding,m=t.tether,v=m===void 0?!0:m,y=t.tetherOffset,b=y===void 0?0:y,S=detectOverflow(e,{boundary:l,rootBoundary:d,padding:p,altBoundary:h}),E=getBasePlacement(e.placement),T=getVariation(e.placement),R=!T,A=getMainAxisFromPlacement(E),D=getAltAxis(A),x=e.modifiersData.popperOffsets,M=e.rects.reference,I=e.rects.popper,V=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,U=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(x){if(o){var ne,ee=A==="y"?top:left,F=A==="y"?bottom:right,$=A==="y"?"height":"width",q=x[A],W=q+S[ee],J=q-S[F],K=v?-I[$]/2:0,ue=T===start?M[$]:I[$],ve=T===start?-I[$]:-M[$],ae=e.elements.arrow,le=v&&ae?getLayoutRect(ae):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:getFreshSideObject(),ie=oe[ee],we=oe[F],Pe=within(0,M[$],le[$]),He=R?M[$]/2-K-Pe-ie-U.mainAxis:ue-Pe-ie-U.mainAxis,qe=R?-M[$]/2+K+Pe+we+U.mainAxis:ve+Pe+we+U.mainAxis,We=e.elements.arrow&&getOffsetParent(e.elements.arrow),Ne=We?A==="y"?We.clientTop||0:We.clientLeft||0:0,Be=(ne=B==null?void 0:B[A])!=null?ne:0,Xe=q+He-Be-Ne,ze=q+qe-Be,X=within(v?min(W,Xe):W,q,v?max(J,ze):J);x[A]=X,Y[A]=X-q}if(a){var z,Z=A==="x"?top:left,re=A==="x"?bottom:right,me=x[D],Te=D==="y"?"height":"width",Je=me+S[Z],et=me-S[re],tt=[top,left].indexOf(E)!==-1,Ft=(z=B==null?void 0:B[D])!=null?z:0,lt=tt?Je:me-M[Te]-I[Te]-Ft+U.altAxis,_t=tt?me+M[Te]+I[Te]-Ft-U.altAxis:et,yt=v&&tt?withinMaxClamp(lt,me,_t):within(v?lt:Je,me,v?_t:et);x[D]=yt,Y[D]=yt-me}e.modifiersData[i]=Y}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function getNodeScroll(s){return s===getWindow(s)||!isHTMLElement(s)?getWindowScroll(s):getHTMLElementScroll(s)}function isElementScaled(s){var e=s.getBoundingClientRect(),t=round$1(e.width)/s.offsetWidth||1,i=round$1(e.height)/s.offsetHeight||1;return t!==1||i!==1}function getCompositeRect(s,e,t){t===void 0&&(t=!1);var i=isHTMLElement(e),n=isHTMLElement(e)&&isElementScaled(e),o=getDocumentElement(e),r=getBoundingClientRect(s,n,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((getNodeName(e)!=="body"||isScrollParent(o))&&(a=getNodeScroll(e)),isHTMLElement(e)?(l=getBoundingClientRect(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=getWindowScrollBarX(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function order(s){var e=new Map,t=new Set,i=[];s.forEach(function(o){e.set(o.name,o)});function n(o){t.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&n(l)}}),i.push(o)}return s.forEach(function(o){t.has(o.name)||n(o)}),i}function orderModifiers(s){var e=order(s);return modifierPhases.reduce(function(t,i){return t.concat(e.filter(function(n){return n.phase===i}))},[])}function debounce$4(s){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(s())})})),e}}function mergeByName(s){var e=s.reduce(function(t,i){var n=t[i.name];return t[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var s=arguments.length,e=new Array(s),t=0;t<s;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function popperGenerator(s){s===void 0&&(s={});var e=s,t=e.defaultModifiers,i=t===void 0?[]:t,n=e.defaultOptions,o=n===void 0?DEFAULT_OPTIONS:n;return function(a,l,d){d===void 0&&(d=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],m=!1,v={state:h,setOptions:function(E){var T=typeof E=="function"?E(h.options):E;b(),h.options=Object.assign({},o,h.options,T),h.scrollParents={reference:isElement$1(a)?listScrollParents(a):a.contextElement?listScrollParents(a.contextElement):[],popper:listScrollParents(l)};var R=orderModifiers(mergeByName([].concat(i,h.options.modifiers)));return h.orderedModifiers=R.filter(function(A){return A.enabled}),y(),v.update()},forceUpdate:function(){if(!m){var E=h.elements,T=E.reference,R=E.popper;if(areValidElements(T,R)){h.rects={reference:getCompositeRect(T,getOffsetParent(R),h.options.strategy==="fixed"),popper:getLayoutRect(R)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(U){return h.modifiersData[U.name]=Object.assign({},U.data)});for(var A=0;A<h.orderedModifiers.length;A++){if(h.reset===!0){h.reset=!1,A=-1;continue}var D=h.orderedModifiers[A],x=D.fn,M=D.options,I=M===void 0?{}:M,V=D.name;typeof x=="function"&&(h=x({state:h,options:I,name:V,instance:v})||h)}}}},update:debounce$4(function(){return new Promise(function(S){v.forceUpdate(),S(h)})}),destroy:function(){b(),m=!0}};if(!areValidElements(a,l))return v;v.setOptions(d).then(function(S){!m&&d.onFirstUpdate&&d.onFirstUpdate(S)});function y(){h.orderedModifiers.forEach(function(S){var E=S.name,T=S.options,R=T===void 0?{}:T,A=S.effect;if(typeof A=="function"){var D=A({state:h,name:E,instance:v,options:R}),x=function(){};p.push(D||x)}})}function b(){p.forEach(function(S){return S()}),p=[]}return v}}var createPopper$2=popperGenerator(),defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1}),defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});const Popper=Object.freeze(Object.defineProperty({__proto__:null,afterMain,afterRead,afterWrite,applyStyles:applyStyles$1,arrow:arrow$1,auto,basePlacements,beforeMain,beforeRead,beforeWrite,bottom,clippingParents,computeStyles:computeStyles$1,createPopper,createPopperBase:createPopper$2,createPopperLite:createPopper$1,detectOverflow,end,eventListeners,flip:flip$1,hide:hide$1,left,main,modifierPhases,offset:offset$1,placements,popper,popperGenerator,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1,read,reference,right,start,top,variationPlacements,viewport,write},Symbol.toStringTag,{value:"Module"}));/*!
+`:""}`,e),setTimeout(()=>{throw s},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(s){let e=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1;let t=s();return shouldAutoEvaluateFunctions=e,t}function evaluate(s,e,t={}){let i;return evaluateLater(s,e)(n=>i=n,t),i}function evaluateLater(...s){return theEvaluatorFunction(...s)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(s){theEvaluatorFunction=s}function normalEvaluator(s,e){let t={};injectMagics(t,s);let i=[t,...closestDataStack(s)],n=typeof e=="function"?generateEvaluatorFromFunction(i,e):generateEvaluatorFromString(i,e,s);return tryCatch.bind(null,s,e,n)}function generateEvaluatorFromFunction(s,e){return(t=()=>{},{scope:i={},params:n=[]}={})=>{let o=e.apply(mergeProxies([i,...s]),n);runIfTypeOfFunction(t,o)}}var evaluatorMemo={};function generateFunctionFromString(s,e){if(evaluatorMemo[s])return evaluatorMemo[s];let t=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(s.trim())||/^(let|const)\s/.test(s.trim())?`(async()=>{ ${s} })()`:s,o=(()=>{try{let r=new t(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(r,"name",{value:`[Alpine] ${s}`}),r}catch(r){return handleError(r,e,s),Promise.resolve()}})();return evaluatorMemo[s]=o,o}function generateEvaluatorFromString(s,e,t){let i=generateFunctionFromString(e,t);return(n=()=>{},{scope:o={},params:r=[]}={})=>{i.result=void 0,i.finished=!1;let a=mergeProxies([o,...s]);if(typeof i=="function"){let l=i(i,a).catch(d=>handleError(d,t,e));i.finished?(runIfTypeOfFunction(n,i.result,a,r,t),i.result=void 0):l.then(d=>{runIfTypeOfFunction(n,d,a,r,t)}).catch(d=>handleError(d,t,e)).finally(()=>i.result=void 0)}}}function runIfTypeOfFunction(s,e,t,i,n){if(shouldAutoEvaluateFunctions&&typeof e=="function"){let o=e.apply(t,i);o instanceof Promise?o.then(r=>runIfTypeOfFunction(s,r,t,i)).catch(r=>handleError(r,n,e)):s(o)}else typeof e=="object"&&e instanceof Promise?e.then(o=>s(o)):s(e)}var prefixAsString="x-";function prefix(s=""){return prefixAsString+s}function setPrefix(s){prefixAsString=s}var directiveHandlers={};function directive(s,e){return directiveHandlers[s]=e,{before(t){if(!directiveHandlers[t]){console.warn(String.raw`Cannot find directive \`${t}\`. \`${s}\` will use the default order of execution`);return}const i=directiveOrder.indexOf(t);directiveOrder.splice(i>=0?i:directiveOrder.indexOf("DEFAULT"),0,s)}}}function directives(s,e,t){if(e=Array.from(e),s._x_virtualDirectives){let o=Object.entries(s._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),r=attributesOnly(o);o=o.map(a=>r.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(o)}let i={};return e.map(toTransformedAttributes((o,r)=>i[o]=r)).filter(outNonAlpineAttributes).map(toParsedDirectives(i,t)).sort(byPriority).map(o=>getDirectiveHandler(s,o))}function attributesOnly(s){return Array.from(s).map(toTransformedAttributes()).filter(e=>!outNonAlpineAttributes(e))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(s){isDeferringHandlers=!0;let e=Symbol();currentHandlerStackKey=e,directiveHandlerStacks.set(e,[]);let t=()=>{for(;directiveHandlerStacks.get(e).length;)directiveHandlerStacks.get(e).shift()();directiveHandlerStacks.delete(e)},i=()=>{isDeferringHandlers=!1,t()};s(t),i()}function getElementBoundUtilities(s){let e=[],t=a=>e.push(a),[i,n]=elementBoundEffect(s);return e.push(n),[{Alpine:alpine_default,effect:i,cleanup:t,evaluateLater:evaluateLater.bind(evaluateLater,s),evaluate:evaluate.bind(evaluate,s)},()=>e.forEach(a=>a())]}function getDirectiveHandler(s,e){let t=()=>{},i=directiveHandlers[e.type]||t,[n,o]=getElementBoundUtilities(s);onAttributeRemoved(s,e.original,o);let r=()=>{s._x_ignore||s._x_ignoreSelf||(i.inline&&i.inline(s,e,n),i=i.bind(i,s,e,n),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(i):i())};return r.runCleanups=o,r}var startingWith=(s,e)=>({name:t,value:i})=>(t.startsWith(s)&&(t=t.replace(s,e)),{name:t,value:i}),into=s=>s;function toTransformedAttributes(s=()=>{}){return({name:e,value:t})=>{let{name:i,value:n}=attributeTransformers.reduce((o,r)=>r(o),{name:e,value:t});return i!==e&&s(i,e),{name:i,value:n}}}var attributeTransformers=[];function mapAttributes(s){attributeTransformers.push(s)}function outNonAlpineAttributes({name:s}){return alpineAttributeRegex().test(s)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(s,e){return({name:t,value:i})=>{let n=t.match(alpineAttributeRegex()),o=t.match(/:([a-zA-Z0-9\-_:]+)/),r=t.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||s[t]||t;return{type:n?n[1]:null,value:o?o[1]:null,modifiers:r.map(l=>l.replace(".","")),expression:i,original:a}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(s,e){let t=directiveOrder.indexOf(s.type)===-1?DEFAULT:s.type,i=directiveOrder.indexOf(e.type)===-1?DEFAULT:e.type;return directiveOrder.indexOf(t)-directiveOrder.indexOf(i)}var tickStack=[],isHolding=!1;function nextTick(s=()=>{}){return queueMicrotask(()=>{isHolding||setTimeout(()=>{releaseNextTicks()})}),new Promise(e=>{tickStack.push(()=>{s(),e()})})}function releaseNextTicks(){for(isHolding=!1;tickStack.length;)tickStack.shift()()}function holdNextTicks(){isHolding=!0}function setClasses(s,e){return Array.isArray(e)?setClassesFromString(s,e.join(" ")):typeof e=="object"&&e!==null?setClassesFromObject(s,e):typeof e=="function"?setClasses(s,e()):setClassesFromString(s,e)}function setClassesFromString(s,e){let t=n=>n.split(" ").filter(o=>!s.classList.contains(o)).filter(Boolean),i=n=>(s.classList.add(...n),()=>{s.classList.remove(...n)});return e=e===!0?e="":e||"",i(t(e))}function setClassesFromObject(s,e){let t=a=>a.split(" ").filter(Boolean),i=Object.entries(e).flatMap(([a,l])=>l?t(a):!1).filter(Boolean),n=Object.entries(e).flatMap(([a,l])=>l?!1:t(a)).filter(Boolean),o=[],r=[];return n.forEach(a=>{s.classList.contains(a)&&(s.classList.remove(a),r.push(a))}),i.forEach(a=>{s.classList.contains(a)||(s.classList.add(a),o.push(a))}),()=>{r.forEach(a=>s.classList.add(a)),o.forEach(a=>s.classList.remove(a))}}function setStyles(s,e){return typeof e=="object"&&e!==null?setStylesFromObject(s,e):setStylesFromString(s,e)}function setStylesFromObject(s,e){let t={};return Object.entries(e).forEach(([i,n])=>{t[i]=s.style[i],i.startsWith("--")||(i=kebabCase(i)),s.style.setProperty(i,n)}),setTimeout(()=>{s.style.length===0&&s.removeAttribute("style")}),()=>{setStyles(s,t)}}function setStylesFromString(s,e){let t=s.getAttribute("style",e);return s.setAttribute("style",e),()=>{s.setAttribute("style",t||"")}}function kebabCase(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function once(s,e=()=>{}){let t=!1;return function(){t?e.apply(this,arguments):(t=!0,s.apply(this,arguments))}}directive("transition",(s,{value:e,modifiers:t,expression:i},{evaluate:n})=>{typeof i=="function"&&(i=n(i)),i!==!1&&(!i||typeof i=="boolean"?registerTransitionsFromHelper(s,t,e):registerTransitionsFromClassString(s,i,e))});function registerTransitionsFromClassString(s,e,t){registerTransitionObject(s,setClasses,""),{enter:n=>{s._x_transition.enter.during=n},"enter-start":n=>{s._x_transition.enter.start=n},"enter-end":n=>{s._x_transition.enter.end=n},leave:n=>{s._x_transition.leave.during=n},"leave-start":n=>{s._x_transition.leave.start=n},"leave-end":n=>{s._x_transition.leave.end=n}}[t](e)}function registerTransitionsFromHelper(s,e,t){registerTransitionObject(s,setStyles);let i=!e.includes("in")&&!e.includes("out")&&!t,n=i||e.includes("in")||["enter"].includes(t),o=i||e.includes("out")||["leave"].includes(t);e.includes("in")&&!i&&(e=e.filter((E,T)=>T<e.indexOf("out"))),e.includes("out")&&!i&&(e=e.filter((E,T)=>T>e.indexOf("out")));let r=!e.includes("opacity")&&!e.includes("scale"),a=r||e.includes("opacity"),l=r||e.includes("scale"),d=a?0:1,h=l?modifierValue(e,"scale",95)/100:1,p=modifierValue(e,"delay",0)/1e3,m=modifierValue(e,"origin","center"),v="opacity, transform",y=modifierValue(e,"duration",150)/1e3,b=modifierValue(e,"duration",75)/1e3,S="cubic-bezier(0.4, 0.0, 0.2, 1)";n&&(s._x_transition.enter.during={transformOrigin:m,transitionDelay:`${p}s`,transitionProperty:v,transitionDuration:`${y}s`,transitionTimingFunction:S},s._x_transition.enter.start={opacity:d,transform:`scale(${h})`},s._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(s._x_transition.leave.during={transformOrigin:m,transitionDelay:`${p}s`,transitionProperty:v,transitionDuration:`${b}s`,transitionTimingFunction:S},s._x_transition.leave.start={opacity:1,transform:"scale(1)"},s._x_transition.leave.end={opacity:d,transform:`scale(${h})`})}function registerTransitionObject(s,e,t={}){s._x_transition||(s._x_transition={enter:{during:t,start:t,end:t},leave:{during:t,start:t,end:t},in(i=()=>{},n=()=>{}){transition(s,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,n)},out(i=()=>{},n=()=>{}){transition(s,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,n)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(s,e,t,i){const n=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let o=()=>n(t);if(e){s._x_transition&&(s._x_transition.enter||s._x_transition.leave)?s._x_transition.enter&&(Object.entries(s._x_transition.enter.during).length||Object.entries(s._x_transition.enter.start).length||Object.entries(s._x_transition.enter.end).length)?s._x_transition.in(t):o():s._x_transition?s._x_transition.in(t):o();return}s._x_hidePromise=s._x_transition?new Promise((r,a)=>{s._x_transition.out(()=>{},()=>r(i)),s._x_transitioning&&s._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let r=closestHide(s);r?(r._x_hideChildren||(r._x_hideChildren=[]),r._x_hideChildren.push(s)):n(()=>{let a=l=>{let d=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([h])=>h());return delete l._x_hidePromise,delete l._x_hideChildren,d};a(s).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function closestHide(s){let e=s.parentNode;if(e)return e._x_hidePromise?e:closestHide(e)}function transition(s,e,{during:t,start:i,end:n}={},o=()=>{},r=()=>{}){if(s._x_transitioning&&s._x_transitioning.cancel(),Object.keys(t).length===0&&Object.keys(i).length===0&&Object.keys(n).length===0){o(),r();return}let a,l,d;performTransition(s,{start(){a=e(s,i)},during(){l=e(s,t)},before:o,end(){a(),d=e(s,n)},after:r,cleanup(){l(),d()}})}function performTransition(s,e){let t,i,n,o=once(()=>{mutateDom(()=>{t=!0,i||e.before(),n||(e.end(),releaseNextTicks()),e.after(),s.isConnected&&e.cleanup(),delete s._x_transitioning})});s._x_transitioning={beforeCancels:[],beforeCancel(r){this.beforeCancels.push(r)},cancel:once(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},mutateDom(()=>{e.start(),e.during()}),holdNextTicks(),requestAnimationFrame(()=>{if(t)return;let r=Number(getComputedStyle(s).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(s).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;r===0&&(r=Number(getComputedStyle(s).animationDuration.replace("s",""))*1e3),mutateDom(()=>{e.before()}),i=!0,requestAnimationFrame(()=>{t||(mutateDom(()=>{e.end()}),releaseNextTicks(),setTimeout(s._x_transitioning.finish,r+a),n=!0)})})}function modifierValue(s,e,t){if(s.indexOf(e)===-1)return t;const i=s[s.indexOf(e)+1];if(!i||e==="scale"&&isNaN(i))return t;if(e==="duration"||e==="delay"){let n=i.match(/([0-9]+)ms/);if(n)return n[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(s[s.indexOf(e)+2])?[i,s[s.indexOf(e)+2]].join(" "):i}var isCloning=!1;function skipDuringClone(s,e=()=>{}){return(...t)=>isCloning?e(...t):s(...t)}function onlyDuringClone(s){return(...e)=>isCloning&&s(...e)}var interceptors=[];function interceptClone(s){interceptors.push(s)}function cloneNode(s,e){interceptors.forEach(t=>t(s,e)),isCloning=!0,dontRegisterReactiveSideEffects(()=>{initTree(e,(t,i)=>{i(t,()=>{})})}),isCloning=!1}var isCloningLegacy=!1;function clone$2(s,e){e._x_dataStack||(e._x_dataStack=s._x_dataStack),isCloning=!0,isCloningLegacy=!0,dontRegisterReactiveSideEffects(()=>{cloneTree(e)}),isCloning=!1,isCloningLegacy=!1}function cloneTree(s){let e=!1;initTree(s,(i,n)=>{walk(i,(o,r)=>{if(e&&isRoot(o))return r();e=!0,n(o,r)})})}function dontRegisterReactiveSideEffects(s){let e=effect$3;overrideEffect((t,i)=>{let n=e(t);return release(n),()=>{}}),s(),overrideEffect(e)}function bind(s,e,t,i=[]){switch(s._x_bindings||(s._x_bindings=reactive({})),s._x_bindings[e]=t,e=i.includes("camel")?camelCase(e):e,e){case"value":bindInputValue(s,t);break;case"style":bindStyles(s,t);break;case"class":bindClasses(s,t);break;case"selected":case"checked":bindAttributeAndProperty(s,e,t);break;default:bindAttribute(s,e,t);break}}function bindInputValue(s,e){if(s.type==="radio")s.attributes.value===void 0&&(s.value=e),window.fromModel&&(typeof e=="boolean"?s.checked=safeParseBoolean(s.value)===e:s.checked=checkedAttrLooseCompare(s.value,e));else if(s.type==="checkbox")Number.isInteger(e)?s.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?s.value=String(e):Array.isArray(e)?s.checked=e.some(t=>checkedAttrLooseCompare(t,s.value)):s.checked=!!e;else if(s.tagName==="SELECT")updateSelect(s,e);else{if(s.value===e)return;s.value=e===void 0?"":e}}function bindClasses(s,e){s._x_undoAddedClasses&&s._x_undoAddedClasses(),s._x_undoAddedClasses=setClasses(s,e)}function bindStyles(s,e){s._x_undoAddedStyles&&s._x_undoAddedStyles(),s._x_undoAddedStyles=setStyles(s,e)}function bindAttributeAndProperty(s,e,t){bindAttribute(s,e,t),setPropertyIfChanged(s,e,t)}function bindAttribute(s,e,t){[null,void 0,!1].includes(t)&&attributeShouldntBePreservedIfFalsy(e)?s.removeAttribute(e):(isBooleanAttr(e)&&(t=e),setIfChanged(s,e,t))}function setIfChanged(s,e,t){s.getAttribute(e)!=t&&s.setAttribute(e,t)}function setPropertyIfChanged(s,e,t){s[e]!==t&&(s[e]=t)}function updateSelect(s,e){const t=[].concat(e).map(i=>i+"");Array.from(s.options).forEach(i=>{i.selected=t.includes(i.value)})}function camelCase(s){return s.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function checkedAttrLooseCompare(s,e){return s==e}function safeParseBoolean(s){return[1,"1","true","on","yes",!0].includes(s)?!0:[0,"0","false","off","no",!1].includes(s)?!1:s?!!s:null}function isBooleanAttr(s){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(s)}function attributeShouldntBePreservedIfFalsy(s){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(s)}function getBinding(s,e,t){return s._x_bindings&&s._x_bindings[e]!==void 0?s._x_bindings[e]:getAttributeBinding(s,e,t)}function extractProp(s,e,t,i=!0){if(s._x_bindings&&s._x_bindings[e]!==void 0)return s._x_bindings[e];if(s._x_inlineBindings&&s._x_inlineBindings[e]!==void 0){let n=s._x_inlineBindings[e];return n.extract=i,dontAutoEvaluateFunctions(()=>evaluate(s,n.expression))}return getAttributeBinding(s,e,t)}function getAttributeBinding(s,e,t){let i=s.getAttribute(e);return i===null?typeof t=="function"?t():t:i===""?!0:isBooleanAttr(e)?!![e,"true"].includes(i):i}function debounce$5(s,e){var t;return function(){var i=this,n=arguments,o=function(){t=null,s.apply(i,n)};clearTimeout(t),t=setTimeout(o,e)}}function throttle$1(s,e){let t;return function(){let i=this,n=arguments;t||(s.apply(i,n),t=!0,setTimeout(()=>t=!1,e))}}function entangle({get:s,set:e},{get:t,set:i}){let n=!0,o,r=effect$3(()=>{let a=s(),l=t();if(n)i(cloneIfObject(a)),n=!1;else{let d=JSON.stringify(a),h=JSON.stringify(l);d!==o?i(cloneIfObject(a)):d!==h&&e(cloneIfObject(l))}o=JSON.stringify(s()),JSON.stringify(t())});return()=>{release(r)}}function cloneIfObject(s){return typeof s=="object"?JSON.parse(JSON.stringify(s)):s}function plugin(s){(Array.isArray(s)?s:[s]).forEach(t=>t(alpine_default))}var stores={},isReactive=!1;function store(s,e){if(isReactive||(stores=reactive(stores),isReactive=!0),e===void 0)return stores[s];stores[s]=e,typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&stores[s].init(),initInterceptors2(stores[s])}function getStores(){return stores}var binds={};function bind2(s,e){let t=typeof e!="function"?()=>e:e;return s instanceof Element?applyBindingsObject(s,t()):(binds[s]=t,()=>{})}function injectBindingProviders(s){return Object.entries(binds).forEach(([e,t])=>{Object.defineProperty(s,e,{get(){return(...i)=>t(...i)}})}),s}function applyBindingsObject(s,e,t){let i=[];for(;i.length;)i.pop()();let n=Object.entries(e).map(([r,a])=>({name:r,value:a})),o=attributesOnly(n);return n=n.map(r=>o.find(a=>a.name===r.name)?{name:`x-bind:${r.name}`,value:`"${r.value}"`}:r),directives(s,n,t).map(r=>{i.push(r.runCleanups),r()}),()=>{for(;i.length;)i.pop()()}}var datas={};function data(s,e){datas[s]=e}function injectDataProviders(s,e){return Object.entries(datas).forEach(([t,i])=>{Object.defineProperty(s,t,{get(){return(...n)=>i.bind(e)(...n)},enumerable:!1})}),s}var Alpine={get reactive(){return reactive},get release(){return release},get effect(){return effect$3},get raw(){return raw},version:"3.13.7",flushAndStopDeferringMutations,dontAutoEvaluateFunctions,disableEffectScheduling,startObservingMutations,stopObservingMutations,setReactivityEngine,onAttributeRemoved,onAttributesAdded,closestDataStack,skipDuringClone,onlyDuringClone,addRootSelector,addInitSelector,interceptClone,addScopeToNode,deferMutations,mapAttributes,evaluateLater,interceptInit,setEvaluator,mergeProxies,extractProp,findClosest,onElRemoved,closestRoot,destroyTree,interceptor,transition,setStyles,mutateDom,directive,entangle,throttle:throttle$1,debounce:debounce$5,evaluate,initTree,nextTick,prefixed:prefix,prefix:setPrefix,plugin,magic,store,start:start$1,clone:clone$2,cloneNode,bound:getBinding,$data:scope,watch,walk,data,bind:bind2},alpine_default=Alpine;function makeMap(s,e){const t=Object.create(null),i=s.split(",");for(let n=0;n<i.length;n++)t[i[n]]=!0;return e?n=>!!t[n.toLowerCase()]:n=>!!t[n]}var EMPTY_OBJ=Object.freeze({}),hasOwnProperty=Object.prototype.hasOwnProperty,hasOwn=(s,e)=>hasOwnProperty.call(s,e),isArray$1=Array.isArray,isMap=s=>toTypeString(s)==="[object Map]",isString=s=>typeof s=="string",isSymbol=s=>typeof s=="symbol",isObject$1=s=>s!==null&&typeof s=="object",objectToString=Object.prototype.toString,toTypeString=s=>objectToString.call(s),toRawType=s=>toTypeString(s).slice(8,-1),isIntegerKey=s=>isString(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,cacheStringFunction=s=>{const e=Object.create(null);return t=>e[t]||(e[t]=s(t))},capitalize$1=cacheStringFunction(s=>s.charAt(0).toUpperCase()+s.slice(1)),hasChanged=(s,e)=>s!==e&&(s===s||e===e),targetMap=new WeakMap,effectStack=[],activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate");function isEffect(s){return s&&s._isEffect===!0}function effect2(s,e=EMPTY_OBJ){isEffect(s)&&(s=s.raw);const t=createReactiveEffect(s,e);return e.lazy||t(),t}function stop(s){s.active&&(cleanup(s),s.options.onStop&&s.options.onStop(),s.active=!1)}var uid$1=0;function createReactiveEffect(s,e){const t=function(){if(!t.active)return s();if(!effectStack.includes(t)){cleanup(t);try{return enableTracking(),effectStack.push(t),activeEffect=t,s()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return t.id=uid$1++,t.allowRecurse=!!e.allowRecurse,t._isEffect=!0,t.active=!0,t.raw=s,t.deps=[],t.options=e,t}function cleanup(s){const{deps:e}=s;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(s);e.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const s=trackStack.pop();shouldTrack=s===void 0?!0:s}function track(s,e,t){if(!shouldTrack||activeEffect===void 0)return;let i=targetMap.get(s);i||targetMap.set(s,i=new Map);let n=i.get(t);n||i.set(t,n=new Set),n.has(activeEffect)||(n.add(activeEffect),activeEffect.deps.push(n),activeEffect.options.onTrack&&activeEffect.options.onTrack({effect:activeEffect,target:s,type:e,key:t}))}function trigger(s,e,t,i,n,o){const r=targetMap.get(s);if(!r)return;const a=new Set,l=h=>{h&&h.forEach(p=>{(p!==activeEffect||p.allowRecurse)&&a.add(p)})};if(e==="clear")r.forEach(l);else if(t==="length"&&isArray$1(s))r.forEach((h,p)=>{(p==="length"||p>=i)&&l(h)});else switch(t!==void 0&&l(r.get(t)),e){case"add":isArray$1(s)?isIntegerKey(t)&&l(r.get("length")):(l(r.get(ITERATE_KEY)),isMap(s)&&l(r.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$1(s)||(l(r.get(ITERATE_KEY)),isMap(s)&&l(r.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(s)&&l(r.get(ITERATE_KEY));break}const d=h=>{h.options.onTrigger&&h.options.onTrigger({effect:h,target:s,key:t,type:e,newValue:i,oldValue:n,oldTarget:o}),h.options.scheduler?h.options.scheduler(h):h()};a.forEach(d)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(s=>Symbol[s]).filter(isSymbol)),get2=createGetter(),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const s={};return["includes","indexOf","lastIndexOf"].forEach(e=>{s[e]=function(...t){const i=toRaw(this);for(let o=0,r=this.length;o<r;o++)track(i,"get",o+"");const n=i[e](...t);return n===-1||n===!1?i[e](...t.map(toRaw)):n}}),["push","pop","shift","unshift","splice"].forEach(e=>{s[e]=function(...t){pauseTracking();const i=toRaw(this)[e].apply(this,t);return resetTracking(),i}}),s}function createGetter(s=!1,e=!1){return function(i,n,o){if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_raw"&&o===(s?e?shallowReadonlyMap:readonlyMap:e?shallowReactiveMap:reactiveMap).get(i))return i;const r=isArray$1(i);if(!s&&r&&hasOwn(arrayInstrumentations,n))return Reflect.get(arrayInstrumentations,n,o);const a=Reflect.get(i,n,o);return(isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(s||track(i,"get",n),e)?a:isRef(a)?!r||!isIntegerKey(n)?a.value:a:isObject$1(a)?s?readonly(a):reactive2(a):a}}var set2=createSetter();function createSetter(s=!1){return function(t,i,n,o){let r=t[i];if(!s&&(n=toRaw(n),r=toRaw(r),!isArray$1(t)&&isRef(r)&&!isRef(n)))return r.value=n,!0;const a=isArray$1(t)&&isIntegerKey(i)?Number(i)<t.length:hasOwn(t,i),l=Reflect.set(t,i,n,o);return t===toRaw(o)&&(a?hasChanged(n,r)&&trigger(t,"set",i,n,r):trigger(t,"add",i,n)),l}}function deleteProperty(s,e){const t=hasOwn(s,e),i=s[e],n=Reflect.deleteProperty(s,e);return n&&t&&trigger(s,"delete",e,void 0,i),n}function has(s,e){const t=Reflect.has(s,e);return(!isSymbol(e)||!builtInSymbols.has(e))&&track(s,"has",e),t}function ownKeys$3(s){return track(s,"iterate",isArray$1(s)?"length":ITERATE_KEY),Reflect.ownKeys(s)}var mutableHandlers={get:get2,set:set2,deleteProperty,has,ownKeys:ownKeys$3},readonlyHandlers={get:readonlyGet,set(s,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,s),!0},deleteProperty(s,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,s),!0}},toReactive=s=>isObject$1(s)?reactive2(s):s,toReadonly=s=>isObject$1(s)?readonly(s):s,toShallow=s=>s,getProto=s=>Reflect.getPrototypeOf(s);function get$1$1(s,e,t=!1,i=!1){s=s.__v_raw;const n=toRaw(s),o=toRaw(e);e!==o&&!t&&track(n,"get",e),!t&&track(n,"get",o);const{has:r}=getProto(n),a=i?toShallow:t?toReadonly:toReactive;if(r.call(n,e))return a(s.get(e));if(r.call(n,o))return a(s.get(o));s!==n&&s.get(e)}function has$1(s,e=!1){const t=this.__v_raw,i=toRaw(t),n=toRaw(s);return s!==n&&!e&&track(i,"has",s),!e&&track(i,"has",n),s===n?t.has(s):t.has(s)||t.has(n)}function size(s,e=!1){return s=s.__v_raw,!e&&track(toRaw(s),"iterate",ITERATE_KEY),Reflect.get(s,"size",s)}function add(s){s=toRaw(s);const e=toRaw(this);return getProto(e).has.call(e,s)||(e.add(s),trigger(e,"add",s,s)),this}function set$1$1(s,e){e=toRaw(e);const t=toRaw(this),{has:i,get:n}=getProto(t);let o=i.call(t,s);o?checkIdentityKeys(t,i,s):(s=toRaw(s),o=i.call(t,s));const r=n.call(t,s);return t.set(s,e),o?hasChanged(e,r)&&trigger(t,"set",s,e,r):trigger(t,"add",s,e),this}function deleteEntry(s){const e=toRaw(this),{has:t,get:i}=getProto(e);let n=t.call(e,s);n?checkIdentityKeys(e,t,s):(s=toRaw(s),n=t.call(e,s));const o=i?i.call(e,s):void 0,r=e.delete(s);return n&&trigger(e,"delete",s,void 0,o),r}function clear(){const s=toRaw(this),e=s.size!==0,t=isMap(s)?new Map(s):new Set(s),i=s.clear();return e&&trigger(s,"clear",void 0,void 0,t),i}function createForEach(s,e){return function(i,n){const o=this,r=o.__v_raw,a=toRaw(r),l=e?toShallow:s?toReadonly:toReactive;return!s&&track(a,"iterate",ITERATE_KEY),r.forEach((d,h)=>i.call(n,l(d),l(h),o))}}function createIterableMethod(s,e,t){return function(...i){const n=this.__v_raw,o=toRaw(n),r=isMap(o),a=s==="entries"||s===Symbol.iterator&&r,l=s==="keys"&&r,d=n[s](...i),h=t?toShallow:e?toReadonly:toReactive;return!e&&track(o,"iterate",l?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:p,done:m}=d.next();return m?{value:p,done:m}:{value:a?[h(p[0]),h(p[1])]:h(p),done:m}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(s){return function(...e){{const t=e[0]?`on key "${e[0]}" `:"";console.warn(`${capitalize$1(s)} operation ${t}failed: target is readonly.`,toRaw(this))}return s==="delete"?!1:this}}function createInstrumentations(){const s={get(o){return get$1$1(this,o)},get size(){return size(this)},has:has$1,add,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},e={get(o){return get$1$1(this,o,!1,!0)},get size(){return size(this)},has:has$1,add,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},t={get(o){return get$1$1(this,o,!0)},get size(){return size(this,!0)},has(o){return has$1.call(this,o,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},i={get(o){return get$1$1(this,o,!0,!0)},get size(){return size(this,!0)},has(o){return has$1.call(this,o,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=createIterableMethod(o,!1,!1),t[o]=createIterableMethod(o,!0,!1),e[o]=createIterableMethod(o,!1,!0),i[o]=createIterableMethod(o,!0,!0)}),[s,t,e,i]}var[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(s,e){const t=e?s?shallowReadonlyInstrumentations:shallowInstrumentations:s?readonlyInstrumentations:mutableInstrumentations;return(i,n,o)=>n==="__v_isReactive"?!s:n==="__v_isReadonly"?s:n==="__v_raw"?i:Reflect.get(hasOwn(t,n)&&n in i?t:i,n,o)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)};function checkIdentityKeys(s,e,t){const i=toRaw(t);if(i!==t&&e.call(s,i)){const n=toRawType(s);console.warn(`Reactive ${n} contains both the raw and reactive versions of the same object${n==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(s){return s.__v_skip||!Object.isExtensible(s)?0:targetTypeMap(toRawType(s))}function reactive2(s){return s&&s.__v_isReadonly?s:createReactiveObject(s,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(s){return createReactiveObject(s,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(s,e,t,i,n){if(!isObject$1(s))return console.warn(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(e&&s.__v_isReactive))return s;const o=n.get(s);if(o)return o;const r=getTargetType(s);if(r===0)return s;const a=new Proxy(s,r===2?i:t);return n.set(s,a),a}function toRaw(s){return s&&toRaw(s.__v_raw)||s}function isRef(s){return!!(s&&s.__v_isRef===!0)}magic("nextTick",()=>nextTick);magic("dispatch",s=>dispatch.bind(dispatch,s));magic("watch",(s,{evaluateLater:e,cleanup:t})=>(i,n)=>{let o=e(i),a=watch(()=>{let l;return o(d=>l=d),l},n);t(a)});magic("store",getStores);magic("data",s=>scope(s));magic("root",s=>closestRoot(s));magic("refs",s=>(s._x_refs_proxy||(s._x_refs_proxy=mergeProxies(getArrayOfRefObject(s))),s._x_refs_proxy));function getArrayOfRefObject(s){let e=[];return findClosest(s,t=>{t._x_refs&&e.push(t._x_refs)}),e}var globalIdMemo={};function findAndIncrementId(s){return globalIdMemo[s]||(globalIdMemo[s]=0),++globalIdMemo[s]}function closestIdRoot(s,e){return findClosest(s,t=>{if(t._x_ids&&t._x_ids[e])return!0})}function setIdRoot(s,e){s._x_ids||(s._x_ids={}),s._x_ids[e]||(s._x_ids[e]=findAndIncrementId(e))}magic("id",(s,{cleanup:e})=>(t,i=null)=>{let n=`${t}${i?`-${i}`:""}`;return cacheIdByNameOnElement(s,n,e,()=>{let o=closestIdRoot(s,t),r=o?o._x_ids[t]:findAndIncrementId(t);return i?`${t}-${r}-${i}`:`${t}-${r}`})});interceptClone((s,e)=>{s._x_id&&(e._x_id=s._x_id)});function cacheIdByNameOnElement(s,e,t,i){if(s._x_id||(s._x_id={}),s._x_id[e])return s._x_id[e];let n=i();return s._x_id[e]=n,t(()=>{delete s._x_id[e]}),n}magic("el",s=>s);warnMissingPluginMagic("Focus","focus","focus");warnMissingPluginMagic("Persist","persist","persist");function warnMissingPluginMagic(s,e,t){magic(e,i=>warn(`You can't use [$${e}] without first installing the "${s}" plugin here: https://alpinejs.dev/plugins/${t}`,i))}directive("modelable",(s,{expression:e},{effect:t,evaluateLater:i,cleanup:n})=>{let o=i(e),r=()=>{let h;return o(p=>h=p),h},a=i(`${e} = __placeholder`),l=h=>a(()=>{},{scope:{__placeholder:h}}),d=r();l(d),queueMicrotask(()=>{if(!s._x_model)return;s._x_removeModelListeners.default();let h=s._x_model.get,p=s._x_model.set,m=entangle({get(){return h()},set(v){p(v)}},{get(){return r()},set(v){l(v)}});n(m)})});directive("teleport",(s,{modifiers:e,expression:t},{cleanup:i})=>{s.tagName.toLowerCase()!=="template"&&warn("x-teleport can only be used on a <template> tag",s);let n=getTarget(t),o=s.content.cloneNode(!0).firstElementChild;s._x_teleport=o,o._x_teleportBack=s,s.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),s._x_forwardEvents&&s._x_forwardEvents.forEach(a=>{o.addEventListener(a,l=>{l.stopPropagation(),s.dispatchEvent(new l.constructor(l.type,l))})}),addScopeToNode(o,{},s);let r=(a,l,d)=>{d.includes("prepend")?l.parentNode.insertBefore(a,l):d.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};mutateDom(()=>{r(o,n,e),initTree(o),o._x_ignore=!0}),s._x_teleportPutBack=()=>{let a=getTarget(t);mutateDom(()=>{r(s._x_teleport,a,e)})},i(()=>o.remove())});var teleportContainerDuringClone=document.createElement("div");function getTarget(s){let e=skipDuringClone(()=>document.querySelector(s),()=>teleportContainerDuringClone)();return e||warn(`Cannot find x-teleport element for selector: "${s}"`),e}var handler=()=>{};handler.inline=(s,{modifiers:e},{cleanup:t})=>{e.includes("self")?s._x_ignoreSelf=!0:s._x_ignore=!0,t(()=>{e.includes("self")?delete s._x_ignoreSelf:delete s._x_ignore})};directive("ignore",handler);directive("effect",skipDuringClone((s,{expression:e},{effect:t})=>{t(evaluateLater(s,e))}));function on(s,e,t,i){let n=s,o=l=>i(l),r={},a=(l,d)=>h=>d(l,h);if(t.includes("dot")&&(e=dotSyntax(e)),t.includes("camel")&&(e=camelCase2(e)),t.includes("passive")&&(r.passive=!0),t.includes("capture")&&(r.capture=!0),t.includes("window")&&(n=window),t.includes("document")&&(n=document),t.includes("debounce")){let l=t[t.indexOf("debounce")+1]||"invalid-wait",d=isNumeric(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=debounce$5(o,d)}if(t.includes("throttle")){let l=t[t.indexOf("throttle")+1]||"invalid-wait",d=isNumeric(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=throttle$1(o,d)}return t.includes("prevent")&&(o=a(o,(l,d)=>{d.preventDefault(),l(d)})),t.includes("stop")&&(o=a(o,(l,d)=>{d.stopPropagation(),l(d)})),t.includes("self")&&(o=a(o,(l,d)=>{d.target===s&&l(d)})),(t.includes("away")||t.includes("outside"))&&(n=document,o=a(o,(l,d)=>{s.contains(d.target)||d.target.isConnected!==!1&&(s.offsetWidth<1&&s.offsetHeight<1||s._x_isShown!==!1&&l(d))})),t.includes("once")&&(o=a(o,(l,d)=>{l(d),n.removeEventListener(e,o,r)})),o=a(o,(l,d)=>{isKeyEvent(e)&&isListeningForASpecificKeyThatHasntBeenPressed(d,t)||l(d)}),n.addEventListener(e,o,r),()=>{n.removeEventListener(e,o,r)}}function dotSyntax(s){return s.replace(/-/g,".")}function camelCase2(s){return s.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function isNumeric(s){return!Array.isArray(s)&&!isNaN(s)}function kebabCase2(s){return[" ","_"].includes(s)?s:s.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function isKeyEvent(s){return["keydown","keyup"].includes(s)}function isListeningForASpecificKeyThatHasntBeenPressed(s,e){let t=e.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(t.includes("debounce")){let o=t.indexOf("debounce");t.splice(o,isNumeric((t[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.includes("throttle")){let o=t.indexOf("throttle");t.splice(o,isNumeric((t[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.length===0||t.length===1&&keyToModifiers(s.key).includes(t[0]))return!1;const n=["ctrl","shift","alt","meta","cmd","super"].filter(o=>t.includes(o));return t=t.filter(o=>!n.includes(o)),!(n.length>0&&n.filter(r=>((r==="cmd"||r==="super")&&(r="meta"),s[`${r}Key`])).length===n.length&&keyToModifiers(s.key).includes(t[0]))}function keyToModifiers(s){if(!s)return[];s=kebabCase2(s);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return e[s]=s,Object.keys(e).map(t=>{if(e[t]===s)return t}).filter(t=>t)}directive("model",(s,{modifiers:e,expression:t},{effect:i,cleanup:n})=>{let o=s;e.includes("parent")&&(o=s.parentNode);let r=evaluateLater(o,t),a;typeof t=="string"?a=evaluateLater(o,`${t} = __placeholder`):typeof t=="function"&&typeof t()=="string"?a=evaluateLater(o,`${t()} = __placeholder`):a=()=>{};let l=()=>{let m;return r(v=>m=v),isGetterSetter(m)?m.get():m},d=m=>{let v;r(y=>v=y),isGetterSetter(v)?v.set(m):a(()=>{},{scope:{__placeholder:m}})};typeof t=="string"&&s.type==="radio"&&mutateDom(()=>{s.hasAttribute("name")||s.setAttribute("name",t)});var h=s.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(s.type)||e.includes("lazy")?"change":"input";let p=isCloning?()=>{}:on(s,h,e,m=>{d(getInputValue(s,e,m,l()))});if(e.includes("fill")&&([void 0,null,""].includes(l())||s.type==="checkbox"&&Array.isArray(l()))&&s.dispatchEvent(new Event(h,{})),s._x_removeModelListeners||(s._x_removeModelListeners={}),s._x_removeModelListeners.default=p,n(()=>s._x_removeModelListeners.default()),s.form){let m=on(s.form,"reset",[],v=>{nextTick(()=>s._x_model&&s._x_model.set(s.value))});n(()=>m())}s._x_model={get(){return l()},set(m){d(m)}},s._x_forceModelUpdate=m=>{m===void 0&&typeof t=="string"&&t.match(/\./)&&(m=""),window.fromModel=!0,mutateDom(()=>bind(s,"value",m)),delete window.fromModel},i(()=>{let m=l();e.includes("unintrusive")&&document.activeElement.isSameNode(s)||s._x_forceModelUpdate(m)})});function getInputValue(s,e,t,i){return mutateDom(()=>{if(t instanceof CustomEvent&&t.detail!==void 0)return t.detail!==null&&t.detail!==void 0?t.detail:t.target.value;if(s.type==="checkbox")if(Array.isArray(i)){let n=null;return e.includes("number")?n=safeParseNumber(t.target.value):e.includes("boolean")?n=safeParseBoolean(t.target.value):n=t.target.value,t.target.checked?i.concat([n]):i.filter(o=>!checkedAttrLooseCompare2(o,n))}else return t.target.checked;else return s.tagName.toLowerCase()==="select"&&s.multiple?e.includes("number")?Array.from(t.target.selectedOptions).map(n=>{let o=n.value||n.text;return safeParseNumber(o)}):e.includes("boolean")?Array.from(t.target.selectedOptions).map(n=>{let o=n.value||n.text;return safeParseBoolean(o)}):Array.from(t.target.selectedOptions).map(n=>n.value||n.text):e.includes("number")?safeParseNumber(t.target.value):e.includes("boolean")?safeParseBoolean(t.target.value):e.includes("trim")?t.target.value.trim():t.target.value})}function safeParseNumber(s){let e=s?parseFloat(s):null;return isNumeric2(e)?e:s}function checkedAttrLooseCompare2(s,e){return s==e}function isNumeric2(s){return!Array.isArray(s)&&!isNaN(s)}function isGetterSetter(s){return s!==null&&typeof s=="object"&&typeof s.get=="function"&&typeof s.set=="function"}directive("cloak",s=>queueMicrotask(()=>mutateDom(()=>s.removeAttribute(prefix("cloak")))));addInitSelector(()=>`[${prefix("init")}]`);directive("init",skipDuringClone((s,{expression:e},{evaluate:t})=>typeof e=="string"?!!e.trim()&&t(e,{},!1):t(e,{},!1)));directive("text",(s,{expression:e},{effect:t,evaluateLater:i})=>{let n=i(e);t(()=>{n(o=>{mutateDom(()=>{s.textContent=o})})})});directive("html",(s,{expression:e},{effect:t,evaluateLater:i})=>{let n=i(e);t(()=>{n(o=>{mutateDom(()=>{s.innerHTML=o,s._x_ignoreSelf=!0,initTree(s),delete s._x_ignoreSelf})})})});mapAttributes(startingWith(":",into(prefix("bind:"))));var handler2=(s,{value:e,modifiers:t,expression:i,original:n},{effect:o})=>{if(!e){let a={};injectBindingProviders(a),evaluateLater(s,i)(d=>{applyBindingsObject(s,d,n)},{scope:a});return}if(e==="key")return storeKeyForXFor(s,i);if(s._x_inlineBindings&&s._x_inlineBindings[e]&&s._x_inlineBindings[e].extract)return;let r=evaluateLater(s,i);o(()=>r(a=>{a===void 0&&typeof i=="string"&&i.match(/\./)&&(a=""),mutateDom(()=>bind(s,e,a,t))}))};handler2.inline=(s,{value:e,modifiers:t,expression:i})=>{e&&(s._x_inlineBindings||(s._x_inlineBindings={}),s._x_inlineBindings[e]={expression:i,extract:!1})};directive("bind",handler2);function storeKeyForXFor(s,e){s._x_keyExpression=e}addRootSelector(()=>`[${prefix("data")}]`);directive("data",(s,{expression:e},{cleanup:t})=>{if(shouldSkipRegisteringDataDuringClone(s))return;e=e===""?"{}":e;let i={};injectMagics(i,s);let n={};injectDataProviders(n,i);let o=evaluate(s,e,{scope:n});(o===void 0||o===!0)&&(o={}),injectMagics(o,s);let r=reactive(o);initInterceptors2(r);let a=addScopeToNode(s,r);r.init&&evaluate(s,r.init),t(()=>{r.destroy&&evaluate(s,r.destroy),a()})});interceptClone((s,e)=>{s._x_dataStack&&(e._x_dataStack=s._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function shouldSkipRegisteringDataDuringClone(s){return isCloning?isCloningLegacy?!0:s.hasAttribute("data-has-alpine-state"):!1}directive("show",(s,{modifiers:e,expression:t},{effect:i})=>{let n=evaluateLater(s,t);s._x_doHide||(s._x_doHide=()=>{mutateDom(()=>{s.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),s._x_doShow||(s._x_doShow=()=>{mutateDom(()=>{s.style.length===1&&s.style.display==="none"?s.removeAttribute("style"):s.style.removeProperty("display")})});let o=()=>{s._x_doHide(),s._x_isShown=!1},r=()=>{s._x_doShow(),s._x_isShown=!0},a=()=>setTimeout(r),l=once(p=>p?r():o(),p=>{typeof s._x_toggleAndCascadeWithTransitions=="function"?s._x_toggleAndCascadeWithTransitions(s,p,r,o):p?a():o()}),d,h=!0;i(()=>n(p=>{!h&&p===d||(e.includes("immediate")&&(p?a():o()),l(p),d=p,h=!1)}))});directive("for",(s,{expression:e},{effect:t,cleanup:i})=>{let n=parseForExpression(e),o=evaluateLater(s,n.items),r=evaluateLater(s,s._x_keyExpression||"index");s._x_prevKeys=[],s._x_lookup={},t(()=>loop(s,n,o,r)),i(()=>{Object.values(s._x_lookup).forEach(a=>a.remove()),delete s._x_prevKeys,delete s._x_lookup})});function loop(s,e,t,i){let n=r=>typeof r=="object"&&!Array.isArray(r),o=s;t(r=>{isNumeric3(r)&&r>=0&&(r=Array.from(Array(r).keys(),S=>S+1)),r===void 0&&(r=[]);let a=s._x_lookup,l=s._x_prevKeys,d=[],h=[];if(n(r))r=Object.entries(r).map(([S,E])=>{let T=getIterationScopeVariables(e,E,S,r);i(R=>{h.includes(R)&&warn("Duplicate key on x-for",s),h.push(R)},{scope:{index:S,...T}}),d.push(T)});else for(let S=0;S<r.length;S++){let E=getIterationScopeVariables(e,r[S],S,r);i(T=>{h.includes(T)&&warn("Duplicate key on x-for",s),h.push(T)},{scope:{index:S,...E}}),d.push(E)}let p=[],m=[],v=[],y=[];for(let S=0;S<l.length;S++){let E=l[S];h.indexOf(E)===-1&&v.push(E)}l=l.filter(S=>!v.includes(S));let b="template";for(let S=0;S<h.length;S++){let E=h[S],T=l.indexOf(E);if(T===-1)l.splice(S,0,E),p.push([b,S]);else if(T!==S){let R=l.splice(S,1)[0],A=l.splice(T-1,1)[0];l.splice(S,0,A),l.splice(T,0,R),m.push([R,A])}else y.push(E);b=E}for(let S=0;S<v.length;S++){let E=v[S];a[E]._x_effects&&a[E]._x_effects.forEach(dequeueJob),a[E].remove(),a[E]=null,delete a[E]}for(let S=0;S<m.length;S++){let[E,T]=m[S],R=a[E],A=a[T],D=document.createElement("div");mutateDom(()=>{A||warn('x-for ":key" is undefined or invalid',o,T,a),A.after(D),R.after(A),A._x_currentIfEl&&A.after(A._x_currentIfEl),D.before(R),R._x_currentIfEl&&R.after(R._x_currentIfEl),D.remove()}),A._x_refreshXForScope(d[h.indexOf(T)])}for(let S=0;S<p.length;S++){let[E,T]=p[S],R=E==="template"?o:a[E];R._x_currentIfEl&&(R=R._x_currentIfEl);let A=d[T],D=h[T],x=document.importNode(o.content,!0).firstElementChild,M=reactive(A);addScopeToNode(x,M,o),x._x_refreshXForScope=I=>{Object.entries(I).forEach(([V,U])=>{M[V]=U})},mutateDom(()=>{R.after(x),skipDuringClone(()=>initTree(x))()}),typeof D=="object"&&warn("x-for key cannot be an object, it must be a string or an integer",o),a[D]=x}for(let S=0;S<y.length;S++)a[y[S]]._x_refreshXForScope(d[h.indexOf(y[S])]);o._x_prevKeys=h})}function parseForExpression(s){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,t=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,n=s.match(i);if(!n)return;let o={};o.items=n[2].trim();let r=n[1].replace(t,"").trim(),a=r.match(e);return a?(o.item=r.replace(e,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=r,o}function getIterationScopeVariables(s,e,t,i){let n={};return/^\[.*\]$/.test(s.item)&&Array.isArray(e)?s.item.replace("[","").replace("]","").split(",").map(r=>r.trim()).forEach((r,a)=>{n[r]=e[a]}):/^\{.*\}$/.test(s.item)&&!Array.isArray(e)&&typeof e=="object"?s.item.replace("{","").replace("}","").split(",").map(r=>r.trim()).forEach(r=>{n[r]=e[r]}):n[s.item]=e,s.index&&(n[s.index]=t),s.collection&&(n[s.collection]=i),n}function isNumeric3(s){return!Array.isArray(s)&&!isNaN(s)}function handler3(){}handler3.inline=(s,{expression:e},{cleanup:t})=>{let i=closestRoot(s);i._x_refs||(i._x_refs={}),i._x_refs[e]=s,t(()=>delete i._x_refs[e])};directive("ref",handler3);directive("if",(s,{expression:e},{effect:t,cleanup:i})=>{s.tagName.toLowerCase()!=="template"&&warn("x-if can only be used on a <template> tag",s);let n=evaluateLater(s,e),o=()=>{if(s._x_currentIfEl)return s._x_currentIfEl;let a=s.content.cloneNode(!0).firstElementChild;return addScopeToNode(a,{},s),mutateDom(()=>{s.after(a),skipDuringClone(()=>initTree(a))()}),s._x_currentIfEl=a,s._x_undoIf=()=>{walk(a,l=>{l._x_effects&&l._x_effects.forEach(dequeueJob)}),a.remove(),delete s._x_currentIfEl},a},r=()=>{s._x_undoIf&&(s._x_undoIf(),delete s._x_undoIf)};t(()=>n(a=>{a?o():r()})),i(()=>s._x_undoIf&&s._x_undoIf())});directive("id",(s,{expression:e},{evaluate:t})=>{t(e).forEach(n=>setIdRoot(s,n))});interceptClone((s,e)=>{s._x_ids&&(e._x_ids=s._x_ids)});mapAttributes(startingWith("@",into(prefix("on:"))));directive("on",skipDuringClone((s,{value:e,modifiers:t,expression:i},{cleanup:n})=>{let o=i?evaluateLater(s,i):()=>{};s.tagName.toLowerCase()==="template"&&(s._x_forwardEvents||(s._x_forwardEvents=[]),s._x_forwardEvents.includes(e)||s._x_forwardEvents.push(e));let r=on(s,e,t,a=>{o(()=>{},{scope:{$event:a},params:[a]})});n(()=>r())}));warnMissingPluginDirective("Collapse","collapse","collapse");warnMissingPluginDirective("Intersect","intersect","intersect");warnMissingPluginDirective("Focus","trap","focus");warnMissingPluginDirective("Mask","mask","mask");function warnMissingPluginDirective(s,e,t){directive(e,i=>warn(`You can't use [x-${e}] without first installing the "${s}" plugin here: https://alpinejs.dev/plugins/${t}`,i))}alpine_default.setEvaluator(normalEvaluator);alpine_default.setReactivityEngine({reactive:reactive2,effect:effect2,release:stop,raw:toRaw});var src_default=alpine_default,module_default=src_default,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(s,e){return s.concat([e+"-"+start,e+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(s,e){return s.concat([e,e+"-"+start,e+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(s){return s?(s.nodeName||"").toLowerCase():null}function getWindow(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var e=s.ownerDocument;return e&&e.defaultView||window}return s}function isElement$1(s){var e=getWindow(s).Element;return s instanceof e||s instanceof Element}function isHTMLElement(s){var e=getWindow(s).HTMLElement;return s instanceof e||s instanceof HTMLElement}function isShadowRoot(s){if(typeof ShadowRoot>"u")return!1;var e=getWindow(s).ShadowRoot;return s instanceof e||s instanceof ShadowRoot}function applyStyles(s){var e=s.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];!isHTMLElement(o)||!getNodeName(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(r){var a=n[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function effect$2(s){var e=s.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],o=e.attributes[i]||{},r=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=r.reduce(function(l,d){return l[d]="",l},{});!isHTMLElement(n)||!getNodeName(n)||(Object.assign(n.style,a),Object.keys(o).forEach(function(l){n.removeAttribute(l)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(s){return s.split("-")[0]}var max=Math.max,min=Math.min,round$1=Math.round;function getUAString(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(s,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=s.getBoundingClientRect(),n=1,o=1;e&&isHTMLElement(s)&&(n=s.offsetWidth>0&&round$1(i.width)/s.offsetWidth||1,o=s.offsetHeight>0&&round$1(i.height)/s.offsetHeight||1);var r=isElement$1(s)?getWindow(s):window,a=r.visualViewport,l=!isLayoutViewport()&&t,d=(i.left+(l&&a?a.offsetLeft:0))/n,h=(i.top+(l&&a?a.offsetTop:0))/o,p=i.width/n,m=i.height/o;return{width:p,height:m,top:h,right:d+p,bottom:h+m,left:d,x:d,y:h}}function getLayoutRect(s){var e=getBoundingClientRect(s),t=s.offsetWidth,i=s.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:s.offsetLeft,y:s.offsetTop,width:t,height:i}}function contains(s,e){var t=e.getRootNode&&e.getRootNode();if(s.contains(e))return!0;if(t&&isShadowRoot(t)){var i=e;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function getComputedStyle$2(s){return getWindow(s).getComputedStyle(s)}function isTableElement(s){return["table","td","th"].indexOf(getNodeName(s))>=0}function getDocumentElement(s){return((isElement$1(s)?s.ownerDocument:s.document)||window.document).documentElement}function getParentNode(s){return getNodeName(s)==="html"?s:s.assignedSlot||s.parentNode||(isShadowRoot(s)?s.host:null)||getDocumentElement(s)}function getTrueOffsetParent(s){return!isHTMLElement(s)||getComputedStyle$2(s).position==="fixed"?null:s.offsetParent}function getContainingBlock(s){var e=/firefox/i.test(getUAString()),t=/Trident/i.test(getUAString());if(t&&isHTMLElement(s)){var i=getComputedStyle$2(s);if(i.position==="fixed")return null}var n=getParentNode(s);for(isShadowRoot(n)&&(n=n.host);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var o=getComputedStyle$2(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function getOffsetParent(s){for(var e=getWindow(s),t=getTrueOffsetParent(s);t&&isTableElement(t)&&getComputedStyle$2(t).position==="static";)t=getTrueOffsetParent(t);return t&&(getNodeName(t)==="html"||getNodeName(t)==="body"&&getComputedStyle$2(t).position==="static")?e:t||getContainingBlock(s)||e}function getMainAxisFromPlacement(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function within(s,e,t){return max(s,min(e,t))}function withinMaxClamp(s,e,t){var i=within(s,e,t);return i>t?t:i}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(s){return Object.assign({},getFreshSideObject(),s)}function expandToHashMap(s,e){return e.reduce(function(t,i){return t[i]=s,t},{})}var toPaddingObject=function s(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,mergePaddingObject(typeof e!="number"?e:expandToHashMap(e,basePlacements))};function arrow(s){var e,t=s.state,i=s.name,n=s.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,a=getBasePlacement(t.placement),l=getMainAxisFromPlacement(a),d=[left,right].indexOf(a)>=0,h=d?"height":"width";if(!(!o||!r)){var p=toPaddingObject(n.padding,t),m=getLayoutRect(o),v=l==="y"?top:left,y=l==="y"?bottom:right,b=t.rects.reference[h]+t.rects.reference[l]-r[l]-t.rects.popper[h],S=r[l]-t.rects.reference[l],E=getOffsetParent(o),T=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,R=b/2-S/2,A=p[v],D=T-m[h]-p[y],x=T/2-m[h]/2+R,M=within(A,x,D),I=l;t.modifiersData[i]=(e={},e[I]=M,e.centerOffset=M-x,e)}}function effect$1(s){var e=s.state,t=s.options,i=t.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||contains(e.elements.popper,n)&&(e.elements.arrow=n))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(s){return s.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(s,e){var t=s.x,i=s.y,n=e.devicePixelRatio||1;return{x:round$1(t*n)/n||0,y:round$1(i*n)/n||0}}function mapToStyles(s){var e,t=s.popper,i=s.popperRect,n=s.placement,o=s.variation,r=s.offsets,a=s.position,l=s.gpuAcceleration,d=s.adaptive,h=s.roundOffsets,p=s.isFixed,m=r.x,v=m===void 0?0:m,y=r.y,b=y===void 0?0:y,S=typeof h=="function"?h({x:v,y:b}):{x:v,y:b};v=S.x,b=S.y;var E=r.hasOwnProperty("x"),T=r.hasOwnProperty("y"),R=left,A=top,D=window;if(d){var x=getOffsetParent(t),M="clientHeight",I="clientWidth";if(x===getWindow(t)&&(x=getDocumentElement(t),getComputedStyle$2(x).position!=="static"&&a==="absolute"&&(M="scrollHeight",I="scrollWidth")),x=x,n===top||(n===left||n===right)&&o===end){A=bottom;var V=p&&x===D&&D.visualViewport?D.visualViewport.height:x[M];b-=V-i.height,b*=l?1:-1}if(n===left||(n===top||n===bottom)&&o===end){R=right;var U=p&&x===D&&D.visualViewport?D.visualViewport.width:x[I];v-=U-i.width,v*=l?1:-1}}var B=Object.assign({position:a},d&&unsetSides),Y=h===!0?roundOffsetsByDPR({x:v,y:b},getWindow(t)):{x:v,y:b};if(v=Y.x,b=Y.y,l){var ne;return Object.assign({},B,(ne={},ne[A]=T?"0":"",ne[R]=E?"0":"",ne.transform=(D.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",ne))}return Object.assign({},B,(e={},e[A]=T?b+"px":"",e[R]=E?v+"px":"",e.transform="",e))}function computeStyles(s){var e=s.state,t=s.options,i=t.gpuAcceleration,n=i===void 0?!0:i,o=t.adaptive,r=o===void 0?!0:o,a=t.roundOffsets,l=a===void 0?!0:a,d={placement:getBasePlacement(e.placement),variation:getVariation(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,mapToStyles(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,mapToStyles(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(s){var e=s.state,t=s.instance,i=s.options,n=i.scroll,o=n===void 0?!0:n,r=i.resize,a=r===void 0?!0:r,l=getWindow(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(h){h.addEventListener("scroll",t.update,passive)}),a&&l.addEventListener("resize",t.update,passive),function(){o&&d.forEach(function(h){h.removeEventListener("scroll",t.update,passive)}),a&&l.removeEventListener("resize",t.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function s(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(s){return s.replace(/left|right|bottom|top/g,function(e){return hash$1[e]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(s){return s.replace(/start|end/g,function(e){return hash[e]})}function getWindowScroll(s){var e=getWindow(s),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function getWindowScrollBarX(s){return getBoundingClientRect(getDocumentElement(s)).left+getWindowScroll(s).scrollLeft}function getViewportRect(s,e){var t=getWindow(s),i=getDocumentElement(s),n=t.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){o=n.width,r=n.height;var d=isLayoutViewport();(d||!d&&e==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:o,height:r,x:a+getWindowScrollBarX(s),y:l}}function getDocumentRect(s){var e,t=getDocumentElement(s),i=getWindowScroll(s),n=(e=s.ownerDocument)==null?void 0:e.body,o=max(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=max(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+getWindowScrollBarX(s),l=-i.scrollTop;return getComputedStyle$2(n||t).direction==="rtl"&&(a+=max(t.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function isScrollParent(s){var e=getComputedStyle$2(s),t=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+i)}function getScrollParent(s){return["html","body","#document"].indexOf(getNodeName(s))>=0?s.ownerDocument.body:isHTMLElement(s)&&isScrollParent(s)?s:getScrollParent(getParentNode(s))}function listScrollParents(s,e){var t;e===void 0&&(e=[]);var i=getScrollParent(s),n=i===((t=s.ownerDocument)==null?void 0:t.body),o=getWindow(i),r=n?[o].concat(o.visualViewport||[],isScrollParent(i)?i:[]):i,a=e.concat(r);return n?a:a.concat(listScrollParents(getParentNode(r)))}function rectToClientRect(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function getInnerBoundingClientRect(s,e){var t=getBoundingClientRect(s,!1,e==="fixed");return t.top=t.top+s.clientTop,t.left=t.left+s.clientLeft,t.bottom=t.top+s.clientHeight,t.right=t.left+s.clientWidth,t.width=s.clientWidth,t.height=s.clientHeight,t.x=t.left,t.y=t.top,t}function getClientRectFromMixedType(s,e,t){return e===viewport?rectToClientRect(getViewportRect(s,t)):isElement$1(e)?getInnerBoundingClientRect(e,t):rectToClientRect(getDocumentRect(getDocumentElement(s)))}function getClippingParents(s){var e=listScrollParents(getParentNode(s)),t=["absolute","fixed"].indexOf(getComputedStyle$2(s).position)>=0,i=t&&isHTMLElement(s)?getOffsetParent(s):s;return isElement$1(i)?e.filter(function(n){return isElement$1(n)&&contains(n,i)&&getNodeName(n)!=="body"}):[]}function getClippingRect(s,e,t,i){var n=e==="clippingParents"?getClippingParents(s):[].concat(e),o=[].concat(n,[t]),r=o[0],a=o.reduce(function(l,d){var h=getClientRectFromMixedType(s,d,i);return l.top=max(h.top,l.top),l.right=min(h.right,l.right),l.bottom=min(h.bottom,l.bottom),l.left=max(h.left,l.left),l},getClientRectFromMixedType(s,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function computeOffsets(s){var e=s.reference,t=s.element,i=s.placement,n=i?getBasePlacement(i):null,o=i?getVariation(i):null,r=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(n){case top:l={x:r,y:e.y-t.height};break;case bottom:l={x:r,y:e.y+e.height};break;case right:l={x:e.x+e.width,y:a};break;case left:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var d=n?getMainAxisFromPlacement(n):null;if(d!=null){var h=d==="y"?"height":"width";switch(o){case start:l[d]=l[d]-(e[h]/2-t[h]/2);break;case end:l[d]=l[d]+(e[h]/2-t[h]/2);break}}return l}function detectOverflow(s,e){e===void 0&&(e={});var t=e,i=t.placement,n=i===void 0?s.placement:i,o=t.strategy,r=o===void 0?s.strategy:o,a=t.boundary,l=a===void 0?clippingParents:a,d=t.rootBoundary,h=d===void 0?viewport:d,p=t.elementContext,m=p===void 0?popper:p,v=t.altBoundary,y=v===void 0?!1:v,b=t.padding,S=b===void 0?0:b,E=mergePaddingObject(typeof S!="number"?S:expandToHashMap(S,basePlacements)),T=m===popper?reference:popper,R=s.rects.popper,A=s.elements[y?T:m],D=getClippingRect(isElement$1(A)?A:A.contextElement||getDocumentElement(s.elements.popper),l,h,r),x=getBoundingClientRect(s.elements.reference),M=computeOffsets({reference:x,element:R,strategy:"absolute",placement:n}),I=rectToClientRect(Object.assign({},R,M)),V=m===popper?I:x,U={top:D.top-V.top+E.top,bottom:V.bottom-D.bottom+E.bottom,left:D.left-V.left+E.left,right:V.right-D.right+E.right},B=s.modifiersData.offset;if(m===popper&&B){var Y=B[n];Object.keys(U).forEach(function(ne){var ee=[right,bottom].indexOf(ne)>=0?1:-1,F=[top,bottom].indexOf(ne)>=0?"y":"x";U[ne]+=Y[F]*ee})}return U}function computeAutoPlacement(s,e){e===void 0&&(e={});var t=e,i=t.placement,n=t.boundary,o=t.rootBoundary,r=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,d=l===void 0?placements:l,h=getVariation(i),p=h?a?variationPlacements:variationPlacements.filter(function(y){return getVariation(y)===h}):basePlacements,m=p.filter(function(y){return d.indexOf(y)>=0});m.length===0&&(m=p);var v=m.reduce(function(y,b){return y[b]=detectOverflow(s,{placement:b,boundary:n,rootBoundary:o,padding:r})[getBasePlacement(b)],y},{});return Object.keys(v).sort(function(y,b){return v[y]-v[b]})}function getExpandedFallbackPlacements(s){if(getBasePlacement(s)===auto)return[];var e=getOppositePlacement(s);return[getOppositeVariationPlacement(s),e,getOppositeVariationPlacement(e)]}function flip(s){var e=s.state,t=s.options,i=s.name;if(!e.modifiersData[i]._skip){for(var n=t.mainAxis,o=n===void 0?!0:n,r=t.altAxis,a=r===void 0?!0:r,l=t.fallbackPlacements,d=t.padding,h=t.boundary,p=t.rootBoundary,m=t.altBoundary,v=t.flipVariations,y=v===void 0?!0:v,b=t.allowedAutoPlacements,S=e.options.placement,E=getBasePlacement(S),T=E===S,R=l||(T||!y?[getOppositePlacement(S)]:getExpandedFallbackPlacements(S)),A=[S].concat(R).reduce(function(le,oe){return le.concat(getBasePlacement(oe)===auto?computeAutoPlacement(e,{placement:oe,boundary:h,rootBoundary:p,padding:d,flipVariations:y,allowedAutoPlacements:b}):oe)},[]),D=e.rects.reference,x=e.rects.popper,M=new Map,I=!0,V=A[0],U=0;U<A.length;U++){var B=A[U],Y=getBasePlacement(B),ne=getVariation(B)===start,ee=[top,bottom].indexOf(Y)>=0,F=ee?"width":"height",$=detectOverflow(e,{placement:B,boundary:h,rootBoundary:p,altBoundary:m,padding:d}),q=ee?ne?right:left:ne?bottom:top;D[F]>x[F]&&(q=getOppositePlacement(q));var W=getOppositePlacement(q),J=[];if(o&&J.push($[Y]<=0),a&&J.push($[q]<=0,$[W]<=0),J.every(function(le){return le})){V=B,I=!1;break}M.set(B,J)}if(I)for(var K=y?3:1,ue=function(oe){var ie=A.find(function(we){var Pe=M.get(we);if(Pe)return Pe.slice(0,oe).every(function(He){return He})});if(ie)return V=ie,"break"},ve=K;ve>0;ve--){var ae=ue(ve);if(ae==="break")break}e.placement!==V&&(e.modifiersData[i]._skip=!0,e.placement=V,e.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(s,e,t){return t===void 0&&(t={x:0,y:0}),{top:s.top-e.height-t.y,right:s.right-e.width+t.x,bottom:s.bottom-e.height+t.y,left:s.left-e.width-t.x}}function isAnySideFullyClipped(s){return[top,right,bottom,left].some(function(e){return s[e]>=0})}function hide(s){var e=s.state,t=s.name,i=e.rects.reference,n=e.rects.popper,o=e.modifiersData.preventOverflow,r=detectOverflow(e,{elementContext:"reference"}),a=detectOverflow(e,{altBoundary:!0}),l=getSideOffsets(r,i),d=getSideOffsets(a,n,o),h=isAnySideFullyClipped(l),p=isAnySideFullyClipped(d);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(s,e,t){var i=getBasePlacement(s),n=[left,top].indexOf(i)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:s})):t,r=o[0],a=o[1];return r=r||0,a=(a||0)*n,[left,right].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function offset(s){var e=s.state,t=s.options,i=s.name,n=t.offset,o=n===void 0?[0,0]:n,r=placements.reduce(function(h,p){return h[p]=distanceAndSkiddingToXY(p,e.rects,o),h},{}),a=r[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=r}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(s){var e=s.state,t=s.name;e.modifiersData[t]=computeOffsets({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(s){return s==="x"?"y":"x"}function preventOverflow(s){var e=s.state,t=s.options,i=s.name,n=t.mainAxis,o=n===void 0?!0:n,r=t.altAxis,a=r===void 0?!1:r,l=t.boundary,d=t.rootBoundary,h=t.altBoundary,p=t.padding,m=t.tether,v=m===void 0?!0:m,y=t.tetherOffset,b=y===void 0?0:y,S=detectOverflow(e,{boundary:l,rootBoundary:d,padding:p,altBoundary:h}),E=getBasePlacement(e.placement),T=getVariation(e.placement),R=!T,A=getMainAxisFromPlacement(E),D=getAltAxis(A),x=e.modifiersData.popperOffsets,M=e.rects.reference,I=e.rects.popper,V=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,U=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(x){if(o){var ne,ee=A==="y"?top:left,F=A==="y"?bottom:right,$=A==="y"?"height":"width",q=x[A],W=q+S[ee],J=q-S[F],K=v?-I[$]/2:0,ue=T===start?M[$]:I[$],ve=T===start?-I[$]:-M[$],ae=e.elements.arrow,le=v&&ae?getLayoutRect(ae):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:getFreshSideObject(),ie=oe[ee],we=oe[F],Pe=within(0,M[$],le[$]),He=R?M[$]/2-K-Pe-ie-U.mainAxis:ue-Pe-ie-U.mainAxis,qe=R?-M[$]/2+K+Pe+we+U.mainAxis:ve+Pe+we+U.mainAxis,We=e.elements.arrow&&getOffsetParent(e.elements.arrow),Ne=We?A==="y"?We.clientTop||0:We.clientLeft||0:0,Be=(ne=B==null?void 0:B[A])!=null?ne:0,Xe=q+He-Be-Ne,ze=q+qe-Be,X=within(v?min(W,Xe):W,q,v?max(J,ze):J);x[A]=X,Y[A]=X-q}if(a){var z,Z=A==="x"?top:left,re=A==="x"?bottom:right,me=x[D],Te=D==="y"?"height":"width",Je=me+S[Z],et=me-S[re],tt=[top,left].indexOf(E)!==-1,Ft=(z=B==null?void 0:B[D])!=null?z:0,lt=tt?Je:me-M[Te]-I[Te]-Ft+U.altAxis,_t=tt?me+M[Te]+I[Te]-Ft-U.altAxis:et,yt=v&&tt?withinMaxClamp(lt,me,_t):within(v?lt:Je,me,v?_t:et);x[D]=yt,Y[D]=yt-me}e.modifiersData[i]=Y}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function getNodeScroll(s){return s===getWindow(s)||!isHTMLElement(s)?getWindowScroll(s):getHTMLElementScroll(s)}function isElementScaled(s){var e=s.getBoundingClientRect(),t=round$1(e.width)/s.offsetWidth||1,i=round$1(e.height)/s.offsetHeight||1;return t!==1||i!==1}function getCompositeRect(s,e,t){t===void 0&&(t=!1);var i=isHTMLElement(e),n=isHTMLElement(e)&&isElementScaled(e),o=getDocumentElement(e),r=getBoundingClientRect(s,n,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((getNodeName(e)!=="body"||isScrollParent(o))&&(a=getNodeScroll(e)),isHTMLElement(e)?(l=getBoundingClientRect(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=getWindowScrollBarX(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function order(s){var e=new Map,t=new Set,i=[];s.forEach(function(o){e.set(o.name,o)});function n(o){t.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&n(l)}}),i.push(o)}return s.forEach(function(o){t.has(o.name)||n(o)}),i}function orderModifiers(s){var e=order(s);return modifierPhases.reduce(function(t,i){return t.concat(e.filter(function(n){return n.phase===i}))},[])}function debounce$4(s){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(s())})})),e}}function mergeByName(s){var e=s.reduce(function(t,i){var n=t[i.name];return t[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var s=arguments.length,e=new Array(s),t=0;t<s;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function popperGenerator(s){s===void 0&&(s={});var e=s,t=e.defaultModifiers,i=t===void 0?[]:t,n=e.defaultOptions,o=n===void 0?DEFAULT_OPTIONS:n;return function(a,l,d){d===void 0&&(d=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],m=!1,v={state:h,setOptions:function(E){var T=typeof E=="function"?E(h.options):E;b(),h.options=Object.assign({},o,h.options,T),h.scrollParents={reference:isElement$1(a)?listScrollParents(a):a.contextElement?listScrollParents(a.contextElement):[],popper:listScrollParents(l)};var R=orderModifiers(mergeByName([].concat(i,h.options.modifiers)));return h.orderedModifiers=R.filter(function(A){return A.enabled}),y(),v.update()},forceUpdate:function(){if(!m){var E=h.elements,T=E.reference,R=E.popper;if(areValidElements(T,R)){h.rects={reference:getCompositeRect(T,getOffsetParent(R),h.options.strategy==="fixed"),popper:getLayoutRect(R)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(U){return h.modifiersData[U.name]=Object.assign({},U.data)});for(var A=0;A<h.orderedModifiers.length;A++){if(h.reset===!0){h.reset=!1,A=-1;continue}var D=h.orderedModifiers[A],x=D.fn,M=D.options,I=M===void 0?{}:M,V=D.name;typeof x=="function"&&(h=x({state:h,options:I,name:V,instance:v})||h)}}}},update:debounce$4(function(){return new Promise(function(S){v.forceUpdate(),S(h)})}),destroy:function(){b(),m=!0}};if(!areValidElements(a,l))return v;v.setOptions(d).then(function(S){!m&&d.onFirstUpdate&&d.onFirstUpdate(S)});function y(){h.orderedModifiers.forEach(function(S){var E=S.name,T=S.options,R=T===void 0?{}:T,A=S.effect;if(typeof A=="function"){var D=A({state:h,name:E,instance:v,options:R}),x=function(){};p.push(D||x)}})}function b(){p.forEach(function(S){return S()}),p=[]}return v}}var createPopper$2=popperGenerator(),defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1}),defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});const Popper=Object.freeze(Object.defineProperty({__proto__:null,afterMain,afterRead,afterWrite,applyStyles:applyStyles$1,arrow:arrow$1,auto,basePlacements,beforeMain,beforeRead,beforeWrite,bottom,clippingParents,computeStyles:computeStyles$1,createPopper,createPopperBase:createPopper$2,createPopperLite:createPopper$1,detectOverflow,end,eventListeners,flip:flip$1,hide:hide$1,left,main,modifierPhases,offset:offset$1,placements,popper,popperGenerator,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1,read,reference,right,start,top,variationPlacements,viewport,write},Symbol.toStringTag,{value:"Module"}));/*!
* Bootstrap v5.3.3 (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
- */const elementMap=new Map,Data={set(s,e,t){elementMap.has(s)||elementMap.set(s,new Map);const i=elementMap.get(s);if(!i.has(e)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(e,t)},get(s,e){return elementMap.has(s)&&elementMap.get(s).get(e)||null},remove(s,e){if(!elementMap.has(s))return;const t=elementMap.get(s);t.delete(e),t.size===0&&elementMap.delete(s)}},MAX_UID=1e6,MILLISECONDS_MULTIPLIER=1e3,TRANSITION_END="transitionend",parseSelector=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),s),toType=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),getUID=s=>{do s+=Math.floor(Math.random()*MAX_UID);while(document.getElementById(s));return s},getTransitionDurationFromElement=s=>{if(!s)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(s);const i=Number.parseFloat(e),n=Number.parseFloat(t);return!i&&!n?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*MILLISECONDS_MULTIPLIER)},triggerTransitionEnd=s=>{s.dispatchEvent(new Event(TRANSITION_END))},isElement=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),getElement=s=>isElement(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(parseSelector(s)):null,isVisible$1=s=>{if(!isElement(s)||s.getClientRects().length===0)return!1;const e=getComputedStyle(s).getPropertyValue("visibility")==="visible",t=s.closest("details:not([open])");if(!t)return e;if(t!==s){const i=s.closest("summary");if(i&&i.parentNode!==t||i===null)return!1}return e},isDisabled=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",findShadowRoot=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const e=s.getRootNode();return e instanceof ShadowRoot?e:null}return s instanceof ShadowRoot?s:s.parentNode?findShadowRoot(s.parentNode):null},noop$3=()=>{},reflow=s=>{s.offsetHeight},getjQuery=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,DOMContentLoadedCallbacks=[],onDOMContentLoaded=s=>{document.readyState==="loading"?(DOMContentLoadedCallbacks.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of DOMContentLoadedCallbacks)e()}),DOMContentLoadedCallbacks.push(s)):s()},isRTL=()=>document.documentElement.dir==="rtl",defineJQueryPlugin=s=>{onDOMContentLoaded(()=>{const e=getjQuery();if(e){const t=s.NAME,i=e.fn[t];e.fn[t]=s.jQueryInterface,e.fn[t].Constructor=s,e.fn[t].noConflict=()=>(e.fn[t]=i,s.jQueryInterface)}})},execute=(s,e=[],t=s)=>typeof s=="function"?s(...e):t,executeAfterTransition=(s,e,t=!0)=>{if(!t){execute(s);return}const i=5,n=getTransitionDurationFromElement(e)+i;let o=!1;const r=({target:a})=>{a===e&&(o=!0,e.removeEventListener(TRANSITION_END,r),execute(s))};e.addEventListener(TRANSITION_END,r),setTimeout(()=>{o||triggerTransitionEnd(e)},n)},getNextActiveElement=(s,e,t,i)=>{const n=s.length;let o=s.indexOf(e);return o===-1?!t&&i?s[n-1]:s[0]:(o+=t?1:-1,i&&(o=(o+n)%n),s[Math.max(0,Math.min(o,n-1))])},namespaceRegex=/[^.]*(?=\..*)\.|.*/,stripNameRegex=/\..*/,stripUidRegex=/::\d+$/,eventRegistry={};let uidEvent=1;const customEvents={mouseenter:"mouseover",mouseleave:"mouseout"},nativeEvents=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function makeEventUid(s,e){return e&&`${e}::${uidEvent++}`||s.uidEvent||uidEvent++}function getElementEvents(s){const e=makeEventUid(s);return s.uidEvent=e,eventRegistry[e]=eventRegistry[e]||{},eventRegistry[e]}function bootstrapHandler(s,e){return function t(i){return hydrateObj(i,{delegateTarget:s}),t.oneOff&&EventHandler.off(s,i.type,e),e.apply(s,[i])}}function bootstrapDelegationHandler(s,e,t){return function i(n){const o=s.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return hydrateObj(n,{delegateTarget:r}),i.oneOff&&EventHandler.off(s,n.type,e,t),t.apply(r,[n])}}function findHandler(s,e,t=null){return Object.values(s).find(i=>i.callable===e&&i.delegationSelector===t)}function normalizeParameters(s,e,t){const i=typeof e=="string",n=i?t:e||t;let o=getTypeEvent(s);return nativeEvents.has(o)||(o=s),[i,n,o]}function addHandler(s,e,t,i,n){if(typeof e!="string"||!s)return;let[o,r,a]=normalizeParameters(e,t,i);e in customEvents&&(r=(y=>function(b){if(!b.relatedTarget||b.relatedTarget!==b.delegateTarget&&!b.delegateTarget.contains(b.relatedTarget))return y.call(this,b)})(r));const l=getElementEvents(s),d=l[a]||(l[a]={}),h=findHandler(d,r,o?t:null);if(h){h.oneOff=h.oneOff&&n;return}const p=makeEventUid(r,e.replace(namespaceRegex,"")),m=o?bootstrapDelegationHandler(s,t,r):bootstrapHandler(s,r);m.delegationSelector=o?t:null,m.callable=r,m.oneOff=n,m.uidEvent=p,d[p]=m,s.addEventListener(a,m,o)}function removeHandler(s,e,t,i,n){const o=findHandler(e[t],i,n);o&&(s.removeEventListener(t,o,!!n),delete e[t][o.uidEvent])}function removeNamespacedHandlers(s,e,t,i){const n=e[t]||{};for(const[o,r]of Object.entries(n))o.includes(i)&&removeHandler(s,e,t,r.callable,r.delegationSelector)}function getTypeEvent(s){return s=s.replace(stripNameRegex,""),customEvents[s]||s}const EventHandler={on(s,e,t,i){addHandler(s,e,t,i,!1)},one(s,e,t,i){addHandler(s,e,t,i,!0)},off(s,e,t,i){if(typeof e!="string"||!s)return;const[n,o,r]=normalizeParameters(e,t,i),a=r!==e,l=getElementEvents(s),d=l[r]||{},h=e.startsWith(".");if(typeof o<"u"){if(!Object.keys(d).length)return;removeHandler(s,l,r,o,n?t:null);return}if(h)for(const p of Object.keys(l))removeNamespacedHandlers(s,l,p,e.slice(1));for(const[p,m]of Object.entries(d)){const v=p.replace(stripUidRegex,"");(!a||e.includes(v))&&removeHandler(s,l,r,m.callable,m.delegationSelector)}},trigger(s,e,t){if(typeof e!="string"||!s)return null;const i=getjQuery(),n=getTypeEvent(e),o=e!==n;let r=null,a=!0,l=!0,d=!1;o&&i&&(r=i.Event(e,t),i(s).trigger(r),a=!r.isPropagationStopped(),l=!r.isImmediatePropagationStopped(),d=r.isDefaultPrevented());const h=hydrateObj(new Event(e,{bubbles:a,cancelable:!0}),t);return d&&h.preventDefault(),l&&s.dispatchEvent(h),h.defaultPrevented&&r&&r.preventDefault(),h}};function hydrateObj(s,e={}){for(const[t,i]of Object.entries(e))try{s[t]=i}catch{Object.defineProperty(s,t,{configurable:!0,get(){return i}})}return s}function normalizeData(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function normalizeDataKey(s){return s.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Manipulator={setDataAttribute(s,e,t){s.setAttribute(`data-bs-${normalizeDataKey(e)}`,t)},removeDataAttribute(s,e){s.removeAttribute(`data-bs-${normalizeDataKey(e)}`)},getDataAttributes(s){if(!s)return{};const e={},t=Object.keys(s.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of t){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=normalizeData(s.dataset[i])}return e},getDataAttribute(s,e){return normalizeData(s.getAttribute(`data-bs-${normalizeDataKey(e)}`))}};let Config$1=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=isElement(t)?Manipulator.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...isElement(t)?Manipulator.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,n]of Object.entries(t)){const o=e[i],r=isElement(o)?"element":toType(o);if(!new RegExp(n).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${n}".`)}}};const VERSION$1="5.3.3";class BaseComponent extends Config$1{constructor(e,t){super(),e=getElement(e),e&&(this._element=e,this._config=this._getConfig(t),Data.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Data.remove(this._element,this.constructor.DATA_KEY),EventHandler.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){executeAfterTransition(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Data.get(getElement(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return VERSION$1}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const getSelector=s=>{let e=s.getAttribute("data-bs-target");if(!e||e==="#"){let t=s.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return e?e.split(",").map(t=>parseSelector(t)).join(","):null},SelectorEngine={find(s,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,s))},findOne(s,e=document.documentElement){return Element.prototype.querySelector.call(e,s)},children(s,e){return[].concat(...s.children).filter(t=>t.matches(e))},parents(s,e){const t=[];let i=s.parentNode.closest(e);for(;i;)t.push(i),i=i.parentNode.closest(e);return t},prev(s,e){let t=s.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(s,e){let t=s.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(s){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,s).filter(t=>!isDisabled(t)&&isVisible$1(t))},getSelectorFromElement(s){const e=getSelector(s);return e&&SelectorEngine.findOne(e)?e:null},getElementFromSelector(s){const e=getSelector(s);return e?SelectorEngine.findOne(e):null},getMultipleElementsFromSelector(s){const e=getSelector(s);return e?SelectorEngine.find(e):[]}},enableDismissTrigger=(s,e="hide")=>{const t=`click.dismiss${s.EVENT_KEY}`,i=s.NAME;EventHandler.on(document,t,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),isDisabled(this))return;const o=SelectorEngine.getElementFromSelector(this)||this.closest(`.${i}`);s.getOrCreateInstance(o)[e]()})},NAME$f="alert",DATA_KEY$a="bs.alert",EVENT_KEY$b=`.${DATA_KEY$a}`,EVENT_CLOSE=`close${EVENT_KEY$b}`,EVENT_CLOSED=`closed${EVENT_KEY$b}`,CLASS_NAME_FADE$5="fade",CLASS_NAME_SHOW$8="show";class Alert extends BaseComponent{static get NAME(){return NAME$f}close(){if(EventHandler.trigger(this._element,EVENT_CLOSE).defaultPrevented)return;this._element.classList.remove(CLASS_NAME_SHOW$8);const t=this._element.classList.contains(CLASS_NAME_FADE$5);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),EventHandler.trigger(this._element,EVENT_CLOSED),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Alert.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}enableDismissTrigger(Alert,"close");defineJQueryPlugin(Alert);const NAME$e="button",DATA_KEY$9="bs.button",EVENT_KEY$a=`.${DATA_KEY$9}`,DATA_API_KEY$6=".data-api",CLASS_NAME_ACTIVE$3="active",SELECTOR_DATA_TOGGLE$5='[data-bs-toggle="button"]',EVENT_CLICK_DATA_API$6=`click${EVENT_KEY$a}${DATA_API_KEY$6}`;class Button extends BaseComponent{static get NAME(){return NAME$e}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(CLASS_NAME_ACTIVE$3))}static jQueryInterface(e){return this.each(function(){const t=Button.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}EventHandler.on(document,EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$5,s=>{s.preventDefault();const e=s.target.closest(SELECTOR_DATA_TOGGLE$5);Button.getOrCreateInstance(e).toggle()});defineJQueryPlugin(Button);const NAME$d="swipe",EVENT_KEY$9=".bs.swipe",EVENT_TOUCHSTART=`touchstart${EVENT_KEY$9}`,EVENT_TOUCHMOVE=`touchmove${EVENT_KEY$9}`,EVENT_TOUCHEND=`touchend${EVENT_KEY$9}`,EVENT_POINTERDOWN=`pointerdown${EVENT_KEY$9}`,EVENT_POINTERUP=`pointerup${EVENT_KEY$9}`,POINTER_TYPE_TOUCH="touch",POINTER_TYPE_PEN="pen",CLASS_NAME_POINTER_EVENT="pointer-event",SWIPE_THRESHOLD=40,Default$c={endCallback:null,leftCallback:null,rightCallback:null},DefaultType$c={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Swipe extends Config$1{constructor(e,t){super(),this._element=e,!(!e||!Swipe.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Default$c}static get DefaultType(){return DefaultType$c}static get NAME(){return NAME$d}dispose(){EventHandler.off(this._element,EVENT_KEY$9)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),execute(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=SWIPE_THRESHOLD)return;const t=e/this._deltaX;this._deltaX=0,t&&execute(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(EventHandler.on(this._element,EVENT_POINTERDOWN,e=>this._start(e)),EventHandler.on(this._element,EVENT_POINTERUP,e=>this._end(e)),this._element.classList.add(CLASS_NAME_POINTER_EVENT)):(EventHandler.on(this._element,EVENT_TOUCHSTART,e=>this._start(e)),EventHandler.on(this._element,EVENT_TOUCHMOVE,e=>this._move(e)),EventHandler.on(this._element,EVENT_TOUCHEND,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===POINTER_TYPE_PEN||e.pointerType===POINTER_TYPE_TOUCH)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const NAME$c="carousel",DATA_KEY$8="bs.carousel",EVENT_KEY$8=`.${DATA_KEY$8}`,DATA_API_KEY$5=".data-api",ARROW_LEFT_KEY$1="ArrowLeft",ARROW_RIGHT_KEY$1="ArrowRight",TOUCHEVENT_COMPAT_WAIT=500,ORDER_NEXT="next",ORDER_PREV="prev",DIRECTION_LEFT="left",DIRECTION_RIGHT="right",EVENT_SLIDE=`slide${EVENT_KEY$8}`,EVENT_SLID=`slid${EVENT_KEY$8}`,EVENT_KEYDOWN$1=`keydown${EVENT_KEY$8}`,EVENT_MOUSEENTER$1=`mouseenter${EVENT_KEY$8}`,EVENT_MOUSELEAVE$1=`mouseleave${EVENT_KEY$8}`,EVENT_DRAG_START=`dragstart${EVENT_KEY$8}`,EVENT_LOAD_DATA_API$3=`load${EVENT_KEY$8}${DATA_API_KEY$5}`,EVENT_CLICK_DATA_API$5=`click${EVENT_KEY$8}${DATA_API_KEY$5}`,CLASS_NAME_CAROUSEL="carousel",CLASS_NAME_ACTIVE$2="active",CLASS_NAME_SLIDE="slide",CLASS_NAME_END="carousel-item-end",CLASS_NAME_START="carousel-item-start",CLASS_NAME_NEXT="carousel-item-next",CLASS_NAME_PREV="carousel-item-prev",SELECTOR_ACTIVE=".active",SELECTOR_ITEM=".carousel-item",SELECTOR_ACTIVE_ITEM=SELECTOR_ACTIVE+SELECTOR_ITEM,SELECTOR_ITEM_IMG=".carousel-item img",SELECTOR_INDICATORS=".carousel-indicators",SELECTOR_DATA_SLIDE="[data-bs-slide], [data-bs-slide-to]",SELECTOR_DATA_RIDE='[data-bs-ride="carousel"]',KEY_TO_DIRECTION={[ARROW_LEFT_KEY$1]:DIRECTION_RIGHT,[ARROW_RIGHT_KEY$1]:DIRECTION_LEFT},Default$b={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},DefaultType$b={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Carousel extends BaseComponent{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=SelectorEngine.findOne(SELECTOR_INDICATORS,this._element),this._addEventListeners(),this._config.ride===CLASS_NAME_CAROUSEL&&this.cycle()}static get Default(){return Default$b}static get DefaultType(){return DefaultType$b}static get NAME(){return NAME$c}next(){this._slide(ORDER_NEXT)}nextWhenVisible(){!document.hidden&&isVisible$1(this._element)&&this.next()}prev(){this._slide(ORDER_PREV)}pause(){this._isSliding&&triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.to(e));return}const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?ORDER_NEXT:ORDER_PREV;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&EventHandler.on(this._element,EVENT_KEYDOWN$1,e=>this._keydown(e)),this._config.pause==="hover"&&(EventHandler.on(this._element,EVENT_MOUSEENTER$1,()=>this.pause()),EventHandler.on(this._element,EVENT_MOUSELEAVE$1,()=>this._maybeEnableCycle())),this._config.touch&&Swipe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of SelectorEngine.find(SELECTOR_ITEM_IMG,this._element))EventHandler.on(i,EVENT_DRAG_START,n=>n.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(DIRECTION_LEFT)),rightCallback:()=>this._slide(this._directionToOrder(DIRECTION_RIGHT)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),TOUCHEVENT_COMPAT_WAIT+this._config.interval))}};this._swipeHelper=new Swipe(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=KEY_TO_DIRECTION[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=SelectorEngine.findOne(SELECTOR_ACTIVE,this._indicatorsElement);t.classList.remove(CLASS_NAME_ACTIVE$2),t.removeAttribute("aria-current");const i=SelectorEngine.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(CLASS_NAME_ACTIVE$2),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),n=e===ORDER_NEXT,o=t||getNextActiveElement(this._getItems(),i,n,this._config.wrap);if(o===i)return;const r=this._getItemIndex(o),a=v=>EventHandler.trigger(this._element,v,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:r});if(a(EVENT_SLIDE).defaultPrevented||!i||!o)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const h=n?CLASS_NAME_START:CLASS_NAME_END,p=n?CLASS_NAME_NEXT:CLASS_NAME_PREV;o.classList.add(p),reflow(o),i.classList.add(h),o.classList.add(h);const m=()=>{o.classList.remove(h,p),o.classList.add(CLASS_NAME_ACTIVE$2),i.classList.remove(CLASS_NAME_ACTIVE$2,p,h),this._isSliding=!1,a(EVENT_SLID)};this._queueCallback(m,i,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(CLASS_NAME_SLIDE)}_getActive(){return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM,this._element)}_getItems(){return SelectorEngine.find(SELECTOR_ITEM,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return isRTL()?e===DIRECTION_LEFT?ORDER_PREV:ORDER_NEXT:e===DIRECTION_LEFT?ORDER_NEXT:ORDER_PREV}_orderToDirection(e){return isRTL()?e===ORDER_PREV?DIRECTION_LEFT:DIRECTION_RIGHT:e===ORDER_PREV?DIRECTION_RIGHT:DIRECTION_LEFT}static jQueryInterface(e){return this.each(function(){const t=Carousel.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$5,SELECTOR_DATA_SLIDE,function(s){const e=SelectorEngine.getElementFromSelector(this);if(!e||!e.classList.contains(CLASS_NAME_CAROUSEL))return;s.preventDefault();const t=Carousel.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");if(i){t.to(i),t._maybeEnableCycle();return}if(Manipulator.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});EventHandler.on(window,EVENT_LOAD_DATA_API$3,()=>{const s=SelectorEngine.find(SELECTOR_DATA_RIDE);for(const e of s)Carousel.getOrCreateInstance(e)});defineJQueryPlugin(Carousel);const NAME$b="collapse",DATA_KEY$7="bs.collapse",EVENT_KEY$7=`.${DATA_KEY$7}`,DATA_API_KEY$4=".data-api",EVENT_SHOW$6=`show${EVENT_KEY$7}`,EVENT_SHOWN$6=`shown${EVENT_KEY$7}`,EVENT_HIDE$6=`hide${EVENT_KEY$7}`,EVENT_HIDDEN$6=`hidden${EVENT_KEY$7}`,EVENT_CLICK_DATA_API$4=`click${EVENT_KEY$7}${DATA_API_KEY$4}`,CLASS_NAME_SHOW$7="show",CLASS_NAME_COLLAPSE="collapse",CLASS_NAME_COLLAPSING="collapsing",CLASS_NAME_COLLAPSED="collapsed",CLASS_NAME_DEEPER_CHILDREN=`:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`,CLASS_NAME_HORIZONTAL="collapse-horizontal",WIDTH="width",HEIGHT="height",SELECTOR_ACTIVES=".collapse.show, .collapse.collapsing",SELECTOR_DATA_TOGGLE$4='[data-bs-toggle="collapse"]',Default$a={parent:null,toggle:!0},DefaultType$a={parent:"(null|element)",toggle:"boolean"};class Collapse extends BaseComponent{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);for(const n of i){const o=SelectorEngine.getSelectorFromElement(n),r=SelectorEngine.find(o).filter(a=>a===this._element);o!==null&&r.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Default$a}static get DefaultType(){return DefaultType$a}static get NAME(){return NAME$b}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(a=>a!==this._element).map(a=>Collapse.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$6).defaultPrevented)return;for(const a of e)a.hide();const i=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7),this._element.style[i]="",EventHandler.trigger(this._element,EVENT_SHOWN$6)},r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||EventHandler.trigger(this._element,EVENT_HIDE$6).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,reflow(this._element),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7);for(const n of this._triggerArray){const o=SelectorEngine.getElementFromSelector(n);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE),EventHandler.trigger(this._element,EVENT_HIDDEN$6)};this._element.style[t]="",this._queueCallback(i,this._element,!0)}_isShown(e=this._element){return e.classList.contains(CLASS_NAME_SHOW$7)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=getElement(e.parent),e}_getDimension(){return this._element.classList.contains(CLASS_NAME_HORIZONTAL)?WIDTH:HEIGHT}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);for(const t of e){const i=SelectorEngine.getElementFromSelector(t);i&&this._addAriaAndCollapsedClass([t],this._isShown(i))}}_getFirstLevelChildren(e){const t=SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN,this._config.parent);return SelectorEngine.find(e,this._config.parent).filter(i=>!t.includes(i))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle(CLASS_NAME_COLLAPSED,!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const i=Collapse.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof i[e]>"u")throw new TypeError(`No method named "${e}"`);i[e]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$4,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const e of SelectorEngine.getMultipleElementsFromSelector(this))Collapse.getOrCreateInstance(e,{toggle:!1}).toggle()});defineJQueryPlugin(Collapse);const NAME$a="dropdown",DATA_KEY$6="bs.dropdown",EVENT_KEY$6=`.${DATA_KEY$6}`,DATA_API_KEY$3=".data-api",ESCAPE_KEY$2="Escape",TAB_KEY$1="Tab",ARROW_UP_KEY$1="ArrowUp",ARROW_DOWN_KEY$1="ArrowDown",RIGHT_MOUSE_BUTTON=2,EVENT_HIDE$5=`hide${EVENT_KEY$6}`,EVENT_HIDDEN$5=`hidden${EVENT_KEY$6}`,EVENT_SHOW$5=`show${EVENT_KEY$6}`,EVENT_SHOWN$5=`shown${EVENT_KEY$6}`,EVENT_CLICK_DATA_API$3=`click${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYDOWN_DATA_API=`keydown${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYUP_DATA_API=`keyup${EVENT_KEY$6}${DATA_API_KEY$3}`,CLASS_NAME_SHOW$6="show",CLASS_NAME_DROPUP="dropup",CLASS_NAME_DROPEND="dropend",CLASS_NAME_DROPSTART="dropstart",CLASS_NAME_DROPUP_CENTER="dropup-center",CLASS_NAME_DROPDOWN_CENTER="dropdown-center",SELECTOR_DATA_TOGGLE$3='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',SELECTOR_DATA_TOGGLE_SHOWN=`${SELECTOR_DATA_TOGGLE$3}.${CLASS_NAME_SHOW$6}`,SELECTOR_MENU=".dropdown-menu",SELECTOR_NAVBAR=".navbar",SELECTOR_NAVBAR_NAV=".navbar-nav",SELECTOR_VISIBLE_ITEMS=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",PLACEMENT_TOP=isRTL()?"top-end":"top-start",PLACEMENT_TOPEND=isRTL()?"top-start":"top-end",PLACEMENT_BOTTOM=isRTL()?"bottom-end":"bottom-start",PLACEMENT_BOTTOMEND=isRTL()?"bottom-start":"bottom-end",PLACEMENT_RIGHT=isRTL()?"left-start":"right-start",PLACEMENT_LEFT=isRTL()?"right-start":"left-start",PLACEMENT_TOPCENTER="top",PLACEMENT_BOTTOMCENTER="bottom",Default$9={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},DefaultType$9={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Dropdown extends BaseComponent{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=SelectorEngine.next(this._element,SELECTOR_MENU)[0]||SelectorEngine.prev(this._element,SELECTOR_MENU)[0]||SelectorEngine.findOne(SELECTOR_MENU,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Default$9}static get DefaultType(){return DefaultType$9}static get NAME(){return NAME$a}toggle(){return this._isShown()?this.hide():this.show()}show(){if(isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!EventHandler.trigger(this._element,EVENT_SHOW$5,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(SELECTOR_NAVBAR_NAV))for(const i of[].concat(...document.body.children))EventHandler.on(i,"mouseover",noop$3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(CLASS_NAME_SHOW$6),this._element.classList.add(CLASS_NAME_SHOW$6),EventHandler.trigger(this._element,EVENT_SHOWN$5,e)}}hide(){if(isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!EventHandler.trigger(this._element,EVENT_HIDE$5,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))EventHandler.off(i,"mouseover",noop$3);this._popper&&this._popper.destroy(),this._menu.classList.remove(CLASS_NAME_SHOW$6),this._element.classList.remove(CLASS_NAME_SHOW$6),this._element.setAttribute("aria-expanded","false"),Manipulator.removeDataAttribute(this._menu,"popper"),EventHandler.trigger(this._element,EVENT_HIDDEN$5,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!isElement(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${NAME$a.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Popper>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:isElement(this._config.reference)?e=getElement(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(CLASS_NAME_SHOW$6)}_getPlacement(){const e=this._parent;if(e.classList.contains(CLASS_NAME_DROPEND))return PLACEMENT_RIGHT;if(e.classList.contains(CLASS_NAME_DROPSTART))return PLACEMENT_LEFT;if(e.classList.contains(CLASS_NAME_DROPUP_CENTER))return PLACEMENT_TOPCENTER;if(e.classList.contains(CLASS_NAME_DROPDOWN_CENTER))return PLACEMENT_BOTTOMCENTER;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(CLASS_NAME_DROPUP)?t?PLACEMENT_TOPEND:PLACEMENT_TOP:t?PLACEMENT_BOTTOMEND:PLACEMENT_BOTTOM}_detectNavbar(){return this._element.closest(SELECTOR_NAVBAR)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Manipulator.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...execute(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const i=SelectorEngine.find(SELECTOR_VISIBLE_ITEMS,this._menu).filter(n=>isVisible$1(n));i.length&&getNextActiveElement(i,t,e===ARROW_DOWN_KEY$1,!i.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Dropdown.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===RIGHT_MOUSE_BUTTON||e.type==="keyup"&&e.key!==TAB_KEY$1)return;const t=SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);for(const i of t){const n=Dropdown.getInstance(i);if(!n||n._config.autoClose===!1)continue;const o=e.composedPath(),r=o.includes(n._menu);if(o.includes(n._element)||n._config.autoClose==="inside"&&!r||n._config.autoClose==="outside"&&r||n._menu.contains(e.target)&&(e.type==="keyup"&&e.key===TAB_KEY$1||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:n._element};e.type==="click"&&(a.clickEvent=e),n._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i=e.key===ESCAPE_KEY$2,n=[ARROW_UP_KEY$1,ARROW_DOWN_KEY$1].includes(e.key);if(!n&&!i||t&&!i)return;e.preventDefault();const o=this.matches(SELECTOR_DATA_TOGGLE$3)?this:SelectorEngine.prev(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.next(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3,e.delegateTarget.parentNode),r=Dropdown.getOrCreateInstance(o);if(n){e.stopPropagation(),r.show(),r._selectMenuItem(e);return}r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$3,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_CLICK_DATA_API$3,Dropdown.clearMenus);EventHandler.on(document,EVENT_KEYUP_DATA_API,Dropdown.clearMenus);EventHandler.on(document,EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$3,function(s){s.preventDefault(),Dropdown.getOrCreateInstance(this).toggle()});defineJQueryPlugin(Dropdown);const NAME$9="backdrop",CLASS_NAME_FADE$4="fade",CLASS_NAME_SHOW$5="show",EVENT_MOUSEDOWN=`mousedown.bs.${NAME$9}`,Default$8={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},DefaultType$8={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Backdrop extends Config$1{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Default$8}static get DefaultType(){return DefaultType$8}static get NAME(){return NAME$9}show(e){if(!this._config.isVisible){execute(e);return}this._append();const t=this._getElement();this._config.isAnimated&&reflow(t),t.classList.add(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{execute(e)})}hide(e){if(!this._config.isVisible){execute(e);return}this._getElement().classList.remove(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{this.dispose(),execute(e)})}dispose(){this._isAppended&&(EventHandler.off(this._element,EVENT_MOUSEDOWN),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(CLASS_NAME_FADE$4),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=getElement(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),EventHandler.on(e,EVENT_MOUSEDOWN,()=>{execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}const NAME$8="focustrap",DATA_KEY$5="bs.focustrap",EVENT_KEY$5=`.${DATA_KEY$5}`,EVENT_FOCUSIN$2=`focusin${EVENT_KEY$5}`,EVENT_KEYDOWN_TAB=`keydown.tab${EVENT_KEY$5}`,TAB_KEY="Tab",TAB_NAV_FORWARD="forward",TAB_NAV_BACKWARD="backward",Default$7={autofocus:!0,trapElement:null},DefaultType$7={autofocus:"boolean",trapElement:"element"};class FocusTrap extends Config$1{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Default$7}static get DefaultType(){return DefaultType$7}static get NAME(){return NAME$8}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),EventHandler.off(document,EVENT_KEY$5),EventHandler.on(document,EVENT_FOCUSIN$2,e=>this._handleFocusin(e)),EventHandler.on(document,EVENT_KEYDOWN_TAB,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,EventHandler.off(document,EVENT_KEY$5))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=SelectorEngine.focusableChildren(t);i.length===0?t.focus():this._lastTabNavDirection===TAB_NAV_BACKWARD?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){e.key===TAB_KEY&&(this._lastTabNavDirection=e.shiftKey?TAB_NAV_BACKWARD:TAB_NAV_FORWARD)}}const SELECTOR_FIXED_CONTENT=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",SELECTOR_STICKY_CONTENT=".sticky-top",PROPERTY_PADDING="padding-right",PROPERTY_MARGIN="margin-right";class ScrollBarHelper{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,PROPERTY_PADDING,t=>t+e),this._setElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING,t=>t+e),this._setElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth(),o=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+n)return;this._saveInitialAttribute(r,t);const a=window.getComputedStyle(r).getPropertyValue(t);r.style.setProperty(t,`${i(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,o)}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&Manipulator.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){const i=n=>{const o=Manipulator.getDataAttribute(n,t);if(o===null){n.style.removeProperty(t);return}Manipulator.removeDataAttribute(n,t),n.style.setProperty(t,o)};this._applyManipulationCallback(e,i)}_applyManipulationCallback(e,t){if(isElement(e)){t(e);return}for(const i of SelectorEngine.find(e,this._element))t(i)}}const NAME$7="modal",DATA_KEY$4="bs.modal",EVENT_KEY$4=`.${DATA_KEY$4}`,DATA_API_KEY$2=".data-api",ESCAPE_KEY$1="Escape",EVENT_HIDE$4=`hide${EVENT_KEY$4}`,EVENT_HIDE_PREVENTED$1=`hidePrevented${EVENT_KEY$4}`,EVENT_HIDDEN$4=`hidden${EVENT_KEY$4}`,EVENT_SHOW$4=`show${EVENT_KEY$4}`,EVENT_SHOWN$4=`shown${EVENT_KEY$4}`,EVENT_RESIZE$1=`resize${EVENT_KEY$4}`,EVENT_CLICK_DISMISS=`click.dismiss${EVENT_KEY$4}`,EVENT_MOUSEDOWN_DISMISS=`mousedown.dismiss${EVENT_KEY$4}`,EVENT_KEYDOWN_DISMISS$1=`keydown.dismiss${EVENT_KEY$4}`,EVENT_CLICK_DATA_API$2=`click${EVENT_KEY$4}${DATA_API_KEY$2}`,CLASS_NAME_OPEN="modal-open",CLASS_NAME_FADE$3="fade",CLASS_NAME_SHOW$4="show",CLASS_NAME_STATIC="modal-static",OPEN_SELECTOR$1=".modal.show",SELECTOR_DIALOG=".modal-dialog",SELECTOR_MODAL_BODY=".modal-body",SELECTOR_DATA_TOGGLE$2='[data-bs-toggle="modal"]',Default$6={backdrop:!0,focus:!0,keyboard:!0},DefaultType$6={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Modal extends BaseComponent{constructor(e,t){super(e,t),this._dialog=SelectorEngine.findOne(SELECTOR_DIALOG,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ScrollBarHelper,this._addEventListeners()}static get Default(){return Default$6}static get DefaultType(){return DefaultType$6}static get NAME(){return NAME$7}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$4,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(CLASS_NAME_OPEN),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_HIDE$4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(CLASS_NAME_SHOW$4),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){EventHandler.off(window,EVENT_KEY$4),EventHandler.off(this._dialog,EVENT_KEY$4),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Backdrop({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=SelectorEngine.findOne(SELECTOR_MODAL_BODY,this._dialog);t&&(t.scrollTop=0),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW$4);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,EventHandler.trigger(this._element,EVENT_SHOWN$4,{relatedTarget:e})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS$1,e=>{if(e.key===ESCAPE_KEY$1){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),EventHandler.on(window,EVENT_RESIZE$1,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),EventHandler.on(this._element,EVENT_MOUSEDOWN_DISMISS,e=>{EventHandler.one(this._element,EVENT_CLICK_DISMISS,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(CLASS_NAME_OPEN),this._resetAdjustments(),this._scrollBar.reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$4)})}_isAnimated(){return this._element.classList.contains(CLASS_NAME_FADE$3)}_triggerBackdropTransition(){if(EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED$1).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(CLASS_NAME_STATIC)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.classList.remove(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const n=isRTL()?"paddingLeft":"paddingRight";this._element.style[n]=`${t}px`}if(!i&&e){const n=isRTL()?"paddingRight":"paddingLeft";this._element.style[n]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const i=Modal.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof i[e]>"u")throw new TypeError(`No method named "${e}"`);i[e](t)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$2,SELECTOR_DATA_TOGGLE$2,function(s){const e=SelectorEngine.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),EventHandler.one(e,EVENT_SHOW$4,n=>{n.defaultPrevented||EventHandler.one(e,EVENT_HIDDEN$4,()=>{isVisible$1(this)&&this.focus()})});const t=SelectorEngine.findOne(OPEN_SELECTOR$1);t&&Modal.getInstance(t).hide(),Modal.getOrCreateInstance(e).toggle(this)});enableDismissTrigger(Modal);defineJQueryPlugin(Modal);const NAME$6="offcanvas",DATA_KEY$3="bs.offcanvas",EVENT_KEY$3=`.${DATA_KEY$3}`,DATA_API_KEY$1=".data-api",EVENT_LOAD_DATA_API$2=`load${EVENT_KEY$3}${DATA_API_KEY$1}`,ESCAPE_KEY="Escape",CLASS_NAME_SHOW$3="show",CLASS_NAME_SHOWING$1="showing",CLASS_NAME_HIDING="hiding",CLASS_NAME_BACKDROP="offcanvas-backdrop",OPEN_SELECTOR=".offcanvas.show",EVENT_SHOW$3=`show${EVENT_KEY$3}`,EVENT_SHOWN$3=`shown${EVENT_KEY$3}`,EVENT_HIDE$3=`hide${EVENT_KEY$3}`,EVENT_HIDE_PREVENTED=`hidePrevented${EVENT_KEY$3}`,EVENT_HIDDEN$3=`hidden${EVENT_KEY$3}`,EVENT_RESIZE=`resize${EVENT_KEY$3}`,EVENT_CLICK_DATA_API$1=`click${EVENT_KEY$3}${DATA_API_KEY$1}`,EVENT_KEYDOWN_DISMISS=`keydown.dismiss${EVENT_KEY$3}`,SELECTOR_DATA_TOGGLE$1='[data-bs-toggle="offcanvas"]',Default$5={backdrop:!0,keyboard:!0,scroll:!1},DefaultType$5={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Offcanvas extends BaseComponent{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Default$5}static get DefaultType(){return DefaultType$5}static get NAME(){return NAME$6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||EventHandler.trigger(this._element,EVENT_SHOW$3,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ScrollBarHelper().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(CLASS_NAME_SHOWING$1);const i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(CLASS_NAME_SHOW$3),this._element.classList.remove(CLASS_NAME_SHOWING$1),EventHandler.trigger(this._element,EVENT_SHOWN$3,{relatedTarget:e})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||EventHandler.trigger(this._element,EVENT_HIDE$3).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(CLASS_NAME_HIDING),this._backdrop.hide();const t=()=>{this._element.classList.remove(CLASS_NAME_SHOW$3,CLASS_NAME_HIDING),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ScrollBarHelper().reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$3)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED);return}this.hide()},t=!!this._config.backdrop;return new Backdrop({className:CLASS_NAME_BACKDROP,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS,e=>{if(e.key===ESCAPE_KEY){if(this._config.keyboard){this.hide();return}EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED)}})}static jQueryInterface(e){return this.each(function(){const t=Offcanvas.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$1,SELECTOR_DATA_TOGGLE$1,function(s){const e=SelectorEngine.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),isDisabled(this))return;EventHandler.one(e,EVENT_HIDDEN$3,()=>{isVisible$1(this)&&this.focus()});const t=SelectorEngine.findOne(OPEN_SELECTOR);t&&t!==e&&Offcanvas.getInstance(t).hide(),Offcanvas.getOrCreateInstance(e).toggle(this)});EventHandler.on(window,EVENT_LOAD_DATA_API$2,()=>{for(const s of SelectorEngine.find(OPEN_SELECTOR))Offcanvas.getOrCreateInstance(s).show()});EventHandler.on(window,EVENT_RESIZE,()=>{for(const s of SelectorEngine.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Offcanvas.getOrCreateInstance(s).hide()});enableDismissTrigger(Offcanvas);defineJQueryPlugin(Offcanvas);const ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i,DefaultAllowlist={"*":["class","dir","id","lang","role",ARIA_ATTRIBUTE_PATTERN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},uriAttributes=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),SAFE_URL_PATTERN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,allowedAttribute=(s,e)=>{const t=s.nodeName.toLowerCase();return e.includes(t)?uriAttributes.has(t)?!!SAFE_URL_PATTERN.test(s.nodeValue):!0:e.filter(i=>i instanceof RegExp).some(i=>i.test(t))};function sanitizeHtml(s,e,t){if(!s.length)return s;if(t&&typeof t=="function")return t(s);const n=new window.DOMParser().parseFromString(s,"text/html"),o=[].concat(...n.body.querySelectorAll("*"));for(const r of o){const a=r.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){r.remove();continue}const l=[].concat(...r.attributes),d=[].concat(e["*"]||[],e[a]||[]);for(const h of l)allowedAttribute(h,d)||r.removeAttribute(h.nodeName)}return n.body.innerHTML}const NAME$5="TemplateFactory",Default$4={allowList:DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},DefaultType$4={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},DefaultContentType={entry:"(string|element|function|null)",selector:"(string|element)"};class TemplateFactory extends Config$1{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Default$4}static get DefaultType(){return DefaultType$4}static get NAME(){return NAME$5}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[n,o]of Object.entries(this._config.content))this._setContent(e,o,n);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},DefaultContentType)}_setContent(e,t,i){const n=SelectorEngine.findOne(i,e);if(n){if(t=this._resolvePossibleFunction(t),!t){n.remove();return}if(isElement(t)){this._putElementInTemplate(getElement(t),n);return}if(this._config.html){n.innerHTML=this._maybeSanitize(t);return}n.textContent=t}}_maybeSanitize(e){return this._config.sanitize?sanitizeHtml(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return execute(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const NAME$4="tooltip",DISALLOWED_ATTRIBUTES=new Set(["sanitize","allowList","sanitizeFn"]),CLASS_NAME_FADE$2="fade",CLASS_NAME_MODAL="modal",CLASS_NAME_SHOW$2="show",SELECTOR_TOOLTIP_INNER=".tooltip-inner",SELECTOR_MODAL=`.${CLASS_NAME_MODAL}`,EVENT_MODAL_HIDE="hide.bs.modal",TRIGGER_HOVER="hover",TRIGGER_FOCUS="focus",TRIGGER_CLICK="click",TRIGGER_MANUAL="manual",EVENT_HIDE$2="hide",EVENT_HIDDEN$2="hidden",EVENT_SHOW$2="show",EVENT_SHOWN$2="shown",EVENT_INSERTED="inserted",EVENT_CLICK$1="click",EVENT_FOCUSIN$1="focusin",EVENT_FOCUSOUT$1="focusout",EVENT_MOUSEENTER="mouseenter",EVENT_MOUSELEAVE="mouseleave",AttachmentMap={AUTO:"auto",TOP:"top",RIGHT:isRTL()?"left":"right",BOTTOM:"bottom",LEFT:isRTL()?"right":"left"},Default$3={allowList:DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},DefaultType$3={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let Tooltip$1=class Nn extends BaseComponent{constructor(e,t){if(typeof Popper>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Default$3}static get DefaultType(){return DefaultType$3}static get NAME(){return NAME$4}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),EventHandler.off(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOW$2)),i=(findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!i)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(n),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_INSERTED))),this._popper=this._createPopper(n),n.classList.add(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))EventHandler.on(a,"mouseover",noop$3);const r=()=>{EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOWN$2)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown()||EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDE$2)).defaultPrevented)return;if(this._getTipElement().classList.remove(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))EventHandler.off(n,"mouseover",noop$3);this._activeTrigger[TRIGGER_CLICK]=!1,this._activeTrigger[TRIGGER_FOCUS]=!1,this._activeTrigger[TRIGGER_HOVER]=!1,this._isHovered=null;const i=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDDEN$2)))};this._queueCallback(i,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(CLASS_NAME_FADE$2,CLASS_NAME_SHOW$2),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=getUID(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(CLASS_NAME_FADE$2),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new TemplateFactory({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[SELECTOR_TOOLTIP_INNER]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(CLASS_NAME_FADE$2)}_isShown(){return this.tip&&this.tip.classList.contains(CLASS_NAME_SHOW$2)}_createPopper(e){const t=execute(this._config.placement,[this,e,this._element]),i=AttachmentMap[t.toUpperCase()];return createPopper(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return execute(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:i=>{this._getTipElement().setAttribute("data-popper-placement",i.state.placement)}}]};return{...t,...execute(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")EventHandler.on(this._element,this.constructor.eventName(EVENT_CLICK$1),this._config.selector,i=>{this._initializeOnDelegatedTarget(i).toggle()});else if(t!==TRIGGER_MANUAL){const i=t===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSEENTER):this.constructor.eventName(EVENT_FOCUSIN$1),n=t===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSELEAVE):this.constructor.eventName(EVENT_FOCUSOUT$1);EventHandler.on(this._element,i,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusin"?TRIGGER_FOCUS:TRIGGER_HOVER]=!0,r._enter()}),EventHandler.on(this._element,n,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusout"?TRIGGER_FOCUS:TRIGGER_HOVER]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},EventHandler.on(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=Manipulator.getDataAttributes(this._element);for(const i of Object.keys(t))DISALLOWED_ATTRIBUTES.has(i)&&delete t[i];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:getElement(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Nn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}};defineJQueryPlugin(Tooltip$1);const NAME$3="popover",SELECTOR_TITLE=".popover-header",SELECTOR_CONTENT=".popover-body",Default$2={...Tooltip$1.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},DefaultType$2={...Tooltip$1.DefaultType,content:"(null|string|element|function)"};class Popover extends Tooltip$1{static get Default(){return Default$2}static get DefaultType(){return DefaultType$2}static get NAME(){return NAME$3}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[SELECTOR_TITLE]:this._getTitle(),[SELECTOR_CONTENT]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Popover.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}defineJQueryPlugin(Popover);const NAME$2="scrollspy",DATA_KEY$2="bs.scrollspy",EVENT_KEY$2=`.${DATA_KEY$2}`,DATA_API_KEY=".data-api",EVENT_ACTIVATE=`activate${EVENT_KEY$2}`,EVENT_CLICK=`click${EVENT_KEY$2}`,EVENT_LOAD_DATA_API$1=`load${EVENT_KEY$2}${DATA_API_KEY}`,CLASS_NAME_DROPDOWN_ITEM="dropdown-item",CLASS_NAME_ACTIVE$1="active",SELECTOR_DATA_SPY='[data-bs-spy="scroll"]',SELECTOR_TARGET_LINKS="[href]",SELECTOR_NAV_LIST_GROUP=".nav, .list-group",SELECTOR_NAV_LINKS=".nav-link",SELECTOR_NAV_ITEMS=".nav-item",SELECTOR_LIST_ITEMS=".list-group-item",SELECTOR_LINK_ITEMS=`${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`,SELECTOR_DROPDOWN=".dropdown",SELECTOR_DROPDOWN_TOGGLE$1=".dropdown-toggle",Default$1={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},DefaultType$1={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ScrollSpy extends BaseComponent{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Default$1}static get DefaultType(){return DefaultType$1}static get NAME(){return NAME$2}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=getElement(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(EventHandler.off(this._config.target,EVENT_CLICK),EventHandler.on(this._config.target,EVENT_CLICK,SELECTOR_TARGET_LINKS,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:n,behavior:"smooth"});return}i.scrollTop=n}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=r=>this._targetLinks.get(`#${r.target.id}`),i=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(t(r))},n=(this._rootElement||document.documentElement).scrollTop,o=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const a=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(i(r),!n)return;continue}!o&&!a&&i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=SelectorEngine.find(SELECTOR_TARGET_LINKS,this._config.target);for(const t of e){if(!t.hash||isDisabled(t))continue;const i=SelectorEngine.findOne(decodeURI(t.hash),this._element);isVisible$1(i)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,i))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(CLASS_NAME_ACTIVE$1),this._activateParents(e),EventHandler.trigger(this._element,EVENT_ACTIVATE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(CLASS_NAME_DROPDOWN_ITEM)){SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1,e.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);return}for(const t of SelectorEngine.parents(e,SELECTOR_NAV_LIST_GROUP))for(const i of SelectorEngine.prev(t,SELECTOR_LINK_ITEMS))i.classList.add(CLASS_NAME_ACTIVE$1)}_clearActiveClass(e){e.classList.remove(CLASS_NAME_ACTIVE$1);const t=SelectorEngine.find(`${SELECTOR_TARGET_LINKS}.${CLASS_NAME_ACTIVE$1}`,e);for(const i of t)i.classList.remove(CLASS_NAME_ACTIVE$1)}static jQueryInterface(e){return this.each(function(){const t=ScrollSpy.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}EventHandler.on(window,EVENT_LOAD_DATA_API$1,()=>{for(const s of SelectorEngine.find(SELECTOR_DATA_SPY))ScrollSpy.getOrCreateInstance(s)});defineJQueryPlugin(ScrollSpy);const NAME$1="tab",DATA_KEY$1="bs.tab",EVENT_KEY$1=`.${DATA_KEY$1}`,EVENT_HIDE$1=`hide${EVENT_KEY$1}`,EVENT_HIDDEN$1=`hidden${EVENT_KEY$1}`,EVENT_SHOW$1=`show${EVENT_KEY$1}`,EVENT_SHOWN$1=`shown${EVENT_KEY$1}`,EVENT_CLICK_DATA_API=`click${EVENT_KEY$1}`,EVENT_KEYDOWN=`keydown${EVENT_KEY$1}`,EVENT_LOAD_DATA_API=`load${EVENT_KEY$1}`,ARROW_LEFT_KEY="ArrowLeft",ARROW_RIGHT_KEY="ArrowRight",ARROW_UP_KEY="ArrowUp",ARROW_DOWN_KEY="ArrowDown",HOME_KEY="Home",END_KEY="End",CLASS_NAME_ACTIVE="active",CLASS_NAME_FADE$1="fade",CLASS_NAME_SHOW$1="show",CLASS_DROPDOWN="dropdown",SELECTOR_DROPDOWN_TOGGLE=".dropdown-toggle",SELECTOR_DROPDOWN_MENU=".dropdown-menu",NOT_SELECTOR_DROPDOWN_TOGGLE=`:not(${SELECTOR_DROPDOWN_TOGGLE})`,SELECTOR_TAB_PANEL='.list-group, .nav, [role="tablist"]',SELECTOR_OUTER=".nav-item, .list-group-item",SELECTOR_INNER=`.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`,SELECTOR_DATA_TOGGLE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',SELECTOR_INNER_ELEM=`${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`,SELECTOR_DATA_TOGGLE_ACTIVE=`.${CLASS_NAME_ACTIVE}[data-bs-toggle="tab"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="pill"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="list"]`;class Tab extends BaseComponent{constructor(e){super(e),this._parent=this._element.closest(SELECTOR_TAB_PANEL),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),EventHandler.on(this._element,EVENT_KEYDOWN,t=>this._keydown(t)))}static get NAME(){return NAME$1}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?EventHandler.trigger(t,EVENT_HIDE$1,{relatedTarget:e}):null;EventHandler.trigger(e,EVENT_SHOW$1,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(CLASS_NAME_ACTIVE),this._activate(SelectorEngine.getElementFromSelector(e));const i=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(CLASS_NAME_SHOW$1);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),EventHandler.trigger(e,EVENT_SHOWN$1,{relatedTarget:t})};this._queueCallback(i,e,e.classList.contains(CLASS_NAME_FADE$1))}_deactivate(e,t){if(!e)return;e.classList.remove(CLASS_NAME_ACTIVE),e.blur(),this._deactivate(SelectorEngine.getElementFromSelector(e));const i=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(CLASS_NAME_SHOW$1);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),EventHandler.trigger(e,EVENT_HIDDEN$1,{relatedTarget:t})};this._queueCallback(i,e,e.classList.contains(CLASS_NAME_FADE$1))}_keydown(e){if(![ARROW_LEFT_KEY,ARROW_RIGHT_KEY,ARROW_UP_KEY,ARROW_DOWN_KEY,HOME_KEY,END_KEY].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(n=>!isDisabled(n));let i;if([HOME_KEY,END_KEY].includes(e.key))i=t[e.key===HOME_KEY?0:t.length-1];else{const n=[ARROW_RIGHT_KEY,ARROW_DOWN_KEY].includes(e.key);i=getNextActiveElement(t,e.target,n,!0)}i&&(i.focus({preventScroll:!0}),Tab.getOrCreateInstance(i).show())}_getChildren(){return SelectorEngine.find(SELECTOR_INNER_ELEM,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const i of t)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=SelectorEngine.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains(CLASS_DROPDOWN))return;const n=(o,r)=>{const a=SelectorEngine.findOne(o,i);a&&a.classList.toggle(r,t)};n(SELECTOR_DROPDOWN_TOGGLE,CLASS_NAME_ACTIVE),n(SELECTOR_DROPDOWN_MENU,CLASS_NAME_SHOW$1),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(CLASS_NAME_ACTIVE)}_getInnerElement(e){return e.matches(SELECTOR_INNER_ELEM)?e:SelectorEngine.findOne(SELECTOR_INNER_ELEM,e)}_getOuterElement(e){return e.closest(SELECTOR_OUTER)||e}static jQueryInterface(e){return this.each(function(){const t=Tab.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),!isDisabled(this)&&Tab.getOrCreateInstance(this).show()});EventHandler.on(window,EVENT_LOAD_DATA_API,()=>{for(const s of SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE))Tab.getOrCreateInstance(s)});defineJQueryPlugin(Tab);const NAME="toast",DATA_KEY="bs.toast",EVENT_KEY=`.${DATA_KEY}`,EVENT_MOUSEOVER=`mouseover${EVENT_KEY}`,EVENT_MOUSEOUT=`mouseout${EVENT_KEY}`,EVENT_FOCUSIN=`focusin${EVENT_KEY}`,EVENT_FOCUSOUT=`focusout${EVENT_KEY}`,EVENT_HIDE=`hide${EVENT_KEY}`,EVENT_HIDDEN=`hidden${EVENT_KEY}`,EVENT_SHOW=`show${EVENT_KEY}`,EVENT_SHOWN=`shown${EVENT_KEY}`,CLASS_NAME_FADE="fade",CLASS_NAME_HIDE="hide",CLASS_NAME_SHOW="show",CLASS_NAME_SHOWING="showing",DefaultType={animation:"boolean",autohide:"boolean",delay:"number"},Default={animation:!0,autohide:!0,delay:5e3};class Toast extends BaseComponent{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Default}static get DefaultType(){return DefaultType}static get NAME(){return NAME}show(){if(EventHandler.trigger(this._element,EVENT_SHOW).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(CLASS_NAME_FADE);const t=()=>{this._element.classList.remove(CLASS_NAME_SHOWING),EventHandler.trigger(this._element,EVENT_SHOWN),this._maybeScheduleHide()};this._element.classList.remove(CLASS_NAME_HIDE),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW,CLASS_NAME_SHOWING),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||EventHandler.trigger(this._element,EVENT_HIDE).defaultPrevented)return;const t=()=>{this._element.classList.add(CLASS_NAME_HIDE),this._element.classList.remove(CLASS_NAME_SHOWING,CLASS_NAME_SHOW),EventHandler.trigger(this._element,EVENT_HIDDEN)};this._element.classList.add(CLASS_NAME_SHOWING),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(CLASS_NAME_SHOW),super.dispose()}isShown(){return this._element.classList.contains(CLASS_NAME_SHOW)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){EventHandler.on(this._element,EVENT_MOUSEOVER,e=>this._onInteraction(e,!0)),EventHandler.on(this._element,EVENT_MOUSEOUT,e=>this._onInteraction(e,!1)),EventHandler.on(this._element,EVENT_FOCUSIN,e=>this._onInteraction(e,!0)),EventHandler.on(this._element,EVENT_FOCUSOUT,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Toast.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}enableDismissTrigger(Toast);defineJQueryPlugin(Toast);function toDate(s){const e=Object.prototype.toString.call(s);return s instanceof Date||typeof s=="object"&&e==="[object Date]"?new s.constructor(+s):typeof s=="number"||e==="[object Number]"||typeof s=="string"||e==="[object String]"?new Date(s):new Date(NaN)}function constructFrom(s,e){return s instanceof Date?new s.constructor(e):new Date(e)}function addDays(s,e){const t=toDate(s);return isNaN(e)?constructFrom(s,NaN):(e&&t.setDate(t.getDate()+e),t)}function addMonths(s,e){const t=toDate(s);if(isNaN(e))return constructFrom(s,NaN);if(!e)return t;const i=t.getDate(),n=constructFrom(s,t.getTime());n.setMonth(t.getMonth()+e+1,0);const o=n.getDate();return i>=o?n:(t.setFullYear(n.getFullYear(),n.getMonth(),i),t)}function addMilliseconds(s,e){const t=+toDate(s);return constructFrom(s,t+e)}const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;function addHours(s,e){return addMilliseconds(s,e*millisecondsInHour)}let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(s,e){var a,l,d,h;const t=getDefaultOptions$1(),i=(e==null?void 0:e.weekStartsOn)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??t.weekStartsOn??((h=(d=t.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,n=toDate(s),o=n.getDay(),r=(o<i?7:0)+o-i;return n.setDate(n.getDate()-r),n.setHours(0,0,0,0),n}function startOfISOWeek(s){return startOfWeek(s,{weekStartsOn:1})}function getISOWeekYear(s){const e=toDate(s),t=e.getFullYear(),i=constructFrom(s,0);i.setFullYear(t+1,0,4),i.setHours(0,0,0,0);const n=startOfISOWeek(i),o=constructFrom(s,0);o.setFullYear(t,0,4),o.setHours(0,0,0,0);const r=startOfISOWeek(o);return e.getTime()>=n.getTime()?t+1:e.getTime()>=r.getTime()?t:t-1}function startOfDay(s){const e=toDate(s);return e.setHours(0,0,0,0),e}function getTimezoneOffsetInMilliseconds(s){const e=toDate(s),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+s-+t}function differenceInCalendarDays(s,e){const t=startOfDay(s),i=startOfDay(e),n=+t-getTimezoneOffsetInMilliseconds(t),o=+i-getTimezoneOffsetInMilliseconds(i);return Math.round((n-o)/millisecondsInDay)}function startOfISOWeekYear(s){const e=getISOWeekYear(s),t=constructFrom(s,0);return t.setFullYear(e,0,4),t.setHours(0,0,0,0),startOfISOWeek(t)}function addMinutes(s,e){return addMilliseconds(s,e*millisecondsInMinute)}function addQuarters(s,e){const t=e*3;return addMonths(s,t)}function addSeconds(s,e){return addMilliseconds(s,e*1e3)}function addWeeks(s,e){const t=e*7;return addDays(s,t)}function addYears(s,e){return addMonths(s,e*12)}function compareAsc(s,e){const t=toDate(s),i=toDate(e),n=t.getTime()-i.getTime();return n<0?-1:n>0?1:n}function isDate(s){return s instanceof Date||typeof s=="object"&&Object.prototype.toString.call(s)==="[object Date]"}function isValid(s){if(!isDate(s)&&typeof s!="number")return!1;const e=toDate(s);return!isNaN(Number(e))}function differenceInCalendarMonths(s,e){const t=toDate(s),i=toDate(e),n=t.getFullYear()-i.getFullYear(),o=t.getMonth()-i.getMonth();return n*12+o}function differenceInCalendarYears(s,e){const t=toDate(s),i=toDate(e);return t.getFullYear()-i.getFullYear()}function differenceInDays(s,e){const t=toDate(s),i=toDate(e),n=compareLocalAsc(t,i),o=Math.abs(differenceInCalendarDays(t,i));t.setDate(t.getDate()-n*o);const r=+(compareLocalAsc(t,i)===-n),a=n*(o-r);return a===0?0:a}function compareLocalAsc(s,e){const t=s.getFullYear()-e.getFullYear()||s.getMonth()-e.getMonth()||s.getDate()-e.getDate()||s.getHours()-e.getHours()||s.getMinutes()-e.getMinutes()||s.getSeconds()-e.getSeconds()||s.getMilliseconds()-e.getMilliseconds();return t<0?-1:t>0?1:t}function getRoundingMethod(s){return e=>{const i=(s?Math[s]:Math.trunc)(e);return i===0?0:i}}function differenceInMilliseconds(s,e){return+toDate(s)-+toDate(e)}function differenceInHours(s,e,t){const i=differenceInMilliseconds(s,e)/millisecondsInHour;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function differenceInMinutes(s,e,t){const i=differenceInMilliseconds(s,e)/millisecondsInMinute;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function endOfDay(s){const e=toDate(s);return e.setHours(23,59,59,999),e}function endOfMonth(s){const e=toDate(s),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(23,59,59,999),e}function isLastDayOfMonth(s){const e=toDate(s);return+endOfDay(e)==+endOfMonth(e)}function differenceInMonths(s,e){const t=toDate(s),i=toDate(e),n=compareAsc(t,i),o=Math.abs(differenceInCalendarMonths(t,i));let r;if(o<1)r=0;else{t.getMonth()===1&&t.getDate()>27&&t.setDate(30),t.setMonth(t.getMonth()-n*o);let a=compareAsc(t,i)===-n;isLastDayOfMonth(toDate(s))&&o===1&&compareAsc(s,i)===1&&(a=!1),r=n*(o-Number(a))}return r===0?0:r}function differenceInQuarters(s,e,t){const i=differenceInMonths(s,e)/3;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function differenceInSeconds(s,e,t){const i=differenceInMilliseconds(s,e)/1e3;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function differenceInWeeks(s,e,t){const i=differenceInDays(s,e)/7;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function differenceInYears(s,e){const t=toDate(s),i=toDate(e),n=compareAsc(t,i),o=Math.abs(differenceInCalendarYears(t,i));t.setFullYear(1584),i.setFullYear(1584);const r=compareAsc(t,i)===-n,a=n*(o-+r);return a===0?0:a}function startOfMinute(s){const e=toDate(s);return e.setSeconds(0,0),e}function startOfQuarter(s){const e=toDate(s),t=e.getMonth(),i=t-t%3;return e.setMonth(i,1),e.setHours(0,0,0,0),e}function startOfMonth(s){const e=toDate(s);return e.setDate(1),e.setHours(0,0,0,0),e}function endOfYear(s){const e=toDate(s),t=e.getFullYear();return e.setFullYear(t+1,0,0),e.setHours(23,59,59,999),e}function startOfYear(s){const e=toDate(s),t=constructFrom(s,0);return t.setFullYear(e.getFullYear(),0,1),t.setHours(0,0,0,0),t}function endOfHour(s){const e=toDate(s);return e.setMinutes(59,59,999),e}function endOfWeek(s,e){var a,l,d,h;const t=getDefaultOptions$1(),i=(e==null?void 0:e.weekStartsOn)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??t.weekStartsOn??((h=(d=t.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,n=toDate(s),o=n.getDay(),r=(o<i?-7:0)+6-(o-i);return n.setDate(n.getDate()+r),n.setHours(23,59,59,999),n}function endOfMinute(s){const e=toDate(s);return e.setSeconds(59,999),e}function endOfQuarter(s){const e=toDate(s),t=e.getMonth(),i=t-t%3+3;return e.setMonth(i,0),e.setHours(23,59,59,999),e}function endOfSecond(s){const e=toDate(s);return e.setMilliseconds(999),e}const formatDistanceLocale$t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$u=(s,e,t)=>{let i;const n=formatDistanceLocale$t[s];return typeof n=="string"?i=n:e===1?i=n.one:i=n.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+i:i+" ago":i};function buildFormatLongFn(s){return(e={})=>{const t=e.width?String(e.width):s.defaultWidth;return s.formats[t]||s.formats[s.defaultWidth]}}const dateFormats$v={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats$v={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats$v={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$v={date:buildFormatLongFn({formats:dateFormats$v,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$v,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$v,defaultWidth:"full"})},formatRelativeLocale$u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$u=(s,e,t,i)=>formatRelativeLocale$u[s];function buildLocalizeFn(s){return(e,t)=>{const i=t!=null&&t.context?String(t.context):"standalone";let n;if(i==="formatting"&&s.formattingValues){const r=s.defaultFormattingWidth||s.defaultWidth,a=t!=null&&t.width?String(t.width):r;n=s.formattingValues[a]||s.formattingValues[r]}else{const r=s.defaultWidth,a=t!=null&&t.width?String(t.width):s.defaultWidth;n=s.values[a]||s.values[r]}const o=s.argumentCallback?s.argumentCallback(e):e;return n[o]}}const eraValues$u={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues$u={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues$u={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues$u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues$u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues$l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber$u=(s,e)=>{const t=Number(s),i=t%100;if(i>20||i<10)switch(i%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},localize$u={ordinalNumber:ordinalNumber$u,era:buildLocalizeFn({values:eraValues$u,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$u,defaultWidth:"wide",argumentCallback:s=>s-1}),month:buildLocalizeFn({values:monthValues$u,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$u,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$u,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$l,defaultFormattingWidth:"wide"})};function buildMatchFn(s){return(e,t={})=>{const i=t.width,n=i&&s.matchPatterns[i]||s.matchPatterns[s.defaultMatchWidth],o=e.match(n);if(!o)return null;const r=o[0],a=i&&s.parsePatterns[i]||s.parsePatterns[s.defaultParseWidth],l=Array.isArray(a)?findIndex(a,p=>p.test(r)):findKey(a,p=>p.test(r));let d;d=s.valueCallback?s.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;const h=e.slice(r.length);return{value:d,rest:h}}}function findKey(s,e){for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&e(s[t]))return t}function findIndex(s,e){for(let t=0;t<s.length;t++)if(e(s[t]))return t}function buildMatchPatternFn(s){return(e,t={})=>{const i=e.match(s.matchPattern);if(!i)return null;const n=i[0],o=e.match(s.parsePattern);if(!o)return null;let r=s.valueCallback?s.valueCallback(o[0]):o[0];r=t.valueCallback?t.valueCallback(r):r;const a=e.slice(n.length);return{value:r,rest:a}}}const matchOrdinalNumberPattern$u=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern$u=/\d+/i,matchEraPatterns$u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns$u={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns$u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns$u={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$u={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns$u={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$u={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns$u={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns$u={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns$u={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match$u={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$u,parsePattern:parseOrdinalNumberPattern$u,valueCallback:s=>parseInt(s,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$u,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$u,defaultParseWidth:"any",valueCallback:s=>s+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$u,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$u,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$u,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$u,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance:formatDistance$u,formatLong:formatLong$v,formatRelative:formatRelative$u,localize:localize$u,match:match$u,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(s){const e=toDate(s);return differenceInCalendarDays(e,startOfYear(e))+1}function getISOWeek(s){const e=toDate(s),t=+startOfISOWeek(e)-+startOfISOWeekYear(e);return Math.round(t/millisecondsInWeek)+1}function getWeekYear(s,e){var h,p,m,v;const t=toDate(s),i=t.getFullYear(),n=getDefaultOptions$1(),o=(e==null?void 0:e.firstWeekContainsDate)??((p=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??n.firstWeekContainsDate??((v=(m=n.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??1,r=constructFrom(s,0);r.setFullYear(i+1,0,o),r.setHours(0,0,0,0);const a=startOfWeek(r,e),l=constructFrom(s,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);const d=startOfWeek(l,e);return t.getTime()>=a.getTime()?i+1:t.getTime()>=d.getTime()?i:i-1}function startOfWeekYear(s,e){var a,l,d,h;const t=getDefaultOptions$1(),i=(e==null?void 0:e.firstWeekContainsDate)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??t.firstWeekContainsDate??((h=(d=t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,n=getWeekYear(s,e),o=constructFrom(s,0);return o.setFullYear(n,0,i),o.setHours(0,0,0,0),startOfWeek(o,e)}function getWeek(s,e){const t=toDate(s),i=+startOfWeek(t,e)-+startOfWeekYear(t,e);return Math.round(i/millisecondsInWeek)+1}function addLeadingZeros(s,e){const t=s<0?"-":"",i=Math.abs(s).toString().padStart(e,"0");return t+i}const lightFormatters={y(s,e){const t=s.getFullYear(),i=t>0?t:1-t;return addLeadingZeros(e==="yy"?i%100:i,e.length)},M(s,e){const t=s.getMonth();return e==="M"?String(t+1):addLeadingZeros(t+1,2)},d(s,e){return addLeadingZeros(s.getDate(),e.length)},a(s,e){const t=s.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(s,e){return addLeadingZeros(s.getHours()%12||12,e.length)},H(s,e){return addLeadingZeros(s.getHours(),e.length)},m(s,e){return addLeadingZeros(s.getMinutes(),e.length)},s(s,e){return addLeadingZeros(s.getSeconds(),e.length)},S(s,e){const t=e.length,i=s.getMilliseconds(),n=Math.trunc(i*Math.pow(10,t-3));return addLeadingZeros(n,e.length)}},dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters$1={G:function(s,e,t){const i=s.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(i,{width:"abbreviated"});case"GGGGG":return t.era(i,{width:"narrow"});case"GGGG":default:return t.era(i,{width:"wide"})}},y:function(s,e,t){if(e==="yo"){const i=s.getFullYear(),n=i>0?i:1-i;return t.ordinalNumber(n,{unit:"year"})}return lightFormatters.y(s,e)},Y:function(s,e,t,i){const n=getWeekYear(s,i),o=n>0?n:1-n;if(e==="YY"){const r=o%100;return addLeadingZeros(r,2)}return e==="Yo"?t.ordinalNumber(o,{unit:"year"}):addLeadingZeros(o,e.length)},R:function(s,e){const t=getISOWeekYear(s);return addLeadingZeros(t,e.length)},u:function(s,e){const t=s.getFullYear();return addLeadingZeros(t,e.length)},Q:function(s,e,t){const i=Math.ceil((s.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return addLeadingZeros(i,2);case"Qo":return t.ordinalNumber(i,{unit:"quarter"});case"QQQ":return t.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(i,{width:"wide",context:"formatting"})}},q:function(s,e,t){const i=Math.ceil((s.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return addLeadingZeros(i,2);case"qo":return t.ordinalNumber(i,{unit:"quarter"});case"qqq":return t.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(i,{width:"wide",context:"standalone"})}},M:function(s,e,t){const i=s.getMonth();switch(e){case"M":case"MM":return lightFormatters.M(s,e);case"Mo":return t.ordinalNumber(i+1,{unit:"month"});case"MMM":return t.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(i,{width:"wide",context:"formatting"})}},L:function(s,e,t){const i=s.getMonth();switch(e){case"L":return String(i+1);case"LL":return addLeadingZeros(i+1,2);case"Lo":return t.ordinalNumber(i+1,{unit:"month"});case"LLL":return t.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(i,{width:"wide",context:"standalone"})}},w:function(s,e,t,i){const n=getWeek(s,i);return e==="wo"?t.ordinalNumber(n,{unit:"week"}):addLeadingZeros(n,e.length)},I:function(s,e,t){const i=getISOWeek(s);return e==="Io"?t.ordinalNumber(i,{unit:"week"}):addLeadingZeros(i,e.length)},d:function(s,e,t){return e==="do"?t.ordinalNumber(s.getDate(),{unit:"date"}):lightFormatters.d(s,e)},D:function(s,e,t){const i=getDayOfYear(s);return e==="Do"?t.ordinalNumber(i,{unit:"dayOfYear"}):addLeadingZeros(i,e.length)},E:function(s,e,t){const i=s.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(i,{width:"short",context:"formatting"});case"EEEE":default:return t.day(i,{width:"wide",context:"formatting"})}},e:function(s,e,t,i){const n=s.getDay(),o=(n-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return addLeadingZeros(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(n,{width:"short",context:"formatting"});case"eeee":default:return t.day(n,{width:"wide",context:"formatting"})}},c:function(s,e,t,i){const n=s.getDay(),o=(n-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return addLeadingZeros(o,e.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(n,{width:"narrow",context:"standalone"});case"cccccc":return t.day(n,{width:"short",context:"standalone"});case"cccc":default:return t.day(n,{width:"wide",context:"standalone"})}},i:function(s,e,t){const i=s.getDay(),n=i===0?7:i;switch(e){case"i":return String(n);case"ii":return addLeadingZeros(n,e.length);case"io":return t.ordinalNumber(n,{unit:"day"});case"iii":return t.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(i,{width:"short",context:"formatting"});case"iiii":default:return t.day(i,{width:"wide",context:"formatting"})}},a:function(s,e,t){const n=s.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(s,e,t){const i=s.getHours();let n;switch(i===12?n=dayPeriodEnum.noon:i===0?n=dayPeriodEnum.midnight:n=i/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(s,e,t){const i=s.getHours();let n;switch(i>=17?n=dayPeriodEnum.evening:i>=12?n=dayPeriodEnum.afternoon:i>=4?n=dayPeriodEnum.morning:n=dayPeriodEnum.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(s,e,t){if(e==="ho"){let i=s.getHours()%12;return i===0&&(i=12),t.ordinalNumber(i,{unit:"hour"})}return lightFormatters.h(s,e)},H:function(s,e,t){return e==="Ho"?t.ordinalNumber(s.getHours(),{unit:"hour"}):lightFormatters.H(s,e)},K:function(s,e,t){const i=s.getHours()%12;return e==="Ko"?t.ordinalNumber(i,{unit:"hour"}):addLeadingZeros(i,e.length)},k:function(s,e,t){let i=s.getHours();return i===0&&(i=24),e==="ko"?t.ordinalNumber(i,{unit:"hour"}):addLeadingZeros(i,e.length)},m:function(s,e,t){return e==="mo"?t.ordinalNumber(s.getMinutes(),{unit:"minute"}):lightFormatters.m(s,e)},s:function(s,e,t){return e==="so"?t.ordinalNumber(s.getSeconds(),{unit:"second"}):lightFormatters.s(s,e)},S:function(s,e){return lightFormatters.S(s,e)},X:function(s,e,t){const i=s.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return formatTimezoneWithOptionalMinutes(i);case"XXXX":case"XX":return formatTimezone(i);case"XXXXX":case"XXX":default:return formatTimezone(i,":")}},x:function(s,e,t){const i=s.getTimezoneOffset();switch(e){case"x":return formatTimezoneWithOptionalMinutes(i);case"xxxx":case"xx":return formatTimezone(i);case"xxxxx":case"xxx":default:return formatTimezone(i,":")}},O:function(s,e,t){const i=s.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(i,":");case"OOOO":default:return"GMT"+formatTimezone(i,":")}},z:function(s,e,t){const i=s.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(i,":");case"zzzz":default:return"GMT"+formatTimezone(i,":")}},t:function(s,e,t){const i=Math.trunc(s.getTime()/1e3);return addLeadingZeros(i,e.length)},T:function(s,e,t){const i=s.getTime();return addLeadingZeros(i,e.length)}};function formatTimezoneShort(s,e=""){const t=s>0?"-":"+",i=Math.abs(s),n=Math.trunc(i/60),o=i%60;return o===0?t+String(n):t+String(n)+e+addLeadingZeros(o,2)}function formatTimezoneWithOptionalMinutes(s,e){return s%60===0?(s>0?"-":"+")+addLeadingZeros(Math.abs(s)/60,2):formatTimezone(s,e)}function formatTimezone(s,e=""){const t=s>0?"-":"+",i=Math.abs(s),n=addLeadingZeros(Math.trunc(i/60),2),o=addLeadingZeros(i%60,2);return t+n+e+o}const dateLongFormatter=(s,e)=>{switch(s){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},timeLongFormatter=(s,e)=>{switch(s){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},dateTimeLongFormatter=(s,e)=>{const t=s.match(/(P+)(p+)?/)||[],i=t[1],n=t[2];if(!n)return dateLongFormatter(s,e);let o;switch(i){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",dateLongFormatter(i,e)).replace("{{time}}",timeLongFormatter(n,e))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(s){return dayOfYearTokenRE.test(s)}function isProtectedWeekYearToken(s){return weekYearTokenRE.test(s)}function warnOrThrowProtectedError(s,e,t){const i=message(s,e,t);if(console.warn(i),throwTokens.includes(s))throw new RangeError(i)}function message(s,e,t){const i=s[0]==="Y"?"years":"days of the month";return`Use \`${s.toLowerCase()}\` instead of \`${s}\` (in \`${e}\`) for formatting ${i} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(s,e,t){var h,p,m,v,y,b,S,E;const i=getDefaultOptions$1(),n=(t==null?void 0:t.locale)??i.locale??enUS,o=(t==null?void 0:t.firstWeekContainsDate)??((p=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(m=i.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??1,r=(t==null?void 0:t.weekStartsOn)??((b=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??i.weekStartsOn??((E=(S=i.locale)==null?void 0:S.options)==null?void 0:E.weekStartsOn)??0,a=toDate(s);if(!isValid(a))throw new RangeError("Invalid time value");let l=e.match(longFormattingTokensRegExp$1).map(T=>{const R=T[0];if(R==="p"||R==="P"){const A=longFormatters[R];return A(T,n.formatLong)}return T}).join("").match(formattingTokensRegExp$1).map(T=>{if(T==="''")return{isToken:!1,value:"'"};const R=T[0];if(R==="'")return{isToken:!1,value:cleanEscapedString$1(T)};if(formatters$1[R])return{isToken:!0,value:T};if(R.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:T}});n.localize.preprocessor&&(l=n.localize.preprocessor(a,l));const d={firstWeekContainsDate:o,weekStartsOn:r,locale:n};return l.map(T=>{if(!T.isToken)return T.value;const R=T.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(R)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(R))&&warnOrThrowProtectedError(R,e,String(s));const A=formatters$1[R[0]];return A(a,R,n.localize,d)}).join("")}function cleanEscapedString$1(s){const e=s.match(escapedStringRegExp$1);return e?e[1].replace(doubleQuoteRegExp$1,"'"):s}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getISODay(s){let t=toDate(s).getDay();return t===0&&(t=7),t}function transpose(s,e){const t=e instanceof Date?constructFrom(e,0):new e(0);return t.setFullYear(s.getFullYear(),s.getMonth(),s.getDate()),t.setHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),t}const TIMEZONE_UNIT_PRIORITY=10;class Setter{constructor(){G(this,"subPriority",0)}validate(e,t){return!0}}class ValueSetter extends Setter{constructor(e,t,i,n,o){super(),this.value=e,this.validateValue=t,this.setValue=i,this.priority=n,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,i){return this.setValue(e,t,this.value,i)}}class DateToSystemTimezoneSetter extends Setter{constructor(){super(...arguments);G(this,"priority",TIMEZONE_UNIT_PRIORITY);G(this,"subPriority",-1)}set(t,i){return i.timestampIsSet?t:constructFrom(t,transpose(t,Date))}}class Parser{run(e,t,i,n){const o=this.parse(e,t,i,n);return o?{setter:new ValueSetter(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,i){return!0}}class EraParser extends Parser{constructor(){super(...arguments);G(this,"priority",140);G(this,"incompatibleTokens",["R","u","t","T"])}parse(t,i,n){switch(i){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,i,n){return i.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}}const numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(s,e){return s&&{value:e(s.value),rest:s.rest}}function parseNumericPattern(s,e){const t=e.match(s);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function parseTimezonePattern(s,e){const t=e.match(s);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const i=t[1]==="+"?1:-1,n=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,r=t[5]?parseInt(t[5],10):0;return{value:i*(n*millisecondsInHour+o*millisecondsInMinute+r*millisecondsInSecond),rest:e.slice(t[0].length)}}function parseAnyDigitsSigned(s){return parseNumericPattern(numericPatterns.anyDigitsSigned,s)}function parseNDigits(s,e){switch(s){case 1:return parseNumericPattern(numericPatterns.singleDigit,e);case 2:return parseNumericPattern(numericPatterns.twoDigits,e);case 3:return parseNumericPattern(numericPatterns.threeDigits,e);case 4:return parseNumericPattern(numericPatterns.fourDigits,e);default:return parseNumericPattern(new RegExp("^\\d{1,"+s+"}"),e)}}function parseNDigitsSigned(s,e){switch(s){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,e);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,e);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,e);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,e);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+s+"}"),e)}}function dayPeriodEnumToHours(s){switch(s){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(s,e){const t=e>0,i=t?e:1-e;let n;if(i<=50)n=s||100;else{const o=i+50,r=Math.trunc(o/100)*100,a=s>=o%100;n=s+r-(a?100:0)}return t?n:1-n}function isLeapYearIndex$1(s){return s%400===0||s%4===0&&s%100!==0}class YearParser extends Parser{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,i,n){const o=r=>({year:r,isTwoDigitYear:i==="yy"});switch(i){case"y":return mapValue(parseNDigits(4,t),o);case"yo":return mapValue(n.ordinalNumber(t,{unit:"year"}),o);default:return mapValue(parseNDigits(i.length,t),o)}}validate(t,i){return i.isTwoDigitYear||i.year>0}set(t,i,n){const o=t.getFullYear();if(n.isTwoDigitYear){const a=normalizeTwoDigitYear(n.year,o);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}const r=!("era"in i)||i.era===1?n.year:1-n.year;return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}class LocalWeekYearParser extends Parser{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,i,n){const o=r=>({year:r,isTwoDigitYear:i==="YY"});switch(i){case"Y":return mapValue(parseNDigits(4,t),o);case"Yo":return mapValue(n.ordinalNumber(t,{unit:"year"}),o);default:return mapValue(parseNDigits(i.length,t),o)}}validate(t,i){return i.isTwoDigitYear||i.year>0}set(t,i,n,o){const r=getWeekYear(t,o);if(n.isTwoDigitYear){const l=normalizeTwoDigitYear(n.year,r);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),startOfWeek(t,o)}const a=!("era"in i)||i.era===1?n.year:1-n.year;return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),startOfWeek(t,o)}}class ISOWeekYearParser extends Parser{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,i){return parseNDigitsSigned(i==="R"?4:i.length,t)}set(t,i,n){const o=constructFrom(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),startOfISOWeek(o)}}class ExtendedYearParser extends Parser{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,i){return parseNDigitsSigned(i==="u"?4:i.length,t)}set(t,i,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}}class QuarterParser extends Parser{constructor(){super(...arguments);G(this,"priority",120);G(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,i,n){switch(i){case"Q":case"QQ":return parseNDigits(i.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=1&&i<=4}set(t,i,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}}class StandAloneQuarterParser extends Parser{constructor(){super(...arguments);G(this,"priority",120);G(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,i,n){switch(i){case"q":case"qq":return parseNDigits(i.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=1&&i<=4}set(t,i,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}}class MonthParser extends Parser{constructor(){super(...arguments);G(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);G(this,"priority",110)}parse(t,i,n){const o=r=>r-1;switch(i){case"M":return mapValue(parseNumericPattern(numericPatterns.month,t),o);case"MM":return mapValue(parseNDigits(2,t),o);case"Mo":return mapValue(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=11}set(t,i,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}}class StandAloneMonthParser extends Parser{constructor(){super(...arguments);G(this,"priority",110);G(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,i,n){const o=r=>r-1;switch(i){case"L":return mapValue(parseNumericPattern(numericPatterns.month,t),o);case"LL":return mapValue(parseNDigits(2,t),o);case"Lo":return mapValue(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=0&&i<=11}set(t,i,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}}function setWeek(s,e,t){const i=toDate(s),n=getWeek(i,t)-e;return i.setDate(i.getDate()-n*7),i}class LocalWeekParser extends Parser{constructor(){super(...arguments);G(this,"priority",100);G(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,i,n){switch(i){case"w":return parseNumericPattern(numericPatterns.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=1&&i<=53}set(t,i,n,o){return startOfWeek(setWeek(t,n,o),o)}}function setISOWeek(s,e){const t=toDate(s),i=getISOWeek(t)-e;return t.setDate(t.getDate()-i*7),t}class ISOWeekParser extends Parser{constructor(){super(...arguments);G(this,"priority",100);G(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,i,n){switch(i){case"I":return parseNumericPattern(numericPatterns.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=1&&i<=53}set(t,i,n){return startOfISOWeek(setISOWeek(t,n))}}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];class DateParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"subPriority",1);G(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,i,n){switch(i){case"d":return parseNumericPattern(numericPatterns.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return parseNDigits(i.length,t)}}validate(t,i){const n=t.getFullYear(),o=isLeapYearIndex$1(n),r=t.getMonth();return o?i>=1&&i<=DAYS_IN_MONTH_LEAP_YEAR[r]:i>=1&&i<=DAYS_IN_MONTH[r]}set(t,i,n){return t.setDate(n),t.setHours(0,0,0,0),t}}class DayOfYearParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"subpriority",1);G(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,i,n){switch(i){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return parseNDigits(i.length,t)}}validate(t,i){const n=t.getFullYear();return isLeapYearIndex$1(n)?i>=1&&i<=366:i>=1&&i<=365}set(t,i,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}}function setDay(s,e,t){var p,m,v,y;const i=getDefaultOptions$1(),n=(t==null?void 0:t.weekStartsOn)??((m=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??i.weekStartsOn??((y=(v=i.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,o=toDate(s),r=o.getDay(),l=(e%7+7)%7,d=7-n,h=e<0||e>6?e-(r+d)%7:(l+d)%7-(r+d)%7;return addDays(o,h)}class DayParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,i,n){switch(i){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=6}set(t,i,n,o){return t=setDay(t,n,o),t.setHours(0,0,0,0),t}}class LocalDayParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,i,n,o){const r=a=>{const l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l};switch(i){case"e":case"ee":return mapValue(parseNDigits(i.length,t),r);case"eo":return mapValue(n.ordinalNumber(t,{unit:"day"}),r);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=6}set(t,i,n,o){return t=setDay(t,n,o),t.setHours(0,0,0,0),t}}class StandAloneLocalDayParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,i,n,o){const r=a=>{const l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l};switch(i){case"c":case"cc":return mapValue(parseNDigits(i.length,t),r);case"co":return mapValue(n.ordinalNumber(t,{unit:"day"}),r);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=0&&i<=6}set(t,i,n,o){return t=setDay(t,n,o),t.setHours(0,0,0,0),t}}function setISODay(s,e){const t=toDate(s),i=getISODay(t),n=e-i;return addDays(t,n)}class ISODayParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,i,n){const o=r=>r===0?7:r;switch(i){case"i":case"ii":return parseNDigits(i.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return mapValue(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return mapValue(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return mapValue(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return mapValue(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,i){return i>=1&&i<=7}set(t,i,n){return t=setISODay(t,n),t.setHours(0,0,0,0),t}}class AMPMParser extends Parser{constructor(){super(...arguments);G(this,"priority",80);G(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,i,n){switch(i){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,n){return t.setHours(dayPeriodEnumToHours(n),0,0,0),t}}class AMPMMidnightParser extends Parser{constructor(){super(...arguments);G(this,"priority",80);G(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,i,n){switch(i){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,n){return t.setHours(dayPeriodEnumToHours(n),0,0,0),t}}class DayPeriodParser extends Parser{constructor(){super(...arguments);G(this,"priority",80);G(this,"incompatibleTokens",["a","b","t","T"])}parse(t,i,n){switch(i){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,n){return t.setHours(dayPeriodEnumToHours(n),0,0,0),t}}class Hour1to12Parser extends Parser{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,i,n){switch(i){case"h":return parseNumericPattern(numericPatterns.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=1&&i<=12}set(t,i,n){const o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}}class Hour0to23Parser extends Parser{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,i,n){switch(i){case"H":return parseNumericPattern(numericPatterns.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=0&&i<=23}set(t,i,n){return t.setHours(n,0,0,0),t}}class Hour0To11Parser extends Parser{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,i,n){switch(i){case"K":return parseNumericPattern(numericPatterns.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=0&&i<=11}set(t,i,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}}class Hour1To24Parser extends Parser{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,i,n){switch(i){case"k":return parseNumericPattern(numericPatterns.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=1&&i<=24}set(t,i,n){const o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}}class MinuteParser extends Parser{constructor(){super(...arguments);G(this,"priority",60);G(this,"incompatibleTokens",["t","T"])}parse(t,i,n){switch(i){case"m":return parseNumericPattern(numericPatterns.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=0&&i<=59}set(t,i,n){return t.setMinutes(n,0,0),t}}class SecondParser extends Parser{constructor(){super(...arguments);G(this,"priority",50);G(this,"incompatibleTokens",["t","T"])}parse(t,i,n){switch(i){case"s":return parseNumericPattern(numericPatterns.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=0&&i<=59}set(t,i,n){return t.setSeconds(n,0),t}}class FractionOfSecondParser extends Parser{constructor(){super(...arguments);G(this,"priority",30);G(this,"incompatibleTokens",["t","T"])}parse(t,i){const n=o=>Math.trunc(o*Math.pow(10,-i.length+3));return mapValue(parseNDigits(i.length,t),n)}set(t,i,n){return t.setMilliseconds(n),t}}class ISOTimezoneWithZParser extends Parser{constructor(){super(...arguments);G(this,"priority",10);G(this,"incompatibleTokens",["t","T","x"])}parse(t,i){switch(i){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,t);case"XX":return parseTimezonePattern(timezonePatterns.basic,t);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,t);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,t);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,t)}}set(t,i,n){return i.timestampIsSet?t:constructFrom(t,t.getTime()-getTimezoneOffsetInMilliseconds(t)-n)}}class ISOTimezoneParser extends Parser{constructor(){super(...arguments);G(this,"priority",10);G(this,"incompatibleTokens",["t","T","X"])}parse(t,i){switch(i){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,t);case"xx":return parseTimezonePattern(timezonePatterns.basic,t);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,t);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,t);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,t)}}set(t,i,n){return i.timestampIsSet?t:constructFrom(t,t.getTime()-getTimezoneOffsetInMilliseconds(t)-n)}}class TimestampSecondsParser extends Parser{constructor(){super(...arguments);G(this,"priority",40);G(this,"incompatibleTokens","*")}parse(t){return parseAnyDigitsSigned(t)}set(t,i,n){return[constructFrom(t,n*1e3),{timestampIsSet:!0}]}}class TimestampMillisecondsParser extends Parser{constructor(){super(...arguments);G(this,"priority",20);G(this,"incompatibleTokens","*")}parse(t){return parseAnyDigitsSigned(t)}set(t,i,n){return[constructFrom(t,n),{timestampIsSet:!0}]}}const parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse$1(s,e,t,i){var b,S,E,T,R,A,D,x;const n=getDefaultOptions(),o=(i==null?void 0:i.locale)??n.locale??enUS,r=(i==null?void 0:i.firstWeekContainsDate)??((S=(b=i==null?void 0:i.locale)==null?void 0:b.options)==null?void 0:S.firstWeekContainsDate)??n.firstWeekContainsDate??((T=(E=n.locale)==null?void 0:E.options)==null?void 0:T.firstWeekContainsDate)??1,a=(i==null?void 0:i.weekStartsOn)??((A=(R=i==null?void 0:i.locale)==null?void 0:R.options)==null?void 0:A.weekStartsOn)??n.weekStartsOn??((x=(D=n.locale)==null?void 0:D.options)==null?void 0:x.weekStartsOn)??0;if(e==="")return s===""?toDate(t):constructFrom(t,NaN);const l={firstWeekContainsDate:r,weekStartsOn:a,locale:o},d=[new DateToSystemTimezoneSetter],h=e.match(longFormattingTokensRegExp).map(M=>{const I=M[0];if(I in longFormatters){const V=longFormatters[I];return V(M,o.formatLong)}return M}).join("").match(formattingTokensRegExp),p=[];for(let M of h){!(i!=null&&i.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(M)&&warnOrThrowProtectedError(M,e,s),!(i!=null&&i.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(M)&&warnOrThrowProtectedError(M,e,s);const I=M[0],V=parsers[I];if(V){const{incompatibleTokens:U}=V;if(Array.isArray(U)){const Y=p.find(ne=>U.includes(ne.token)||ne.token===I);if(Y)throw new RangeError(`The format string mustn't contain \`${Y.fullToken}\` and \`${M}\` at the same time`)}else if(V.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${M}\` and any other token at the same time`);p.push({token:I,fullToken:M});const B=V.run(s,M,o.match,l);if(!B)return constructFrom(t,NaN);d.push(B.setter),s=B.rest}else{if(I.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(M==="''"?M="'":I==="'"&&(M=cleanEscapedString(M)),s.indexOf(M)===0)s=s.slice(M.length);else return constructFrom(t,NaN)}}if(s.length>0&&notWhitespaceRegExp.test(s))return constructFrom(t,NaN);const m=d.map(M=>M.priority).sort((M,I)=>I-M).filter((M,I,V)=>V.indexOf(M)===I).map(M=>d.filter(I=>I.priority===M).sort((I,V)=>V.subPriority-I.subPriority)).map(M=>M[0]);let v=toDate(t);if(isNaN(v.getTime()))return constructFrom(t,NaN);const y={};for(const M of m){if(!M.validate(v,l))return constructFrom(t,NaN);const I=M.set(v,y,l);Array.isArray(I)?(v=I[0],Object.assign(y,I[1])):v=I}return constructFrom(t,v)}function cleanEscapedString(s){return s.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function startOfHour(s){const e=toDate(s);return e.setMinutes(0,0,0),e}function isSameWeek(s,e,t){const i=startOfWeek(s,t),n=startOfWeek(e,t);return+i==+n}function startOfSecond(s){const e=toDate(s);return e.setMilliseconds(0),e}function subDays(s,e){return addDays(s,-e)}function parseISO(s,e){const t=(e==null?void 0:e.additionalDigits)??2,i=splitDateString(s);let n;if(i.date){const l=parseYear(i.date,t);n=parseDate(l.restDateString,l.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);const o=n.getTime();let r=0,a;if(i.time&&(r=parseTime(i.time),isNaN(r)))return new Date(NaN);if(i.timezone){if(a=parseTimezone(i.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(o+r),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return new Date(o+r+a)}const patterns={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dateRegex=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,timeRegex=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,timezoneRegex=/^([+-])(\d{2})(?::?(\d{2}))?$/;function splitDateString(s){const e={},t=s.split(patterns.dateTimeDelimiter);let i;if(t.length>2)return e;if(/:/.test(t[0])?i=t[0]:(e.date=t[0],i=t[1],patterns.timeZoneDelimiter.test(e.date)&&(e.date=s.split(patterns.timeZoneDelimiter)[0],i=s.substr(e.date.length,s.length))),i){const n=patterns.timezone.exec(i);n?(e.time=i.replace(n[1],""),e.timezone=n[1]):e.time=i}return e}function parseYear(s,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=s.match(t);if(!i)return{year:NaN,restDateString:""};const n=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?n:o*100,restDateString:s.slice((i[1]||i[2]).length)}}function parseDate(s,e){if(e===null)return new Date(NaN);const t=s.match(dateRegex);if(!t)return new Date(NaN);const i=!!t[4],n=parseDateUnit(t[1]),o=parseDateUnit(t[2])-1,r=parseDateUnit(t[3]),a=parseDateUnit(t[4]),l=parseDateUnit(t[5])-1;if(i)return validateWeekDate(e,a,l)?dayOfISOWeekYear(e,a,l):new Date(NaN);{const d=new Date(0);return!validateDate(e,o,r)||!validateDayOfYearDate(e,n)?new Date(NaN):(d.setUTCFullYear(e,o,Math.max(n,r)),d)}}function parseDateUnit(s){return s?parseInt(s):1}function parseTime(s){const e=s.match(timeRegex);if(!e)return NaN;const t=parseTimeUnit(e[1]),i=parseTimeUnit(e[2]),n=parseTimeUnit(e[3]);return validateTime(t,i,n)?t*millisecondsInHour+i*millisecondsInMinute+n*1e3:NaN}function parseTimeUnit(s){return s&&parseFloat(s.replace(",","."))||0}function parseTimezone(s){if(s==="Z")return 0;const e=s.match(timezoneRegex);if(!e)return 0;const t=e[1]==="+"?-1:1,i=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return validateTimezone(i,n)?t*(i*millisecondsInHour+n*millisecondsInMinute):NaN}function dayOfISOWeekYear(s,e,t){const i=new Date(0);i.setUTCFullYear(s,0,4);const n=i.getUTCDay()||7,o=(e-1)*7+t+1-n;return i.setUTCDate(i.getUTCDate()+o),i}const daysInMonths=[31,null,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(s){return s%400===0||s%4===0&&s%100!==0}function validateDate(s,e,t){return e>=0&&e<=11&&t>=1&&t<=(daysInMonths[e]||(isLeapYearIndex(s)?29:28))}function validateDayOfYearDate(s,e){return e>=1&&e<=(isLeapYearIndex(s)?366:365)}function validateWeekDate(s,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function validateTime(s,e,t){return s===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&s>=0&&s<25}function validateTimezone(s,e){return e>=0&&e<=59}function subMonths(s,e){return addMonths(s,-e)}const consoleLogger={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,e){console&&console[s]&&console[s].apply(console,e)}};let Logger$1=class Oi{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||consoleLogger,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,n){return n&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Oi(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Oi(this.logger,e)}};var baseLogger=new Logger$1;class EventEmitter{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const n=this.observers[i].get(t)||0;this.observers[i].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(r=>{let[a,l]=r;for(let d=0;d<l;d++)a(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(r=>{let[a,l]=r;for(let d=0;d<l;d++)a.apply(a,[e,...i])})}}function defer(){let s,e;const t=new Promise((i,n)=>{s=i,e=n});return t.resolve=s,t.reject=e,t}function makeString(s){return s==null?"":""+s}function copy(s,e,t){s.forEach(i=>{e[i]&&(t[i]=e[i])})}const lastOfPathSeparatorRegExp=/###/g;function getLastOfPath(s,e,t){function i(a){return a&&a.indexOf("###")>-1?a.replace(lastOfPathSeparatorRegExp,"."):a}function n(){return!s||typeof s=="string"}const o=typeof e!="string"?e:e.split(".");let r=0;for(;r<o.length-1;){if(n())return{};const a=i(o[r]);!s[a]&&t&&(s[a]=new t),Object.prototype.hasOwnProperty.call(s,a)?s=s[a]:s={},++r}return n()?{}:{obj:s,k:i(o[r])}}function setPath(s,e,t){const{obj:i,k:n}=getLastOfPath(s,e,Object);if(i!==void 0||e.length===1){i[n]=t;return}let o=e[e.length-1],r=e.slice(0,e.length-1),a=getLastOfPath(s,r,Object);for(;a.obj===void 0&&r.length;)o=`${r[r.length-1]}.${o}`,r=r.slice(0,r.length-1),a=getLastOfPath(s,r,Object),a&&a.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=t}function pushPath(s,e,t,i){const{obj:n,k:o}=getLastOfPath(s,e,Object);n[o]=n[o]||[],i&&(n[o]=n[o].concat(t)),i||n[o].push(t)}function getPath(s,e){const{obj:t,k:i}=getLastOfPath(s,e);if(t)return t[i]}function getPathWithDefaults(s,e,t){const i=getPath(s,t);return i!==void 0?i:getPath(e,t)}function deepExtend(s,e,t){for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in s?typeof s[i]=="string"||s[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?t&&(s[i]=e[i]):deepExtend(s[i],e[i],t):s[i]=e[i]);return s}function regexEscape(s){return s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function escape$1(s){return typeof s=="string"?s.replace(/[&<>"'\/]/g,e=>_entityMap[e]):s}class RegExpCache{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const chars=[" ",",","?","!",";"],looksLikeObjectPathRegExpCache=new RegExpCache(20);function looksLikeObjectPath(s,e,t){e=e||"",t=t||"";const i=chars.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(i.length===0)return!0;const n=looksLikeObjectPathRegExpCache.getRegExp(`(${i.map(r=>r==="?"?"\\?":r).join("|")})`);let o=!n.test(s);if(!o){const r=s.indexOf(t);r>0&&!n.test(s.substring(0,r))&&(o=!0)}return o}function deepFind(s,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!s)return;if(s[e])return s[e];const i=e.split(t);let n=s;for(let o=0;o<i.length;){if(!n||typeof n!="object")return;let r,a="";for(let l=o;l<i.length;++l)if(l!==o&&(a+=t),a+=i[l],r=n[a],r!==void 0){if(["string","number","boolean"].indexOf(typeof r)>-1&&l<i.length-1)continue;o+=l-o+1;break}n=r}return n}function getCleanedCode(s){return s&&s.indexOf("_")>0?s.replace("_","-"):s}class ResourceStore extends EventEmitter{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,r=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],i&&(Array.isArray(i)?a.push(...i):typeof i=="string"&&o?a.push(...i.split(o)):a.push(i)));const l=getPath(this.data,a);return!l&&!t&&!i&&e.indexOf(".")>-1&&(e=a[0],t=a[1],i=a.slice(2).join(".")),l||!r||typeof i!="string"?l:deepFind(this.data&&this.data[e]&&this.data[e][t],i,o)}addResource(e,t,i,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[e,t];i&&(a=a.concat(r?i.split(r):i)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),setPath(this.data,a,n),o.silent||this.emit("added",e,t,i,n)}addResources(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in i)(typeof i[o]=="string"||Object.prototype.toString.apply(i[o])==="[object Array]")&&this.addResource(e,t,o,i[o],{silent:!0});n.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,n,o){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=i,i=t,t=a[1]),this.addNamespaces(t);let l=getPath(this.data,a)||{};r.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?deepExtend(l,i,o):l={...l,...i},setPath(this.data,a,l),r.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,e,t,i,n){return s.forEach(o=>{this.processors[o]&&(e=this.processors[o].process(e,t,i,n))}),e}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,t);return i&&i.res!==void 0}extractFromKey(e,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const r=i&&e.indexOf(i)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!looksLikeObjectPath(e,i,n);if(r&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};const d=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(d[0])>-1)&&(o=d.shift()),e=d.join(n)}return typeof o=="string"&&(o=[o]),{key:e,namespaces:o}}translate(e,t,i){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,o=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],d=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(h){const A=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${A}${r}`,usedKey:r,exactUsedKey:r,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${A}${r}`}return n?{res:r,usedKey:r,exactUsedKey:r,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:r}const p=this.resolve(e,t);let m=p&&p.res;const v=p&&p.usedKey||r,y=p&&p.exactUsedKey||r,b=Object.prototype.toString.apply(m),S=["[object Number]","[object Function]","[object RegExp]"],E=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject;if(T&&m&&(typeof m!="string"&&typeof m!="boolean"&&typeof m!="number")&&S.indexOf(b)<0&&!(typeof E=="string"&&b==="[object Array]")){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,{...t,ns:a}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(p.res=A,p.usedParams=this.getUsedParamsDetails(t),p):A}if(o){const A=b==="[object Array]",D=A?[]:{},x=A?y:v;for(const M in m)if(Object.prototype.hasOwnProperty.call(m,M)){const I=`${x}${o}${M}`;D[M]=this.translate(I,{...t,joinArrays:!1,ns:a}),D[M]===I&&(D[M]=m[M])}m=D}}else if(T&&typeof E=="string"&&b==="[object Array]")m=m.join(E),m&&(m=this.extendTranslation(m,e,t,i));else{let A=!1,D=!1;const x=t.count!==void 0&&typeof t.count!="string",M=Translator.hasDefaultValue(t),I=x?this.pluralResolver.getSuffix(d,t.count,t):"",V=t.ordinal&&x?this.pluralResolver.getSuffix(d,t.count,{ordinal:!1}):"",U=x&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),B=U&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${I}`]||t[`defaultValue${V}`]||t.defaultValue;!this.isValidLookup(m)&&M&&(A=!0,m=B),this.isValidLookup(m)||(D=!0,m=r);const ne=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&D?void 0:m,ee=M&&B!==m&&this.options.updateMissing;if(D||A||ee){if(this.logger.log(ee?"updateKey":"missingKey",d,l,r,ee?B:m),o){const W=this.resolve(r,{...t,keySeparator:!1});W&&W.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const $=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let W=0;W<$.length;W++)F.push($[W]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(t.lng||this.language):F.push(t.lng||this.language);const q=(W,J,K)=>{const ue=M&&K!==m?K:ne;this.options.missingKeyHandler?this.options.missingKeyHandler(W,l,J,ue,ee,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(W,l,J,ue,ee,t),this.emit("missingKey",W,l,J,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?F.forEach(W=>{const J=this.pluralResolver.getSuffixes(W,t);U&&t[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach(K=>{q([W],r+K,t[`defaultValue${K}`]||B)})}):q(F,r,B))}m=this.extendTranslation(m,e,t,p,i),D&&m===r&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${r}`),(D||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${r}`:r,A?m:void 0):m=this.options.parseMissingKeyHandler(m))}return n?(p.res=m,p.usedParams=this.getUsedParamsDetails(t),p):m}extendTranslation(e,t,i,n,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const d=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(d){const m=e.match(this.interpolator.nestingRegexp);h=m&&m.length}let p=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,i.lng||this.language,i),d){const m=e.match(this.interpolator.nestingRegexp),v=m&&m.length;h<v&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&n&&n.res&&(i.lng=n.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];return o&&o[0]===v[0]&&!i.context?(r.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`),null):r.translate(...v,t)},i)),i.interpolation&&this.interpolator.reset()}const a=i.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return e!=null&&l&&l.length&&i.applyPostProcessor!==!1&&(e=postProcessor.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,n,o,r,a;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(i))return;const d=this.extractFromKey(l,t),h=d.key;n=h;let p=d.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const m=t.count!==void 0&&typeof t.count!="string",v=m&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),y=t.context!==void 0&&(typeof t.context=="string"||typeof t.context=="number")&&t.context!=="",b=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);p.forEach(S=>{this.isValidLookup(i)||(a=S,!checkedLoadedFor[`${b[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(checkedLoadedFor[`${b[0]}-${S}`]=!0,this.logger.warn(`key "${n}" for languages "${b.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(E=>{if(this.isValidLookup(i))return;r=E;const T=[h];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(T,h,E,S,t);else{let A;m&&(A=this.pluralResolver.getSuffix(E,t.count,t));const D=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(T.push(h+A),t.ordinal&&A.indexOf(x)===0&&T.push(h+A.replace(x,this.options.pluralSeparator)),v&&T.push(h+D)),y){const M=`${h}${this.options.contextSeparator}${t.context}`;T.push(M),m&&(T.push(M+A),t.ordinal&&A.indexOf(x)===0&&T.push(M+A.replace(x,this.options.pluralSeparator)),v&&T.push(M+D))}}let R;for(;R=T.pop();)this.isValidLookup(i)||(o=R,i=this.getResource(E,S,R,t))}))})}),{res:i,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,n):this.resourceStore.getResource(e,t,i,n)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&typeof e.replace!="string";let n=i?e.replace:e;if(i&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!i){n={...n};for(const o of t)delete n[o]}return n}static hasDefaultValue(e){const t="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&e[i]!==void 0)return!0;return!1}}function capitalize(s){return s.charAt(0).toUpperCase()+s.slice(1)}class LanguageUtil{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(e){if(e=getCleanedCode(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=getCleanedCode(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(n=>n.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=capitalize(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=capitalize(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=capitalize(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(i=>{if(t)return;const n=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(i=>{if(t)return;const n=this.getLanguagePartFromCode(i);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(o=>{if(o===n)return o;if(!(o.indexOf("-")<0&&n.indexOf("-")<0)&&o.indexOf(n)===0)return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){const i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=r=>{r&&(this.isSupportedCode(r)?n.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):typeof e=="string"&&o(this.formatLanguageCode(e)),i.forEach(r=>{n.indexOf(r)<0&&o(this.formatLanguageCode(r))}),n}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(s){return+(s>1)},2:function(s){return+(s!=1)},3:function(s){return 0},4:function(s){return s%10==1&&s%100!=11?0:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?1:2},5:function(s){return s==0?0:s==1?1:s==2?2:s%100>=3&&s%100<=10?3:s%100>=11?4:5},6:function(s){return s==1?0:s>=2&&s<=4?1:2},7:function(s){return s==1?0:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?1:2},8:function(s){return s==1?0:s==2?1:s!=8&&s!=11?2:3},9:function(s){return+(s>=2)},10:function(s){return s==1?0:s==2?1:s<7?2:s<11?3:4},11:function(s){return s==1||s==11?0:s==2||s==12?1:s>2&&s<20?2:3},12:function(s){return+(s%10!=1||s%100==11)},13:function(s){return+(s!==0)},14:function(s){return s==1?0:s==2?1:s==3?2:3},15:function(s){return s%10==1&&s%100!=11?0:s%10>=2&&(s%100<10||s%100>=20)?1:2},16:function(s){return s%10==1&&s%100!=11?0:s!==0?1:2},17:function(s){return s==1||s%10==1&&s%100!=11?0:1},18:function(s){return s==0?0:s==1?1:2},19:function(s){return s==1?0:s==0||s%100>1&&s%100<11?1:s%100>10&&s%100<20?2:3},20:function(s){return s==1?0:s==0||s%100>0&&s%100<20?1:2},21:function(s){return s%100==1?1:s%100==2?2:s%100==3||s%100==4?3:0},22:function(s){return s==1?0:s==2?1:(s<0||s>10)&&s%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const s={};return sets.forEach(e=>{e.lngs.forEach(t=>{s[t]={numbers:e.nr,plurals:_rulesPluralsTypes[e.fc]}})}),s}class PluralResolver{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(e==="dev"?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(n=>`${t}${n}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((n,o)=>suffixesOrder[n]-suffixesOrder[o]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):i.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,i);return n?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let n=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(n===2?n="plural":n===1&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return this.options.compatibilityJSON==="v1"?n===1?"":typeof n=="number"?`_plural_${n.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(s,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=getPathWithDefaults(s,e,t);return!o&&n&&typeof t=="string"&&(o=deepFind(s,t,i),o===void 0&&(o=deepFind(e,t,i))),o}class Interpolator{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=t.escape!==void 0?t.escape:escape$1,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?regexEscape(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?regexEscape(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?regexEscape(t.nestingPrefix):t.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=t.nestingSuffix?regexEscape(t.nestingSuffix):t.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,i)=>t&&t.source===i?(t.lastIndex=0,t):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,i,n){let o,r,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(y){return y.replace(/\$/g,"$$$$")}const h=y=>{if(y.indexOf(this.formatSeparator)<0){const T=deepFindWithDefaults(t,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,i,{...n,...t,interpolationkey:y}):T}const b=y.split(this.formatSeparator),S=b.shift().trim(),E=b.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(t,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),E,i,{...n,...t,interpolationkey:S})};this.resetRegExp();const p=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>d(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?d(this.escape(y)):d(y)}].forEach(y=>{for(a=0;o=y.regex.exec(e);){const b=o[1].trim();if(r=h(b),r===void 0)if(typeof p=="function"){const E=p(e,o,n);r=typeof E=="string"?E:""}else if(n&&Object.prototype.hasOwnProperty.call(n,b))r="";else if(m){r=o[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),r="";else typeof r!="string"&&!this.useRawValueToEscape&&(r=makeString(r));const S=y.safeValue(r);if(e=e.replace(o[0],S),m?(y.regex.lastIndex+=r.length,y.regex.lastIndex-=o[0].length):y.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,o,r;function a(l,d){const h=this.nestingOptionsSeparator;if(l.indexOf(h)<0)return l;const p=l.split(new RegExp(`${h}[ ]*{`));let m=`{${p[1]}`;l=p[0],m=this.interpolate(m,r);const v=m.match(/'/g),y=m.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(m=m.replace(/'/g,'"'));try{r=JSON.parse(m),d&&(r={...d,...r})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,b),`${l}${h}${m}`}return delete r.defaultValue,l}for(;n=this.nestingRegexp.exec(e);){let l=[];r={...i},r=r.replace&&typeof r.replace!="string"?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let d=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const h=n[1].split(this.formatSeparator).map(p=>p.trim());n[1]=h.shift(),l=h,d=!0}if(o=t(a.call(this,n[1].trim(),r),r),o&&n[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=makeString(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),o=""),d&&(o=l.reduce((h,p)=>this.format(h,p,i.lng,{...i,interpolationkey:n[1].trim()}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}function parseFormatStr(s){let e=s.toLowerCase().trim();const t={};if(s.indexOf("(")>-1){const i=s.split("(");e=i[0].toLowerCase().trim();const n=i[1].substring(0,i[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(r=>{if(!r)return;const[a,...l]=r.split(":"),d=l.join(":").trim().replace(/^'+|'+$/g,"");t[a.trim()]||(t[a.trim()]=d),d==="false"&&(t[a.trim()]=!1),d==="true"&&(t[a.trim()]=!0),isNaN(d)||(t[a.trim()]=parseInt(d,10))})}return{formatName:e,formatOptions:t}}function createCachedFormatter(s){const e={};return function(i,n,o){const r=n+JSON.stringify(o);let a=e[r];return a||(a=s(getCleanedCode(n),o),e[r]=a),a(i)}}class Formatter{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=e,this.formats={number:createCachedFormatter((t,i)=>{const n=new Intl.NumberFormat(t,{...i});return o=>n.format(o)}),currency:createCachedFormatter((t,i)=>{const n=new Intl.NumberFormat(t,{...i,style:"currency"});return o=>n.format(o)}),datetime:createCachedFormatter((t,i)=>{const n=new Intl.DateTimeFormat(t,{...i});return o=>n.format(o)}),relativetime:createCachedFormatter((t,i)=>{const n=new Intl.RelativeTimeFormat(t,{...i});return o=>n.format(o,i.range||"day")}),list:createCachedFormatter((t,i)=>{const n=new Intl.ListFormat(t,{...i});return o=>n.format(o)})},this.init(e)}init(e){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=createCachedFormatter(t)}format(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return t.split(this.formatSeparator).reduce((a,l)=>{const{formatName:d,formatOptions:h}=parseFormatStr(l);if(this.formats[d]){let p=a;try{const m=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},v=m.locale||m.lng||n.locale||n.lng||i;p=this.formats[d](a,v,{...h,...n,...m})}catch(m){this.logger.warn(m)}return p}else this.logger.warn(`there was no format function for ${d}`);return a},e)}}function removePending(s,e){s.pending[e]!==void 0&&(delete s.pending[e],s.pendingCount--)}class Connector extends EventEmitter{constructor(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,n.backend,n)}queueLoad(e,t,i,n){const o={},r={},a={},l={};return e.forEach(d=>{let h=!0;t.forEach(p=>{const m=`${d}|${p}`;!i.reload&&this.store.hasResourceBundle(d,p)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?r[m]===void 0&&(r[m]=!0):(this.state[m]=1,h=!1,r[m]===void 0&&(r[m]=!0),o[m]===void 0&&(o[m]=!0),l[p]===void 0&&(l[p]=!0)))}),h||(a[d]=!0)}),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,i){const n=e.split("|"),o=n[0],r=n[1];t&&this.emit("failedLoading",o,r,t),i&&this.store.addResourceBundle(o,r,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const a={};this.queue.forEach(l=>{pushPath(l.loaded,[o],r),removePending(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(d=>{a[d]||(a[d]={});const h=l.loaded[d];h.length&&h.forEach(p=>{a[d][p]===void 0&&(a[d][p]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:n,wait:o,callback:r});return}this.readingCalls++;const a=(d,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(d&&h&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,n+1,o*2,r)},o);return}r(d,h)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const d=l(e,t);d&&typeof d.then=="function"?d.then(h=>a(null,h)).catch(a):a(null,d)}catch(d){a(d)}return}return l(e,t,a)}prepareLoading(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t=="string"&&(t=[t]);const o=this.queueLoad(e,t,i,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),n=i[0],o=i[1];this.read(n,o,"read",void 0,void 0,(r,a)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&a&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,a),this.loaded(e,r,a)})}saveMissing(e,t,i,n,o){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const l={...r,isUpdate:o},d=this.backend.create.bind(this.backend);if(d.length<6)try{let h;d.length===5?h=d(e,t,i,n,l):h=d(e,t,i,n),h&&typeof h.then=="function"?h.then(p=>a(null,p)).catch(a):a(null,h)}catch(h){a(h)}else d(e,t,i,n,a,l)}!e||!e[0]||this.store.addResource(e[0],t,i,n)}}}function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(n=>{t[n]=i[n]})}return t},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(s){return typeof s.ns=="string"&&(s.ns=[s.ns]),typeof s.fallbackLng=="string"&&(s.fallbackLng=[s.fallbackLng]),typeof s.fallbackNS=="string"&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs&&s.supportedLngs.indexOf("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),s}function noop$2(){}function bindMemberFunctions(s){Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(t=>{typeof s[t]=="function"&&(s[t]=s[t].bind(s))})}class I18n extends EventEmitter{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(e),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(i=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns=="string"?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=get();this.options={...n,...this.options,...transformOptions(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);function o(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(o(this.modules.logger),this.options):baseLogger.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:typeof Intl<"u"&&(h=Formatter);const p=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const m=this.services;m.logger=baseLogger,m.resourceStore=this.store,m.languageUtils=p,m.pluralResolver=new PluralResolver(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(m.formatter=o(h),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Interpolator(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Connector(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(v){for(var y=arguments.length,b=new Array(y>1?y-1:0),S=1;S<y;S++)b[S-1]=arguments[S];e.emit(v,...b)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,b=new Array(y>1?y-1:0),S=1;S<y;S++)b[S-1]=arguments[S];e.emit(v,...b)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,i||(i=noop$2),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const l=defer(),d=()=>{const h=(p,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),i(p,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;const n=typeof e=="string"?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const o=[],r=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(d=>{d!=="cimode"&&o.indexOf(d)<0&&o.push(d)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>r(l)),this.options.preload&&this.options.preload.forEach(a=>r(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(a)})}else i(null)}reloadResources(e,t,i){const n=defer();return e||(e=this.languages),t||(t=this.options.ns),i||(i=noop$2),this.services.backendConnector.reload(e,t,o=>{n.resolve(),i(o)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&postProcessor.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;const n=defer();this.emit("languageChanging",e);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},r=(l,d)=>{d?(o(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,n.resolve(function(){return i.t(...arguments)}),t&&t(l,function(){return i.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const d=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);d&&(this.language||o(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(d)),this.loadResources(d,h=>{r(h,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,i){var n=this;const o=function(r,a){let l;if(typeof a!="object"){for(var d=arguments.length,h=new Array(d>2?d-2:0),p=2;p<d;p++)h[p-2]=arguments[p];l=n.options.overloadTranslationOptionHandler([r,a].concat(h))}else l={...a};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix=l.keyPrefix||i||o.keyPrefix;const m=n.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(r)?v=r.map(y=>`${l.keyPrefix}${m}${y}`):v=l.keyPrefix?`${l.keyPrefix}${m}${r}`:r,n.t(v,l)};return typeof e=="string"?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const r=(a,l)=>{const d=this.services.backendConnector.state[`${a}|${l}`];return d===-1||d===2};if(t.precheck){const a=t.precheck(this,r);if(a!==void 0)return a}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(i,e)&&(!n||r(o,e)))}loadNamespaces(e,t){const i=defer();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{i.resolve(),t&&t(n)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){const i=defer();typeof e=="string"&&(e=[e]);const n=this.options.preload||[],o=e.filter(r=>n.indexOf(r)<0);return o.length?(this.options.preload=n.concat(o),this.loadResources(r=>{i.resolve(),t&&t(r)}),i):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new LanguageUtil(get());return t.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new I18n(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},o=new I18n(n);return(e.debug!==void 0||e.prefix!==void 0)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new ResourceStore(this.store.data,n),o.services.resourceStore=o.store),o.translator=new Translator(o.services,n),o.translator.on("*",function(a){for(var l=arguments.length,d=new Array(l>1?l-1:0),h=1;h<l;h++)d[h-1]=arguments[h];o.emit(a,...d)}),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const instance=I18n.createInstance();instance.createInstance=I18n.createInstance;instance.createInstance;instance.dir;instance.init;instance.loadResources;instance.reloadResources;instance.use;instance.changeLanguage;instance.getFixedT;instance.t;instance.exists;instance.setDefaultNamespace;instance.hasLoadedNamespace;instance.loadNamespaces;instance.loadLanguages;function _classCallCheck$1(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function _typeof$3(s){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(s)}function toPrimitive(s,e){if(_typeof$3(s)!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var i=t.call(s,e||"default");if(_typeof$3(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function toPropertyKey(s){var e=toPrimitive(s,"string");return _typeof$3(e)=="symbol"?e:String(e)}function _defineProperties$1(s,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(s,toPropertyKey(i.key),i)}}function _createClass$1(s,e,t){return e&&_defineProperties$1(s.prototype,e),t&&_defineProperties$1(s,t),Object.defineProperty(s,"prototype",{writable:!1}),s}var arr=[],each$1=arr.forEach,slice=arr.slice;function defaults$1(s){return each$1.call(slice.call(arguments,1),function(e){if(e)for(var t in e)s[t]===void 0&&(s[t]=e[t])}),s}function createClassOnDemand(s){return s?typeof s=="function"?new s:s:null}function getDefaults$2(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function handleCorrectReadFunction(s,e,t,i){var n=s.read.bind(s);if(n.length===2){try{var o=n(e,t);o&&typeof o.then=="function"?o.then(function(r){return i(null,r)}).catch(i):i(null,o)}catch(r){i(r)}return}n(e,t,i)}var Backend$1=function(){function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck$1(this,s),this.backends=[],this.type="backend",this.allOptions=i,this.init(e,t)}return _createClass$1(s,[{key:"init",value:function(t){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=defaults$1(n,this.options||{},getDefaults$2()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(r,a){i.backends[a]=i.backends[a]||createClassOnDemand(r),i.backends[a].init(t,i.options.backendOptions&&i.options.backendOptions[a]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"read",value:function(t,i,n){var o=this,r=this.backends.length,a=function d(h){if(h>=r)return n(new Error("non of the backend loaded data",!0));var p=h===r-1,m=o.options.handleEmptyResourcesAsFailed&&!p?0:-1,v=o.backends[h];v.read?handleCorrectReadFunction(v,t,i,function(y,b,S){if(!y&&b&&Object.keys(b).length>m){if(n(null,b,h),l(h-1,b),v.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(S&&o.options.refreshExpirationTime&&S+o.options.refreshExpirationTime>Date.now())return;var E=o.backends[h+1];E&&E.read&&handleCorrectReadFunction(E,t,i,function(T,R){T||R&&(Object.keys(R).length<=m||(l(h,R),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(t,i,R)))})}}else d(h+1)}):d(h+1)},l=function d(h,p){if(!(h<0)){var m=o.backends[h];m.save&&m.save(t,i,p),d(h-1,p)}};a(0)}},{key:"create",value:function(t,i,n,o){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(l){if(l.create){var d=l.create.bind(l);if(d.length<6){try{var h;d.length===5?h=d(t,i,n,o,a):h=d(t,i,n,o),h&&typeof h.then=="function"?h.then(function(p){return r(null,p)}).catch(r):r(null,h)}catch(p){r(p)}return}d(t,i,n,o,r,a)}})}},{key:"reload",value:function(){var t=this,i=this.services,n=i.backendConnector,o=i.languageUtils,r=i.logger,a=n.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],d=function(p){var m=o.toResolveHierarchy(p);m.forEach(function(v){l.indexOf(v)<0&&l.push(v)})};d(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(h){return d(h)}),l.forEach(function(h){t.allOptions.ns.forEach(function(p){n.read(h,p,"read",null,null,function(m,v){m&&r.warn("loading namespace ".concat(p," for language ").concat(h," failed"),m),!m&&v&&r.log("loaded namespace ".concat(p," for language ").concat(h),v),n.loaded("".concat(h,"|").concat(p),m,v)})})})}}}]),s}();Backend$1.type="backend";function _typeof$2(s){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(s)}function hasXMLHttpRequest(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":_typeof$2(XMLHttpRequest))==="object"}function isPromise(s){return!!s&&typeof s.then=="function"}function makePromise(s){return isPromise(s)?s:Promise.resolve(s)}function commonjsRequire(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var getFetch$1={exports:{}},browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(s,e){var t=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof commonjsGlobal<"u"&&commonjsGlobal,i=function(){function o(){this.fetch=!1,this.DOMException=t.DOMException}return o.prototype=t,new o}();(function(o){(function(r){var a=typeof o<"u"&&o||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function d(F){return F&&DataView.prototype.isPrototypeOf(F)}if(l.arrayBuffer)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(F){return F&&h.indexOf(Object.prototype.toString.call(F))>-1};function m(F){if(typeof F!="string"&&(F=String(F)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(F)||F==="")throw new TypeError('Invalid character in header field name: "'+F+'"');return F.toLowerCase()}function v(F){return typeof F!="string"&&(F=String(F)),F}function y(F){var $={next:function(){var q=F.shift();return{done:q===void 0,value:q}}};return l.iterable&&($[Symbol.iterator]=function(){return $}),$}function b(F){this.map={},F instanceof b?F.forEach(function($,q){this.append(q,$)},this):Array.isArray(F)?F.forEach(function($){this.append($[0],$[1])},this):F&&Object.getOwnPropertyNames(F).forEach(function($){this.append($,F[$])},this)}b.prototype.append=function(F,$){F=m(F),$=v($);var q=this.map[F];this.map[F]=q?q+", "+$:$},b.prototype.delete=function(F){delete this.map[m(F)]},b.prototype.get=function(F){return F=m(F),this.has(F)?this.map[F]:null},b.prototype.has=function(F){return this.map.hasOwnProperty(m(F))},b.prototype.set=function(F,$){this.map[m(F)]=v($)},b.prototype.forEach=function(F,$){for(var q in this.map)this.map.hasOwnProperty(q)&&F.call($,this.map[q],q,this)},b.prototype.keys=function(){var F=[];return this.forEach(function($,q){F.push(q)}),y(F)},b.prototype.values=function(){var F=[];return this.forEach(function($){F.push($)}),y(F)},b.prototype.entries=function(){var F=[];return this.forEach(function($,q){F.push([q,$])}),y(F)},l.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function S(F){if(F.bodyUsed)return Promise.reject(new TypeError("Already read"));F.bodyUsed=!0}function E(F){return new Promise(function($,q){F.onload=function(){$(F.result)},F.onerror=function(){q(F.error)}})}function T(F){var $=new FileReader,q=E($);return $.readAsArrayBuffer(F),q}function R(F){var $=new FileReader,q=E($);return $.readAsText(F),q}function A(F){for(var $=new Uint8Array(F),q=new Array($.length),W=0;W<$.length;W++)q[W]=String.fromCharCode($[W]);return q.join("")}function D(F){if(F.slice)return F.slice(0);var $=new Uint8Array(F.byteLength);return $.set(new Uint8Array(F)),$.buffer}function x(){return this.bodyUsed=!1,this._initBody=function(F){this.bodyUsed=this.bodyUsed,this._bodyInit=F,F?typeof F=="string"?this._bodyText=F:l.blob&&Blob.prototype.isPrototypeOf(F)?this._bodyBlob=F:l.formData&&FormData.prototype.isPrototypeOf(F)?this._bodyFormData=F:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(F)?this._bodyText=F.toString():l.arrayBuffer&&l.blob&&d(F)?(this._bodyArrayBuffer=D(F.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(F)||p(F))?this._bodyArrayBuffer=D(F):this._bodyText=F=Object.prototype.toString.call(F):this._bodyText="",this.headers.get("content-type")||(typeof F=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(F)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var F=S(this);if(F)return F;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var F=S(this);return F||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(T)}),this.text=function(){var F=S(this);if(F)return F;if(this._bodyBlob)return R(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(A(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(U)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function I(F){var $=F.toUpperCase();return M.indexOf($)>-1?$:F}function V(F,$){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');$=$||{};var q=$.body;if(F instanceof V){if(F.bodyUsed)throw new TypeError("Already read");this.url=F.url,this.credentials=F.credentials,$.headers||(this.headers=new b(F.headers)),this.method=F.method,this.mode=F.mode,this.signal=F.signal,!q&&F._bodyInit!=null&&(q=F._bodyInit,F.bodyUsed=!0)}else this.url=String(F);if(this.credentials=$.credentials||this.credentials||"same-origin",($.headers||!this.headers)&&(this.headers=new b($.headers)),this.method=I($.method||this.method||"GET"),this.mode=$.mode||this.mode||null,this.signal=$.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&q)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(q),(this.method==="GET"||this.method==="HEAD")&&($.cache==="no-store"||$.cache==="no-cache")){var W=/([?&])_=[^&]*/;if(W.test(this.url))this.url=this.url.replace(W,"$1_="+new Date().getTime());else{var J=/\?/;this.url+=(J.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function U(F){var $=new FormData;return F.trim().split("&").forEach(function(q){if(q){var W=q.split("="),J=W.shift().replace(/\+/g," "),K=W.join("=").replace(/\+/g," ");$.append(decodeURIComponent(J),decodeURIComponent(K))}}),$}function B(F){var $=new b,q=F.replace(/\r?\n[\t ]+/g," ");return q.split("\r").map(function(W){return W.indexOf(`
+ */const elementMap=new Map,Data={set(s,e,t){elementMap.has(s)||elementMap.set(s,new Map);const i=elementMap.get(s);if(!i.has(e)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(e,t)},get(s,e){return elementMap.has(s)&&elementMap.get(s).get(e)||null},remove(s,e){if(!elementMap.has(s))return;const t=elementMap.get(s);t.delete(e),t.size===0&&elementMap.delete(s)}},MAX_UID=1e6,MILLISECONDS_MULTIPLIER=1e3,TRANSITION_END="transitionend",parseSelector=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),s),toType=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),getUID=s=>{do s+=Math.floor(Math.random()*MAX_UID);while(document.getElementById(s));return s},getTransitionDurationFromElement=s=>{if(!s)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(s);const i=Number.parseFloat(e),n=Number.parseFloat(t);return!i&&!n?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*MILLISECONDS_MULTIPLIER)},triggerTransitionEnd=s=>{s.dispatchEvent(new Event(TRANSITION_END))},isElement=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),getElement=s=>isElement(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(parseSelector(s)):null,isVisible$1=s=>{if(!isElement(s)||s.getClientRects().length===0)return!1;const e=getComputedStyle(s).getPropertyValue("visibility")==="visible",t=s.closest("details:not([open])");if(!t)return e;if(t!==s){const i=s.closest("summary");if(i&&i.parentNode!==t||i===null)return!1}return e},isDisabled=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",findShadowRoot=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const e=s.getRootNode();return e instanceof ShadowRoot?e:null}return s instanceof ShadowRoot?s:s.parentNode?findShadowRoot(s.parentNode):null},noop$3=()=>{},reflow=s=>{s.offsetHeight},getjQuery=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,DOMContentLoadedCallbacks=[],onDOMContentLoaded=s=>{document.readyState==="loading"?(DOMContentLoadedCallbacks.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of DOMContentLoadedCallbacks)e()}),DOMContentLoadedCallbacks.push(s)):s()},isRTL=()=>document.documentElement.dir==="rtl",defineJQueryPlugin=s=>{onDOMContentLoaded(()=>{const e=getjQuery();if(e){const t=s.NAME,i=e.fn[t];e.fn[t]=s.jQueryInterface,e.fn[t].Constructor=s,e.fn[t].noConflict=()=>(e.fn[t]=i,s.jQueryInterface)}})},execute=(s,e=[],t=s)=>typeof s=="function"?s(...e):t,executeAfterTransition=(s,e,t=!0)=>{if(!t){execute(s);return}const i=5,n=getTransitionDurationFromElement(e)+i;let o=!1;const r=({target:a})=>{a===e&&(o=!0,e.removeEventListener(TRANSITION_END,r),execute(s))};e.addEventListener(TRANSITION_END,r),setTimeout(()=>{o||triggerTransitionEnd(e)},n)},getNextActiveElement=(s,e,t,i)=>{const n=s.length;let o=s.indexOf(e);return o===-1?!t&&i?s[n-1]:s[0]:(o+=t?1:-1,i&&(o=(o+n)%n),s[Math.max(0,Math.min(o,n-1))])},namespaceRegex=/[^.]*(?=\..*)\.|.*/,stripNameRegex=/\..*/,stripUidRegex=/::\d+$/,eventRegistry={};let uidEvent=1;const customEvents={mouseenter:"mouseover",mouseleave:"mouseout"},nativeEvents=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function makeEventUid(s,e){return e&&`${e}::${uidEvent++}`||s.uidEvent||uidEvent++}function getElementEvents(s){const e=makeEventUid(s);return s.uidEvent=e,eventRegistry[e]=eventRegistry[e]||{},eventRegistry[e]}function bootstrapHandler(s,e){return function t(i){return hydrateObj(i,{delegateTarget:s}),t.oneOff&&EventHandler.off(s,i.type,e),e.apply(s,[i])}}function bootstrapDelegationHandler(s,e,t){return function i(n){const o=s.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return hydrateObj(n,{delegateTarget:r}),i.oneOff&&EventHandler.off(s,n.type,e,t),t.apply(r,[n])}}function findHandler(s,e,t=null){return Object.values(s).find(i=>i.callable===e&&i.delegationSelector===t)}function normalizeParameters(s,e,t){const i=typeof e=="string",n=i?t:e||t;let o=getTypeEvent(s);return nativeEvents.has(o)||(o=s),[i,n,o]}function addHandler(s,e,t,i,n){if(typeof e!="string"||!s)return;let[o,r,a]=normalizeParameters(e,t,i);e in customEvents&&(r=(y=>function(b){if(!b.relatedTarget||b.relatedTarget!==b.delegateTarget&&!b.delegateTarget.contains(b.relatedTarget))return y.call(this,b)})(r));const l=getElementEvents(s),d=l[a]||(l[a]={}),h=findHandler(d,r,o?t:null);if(h){h.oneOff=h.oneOff&&n;return}const p=makeEventUid(r,e.replace(namespaceRegex,"")),m=o?bootstrapDelegationHandler(s,t,r):bootstrapHandler(s,r);m.delegationSelector=o?t:null,m.callable=r,m.oneOff=n,m.uidEvent=p,d[p]=m,s.addEventListener(a,m,o)}function removeHandler(s,e,t,i,n){const o=findHandler(e[t],i,n);o&&(s.removeEventListener(t,o,!!n),delete e[t][o.uidEvent])}function removeNamespacedHandlers(s,e,t,i){const n=e[t]||{};for(const[o,r]of Object.entries(n))o.includes(i)&&removeHandler(s,e,t,r.callable,r.delegationSelector)}function getTypeEvent(s){return s=s.replace(stripNameRegex,""),customEvents[s]||s}const EventHandler={on(s,e,t,i){addHandler(s,e,t,i,!1)},one(s,e,t,i){addHandler(s,e,t,i,!0)},off(s,e,t,i){if(typeof e!="string"||!s)return;const[n,o,r]=normalizeParameters(e,t,i),a=r!==e,l=getElementEvents(s),d=l[r]||{},h=e.startsWith(".");if(typeof o<"u"){if(!Object.keys(d).length)return;removeHandler(s,l,r,o,n?t:null);return}if(h)for(const p of Object.keys(l))removeNamespacedHandlers(s,l,p,e.slice(1));for(const[p,m]of Object.entries(d)){const v=p.replace(stripUidRegex,"");(!a||e.includes(v))&&removeHandler(s,l,r,m.callable,m.delegationSelector)}},trigger(s,e,t){if(typeof e!="string"||!s)return null;const i=getjQuery(),n=getTypeEvent(e),o=e!==n;let r=null,a=!0,l=!0,d=!1;o&&i&&(r=i.Event(e,t),i(s).trigger(r),a=!r.isPropagationStopped(),l=!r.isImmediatePropagationStopped(),d=r.isDefaultPrevented());const h=hydrateObj(new Event(e,{bubbles:a,cancelable:!0}),t);return d&&h.preventDefault(),l&&s.dispatchEvent(h),h.defaultPrevented&&r&&r.preventDefault(),h}};function hydrateObj(s,e={}){for(const[t,i]of Object.entries(e))try{s[t]=i}catch{Object.defineProperty(s,t,{configurable:!0,get(){return i}})}return s}function normalizeData(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function normalizeDataKey(s){return s.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Manipulator={setDataAttribute(s,e,t){s.setAttribute(`data-bs-${normalizeDataKey(e)}`,t)},removeDataAttribute(s,e){s.removeAttribute(`data-bs-${normalizeDataKey(e)}`)},getDataAttributes(s){if(!s)return{};const e={},t=Object.keys(s.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of t){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=normalizeData(s.dataset[i])}return e},getDataAttribute(s,e){return normalizeData(s.getAttribute(`data-bs-${normalizeDataKey(e)}`))}};let Config$1=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=isElement(t)?Manipulator.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...isElement(t)?Manipulator.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,n]of Object.entries(t)){const o=e[i],r=isElement(o)?"element":toType(o);if(!new RegExp(n).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${n}".`)}}};const VERSION$1="5.3.3";class BaseComponent extends Config$1{constructor(e,t){super(),e=getElement(e),e&&(this._element=e,this._config=this._getConfig(t),Data.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Data.remove(this._element,this.constructor.DATA_KEY),EventHandler.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){executeAfterTransition(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Data.get(getElement(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return VERSION$1}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const getSelector=s=>{let e=s.getAttribute("data-bs-target");if(!e||e==="#"){let t=s.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return e?e.split(",").map(t=>parseSelector(t)).join(","):null},SelectorEngine={find(s,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,s))},findOne(s,e=document.documentElement){return Element.prototype.querySelector.call(e,s)},children(s,e){return[].concat(...s.children).filter(t=>t.matches(e))},parents(s,e){const t=[];let i=s.parentNode.closest(e);for(;i;)t.push(i),i=i.parentNode.closest(e);return t},prev(s,e){let t=s.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(s,e){let t=s.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(s){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,s).filter(t=>!isDisabled(t)&&isVisible$1(t))},getSelectorFromElement(s){const e=getSelector(s);return e&&SelectorEngine.findOne(e)?e:null},getElementFromSelector(s){const e=getSelector(s);return e?SelectorEngine.findOne(e):null},getMultipleElementsFromSelector(s){const e=getSelector(s);return e?SelectorEngine.find(e):[]}},enableDismissTrigger=(s,e="hide")=>{const t=`click.dismiss${s.EVENT_KEY}`,i=s.NAME;EventHandler.on(document,t,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),isDisabled(this))return;const o=SelectorEngine.getElementFromSelector(this)||this.closest(`.${i}`);s.getOrCreateInstance(o)[e]()})},NAME$f="alert",DATA_KEY$a="bs.alert",EVENT_KEY$b=`.${DATA_KEY$a}`,EVENT_CLOSE=`close${EVENT_KEY$b}`,EVENT_CLOSED=`closed${EVENT_KEY$b}`,CLASS_NAME_FADE$5="fade",CLASS_NAME_SHOW$8="show";class Alert extends BaseComponent{static get NAME(){return NAME$f}close(){if(EventHandler.trigger(this._element,EVENT_CLOSE).defaultPrevented)return;this._element.classList.remove(CLASS_NAME_SHOW$8);const t=this._element.classList.contains(CLASS_NAME_FADE$5);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),EventHandler.trigger(this._element,EVENT_CLOSED),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Alert.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}enableDismissTrigger(Alert,"close");defineJQueryPlugin(Alert);const NAME$e="button",DATA_KEY$9="bs.button",EVENT_KEY$a=`.${DATA_KEY$9}`,DATA_API_KEY$6=".data-api",CLASS_NAME_ACTIVE$3="active",SELECTOR_DATA_TOGGLE$5='[data-bs-toggle="button"]',EVENT_CLICK_DATA_API$6=`click${EVENT_KEY$a}${DATA_API_KEY$6}`;class Button extends BaseComponent{static get NAME(){return NAME$e}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(CLASS_NAME_ACTIVE$3))}static jQueryInterface(e){return this.each(function(){const t=Button.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}EventHandler.on(document,EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$5,s=>{s.preventDefault();const e=s.target.closest(SELECTOR_DATA_TOGGLE$5);Button.getOrCreateInstance(e).toggle()});defineJQueryPlugin(Button);const NAME$d="swipe",EVENT_KEY$9=".bs.swipe",EVENT_TOUCHSTART=`touchstart${EVENT_KEY$9}`,EVENT_TOUCHMOVE=`touchmove${EVENT_KEY$9}`,EVENT_TOUCHEND=`touchend${EVENT_KEY$9}`,EVENT_POINTERDOWN=`pointerdown${EVENT_KEY$9}`,EVENT_POINTERUP=`pointerup${EVENT_KEY$9}`,POINTER_TYPE_TOUCH="touch",POINTER_TYPE_PEN="pen",CLASS_NAME_POINTER_EVENT="pointer-event",SWIPE_THRESHOLD=40,Default$c={endCallback:null,leftCallback:null,rightCallback:null},DefaultType$c={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Swipe extends Config$1{constructor(e,t){super(),this._element=e,!(!e||!Swipe.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Default$c}static get DefaultType(){return DefaultType$c}static get NAME(){return NAME$d}dispose(){EventHandler.off(this._element,EVENT_KEY$9)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),execute(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=SWIPE_THRESHOLD)return;const t=e/this._deltaX;this._deltaX=0,t&&execute(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(EventHandler.on(this._element,EVENT_POINTERDOWN,e=>this._start(e)),EventHandler.on(this._element,EVENT_POINTERUP,e=>this._end(e)),this._element.classList.add(CLASS_NAME_POINTER_EVENT)):(EventHandler.on(this._element,EVENT_TOUCHSTART,e=>this._start(e)),EventHandler.on(this._element,EVENT_TOUCHMOVE,e=>this._move(e)),EventHandler.on(this._element,EVENT_TOUCHEND,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===POINTER_TYPE_PEN||e.pointerType===POINTER_TYPE_TOUCH)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const NAME$c="carousel",DATA_KEY$8="bs.carousel",EVENT_KEY$8=`.${DATA_KEY$8}`,DATA_API_KEY$5=".data-api",ARROW_LEFT_KEY$1="ArrowLeft",ARROW_RIGHT_KEY$1="ArrowRight",TOUCHEVENT_COMPAT_WAIT=500,ORDER_NEXT="next",ORDER_PREV="prev",DIRECTION_LEFT="left",DIRECTION_RIGHT="right",EVENT_SLIDE=`slide${EVENT_KEY$8}`,EVENT_SLID=`slid${EVENT_KEY$8}`,EVENT_KEYDOWN$1=`keydown${EVENT_KEY$8}`,EVENT_MOUSEENTER$1=`mouseenter${EVENT_KEY$8}`,EVENT_MOUSELEAVE$1=`mouseleave${EVENT_KEY$8}`,EVENT_DRAG_START=`dragstart${EVENT_KEY$8}`,EVENT_LOAD_DATA_API$3=`load${EVENT_KEY$8}${DATA_API_KEY$5}`,EVENT_CLICK_DATA_API$5=`click${EVENT_KEY$8}${DATA_API_KEY$5}`,CLASS_NAME_CAROUSEL="carousel",CLASS_NAME_ACTIVE$2="active",CLASS_NAME_SLIDE="slide",CLASS_NAME_END="carousel-item-end",CLASS_NAME_START="carousel-item-start",CLASS_NAME_NEXT="carousel-item-next",CLASS_NAME_PREV="carousel-item-prev",SELECTOR_ACTIVE=".active",SELECTOR_ITEM=".carousel-item",SELECTOR_ACTIVE_ITEM=SELECTOR_ACTIVE+SELECTOR_ITEM,SELECTOR_ITEM_IMG=".carousel-item img",SELECTOR_INDICATORS=".carousel-indicators",SELECTOR_DATA_SLIDE="[data-bs-slide], [data-bs-slide-to]",SELECTOR_DATA_RIDE='[data-bs-ride="carousel"]',KEY_TO_DIRECTION={[ARROW_LEFT_KEY$1]:DIRECTION_RIGHT,[ARROW_RIGHT_KEY$1]:DIRECTION_LEFT},Default$b={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},DefaultType$b={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Carousel extends BaseComponent{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=SelectorEngine.findOne(SELECTOR_INDICATORS,this._element),this._addEventListeners(),this._config.ride===CLASS_NAME_CAROUSEL&&this.cycle()}static get Default(){return Default$b}static get DefaultType(){return DefaultType$b}static get NAME(){return NAME$c}next(){this._slide(ORDER_NEXT)}nextWhenVisible(){!document.hidden&&isVisible$1(this._element)&&this.next()}prev(){this._slide(ORDER_PREV)}pause(){this._isSliding&&triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.to(e));return}const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?ORDER_NEXT:ORDER_PREV;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&EventHandler.on(this._element,EVENT_KEYDOWN$1,e=>this._keydown(e)),this._config.pause==="hover"&&(EventHandler.on(this._element,EVENT_MOUSEENTER$1,()=>this.pause()),EventHandler.on(this._element,EVENT_MOUSELEAVE$1,()=>this._maybeEnableCycle())),this._config.touch&&Swipe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of SelectorEngine.find(SELECTOR_ITEM_IMG,this._element))EventHandler.on(i,EVENT_DRAG_START,n=>n.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(DIRECTION_LEFT)),rightCallback:()=>this._slide(this._directionToOrder(DIRECTION_RIGHT)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),TOUCHEVENT_COMPAT_WAIT+this._config.interval))}};this._swipeHelper=new Swipe(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=KEY_TO_DIRECTION[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=SelectorEngine.findOne(SELECTOR_ACTIVE,this._indicatorsElement);t.classList.remove(CLASS_NAME_ACTIVE$2),t.removeAttribute("aria-current");const i=SelectorEngine.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(CLASS_NAME_ACTIVE$2),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),n=e===ORDER_NEXT,o=t||getNextActiveElement(this._getItems(),i,n,this._config.wrap);if(o===i)return;const r=this._getItemIndex(o),a=v=>EventHandler.trigger(this._element,v,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:r});if(a(EVENT_SLIDE).defaultPrevented||!i||!o)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const h=n?CLASS_NAME_START:CLASS_NAME_END,p=n?CLASS_NAME_NEXT:CLASS_NAME_PREV;o.classList.add(p),reflow(o),i.classList.add(h),o.classList.add(h);const m=()=>{o.classList.remove(h,p),o.classList.add(CLASS_NAME_ACTIVE$2),i.classList.remove(CLASS_NAME_ACTIVE$2,p,h),this._isSliding=!1,a(EVENT_SLID)};this._queueCallback(m,i,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(CLASS_NAME_SLIDE)}_getActive(){return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM,this._element)}_getItems(){return SelectorEngine.find(SELECTOR_ITEM,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return isRTL()?e===DIRECTION_LEFT?ORDER_PREV:ORDER_NEXT:e===DIRECTION_LEFT?ORDER_NEXT:ORDER_PREV}_orderToDirection(e){return isRTL()?e===ORDER_PREV?DIRECTION_LEFT:DIRECTION_RIGHT:e===ORDER_PREV?DIRECTION_RIGHT:DIRECTION_LEFT}static jQueryInterface(e){return this.each(function(){const t=Carousel.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$5,SELECTOR_DATA_SLIDE,function(s){const e=SelectorEngine.getElementFromSelector(this);if(!e||!e.classList.contains(CLASS_NAME_CAROUSEL))return;s.preventDefault();const t=Carousel.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");if(i){t.to(i),t._maybeEnableCycle();return}if(Manipulator.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});EventHandler.on(window,EVENT_LOAD_DATA_API$3,()=>{const s=SelectorEngine.find(SELECTOR_DATA_RIDE);for(const e of s)Carousel.getOrCreateInstance(e)});defineJQueryPlugin(Carousel);const NAME$b="collapse",DATA_KEY$7="bs.collapse",EVENT_KEY$7=`.${DATA_KEY$7}`,DATA_API_KEY$4=".data-api",EVENT_SHOW$6=`show${EVENT_KEY$7}`,EVENT_SHOWN$6=`shown${EVENT_KEY$7}`,EVENT_HIDE$6=`hide${EVENT_KEY$7}`,EVENT_HIDDEN$6=`hidden${EVENT_KEY$7}`,EVENT_CLICK_DATA_API$4=`click${EVENT_KEY$7}${DATA_API_KEY$4}`,CLASS_NAME_SHOW$7="show",CLASS_NAME_COLLAPSE="collapse",CLASS_NAME_COLLAPSING="collapsing",CLASS_NAME_COLLAPSED="collapsed",CLASS_NAME_DEEPER_CHILDREN=`:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`,CLASS_NAME_HORIZONTAL="collapse-horizontal",WIDTH="width",HEIGHT="height",SELECTOR_ACTIVES=".collapse.show, .collapse.collapsing",SELECTOR_DATA_TOGGLE$4='[data-bs-toggle="collapse"]',Default$a={parent:null,toggle:!0},DefaultType$a={parent:"(null|element)",toggle:"boolean"};class Collapse extends BaseComponent{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);for(const n of i){const o=SelectorEngine.getSelectorFromElement(n),r=SelectorEngine.find(o).filter(a=>a===this._element);o!==null&&r.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Default$a}static get DefaultType(){return DefaultType$a}static get NAME(){return NAME$b}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(a=>a!==this._element).map(a=>Collapse.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$6).defaultPrevented)return;for(const a of e)a.hide();const i=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7),this._element.style[i]="",EventHandler.trigger(this._element,EVENT_SHOWN$6)},r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||EventHandler.trigger(this._element,EVENT_HIDE$6).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,reflow(this._element),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7);for(const n of this._triggerArray){const o=SelectorEngine.getElementFromSelector(n);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE),EventHandler.trigger(this._element,EVENT_HIDDEN$6)};this._element.style[t]="",this._queueCallback(i,this._element,!0)}_isShown(e=this._element){return e.classList.contains(CLASS_NAME_SHOW$7)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=getElement(e.parent),e}_getDimension(){return this._element.classList.contains(CLASS_NAME_HORIZONTAL)?WIDTH:HEIGHT}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);for(const t of e){const i=SelectorEngine.getElementFromSelector(t);i&&this._addAriaAndCollapsedClass([t],this._isShown(i))}}_getFirstLevelChildren(e){const t=SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN,this._config.parent);return SelectorEngine.find(e,this._config.parent).filter(i=>!t.includes(i))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle(CLASS_NAME_COLLAPSED,!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const i=Collapse.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof i[e]>"u")throw new TypeError(`No method named "${e}"`);i[e]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$4,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const e of SelectorEngine.getMultipleElementsFromSelector(this))Collapse.getOrCreateInstance(e,{toggle:!1}).toggle()});defineJQueryPlugin(Collapse);const NAME$a="dropdown",DATA_KEY$6="bs.dropdown",EVENT_KEY$6=`.${DATA_KEY$6}`,DATA_API_KEY$3=".data-api",ESCAPE_KEY$2="Escape",TAB_KEY$1="Tab",ARROW_UP_KEY$1="ArrowUp",ARROW_DOWN_KEY$1="ArrowDown",RIGHT_MOUSE_BUTTON=2,EVENT_HIDE$5=`hide${EVENT_KEY$6}`,EVENT_HIDDEN$5=`hidden${EVENT_KEY$6}`,EVENT_SHOW$5=`show${EVENT_KEY$6}`,EVENT_SHOWN$5=`shown${EVENT_KEY$6}`,EVENT_CLICK_DATA_API$3=`click${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYDOWN_DATA_API=`keydown${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYUP_DATA_API=`keyup${EVENT_KEY$6}${DATA_API_KEY$3}`,CLASS_NAME_SHOW$6="show",CLASS_NAME_DROPUP="dropup",CLASS_NAME_DROPEND="dropend",CLASS_NAME_DROPSTART="dropstart",CLASS_NAME_DROPUP_CENTER="dropup-center",CLASS_NAME_DROPDOWN_CENTER="dropdown-center",SELECTOR_DATA_TOGGLE$3='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',SELECTOR_DATA_TOGGLE_SHOWN=`${SELECTOR_DATA_TOGGLE$3}.${CLASS_NAME_SHOW$6}`,SELECTOR_MENU=".dropdown-menu",SELECTOR_NAVBAR=".navbar",SELECTOR_NAVBAR_NAV=".navbar-nav",SELECTOR_VISIBLE_ITEMS=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",PLACEMENT_TOP=isRTL()?"top-end":"top-start",PLACEMENT_TOPEND=isRTL()?"top-start":"top-end",PLACEMENT_BOTTOM=isRTL()?"bottom-end":"bottom-start",PLACEMENT_BOTTOMEND=isRTL()?"bottom-start":"bottom-end",PLACEMENT_RIGHT=isRTL()?"left-start":"right-start",PLACEMENT_LEFT=isRTL()?"right-start":"left-start",PLACEMENT_TOPCENTER="top",PLACEMENT_BOTTOMCENTER="bottom",Default$9={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},DefaultType$9={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Dropdown extends BaseComponent{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=SelectorEngine.next(this._element,SELECTOR_MENU)[0]||SelectorEngine.prev(this._element,SELECTOR_MENU)[0]||SelectorEngine.findOne(SELECTOR_MENU,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Default$9}static get DefaultType(){return DefaultType$9}static get NAME(){return NAME$a}toggle(){return this._isShown()?this.hide():this.show()}show(){if(isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!EventHandler.trigger(this._element,EVENT_SHOW$5,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(SELECTOR_NAVBAR_NAV))for(const i of[].concat(...document.body.children))EventHandler.on(i,"mouseover",noop$3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(CLASS_NAME_SHOW$6),this._element.classList.add(CLASS_NAME_SHOW$6),EventHandler.trigger(this._element,EVENT_SHOWN$5,e)}}hide(){if(isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!EventHandler.trigger(this._element,EVENT_HIDE$5,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))EventHandler.off(i,"mouseover",noop$3);this._popper&&this._popper.destroy(),this._menu.classList.remove(CLASS_NAME_SHOW$6),this._element.classList.remove(CLASS_NAME_SHOW$6),this._element.setAttribute("aria-expanded","false"),Manipulator.removeDataAttribute(this._menu,"popper"),EventHandler.trigger(this._element,EVENT_HIDDEN$5,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!isElement(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${NAME$a.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Popper>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:isElement(this._config.reference)?e=getElement(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(CLASS_NAME_SHOW$6)}_getPlacement(){const e=this._parent;if(e.classList.contains(CLASS_NAME_DROPEND))return PLACEMENT_RIGHT;if(e.classList.contains(CLASS_NAME_DROPSTART))return PLACEMENT_LEFT;if(e.classList.contains(CLASS_NAME_DROPUP_CENTER))return PLACEMENT_TOPCENTER;if(e.classList.contains(CLASS_NAME_DROPDOWN_CENTER))return PLACEMENT_BOTTOMCENTER;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(CLASS_NAME_DROPUP)?t?PLACEMENT_TOPEND:PLACEMENT_TOP:t?PLACEMENT_BOTTOMEND:PLACEMENT_BOTTOM}_detectNavbar(){return this._element.closest(SELECTOR_NAVBAR)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Manipulator.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...execute(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const i=SelectorEngine.find(SELECTOR_VISIBLE_ITEMS,this._menu).filter(n=>isVisible$1(n));i.length&&getNextActiveElement(i,t,e===ARROW_DOWN_KEY$1,!i.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Dropdown.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===RIGHT_MOUSE_BUTTON||e.type==="keyup"&&e.key!==TAB_KEY$1)return;const t=SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);for(const i of t){const n=Dropdown.getInstance(i);if(!n||n._config.autoClose===!1)continue;const o=e.composedPath(),r=o.includes(n._menu);if(o.includes(n._element)||n._config.autoClose==="inside"&&!r||n._config.autoClose==="outside"&&r||n._menu.contains(e.target)&&(e.type==="keyup"&&e.key===TAB_KEY$1||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:n._element};e.type==="click"&&(a.clickEvent=e),n._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i=e.key===ESCAPE_KEY$2,n=[ARROW_UP_KEY$1,ARROW_DOWN_KEY$1].includes(e.key);if(!n&&!i||t&&!i)return;e.preventDefault();const o=this.matches(SELECTOR_DATA_TOGGLE$3)?this:SelectorEngine.prev(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.next(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3,e.delegateTarget.parentNode),r=Dropdown.getOrCreateInstance(o);if(n){e.stopPropagation(),r.show(),r._selectMenuItem(e);return}r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$3,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_CLICK_DATA_API$3,Dropdown.clearMenus);EventHandler.on(document,EVENT_KEYUP_DATA_API,Dropdown.clearMenus);EventHandler.on(document,EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$3,function(s){s.preventDefault(),Dropdown.getOrCreateInstance(this).toggle()});defineJQueryPlugin(Dropdown);const NAME$9="backdrop",CLASS_NAME_FADE$4="fade",CLASS_NAME_SHOW$5="show",EVENT_MOUSEDOWN=`mousedown.bs.${NAME$9}`,Default$8={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},DefaultType$8={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Backdrop extends Config$1{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Default$8}static get DefaultType(){return DefaultType$8}static get NAME(){return NAME$9}show(e){if(!this._config.isVisible){execute(e);return}this._append();const t=this._getElement();this._config.isAnimated&&reflow(t),t.classList.add(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{execute(e)})}hide(e){if(!this._config.isVisible){execute(e);return}this._getElement().classList.remove(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{this.dispose(),execute(e)})}dispose(){this._isAppended&&(EventHandler.off(this._element,EVENT_MOUSEDOWN),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(CLASS_NAME_FADE$4),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=getElement(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),EventHandler.on(e,EVENT_MOUSEDOWN,()=>{execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}const NAME$8="focustrap",DATA_KEY$5="bs.focustrap",EVENT_KEY$5=`.${DATA_KEY$5}`,EVENT_FOCUSIN$2=`focusin${EVENT_KEY$5}`,EVENT_KEYDOWN_TAB=`keydown.tab${EVENT_KEY$5}`,TAB_KEY="Tab",TAB_NAV_FORWARD="forward",TAB_NAV_BACKWARD="backward",Default$7={autofocus:!0,trapElement:null},DefaultType$7={autofocus:"boolean",trapElement:"element"};class FocusTrap extends Config$1{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Default$7}static get DefaultType(){return DefaultType$7}static get NAME(){return NAME$8}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),EventHandler.off(document,EVENT_KEY$5),EventHandler.on(document,EVENT_FOCUSIN$2,e=>this._handleFocusin(e)),EventHandler.on(document,EVENT_KEYDOWN_TAB,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,EventHandler.off(document,EVENT_KEY$5))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=SelectorEngine.focusableChildren(t);i.length===0?t.focus():this._lastTabNavDirection===TAB_NAV_BACKWARD?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){e.key===TAB_KEY&&(this._lastTabNavDirection=e.shiftKey?TAB_NAV_BACKWARD:TAB_NAV_FORWARD)}}const SELECTOR_FIXED_CONTENT=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",SELECTOR_STICKY_CONTENT=".sticky-top",PROPERTY_PADDING="padding-right",PROPERTY_MARGIN="margin-right";class ScrollBarHelper{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,PROPERTY_PADDING,t=>t+e),this._setElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING,t=>t+e),this._setElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth(),o=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+n)return;this._saveInitialAttribute(r,t);const a=window.getComputedStyle(r).getPropertyValue(t);r.style.setProperty(t,`${i(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,o)}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&Manipulator.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){const i=n=>{const o=Manipulator.getDataAttribute(n,t);if(o===null){n.style.removeProperty(t);return}Manipulator.removeDataAttribute(n,t),n.style.setProperty(t,o)};this._applyManipulationCallback(e,i)}_applyManipulationCallback(e,t){if(isElement(e)){t(e);return}for(const i of SelectorEngine.find(e,this._element))t(i)}}const NAME$7="modal",DATA_KEY$4="bs.modal",EVENT_KEY$4=`.${DATA_KEY$4}`,DATA_API_KEY$2=".data-api",ESCAPE_KEY$1="Escape",EVENT_HIDE$4=`hide${EVENT_KEY$4}`,EVENT_HIDE_PREVENTED$1=`hidePrevented${EVENT_KEY$4}`,EVENT_HIDDEN$4=`hidden${EVENT_KEY$4}`,EVENT_SHOW$4=`show${EVENT_KEY$4}`,EVENT_SHOWN$4=`shown${EVENT_KEY$4}`,EVENT_RESIZE$1=`resize${EVENT_KEY$4}`,EVENT_CLICK_DISMISS=`click.dismiss${EVENT_KEY$4}`,EVENT_MOUSEDOWN_DISMISS=`mousedown.dismiss${EVENT_KEY$4}`,EVENT_KEYDOWN_DISMISS$1=`keydown.dismiss${EVENT_KEY$4}`,EVENT_CLICK_DATA_API$2=`click${EVENT_KEY$4}${DATA_API_KEY$2}`,CLASS_NAME_OPEN="modal-open",CLASS_NAME_FADE$3="fade",CLASS_NAME_SHOW$4="show",CLASS_NAME_STATIC="modal-static",OPEN_SELECTOR$1=".modal.show",SELECTOR_DIALOG=".modal-dialog",SELECTOR_MODAL_BODY=".modal-body",SELECTOR_DATA_TOGGLE$2='[data-bs-toggle="modal"]',Default$6={backdrop:!0,focus:!0,keyboard:!0},DefaultType$6={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Modal extends BaseComponent{constructor(e,t){super(e,t),this._dialog=SelectorEngine.findOne(SELECTOR_DIALOG,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ScrollBarHelper,this._addEventListeners()}static get Default(){return Default$6}static get DefaultType(){return DefaultType$6}static get NAME(){return NAME$7}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$4,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(CLASS_NAME_OPEN),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_HIDE$4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(CLASS_NAME_SHOW$4),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){EventHandler.off(window,EVENT_KEY$4),EventHandler.off(this._dialog,EVENT_KEY$4),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Backdrop({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=SelectorEngine.findOne(SELECTOR_MODAL_BODY,this._dialog);t&&(t.scrollTop=0),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW$4);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,EventHandler.trigger(this._element,EVENT_SHOWN$4,{relatedTarget:e})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS$1,e=>{if(e.key===ESCAPE_KEY$1){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),EventHandler.on(window,EVENT_RESIZE$1,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),EventHandler.on(this._element,EVENT_MOUSEDOWN_DISMISS,e=>{EventHandler.one(this._element,EVENT_CLICK_DISMISS,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(CLASS_NAME_OPEN),this._resetAdjustments(),this._scrollBar.reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$4)})}_isAnimated(){return this._element.classList.contains(CLASS_NAME_FADE$3)}_triggerBackdropTransition(){if(EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED$1).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(CLASS_NAME_STATIC)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.classList.remove(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const n=isRTL()?"paddingLeft":"paddingRight";this._element.style[n]=`${t}px`}if(!i&&e){const n=isRTL()?"paddingRight":"paddingLeft";this._element.style[n]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const i=Modal.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof i[e]>"u")throw new TypeError(`No method named "${e}"`);i[e](t)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$2,SELECTOR_DATA_TOGGLE$2,function(s){const e=SelectorEngine.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),EventHandler.one(e,EVENT_SHOW$4,n=>{n.defaultPrevented||EventHandler.one(e,EVENT_HIDDEN$4,()=>{isVisible$1(this)&&this.focus()})});const t=SelectorEngine.findOne(OPEN_SELECTOR$1);t&&Modal.getInstance(t).hide(),Modal.getOrCreateInstance(e).toggle(this)});enableDismissTrigger(Modal);defineJQueryPlugin(Modal);const NAME$6="offcanvas",DATA_KEY$3="bs.offcanvas",EVENT_KEY$3=`.${DATA_KEY$3}`,DATA_API_KEY$1=".data-api",EVENT_LOAD_DATA_API$2=`load${EVENT_KEY$3}${DATA_API_KEY$1}`,ESCAPE_KEY="Escape",CLASS_NAME_SHOW$3="show",CLASS_NAME_SHOWING$1="showing",CLASS_NAME_HIDING="hiding",CLASS_NAME_BACKDROP="offcanvas-backdrop",OPEN_SELECTOR=".offcanvas.show",EVENT_SHOW$3=`show${EVENT_KEY$3}`,EVENT_SHOWN$3=`shown${EVENT_KEY$3}`,EVENT_HIDE$3=`hide${EVENT_KEY$3}`,EVENT_HIDE_PREVENTED=`hidePrevented${EVENT_KEY$3}`,EVENT_HIDDEN$3=`hidden${EVENT_KEY$3}`,EVENT_RESIZE=`resize${EVENT_KEY$3}`,EVENT_CLICK_DATA_API$1=`click${EVENT_KEY$3}${DATA_API_KEY$1}`,EVENT_KEYDOWN_DISMISS=`keydown.dismiss${EVENT_KEY$3}`,SELECTOR_DATA_TOGGLE$1='[data-bs-toggle="offcanvas"]',Default$5={backdrop:!0,keyboard:!0,scroll:!1},DefaultType$5={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Offcanvas extends BaseComponent{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Default$5}static get DefaultType(){return DefaultType$5}static get NAME(){return NAME$6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||EventHandler.trigger(this._element,EVENT_SHOW$3,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ScrollBarHelper().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(CLASS_NAME_SHOWING$1);const i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(CLASS_NAME_SHOW$3),this._element.classList.remove(CLASS_NAME_SHOWING$1),EventHandler.trigger(this._element,EVENT_SHOWN$3,{relatedTarget:e})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||EventHandler.trigger(this._element,EVENT_HIDE$3).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(CLASS_NAME_HIDING),this._backdrop.hide();const t=()=>{this._element.classList.remove(CLASS_NAME_SHOW$3,CLASS_NAME_HIDING),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ScrollBarHelper().reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$3)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED);return}this.hide()},t=!!this._config.backdrop;return new Backdrop({className:CLASS_NAME_BACKDROP,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS,e=>{if(e.key===ESCAPE_KEY){if(this._config.keyboard){this.hide();return}EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED)}})}static jQueryInterface(e){return this.each(function(){const t=Offcanvas.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$1,SELECTOR_DATA_TOGGLE$1,function(s){const e=SelectorEngine.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),isDisabled(this))return;EventHandler.one(e,EVENT_HIDDEN$3,()=>{isVisible$1(this)&&this.focus()});const t=SelectorEngine.findOne(OPEN_SELECTOR);t&&t!==e&&Offcanvas.getInstance(t).hide(),Offcanvas.getOrCreateInstance(e).toggle(this)});EventHandler.on(window,EVENT_LOAD_DATA_API$2,()=>{for(const s of SelectorEngine.find(OPEN_SELECTOR))Offcanvas.getOrCreateInstance(s).show()});EventHandler.on(window,EVENT_RESIZE,()=>{for(const s of SelectorEngine.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Offcanvas.getOrCreateInstance(s).hide()});enableDismissTrigger(Offcanvas);defineJQueryPlugin(Offcanvas);const ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i,DefaultAllowlist={"*":["class","dir","id","lang","role",ARIA_ATTRIBUTE_PATTERN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},uriAttributes=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),SAFE_URL_PATTERN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,allowedAttribute=(s,e)=>{const t=s.nodeName.toLowerCase();return e.includes(t)?uriAttributes.has(t)?!!SAFE_URL_PATTERN.test(s.nodeValue):!0:e.filter(i=>i instanceof RegExp).some(i=>i.test(t))};function sanitizeHtml(s,e,t){if(!s.length)return s;if(t&&typeof t=="function")return t(s);const n=new window.DOMParser().parseFromString(s,"text/html"),o=[].concat(...n.body.querySelectorAll("*"));for(const r of o){const a=r.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){r.remove();continue}const l=[].concat(...r.attributes),d=[].concat(e["*"]||[],e[a]||[]);for(const h of l)allowedAttribute(h,d)||r.removeAttribute(h.nodeName)}return n.body.innerHTML}const NAME$5="TemplateFactory",Default$4={allowList:DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},DefaultType$4={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},DefaultContentType={entry:"(string|element|function|null)",selector:"(string|element)"};class TemplateFactory extends Config$1{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Default$4}static get DefaultType(){return DefaultType$4}static get NAME(){return NAME$5}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[n,o]of Object.entries(this._config.content))this._setContent(e,o,n);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},DefaultContentType)}_setContent(e,t,i){const n=SelectorEngine.findOne(i,e);if(n){if(t=this._resolvePossibleFunction(t),!t){n.remove();return}if(isElement(t)){this._putElementInTemplate(getElement(t),n);return}if(this._config.html){n.innerHTML=this._maybeSanitize(t);return}n.textContent=t}}_maybeSanitize(e){return this._config.sanitize?sanitizeHtml(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return execute(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const NAME$4="tooltip",DISALLOWED_ATTRIBUTES=new Set(["sanitize","allowList","sanitizeFn"]),CLASS_NAME_FADE$2="fade",CLASS_NAME_MODAL="modal",CLASS_NAME_SHOW$2="show",SELECTOR_TOOLTIP_INNER=".tooltip-inner",SELECTOR_MODAL=`.${CLASS_NAME_MODAL}`,EVENT_MODAL_HIDE="hide.bs.modal",TRIGGER_HOVER="hover",TRIGGER_FOCUS="focus",TRIGGER_CLICK="click",TRIGGER_MANUAL="manual",EVENT_HIDE$2="hide",EVENT_HIDDEN$2="hidden",EVENT_SHOW$2="show",EVENT_SHOWN$2="shown",EVENT_INSERTED="inserted",EVENT_CLICK$1="click",EVENT_FOCUSIN$1="focusin",EVENT_FOCUSOUT$1="focusout",EVENT_MOUSEENTER="mouseenter",EVENT_MOUSELEAVE="mouseleave",AttachmentMap={AUTO:"auto",TOP:"top",RIGHT:isRTL()?"left":"right",BOTTOM:"bottom",LEFT:isRTL()?"right":"left"},Default$3={allowList:DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},DefaultType$3={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let Tooltip$1=class Nn extends BaseComponent{constructor(e,t){if(typeof Popper>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Default$3}static get DefaultType(){return DefaultType$3}static get NAME(){return NAME$4}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),EventHandler.off(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOW$2)),i=(findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!i)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(n),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_INSERTED))),this._popper=this._createPopper(n),n.classList.add(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))EventHandler.on(a,"mouseover",noop$3);const r=()=>{EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOWN$2)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown()||EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDE$2)).defaultPrevented)return;if(this._getTipElement().classList.remove(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))EventHandler.off(n,"mouseover",noop$3);this._activeTrigger[TRIGGER_CLICK]=!1,this._activeTrigger[TRIGGER_FOCUS]=!1,this._activeTrigger[TRIGGER_HOVER]=!1,this._isHovered=null;const i=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDDEN$2)))};this._queueCallback(i,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(CLASS_NAME_FADE$2,CLASS_NAME_SHOW$2),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=getUID(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(CLASS_NAME_FADE$2),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new TemplateFactory({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[SELECTOR_TOOLTIP_INNER]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(CLASS_NAME_FADE$2)}_isShown(){return this.tip&&this.tip.classList.contains(CLASS_NAME_SHOW$2)}_createPopper(e){const t=execute(this._config.placement,[this,e,this._element]),i=AttachmentMap[t.toUpperCase()];return createPopper(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return execute(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:i=>{this._getTipElement().setAttribute("data-popper-placement",i.state.placement)}}]};return{...t,...execute(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")EventHandler.on(this._element,this.constructor.eventName(EVENT_CLICK$1),this._config.selector,i=>{this._initializeOnDelegatedTarget(i).toggle()});else if(t!==TRIGGER_MANUAL){const i=t===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSEENTER):this.constructor.eventName(EVENT_FOCUSIN$1),n=t===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSELEAVE):this.constructor.eventName(EVENT_FOCUSOUT$1);EventHandler.on(this._element,i,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusin"?TRIGGER_FOCUS:TRIGGER_HOVER]=!0,r._enter()}),EventHandler.on(this._element,n,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusout"?TRIGGER_FOCUS:TRIGGER_HOVER]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},EventHandler.on(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=Manipulator.getDataAttributes(this._element);for(const i of Object.keys(t))DISALLOWED_ATTRIBUTES.has(i)&&delete t[i];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:getElement(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Nn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}};defineJQueryPlugin(Tooltip$1);const NAME$3="popover",SELECTOR_TITLE=".popover-header",SELECTOR_CONTENT=".popover-body",Default$2={...Tooltip$1.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},DefaultType$2={...Tooltip$1.DefaultType,content:"(null|string|element|function)"};class Popover extends Tooltip$1{static get Default(){return Default$2}static get DefaultType(){return DefaultType$2}static get NAME(){return NAME$3}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[SELECTOR_TITLE]:this._getTitle(),[SELECTOR_CONTENT]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Popover.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}defineJQueryPlugin(Popover);const NAME$2="scrollspy",DATA_KEY$2="bs.scrollspy",EVENT_KEY$2=`.${DATA_KEY$2}`,DATA_API_KEY=".data-api",EVENT_ACTIVATE=`activate${EVENT_KEY$2}`,EVENT_CLICK=`click${EVENT_KEY$2}`,EVENT_LOAD_DATA_API$1=`load${EVENT_KEY$2}${DATA_API_KEY}`,CLASS_NAME_DROPDOWN_ITEM="dropdown-item",CLASS_NAME_ACTIVE$1="active",SELECTOR_DATA_SPY='[data-bs-spy="scroll"]',SELECTOR_TARGET_LINKS="[href]",SELECTOR_NAV_LIST_GROUP=".nav, .list-group",SELECTOR_NAV_LINKS=".nav-link",SELECTOR_NAV_ITEMS=".nav-item",SELECTOR_LIST_ITEMS=".list-group-item",SELECTOR_LINK_ITEMS=`${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`,SELECTOR_DROPDOWN=".dropdown",SELECTOR_DROPDOWN_TOGGLE$1=".dropdown-toggle",Default$1={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},DefaultType$1={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ScrollSpy extends BaseComponent{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Default$1}static get DefaultType(){return DefaultType$1}static get NAME(){return NAME$2}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=getElement(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(EventHandler.off(this._config.target,EVENT_CLICK),EventHandler.on(this._config.target,EVENT_CLICK,SELECTOR_TARGET_LINKS,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:n,behavior:"smooth"});return}i.scrollTop=n}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=r=>this._targetLinks.get(`#${r.target.id}`),i=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(t(r))},n=(this._rootElement||document.documentElement).scrollTop,o=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const a=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(i(r),!n)return;continue}!o&&!a&&i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=SelectorEngine.find(SELECTOR_TARGET_LINKS,this._config.target);for(const t of e){if(!t.hash||isDisabled(t))continue;const i=SelectorEngine.findOne(decodeURI(t.hash),this._element);isVisible$1(i)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,i))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(CLASS_NAME_ACTIVE$1),this._activateParents(e),EventHandler.trigger(this._element,EVENT_ACTIVATE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(CLASS_NAME_DROPDOWN_ITEM)){SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1,e.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);return}for(const t of SelectorEngine.parents(e,SELECTOR_NAV_LIST_GROUP))for(const i of SelectorEngine.prev(t,SELECTOR_LINK_ITEMS))i.classList.add(CLASS_NAME_ACTIVE$1)}_clearActiveClass(e){e.classList.remove(CLASS_NAME_ACTIVE$1);const t=SelectorEngine.find(`${SELECTOR_TARGET_LINKS}.${CLASS_NAME_ACTIVE$1}`,e);for(const i of t)i.classList.remove(CLASS_NAME_ACTIVE$1)}static jQueryInterface(e){return this.each(function(){const t=ScrollSpy.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}EventHandler.on(window,EVENT_LOAD_DATA_API$1,()=>{for(const s of SelectorEngine.find(SELECTOR_DATA_SPY))ScrollSpy.getOrCreateInstance(s)});defineJQueryPlugin(ScrollSpy);const NAME$1="tab",DATA_KEY$1="bs.tab",EVENT_KEY$1=`.${DATA_KEY$1}`,EVENT_HIDE$1=`hide${EVENT_KEY$1}`,EVENT_HIDDEN$1=`hidden${EVENT_KEY$1}`,EVENT_SHOW$1=`show${EVENT_KEY$1}`,EVENT_SHOWN$1=`shown${EVENT_KEY$1}`,EVENT_CLICK_DATA_API=`click${EVENT_KEY$1}`,EVENT_KEYDOWN=`keydown${EVENT_KEY$1}`,EVENT_LOAD_DATA_API=`load${EVENT_KEY$1}`,ARROW_LEFT_KEY="ArrowLeft",ARROW_RIGHT_KEY="ArrowRight",ARROW_UP_KEY="ArrowUp",ARROW_DOWN_KEY="ArrowDown",HOME_KEY="Home",END_KEY="End",CLASS_NAME_ACTIVE="active",CLASS_NAME_FADE$1="fade",CLASS_NAME_SHOW$1="show",CLASS_DROPDOWN="dropdown",SELECTOR_DROPDOWN_TOGGLE=".dropdown-toggle",SELECTOR_DROPDOWN_MENU=".dropdown-menu",NOT_SELECTOR_DROPDOWN_TOGGLE=`:not(${SELECTOR_DROPDOWN_TOGGLE})`,SELECTOR_TAB_PANEL='.list-group, .nav, [role="tablist"]',SELECTOR_OUTER=".nav-item, .list-group-item",SELECTOR_INNER=`.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`,SELECTOR_DATA_TOGGLE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',SELECTOR_INNER_ELEM=`${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`,SELECTOR_DATA_TOGGLE_ACTIVE=`.${CLASS_NAME_ACTIVE}[data-bs-toggle="tab"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="pill"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="list"]`;class Tab extends BaseComponent{constructor(e){super(e),this._parent=this._element.closest(SELECTOR_TAB_PANEL),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),EventHandler.on(this._element,EVENT_KEYDOWN,t=>this._keydown(t)))}static get NAME(){return NAME$1}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?EventHandler.trigger(t,EVENT_HIDE$1,{relatedTarget:e}):null;EventHandler.trigger(e,EVENT_SHOW$1,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(CLASS_NAME_ACTIVE),this._activate(SelectorEngine.getElementFromSelector(e));const i=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(CLASS_NAME_SHOW$1);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),EventHandler.trigger(e,EVENT_SHOWN$1,{relatedTarget:t})};this._queueCallback(i,e,e.classList.contains(CLASS_NAME_FADE$1))}_deactivate(e,t){if(!e)return;e.classList.remove(CLASS_NAME_ACTIVE),e.blur(),this._deactivate(SelectorEngine.getElementFromSelector(e));const i=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(CLASS_NAME_SHOW$1);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),EventHandler.trigger(e,EVENT_HIDDEN$1,{relatedTarget:t})};this._queueCallback(i,e,e.classList.contains(CLASS_NAME_FADE$1))}_keydown(e){if(![ARROW_LEFT_KEY,ARROW_RIGHT_KEY,ARROW_UP_KEY,ARROW_DOWN_KEY,HOME_KEY,END_KEY].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(n=>!isDisabled(n));let i;if([HOME_KEY,END_KEY].includes(e.key))i=t[e.key===HOME_KEY?0:t.length-1];else{const n=[ARROW_RIGHT_KEY,ARROW_DOWN_KEY].includes(e.key);i=getNextActiveElement(t,e.target,n,!0)}i&&(i.focus({preventScroll:!0}),Tab.getOrCreateInstance(i).show())}_getChildren(){return SelectorEngine.find(SELECTOR_INNER_ELEM,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const i of t)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=SelectorEngine.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains(CLASS_DROPDOWN))return;const n=(o,r)=>{const a=SelectorEngine.findOne(o,i);a&&a.classList.toggle(r,t)};n(SELECTOR_DROPDOWN_TOGGLE,CLASS_NAME_ACTIVE),n(SELECTOR_DROPDOWN_MENU,CLASS_NAME_SHOW$1),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(CLASS_NAME_ACTIVE)}_getInnerElement(e){return e.matches(SELECTOR_INNER_ELEM)?e:SelectorEngine.findOne(SELECTOR_INNER_ELEM,e)}_getOuterElement(e){return e.closest(SELECTOR_OUTER)||e}static jQueryInterface(e){return this.each(function(){const t=Tab.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),!isDisabled(this)&&Tab.getOrCreateInstance(this).show()});EventHandler.on(window,EVENT_LOAD_DATA_API,()=>{for(const s of SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE))Tab.getOrCreateInstance(s)});defineJQueryPlugin(Tab);const NAME="toast",DATA_KEY="bs.toast",EVENT_KEY=`.${DATA_KEY}`,EVENT_MOUSEOVER=`mouseover${EVENT_KEY}`,EVENT_MOUSEOUT=`mouseout${EVENT_KEY}`,EVENT_FOCUSIN=`focusin${EVENT_KEY}`,EVENT_FOCUSOUT=`focusout${EVENT_KEY}`,EVENT_HIDE=`hide${EVENT_KEY}`,EVENT_HIDDEN=`hidden${EVENT_KEY}`,EVENT_SHOW=`show${EVENT_KEY}`,EVENT_SHOWN=`shown${EVENT_KEY}`,CLASS_NAME_FADE="fade",CLASS_NAME_HIDE="hide",CLASS_NAME_SHOW="show",CLASS_NAME_SHOWING="showing",DefaultType={animation:"boolean",autohide:"boolean",delay:"number"},Default={animation:!0,autohide:!0,delay:5e3};class Toast extends BaseComponent{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Default}static get DefaultType(){return DefaultType}static get NAME(){return NAME}show(){if(EventHandler.trigger(this._element,EVENT_SHOW).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(CLASS_NAME_FADE);const t=()=>{this._element.classList.remove(CLASS_NAME_SHOWING),EventHandler.trigger(this._element,EVENT_SHOWN),this._maybeScheduleHide()};this._element.classList.remove(CLASS_NAME_HIDE),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW,CLASS_NAME_SHOWING),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||EventHandler.trigger(this._element,EVENT_HIDE).defaultPrevented)return;const t=()=>{this._element.classList.add(CLASS_NAME_HIDE),this._element.classList.remove(CLASS_NAME_SHOWING,CLASS_NAME_SHOW),EventHandler.trigger(this._element,EVENT_HIDDEN)};this._element.classList.add(CLASS_NAME_SHOWING),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(CLASS_NAME_SHOW),super.dispose()}isShown(){return this._element.classList.contains(CLASS_NAME_SHOW)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){EventHandler.on(this._element,EVENT_MOUSEOVER,e=>this._onInteraction(e,!0)),EventHandler.on(this._element,EVENT_MOUSEOUT,e=>this._onInteraction(e,!1)),EventHandler.on(this._element,EVENT_FOCUSIN,e=>this._onInteraction(e,!0)),EventHandler.on(this._element,EVENT_FOCUSOUT,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Toast.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}enableDismissTrigger(Toast);defineJQueryPlugin(Toast);function toDate(s){const e=Object.prototype.toString.call(s);return s instanceof Date||typeof s=="object"&&e==="[object Date]"?new s.constructor(+s):typeof s=="number"||e==="[object Number]"||typeof s=="string"||e==="[object String]"?new Date(s):new Date(NaN)}function constructFrom(s,e){return s instanceof Date?new s.constructor(e):new Date(e)}function addDays(s,e){const t=toDate(s);return isNaN(e)?constructFrom(s,NaN):(e&&t.setDate(t.getDate()+e),t)}function addMonths(s,e){const t=toDate(s);if(isNaN(e))return constructFrom(s,NaN);if(!e)return t;const i=t.getDate(),n=constructFrom(s,t.getTime());n.setMonth(t.getMonth()+e+1,0);const o=n.getDate();return i>=o?n:(t.setFullYear(n.getFullYear(),n.getMonth(),i),t)}function addMilliseconds(s,e){const t=+toDate(s);return constructFrom(s,t+e)}const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;function addHours(s,e){return addMilliseconds(s,e*millisecondsInHour)}let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(s,e){var a,l,d,h;const t=getDefaultOptions$1(),i=(e==null?void 0:e.weekStartsOn)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??t.weekStartsOn??((h=(d=t.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,n=toDate(s),o=n.getDay(),r=(o<i?7:0)+o-i;return n.setDate(n.getDate()-r),n.setHours(0,0,0,0),n}function startOfISOWeek(s){return startOfWeek(s,{weekStartsOn:1})}function getISOWeekYear(s){const e=toDate(s),t=e.getFullYear(),i=constructFrom(s,0);i.setFullYear(t+1,0,4),i.setHours(0,0,0,0);const n=startOfISOWeek(i),o=constructFrom(s,0);o.setFullYear(t,0,4),o.setHours(0,0,0,0);const r=startOfISOWeek(o);return e.getTime()>=n.getTime()?t+1:e.getTime()>=r.getTime()?t:t-1}function startOfDay(s){const e=toDate(s);return e.setHours(0,0,0,0),e}function getTimezoneOffsetInMilliseconds(s){const e=toDate(s),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+s-+t}function differenceInCalendarDays(s,e){const t=startOfDay(s),i=startOfDay(e),n=+t-getTimezoneOffsetInMilliseconds(t),o=+i-getTimezoneOffsetInMilliseconds(i);return Math.round((n-o)/millisecondsInDay)}function startOfISOWeekYear(s){const e=getISOWeekYear(s),t=constructFrom(s,0);return t.setFullYear(e,0,4),t.setHours(0,0,0,0),startOfISOWeek(t)}function addMinutes(s,e){return addMilliseconds(s,e*millisecondsInMinute)}function addQuarters(s,e){const t=e*3;return addMonths(s,t)}function addSeconds(s,e){return addMilliseconds(s,e*1e3)}function addWeeks(s,e){const t=e*7;return addDays(s,t)}function addYears(s,e){return addMonths(s,e*12)}function compareAsc(s,e){const t=toDate(s),i=toDate(e),n=t.getTime()-i.getTime();return n<0?-1:n>0?1:n}function isDate(s){return s instanceof Date||typeof s=="object"&&Object.prototype.toString.call(s)==="[object Date]"}function isValid(s){if(!isDate(s)&&typeof s!="number")return!1;const e=toDate(s);return!isNaN(Number(e))}function differenceInCalendarMonths(s,e){const t=toDate(s),i=toDate(e),n=t.getFullYear()-i.getFullYear(),o=t.getMonth()-i.getMonth();return n*12+o}function differenceInCalendarYears(s,e){const t=toDate(s),i=toDate(e);return t.getFullYear()-i.getFullYear()}function differenceInDays(s,e){const t=toDate(s),i=toDate(e),n=compareLocalAsc(t,i),o=Math.abs(differenceInCalendarDays(t,i));t.setDate(t.getDate()-n*o);const r=+(compareLocalAsc(t,i)===-n),a=n*(o-r);return a===0?0:a}function compareLocalAsc(s,e){const t=s.getFullYear()-e.getFullYear()||s.getMonth()-e.getMonth()||s.getDate()-e.getDate()||s.getHours()-e.getHours()||s.getMinutes()-e.getMinutes()||s.getSeconds()-e.getSeconds()||s.getMilliseconds()-e.getMilliseconds();return t<0?-1:t>0?1:t}function getRoundingMethod(s){return e=>{const i=(s?Math[s]:Math.trunc)(e);return i===0?0:i}}function differenceInMilliseconds(s,e){return+toDate(s)-+toDate(e)}function differenceInHours(s,e,t){const i=differenceInMilliseconds(s,e)/millisecondsInHour;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function differenceInMinutes(s,e,t){const i=differenceInMilliseconds(s,e)/millisecondsInMinute;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function endOfDay(s){const e=toDate(s);return e.setHours(23,59,59,999),e}function endOfMonth(s){const e=toDate(s),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(23,59,59,999),e}function isLastDayOfMonth(s){const e=toDate(s);return+endOfDay(e)==+endOfMonth(e)}function differenceInMonths(s,e){const t=toDate(s),i=toDate(e),n=compareAsc(t,i),o=Math.abs(differenceInCalendarMonths(t,i));let r;if(o<1)r=0;else{t.getMonth()===1&&t.getDate()>27&&t.setDate(30),t.setMonth(t.getMonth()-n*o);let a=compareAsc(t,i)===-n;isLastDayOfMonth(toDate(s))&&o===1&&compareAsc(s,i)===1&&(a=!1),r=n*(o-Number(a))}return r===0?0:r}function differenceInQuarters(s,e,t){const i=differenceInMonths(s,e)/3;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function differenceInSeconds(s,e,t){const i=differenceInMilliseconds(s,e)/1e3;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function differenceInWeeks(s,e,t){const i=differenceInDays(s,e)/7;return getRoundingMethod(t==null?void 0:t.roundingMethod)(i)}function differenceInYears(s,e){const t=toDate(s),i=toDate(e),n=compareAsc(t,i),o=Math.abs(differenceInCalendarYears(t,i));t.setFullYear(1584),i.setFullYear(1584);const r=compareAsc(t,i)===-n,a=n*(o-+r);return a===0?0:a}function startOfMinute(s){const e=toDate(s);return e.setSeconds(0,0),e}function startOfQuarter(s){const e=toDate(s),t=e.getMonth(),i=t-t%3;return e.setMonth(i,1),e.setHours(0,0,0,0),e}function startOfMonth(s){const e=toDate(s);return e.setDate(1),e.setHours(0,0,0,0),e}function endOfYear(s){const e=toDate(s),t=e.getFullYear();return e.setFullYear(t+1,0,0),e.setHours(23,59,59,999),e}function startOfYear(s){const e=toDate(s),t=constructFrom(s,0);return t.setFullYear(e.getFullYear(),0,1),t.setHours(0,0,0,0),t}function endOfHour(s){const e=toDate(s);return e.setMinutes(59,59,999),e}function endOfWeek(s,e){var a,l,d,h;const t=getDefaultOptions$1(),i=(e==null?void 0:e.weekStartsOn)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??t.weekStartsOn??((h=(d=t.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,n=toDate(s),o=n.getDay(),r=(o<i?-7:0)+6-(o-i);return n.setDate(n.getDate()+r),n.setHours(23,59,59,999),n}function endOfMinute(s){const e=toDate(s);return e.setSeconds(59,999),e}function endOfQuarter(s){const e=toDate(s),t=e.getMonth(),i=t-t%3+3;return e.setMonth(i,0),e.setHours(23,59,59,999),e}function endOfSecond(s){const e=toDate(s);return e.setMilliseconds(999),e}const formatDistanceLocale$t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$u=(s,e,t)=>{let i;const n=formatDistanceLocale$t[s];return typeof n=="string"?i=n:e===1?i=n.one:i=n.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+i:i+" ago":i};function buildFormatLongFn(s){return(e={})=>{const t=e.width?String(e.width):s.defaultWidth;return s.formats[t]||s.formats[s.defaultWidth]}}const dateFormats$v={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats$v={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats$v={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$v={date:buildFormatLongFn({formats:dateFormats$v,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$v,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$v,defaultWidth:"full"})},formatRelativeLocale$u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$u=(s,e,t,i)=>formatRelativeLocale$u[s];function buildLocalizeFn(s){return(e,t)=>{const i=t!=null&&t.context?String(t.context):"standalone";let n;if(i==="formatting"&&s.formattingValues){const r=s.defaultFormattingWidth||s.defaultWidth,a=t!=null&&t.width?String(t.width):r;n=s.formattingValues[a]||s.formattingValues[r]}else{const r=s.defaultWidth,a=t!=null&&t.width?String(t.width):s.defaultWidth;n=s.values[a]||s.values[r]}const o=s.argumentCallback?s.argumentCallback(e):e;return n[o]}}const eraValues$u={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues$u={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues$u={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues$u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues$u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues$l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber$u=(s,e)=>{const t=Number(s),i=t%100;if(i>20||i<10)switch(i%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},localize$u={ordinalNumber:ordinalNumber$u,era:buildLocalizeFn({values:eraValues$u,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$u,defaultWidth:"wide",argumentCallback:s=>s-1}),month:buildLocalizeFn({values:monthValues$u,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$u,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$u,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$l,defaultFormattingWidth:"wide"})};function buildMatchFn(s){return(e,t={})=>{const i=t.width,n=i&&s.matchPatterns[i]||s.matchPatterns[s.defaultMatchWidth],o=e.match(n);if(!o)return null;const r=o[0],a=i&&s.parsePatterns[i]||s.parsePatterns[s.defaultParseWidth],l=Array.isArray(a)?findIndex(a,p=>p.test(r)):findKey(a,p=>p.test(r));let d;d=s.valueCallback?s.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;const h=e.slice(r.length);return{value:d,rest:h}}}function findKey(s,e){for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&e(s[t]))return t}function findIndex(s,e){for(let t=0;t<s.length;t++)if(e(s[t]))return t}function buildMatchPatternFn(s){return(e,t={})=>{const i=e.match(s.matchPattern);if(!i)return null;const n=i[0],o=e.match(s.parsePattern);if(!o)return null;let r=s.valueCallback?s.valueCallback(o[0]):o[0];r=t.valueCallback?t.valueCallback(r):r;const a=e.slice(n.length);return{value:r,rest:a}}}const matchOrdinalNumberPattern$u=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern$u=/\d+/i,matchEraPatterns$u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns$u={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns$u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns$u={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$u={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns$u={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$u={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns$u={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns$u={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns$u={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match$u={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$u,parsePattern:parseOrdinalNumberPattern$u,valueCallback:s=>parseInt(s,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$u,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$u,defaultParseWidth:"any",valueCallback:s=>s+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$u,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$u,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$u,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$u,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$u,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance:formatDistance$u,formatLong:formatLong$v,formatRelative:formatRelative$u,localize:localize$u,match:match$u,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(s){const e=toDate(s);return differenceInCalendarDays(e,startOfYear(e))+1}function getISOWeek(s){const e=toDate(s),t=+startOfISOWeek(e)-+startOfISOWeekYear(e);return Math.round(t/millisecondsInWeek)+1}function getWeekYear(s,e){var h,p,m,v;const t=toDate(s),i=t.getFullYear(),n=getDefaultOptions$1(),o=(e==null?void 0:e.firstWeekContainsDate)??((p=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??n.firstWeekContainsDate??((v=(m=n.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??1,r=constructFrom(s,0);r.setFullYear(i+1,0,o),r.setHours(0,0,0,0);const a=startOfWeek(r,e),l=constructFrom(s,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);const d=startOfWeek(l,e);return t.getTime()>=a.getTime()?i+1:t.getTime()>=d.getTime()?i:i-1}function startOfWeekYear(s,e){var a,l,d,h;const t=getDefaultOptions$1(),i=(e==null?void 0:e.firstWeekContainsDate)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??t.firstWeekContainsDate??((h=(d=t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,n=getWeekYear(s,e),o=constructFrom(s,0);return o.setFullYear(n,0,i),o.setHours(0,0,0,0),startOfWeek(o,e)}function getWeek(s,e){const t=toDate(s),i=+startOfWeek(t,e)-+startOfWeekYear(t,e);return Math.round(i/millisecondsInWeek)+1}function addLeadingZeros(s,e){const t=s<0?"-":"",i=Math.abs(s).toString().padStart(e,"0");return t+i}const lightFormatters={y(s,e){const t=s.getFullYear(),i=t>0?t:1-t;return addLeadingZeros(e==="yy"?i%100:i,e.length)},M(s,e){const t=s.getMonth();return e==="M"?String(t+1):addLeadingZeros(t+1,2)},d(s,e){return addLeadingZeros(s.getDate(),e.length)},a(s,e){const t=s.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(s,e){return addLeadingZeros(s.getHours()%12||12,e.length)},H(s,e){return addLeadingZeros(s.getHours(),e.length)},m(s,e){return addLeadingZeros(s.getMinutes(),e.length)},s(s,e){return addLeadingZeros(s.getSeconds(),e.length)},S(s,e){const t=e.length,i=s.getMilliseconds(),n=Math.trunc(i*Math.pow(10,t-3));return addLeadingZeros(n,e.length)}},dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters$1={G:function(s,e,t){const i=s.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(i,{width:"abbreviated"});case"GGGGG":return t.era(i,{width:"narrow"});case"GGGG":default:return t.era(i,{width:"wide"})}},y:function(s,e,t){if(e==="yo"){const i=s.getFullYear(),n=i>0?i:1-i;return t.ordinalNumber(n,{unit:"year"})}return lightFormatters.y(s,e)},Y:function(s,e,t,i){const n=getWeekYear(s,i),o=n>0?n:1-n;if(e==="YY"){const r=o%100;return addLeadingZeros(r,2)}return e==="Yo"?t.ordinalNumber(o,{unit:"year"}):addLeadingZeros(o,e.length)},R:function(s,e){const t=getISOWeekYear(s);return addLeadingZeros(t,e.length)},u:function(s,e){const t=s.getFullYear();return addLeadingZeros(t,e.length)},Q:function(s,e,t){const i=Math.ceil((s.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return addLeadingZeros(i,2);case"Qo":return t.ordinalNumber(i,{unit:"quarter"});case"QQQ":return t.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(i,{width:"wide",context:"formatting"})}},q:function(s,e,t){const i=Math.ceil((s.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return addLeadingZeros(i,2);case"qo":return t.ordinalNumber(i,{unit:"quarter"});case"qqq":return t.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(i,{width:"wide",context:"standalone"})}},M:function(s,e,t){const i=s.getMonth();switch(e){case"M":case"MM":return lightFormatters.M(s,e);case"Mo":return t.ordinalNumber(i+1,{unit:"month"});case"MMM":return t.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(i,{width:"wide",context:"formatting"})}},L:function(s,e,t){const i=s.getMonth();switch(e){case"L":return String(i+1);case"LL":return addLeadingZeros(i+1,2);case"Lo":return t.ordinalNumber(i+1,{unit:"month"});case"LLL":return t.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(i,{width:"wide",context:"standalone"})}},w:function(s,e,t,i){const n=getWeek(s,i);return e==="wo"?t.ordinalNumber(n,{unit:"week"}):addLeadingZeros(n,e.length)},I:function(s,e,t){const i=getISOWeek(s);return e==="Io"?t.ordinalNumber(i,{unit:"week"}):addLeadingZeros(i,e.length)},d:function(s,e,t){return e==="do"?t.ordinalNumber(s.getDate(),{unit:"date"}):lightFormatters.d(s,e)},D:function(s,e,t){const i=getDayOfYear(s);return e==="Do"?t.ordinalNumber(i,{unit:"dayOfYear"}):addLeadingZeros(i,e.length)},E:function(s,e,t){const i=s.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(i,{width:"short",context:"formatting"});case"EEEE":default:return t.day(i,{width:"wide",context:"formatting"})}},e:function(s,e,t,i){const n=s.getDay(),o=(n-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return addLeadingZeros(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(n,{width:"short",context:"formatting"});case"eeee":default:return t.day(n,{width:"wide",context:"formatting"})}},c:function(s,e,t,i){const n=s.getDay(),o=(n-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return addLeadingZeros(o,e.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(n,{width:"narrow",context:"standalone"});case"cccccc":return t.day(n,{width:"short",context:"standalone"});case"cccc":default:return t.day(n,{width:"wide",context:"standalone"})}},i:function(s,e,t){const i=s.getDay(),n=i===0?7:i;switch(e){case"i":return String(n);case"ii":return addLeadingZeros(n,e.length);case"io":return t.ordinalNumber(n,{unit:"day"});case"iii":return t.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(i,{width:"short",context:"formatting"});case"iiii":default:return t.day(i,{width:"wide",context:"formatting"})}},a:function(s,e,t){const n=s.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(s,e,t){const i=s.getHours();let n;switch(i===12?n=dayPeriodEnum.noon:i===0?n=dayPeriodEnum.midnight:n=i/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(s,e,t){const i=s.getHours();let n;switch(i>=17?n=dayPeriodEnum.evening:i>=12?n=dayPeriodEnum.afternoon:i>=4?n=dayPeriodEnum.morning:n=dayPeriodEnum.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(s,e,t){if(e==="ho"){let i=s.getHours()%12;return i===0&&(i=12),t.ordinalNumber(i,{unit:"hour"})}return lightFormatters.h(s,e)},H:function(s,e,t){return e==="Ho"?t.ordinalNumber(s.getHours(),{unit:"hour"}):lightFormatters.H(s,e)},K:function(s,e,t){const i=s.getHours()%12;return e==="Ko"?t.ordinalNumber(i,{unit:"hour"}):addLeadingZeros(i,e.length)},k:function(s,e,t){let i=s.getHours();return i===0&&(i=24),e==="ko"?t.ordinalNumber(i,{unit:"hour"}):addLeadingZeros(i,e.length)},m:function(s,e,t){return e==="mo"?t.ordinalNumber(s.getMinutes(),{unit:"minute"}):lightFormatters.m(s,e)},s:function(s,e,t){return e==="so"?t.ordinalNumber(s.getSeconds(),{unit:"second"}):lightFormatters.s(s,e)},S:function(s,e){return lightFormatters.S(s,e)},X:function(s,e,t){const i=s.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return formatTimezoneWithOptionalMinutes(i);case"XXXX":case"XX":return formatTimezone(i);case"XXXXX":case"XXX":default:return formatTimezone(i,":")}},x:function(s,e,t){const i=s.getTimezoneOffset();switch(e){case"x":return formatTimezoneWithOptionalMinutes(i);case"xxxx":case"xx":return formatTimezone(i);case"xxxxx":case"xxx":default:return formatTimezone(i,":")}},O:function(s,e,t){const i=s.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(i,":");case"OOOO":default:return"GMT"+formatTimezone(i,":")}},z:function(s,e,t){const i=s.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(i,":");case"zzzz":default:return"GMT"+formatTimezone(i,":")}},t:function(s,e,t){const i=Math.trunc(s.getTime()/1e3);return addLeadingZeros(i,e.length)},T:function(s,e,t){const i=s.getTime();return addLeadingZeros(i,e.length)}};function formatTimezoneShort(s,e=""){const t=s>0?"-":"+",i=Math.abs(s),n=Math.trunc(i/60),o=i%60;return o===0?t+String(n):t+String(n)+e+addLeadingZeros(o,2)}function formatTimezoneWithOptionalMinutes(s,e){return s%60===0?(s>0?"-":"+")+addLeadingZeros(Math.abs(s)/60,2):formatTimezone(s,e)}function formatTimezone(s,e=""){const t=s>0?"-":"+",i=Math.abs(s),n=addLeadingZeros(Math.trunc(i/60),2),o=addLeadingZeros(i%60,2);return t+n+e+o}const dateLongFormatter=(s,e)=>{switch(s){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},timeLongFormatter=(s,e)=>{switch(s){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},dateTimeLongFormatter=(s,e)=>{const t=s.match(/(P+)(p+)?/)||[],i=t[1],n=t[2];if(!n)return dateLongFormatter(s,e);let o;switch(i){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",dateLongFormatter(i,e)).replace("{{time}}",timeLongFormatter(n,e))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(s){return dayOfYearTokenRE.test(s)}function isProtectedWeekYearToken(s){return weekYearTokenRE.test(s)}function warnOrThrowProtectedError(s,e,t){const i=message(s,e,t);if(console.warn(i),throwTokens.includes(s))throw new RangeError(i)}function message(s,e,t){const i=s[0]==="Y"?"years":"days of the month";return`Use \`${s.toLowerCase()}\` instead of \`${s}\` (in \`${e}\`) for formatting ${i} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(s,e,t){var h,p,m,v,y,b,S,E;const i=getDefaultOptions$1(),n=(t==null?void 0:t.locale)??i.locale??enUS,o=(t==null?void 0:t.firstWeekContainsDate)??((p=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(m=i.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??1,r=(t==null?void 0:t.weekStartsOn)??((b=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??i.weekStartsOn??((E=(S=i.locale)==null?void 0:S.options)==null?void 0:E.weekStartsOn)??0,a=toDate(s);if(!isValid(a))throw new RangeError("Invalid time value");let l=e.match(longFormattingTokensRegExp$1).map(T=>{const R=T[0];if(R==="p"||R==="P"){const A=longFormatters[R];return A(T,n.formatLong)}return T}).join("").match(formattingTokensRegExp$1).map(T=>{if(T==="''")return{isToken:!1,value:"'"};const R=T[0];if(R==="'")return{isToken:!1,value:cleanEscapedString$1(T)};if(formatters$1[R])return{isToken:!0,value:T};if(R.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:T}});n.localize.preprocessor&&(l=n.localize.preprocessor(a,l));const d={firstWeekContainsDate:o,weekStartsOn:r,locale:n};return l.map(T=>{if(!T.isToken)return T.value;const R=T.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(R)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(R))&&warnOrThrowProtectedError(R,e,String(s));const A=formatters$1[R[0]];return A(a,R,n.localize,d)}).join("")}function cleanEscapedString$1(s){const e=s.match(escapedStringRegExp$1);return e?e[1].replace(doubleQuoteRegExp$1,"'"):s}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getISODay(s){let t=toDate(s).getDay();return t===0&&(t=7),t}function transpose(s,e){const t=e instanceof Date?constructFrom(e,0):new e(0);return t.setFullYear(s.getFullYear(),s.getMonth(),s.getDate()),t.setHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),t}const TIMEZONE_UNIT_PRIORITY=10;class Setter{constructor(){G(this,"subPriority",0)}validate(e,t){return!0}}class ValueSetter extends Setter{constructor(e,t,i,n,o){super(),this.value=e,this.validateValue=t,this.setValue=i,this.priority=n,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,i){return this.setValue(e,t,this.value,i)}}class DateToSystemTimezoneSetter extends Setter{constructor(){super(...arguments);G(this,"priority",TIMEZONE_UNIT_PRIORITY);G(this,"subPriority",-1)}set(t,i){return i.timestampIsSet?t:constructFrom(t,transpose(t,Date))}}class Parser{run(e,t,i,n){const o=this.parse(e,t,i,n);return o?{setter:new ValueSetter(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,i){return!0}}class EraParser extends Parser{constructor(){super(...arguments);G(this,"priority",140);G(this,"incompatibleTokens",["R","u","t","T"])}parse(t,i,n){switch(i){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,i,n){return i.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}}const numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(s,e){return s&&{value:e(s.value),rest:s.rest}}function parseNumericPattern(s,e){const t=e.match(s);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function parseTimezonePattern(s,e){const t=e.match(s);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const i=t[1]==="+"?1:-1,n=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,r=t[5]?parseInt(t[5],10):0;return{value:i*(n*millisecondsInHour+o*millisecondsInMinute+r*millisecondsInSecond),rest:e.slice(t[0].length)}}function parseAnyDigitsSigned(s){return parseNumericPattern(numericPatterns.anyDigitsSigned,s)}function parseNDigits(s,e){switch(s){case 1:return parseNumericPattern(numericPatterns.singleDigit,e);case 2:return parseNumericPattern(numericPatterns.twoDigits,e);case 3:return parseNumericPattern(numericPatterns.threeDigits,e);case 4:return parseNumericPattern(numericPatterns.fourDigits,e);default:return parseNumericPattern(new RegExp("^\\d{1,"+s+"}"),e)}}function parseNDigitsSigned(s,e){switch(s){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,e);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,e);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,e);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,e);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+s+"}"),e)}}function dayPeriodEnumToHours(s){switch(s){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(s,e){const t=e>0,i=t?e:1-e;let n;if(i<=50)n=s||100;else{const o=i+50,r=Math.trunc(o/100)*100,a=s>=o%100;n=s+r-(a?100:0)}return t?n:1-n}function isLeapYearIndex$1(s){return s%400===0||s%4===0&&s%100!==0}class YearParser extends Parser{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,i,n){const o=r=>({year:r,isTwoDigitYear:i==="yy"});switch(i){case"y":return mapValue(parseNDigits(4,t),o);case"yo":return mapValue(n.ordinalNumber(t,{unit:"year"}),o);default:return mapValue(parseNDigits(i.length,t),o)}}validate(t,i){return i.isTwoDigitYear||i.year>0}set(t,i,n){const o=t.getFullYear();if(n.isTwoDigitYear){const a=normalizeTwoDigitYear(n.year,o);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}const r=!("era"in i)||i.era===1?n.year:1-n.year;return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}class LocalWeekYearParser extends Parser{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,i,n){const o=r=>({year:r,isTwoDigitYear:i==="YY"});switch(i){case"Y":return mapValue(parseNDigits(4,t),o);case"Yo":return mapValue(n.ordinalNumber(t,{unit:"year"}),o);default:return mapValue(parseNDigits(i.length,t),o)}}validate(t,i){return i.isTwoDigitYear||i.year>0}set(t,i,n,o){const r=getWeekYear(t,o);if(n.isTwoDigitYear){const l=normalizeTwoDigitYear(n.year,r);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),startOfWeek(t,o)}const a=!("era"in i)||i.era===1?n.year:1-n.year;return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),startOfWeek(t,o)}}class ISOWeekYearParser extends Parser{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,i){return parseNDigitsSigned(i==="R"?4:i.length,t)}set(t,i,n){const o=constructFrom(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),startOfISOWeek(o)}}class ExtendedYearParser extends Parser{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,i){return parseNDigitsSigned(i==="u"?4:i.length,t)}set(t,i,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}}class QuarterParser extends Parser{constructor(){super(...arguments);G(this,"priority",120);G(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,i,n){switch(i){case"Q":case"QQ":return parseNDigits(i.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=1&&i<=4}set(t,i,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}}class StandAloneQuarterParser extends Parser{constructor(){super(...arguments);G(this,"priority",120);G(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,i,n){switch(i){case"q":case"qq":return parseNDigits(i.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=1&&i<=4}set(t,i,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}}class MonthParser extends Parser{constructor(){super(...arguments);G(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);G(this,"priority",110)}parse(t,i,n){const o=r=>r-1;switch(i){case"M":return mapValue(parseNumericPattern(numericPatterns.month,t),o);case"MM":return mapValue(parseNDigits(2,t),o);case"Mo":return mapValue(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=11}set(t,i,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}}class StandAloneMonthParser extends Parser{constructor(){super(...arguments);G(this,"priority",110);G(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,i,n){const o=r=>r-1;switch(i){case"L":return mapValue(parseNumericPattern(numericPatterns.month,t),o);case"LL":return mapValue(parseNDigits(2,t),o);case"Lo":return mapValue(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=0&&i<=11}set(t,i,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}}function setWeek(s,e,t){const i=toDate(s),n=getWeek(i,t)-e;return i.setDate(i.getDate()-n*7),i}class LocalWeekParser extends Parser{constructor(){super(...arguments);G(this,"priority",100);G(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,i,n){switch(i){case"w":return parseNumericPattern(numericPatterns.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=1&&i<=53}set(t,i,n,o){return startOfWeek(setWeek(t,n,o),o)}}function setISOWeek(s,e){const t=toDate(s),i=getISOWeek(t)-e;return t.setDate(t.getDate()-i*7),t}class ISOWeekParser extends Parser{constructor(){super(...arguments);G(this,"priority",100);G(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,i,n){switch(i){case"I":return parseNumericPattern(numericPatterns.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=1&&i<=53}set(t,i,n){return startOfISOWeek(setISOWeek(t,n))}}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];class DateParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"subPriority",1);G(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,i,n){switch(i){case"d":return parseNumericPattern(numericPatterns.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return parseNDigits(i.length,t)}}validate(t,i){const n=t.getFullYear(),o=isLeapYearIndex$1(n),r=t.getMonth();return o?i>=1&&i<=DAYS_IN_MONTH_LEAP_YEAR[r]:i>=1&&i<=DAYS_IN_MONTH[r]}set(t,i,n){return t.setDate(n),t.setHours(0,0,0,0),t}}class DayOfYearParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"subpriority",1);G(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,i,n){switch(i){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return parseNDigits(i.length,t)}}validate(t,i){const n=t.getFullYear();return isLeapYearIndex$1(n)?i>=1&&i<=366:i>=1&&i<=365}set(t,i,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}}function setDay(s,e,t){var p,m,v,y;const i=getDefaultOptions$1(),n=(t==null?void 0:t.weekStartsOn)??((m=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??i.weekStartsOn??((y=(v=i.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,o=toDate(s),r=o.getDay(),l=(e%7+7)%7,d=7-n,h=e<0||e>6?e-(r+d)%7:(l+d)%7-(r+d)%7;return addDays(o,h)}class DayParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,i,n){switch(i){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=6}set(t,i,n,o){return t=setDay(t,n,o),t.setHours(0,0,0,0),t}}class LocalDayParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,i,n,o){const r=a=>{const l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l};switch(i){case"e":case"ee":return mapValue(parseNDigits(i.length,t),r);case"eo":return mapValue(n.ordinalNumber(t,{unit:"day"}),r);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=6}set(t,i,n,o){return t=setDay(t,n,o),t.setHours(0,0,0,0),t}}class StandAloneLocalDayParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,i,n,o){const r=a=>{const l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l};switch(i){case"c":case"cc":return mapValue(parseNDigits(i.length,t),r);case"co":return mapValue(n.ordinalNumber(t,{unit:"day"}),r);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=0&&i<=6}set(t,i,n,o){return t=setDay(t,n,o),t.setHours(0,0,0,0),t}}function setISODay(s,e){const t=toDate(s),i=getISODay(t),n=e-i;return addDays(t,n)}class ISODayParser extends Parser{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,i,n){const o=r=>r===0?7:r;switch(i){case"i":case"ii":return parseNDigits(i.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return mapValue(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return mapValue(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return mapValue(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return mapValue(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,i){return i>=1&&i<=7}set(t,i,n){return t=setISODay(t,n),t.setHours(0,0,0,0),t}}class AMPMParser extends Parser{constructor(){super(...arguments);G(this,"priority",80);G(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,i,n){switch(i){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,n){return t.setHours(dayPeriodEnumToHours(n),0,0,0),t}}class AMPMMidnightParser extends Parser{constructor(){super(...arguments);G(this,"priority",80);G(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,i,n){switch(i){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,n){return t.setHours(dayPeriodEnumToHours(n),0,0,0),t}}class DayPeriodParser extends Parser{constructor(){super(...arguments);G(this,"priority",80);G(this,"incompatibleTokens",["a","b","t","T"])}parse(t,i,n){switch(i){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,n){return t.setHours(dayPeriodEnumToHours(n),0,0,0),t}}class Hour1to12Parser extends Parser{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,i,n){switch(i){case"h":return parseNumericPattern(numericPatterns.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=1&&i<=12}set(t,i,n){const o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}}class Hour0to23Parser extends Parser{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,i,n){switch(i){case"H":return parseNumericPattern(numericPatterns.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=0&&i<=23}set(t,i,n){return t.setHours(n,0,0,0),t}}class Hour0To11Parser extends Parser{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,i,n){switch(i){case"K":return parseNumericPattern(numericPatterns.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=0&&i<=11}set(t,i,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}}class Hour1To24Parser extends Parser{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,i,n){switch(i){case"k":return parseNumericPattern(numericPatterns.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=1&&i<=24}set(t,i,n){const o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}}class MinuteParser extends Parser{constructor(){super(...arguments);G(this,"priority",60);G(this,"incompatibleTokens",["t","T"])}parse(t,i,n){switch(i){case"m":return parseNumericPattern(numericPatterns.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=0&&i<=59}set(t,i,n){return t.setMinutes(n,0,0),t}}class SecondParser extends Parser{constructor(){super(...arguments);G(this,"priority",50);G(this,"incompatibleTokens",["t","T"])}parse(t,i,n){switch(i){case"s":return parseNumericPattern(numericPatterns.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return parseNDigits(i.length,t)}}validate(t,i){return i>=0&&i<=59}set(t,i,n){return t.setSeconds(n,0),t}}class FractionOfSecondParser extends Parser{constructor(){super(...arguments);G(this,"priority",30);G(this,"incompatibleTokens",["t","T"])}parse(t,i){const n=o=>Math.trunc(o*Math.pow(10,-i.length+3));return mapValue(parseNDigits(i.length,t),n)}set(t,i,n){return t.setMilliseconds(n),t}}class ISOTimezoneWithZParser extends Parser{constructor(){super(...arguments);G(this,"priority",10);G(this,"incompatibleTokens",["t","T","x"])}parse(t,i){switch(i){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,t);case"XX":return parseTimezonePattern(timezonePatterns.basic,t);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,t);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,t);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,t)}}set(t,i,n){return i.timestampIsSet?t:constructFrom(t,t.getTime()-getTimezoneOffsetInMilliseconds(t)-n)}}class ISOTimezoneParser extends Parser{constructor(){super(...arguments);G(this,"priority",10);G(this,"incompatibleTokens",["t","T","X"])}parse(t,i){switch(i){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,t);case"xx":return parseTimezonePattern(timezonePatterns.basic,t);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,t);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,t);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,t)}}set(t,i,n){return i.timestampIsSet?t:constructFrom(t,t.getTime()-getTimezoneOffsetInMilliseconds(t)-n)}}class TimestampSecondsParser extends Parser{constructor(){super(...arguments);G(this,"priority",40);G(this,"incompatibleTokens","*")}parse(t){return parseAnyDigitsSigned(t)}set(t,i,n){return[constructFrom(t,n*1e3),{timestampIsSet:!0}]}}class TimestampMillisecondsParser extends Parser{constructor(){super(...arguments);G(this,"priority",20);G(this,"incompatibleTokens","*")}parse(t){return parseAnyDigitsSigned(t)}set(t,i,n){return[constructFrom(t,n),{timestampIsSet:!0}]}}const parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse$1(s,e,t,i){var b,S,E,T,R,A,D,x;const n=getDefaultOptions(),o=(i==null?void 0:i.locale)??n.locale??enUS,r=(i==null?void 0:i.firstWeekContainsDate)??((S=(b=i==null?void 0:i.locale)==null?void 0:b.options)==null?void 0:S.firstWeekContainsDate)??n.firstWeekContainsDate??((T=(E=n.locale)==null?void 0:E.options)==null?void 0:T.firstWeekContainsDate)??1,a=(i==null?void 0:i.weekStartsOn)??((A=(R=i==null?void 0:i.locale)==null?void 0:R.options)==null?void 0:A.weekStartsOn)??n.weekStartsOn??((x=(D=n.locale)==null?void 0:D.options)==null?void 0:x.weekStartsOn)??0;if(e==="")return s===""?toDate(t):constructFrom(t,NaN);const l={firstWeekContainsDate:r,weekStartsOn:a,locale:o},d=[new DateToSystemTimezoneSetter],h=e.match(longFormattingTokensRegExp).map(M=>{const I=M[0];if(I in longFormatters){const V=longFormatters[I];return V(M,o.formatLong)}return M}).join("").match(formattingTokensRegExp),p=[];for(let M of h){!(i!=null&&i.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(M)&&warnOrThrowProtectedError(M,e,s),!(i!=null&&i.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(M)&&warnOrThrowProtectedError(M,e,s);const I=M[0],V=parsers[I];if(V){const{incompatibleTokens:U}=V;if(Array.isArray(U)){const Y=p.find(ne=>U.includes(ne.token)||ne.token===I);if(Y)throw new RangeError(`The format string mustn't contain \`${Y.fullToken}\` and \`${M}\` at the same time`)}else if(V.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${M}\` and any other token at the same time`);p.push({token:I,fullToken:M});const B=V.run(s,M,o.match,l);if(!B)return constructFrom(t,NaN);d.push(B.setter),s=B.rest}else{if(I.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(M==="''"?M="'":I==="'"&&(M=cleanEscapedString(M)),s.indexOf(M)===0)s=s.slice(M.length);else return constructFrom(t,NaN)}}if(s.length>0&&notWhitespaceRegExp.test(s))return constructFrom(t,NaN);const m=d.map(M=>M.priority).sort((M,I)=>I-M).filter((M,I,V)=>V.indexOf(M)===I).map(M=>d.filter(I=>I.priority===M).sort((I,V)=>V.subPriority-I.subPriority)).map(M=>M[0]);let v=toDate(t);if(isNaN(v.getTime()))return constructFrom(t,NaN);const y={};for(const M of m){if(!M.validate(v,l))return constructFrom(t,NaN);const I=M.set(v,y,l);Array.isArray(I)?(v=I[0],Object.assign(y,I[1])):v=I}return constructFrom(t,v)}function cleanEscapedString(s){return s.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function startOfHour(s){const e=toDate(s);return e.setMinutes(0,0,0),e}function isSameWeek(s,e,t){const i=startOfWeek(s,t),n=startOfWeek(e,t);return+i==+n}function startOfSecond(s){const e=toDate(s);return e.setMilliseconds(0),e}function subDays(s,e){return addDays(s,-e)}function parseISO(s,e){const t=(e==null?void 0:e.additionalDigits)??2,i=splitDateString(s);let n;if(i.date){const l=parseYear(i.date,t);n=parseDate(l.restDateString,l.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);const o=n.getTime();let r=0,a;if(i.time&&(r=parseTime(i.time),isNaN(r)))return new Date(NaN);if(i.timezone){if(a=parseTimezone(i.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(o+r),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return new Date(o+r+a)}const patterns={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dateRegex=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,timeRegex=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,timezoneRegex=/^([+-])(\d{2})(?::?(\d{2}))?$/;function splitDateString(s){const e={},t=s.split(patterns.dateTimeDelimiter);let i;if(t.length>2)return e;if(/:/.test(t[0])?i=t[0]:(e.date=t[0],i=t[1],patterns.timeZoneDelimiter.test(e.date)&&(e.date=s.split(patterns.timeZoneDelimiter)[0],i=s.substr(e.date.length,s.length))),i){const n=patterns.timezone.exec(i);n?(e.time=i.replace(n[1],""),e.timezone=n[1]):e.time=i}return e}function parseYear(s,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=s.match(t);if(!i)return{year:NaN,restDateString:""};const n=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?n:o*100,restDateString:s.slice((i[1]||i[2]).length)}}function parseDate(s,e){if(e===null)return new Date(NaN);const t=s.match(dateRegex);if(!t)return new Date(NaN);const i=!!t[4],n=parseDateUnit(t[1]),o=parseDateUnit(t[2])-1,r=parseDateUnit(t[3]),a=parseDateUnit(t[4]),l=parseDateUnit(t[5])-1;if(i)return validateWeekDate(e,a,l)?dayOfISOWeekYear(e,a,l):new Date(NaN);{const d=new Date(0);return!validateDate(e,o,r)||!validateDayOfYearDate(e,n)?new Date(NaN):(d.setUTCFullYear(e,o,Math.max(n,r)),d)}}function parseDateUnit(s){return s?parseInt(s):1}function parseTime(s){const e=s.match(timeRegex);if(!e)return NaN;const t=parseTimeUnit(e[1]),i=parseTimeUnit(e[2]),n=parseTimeUnit(e[3]);return validateTime(t,i,n)?t*millisecondsInHour+i*millisecondsInMinute+n*1e3:NaN}function parseTimeUnit(s){return s&&parseFloat(s.replace(",","."))||0}function parseTimezone(s){if(s==="Z")return 0;const e=s.match(timezoneRegex);if(!e)return 0;const t=e[1]==="+"?-1:1,i=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return validateTimezone(i,n)?t*(i*millisecondsInHour+n*millisecondsInMinute):NaN}function dayOfISOWeekYear(s,e,t){const i=new Date(0);i.setUTCFullYear(s,0,4);const n=i.getUTCDay()||7,o=(e-1)*7+t+1-n;return i.setUTCDate(i.getUTCDate()+o),i}const daysInMonths=[31,null,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(s){return s%400===0||s%4===0&&s%100!==0}function validateDate(s,e,t){return e>=0&&e<=11&&t>=1&&t<=(daysInMonths[e]||(isLeapYearIndex(s)?29:28))}function validateDayOfYearDate(s,e){return e>=1&&e<=(isLeapYearIndex(s)?366:365)}function validateWeekDate(s,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function validateTime(s,e,t){return s===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&s>=0&&s<25}function validateTimezone(s,e){return e>=0&&e<=59}function subMonths(s,e){return addMonths(s,-e)}const consoleLogger={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,e){console&&console[s]&&console[s].apply(console,e)}};let Logger$1=class Oi{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||consoleLogger,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,n){return n&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Oi(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Oi(this.logger,e)}};var baseLogger=new Logger$1;class EventEmitter{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const n=this.observers[i].get(t)||0;this.observers[i].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(r=>{let[a,l]=r;for(let d=0;d<l;d++)a(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(r=>{let[a,l]=r;for(let d=0;d<l;d++)a.apply(a,[e,...i])})}}function defer(){let s,e;const t=new Promise((i,n)=>{s=i,e=n});return t.resolve=s,t.reject=e,t}function makeString(s){return s==null?"":""+s}function copy(s,e,t){s.forEach(i=>{e[i]&&(t[i]=e[i])})}const lastOfPathSeparatorRegExp=/###/g;function getLastOfPath(s,e,t){function i(a){return a&&a.indexOf("###")>-1?a.replace(lastOfPathSeparatorRegExp,"."):a}function n(){return!s||typeof s=="string"}const o=typeof e!="string"?e:e.split(".");let r=0;for(;r<o.length-1;){if(n())return{};const a=i(o[r]);!s[a]&&t&&(s[a]=new t),Object.prototype.hasOwnProperty.call(s,a)?s=s[a]:s={},++r}return n()?{}:{obj:s,k:i(o[r])}}function setPath(s,e,t){const{obj:i,k:n}=getLastOfPath(s,e,Object);if(i!==void 0||e.length===1){i[n]=t;return}let o=e[e.length-1],r=e.slice(0,e.length-1),a=getLastOfPath(s,r,Object);for(;a.obj===void 0&&r.length;)o=`${r[r.length-1]}.${o}`,r=r.slice(0,r.length-1),a=getLastOfPath(s,r,Object),a&&a.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=t}function pushPath(s,e,t,i){const{obj:n,k:o}=getLastOfPath(s,e,Object);n[o]=n[o]||[],i&&(n[o]=n[o].concat(t)),i||n[o].push(t)}function getPath(s,e){const{obj:t,k:i}=getLastOfPath(s,e);if(t)return t[i]}function getPathWithDefaults(s,e,t){const i=getPath(s,t);return i!==void 0?i:getPath(e,t)}function deepExtend(s,e,t){for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in s?typeof s[i]=="string"||s[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?t&&(s[i]=e[i]):deepExtend(s[i],e[i],t):s[i]=e[i]);return s}function regexEscape(s){return s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function escape$1(s){return typeof s=="string"?s.replace(/[&<>"'\/]/g,e=>_entityMap[e]):s}class RegExpCache{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const chars=[" ",",","?","!",";"],looksLikeObjectPathRegExpCache=new RegExpCache(20);function looksLikeObjectPath(s,e,t){e=e||"",t=t||"";const i=chars.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(i.length===0)return!0;const n=looksLikeObjectPathRegExpCache.getRegExp(`(${i.map(r=>r==="?"?"\\?":r).join("|")})`);let o=!n.test(s);if(!o){const r=s.indexOf(t);r>0&&!n.test(s.substring(0,r))&&(o=!0)}return o}function deepFind(s,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!s)return;if(s[e])return s[e];const i=e.split(t);let n=s;for(let o=0;o<i.length;){if(!n||typeof n!="object")return;let r,a="";for(let l=o;l<i.length;++l)if(l!==o&&(a+=t),a+=i[l],r=n[a],r!==void 0){if(["string","number","boolean"].indexOf(typeof r)>-1&&l<i.length-1)continue;o+=l-o+1;break}n=r}return n}function getCleanedCode(s){return s&&s.indexOf("_")>0?s.replace("_","-"):s}class ResourceStore extends EventEmitter{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,r=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],i&&(Array.isArray(i)?a.push(...i):typeof i=="string"&&o?a.push(...i.split(o)):a.push(i)));const l=getPath(this.data,a);return!l&&!t&&!i&&e.indexOf(".")>-1&&(e=a[0],t=a[1],i=a.slice(2).join(".")),l||!r||typeof i!="string"?l:deepFind(this.data&&this.data[e]&&this.data[e][t],i,o)}addResource(e,t,i,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[e,t];i&&(a=a.concat(r?i.split(r):i)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),setPath(this.data,a,n),o.silent||this.emit("added",e,t,i,n)}addResources(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in i)(typeof i[o]=="string"||Object.prototype.toString.apply(i[o])==="[object Array]")&&this.addResource(e,t,o,i[o],{silent:!0});n.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,n,o){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=i,i=t,t=a[1]),this.addNamespaces(t);let l=getPath(this.data,a)||{};r.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?deepExtend(l,i,o):l={...l,...i},setPath(this.data,a,l),r.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,e,t,i,n){return s.forEach(o=>{this.processors[o]&&(e=this.processors[o].process(e,t,i,n))}),e}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,t);return i&&i.res!==void 0}extractFromKey(e,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const r=i&&e.indexOf(i)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!looksLikeObjectPath(e,i,n);if(r&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};const d=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(d[0])>-1)&&(o=d.shift()),e=d.join(n)}return typeof o=="string"&&(o=[o]),{key:e,namespaces:o}}translate(e,t,i){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,o=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],d=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(h){const A=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${A}${r}`,usedKey:r,exactUsedKey:r,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${A}${r}`}return n?{res:r,usedKey:r,exactUsedKey:r,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:r}const p=this.resolve(e,t);let m=p&&p.res;const v=p&&p.usedKey||r,y=p&&p.exactUsedKey||r,b=Object.prototype.toString.apply(m),S=["[object Number]","[object Function]","[object RegExp]"],E=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject;if(T&&m&&(typeof m!="string"&&typeof m!="boolean"&&typeof m!="number")&&S.indexOf(b)<0&&!(typeof E=="string"&&b==="[object Array]")){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,{...t,ns:a}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(p.res=A,p.usedParams=this.getUsedParamsDetails(t),p):A}if(o){const A=b==="[object Array]",D=A?[]:{},x=A?y:v;for(const M in m)if(Object.prototype.hasOwnProperty.call(m,M)){const I=`${x}${o}${M}`;D[M]=this.translate(I,{...t,joinArrays:!1,ns:a}),D[M]===I&&(D[M]=m[M])}m=D}}else if(T&&typeof E=="string"&&b==="[object Array]")m=m.join(E),m&&(m=this.extendTranslation(m,e,t,i));else{let A=!1,D=!1;const x=t.count!==void 0&&typeof t.count!="string",M=Translator.hasDefaultValue(t),I=x?this.pluralResolver.getSuffix(d,t.count,t):"",V=t.ordinal&&x?this.pluralResolver.getSuffix(d,t.count,{ordinal:!1}):"",U=x&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),B=U&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${I}`]||t[`defaultValue${V}`]||t.defaultValue;!this.isValidLookup(m)&&M&&(A=!0,m=B),this.isValidLookup(m)||(D=!0,m=r);const ne=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&D?void 0:m,ee=M&&B!==m&&this.options.updateMissing;if(D||A||ee){if(this.logger.log(ee?"updateKey":"missingKey",d,l,r,ee?B:m),o){const W=this.resolve(r,{...t,keySeparator:!1});W&&W.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const $=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let W=0;W<$.length;W++)F.push($[W]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(t.lng||this.language):F.push(t.lng||this.language);const q=(W,J,K)=>{const ue=M&&K!==m?K:ne;this.options.missingKeyHandler?this.options.missingKeyHandler(W,l,J,ue,ee,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(W,l,J,ue,ee,t),this.emit("missingKey",W,l,J,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?F.forEach(W=>{const J=this.pluralResolver.getSuffixes(W,t);U&&t[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach(K=>{q([W],r+K,t[`defaultValue${K}`]||B)})}):q(F,r,B))}m=this.extendTranslation(m,e,t,p,i),D&&m===r&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${r}`),(D||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${r}`:r,A?m:void 0):m=this.options.parseMissingKeyHandler(m))}return n?(p.res=m,p.usedParams=this.getUsedParamsDetails(t),p):m}extendTranslation(e,t,i,n,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const d=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(d){const m=e.match(this.interpolator.nestingRegexp);h=m&&m.length}let p=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,i.lng||this.language,i),d){const m=e.match(this.interpolator.nestingRegexp),v=m&&m.length;h<v&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&n&&n.res&&(i.lng=n.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];return o&&o[0]===v[0]&&!i.context?(r.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`),null):r.translate(...v,t)},i)),i.interpolation&&this.interpolator.reset()}const a=i.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return e!=null&&l&&l.length&&i.applyPostProcessor!==!1&&(e=postProcessor.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,n,o,r,a;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(i))return;const d=this.extractFromKey(l,t),h=d.key;n=h;let p=d.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const m=t.count!==void 0&&typeof t.count!="string",v=m&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),y=t.context!==void 0&&(typeof t.context=="string"||typeof t.context=="number")&&t.context!=="",b=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);p.forEach(S=>{this.isValidLookup(i)||(a=S,!checkedLoadedFor[`${b[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(checkedLoadedFor[`${b[0]}-${S}`]=!0,this.logger.warn(`key "${n}" for languages "${b.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(E=>{if(this.isValidLookup(i))return;r=E;const T=[h];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(T,h,E,S,t);else{let A;m&&(A=this.pluralResolver.getSuffix(E,t.count,t));const D=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(T.push(h+A),t.ordinal&&A.indexOf(x)===0&&T.push(h+A.replace(x,this.options.pluralSeparator)),v&&T.push(h+D)),y){const M=`${h}${this.options.contextSeparator}${t.context}`;T.push(M),m&&(T.push(M+A),t.ordinal&&A.indexOf(x)===0&&T.push(M+A.replace(x,this.options.pluralSeparator)),v&&T.push(M+D))}}let R;for(;R=T.pop();)this.isValidLookup(i)||(o=R,i=this.getResource(E,S,R,t))}))})}),{res:i,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,n):this.resourceStore.getResource(e,t,i,n)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&typeof e.replace!="string";let n=i?e.replace:e;if(i&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!i){n={...n};for(const o of t)delete n[o]}return n}static hasDefaultValue(e){const t="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&e[i]!==void 0)return!0;return!1}}function capitalize(s){return s.charAt(0).toUpperCase()+s.slice(1)}class LanguageUtil{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(e){if(e=getCleanedCode(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=getCleanedCode(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(n=>n.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=capitalize(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=capitalize(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=capitalize(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(i=>{if(t)return;const n=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(i=>{if(t)return;const n=this.getLanguagePartFromCode(i);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(o=>{if(o===n)return o;if(!(o.indexOf("-")<0&&n.indexOf("-")<0)&&(o.indexOf("-")>0&&n.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===n||o.indexOf(n)===0&&n.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){const i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=r=>{r&&(this.isSupportedCode(r)?n.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):typeof e=="string"&&o(this.formatLanguageCode(e)),i.forEach(r=>{n.indexOf(r)<0&&o(this.formatLanguageCode(r))}),n}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(s){return+(s>1)},2:function(s){return+(s!=1)},3:function(s){return 0},4:function(s){return s%10==1&&s%100!=11?0:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?1:2},5:function(s){return s==0?0:s==1?1:s==2?2:s%100>=3&&s%100<=10?3:s%100>=11?4:5},6:function(s){return s==1?0:s>=2&&s<=4?1:2},7:function(s){return s==1?0:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?1:2},8:function(s){return s==1?0:s==2?1:s!=8&&s!=11?2:3},9:function(s){return+(s>=2)},10:function(s){return s==1?0:s==2?1:s<7?2:s<11?3:4},11:function(s){return s==1||s==11?0:s==2||s==12?1:s>2&&s<20?2:3},12:function(s){return+(s%10!=1||s%100==11)},13:function(s){return+(s!==0)},14:function(s){return s==1?0:s==2?1:s==3?2:3},15:function(s){return s%10==1&&s%100!=11?0:s%10>=2&&(s%100<10||s%100>=20)?1:2},16:function(s){return s%10==1&&s%100!=11?0:s!==0?1:2},17:function(s){return s==1||s%10==1&&s%100!=11?0:1},18:function(s){return s==0?0:s==1?1:2},19:function(s){return s==1?0:s==0||s%100>1&&s%100<11?1:s%100>10&&s%100<20?2:3},20:function(s){return s==1?0:s==0||s%100>0&&s%100<20?1:2},21:function(s){return s%100==1?1:s%100==2?2:s%100==3||s%100==4?3:0},22:function(s){return s==1?0:s==2?1:(s<0||s>10)&&s%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const s={};return sets.forEach(e=>{e.lngs.forEach(t=>{s[t]={numbers:e.nr,plurals:_rulesPluralsTypes[e.fc]}})}),s}class PluralResolver{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(e==="dev"?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(n=>`${t}${n}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((n,o)=>suffixesOrder[n]-suffixesOrder[o]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):i.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,i);return n?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let n=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(n===2?n="plural":n===1&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return this.options.compatibilityJSON==="v1"?n===1?"":typeof n=="number"?`_plural_${n.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(s,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=getPathWithDefaults(s,e,t);return!o&&n&&typeof t=="string"&&(o=deepFind(s,t,i),o===void 0&&(o=deepFind(e,t,i))),o}class Interpolator{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=t.escape!==void 0?t.escape:escape$1,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?regexEscape(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?regexEscape(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?regexEscape(t.nestingPrefix):t.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=t.nestingSuffix?regexEscape(t.nestingSuffix):t.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,i)=>t&&t.source===i?(t.lastIndex=0,t):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,i,n){let o,r,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(y){return y.replace(/\$/g,"$$$$")}const h=y=>{if(y.indexOf(this.formatSeparator)<0){const T=deepFindWithDefaults(t,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,i,{...n,...t,interpolationkey:y}):T}const b=y.split(this.formatSeparator),S=b.shift().trim(),E=b.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(t,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),E,i,{...n,...t,interpolationkey:S})};this.resetRegExp();const p=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>d(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?d(this.escape(y)):d(y)}].forEach(y=>{for(a=0;o=y.regex.exec(e);){const b=o[1].trim();if(r=h(b),r===void 0)if(typeof p=="function"){const E=p(e,o,n);r=typeof E=="string"?E:""}else if(n&&Object.prototype.hasOwnProperty.call(n,b))r="";else if(m){r=o[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),r="";else typeof r!="string"&&!this.useRawValueToEscape&&(r=makeString(r));const S=y.safeValue(r);if(e=e.replace(o[0],S),m?(y.regex.lastIndex+=r.length,y.regex.lastIndex-=o[0].length):y.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,o,r;function a(l,d){const h=this.nestingOptionsSeparator;if(l.indexOf(h)<0)return l;const p=l.split(new RegExp(`${h}[ ]*{`));let m=`{${p[1]}`;l=p[0],m=this.interpolate(m,r);const v=m.match(/'/g),y=m.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(m=m.replace(/'/g,'"'));try{r=JSON.parse(m),d&&(r={...d,...r})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,b),`${l}${h}${m}`}return delete r.defaultValue,l}for(;n=this.nestingRegexp.exec(e);){let l=[];r={...i},r=r.replace&&typeof r.replace!="string"?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let d=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const h=n[1].split(this.formatSeparator).map(p=>p.trim());n[1]=h.shift(),l=h,d=!0}if(o=t(a.call(this,n[1].trim(),r),r),o&&n[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=makeString(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),o=""),d&&(o=l.reduce((h,p)=>this.format(h,p,i.lng,{...i,interpolationkey:n[1].trim()}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}function parseFormatStr(s){let e=s.toLowerCase().trim();const t={};if(s.indexOf("(")>-1){const i=s.split("(");e=i[0].toLowerCase().trim();const n=i[1].substring(0,i[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(r=>{if(!r)return;const[a,...l]=r.split(":"),d=l.join(":").trim().replace(/^'+|'+$/g,"");t[a.trim()]||(t[a.trim()]=d),d==="false"&&(t[a.trim()]=!1),d==="true"&&(t[a.trim()]=!0),isNaN(d)||(t[a.trim()]=parseInt(d,10))})}return{formatName:e,formatOptions:t}}function createCachedFormatter(s){const e={};return function(i,n,o){const r=n+JSON.stringify(o);let a=e[r];return a||(a=s(getCleanedCode(n),o),e[r]=a),a(i)}}class Formatter{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=e,this.formats={number:createCachedFormatter((t,i)=>{const n=new Intl.NumberFormat(t,{...i});return o=>n.format(o)}),currency:createCachedFormatter((t,i)=>{const n=new Intl.NumberFormat(t,{...i,style:"currency"});return o=>n.format(o)}),datetime:createCachedFormatter((t,i)=>{const n=new Intl.DateTimeFormat(t,{...i});return o=>n.format(o)}),relativetime:createCachedFormatter((t,i)=>{const n=new Intl.RelativeTimeFormat(t,{...i});return o=>n.format(o,i.range||"day")}),list:createCachedFormatter((t,i)=>{const n=new Intl.ListFormat(t,{...i});return o=>n.format(o)})},this.init(e)}init(e){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=createCachedFormatter(t)}format(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return t.split(this.formatSeparator).reduce((a,l)=>{const{formatName:d,formatOptions:h}=parseFormatStr(l);if(this.formats[d]){let p=a;try{const m=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},v=m.locale||m.lng||n.locale||n.lng||i;p=this.formats[d](a,v,{...h,...n,...m})}catch(m){this.logger.warn(m)}return p}else this.logger.warn(`there was no format function for ${d}`);return a},e)}}function removePending(s,e){s.pending[e]!==void 0&&(delete s.pending[e],s.pendingCount--)}class Connector extends EventEmitter{constructor(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,n.backend,n)}queueLoad(e,t,i,n){const o={},r={},a={},l={};return e.forEach(d=>{let h=!0;t.forEach(p=>{const m=`${d}|${p}`;!i.reload&&this.store.hasResourceBundle(d,p)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?r[m]===void 0&&(r[m]=!0):(this.state[m]=1,h=!1,r[m]===void 0&&(r[m]=!0),o[m]===void 0&&(o[m]=!0),l[p]===void 0&&(l[p]=!0)))}),h||(a[d]=!0)}),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,i){const n=e.split("|"),o=n[0],r=n[1];t&&this.emit("failedLoading",o,r,t),i&&this.store.addResourceBundle(o,r,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const a={};this.queue.forEach(l=>{pushPath(l.loaded,[o],r),removePending(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(d=>{a[d]||(a[d]={});const h=l.loaded[d];h.length&&h.forEach(p=>{a[d][p]===void 0&&(a[d][p]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:n,wait:o,callback:r});return}this.readingCalls++;const a=(d,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(d&&h&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,n+1,o*2,r)},o);return}r(d,h)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const d=l(e,t);d&&typeof d.then=="function"?d.then(h=>a(null,h)).catch(a):a(null,d)}catch(d){a(d)}return}return l(e,t,a)}prepareLoading(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t=="string"&&(t=[t]);const o=this.queueLoad(e,t,i,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),n=i[0],o=i[1];this.read(n,o,"read",void 0,void 0,(r,a)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&a&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,a),this.loaded(e,r,a)})}saveMissing(e,t,i,n,o){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const l={...r,isUpdate:o},d=this.backend.create.bind(this.backend);if(d.length<6)try{let h;d.length===5?h=d(e,t,i,n,l):h=d(e,t,i,n),h&&typeof h.then=="function"?h.then(p=>a(null,p)).catch(a):a(null,h)}catch(h){a(h)}else d(e,t,i,n,a,l)}!e||!e[0]||this.store.addResource(e[0],t,i,n)}}}function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(n=>{t[n]=i[n]})}return t},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(s){return typeof s.ns=="string"&&(s.ns=[s.ns]),typeof s.fallbackLng=="string"&&(s.fallbackLng=[s.fallbackLng]),typeof s.fallbackNS=="string"&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs&&s.supportedLngs.indexOf("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),s}function noop$2(){}function bindMemberFunctions(s){Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(t=>{typeof s[t]=="function"&&(s[t]=s[t].bind(s))})}class I18n extends EventEmitter{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(e),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(i=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns=="string"?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=get();this.options={...n,...this.options,...transformOptions(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);function o(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(o(this.modules.logger),this.options):baseLogger.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:typeof Intl<"u"&&(h=Formatter);const p=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const m=this.services;m.logger=baseLogger,m.resourceStore=this.store,m.languageUtils=p,m.pluralResolver=new PluralResolver(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(m.formatter=o(h),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Interpolator(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Connector(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(v){for(var y=arguments.length,b=new Array(y>1?y-1:0),S=1;S<y;S++)b[S-1]=arguments[S];e.emit(v,...b)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,b=new Array(y>1?y-1:0),S=1;S<y;S++)b[S-1]=arguments[S];e.emit(v,...b)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,i||(i=noop$2),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const l=defer(),d=()=>{const h=(p,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),i(p,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;const n=typeof e=="string"?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const o=[],r=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(d=>{d!=="cimode"&&o.indexOf(d)<0&&o.push(d)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>r(l)),this.options.preload&&this.options.preload.forEach(a=>r(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(a)})}else i(null)}reloadResources(e,t,i){const n=defer();return e||(e=this.languages),t||(t=this.options.ns),i||(i=noop$2),this.services.backendConnector.reload(e,t,o=>{n.resolve(),i(o)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&postProcessor.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;const n=defer();this.emit("languageChanging",e);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},r=(l,d)=>{d?(o(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,n.resolve(function(){return i.t(...arguments)}),t&&t(l,function(){return i.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const d=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);d&&(this.language||o(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(d)),this.loadResources(d,h=>{r(h,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,i){var n=this;const o=function(r,a){let l;if(typeof a!="object"){for(var d=arguments.length,h=new Array(d>2?d-2:0),p=2;p<d;p++)h[p-2]=arguments[p];l=n.options.overloadTranslationOptionHandler([r,a].concat(h))}else l={...a};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix=l.keyPrefix||i||o.keyPrefix;const m=n.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(r)?v=r.map(y=>`${l.keyPrefix}${m}${y}`):v=l.keyPrefix?`${l.keyPrefix}${m}${r}`:r,n.t(v,l)};return typeof e=="string"?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const r=(a,l)=>{const d=this.services.backendConnector.state[`${a}|${l}`];return d===-1||d===2};if(t.precheck){const a=t.precheck(this,r);if(a!==void 0)return a}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(i,e)&&(!n||r(o,e)))}loadNamespaces(e,t){const i=defer();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{i.resolve(),t&&t(n)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){const i=defer();typeof e=="string"&&(e=[e]);const n=this.options.preload||[],o=e.filter(r=>n.indexOf(r)<0);return o.length?(this.options.preload=n.concat(o),this.loadResources(r=>{i.resolve(),t&&t(r)}),i):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new LanguageUtil(get());return t.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new I18n(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},o=new I18n(n);return(e.debug!==void 0||e.prefix!==void 0)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new ResourceStore(this.store.data,n),o.services.resourceStore=o.store),o.translator=new Translator(o.services,n),o.translator.on("*",function(a){for(var l=arguments.length,d=new Array(l>1?l-1:0),h=1;h<l;h++)d[h-1]=arguments[h];o.emit(a,...d)}),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const instance=I18n.createInstance();instance.createInstance=I18n.createInstance;instance.createInstance;instance.dir;instance.init;instance.loadResources;instance.reloadResources;instance.use;instance.changeLanguage;instance.getFixedT;instance.t;instance.exists;instance.setDefaultNamespace;instance.hasLoadedNamespace;instance.loadNamespaces;instance.loadLanguages;function _classCallCheck$1(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function _typeof$3(s){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(s)}function toPrimitive(s,e){if(_typeof$3(s)!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var i=t.call(s,e||"default");if(_typeof$3(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function toPropertyKey(s){var e=toPrimitive(s,"string");return _typeof$3(e)=="symbol"?e:String(e)}function _defineProperties$1(s,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(s,toPropertyKey(i.key),i)}}function _createClass$1(s,e,t){return e&&_defineProperties$1(s.prototype,e),t&&_defineProperties$1(s,t),Object.defineProperty(s,"prototype",{writable:!1}),s}var arr=[],each$1=arr.forEach,slice=arr.slice;function defaults$1(s){return each$1.call(slice.call(arguments,1),function(e){if(e)for(var t in e)s[t]===void 0&&(s[t]=e[t])}),s}function createClassOnDemand(s){return s?typeof s=="function"?new s:s:null}function getDefaults$2(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function handleCorrectReadFunction(s,e,t,i){var n=s.read.bind(s);if(n.length===2){try{var o=n(e,t);o&&typeof o.then=="function"?o.then(function(r){return i(null,r)}).catch(i):i(null,o)}catch(r){i(r)}return}n(e,t,i)}var Backend$1=function(){function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck$1(this,s),this.backends=[],this.type="backend",this.allOptions=i,this.init(e,t)}return _createClass$1(s,[{key:"init",value:function(t){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=defaults$1(n,this.options||{},getDefaults$2()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(r,a){i.backends[a]=i.backends[a]||createClassOnDemand(r),i.backends[a].init(t,i.options.backendOptions&&i.options.backendOptions[a]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"read",value:function(t,i,n){var o=this,r=this.backends.length,a=function d(h){if(h>=r)return n(new Error("non of the backend loaded data",!0));var p=h===r-1,m=o.options.handleEmptyResourcesAsFailed&&!p?0:-1,v=o.backends[h];v.read?handleCorrectReadFunction(v,t,i,function(y,b,S){if(!y&&b&&Object.keys(b).length>m){if(n(null,b,h),l(h-1,b),v.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(S&&o.options.refreshExpirationTime&&S+o.options.refreshExpirationTime>Date.now())return;var E=o.backends[h+1];E&&E.read&&handleCorrectReadFunction(E,t,i,function(T,R){T||R&&(Object.keys(R).length<=m||(l(h,R),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(t,i,R)))})}}else d(h+1)}):d(h+1)},l=function d(h,p){if(!(h<0)){var m=o.backends[h];m.save&&m.save(t,i,p),d(h-1,p)}};a(0)}},{key:"create",value:function(t,i,n,o){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(l){if(l.create){var d=l.create.bind(l);if(d.length<6){try{var h;d.length===5?h=d(t,i,n,o,a):h=d(t,i,n,o),h&&typeof h.then=="function"?h.then(function(p){return r(null,p)}).catch(r):r(null,h)}catch(p){r(p)}return}d(t,i,n,o,r,a)}})}},{key:"reload",value:function(){var t=this,i=this.services,n=i.backendConnector,o=i.languageUtils,r=i.logger,a=n.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],d=function(p){var m=o.toResolveHierarchy(p);m.forEach(function(v){l.indexOf(v)<0&&l.push(v)})};d(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(h){return d(h)}),l.forEach(function(h){t.allOptions.ns.forEach(function(p){n.read(h,p,"read",null,null,function(m,v){m&&r.warn("loading namespace ".concat(p," for language ").concat(h," failed"),m),!m&&v&&r.log("loaded namespace ".concat(p," for language ").concat(h),v),n.loaded("".concat(h,"|").concat(p),m,v)})})})}}}]),s}();Backend$1.type="backend";function _typeof$2(s){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(s)}function hasXMLHttpRequest(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":_typeof$2(XMLHttpRequest))==="object"}function isPromise(s){return!!s&&typeof s.then=="function"}function makePromise(s){return isPromise(s)?s:Promise.resolve(s)}function commonjsRequire(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var getFetch$1={exports:{}},browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(s,e){var t=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof commonjsGlobal<"u"&&commonjsGlobal,i=function(){function o(){this.fetch=!1,this.DOMException=t.DOMException}return o.prototype=t,new o}();(function(o){(function(r){var a=typeof o<"u"&&o||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function d(F){return F&&DataView.prototype.isPrototypeOf(F)}if(l.arrayBuffer)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(F){return F&&h.indexOf(Object.prototype.toString.call(F))>-1};function m(F){if(typeof F!="string"&&(F=String(F)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(F)||F==="")throw new TypeError('Invalid character in header field name: "'+F+'"');return F.toLowerCase()}function v(F){return typeof F!="string"&&(F=String(F)),F}function y(F){var $={next:function(){var q=F.shift();return{done:q===void 0,value:q}}};return l.iterable&&($[Symbol.iterator]=function(){return $}),$}function b(F){this.map={},F instanceof b?F.forEach(function($,q){this.append(q,$)},this):Array.isArray(F)?F.forEach(function($){this.append($[0],$[1])},this):F&&Object.getOwnPropertyNames(F).forEach(function($){this.append($,F[$])},this)}b.prototype.append=function(F,$){F=m(F),$=v($);var q=this.map[F];this.map[F]=q?q+", "+$:$},b.prototype.delete=function(F){delete this.map[m(F)]},b.prototype.get=function(F){return F=m(F),this.has(F)?this.map[F]:null},b.prototype.has=function(F){return this.map.hasOwnProperty(m(F))},b.prototype.set=function(F,$){this.map[m(F)]=v($)},b.prototype.forEach=function(F,$){for(var q in this.map)this.map.hasOwnProperty(q)&&F.call($,this.map[q],q,this)},b.prototype.keys=function(){var F=[];return this.forEach(function($,q){F.push(q)}),y(F)},b.prototype.values=function(){var F=[];return this.forEach(function($){F.push($)}),y(F)},b.prototype.entries=function(){var F=[];return this.forEach(function($,q){F.push([q,$])}),y(F)},l.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function S(F){if(F.bodyUsed)return Promise.reject(new TypeError("Already read"));F.bodyUsed=!0}function E(F){return new Promise(function($,q){F.onload=function(){$(F.result)},F.onerror=function(){q(F.error)}})}function T(F){var $=new FileReader,q=E($);return $.readAsArrayBuffer(F),q}function R(F){var $=new FileReader,q=E($);return $.readAsText(F),q}function A(F){for(var $=new Uint8Array(F),q=new Array($.length),W=0;W<$.length;W++)q[W]=String.fromCharCode($[W]);return q.join("")}function D(F){if(F.slice)return F.slice(0);var $=new Uint8Array(F.byteLength);return $.set(new Uint8Array(F)),$.buffer}function x(){return this.bodyUsed=!1,this._initBody=function(F){this.bodyUsed=this.bodyUsed,this._bodyInit=F,F?typeof F=="string"?this._bodyText=F:l.blob&&Blob.prototype.isPrototypeOf(F)?this._bodyBlob=F:l.formData&&FormData.prototype.isPrototypeOf(F)?this._bodyFormData=F:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(F)?this._bodyText=F.toString():l.arrayBuffer&&l.blob&&d(F)?(this._bodyArrayBuffer=D(F.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(F)||p(F))?this._bodyArrayBuffer=D(F):this._bodyText=F=Object.prototype.toString.call(F):this._bodyText="",this.headers.get("content-type")||(typeof F=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(F)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var F=S(this);if(F)return F;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var F=S(this);return F||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(T)}),this.text=function(){var F=S(this);if(F)return F;if(this._bodyBlob)return R(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(A(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(U)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function I(F){var $=F.toUpperCase();return M.indexOf($)>-1?$:F}function V(F,$){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');$=$||{};var q=$.body;if(F instanceof V){if(F.bodyUsed)throw new TypeError("Already read");this.url=F.url,this.credentials=F.credentials,$.headers||(this.headers=new b(F.headers)),this.method=F.method,this.mode=F.mode,this.signal=F.signal,!q&&F._bodyInit!=null&&(q=F._bodyInit,F.bodyUsed=!0)}else this.url=String(F);if(this.credentials=$.credentials||this.credentials||"same-origin",($.headers||!this.headers)&&(this.headers=new b($.headers)),this.method=I($.method||this.method||"GET"),this.mode=$.mode||this.mode||null,this.signal=$.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&q)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(q),(this.method==="GET"||this.method==="HEAD")&&($.cache==="no-store"||$.cache==="no-cache")){var W=/([?&])_=[^&]*/;if(W.test(this.url))this.url=this.url.replace(W,"$1_="+new Date().getTime());else{var J=/\?/;this.url+=(J.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function U(F){var $=new FormData;return F.trim().split("&").forEach(function(q){if(q){var W=q.split("="),J=W.shift().replace(/\+/g," "),K=W.join("=").replace(/\+/g," ");$.append(decodeURIComponent(J),decodeURIComponent(K))}}),$}function B(F){var $=new b,q=F.replace(/\r?\n[\t ]+/g," ");return q.split("\r").map(function(W){return W.indexOf(`
`)===0?W.substr(1,W.length):W}).forEach(function(W){var J=W.split(":"),K=J.shift().trim();if(K){var ue=J.join(":").trim();$.append(K,ue)}}),$}x.call(V.prototype);function Y(F,$){if(!(this instanceof Y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');$||($={}),this.type="default",this.status=$.status===void 0?200:$.status,this.ok=this.status>=200&&this.status<300,this.statusText=$.statusText===void 0?"":""+$.statusText,this.headers=new b($.headers),this.url=$.url||"",this._initBody(F)}x.call(Y.prototype),Y.prototype.clone=function(){return new Y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},Y.error=function(){var F=new Y(null,{status:0,statusText:""});return F.type="error",F};var ne=[301,302,303,307,308];Y.redirect=function(F,$){if(ne.indexOf($)===-1)throw new RangeError("Invalid status code");return new Y(null,{status:$,headers:{location:F}})},r.DOMException=a.DOMException;try{new r.DOMException}catch{r.DOMException=function($,q){this.message=$,this.name=q;var W=Error($);this.stack=W.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function ee(F,$){return new Promise(function(q,W){var J=new V(F,$);if(J.signal&&J.signal.aborted)return W(new r.DOMException("Aborted","AbortError"));var K=new XMLHttpRequest;function ue(){K.abort()}K.onload=function(){var ae={status:K.status,statusText:K.statusText,headers:B(K.getAllResponseHeaders()||"")};ae.url="responseURL"in K?K.responseURL:ae.headers.get("X-Request-URL");var le="response"in K?K.response:K.responseText;setTimeout(function(){q(new Y(le,ae))},0)},K.onerror=function(){setTimeout(function(){W(new TypeError("Network request failed"))},0)},K.ontimeout=function(){setTimeout(function(){W(new TypeError("Network request failed"))},0)},K.onabort=function(){setTimeout(function(){W(new r.DOMException("Aborted","AbortError"))},0)};function ve(ae){try{return ae===""&&a.location.href?a.location.href:ae}catch{return ae}}K.open(J.method,ve(J.url),!0),J.credentials==="include"?K.withCredentials=!0:J.credentials==="omit"&&(K.withCredentials=!1),"responseType"in K&&(l.blob?K.responseType="blob":l.arrayBuffer&&J.headers.get("Content-Type")&&J.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(K.responseType="arraybuffer")),$&&typeof $.headers=="object"&&!($.headers instanceof b)?Object.getOwnPropertyNames($.headers).forEach(function(ae){K.setRequestHeader(ae,v($.headers[ae]))}):J.headers.forEach(function(ae,le){K.setRequestHeader(le,ae)}),J.signal&&(J.signal.addEventListener("abort",ue),K.onreadystatechange=function(){K.readyState===4&&J.signal.removeEventListener("abort",ue)}),K.send(typeof J._bodyInit>"u"?null:J._bodyInit)})}return ee.polyfill=!0,a.fetch||(a.fetch=ee,a.Headers=b,a.Request=V,a.Response=Y),r.Headers=b,r.Request=V,r.Response=Y,r.fetch=ee,r})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var n=t.fetch?t:i;e=n.fetch,e.default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,s.exports=e}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}(function(s,e){var t;if(typeof fetch=="function"&&(typeof commonjsGlobal<"u"&&commonjsGlobal.fetch?t=commonjsGlobal.fetch:typeof window<"u"&&window.fetch?t=window.fetch:t=fetch),typeof commonjsRequire<"u"&&(typeof window>"u"||typeof window.document>"u")){var i=t||requireBrowserPonyfill();i.default&&(i=i.default),e.default=i,s.exports=e.default}})(getFetch$1,getFetch$1.exports);var getFetchExports=getFetch$1.exports;const getFetch=getDefaultExportFromCjs(getFetchExports),fetchNode=_mergeNamespaces({__proto__:null,default:getFetch},[getFetchExports]);function ownKeys$2(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable})),t.push.apply(t,i)}return t}function _objectSpread$2(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ownKeys$2(Object(t),!0).forEach(function(i){_defineProperty$2(s,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):ownKeys$2(Object(t)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(t,i))})}return s}function _defineProperty$2(s,e,t){return e=_toPropertyKey$1(e),e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function _toPropertyKey$1(s){var e=_toPrimitive$1(s,"string");return _typeof$1(e)=="symbol"?e:String(e)}function _toPrimitive$1(s,e){if(_typeof$1(s)!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var i=t.call(s,e||"default");if(_typeof$1(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function _typeof$1(s){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(s)}var fetchApi;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?fetchApi=global.fetch:typeof window<"u"&&window.fetch?fetchApi=window.fetch:fetchApi=fetch);var XmlHttpRequestApi;hasXMLHttpRequest()&&(typeof global<"u"&&global.XMLHttpRequest?XmlHttpRequestApi=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(XmlHttpRequestApi=window.XMLHttpRequest));var ActiveXObjectApi;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ActiveXObjectApi=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ActiveXObjectApi=window.ActiveXObject));!fetchApi&&fetchNode&&!XmlHttpRequestApi&&!ActiveXObjectApi&&(fetchApi=getFetch||fetchNode);typeof fetchApi!="function"&&(fetchApi=void 0);var addQueryString=function s(e,t){if(t&&_typeof$1(t)==="object"){var i="";for(var n in t)i+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t[n]);if(!i)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+i.slice(1)}return e},fetchIt=function s(e,t,i,n){var o=function(l){if(!l.ok)return i(l.statusText||"Error",{status:l.status});l.text().then(function(d){i(null,{status:l.status,data:d})}).catch(i)};if(n){var r=n(e,t);if(r instanceof Promise){r.then(o).catch(i);return}}typeof fetch=="function"?fetch(e,t).then(o).catch(i):fetchApi(e,t).then(o).catch(i)},omitFetchOptions=!1,requestWithFetch=function s(e,t,i,n){e.queryStringParams&&(t=addQueryString(t,e.queryStringParams));var o=_objectSpread$2({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),i&&(o["Content-Type"]="application/json");var r=typeof e.requestOptions=="function"?e.requestOptions(i):e.requestOptions,a=_objectSpread$2({method:i?"POST":"GET",body:i?e.stringify(i):void 0,headers:o},omitFetchOptions?{}:r),l=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{fetchIt(t,a,n,l)}catch(d){if(!r||Object.keys(r).length===0||!d.message||d.message.indexOf("not implemented")<0)return n(d);try{Object.keys(r).forEach(function(h){delete a[h]}),fetchIt(t,a,n,l),omitFetchOptions=!0}catch(h){n(h)}}},requestWithXmlHttpRequest=function s(e,t,i,n){i&&_typeof$1(i)==="object"&&(i=addQueryString("",i).slice(1)),e.queryStringParams&&(t=addQueryString(t,e.queryStringParams));try{var o;XmlHttpRequestApi?o=new XmlHttpRequestApi:o=new ActiveXObjectApi("MSXML2.XMLHTTP.3.0"),o.open(i?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,i&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var r=e.customHeaders;if(r=typeof r=="function"?r():r,r)for(var a in r)o.setRequestHeader(a,r[a]);o.onreadystatechange=function(){o.readyState>3&&n(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(i)}catch(l){console&&console.log(l)}},request=function s(e,t,i,n){if(typeof i=="function"&&(n=i,i=void 0),n=n||function(){},fetchApi&&t.indexOf("file:")!==0)return requestWithFetch(e,t,i,n);if(hasXMLHttpRequest()||typeof ActiveXObject=="function")return requestWithXmlHttpRequest(e,t,i,n);n(new Error("No fetch and no xhr implementation found!"))};function _typeof(s){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(s)}function ownKeys$1(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable})),t.push.apply(t,i)}return t}function _objectSpread$1(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ownKeys$1(Object(t),!0).forEach(function(i){_defineProperty$1(s,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(t,i))})}return s}function _classCallCheck(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(s,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(s,_toPropertyKey(i.key),i)}}function _createClass(s,e,t){return e&&_defineProperties(s.prototype,e),t&&_defineProperties(s,t),Object.defineProperty(s,"prototype",{writable:!1}),s}function _defineProperty$1(s,e,t){return e=_toPropertyKey(e),e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function _toPropertyKey(s){var e=_toPrimitive(s,"string");return _typeof(e)=="symbol"?e:String(e)}function _toPrimitive(s,e){if(_typeof(s)!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var i=t.call(s,e||"default");if(_typeof(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}var getDefaults$1=function s(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,i,n){return _defineProperty$1({},i,n||"")},parseLoadPayload:function(t,i){},request,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Backend=function(){function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck(this,s),this.services=e,this.options=t,this.allOptions=i,this.type="backend",this.init(e,t,i)}return _createClass(s,[{key:"init",value:function(t){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=_objectSpread$1(_objectSpread$1(_objectSpread$1({},getDefaults$1()),this.options||{}),n),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(t,i,n){this._readAny(t,t,i,i,n)}},{key:"read",value:function(t,i,n){this._readAny([t],t,[i],i,n)}},{key:"_readAny",value:function(t,i,n,o,r){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(t,n)),l=makePromise(l),l.then(function(d){if(!d)return r(null,{});var h=a.services.interpolator.interpolate(d,{lng:t.join("+"),ns:n.join("+")});a.loadUrl(h,r,i,o)})}},{key:"loadUrl",value:function(t,i,n,o){var r=this,a=typeof n=="string"?[n]:n,l=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(a,l);this.options.request(this.options,t,d,function(h,p){if(p&&(p.status>=500&&p.status<600||!p.status))return i("failed loading "+t+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return i("failed loading "+t+"; status code: "+p.status,!1);if(!p&&h&&h.message&&h.message.indexOf("Failed to fetch")>-1)return i("failed loading "+t+": "+h.message,!0);if(h)return i(h,!1);var m,v;try{typeof p.data=="string"?m=r.options.parse(p.data,n,o):m=p.data}catch{v="failed parsing "+t+" to json"}if(v)return i(v,!1);i(null,m)})}},{key:"create",value:function(t,i,n,o,r){var a=this;if(this.options.addPath){typeof t=="string"&&(t=[t]);var l=this.options.parsePayload(i,n,o),d=0,h=[],p=[];t.forEach(function(m){var v=a.options.addPath;typeof a.options.addPath=="function"&&(v=a.options.addPath(m,i));var y=a.services.interpolator.interpolate(v,{lng:m,ns:i});a.options.request(a.options,y,l,function(b,S){d+=1,h.push(b),p.push(S),d===t.length&&typeof r=="function"&&r(h,p)})})}}},{key:"reload",value:function(){var t=this,i=this.services,n=i.backendConnector,o=i.languageUtils,r=i.logger,a=n.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],d=function(p){var m=o.toResolveHierarchy(p);m.forEach(function(v){l.indexOf(v)<0&&l.push(v)})};d(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(h){return d(h)}),l.forEach(function(h){t.allOptions.ns.forEach(function(p){n.read(h,p,"read",null,null,function(m,v){m&&r.warn("loading namespace ".concat(p," for language ").concat(h," failed"),m),!m&&v&&r.log("loaded namespace ".concat(p," for language ").concat(h),v),n.loaded("".concat(h,"|").concat(p),m,v)})})})}}}]),s}();Backend.type="backend";function _defineProperty(s,e,t){return e=toPropertyKey(e),e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function ownKeys(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable})),t.push.apply(t,i)}return t}function _objectSpread(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ownKeys(Object(t),!0).forEach(function(i){_defineProperty(s,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(t,i))})}return s}var Storage=function(){function s(e){_classCallCheck$1(this,s),this.store=e.store}return _createClass$1(s,[{key:"setItem",value:function(t,i){if(this.store)try{this.store.setItem(t,i)}catch{}}},{key:"getItem",value:function(t,i){if(this.store)try{return this.store.getItem(t,i)}catch{}}}]),s}();function getDefaults(){var s=null;try{s=window.localStorage}catch(e){typeof window<"u"&&console.log("Failed to load local storage.",e)}return{prefix:"i18next_res_",expirationTime:7*24*60*60*1e3,defaultVersion:void 0,versions:{},store:s}}var Cache=function(){function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$1(this,s),this.init(e,t),this.type="backend"}return _createClass$1(s,[{key:"init",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.services=t,this.options=_objectSpread(_objectSpread(_objectSpread({},getDefaults()),this.options),i),this.storage=new Storage(this.options)}},{key:"read",value:function(t,i,n){var o=Date.now();if(!this.storage.store)return n(null,null);var r=this.storage.getItem("".concat(this.options.prefix).concat(t,"-").concat(i));if(r){r=JSON.parse(r);var a=this.getVersion(t);if(r.i18nStamp&&r.i18nStamp+this.options.expirationTime>o&&a===r.i18nVersion){var l=r.i18nStamp;return delete r.i18nVersion,delete r.i18nStamp,n(null,r,l)}}return n(null,null)}},{key:"save",value:function(t,i,n){if(this.storage.store){n.i18nStamp=Date.now();var o=this.getVersion(t);o&&(n.i18nVersion=o),this.storage.setItem("".concat(this.options.prefix).concat(t,"-").concat(i),JSON.stringify(n))}}},{key:"getVersion",value:function(t){return this.options.versions[t]||this.options.defaultVersion}}]),s}();Cache.type="backend";var adminlte_min={exports:{}};/*!
* AdminLTE v4.0.0-alpha3 (https://adminlte.io)
* Copyright 2014-2023 Colorlib <https://colorlib.com>
@@ -55,7 +55,7 @@ ${t?'Expression: "'+t+`"
</svg>`,n.append(r),n.classList.add("d-flex","justify-content-between"),r.addEventListener("click",a=>{this._searchInput.value=t.label,this._searchInput.focus()})}return o.addEventListener("mouseenter",r=>{this._keyboardNavigation||(this.removeSelection(),n.querySelector("a").classList.add(...this._activeClasses()))}),o.addEventListener("mousedown",r=>{r.preventDefault()}),o.addEventListener("click",r=>{r.preventDefault(),this._preventInput=!0,this._searchInput.value=decodeHtml(t.label),this._hiddenInput&&(this._hiddenInput.value=t.value),this._config.onSelectItem(t,this),this.hideSuggestions(),this._preventInput=!1}),n}_showSuggestions(){if(document.activeElement!=this._searchInput)return;const e=normalize$1(this._searchInput.value);this._dropElement.innerHTML="";const t=Object.keys(this._items);let i=0,n=null;const o=[];for(let r=0;r<t.length;r++){const a=t[r],l=this._items[a],d=this._config.showAllSuggestions||e.length===0;let h=e.length==0&&this._config.suggestionsThreshold===0;!d&&e.length>0&&this._config.searchFields.forEach(m=>{const v=normalize$1(l[m]);let y=!1;if(this._config.fuzzy)y=fuzzyMatch$1(v,e);else{const b=v.indexOf(e);y=this._config.startsWith?b===0:b>=0}y&&(h=!0)});const p=h||e.length===0;if(d||h){if(i++,l.group&&!o.includes(l.group)){const v=this._createGroup(l.group);this._dropElement.appendChild(v),o.push(l.group)}const m=this._createItem(e,l);if(!n&&p&&(n=m),this._dropElement.appendChild(m),this._config.maximumItems>0&&i>=this._config.maximumItems)break}}if(n&&this._config.autoselectFirst&&(this.removeSelection(),this._moveSelection(NEXT$1,n)),i===0)if(this._config.notFoundMessage){const r=this._createLi();r.innerHTML=`<span class="dropdown-item">${this._config.notFoundMessage}</span>`,this._dropElement.appendChild(r),this._showDropdown()}else this.hideSuggestions();else this._showDropdown()}_createLi(){const e=document.createElement("li");return e.setAttribute("role","presentation"),e}_showDropdown(){this._dropElement.classList.add(SHOW_CLASS$1),this._dropElement.setAttribute("role","menu"),attrs$1(this._searchInput,{"aria-expanded":"true"}),this._positionMenu()}toggleSuggestions(e=!0){this._dropElement.classList.contains(SHOW_CLASS$1)?this.hideSuggestions():this.showOrSearch(e)}hideSuggestions(){this._dropElement.classList.remove(SHOW_CLASS$1),attrs$1(this._searchInput,{"aria-expanded":"false"}),this.removeSelection()}getInput(){return this._searchInput}getDropMenu(){return this._dropElement}_positionMenu(){const e=window.getComputedStyle(this._searchInput),t=this._searchInput.getBoundingClientRect(),i=e.direction==="rtl",n=this._config.fullWidth,o=this._config.fixed;let r=null,a=null;o&&(r=t.x,a=t.y+t.height,i&&!n&&(r-=this._dropElement.offsetWidth-t.width)),this._dropElement.style.transform="unset",n&&(this._dropElement.style.width=this._searchInput.offsetWidth+"px"),r!==null&&(this._dropElement.style.left=r+"px"),a!==null&&(this._dropElement.style.top=a+"px");const l=this._dropElement.getBoundingClientRect(),d=window.innerHeight;if(l.y+l.height>d){const h=n?t.height+4:t.height;this._dropElement.style.transform="translateY(calc(-100.1% - "+h+"px))"}}_fetchData(){this._items={},this._addItems(this._config.items);const e=this._config.datalist;if(e){const t=document.querySelector(`#${e}`);if(t){const i=Array.from(t.children).map(n=>{const o=n.getAttribute("value")??n.innerHTML.toLowerCase(),r=n.innerHTML;return{value:o,label:r}});this._addItems(i)}else console.error(`Datalist not found ${e}`)}this._setHiddenVal(),this._config.server&&!this._config.liveServer&&this._loadFromServer()}_setHiddenVal(){if(this._config.hiddenInput&&!this._config.hiddenValue)for(const[e,t]of Object.entries(this._items))t.label==this._searchInput.value&&(this._hiddenInput.value=e)}_addItems(e){const t=Object.keys(e);for(let i=0;i<t.length;i++){const n=t[i],o=e[n];if(o.group&&o.items){o.items.forEach(l=>l.group=o.group),this._addItems(o.items);continue}const r=typeof o=="string"?o:o.label,a=typeof o!="object"?{}:o;a.label=o[this._config.labelField]??r,a.value=o[this._config.valueField]??n,a.label&&(this._items[a.value]=a)}}_loadFromServer(e=!1){this._abortController&&this._abortController.abort(),this._abortController=new AbortController;let t=this._searchInput.dataset.serverParams||{};typeof t=="string"&&(t=JSON.parse(t));const i=Object.assign({},this._config.serverParams,t);if(i[this._config.queryParam]=this._searchInput.value,this._config.noCache&&(i.t=Date.now()),i.related){const a=document.getElementById(i.related);if(a){i.related=a.value;const l=a.getAttribute("name");l&&(i[l]=a.value)}}const n=new URLSearchParams(i);let o=this._config.server,r=Object.assign(this._config.fetchOptions,{method:this._config.serverMethod||"GET",signal:this._abortController.signal});r.method==="POST"?r.body=n:o+="?"+n.toString(),this._searchInput.classList.add(LOADING_CLASS$1),this._config.onBeforeFetch(this),fetch(o,r).then(a=>this._config.onServerResponse(a,this)).then(a=>{const l=nested$1(this._config.serverDataKey,a)||a;this.setData(l),this._setHiddenVal(),this._abortController=null,e&&this._showSuggestions()}).catch(a=>{a.name==="AbortError"||this._abortController.signal.aborted||console.error(a)}).finally(a=>{this._searchInput.classList.remove(LOADING_CLASS$1),this._config.onAfterFetch(this)})}}const DEFAULTS={items:[],allowNew:!1,showAllSuggestions:!1,badgeStyle:"primary",allowClear:!1,clearEnd:!1,selected:[],regex:"",separator:[],max:0,clearLabel:"Clear",searchLabel:"Type a value",showDropIcon:!0,keepOpen:!1,allowSame:!1,baseClass:"",placeholder:"",addOnBlur:!1,showDisabled:!1,hideNativeValidation:!1,suggestionsThreshold:-1,maximumItems:0,autoselectFirst:!0,updateOnSelect:!1,highlightTyped:!1,highlightClass:"",fullWidth:!0,fixed:!1,fuzzy:!1,startsWith:!1,singleBadge:!1,activeClasses:["bg-primary","text-white"],labelField:"label",valueField:"value",searchFields:["label"],queryParam:"query",server:"",serverMethod:"GET",serverParams:{},serverDataKey:"data",fetchOptions:{},liveServer:!1,noCache:!0,allowHtml:!1,debounceTime:300,notFoundMessage:"",inputFilter:s=>s,sanitizer:s=>sanitize(s),onRenderItem:(s,e,t)=>t.config("allowHtml")?e:t.config("sanitizer")(e),onSelectItem:(s,e)=>{},onClearItem:(s,e)=>{},onCreateItem:(s,e)=>{},onBlur:(s,e)=>{},onFocus:(s,e)=>{},onCanAdd:(s,e,t)=>{},confirmClear:(s,e)=>Promise.resolve(),confirmAdd:(s,e)=>Promise.resolve(),onServerResponse:(s,e)=>s.json()},CLASS_PREFIX="tags-",LOADING_CLASS="is-loading",ACTIVE_CLASS="is-active",INVALID_CLASS="is-invalid",MAX_REACHED_CLASS="is-max-reached",SHOW_CLASS="show",VALUE_ATTRIBUTE="data-value",NEXT="next",PREV="prev",FOCUS_CLASS="form-control-focus",PLACEHOLDER_CLASS="form-placeholder-shown",DISABLED_CLASS="form-control-disabled",INSTANCE_MAP=new WeakMap;let counter=0,tooltip=window.bootstrap&&window.bootstrap.Tooltip;function debounce$1(s,e=300){let t;return(...i)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(this,i)},e)}}function calcTextWidth(s,e=null){const t=ce("span");document.body.appendChild(t),t.style.fontSize=e||"inherit",t.style.height="auto",t.style.width="auto",t.style.position="absolute",t.style.whiteSpace="no-wrap",t.innerHTML=sanitize(s);const i=Math.ceil(t.clientWidth);return document.body.removeChild(t),i}function sanitize(s){return s.replace(/[\x26\x0A\<>'"]/g,function(e){return"&#"+e.charCodeAt(0)+";"})}function removeDiacritics(s){return s.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function normalize(s){return s?removeDiacritics(s.toString()).toLowerCase():""}function fuzzyMatch(s,e){if(s.indexOf(e)>=0)return!0;let t=0;for(let i=0;i<e.length;i++){const n=e[i];if(n!=" "&&(t=s.indexOf(n,t)+1,t<=0))return!1}return!0}function hideItem(s){s.style.display="none",attrs(s,{"aria-hidden":"true"})}function showItem(s){s.style.display="list-item",attrs(s,{"aria-hidden":"false"})}function attrs(s,e){for(const[t,i]of Object.entries(e))s.setAttribute(t,i)}function rmAttr(s,e){s.hasAttribute(e)&&s.removeAttribute(e)}function parseBool(s){return["true","false","1","0",!0,!1].includes(s)&&!!JSON.parse(s)}function ce(s){return document.createElement(s)}function splitMulti(s,e){let t=e[0];for(let i=1;i<e.length;i++)s=s.split(e[i]).join(t);return s.split(t)}function nested(s,e="window"){return s.split(".").reduce((t,i)=>t[i],e)}class Tags{constructor(e,t={}){if(!(e instanceof HTMLElement)){console.error("Invalid element",e);return}INSTANCE_MAP.set(e,this),counter++,this._selectElement=e,this._configure(t),this._keyboardNavigation=!1,this._searchFunc=debounce$1(()=>{this._loadFromServer(!0)},this._config.debounceTime),this._fireEvents=!0,this._configureParent(),this._holderElement=ce("div"),this._containerElement=ce("div"),this._dropElement=ce("ul"),this._searchInput=ce("input"),this._holderElement.appendChild(this._containerElement),this._selectElement.parentElement.insertBefore(this._holderElement,this._selectElement),this._configureHolderElement(),this._configureContainerElement(),this._configureSelectElement(),this._configureSearchInput(),this._configureDropElement(),this.resetState(),this.handleEvent=i=>{this._handleEvent(i)},this._config.fixed&&(document.addEventListener("scroll",this,!0),window.addEventListener("resize",this)),["focus","blur","input","keydown","paste"].forEach(i=>{this._searchInput.addEventListener(i,this)}),["mousemove","mouseleave"].forEach(i=>{this._dropElement.addEventListener(i,this)}),this.loadData(!0)}static init(e="select[multiple]",t={},i=!1){let n=document.querySelectorAll(e);for(let o=0;o<n.length;o++){const r=Tags.getInstance(n[o]);r&&!i||(r&&r.dispose(),new Tags(n[o],t))}}static getInstance(e){if(INSTANCE_MAP.has(e))return INSTANCE_MAP.get(e)}dispose(){["focus","blur","input","keydown","paste"].forEach(e=>{this._searchInput.removeEventListener(e,this)}),["mousemove","mouseleave"].forEach(e=>{this._dropElement.removeEventListener(e,this)}),this._config.fixed&&(document.removeEventListener("scroll",this,!0),window.removeEventListener("resize",this)),this._selectElement.style.display="block",this._holderElement.parentElement.removeChild(this._holderElement),this.parentForm&&this.parentForm.removeEventListener("reset",this),INSTANCE_MAP.delete(this._selectElement)}handleEvent(e){this._handleEvent(e)}_handleEvent(e){["scroll","resize"].includes(e.type)?(this._timer&&window.cancelAnimationFrame(this._timer),this._timer=window.requestAnimationFrame(()=>{this[`on${e.type}`](e)})):this[`on${e.type}`](e)}_configure(e={}){this._config=Object.assign({},DEFAULTS,{showDropIcon:!!this._findOption()});const t=this._selectElement.dataset.config?JSON.parse(this._selectElement.dataset.config):{},i={...e,...t,...this._selectElement.dataset};for(const[n,o]of Object.entries(DEFAULTS)){if(n=="config"||i[n]===void 0)continue;const r=i[n];switch(typeof o){case"number":this._config[n]=parseInt(r);break;case"boolean":this._config[n]=parseBool(r);break;case"string":this._config[n]=r.toString();break;case"object":this._config[n]=r,typeof r=="string"&&(["{","["].includes(r[0])?this._config[n]=JSON.parse(r):this._config[n]=r.split(r.includes("|")?"|":","));break;case"function":this._config[n]=typeof r=="string"?r.split(".").reduce((a,l)=>a[l],window):r,this._config[n]||console.error("Invalid function",r);break;default:this._config[n]=r;break}}this._config.placeholder||(this._config.placeholder=this._getPlaceholder()),this._config.suggestionsThreshold==-1&&(this._config.suggestionsThreshold=this._config.liveServer?1:0)}config(e=null){return e?this._config[e]:this._config}setConfig(e,t){this._config[e]=t}_configureParent(){for(this.overflowParent=null,this.parentForm=this._selectElement.parentElement;this.parentForm&&(this.parentForm.style.overflow==="hidden"&&(this.overflowParent=this.parentForm),this.parentForm=this.parentForm.parentElement,!(this.parentForm&&this.parentForm.nodeName=="FORM")););this.parentForm&&this.parentForm.addEventListener("reset",this)}_getPlaceholder(){if(this._selectElement.hasAttribute("placeholder"))return this._selectElement.getAttribute("placeholder");if(this._selectElement.dataset.placeholder)return this._selectElement.dataset.placeholder;let e=this._selectElement.querySelector("option");return!e||!this._config.autoselectFirst?"":(rmAttr(e,"selected"),e.selected=!1,e.value?"":e.textContent)}_configureSelectElement(){const e=this._selectElement;this._config.hideNativeValidation?(e.style.position="absolute",e.style.left="-9999px"):e.style.cssText="height:1px;width:1px;opacity:0;padding:0;margin:0;border:0;float:left;flex-basis:100%;min-height:unset;",e.tabIndex=-1,e.addEventListener("focus",t=>{this.onclick(t)}),e.addEventListener("invalid",t=>{this._holderElement.classList.add(INVALID_CLASS)})}_configureDropElement(){const e=this._dropElement;e.classList.add("dropdown-menu",CLASS_PREFIX+"menu"),e.id=CLASS_PREFIX+"menu-"+counter,e.setAttribute("role","menu");const t=e.style;t.padding="0",t.maxHeight="280px",this._config.fullWidth||(t.maxWidth="360px"),this._config.fixed&&(t.position="fixed"),t.overflowY="auto",t.overscrollBehavior="contain",t.textAlign="unset",e.addEventListener("mouseenter",i=>{this._keyboardNavigation=!1}),this._holderElement.appendChild(e),this._searchInput.setAttribute("aria-controls",e.id)}_configureHolderElement(){const e=this._holderElement;e.classList.add("form-control","dropdown"),["form-select-lg","form-select-sm","is-invalid","is-valid"].forEach(t=>{this._selectElement.classList.contains(t)&&e.classList.add(t)}),this._config.suggestionsThreshold==0&&this._config.showDropIcon&&e.classList.add("form-select"),this.overflowParent&&(e.style.position="inherit"),e.style.height="auto",e.addEventListener("click",this)}_configureContainerElement(){this._containerElement.addEventListener("click",t=>{this.isDisabled()||this._searchInput.style.visibility!="hidden"&&this._searchInput.focus()});const e=this._containerElement.style;e.display="flex",e.alignItems="center",e.flexWrap="wrap"}_configureSearchInput(){const e=this._searchInput;e.type="text",e.autocomplete="off",e.spellcheck=!1,attrs(e,{"aria-autocomplete":"list","aria-haspopup":"menu","aria-expanded":"false","aria-label":this._config.searchLabel,role:"combobox"}),e.style.cssText="background-color:transparent;color:currentColor;border:0;padding:0;outline:0;max-width:100%",this.resetSearchInput(!0),this._containerElement.appendChild(e),this._rtl=window.getComputedStyle(e).direction==="rtl"}onfocus(e){this._holderElement.classList.add(FOCUS_CLASS),this.showOrSearch(),this._config.onFocus(e,this)}onblur(e){if(e.relatedTarget&&e.relatedTarget.classList.contains("modal")){this._searchInput.focus();return}this.afteronblur(e)}afteronblur(e){this._abortController&&this._abortController.abort();let t=!0;if(this._config.addOnBlur&&this._searchInput.value&&(t=this._enterValue()),this._holderElement.classList.remove(FOCUS_CLASS),this.hideSuggestions(t),this._fireEvents){const i=this.getSelection(),n={selection:i?i.dataset.value:null,input:this._searchInput.value};this._config.onBlur(e,this),this._selectElement.dispatchEvent(new CustomEvent("tags.blur",{bubbles:!0,detail:n}))}}onpaste(e){const i=(e.clipboardData||window.clipboardData).getData("text/plain").replace(/\r\n|\n/g," ");if(i.length>2&&this._config.separator.length){const n=splitMulti(i,this._config.separator).filter(o=>o);n.length>1&&(e.preventDefault(),n.forEach(o=>{this._addPastedValue(o)}))}}_addPastedValue(e){let t=e,i={};if(this._config.allowNew)i.new=1;else{const n=this.getSelection();if(!n)return;e=n.getAttribute(VALUE_ATTRIBUTE),t=n.dataset.label}this._config.confirmAdd(e,this).then(()=>{this._add(t,e,i)}).catch(()=>{})}oninput(e){const t=this._config.inputFilter(this._searchInput.value);if(t!=this._searchInput.value&&(this._searchInput.value=t),t){const i=t.slice(-1);if(this._config.separator.length&&this._config.separator.includes(i)){this._searchInput.value=this._searchInput.value.slice(0,-1);let n=this._searchInput.value;this._addPastedValue(n);return}}setTimeout(()=>{this._adjustWidth()}),this.showOrSearch()}onkeydown(e){let t=e.keyCode||e.key;const i=e.target;switch(e.keyCode==229&&(t=i.value.charAt(i.selectionStart-1).charCodeAt(0)),t){case 13:case"Enter":e.preventDefault(),this._enterValue();break;case 38:case"ArrowUp":e.preventDefault(),this._keyboardNavigation=!0,this._moveSelection(PREV);break;case 40:case"ArrowDown":e.preventDefault(),this._keyboardNavigation=!0,this.isDropdownVisible()?this._moveSelection(NEXT):this.showOrSearch(!1);break;case 8:case"Backspace":const n=this.getLastItem();this._searchInput.value.length==0&&n&&this._config.confirmClear(n,this).then(()=>{this.removeLastItem(),this._adjustWidth(),this.showOrSearch()}).catch(()=>{});break;case 27:case"Escape":this._searchInput.focus(),this.hideSuggestions();break}}onmousemove(e){this._keyboardNavigation=!1}onmouseleave(e){this.removeSelection()}onscroll(e){this._positionMenu()}onresize(e){this._positionMenu()}onclick(e=null){!this.isSingle()&&this.isMaxReached()||this._searchInput.focus()}onreset(e){this.reset()}loadData(e=!1){Object.keys(this._config.items).length>0?this.setData(this._config.items,!0):this.resetSuggestions(!0),this._config.server&&(this._config.liveServer||this._loadFromServer(!e))}_setSelectedAttributes(){const e=this._selectElement.selectedOptions||[];for(let t=0;t<e.length;t++)e[t].value&&!e[t].hasAttribute("selected")&&e[t].setAttribute("selected","selected")}resetState(){this.isDisabled()?(this._holderElement.setAttribute("readonly",""),this._searchInput.setAttribute("disabled",""),this._holderElement.classList.add(DISABLED_CLASS)):(rmAttr(this._holderElement,"readonly"),rmAttr(this._searchInput,"disabled"),this._holderElement.classList.remove(DISABLED_CLASS))}resetSuggestions(e=!1){this._setSelectedAttributes();const t=n=>({value:n.getAttribute("value"),label:n.textContent,disabled:n.disabled,selected:n.selected,data:Object.assign({disabled:n.disabled},n.dataset)});let i=Array.from(this._selectElement.children).filter(n=>n.hasAttribute("label")||!n.disabled||this._config.showDisabled).map(n=>n.hasAttribute("label")?{group:n.getAttribute("label"),items:Array.from(n.children).map(o=>t(o))}:t(n));this.setData(i,e)}_enterValue(){let e=this.getSelection();if(e)return e.click(),!0;if(this._config.allowNew&&this._searchInput.value){let t=this._searchInput.value;return this._config.confirmAdd(t,this).then(()=>{this._add(t,t,{new:1})}).catch(()=>{}),!0}return!1}_loadFromServer(e=!1){this._abortController&&this._abortController.abort(),this._abortController=new AbortController;let t=this._selectElement.dataset.serverParams||{};typeof t=="string"&&(t=JSON.parse(t));const i=Object.assign({},this._config.serverParams,t);if(i[this._config.queryParam]=this._searchInput.value,this._config.noCache&&(i.t=Date.now()),i.related){const a=document.getElementById(i.related);if(a){i.related=a.value;const l=a.getAttribute("name");l&&(i[l]=a.value)}}const n=new URLSearchParams(i);let o=this._config.server,r=Object.assign(this._config.fetchOptions,{method:this._config.serverMethod||"GET",signal:this._abortController.signal});r.method==="POST"?r.body=n:o+="?"+n.toString(),this._holderElement.classList.add(LOADING_CLASS),fetch(o,r).then(a=>this._config.onServerResponse(a,this)).then(a=>{const l=nested(this._config.serverDataKey,a)||a;this.setData(l,!e),this._abortController=null,e&&this._showSuggestions()}).catch(a=>{a.name==="AbortError"||this._abortController.signal.aborted||console.error(a)}).finally(a=>{this._holderElement.classList.remove(LOADING_CLASS)})}_add(e,t=null,i={}){if(!this.canAdd(e,i))return null;const n=this.addItem(e,t,i);return this._resetHtmlState(),this._config.keepOpen?this._showSuggestions():this.resetSearchInput(),n}_isItemEnabled(e){if(e.style.display==="none")return!1;const t=e.firstElementChild;return t.tagName==="A"&&!t.classList.contains("disabled")}_moveSelection(e=NEXT,t=null){const i=this.getSelection();if(i){const n=e===NEXT?"nextSibling":"previousSibling";t=i.parentNode;do t=t[n];while(t&&!this._isItemEnabled(t));t?i.classList.remove(...this._activeClasses()):i&&(t=i.parentElement)}else{if(e===PREV)return t;if(!t)for(t=this._dropElement.firstChild;t&&!this._isItemEnabled(t);)t=t.nextSibling}if(t){const n=t.offsetHeight,o=t.offsetTop,r=t.parentNode,a=r.offsetHeight,l=r.scrollHeight,d=r.offsetTop;if(n===0&&setTimeout(()=>{r.scrollTop=0}),e===PREV){const p=o-d>10?o-d:0;r.scrollTop=p}else o+n-(a+r.scrollTop)>0&&n>0&&(r.scrollTop=o+n-a+1,r.scrollTop+a>=l-10&&(r.scrollTop=o-d));const h=t.querySelector("a");h.classList.add(...this._activeClasses()),this._searchInput.setAttribute("aria-activedescendant",h.id),this._config.updateOnSelect&&(this._searchInput.value=h.dataset.label,this._adjustWidth())}else this._searchInput.setAttribute("aria-activedescendant","");return t}_adjustWidth(){this._holderElement.classList.remove(PLACEHOLDER_CLASS),this._searchInput.value?this._searchInput.size=this._searchInput.value.length:this.getSelectedValues().length?(this._searchInput.placeholder="",this._searchInput.size=1):(this._searchInput.size=this._config.placeholder.length>0?this._config.placeholder.length:1,this._searchInput.placeholder=this._config.placeholder,this._holderElement.classList.add(PLACEHOLDER_CLASS));const e=this._searchInput.value||this._searchInput.placeholder,t=window.getComputedStyle(this._holderElement).fontSize,i=calcTextWidth(e,t)+16;this._searchInput.style.width=i+"px"}_buildSuggestions(e){for(;this._dropElement.lastChild;)this._dropElement.removeChild(this._dropElement.lastChild);let t=0,i=1;for(let n=0;n<e.length;n++){const o=e[n];if(o){if(o.group&&o.items){const r=ce("li");r.setAttribute("role","presentation"),r.dataset.id=""+i;const a=ce("span");if(r.append(a),a.classList.add("dropdown-header","text-truncate"),a.innerHTML=this._config.sanitizer(o.group),this._dropElement.appendChild(r),o.items)for(let l=0;l<o.items.length;l++){const d=o.items[l];d.group_id=i,this._buildSuggestionsItem(o.items[l],t),t++}i++}this._buildSuggestionsItem(o,t),t++}}if(this._config.notFoundMessage){const n=ce("li");n.setAttribute("role","presentation"),n.classList.add(CLASS_PREFIX+"not-found"),n.innerHTML='<span class="dropdown-item"></span>',this._dropElement.appendChild(n)}}_buildSuggestionsItem(e,t){if(!e[this._config.valueField])return;const i=e[this._config.valueField],n=e[this._config.labelField];let o=this._config.onRenderItem(e,n,this);const r=ce("li");r.setAttribute("role","presentation"),e.group_id&&r.setAttribute("data-group-id",""+e.group_id);const a=ce("a");r.append(a),a.id=this._dropElement.id+"-"+t,a.classList.add("dropdown-item","text-truncate"),e.disabled&&a.classList.add("disabled"),a.setAttribute(VALUE_ATTRIBUTE,i),a.dataset.label=n;const l={};this._config.searchFields.forEach(d=>{l[d]=e[d]}),a.dataset.searchData=JSON.stringify(l),a.setAttribute("href","#"),a.innerHTML=o,this._dropElement.appendChild(r),a.addEventListener("mouseenter",d=>{this._keyboardNavigation||(this.removeSelection(),r.querySelector("a").classList.add(...this._activeClasses()))}),a.addEventListener("mousedown",d=>{d.preventDefault()}),a.addEventListener("click",d=>{d.preventDefault(),d.stopPropagation(),this._config.confirmAdd(i,this).then(()=>{this._add(n,i,e.data),this._config.onSelectItem(e,this)}).catch(()=>{})})}initialOptions(){return this._selectElement.querySelectorAll("option[data-init]")}_removeSelectedAttrs(){this._selectElement.querySelectorAll("option").forEach(e=>{rmAttr(e,"selected")})}reset(){this.removeAll(),this._fireEvents=!1;const e=this.initialOptions();this._removeSelectedAttrs();for(let t=0;t<e.length;t++){const i=e[t],n=Object.assign({},{disabled:i.hasAttribute("disabled")},i.dataset);this.addItem(i.textContent,i.value,n)}this._resetHtmlState(),this._fireEvents=!0}resetSearchInput(e=!1){if(this._searchInput.value="",this._adjustWidth(),this._checkMax(),this.isSingle()&&!e){document.activeElement.blur(),this.hideSuggestions();return}e||(this._shouldShow()||this.hideSuggestions(),this._searchInput===document.activeElement&&this._searchInput.dispatchEvent(new Event("input")))}_checkMax(){this.isMaxReached()?(this._holderElement.classList.add(MAX_REACHED_CLASS),this._searchInput.style.visibility="hidden"):this._searchInput.style.visibility=="hidden"&&(this._searchInput.style.visibility="visible")}getSelectedValues(){const e=this._selectElement.querySelectorAll("option[selected]");return Array.from(e).map(t=>t.value)}getAvailableValues(){const e=this._selectElement.querySelectorAll("option");return Array.from(e).map(t=>t.value)}showOrSearch(e=!0){if(e&&!this._shouldShow()){this.hideSuggestions(!1);return}this._config.liveServer?this._searchFunc():this._showSuggestions()}hideSuggestions(e=!0){this._dropElement.classList.remove(SHOW_CLASS),attrs(this._searchInput,{"aria-expanded":"false"}),this.removeSelection(),e&&this._holderElement.classList.remove(INVALID_CLASS)}toggleSuggestions(e=!0,t=!0){this._dropElement.classList.contains(SHOW_CLASS)?this.hideSuggestions(t):this.showOrSearch(e)}_shouldShow(){return this.isDisabled()||this.isMaxReached()?!1:this._searchInput.value.length>=this._config.suggestionsThreshold}_showSuggestions(){if(this._searchInput.style.visibility=="hidden")return;const e=normalize(this._searchInput.value),t={},i=this._dropElement.querySelectorAll("li");let n=0,o=null,r=!1,a={};for(let l=0;l<i.length;l++){let d=i[l],h=d.firstElementChild;if(h instanceof HTMLSpanElement){d.dataset.id&&(a[d.dataset.id]=!1),hideItem(d);continue}if(h.classList.remove(...this._activeClasses()),!this._config.allowSame){const y=h.getAttribute(VALUE_ATTRIBUTE);if(t[y]=t[y]||0,this._findOption(h.getAttribute(VALUE_ATTRIBUTE),"[selected]",t[y]++)){hideItem(d);continue}}const p=this._config.showAllSuggestions||e.length===0;let m=e.length==0&&this._config.suggestionsThreshold===0;if(!p&&e.length>0){const y=JSON.parse(h.dataset.searchData);this._config.searchFields.forEach(b=>{const S=normalize(y[b]);let E=!1;if(this._config.fuzzy)E=fuzzyMatch(S,e);else{const T=S.indexOf(e);E=this._config.startsWith?T===0:T>=0}E&&(m=!0)})}const v=m||e.length===0;if(p||m?(n++,showItem(d),d.dataset.groupId&&(a[d.dataset.groupId]=!0),!o&&this._isItemEnabled(d)&&v&&(o=d),this._config.maximumItems>0&&n>this._config.maximumItems&&hideItem(d)):hideItem(d),this._config.highlightTyped){const y=h.textContent,b=normalize(y).indexOf(e),S=y.substring(0,b)+`<mark class="${this._config.highlightClass}">${y.substring(b,b+e.length)}</mark>`+y.substring(b+e.length,y.length);h.innerHTML=S}this._isItemEnabled(d)&&(r=!0)}if(!this._config.allowNew&&!(e.length===0&&!r)&&this._holderElement.classList.add(INVALID_CLASS),this._config.allowNew&&this._config.regex&&this.isInvalid()&&this._holderElement.classList.remove(INVALID_CLASS),Array.from(i).filter(l=>l.dataset.id).forEach(l=>{a[l.dataset.id]===!0&&showItem(l)}),r&&(this._holderElement.classList.remove(INVALID_CLASS),o&&this._config.autoselectFirst&&(this.removeSelection(),this._moveSelection(NEXT,o))),n===0)if(this._config.notFoundMessage){const l=this._dropElement.querySelector("."+CLASS_PREFIX+"not-found");l.style.display="block";const d=this._config.notFoundMessage.replace("{{tag}}",this._searchInput.value);l.innerHTML=`<span class="dropdown-item">${d}</span>`,this._showDropdown()}else this.hideSuggestions(!1);else this._showDropdown()}_showDropdown(){const e=this._dropElement.classList.contains(SHOW_CLASS);e||(this._dropElement.classList.add(SHOW_CLASS),attrs(this._searchInput,{"aria-expanded":"true"})),this._positionMenu(e)}_positionMenu(e=!1){const t=this._rtl,i=this._config.fixed,n=this._config.fullWidth,o=this._searchInput.getBoundingClientRect(),r=this._holderElement.getBoundingClientRect();let a=0,l=0;if(i?n?(a=r.x,l=r.y+r.height+2):(a=o.x,l=o.y+o.height):n?(a=0,l=r.height+2):(a=this._searchInput.offsetLeft,l=this._searchInput.offsetHeight+this._searchInput.offsetTop),t&&!n&&(a-=this._dropElement.offsetWidth-o.width),!n){const p=Math.min(window.innerWidth,document.body.offsetWidth),m=t?o.x+o.width-this._dropElement.offsetWidth-1:p-1-(o.x+this._dropElement.offsetWidth);m<0&&(a=t?a-m:a+m)}n&&(this._dropElement.style.width=this._holderElement.offsetWidth+"px"),e||(this._dropElement.style.transform="unset"),Object.assign(this._dropElement.style,{left:a+"px",top:l+"px"});const d=this._dropElement.getBoundingClientRect(),h=window.innerHeight;if(d.y+d.height>h||this._dropElement.style.transform.includes("translateY")){const p=n?r.height+4:o.height;this._dropElement.style.transform="translateY(calc(-100.1% - "+p+"px))"}}_getBootstrapVersion(){let e=5,t=window.jQuery;return t&&t.fn.tooltip&&t.fn.tooltip.Constructor&&(e=parseInt(t.fn.tooltip.Constructor.VERSION.charAt(0))),e}_isSelected(e){return!!Array.from(this._selectElement.querySelectorAll("option")).find(n=>n.textContent==e&&n.getAttribute("selected"))}_isSelectable(e){const i=Array.from(this._selectElement.querySelectorAll("option")).filter(n=>n.textContent==e);return!(i.length>0&&!i.find(o=>!o.getAttribute("selected")))}hasItem(e){for(let t of this._config.items){const i=t.items||[t];for(let n of i)if(n[this._config.labelField]==e)return!0}return!1}getItem(e){for(let t of this._config.items){const i=t.items||[t];for(let n of i)if(n[this._config.valueField]==e)return n}return null}_validateRegex(e){return new RegExp(this._config.regex.trim()).test(e)}getSelection(){return this._dropElement.querySelector("a."+ACTIVE_CLASS)}removeSelection(){const e=this.getSelection();e&&e.classList.remove(...this._activeClasses())}_activeClasses(){return[...this._config.activeClasses,ACTIVE_CLASS]}getActiveSelection(){return this.getSelection()}removeActiveSelection(){return this.removeSelection()}removeAll(){this.getSelectedValues().forEach(t=>{this.removeItem(t,!0)}),this._adjustWidth()}removeLastItem(e=!1){let t=this.getLastItem();t&&this.removeItem(t,e)}getLastItem(){let e=this._containerElement.querySelectorAll("span."+CLASS_PREFIX+"badge");return e.length?e[e.length-1].getAttribute(VALUE_ATTRIBUTE):void 0}enable(){this._selectElement.setAttribute("disabled",""),this.resetState()}disable(){rmAttr(this._selectElement,"disabled"),this.resetState()}isDisabled(){return this._selectElement.hasAttribute("disabled")||this._selectElement.disabled||this._selectElement.hasAttribute("readonly")}isDropdownVisible(){return this._dropElement.classList.contains(SHOW_CLASS)}isInvalid(){return this._holderElement.classList.contains(INVALID_CLASS)}isSingle(){return!this._selectElement.hasAttribute("multiple")}isMaxReached(){return this._config.max&&this.getSelectedValues().length>=this._config.max}canAdd(e,t={}){if(!e||t.new&&!this._config.allowNew||!t.new&&!this.hasItem(e)||this.isDisabled())return!1;if(!this.isSingle()&&!this._config.allowSame){if(t.new){if(this._isSelected(e))return!1}else if(!this._isSelectable(e))return!1}return this.isMaxReached()?!1:this._config.regex&&t.new&&!this._validateRegex(e)?(this._holderElement.classList.add(INVALID_CLASS),!1):this._config.onCanAdd&&this._config.onCanAdd(e,t,this)===!1?(this._holderElement.classList.add(INVALID_CLASS),!1):!0}getData(){return this._config.items}setData(e,t=!1){Array.isArray(e)||(e=Object.entries(e).map(([i,n])=>({value:i,label:n}))),this._config.items!=e&&(this._config.items=e),t&&(this._removeSelectedAttrs(),e.reduce((n,o)=>n.concat(o.group?o.items:[o]),[]).forEach(n=>{const o=n[this._config.valueField],r=n[this._config.labelField];if(o&&(n.selected||this._config.selected.includes(o))){const a=this.addItem(r,o,n.data);a&&a.setAttribute("data-init","true")}})),this._buildSuggestions(e),this._resetHtmlState()}_findOption(e=null,t="",i=0){const o="option"+(e===null?"":'[value="'+CSS.escape(e)+'"]')+t;return this._selectElement.querySelectorAll(o)[i]||null}setItem(e,t={}){let i=null,n=this._findOption(e,":not([selected])");n&&(i=this.addItem(n.textContent,n.value,t));let o=this.getItem(e);if(o){const r=o[this._config.valueField],a=o[this._config.labelField];i=this.addItem(a,r,t)}return this._adjustWidth(),this._checkMax(),i}addItem(e,t=null,i={}){t||(t=e),this.isSingle()&&this.getSelectedValues().length&&this.removeLastItem(!0);let n=this._findOption(t,":not([selected])");if(!n){n=ce("option"),n.value=t,n.innerText=e;for(const[o,r]of Object.entries(i))n.dataset[o]=r;this._selectElement.appendChild(n),this._config.onCreateItem(n,this)}return n&&(i=Object.assign({title:n.getAttribute("title")},i,n.dataset)),n.setAttribute("selected","selected"),n.selected=!0,this._createBadge(e,t,i),this._fireEvents&&this._selectElement.dispatchEvent(new Event("change",{bubbles:!0})),n}_resetHtmlState(){const e=this._selectElement.innerHTML;this._selectElement.innerHTML="",this._selectElement.innerHTML=e,this._adjustWidth()}_createBadge(e,t=null,i={}){const n=this._getBootstrapVersion()===5,o=i.disabled&&parseBool(i.disabled),r=this._config.allowClear&&!o;let a=this._config.allowHtml?e:this._config.sanitizer(e),l=ce("span"),d=[CLASS_PREFIX+"badge"];const h=this.isSingle()&&!this._config.singleBadge;if(!h){d.push("badge");let m=this._config.badgeStyle;i.badgeStyle&&(m=i.badgeStyle),i.badgeClass&&d.push(...i.badgeClass.split(" ")),this._config.baseClass?d.push(...this._config.baseClass.split(" ")):n?d=[...d,"bg-"+m,"text-truncate"]:d=[...d,"badge-"+m],l.style.maxWidth="100%"}o&&d.push("disabled","opacity-50");const p=h?0:2;if(l.style.margin=p+"px 6px "+p+"px 0px",l.style.marginBlock=p+"px",l.style.marginInline="0px 6px",l.style.display="flex",l.style.alignItems="center",l.classList.add(...d),l.setAttribute(VALUE_ATTRIBUTE,t),i.title&&l.setAttribute("title",i.title),r){const m=d.includes("text-dark")||h?"btn-close":"btn-close btn-close-white";let v="margin-inline: 0px 6px;",y="left";this._config.clearEnd&&(y="right"),y=="right"&&(v="margin-inline: 6px 0px;");const b=n?'<button type="button" style="font-size:0.65em;'+v+'" class="'+m+'" aria-label="'+this._config.clearLabel+'"></button>':'<button type="button" style="font-size:1em;'+v+'text-shadow:none;color:currentColor;transform:scale(1.2);float:none" class="close" aria-label="'+this._config.clearLabel+'"><span aria-hidden="true">&times;</span></button>';a=y=="left"?b+a:a+b}l.innerHTML=a,this._containerElement.insertBefore(l,this._searchInput),i.title&&tooltip&&n&&tooltip.getOrCreateInstance(l),r&&l.querySelector("button").addEventListener("click",m=>{m.preventDefault(),m.stopPropagation(),this.isDisabled()||this._config.confirmClear(t,this).then(()=>{this.removeItem(t),document.activeElement.blur(),this._adjustWidth()}).catch(()=>{})})}getHolder(){return this._holderElement}clear(){this.hideSuggestions(),this.reset()}updateData(e){this.setData(e,!1),this.reset()}removeItem(e,t=!1){const i=CSS.escape(e);let n=this._containerElement.querySelectorAll("span["+VALUE_ATTRIBUTE+'="'+i+'"]');if(!n.length)return;const o=n.length-1,r=n[o];r&&(r.dataset.bsOriginalTitle&&tooltip.getOrCreateInstance(r).dispose(),r.remove());let a=this._findOption(e,"[selected]",o);a&&(rmAttr(a,"selected"),a.selected=!1,this._fireEvents&&!t&&this._selectElement.dispatchEvent(new Event("change",{bubbles:!0}))),this._searchInput.style.visibility=="hidden"&&!this.isMaxReached()&&(this._searchInput.style.visibility="visible",this._holderElement.classList.remove(MAX_REACHED_CLASS)),t||this._config.onClearItem(e,this)}}var leafletSrc={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
- */(function(s,e){(function(t,i){i(e)})(commonjsGlobal,function(t){var i="1.9.4";function n(c){var u,g,C,w;for(g=1,C=arguments.length;g<C;g++){w=arguments[g];for(u in w)c[u]=w[u]}return c}var o=Object.create||function(){function c(){}return function(u){return c.prototype=u,new c}}();function r(c,u){var g=Array.prototype.slice;if(c.bind)return c.bind.apply(c,g.call(arguments,1));var C=g.call(arguments,2);return function(){return c.apply(u,C.length?C.concat(g.call(arguments)):arguments)}}var a=0;function l(c){return"_leaflet_id"in c||(c._leaflet_id=++a),c._leaflet_id}function d(c,u,g){var C,w,P,O;return O=function(){C=!1,w&&(P.apply(g,w),w=!1)},P=function(){C?w=arguments:(c.apply(g,arguments),setTimeout(O,u),C=!0)},P}function h(c,u,g){var C=u[1],w=u[0],P=C-w;return c===C&&g?c:((c-w)%P+P)%P+w}function p(){return!1}function m(c,u){if(u===!1)return c;var g=Math.pow(10,u===void 0?6:u);return Math.round(c*g)/g}function v(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function y(c){return v(c).split(/\s+/)}function b(c,u){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?o(c.options):{});for(var g in u)c.options[g]=u[g];return c.options}function S(c,u,g){var C=[];for(var w in c)C.push(encodeURIComponent(g?w.toUpperCase():w)+"="+encodeURIComponent(c[w]));return(!u||u.indexOf("?")===-1?"?":"&")+C.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function T(c,u){return c.replace(E,function(g,C){var w=u[C];if(w===void 0)throw new Error("No value provided for variable "+g);return typeof w=="function"&&(w=w(u)),w})}var R=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function A(c,u){for(var g=0;g<c.length;g++)if(c[g]===u)return g;return-1}var D="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var M=0;function I(c){var u=+new Date,g=Math.max(0,16-(u-M));return M=u+g,window.setTimeout(c,g)}var V=window.requestAnimationFrame||x("RequestAnimationFrame")||I,U=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function B(c,u,g){if(g&&V===I)c.call(u);else return V.call(window,r(c,u))}function Y(c){c&&U.call(window,c)}var ne={__proto__:null,extend:n,create:o,bind:r,get lastId(){return a},stamp:l,throttle:d,wrapNum:h,falseFn:p,formatNum:m,trim:v,splitWords:y,setOptions:b,getParamString:S,template:T,isArray:R,indexOf:A,emptyImageUrl:D,requestFn:V,cancelFn:U,requestAnimFrame:B,cancelAnimFrame:Y};function ee(){}ee.extend=function(c){var u=function(){b(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},g=u.__super__=this.prototype,C=o(g);C.constructor=u,u.prototype=C;for(var w in this)Object.prototype.hasOwnProperty.call(this,w)&&w!=="prototype"&&w!=="__super__"&&(u[w]=this[w]);return c.statics&&n(u,c.statics),c.includes&&(F(c.includes),n.apply(null,[C].concat(c.includes))),n(C,c),delete C.statics,delete C.includes,C.options&&(C.options=g.options?o(g.options):{},n(C.options,c.options)),C._initHooks=[],C.callInitHooks=function(){if(!this._initHooksCalled){g.callInitHooks&&g.callInitHooks.call(this),this._initHooksCalled=!0;for(var P=0,O=C._initHooks.length;P<O;P++)C._initHooks[P].call(this)}},u},ee.include=function(c){var u=this.prototype.options;return n(this.prototype,c),c.options&&(this.prototype.options=u,this.mergeOptions(c.options)),this},ee.mergeOptions=function(c){return n(this.prototype.options,c),this},ee.addInitHook=function(c){var u=Array.prototype.slice.call(arguments,1),g=typeof c=="function"?c:function(){this[c].apply(this,u)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(g),this};function F(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=R(c)?c:[c];for(var u=0;u<c.length;u++)c[u]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var $={on:function(c,u,g){if(typeof c=="object")for(var C in c)this._on(C,c[C],u);else{c=y(c);for(var w=0,P=c.length;w<P;w++)this._on(c[w],u,g)}return this},off:function(c,u,g){if(!arguments.length)delete this._events;else if(typeof c=="object")for(var C in c)this._off(C,c[C],u);else{c=y(c);for(var w=arguments.length===1,P=0,O=c.length;P<O;P++)w?this._off(c[P]):this._off(c[P],u,g)}return this},_on:function(c,u,g,C){if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}if(this._listens(c,u,g)===!1){g===this&&(g=void 0);var w={fn:u,ctx:g};C&&(w.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(w)}},_off:function(c,u,g){var C,w,P;if(this._events&&(C=this._events[c],!!C)){if(arguments.length===1){if(this._firingCount)for(w=0,P=C.length;w<P;w++)C[w].fn=p;delete this._events[c];return}if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}var O=this._listens(c,u,g);if(O!==!1){var N=C[O];this._firingCount&&(N.fn=p,this._events[c]=C=C.slice()),C.splice(O,1)}}},fire:function(c,u,g){if(!this.listens(c,g))return this;var C=n({},u,{type:c,target:this,sourceTarget:u&&u.sourceTarget||this});if(this._events){var w=this._events[c];if(w){this._firingCount=this._firingCount+1||1;for(var P=0,O=w.length;P<O;P++){var N=w[P],k=N.fn;N.once&&this.off(c,k,N.ctx),k.call(N.ctx||this,C)}this._firingCount--}}return g&&this._propagateEvent(C),this},listens:function(c,u,g,C){typeof c!="string"&&console.warn('"string" type argument expected');var w=u;typeof u!="function"&&(C=!!u,w=void 0,g=void 0);var P=this._events&&this._events[c];if(P&&P.length&&this._listens(c,w,g)!==!1)return!0;if(C){for(var O in this._eventParents)if(this._eventParents[O].listens(c,u,g,C))return!0}return!1},_listens:function(c,u,g){if(!this._events)return!1;var C=this._events[c]||[];if(!u)return!!C.length;g===this&&(g=void 0);for(var w=0,P=C.length;w<P;w++)if(C[w].fn===u&&C[w].ctx===g)return w;return!1},once:function(c,u,g){if(typeof c=="object")for(var C in c)this._on(C,c[C],u,!0);else{c=y(c);for(var w=0,P=c.length;w<P;w++)this._on(c[w],u,g,!0)}return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[l(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[l(c)],this},_propagateEvent:function(c){for(var u in this._eventParents)this._eventParents[u].fire(c.type,n({layer:c.target,propagatedFrom:c.target},c),!0)}};$.addEventListener=$.on,$.removeEventListener=$.clearAllEventListeners=$.off,$.addOneTimeEventListener=$.once,$.fireEvent=$.fire,$.hasEventListeners=$.listens;var q=ee.extend($);function W(c,u,g){this.x=g?Math.round(c):c,this.y=g?Math.round(u):u}var J=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};W.prototype={clone:function(){return new W(this.x,this.y)},add:function(c){return this.clone()._add(K(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(K(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new W(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new W(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=J(this.x),this.y=J(this.y),this},distanceTo:function(c){c=K(c);var u=c.x-this.x,g=c.y-this.y;return Math.sqrt(u*u+g*g)},equals:function(c){return c=K(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=K(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function K(c,u,g){return c instanceof W?c:R(c)?new W(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new W(c.x,c.y):new W(c,u,g)}function ue(c,u){if(c)for(var g=u?[c,u]:c,C=0,w=g.length;C<w;C++)this.extend(g[C])}ue.prototype={extend:function(c){var u,g;if(!c)return this;if(c instanceof W||typeof c[0]=="number"||"x"in c)u=g=K(c);else if(c=ve(c),u=c.min,g=c.max,!u||!g)return this;return!this.min&&!this.max?(this.min=u.clone(),this.max=g.clone()):(this.min.x=Math.min(u.x,this.min.x),this.max.x=Math.max(g.x,this.max.x),this.min.y=Math.min(u.y,this.min.y),this.max.y=Math.max(g.y,this.max.y)),this},getCenter:function(c){return K((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},getBottomLeft:function(){return K(this.min.x,this.max.y)},getTopRight:function(){return K(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(c){var u,g;return typeof c[0]=="number"||c instanceof W?c=K(c):c=ve(c),c instanceof ue?(u=c.min,g=c.max):u=g=c,u.x>=this.min.x&&g.x<=this.max.x&&u.y>=this.min.y&&g.y<=this.max.y},intersects:function(c){c=ve(c);var u=this.min,g=this.max,C=c.min,w=c.max,P=w.x>=u.x&&C.x<=g.x,O=w.y>=u.y&&C.y<=g.y;return P&&O},overlaps:function(c){c=ve(c);var u=this.min,g=this.max,C=c.min,w=c.max,P=w.x>u.x&&C.x<g.x,O=w.y>u.y&&C.y<g.y;return P&&O},isValid:function(){return!!(this.min&&this.max)},pad:function(c){var u=this.min,g=this.max,C=Math.abs(u.x-g.x)*c,w=Math.abs(u.y-g.y)*c;return ve(K(u.x-C,u.y-w),K(g.x+C,g.y+w))},equals:function(c){return c?(c=ve(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight())):!1}};function ve(c,u){return!c||c instanceof ue?c:new ue(c,u)}function ae(c,u){if(c)for(var g=u?[c,u]:c,C=0,w=g.length;C<w;C++)this.extend(g[C])}ae.prototype={extend:function(c){var u=this._southWest,g=this._northEast,C,w;if(c instanceof oe)C=c,w=c;else if(c instanceof ae){if(C=c._southWest,w=c._northEast,!C||!w)return this}else return c?this.extend(ie(c)||le(c)):this;return!u&&!g?(this._southWest=new oe(C.lat,C.lng),this._northEast=new oe(w.lat,w.lng)):(u.lat=Math.min(C.lat,u.lat),u.lng=Math.min(C.lng,u.lng),g.lat=Math.max(w.lat,g.lat),g.lng=Math.max(w.lng,g.lng)),this},pad:function(c){var u=this._southWest,g=this._northEast,C=Math.abs(u.lat-g.lat)*c,w=Math.abs(u.lng-g.lng)*c;return new ae(new oe(u.lat-C,u.lng-w),new oe(g.lat+C,g.lng+w))},getCenter:function(){return new oe((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new oe(this.getNorth(),this.getWest())},getSouthEast:function(){return new oe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(c){typeof c[0]=="number"||c instanceof oe||"lat"in c?c=ie(c):c=le(c);var u=this._southWest,g=this._northEast,C,w;return c instanceof ae?(C=c.getSouthWest(),w=c.getNorthEast()):C=w=c,C.lat>=u.lat&&w.lat<=g.lat&&C.lng>=u.lng&&w.lng<=g.lng},intersects:function(c){c=le(c);var u=this._southWest,g=this._northEast,C=c.getSouthWest(),w=c.getNorthEast(),P=w.lat>=u.lat&&C.lat<=g.lat,O=w.lng>=u.lng&&C.lng<=g.lng;return P&&O},overlaps:function(c){c=le(c);var u=this._southWest,g=this._northEast,C=c.getSouthWest(),w=c.getNorthEast(),P=w.lat>u.lat&&C.lat<g.lat,O=w.lng>u.lng&&C.lng<g.lng;return P&&O},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,u){return c?(c=le(c),this._southWest.equals(c.getSouthWest(),u)&&this._northEast.equals(c.getNorthEast(),u)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function le(c,u){return c instanceof ae?c:new ae(c,u)}function oe(c,u,g){if(isNaN(c)||isNaN(u))throw new Error("Invalid LatLng object: ("+c+", "+u+")");this.lat=+c,this.lng=+u,g!==void 0&&(this.alt=+g)}oe.prototype={equals:function(c,u){if(!c)return!1;c=ie(c);var g=Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng));return g<=(u===void 0?1e-9:u)},toString:function(c){return"LatLng("+m(this.lat,c)+", "+m(this.lng,c)+")"},distanceTo:function(c){return Pe.distance(this,ie(c))},wrap:function(){return Pe.wrapLatLng(this)},toBounds:function(c){var u=180*c/40075017,g=u/Math.cos(Math.PI/180*this.lat);return le([this.lat-u,this.lng-g],[this.lat+u,this.lng+g])},clone:function(){return new oe(this.lat,this.lng,this.alt)}};function ie(c,u,g){return c instanceof oe?c:R(c)&&typeof c[0]!="object"?c.length===3?new oe(c[0],c[1],c[2]):c.length===2?new oe(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new oe(c.lat,"lng"in c?c.lng:c.lon,c.alt):u===void 0?null:new oe(c,u,g)}var we={latLngToPoint:function(c,u){var g=this.projection.project(c),C=this.scale(u);return this.transformation._transform(g,C)},pointToLatLng:function(c,u){var g=this.scale(u),C=this.transformation.untransform(c,g);return this.projection.unproject(C)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var u=this.projection.bounds,g=this.scale(c),C=this.transformation.transform(u.min,g),w=this.transformation.transform(u.max,g);return new ue(C,w)},infinite:!1,wrapLatLng:function(c){var u=this.wrapLng?h(c.lng,this.wrapLng,!0):c.lng,g=this.wrapLat?h(c.lat,this.wrapLat,!0):c.lat,C=c.alt;return new oe(g,u,C)},wrapLatLngBounds:function(c){var u=c.getCenter(),g=this.wrapLatLng(u),C=u.lat-g.lat,w=u.lng-g.lng;if(C===0&&w===0)return c;var P=c.getSouthWest(),O=c.getNorthEast(),N=new oe(P.lat-C,P.lng-w),k=new oe(O.lat-C,O.lng-w);return new ae(N,k)}},Pe=n({},we,{wrapLng:[-180,180],R:6371e3,distance:function(c,u){var g=Math.PI/180,C=c.lat*g,w=u.lat*g,P=Math.sin((u.lat-c.lat)*g/2),O=Math.sin((u.lng-c.lng)*g/2),N=P*P+Math.cos(C)*Math.cos(w)*O*O,k=2*Math.atan2(Math.sqrt(N),Math.sqrt(1-N));return this.R*k}}),He=6378137,qe={R:He,MAX_LATITUDE:85.0511287798,project:function(c){var u=Math.PI/180,g=this.MAX_LATITUDE,C=Math.max(Math.min(g,c.lat),-g),w=Math.sin(C*u);return new W(this.R*c.lng*u,this.R*Math.log((1+w)/(1-w))/2)},unproject:function(c){var u=180/Math.PI;return new oe((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*u,c.x*u/this.R)},bounds:function(){var c=He*Math.PI;return new ue([-c,-c],[c,c])}()};function We(c,u,g,C){if(R(c)){this._a=c[0],this._b=c[1],this._c=c[2],this._d=c[3];return}this._a=c,this._b=u,this._c=g,this._d=C}We.prototype={transform:function(c,u){return this._transform(c.clone(),u)},_transform:function(c,u){return u=u||1,c.x=u*(this._a*c.x+this._b),c.y=u*(this._c*c.y+this._d),c},untransform:function(c,u){return u=u||1,new W((c.x/u-this._b)/this._a,(c.y/u-this._d)/this._c)}};function Ne(c,u,g,C){return new We(c,u,g,C)}var Be=n({},Pe,{code:"EPSG:3857",projection:qe,transformation:function(){var c=.5/(Math.PI*qe.R);return Ne(c,.5,-c,.5)}()}),Xe=n({},Be,{code:"EPSG:900913"});function ze(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function X(c,u){var g="",C,w,P,O,N,k;for(C=0,P=c.length;C<P;C++){for(N=c[C],w=0,O=N.length;w<O;w++)k=N[w],g+=(w?"L":"M")+k.x+" "+k.y;g+=u?te.svg?"z":"x":""}return g||"M0 0"}var z=document.documentElement.style,Z="ActiveXObject"in window,re=Z&&!document.addEventListener,me="msLaunchUri"in navigator&&!("documentMode"in document),Te=$e("webkit"),Je=$e("android"),et=$e("android 2")||$e("android 3"),tt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ft=Je&&$e("Google")&&tt<537&&!("AudioNode"in window),lt=!!window.opera,_t=!me&&$e("chrome"),yt=$e("gecko")&&!Te&&!lt&&!Z,Gn=!_t&&$e("safari"),Mi=$e("phantom"),Li="OTransition"in z,Vn=navigator.platform.indexOf("Win")===0,xi=Z&&"transition"in z,ei="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!et,Fi="MozPerspective"in z,Hn=!window.L_DISABLE_3D&&(xi||ei||Fi)&&!Li&&!Mi,bt=typeof orientation<"u"||$e("mobile"),Wn=bt&&Te,Bn=bt&&ei,Ii=!window.PointerEvent&&window.MSPointerEvent,Ni=!!(window.PointerEvent||Ii),$i="ontouchstart"in window||!!window.TouchEvent,zn=!window.L_NO_TOUCH&&($i||Ni),jn=bt&&lt,Un=bt&&yt,Kn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Yn=function(){var c=!1;try{var u=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",p,u),window.removeEventListener("testPassiveEventSupport",p,u)}catch{}return c}(),qn=function(){return!!document.createElement("canvas").getContext}(),ti=!!(document.createElementNS&&ze("svg").createSVGRect),Xn=!!ti&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Qn=!ti&&function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var u=c.firstChild;return u.style.behavior="url(#default#VML)",u&&typeof u.adj=="object"}catch{return!1}}(),Zn=navigator.platform.indexOf("Mac")===0,Jn=navigator.platform.indexOf("Linux")===0;function $e(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var te={ie:Z,ielt9:re,edge:me,webkit:Te,android:Je,android23:et,androidStock:Ft,opera:lt,chrome:_t,gecko:yt,safari:Gn,phantom:Mi,opera12:Li,win:Vn,ie3d:xi,webkit3d:ei,gecko3d:Fi,any3d:Hn,mobile:bt,mobileWebkit:Wn,mobileWebkit3d:Bn,msPointer:Ii,pointer:Ni,touch:zn,touchNative:$i,mobileOpera:jn,mobileGecko:Un,retina:Kn,passiveEvents:Yn,canvas:qn,svg:ti,vml:Qn,inlineSvg:Xn,mac:Zn,linux:Jn},ki=te.msPointer?"MSPointerDown":"pointerdown",Gi=te.msPointer?"MSPointerMove":"pointermove",Vi=te.msPointer?"MSPointerUp":"pointerup",Hi=te.msPointer?"MSPointerCancel":"pointercancel",ii={touchstart:ki,touchmove:Gi,touchend:Vi,touchcancel:Hi},Wi={touchstart:rs,touchmove:It,touchend:It,touchcancel:It},ct={},Bi=!1;function ts(c,u,g){return u==="touchstart"&&os(),Wi[u]?(g=Wi[u].bind(this,g),c.addEventListener(ii[u],g,!1),g):(console.warn("wrong event specified:",u),p)}function is(c,u,g){if(!ii[u]){console.warn("wrong event specified:",u);return}c.removeEventListener(ii[u],g,!1)}function ns(c){ct[c.pointerId]=c}function ss(c){ct[c.pointerId]&&(ct[c.pointerId]=c)}function zi(c){delete ct[c.pointerId]}function os(){Bi||(document.addEventListener(ki,ns,!0),document.addEventListener(Gi,ss,!0),document.addEventListener(Vi,zi,!0),document.addEventListener(Hi,zi,!0),Bi=!0)}function It(c,u){if(u.pointerType!==(u.MSPOINTER_TYPE_MOUSE||"mouse")){u.touches=[];for(var g in ct)u.touches.push(ct[g]);u.changedTouches=[u],c(u)}}function rs(c,u){u.MSPOINTER_TYPE_TOUCH&&u.pointerType===u.MSPOINTER_TYPE_TOUCH&&Ae(u),It(c,u)}function as(c){var u={},g,C;for(C in c)g=c[C],u[C]=g&&g.bind?g.bind(c):g;return c=u,u.type="dblclick",u.detail=2,u.isTrusted=!1,u._simulated=!0,u}var ls=200;function ds(c,u){c.addEventListener("dblclick",u);var g=0,C;function w(P){if(P.detail!==1){C=P.detail;return}if(!(P.pointerType==="mouse"||P.sourceCapabilities&&!P.sourceCapabilities.firesTouchEvents)){var O=qi(P);if(!(O.some(function(k){return k instanceof HTMLLabelElement&&k.attributes.for})&&!O.some(function(k){return k instanceof HTMLInputElement||k instanceof HTMLSelectElement}))){var N=Date.now();N-g<=ls?(C++,C===2&&u(as(P))):C=1,g=N}}}return c.addEventListener("click",w),{dblclick:u,simDblclick:w}}function us(c,u){c.removeEventListener("dblclick",u.dblclick),c.removeEventListener("click",u.simDblclick)}var ni=kt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),wt=kt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ji=wt==="webkitTransition"||wt==="OTransition"?wt+"End":"transitionend";function Ui(c){return typeof c=="string"?document.getElementById(c):c}function St(c,u){var g=c.style[u]||c.currentStyle&&c.currentStyle[u];if((!g||g==="auto")&&document.defaultView){var C=document.defaultView.getComputedStyle(c,null);g=C?C[u]:null}return g==="auto"?null:g}function Ce(c,u,g){var C=document.createElement(c);return C.className=u||"",g&&g.appendChild(C),C}function ye(c){var u=c.parentNode;u&&u.removeChild(c)}function Nt(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function dt(c){var u=c.parentNode;u&&u.lastChild!==c&&u.appendChild(c)}function ut(c){var u=c.parentNode;u&&u.firstChild!==c&&u.insertBefore(c,u.firstChild)}function si(c,u){if(c.classList!==void 0)return c.classList.contains(u);var g=$t(c);return g.length>0&&new RegExp("(^|\\s)"+u+"(\\s|$)").test(g)}function pe(c,u){if(c.classList!==void 0)for(var g=y(u),C=0,w=g.length;C<w;C++)c.classList.add(g[C]);else if(!si(c,u)){var P=$t(c);oi(c,(P?P+" ":"")+u)}}function be(c,u){c.classList!==void 0?c.classList.remove(u):oi(c,v((" "+$t(c)+" ").replace(" "+u+" "," ")))}function oi(c,u){c.className.baseVal===void 0?c.className=u:c.className.baseVal=u}function $t(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function Me(c,u){"opacity"in c.style?c.style.opacity=u:"filter"in c.style&&hs(c,u)}function hs(c,u){var g=!1,C="DXImageTransform.Microsoft.Alpha";try{g=c.filters.item(C)}catch{if(u===1)return}u=Math.round(u*100),g?(g.Enabled=u!==100,g.Opacity=u):c.style.filter+=" progid:"+C+"(opacity="+u+")"}function kt(c){for(var u=document.documentElement.style,g=0;g<c.length;g++)if(c[g]in u)return c[g];return!1}function nt(c,u,g){var C=u||new W(0,0);c.style[ni]=(te.ie3d?"translate("+C.x+"px,"+C.y+"px)":"translate3d("+C.x+"px,"+C.y+"px,0)")+(g?" scale("+g+")":"")}function Se(c,u){c._leaflet_pos=u,te.any3d?nt(c,u):(c.style.left=u.x+"px",c.style.top=u.y+"px")}function st(c){return c._leaflet_pos||new W(0,0)}var Et,Pt,ri;if("onselectstart"in document)Et=function(){he(window,"selectstart",Ae)},Pt=function(){_e(window,"selectstart",Ae)};else{var Tt=kt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Et=function(){if(Tt){var c=document.documentElement.style;ri=c[Tt],c[Tt]="none"}},Pt=function(){Tt&&(document.documentElement.style[Tt]=ri,ri=void 0)}}function ai(){he(window,"dragstart",Ae)}function li(){_e(window,"dragstart",Ae)}var Gt,ci;function di(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(Vt(),Gt=c,ci=c.style.outlineStyle,c.style.outlineStyle="none",he(window,"keydown",Vt))}function Vt(){Gt&&(Gt.style.outlineStyle=ci,Gt=void 0,ci=void 0,_e(window,"keydown",Vt))}function Ki(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function ui(c){var u=c.getBoundingClientRect();return{x:u.width/c.offsetWidth||1,y:u.height/c.offsetHeight||1,boundingClientRect:u}}var ps={__proto__:null,TRANSFORM:ni,TRANSITION:wt,TRANSITION_END:ji,get:Ui,getStyle:St,create:Ce,remove:ye,empty:Nt,toFront:dt,toBack:ut,hasClass:si,addClass:pe,removeClass:be,setClass:oi,getClass:$t,setOpacity:Me,testProp:kt,setTransform:nt,setPosition:Se,getPosition:st,get disableTextSelection(){return Et},get enableTextSelection(){return Pt},disableImageDrag:ai,enableImageDrag:li,preventOutline:di,restoreOutline:Vt,getSizedParentNode:Ki,getScale:ui};function he(c,u,g,C){if(u&&typeof u=="object")for(var w in u)pi(c,w,u[w],g);else{u=y(u);for(var P=0,O=u.length;P<O;P++)pi(c,u[P],g,C)}return this}var ke="_leaflet_events";function _e(c,u,g,C){if(arguments.length===1)Yi(c),delete c[ke];else if(u&&typeof u=="object")for(var w in u)gi(c,w,u[w],g);else if(u=y(u),arguments.length===2)Yi(c,function(N){return A(u,N)!==-1});else for(var P=0,O=u.length;P<O;P++)gi(c,u[P],g,C);return this}function Yi(c,u){for(var g in c[ke]){var C=g.split(/\d/)[0];(!u||u(C))&&gi(c,C,null,null,g)}}var hi={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function pi(c,u,g,C){var w=u+l(g)+(C?"_"+l(C):"");if(c[ke]&&c[ke][w])return this;var P=function(N){return g.call(C||c,N||window.event)},O=P;!te.touchNative&&te.pointer&&u.indexOf("touch")===0?P=ts(c,u,P):te.touch&&u==="dblclick"?P=ds(c,P):"addEventListener"in c?u==="touchstart"||u==="touchmove"||u==="wheel"||u==="mousewheel"?c.addEventListener(hi[u]||u,P,te.passiveEvents?{passive:!1}:!1):u==="mouseenter"||u==="mouseleave"?(P=function(N){N=N||window.event,Ci(c,N)&&O(N)},c.addEventListener(hi[u],P,!1)):c.addEventListener(u,O,!1):c.attachEvent("on"+u,P),c[ke]=c[ke]||{},c[ke][w]=P}function gi(c,u,g,C,w){w=w||u+l(g)+(C?"_"+l(C):"");var P=c[ke]&&c[ke][w];if(!P)return this;!te.touchNative&&te.pointer&&u.indexOf("touch")===0?is(c,u,P):te.touch&&u==="dblclick"?us(c,P):"removeEventListener"in c?c.removeEventListener(hi[u]||u,P,!1):c.detachEvent("on"+u,P),c[ke][w]=null}function ot(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function mi(c){return pi(c,"wheel",ot),this}function Rt(c){return he(c,"mousedown touchstart dblclick contextmenu",ot),c._leaflet_disable_click=!0,this}function Ae(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function rt(c){return Ae(c),ot(c),this}function qi(c){if(c.composedPath)return c.composedPath();for(var u=[],g=c.target;g;)u.push(g),g=g.parentNode;return u}function Xi(c,u){if(!u)return new W(c.clientX,c.clientY);var g=ui(u),C=g.boundingClientRect;return new W((c.clientX-C.left)/g.x-u.clientLeft,(c.clientY-C.top)/g.y-u.clientTop)}var fs=te.linux&&te.chrome?window.devicePixelRatio:te.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Qi(c){return te.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/fs:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function Ci(c,u){var g=u.relatedTarget;if(!g)return!0;try{for(;g&&g!==c;)g=g.parentNode}catch{return!1}return g!==c}var gs={__proto__:null,on:he,off:_e,stopPropagation:ot,disableScrollPropagation:mi,disableClickPropagation:Rt,preventDefault:Ae,stop:rt,getPropagationPath:qi,getMousePosition:Xi,getWheelDelta:Qi,isExternalTarget:Ci,addListener:he,removeListener:_e},Zi=q.extend({run:function(c,u,g,C){this.stop(),this._el=c,this._inProgress=!0,this._duration=g||.25,this._easeOutPower=1/Math.max(C||.5,.2),this._startPos=st(c),this._offset=u.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=B(this._animate,this),this._step()},_step:function(c){var u=+new Date-this._startTime,g=this._duration*1e3;u<g?this._runFrame(this._easeOut(u/g),c):(this._runFrame(1),this._complete())},_runFrame:function(c,u){var g=this._startPos.add(this._offset.multiplyBy(c));u&&g._round(),Se(this._el,g),this.fire("step")},_complete:function(){Y(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),ge=q.extend({options:{crs:Be,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(c,u){u=b(this,u),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),u.maxBounds&&this.setMaxBounds(u.maxBounds),u.zoom!==void 0&&(this._zoom=this._limitZoom(u.zoom)),u.center&&u.zoom!==void 0&&this.setView(ie(u.center),u.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=wt&&te.any3d&&!te.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),he(this._proxy,ji,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(c,u,g){if(u=u===void 0?this._zoom:this._limitZoom(u),c=this._limitCenter(ie(c),u,this.options.maxBounds),g=g||{},this._stop(),this._loaded&&!g.reset&&g!==!0){g.animate!==void 0&&(g.zoom=n({animate:g.animate},g.zoom),g.pan=n({animate:g.animate,duration:g.duration},g.pan));var C=this._zoom!==u?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,u,g.zoom):this._tryAnimatedPan(c,g.pan);if(C)return clearTimeout(this._sizeTimer),this}return this._resetView(c,u,g.pan&&g.pan.noMoveStart),this},setZoom:function(c,u){return this._loaded?this.setView(this.getCenter(),c,{zoom:u}):(this._zoom=c,this)},zoomIn:function(c,u){return c=c||(te.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+c,u)},zoomOut:function(c,u){return c=c||(te.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-c,u)},setZoomAround:function(c,u,g){var C=this.getZoomScale(u),w=this.getSize().divideBy(2),P=c instanceof W?c:this.latLngToContainerPoint(c),O=P.subtract(w).multiplyBy(1-1/C),N=this.containerPointToLatLng(w.add(O));return this.setView(N,u,{zoom:g})},_getBoundsCenterZoom:function(c,u){u=u||{},c=c.getBounds?c.getBounds():le(c);var g=K(u.paddingTopLeft||u.padding||[0,0]),C=K(u.paddingBottomRight||u.padding||[0,0]),w=this.getBoundsZoom(c,!1,g.add(C));if(w=typeof u.maxZoom=="number"?Math.min(u.maxZoom,w):w,w===1/0)return{center:c.getCenter(),zoom:w};var P=C.subtract(g).divideBy(2),O=this.project(c.getSouthWest(),w),N=this.project(c.getNorthEast(),w),k=this.unproject(O.add(N).divideBy(2).add(P),w);return{center:k,zoom:w}},fitBounds:function(c,u){if(c=le(c),!c.isValid())throw new Error("Bounds are not valid.");var g=this._getBoundsCenterZoom(c,u);return this.setView(g.center,g.zoom,u)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,u){return this.setView(c,this._zoom,{pan:u})},panBy:function(c,u){if(c=K(c).round(),u=u||{},!c.x&&!c.y)return this.fire("moveend");if(u.animate!==!0&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Zi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),u.noMoveStart||this.fire("movestart"),u.animate!==!1){pe(this._mapPane,"leaflet-pan-anim");var g=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,g,u.duration||.25,u.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,u,g){if(g=g||{},g.animate===!1||!te.any3d)return this.setView(c,u,g);this._stop();var C=this.project(this.getCenter()),w=this.project(c),P=this.getSize(),O=this._zoom;c=ie(c),u=u===void 0?O:u;var N=Math.max(P.x,P.y),k=N*this.getZoomScale(O,u),H=w.distanceTo(C)||1,Q=1.42,se=Q*Q;function fe(Ee){var Zt=Ee?-1:1,so=Ee?k:N,oo=k*k-N*N+Zt*se*se*H*H,ao=2*so*se*H,Di=oo/ao,In=Math.sqrt(Di*Di+1)-Di,lo=In<1e-9?-18:Math.log(In);return lo}function De(Ee){return(Math.exp(Ee)-Math.exp(-Ee))/2}function Re(Ee){return(Math.exp(Ee)+Math.exp(-Ee))/2}function xe(Ee){return De(Ee)/Re(Ee)}var Oe=fe(0);function Ct(Ee){return N*(Re(Oe)/Re(Oe+Q*Ee))}function Js(Ee){return N*(Re(Oe)*xe(Oe+Q*Ee)-De(Oe))/se}function eo(Ee){return 1-Math.pow(1-Ee,1.5)}var io=Date.now(),xn=(fe(1)-Oe)/Q,no=g.duration?1e3*g.duration:1e3*xn*.8;function Fn(){var Ee=(Date.now()-io)/no,Zt=eo(Ee)*xn;Ee<=1?(this._flyToFrame=B(Fn,this),this._move(this.unproject(C.add(w.subtract(C).multiplyBy(Js(Zt)/H)),O),this.getScaleZoom(N/Ct(Zt),O),{flyTo:!0})):this._move(c,u)._moveEnd(!0)}return this._moveStart(!0,g.noMoveStart),Fn.call(this),this},flyToBounds:function(c,u){var g=this._getBoundsCenterZoom(c,u);return this.flyTo(g.center,g.zoom,u)},setMaxBounds:function(c){return c=le(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var u=this.options.minZoom;return this.options.minZoom=c,this._loaded&&u!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var u=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&u!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,u){this._enforcingBounds=!0;var g=this.getCenter(),C=this._limitCenter(g,this._zoom,le(c));return g.equals(C)||this.panTo(C,u),this._enforcingBounds=!1,this},panInside:function(c,u){u=u||{};var g=K(u.paddingTopLeft||u.padding||[0,0]),C=K(u.paddingBottomRight||u.padding||[0,0]),w=this.project(this.getCenter()),P=this.project(c),O=this.getPixelBounds(),N=ve([O.min.add(g),O.max.subtract(C)]),k=N.getSize();if(!N.contains(P)){this._enforcingBounds=!0;var H=P.subtract(N.getCenter()),Q=N.extend(P).getSize().subtract(k);w.x+=H.x<0?-Q.x:Q.x,w.y+=H.y<0?-Q.y:Q.y,this.panTo(this.unproject(w),u),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=n({animate:!1,pan:!0},c===!0?{animate:!0}:c);var u=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var g=this.getSize(),C=u.divideBy(2).round(),w=g.divideBy(2).round(),P=C.subtract(w);return!P.x&&!P.y?this:(c.animate&&c.pan?this.panBy(P):(c.pan&&this._rawPanBy(P),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:u,newSize:g}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=n({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var u=r(this._handleGeolocationResponse,this),g=r(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(u,g,c):navigator.geolocation.getCurrentPosition(u,g,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var u=c.code,g=c.message||(u===1?"permission denied":u===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:u,message:"Geolocation error: "+g+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var u=c.coords.latitude,g=c.coords.longitude,C=new oe(u,g),w=C.toBounds(c.coords.accuracy*2),P=this._locateOptions;if(P.setView){var O=this.getBoundsZoom(w);this.setView(C,P.maxZoom?Math.min(O,P.maxZoom):O)}var N={latlng:C,bounds:w,timestamp:c.timestamp};for(var k in c.coords)typeof c.coords[k]=="number"&&(N[k]=c.coords[k]);this.fire("locationfound",N)}},addHandler:function(c,u){if(!u)return this;var g=this[c]=new u(this);return this._handlers.push(g),this.options[c]&&g.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ye(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Y(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)ye(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,u){var g="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),C=Ce("div",g,u||this._mapPane);return c&&(this._panes[c]=C),C},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),u=this.unproject(c.getBottomLeft()),g=this.unproject(c.getTopRight());return new ae(u,g)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,u,g){c=le(c),g=K(g||[0,0]);var C=this.getZoom()||0,w=this.getMinZoom(),P=this.getMaxZoom(),O=c.getNorthWest(),N=c.getSouthEast(),k=this.getSize().subtract(g),H=ve(this.project(N,C),this.project(O,C)).getSize(),Q=te.any3d?this.options.zoomSnap:1,se=k.x/H.x,fe=k.y/H.y,De=u?Math.max(se,fe):Math.min(se,fe);return C=this.getScaleZoom(De,C),Q&&(C=Math.round(C/(Q/100))*(Q/100),C=u?Math.ceil(C/Q)*Q:Math.floor(C/Q)*Q),Math.max(w,Math.min(P,C))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new W(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,u){var g=this._getTopLeftPoint(c,u);return new ue(g,g.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,u){var g=this.options.crs;return u=u===void 0?this._zoom:u,g.scale(c)/g.scale(u)},getScaleZoom:function(c,u){var g=this.options.crs;u=u===void 0?this._zoom:u;var C=g.zoom(c*g.scale(u));return isNaN(C)?1/0:C},project:function(c,u){return u=u===void 0?this._zoom:u,this.options.crs.latLngToPoint(ie(c),u)},unproject:function(c,u){return u=u===void 0?this._zoom:u,this.options.crs.pointToLatLng(K(c),u)},layerPointToLatLng:function(c){var u=K(c).add(this.getPixelOrigin());return this.unproject(u)},latLngToLayerPoint:function(c){var u=this.project(ie(c))._round();return u._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(ie(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(le(c))},distance:function(c,u){return this.options.crs.distance(ie(c),ie(u))},containerPointToLayerPoint:function(c){return K(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return K(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var u=this.containerPointToLayerPoint(K(c));return this.layerPointToLatLng(u)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ie(c)))},mouseEventToContainerPoint:function(c){return Xi(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var u=this._container=Ui(c);if(u){if(u._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");he(u,"scroll",this._onScroll,this),this._containerId=l(u)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&te.any3d,pe(c,"leaflet-container"+(te.touch?" leaflet-touch":"")+(te.retina?" leaflet-retina":"")+(te.ielt9?" leaflet-oldie":"")+(te.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var u=St(c,"position");u!=="absolute"&&u!=="relative"&&u!=="fixed"&&u!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Se(this._mapPane,new W(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(pe(c.markerPane,"leaflet-zoom-hide"),pe(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,u,g){Se(this._mapPane,new W(0,0));var C=!this._loaded;this._loaded=!0,u=this._limitZoom(u),this.fire("viewprereset");var w=this._zoom!==u;this._moveStart(w,g)._move(c,u)._moveEnd(w),this.fire("viewreset"),C&&this.fire("load")},_moveStart:function(c,u){return c&&this.fire("zoomstart"),u||this.fire("movestart"),this},_move:function(c,u,g,C){u===void 0&&(u=this._zoom);var w=this._zoom!==u;return this._zoom=u,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),C?g&&g.pinch&&this.fire("zoom",g):((w||g&&g.pinch)&&this.fire("zoom",g),this.fire("move",g)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Y(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){Se(this._mapPane,this._getMapPanePos().subtract(c))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(c){this._targets={},this._targets[l(this._container)]=this;var u=c?_e:he;u(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&u(window,"resize",this._onResize,this),te.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Y(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,u){for(var g=[],C,w=u==="mouseout"||u==="mouseover",P=c.target||c.srcElement,O=!1;P;){if(C=this._targets[l(P)],C&&(u==="click"||u==="preclick")&&this._draggableMoved(C)){O=!0;break}if(C&&C.listens(u,!0)&&(w&&!Ci(P,c)||(g.push(C),w))||P===this._container)break;P=P.parentNode}return!g.length&&!O&&!w&&this.listens(u,!0)&&(g=[this]),g},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var u=c.target||c.srcElement;if(!(!this._loaded||u._leaflet_disable_events||c.type==="click"&&this._isClickDisabled(u))){var g=c.type;g==="mousedown"&&di(u),this._fireDOMEvent(c,g)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,u,g){if(c.type==="click"){var C=n({},c);C.type="preclick",this._fireDOMEvent(C,C.type,g)}var w=this._findEventTargets(c,u);if(g){for(var P=[],O=0;O<g.length;O++)g[O].listens(u,!0)&&P.push(g[O]);w=P.concat(w)}if(w.length){u==="contextmenu"&&Ae(c);var N=w[0],k={originalEvent:c};if(c.type!=="keypress"&&c.type!=="keydown"&&c.type!=="keyup"){var H=N.getLatLng&&(!N._radius||N._radius<=10);k.containerPoint=H?this.latLngToContainerPoint(N.getLatLng()):this.mouseEventToContainerPoint(c),k.layerPoint=this.containerPointToLayerPoint(k.containerPoint),k.latlng=H?N.getLatLng():this.layerPointToLatLng(k.layerPoint)}for(O=0;O<w.length;O++)if(w[O].fire(u,k,!0),k.originalEvent._stopped||w[O].options.bubblingMouseEvents===!1&&A(this._mouseEvents,u)!==-1)return}},_draggableMoved:function(c){return c=c.dragging&&c.dragging.enabled()?c:this,c.dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,u=this._handlers.length;c<u;c++)this._handlers[c].disable()},whenReady:function(c,u){return this._loaded?c.call(u||this,{target:this}):this.on("load",c,u),this},_getMapPanePos:function(){return st(this._mapPane)||new W(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,u){var g=c&&u!==void 0?this._getNewPixelOrigin(c,u):this.getPixelOrigin();return g.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,u){var g=this.getSize()._divideBy(2);return this.project(c,u)._subtract(g)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,u,g){var C=this._getNewPixelOrigin(g,u);return this.project(c,u)._subtract(C)},_latLngBoundsToNewLayerBounds:function(c,u,g){var C=this._getNewPixelOrigin(g,u);return ve([this.project(c.getSouthWest(),u)._subtract(C),this.project(c.getNorthWest(),u)._subtract(C),this.project(c.getSouthEast(),u)._subtract(C),this.project(c.getNorthEast(),u)._subtract(C)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,u,g){if(!g)return c;var C=this.project(c,u),w=this.getSize().divideBy(2),P=new ue(C.subtract(w),C.add(w)),O=this._getBoundsOffset(P,g,u);return Math.abs(O.x)<=1&&Math.abs(O.y)<=1?c:this.unproject(C.add(O),u)},_limitOffset:function(c,u){if(!u)return c;var g=this.getPixelBounds(),C=new ue(g.min.add(c),g.max.add(c));return c.add(this._getBoundsOffset(C,u))},_getBoundsOffset:function(c,u,g){var C=ve(this.project(u.getNorthEast(),g),this.project(u.getSouthWest(),g)),w=C.min.subtract(c.min),P=C.max.subtract(c.max),O=this._rebound(w.x,-P.x),N=this._rebound(w.y,-P.y);return new W(O,N)},_rebound:function(c,u){return c+u>0?Math.round(c-u)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(u))},_limitZoom:function(c){var u=this.getMinZoom(),g=this.getMaxZoom(),C=te.any3d?this.options.zoomSnap:1;return C&&(c=Math.round(c/C)*C),Math.max(u,Math.min(g,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){be(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,u){var g=this._getCenterOffset(c)._trunc();return(u&&u.animate)!==!0&&!this.getSize().contains(g)?!1:(this.panBy(g,u),!0)},_createAnimProxy:function(){var c=this._proxy=Ce("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(u){var g=ni,C=this._proxy.style[g];nt(this._proxy,this.project(u.center,u.zoom),this.getZoomScale(u.zoom,1)),C===this._proxy.style[g]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ye(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),u=this.getZoom();nt(this._proxy,this.project(c,u),this.getZoomScale(u,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,u,g){if(this._animatingZoom)return!0;if(g=g||{},!this._zoomAnimated||g.animate===!1||this._nothingToAnimate()||Math.abs(u-this._zoom)>this.options.zoomAnimationThreshold)return!1;var C=this.getZoomScale(u),w=this._getCenterOffset(c)._divideBy(1-1/C);return g.animate!==!0&&!this.getSize().contains(w)?!1:(B(function(){this._moveStart(!0,g.noMoveStart||!1)._animateZoom(c,u,!0)},this),!0)},_animateZoom:function(c,u,g,C){this._mapPane&&(g&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=u,pe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:u,noUpdate:C}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&be(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ms(c,u){return new ge(c,u)}var Fe=ee.extend({options:{position:"topright"},initialize:function(c){b(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var u=this._map;return u&&u.removeControl(this),this.options.position=c,u&&u.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var u=this._container=this.onAdd(c),g=this.getPosition(),C=c._controlCorners[g];return pe(u,"leaflet-control"),g.indexOf("bottom")!==-1?C.insertBefore(u,C.firstChild):C.appendChild(u),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ye(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),At=function(c){return new Fe(c)};ge.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},u="leaflet-",g=this._controlContainer=Ce("div",u+"control-container",this._container);function C(w,P){var O=u+w+" "+u+P;c[w+P]=Ce("div",O,g)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)ye(this._controlCorners[c]);ye(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ji=Fe.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,u,g,C){return g<C?-1:C<g?1:0}},initialize:function(c,u,g){b(this,g),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var C in c)this._addLayer(c[C],C);for(C in u)this._addLayer(u[C],C,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return Fe.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,u){return this._addLayer(c,u),this._map?this._update():this},addOverlay:function(c,u){return this._addLayer(c,u,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var u=this._getLayer(l(c));return u&&this._layers.splice(this._layers.indexOf(u),1),this._map?this._update():this},expand:function(){pe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(pe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):be(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return be(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",u=this._container=Ce("div",c),g=this.options.collapsed;u.setAttribute("aria-haspopup",!0),Rt(u),mi(u);var C=this._section=Ce("section",c+"-list");g&&(this._map.on("click",this.collapse,this),he(u,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var w=this._layersLink=Ce("a",c+"-toggle",u);w.href="#",w.title="Layers",w.setAttribute("role","button"),he(w,{keydown:function(P){P.keyCode===13&&this._expandSafely()},click:function(P){Ae(P),this._expandSafely()}},this),g||this.expand(),this._baseLayersList=Ce("div",c+"-base",C),this._separator=Ce("div",c+"-separator",C),this._overlaysList=Ce("div",c+"-overlays",C),u.appendChild(C)},_getLayer:function(c){for(var u=0;u<this._layers.length;u++)if(this._layers[u]&&l(this._layers[u].layer)===c)return this._layers[u]},_addLayer:function(c,u,g){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:u,overlay:g}),this.options.sortLayers&&this._layers.sort(r(function(C,w){return this.options.sortFunction(C.layer,w.layer,C.name,w.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Nt(this._baseLayersList),Nt(this._overlaysList),this._layerControlInputs=[];var c,u,g,C,w=0;for(g=0;g<this._layers.length;g++)C=this._layers[g],this._addItem(C),u=u||C.overlay,c=c||!C.overlay,w+=C.overlay?0:1;return this.options.hideSingleBase&&(c=c&&w>1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=u&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var u=this._getLayer(l(c.target)),g=u.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;g&&this._map.fire(g,u)},_createRadioElement:function(c,u){var g='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(u?' checked="checked"':"")+"/>",C=document.createElement("div");return C.innerHTML=g,C.firstChild},_addItem:function(c){var u=document.createElement("label"),g=this._map.hasLayer(c.layer),C;c.overlay?(C=document.createElement("input"),C.type="checkbox",C.className="leaflet-control-layers-selector",C.defaultChecked=g):C=this._createRadioElement("leaflet-base-layers_"+l(this),g),this._layerControlInputs.push(C),C.layerId=l(c.layer),he(C,"click",this._onInputClick,this);var w=document.createElement("span");w.innerHTML=" "+c.name;var P=document.createElement("span");u.appendChild(P),P.appendChild(C),P.appendChild(w);var O=c.overlay?this._overlaysList:this._baseLayersList;return O.appendChild(u),this._checkDisabledLayers(),u},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,u,g,C=[],w=[];this._handlingClick=!0;for(var P=c.length-1;P>=0;P--)u=c[P],g=this._getLayer(u.layerId).layer,u.checked?C.push(g):u.checked||w.push(g);for(P=0;P<w.length;P++)this._map.hasLayer(w[P])&&this._map.removeLayer(w[P]);for(P=0;P<C.length;P++)this._map.hasLayer(C[P])||this._map.addLayer(C[P]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,u,g,C=this._map.getZoom(),w=c.length-1;w>=0;w--)u=c[w],g=this._getLayer(u.layerId).layer,u.disabled=g.options.minZoom!==void 0&&C<g.options.minZoom||g.options.maxZoom!==void 0&&C>g.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,he(c,"click",Ae),this.expand();var u=this;setTimeout(function(){_e(c,"click",Ae),u._preventClick=!1})}}),vs=function(c,u,g){return new Ji(c,u,g)},_i=Fe.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(c){var u="leaflet-control-zoom",g=Ce("div",u+" leaflet-bar"),C=this.options;return this._zoomInButton=this._createButton(C.zoomInText,C.zoomInTitle,u+"-in",g,this._zoomIn),this._zoomOutButton=this._createButton(C.zoomOutText,C.zoomOutTitle,u+"-out",g,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),g},onRemove:function(c){c.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,u,g,C,w){var P=Ce("a",g,C);return P.innerHTML=c,P.href="#",P.title=u,P.setAttribute("role","button"),P.setAttribute("aria-label",u),Rt(P),he(P,"click",rt),he(P,"click",w,this),he(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var c=this._map,u="leaflet-disabled";be(this._zoomInButton,u),be(this._zoomOutButton,u),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(pe(this._zoomOutButton,u),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(pe(this._zoomInButton,u),this._zoomInButton.setAttribute("aria-disabled","true"))}});ge.mergeOptions({zoomControl:!0}),ge.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _i,this.addControl(this.zoomControl))});var Cs=function(c){return new _i(c)},en=Fe.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var u="leaflet-control-scale",g=Ce("div",u),C=this.options;return this._addScales(C,u+"-line",g),c.on(C.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),g},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,u,g){c.metric&&(this._mScale=Ce("div",u,g)),c.imperial&&(this._iScale=Ce("div",u,g))},_update:function(){var c=this._map,u=c.getSize().y/2,g=c.distance(c.containerPointToLatLng([0,u]),c.containerPointToLatLng([this.options.maxWidth,u]));this._updateScales(g)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var u=this._getRoundNum(c),g=u<1e3?u+" m":u/1e3+" km";this._updateScale(this._mScale,g,u/c)},_updateImperial:function(c){var u=c*3.2808399,g,C,w;u>5280?(g=u/5280,C=this._getRoundNum(g),this._updateScale(this._iScale,C+" mi",C/g)):(w=this._getRoundNum(u),this._updateScale(this._iScale,w+" ft",w/u))},_updateScale:function(c,u,g){c.style.width=Math.round(this.options.maxWidth*g)+"px",c.innerHTML=u},_getRoundNum:function(c){var u=Math.pow(10,(Math.floor(c)+"").length-1),g=c/u;return g=g>=10?10:g>=5?5:g>=3?3:g>=2?2:1,u*g}}),_s=function(c){return new en(c)},ys='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',yi=Fe.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(te.inlineSvg?ys+" ":"")+"Leaflet</a>"},initialize:function(c){b(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=Ce("div","leaflet-control-attribution"),Rt(this._container);for(var u in c._layers)c._layers[u].getAttribution&&this.addAttribution(c._layers[u].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var u in this._attributions)this._attributions[u]&&c.push(u);var g=[];this.options.prefix&&g.push(this.options.prefix),c.length&&g.push(c.join(", ")),this._container.innerHTML=g.join(' <span aria-hidden="true">|</span> ')}}});ge.mergeOptions({attributionControl:!0}),ge.addInitHook(function(){this.options.attributionControl&&new yi().addTo(this)});var bs=function(c){return new yi(c)};Fe.Layers=Ji,Fe.Zoom=_i,Fe.Scale=en,Fe.Attribution=yi,At.layers=vs,At.zoom=Cs,At.scale=_s,At.attribution=bs;var Ge=ee.extend({initialize:function(c){this._map=c},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ge.addTo=function(c,u){return c.addHandler(u,this),this};var ws={Events:$},tn=te.touch?"touchstart mousedown":"mousedown",Qe=q.extend({options:{clickTolerance:3},initialize:function(c,u,g,C){b(this,C),this._element=c,this._dragStartTarget=u||c,this._preventOutline=g},enable:function(){this._enabled||(he(this._dragStartTarget,tn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Qe._dragging===this&&this.finishDrag(!0),_e(this._dragStartTarget,tn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!si(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){Qe._dragging===this&&this.finishDrag();return}if(!(Qe._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(Qe._dragging=this,this._preventOutline&&di(this._element),ai(),Et(),!this._moving)){this.fire("down");var u=c.touches?c.touches[0]:c,g=Ki(this._element);this._startPoint=new W(u.clientX,u.clientY),this._startPos=st(this._element),this._parentScale=ui(g);var C=c.type==="mousedown";he(document,C?"mousemove":"touchmove",this._onMove,this),he(document,C?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var u=c.touches&&c.touches.length===1?c.touches[0]:c,g=new W(u.clientX,u.clientY)._subtract(this._startPoint);!g.x&&!g.y||Math.abs(g.x)+Math.abs(g.y)<this.options.clickTolerance||(g.x/=this._parentScale.x,g.y/=this._parentScale.y,Ae(c),this._moved||(this.fire("dragstart"),this._moved=!0,pe(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),pe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(g),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),Se(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){be(document.body,"leaflet-dragging"),this._lastTarget&&(be(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),_e(document,"mousemove touchmove",this._onMove,this),_e(document,"mouseup touchend touchcancel",this._onUp,this),li(),Pt();var u=this._moved&&this._moving;this._moving=!1,Qe._dragging=!1,u&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function sn(c,u,g){var C,w=[1,4,2,8],P,O,N,k,H,Q,se,fe;for(P=0,Q=c.length;P<Q;P++)c[P]._code=at(c[P],u);for(N=0;N<4;N++){for(se=w[N],C=[],P=0,Q=c.length,O=Q-1;P<Q;O=P++)k=c[P],H=c[O],k._code&se?H._code&se||(fe=Ht(H,k,se,u,g),fe._code=at(fe,u),C.push(fe)):(H._code&se&&(fe=Ht(H,k,se,u,g),fe._code=at(fe,u),C.push(fe)),C.push(k));c=C}return c}function rn(c,u){var g,C,w,P,O,N,k,H,Q;if(!c||c.length===0)throw new Error("latlngs not passed");Le(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var se=ie([0,0]),fe=le(c),De=fe.getNorthWest().distanceTo(fe.getSouthWest())*fe.getNorthEast().distanceTo(fe.getNorthWest());De<1700&&(se=bi(c));var Re=c.length,xe=[];for(g=0;g<Re;g++){var Oe=ie(c[g]);xe.push(u.project(ie([Oe.lat-se.lat,Oe.lng-se.lng])))}for(N=k=H=0,g=0,C=Re-1;g<Re;C=g++)w=xe[g],P=xe[C],O=w.y*P.x-P.y*w.x,k+=(w.x+P.x)*O,H+=(w.y+P.y)*O,N+=O*3;N===0?Q=xe[0]:Q=[k/N,H/N];var Ct=u.unproject(K(Q));return ie([Ct.lat+se.lat,Ct.lng+se.lng])}function bi(c){for(var u=0,g=0,C=0,w=0;w<c.length;w++){var P=ie(c[w]);u+=P.lat,g+=P.lng,C++}return ie([u/C,g/C])}var Ss={__proto__:null,clipPolygon:sn,polygonCenter:rn,centroid:bi};function an(c,u){if(!u||!c.length)return c.slice();var g=u*u;return c=Ts(c,g),c=Ps(c,g),c}function ln(c,u,g){return Math.sqrt(Dt(c,u,g,!0))}function Es(c,u,g){return Dt(c,u,g)}function Ps(c,u){var g=c.length,C=typeof Uint8Array!=void 0+""?Uint8Array:Array,w=new C(g);w[0]=w[g-1]=1,wi(c,w,u,0,g-1);var P,O=[];for(P=0;P<g;P++)w[P]&&O.push(c[P]);return O}function wi(c,u,g,C,w){var P=0,O,N,k;for(N=C+1;N<=w-1;N++)k=Dt(c[N],c[C],c[w],!0),k>P&&(O=N,P=k);P>g&&(u[O]=1,wi(c,u,g,C,O),wi(c,u,g,O,w))}function Ts(c,u){for(var g=[c[0]],C=1,w=0,P=c.length;C<P;C++)Rs(c[C],c[w])>u&&(g.push(c[C]),w=C);return w<P-1&&g.push(c[P-1]),g}var cn;function dn(c,u,g,C,w){var P=C?cn:at(c,g),O=at(u,g),N,k,H;for(cn=O;;){if(!(P|O))return[c,u];if(P&O)return!1;N=P||O,k=Ht(c,u,N,g,w),H=at(k,g),N===P?(c=k,P=H):(u=k,O=H)}}function Ht(c,u,g,C,w){var P=u.x-c.x,O=u.y-c.y,N=C.min,k=C.max,H,Q;return g&8?(H=c.x+P*(k.y-c.y)/O,Q=k.y):g&4?(H=c.x+P*(N.y-c.y)/O,Q=N.y):g&2?(H=k.x,Q=c.y+O*(k.x-c.x)/P):g&1&&(H=N.x,Q=c.y+O*(N.x-c.x)/P),new W(H,Q,w)}function at(c,u){var g=0;return c.x<u.min.x?g|=1:c.x>u.max.x&&(g|=2),c.y<u.min.y?g|=4:c.y>u.max.y&&(g|=8),g}function Rs(c,u){var g=u.x-c.x,C=u.y-c.y;return g*g+C*C}function Dt(c,u,g,C){var w=u.x,P=u.y,O=g.x-w,N=g.y-P,k=O*O+N*N,H;return k>0&&(H=((c.x-w)*O+(c.y-P)*N)/k,H>1?(w=g.x,P=g.y):H>0&&(w+=O*H,P+=N*H)),O=c.x-w,N=c.y-P,C?O*O+N*N:new W(w,P)}function Le(c){return!R(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function un(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Le(c)}function hn(c,u){var g,C,w,P,O,N,k,H;if(!c||c.length===0)throw new Error("latlngs not passed");Le(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Q=ie([0,0]),se=le(c),fe=se.getNorthWest().distanceTo(se.getSouthWest())*se.getNorthEast().distanceTo(se.getNorthWest());fe<1700&&(Q=bi(c));var De=c.length,Re=[];for(g=0;g<De;g++){var xe=ie(c[g]);Re.push(u.project(ie([xe.lat-Q.lat,xe.lng-Q.lng])))}for(g=0,C=0;g<De-1;g++)C+=Re[g].distanceTo(Re[g+1])/2;if(C===0)H=Re[0];else for(g=0,P=0;g<De-1;g++)if(O=Re[g],N=Re[g+1],w=O.distanceTo(N),P+=w,P>C){k=(P-C)/w,H=[N.x-k*(N.x-O.x),N.y-k*(N.y-O.y)];break}var Oe=u.unproject(K(H));return ie([Oe.lat+Q.lat,Oe.lng+Q.lng])}var As={__proto__:null,simplify:an,pointToSegmentDistance:ln,closestPointOnSegment:Es,clipSegment:dn,_getEdgeIntersection:Ht,_getBitCode:at,_sqClosestPointOnSegment:Dt,isFlat:Le,_flat:un,polylineCenter:hn},Si={project:function(c){return new W(c.lng,c.lat)},unproject:function(c){return new oe(c.y,c.x)},bounds:new ue([-180,-90],[180,90])},Ei={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ue([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var u=Math.PI/180,g=this.R,C=c.lat*u,w=this.R_MINOR/g,P=Math.sqrt(1-w*w),O=P*Math.sin(C),N=Math.tan(Math.PI/4-C/2)/Math.pow((1-O)/(1+O),P/2);return C=-g*Math.log(Math.max(N,1e-10)),new W(c.lng*u*g,C)},unproject:function(c){for(var u=180/Math.PI,g=this.R,C=this.R_MINOR/g,w=Math.sqrt(1-C*C),P=Math.exp(-c.y/g),O=Math.PI/2-2*Math.atan(P),N=0,k=.1,H;N<15&&Math.abs(k)>1e-7;N++)H=w*Math.sin(O),H=Math.pow((1-H)/(1+H),w/2),k=Math.PI/2-2*Math.atan(P*H)-O,O+=k;return new oe(O*u,c.x*u/g)}},Ds={__proto__:null,LonLat:Si,Mercator:Ei,SphericalMercator:qe},Os=n({},Pe,{code:"EPSG:3395",projection:Ei,transformation:function(){var c=.5/(Math.PI*Ei.R);return Ne(c,.5,-c,.5)}()}),pn=n({},Pe,{code:"EPSG:4326",projection:Si,transformation:Ne(1/180,1,-1/180,.5)}),Ms=n({},we,{projection:Si,transformation:Ne(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,u){var g=u.lng-c.lng,C=u.lat-c.lat;return Math.sqrt(g*g+C*C)},infinite:!0});we.Earth=Pe,we.EPSG3395=Os,we.EPSG3857=Be,we.EPSG900913=Xe,we.EPSG4326=pn,we.Simple=Ms;var Ie=q.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[l(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[l(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var u=c.target;if(u.hasLayer(this)){if(this._map=u,this._zoomAnimated=u._zoomAnimated,this.getEvents){var g=this.getEvents();u.on(g,this),this.once("remove",function(){u.off(g,this)},this)}this.onAdd(u),this.fire("add"),u.fire("layeradd",{layer:this})}}});ge.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var u=l(c);return this._layers[u]?this:(this._layers[u]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var u=l(c);return this._layers[u]?(this._loaded&&c.onRemove(this),delete this._layers[u],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return l(c)in this._layers},eachLayer:function(c,u){for(var g in this._layers)c.call(u,this._layers[g]);return this},_addLayers:function(c){c=c?R(c)?c:[c]:[];for(var u=0,g=c.length;u<g;u++)this.addLayer(c[u])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[l(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var u=l(c);this._zoomBoundLayers[u]&&(delete this._zoomBoundLayers[u],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,u=-1/0,g=this._getZoomSpan();for(var C in this._zoomBoundLayers){var w=this._zoomBoundLayers[C].options;c=w.minZoom===void 0?c:Math.min(c,w.minZoom),u=w.maxZoom===void 0?u:Math.max(u,w.maxZoom)}this._layersMaxZoom=u===-1/0?void 0:u,this._layersMinZoom=c===1/0?void 0:c,g!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ht=Ie.extend({initialize:function(c,u){b(this,u),this._layers={};var g,C;if(c)for(g=0,C=c.length;g<C;g++)this.addLayer(c[g])},addLayer:function(c){var u=this.getLayerId(c);return this._layers[u]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var u=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[u]&&this._map.removeLayer(this._layers[u]),delete this._layers[u],this},hasLayer:function(c){var u=typeof c=="number"?c:this.getLayerId(c);return u in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var u=Array.prototype.slice.call(arguments,1),g,C;for(g in this._layers)C=this._layers[g],C[c]&&C[c].apply(C,u);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,u){for(var g in this._layers)c.call(u,this._layers[g]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return l(c)}}),Ls=function(c,u){return new ht(c,u)},je=ht.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),ht.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),ht.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new ae;for(var u in this._layers){var g=this._layers[u];c.extend(g.getBounds?g.getBounds():g.getLatLng())}return c}}),xs=function(c,u){return new je(c,u)},ft=ee.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){b(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,u){var g=this._getIconUrl(c);if(!g){if(c==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var C=this._createImg(g,u&&u.tagName==="IMG"?u:null);return this._setIconStyles(C,c),(this.options.crossOrigin||this.options.crossOrigin==="")&&(C.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),C},_setIconStyles:function(c,u){var g=this.options,C=g[u+"Size"];typeof C=="number"&&(C=[C,C]);var w=K(C),P=K(u==="shadow"&&g.shadowAnchor||g.iconAnchor||w&&w.divideBy(2,!0));c.className="leaflet-marker-"+u+" "+(g.className||""),P&&(c.style.marginLeft=-P.x+"px",c.style.marginTop=-P.y+"px"),w&&(c.style.width=w.x+"px",c.style.height=w.y+"px")},_createImg:function(c,u){return u=u||document.createElement("img"),u.src=c,u},_getIconUrl:function(c){return te.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});function Fs(c){return new ft(c)}var Ot=ft.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(c){return typeof Ot.imagePath!="string"&&(Ot.imagePath=this._detectIconPath()),(this.options.imagePath||Ot.imagePath)+ft.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var u=function(g,C,w){var P=C.exec(g);return P&&P[w]};return c=u(c,/^url\((['"])?(.+)\1\)$/,2),c&&u(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=Ce("div","leaflet-default-icon-path",document.body),u=St(c,"background-image")||St(c,"backgroundImage");if(document.body.removeChild(c),u=this._stripUrl(u),u)return u;var g=document.querySelector('link[href$="leaflet.css"]');return g?g.href.substring(0,g.href.length-11-1):""}}),fn=Ge.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new Qe(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),pe(c,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&be(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var u=this._marker,g=u._map,C=this._marker.options.autoPanSpeed,w=this._marker.options.autoPanPadding,P=st(u._icon),O=g.getPixelBounds(),N=g.getPixelOrigin(),k=ve(O.min._subtract(N).add(w),O.max._subtract(N).subtract(w));if(!k.contains(P)){var H=K((Math.max(k.max.x,P.x)-k.max.x)/(O.max.x-k.max.x)-(Math.min(k.min.x,P.x)-k.min.x)/(O.min.x-k.min.x),(Math.max(k.max.y,P.y)-k.max.y)/(O.max.y-k.max.y)-(Math.min(k.min.y,P.y)-k.min.y)/(O.min.y-k.min.y)).multiplyBy(C);g.panBy(H,{animate:!1}),this._draggable._newPos._add(H),this._draggable._startPos._add(H),Se(u._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=B(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(Y(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,c)))},_onDrag:function(c){var u=this._marker,g=u._shadow,C=st(u._icon),w=u._map.layerPointToLatLng(C);g&&Se(g,C),u._latlng=w,c.latlng=w,c.oldLatLng=this._oldLatLng,u.fire("move",c).fire("drag",c)},_onDragEnd:function(c){Y(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),Wt=Ie.extend({options:{icon:new Ot,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(c,u){b(this,u),this._latlng=ie(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(c){var u=this._latlng;return this._latlng=ie(c),this.update(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,u="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),g=c.icon.createIcon(this._icon),C=!1;g!==this._icon&&(this._icon&&this._removeIcon(),C=!0,c.title&&(g.title=c.title),g.tagName==="IMG"&&(g.alt=c.alt||"")),pe(g,u),c.keyboard&&(g.tabIndex="0",g.setAttribute("role","button")),this._icon=g,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&he(g,"focus",this._panOnFocus,this);var w=c.icon.createShadow(this._shadow),P=!1;w!==this._shadow&&(this._removeShadow(),P=!0),w&&(pe(w,u),w.alt=""),this._shadow=w,c.opacity<1&&this._updateOpacity(),C&&this.getPane().appendChild(this._icon),this._initInteraction(),w&&P&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&_e(this._icon,"focus",this._panOnFocus,this),ye(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ye(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&Se(this._icon,c),this._shadow&&Se(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var u=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(u)},_initInteraction:function(){if(this.options.interactive&&(pe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),fn)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new fn(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&Me(this._icon,c),this._shadow&&Me(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var u=this.options.icon.options,g=u.iconSize?K(u.iconSize):K(0,0),C=u.iconAnchor?K(u.iconAnchor):K(0,0);c.panInside(this._latlng,{paddingTopLeft:C,paddingBottomRight:g.subtract(C)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Is(c,u){return new Wt(c,u)}var Ze=Ie.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(c){this._renderer=c.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(c){return b(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Bt=Ze.extend({options:{fill:!0,radius:10},initialize:function(c,u){b(this,u),this._latlng=ie(c),this._radius=this.options.radius},setLatLng:function(c){var u=this._latlng;return this._latlng=ie(c),this.redraw(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var u=c&&c.radius||this._radius;return Ze.prototype.setStyle.call(this,c),this.setRadius(u),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,u=this._radiusY||c,g=this._clickTolerance(),C=[c+g,u+g];this._pxBounds=new ue(this._point.subtract(C),this._point.add(C))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Ns(c,u){return new Bt(c,u)}var Pi=Bt.extend({initialize:function(c,u,g){if(typeof u=="number"&&(u=n({},g,{radius:u})),b(this,u),this._latlng=ie(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new ae(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:Ze.prototype.setStyle,_project:function(){var c=this._latlng.lng,u=this._latlng.lat,g=this._map,C=g.options.crs;if(C.distance===Pe.distance){var w=Math.PI/180,P=this._mRadius/Pe.R/w,O=g.project([u+P,c]),N=g.project([u-P,c]),k=O.add(N).divideBy(2),H=g.unproject(k).lat,Q=Math.acos((Math.cos(P*w)-Math.sin(u*w)*Math.sin(H*w))/(Math.cos(u*w)*Math.cos(H*w)))/w;(isNaN(Q)||Q===0)&&(Q=P/Math.cos(Math.PI/180*u)),this._point=k.subtract(g.getPixelOrigin()),this._radius=isNaN(Q)?0:k.x-g.project([H,c-Q]).x,this._radiusY=k.y-O.y}else{var se=C.unproject(C.project(this._latlng).subtract([this._mRadius,0]));this._point=g.latLngToLayerPoint(this._latlng),this._radius=this._point.x-g.latLngToLayerPoint(se).x}this._updateBounds()}});function $s(c,u,g){return new Pi(c,u,g)}var Ue=Ze.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,u){b(this,u),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var u=1/0,g=null,C=Dt,w,P,O=0,N=this._parts.length;O<N;O++)for(var k=this._parts[O],H=1,Q=k.length;H<Q;H++){w=k[H-1],P=k[H];var se=C(c,w,P,!0);se<u&&(u=se,g=C(c,w,P))}return g&&(g.distance=Math.sqrt(u)),g},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return hn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,u){return u=u||this._defaultShape(),c=ie(c),u.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new ae,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return Le(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var u=[],g=Le(c),C=0,w=c.length;C<w;C++)g?(u[C]=ie(c[C]),this._bounds.extend(u[C])):u[C]=this._convertLatLngs(c[C]);return u},_project:function(){var c=new ue;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),u=new W(c,c);this._rawPxBounds&&(this._pxBounds=new ue([this._rawPxBounds.min.subtract(u),this._rawPxBounds.max.add(u)]))},_projectLatlngs:function(c,u,g){var C=c[0]instanceof oe,w=c.length,P,O;if(C){for(O=[],P=0;P<w;P++)O[P]=this._map.latLngToLayerPoint(c[P]),g.extend(O[P]);u.push(O)}else for(P=0;P<w;P++)this._projectLatlngs(c[P],u,g)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}var u=this._parts,g,C,w,P,O,N,k;for(g=0,w=0,P=this._rings.length;g<P;g++)for(k=this._rings[g],C=0,O=k.length;C<O-1;C++)N=dn(k[C],k[C+1],c,C,!0),N&&(u[w]=u[w]||[],u[w].push(N[0]),(N[1]!==k[C+1]||C===O-2)&&(u[w].push(N[1]),w++))}},_simplifyPoints:function(){for(var c=this._parts,u=this.options.smoothFactor,g=0,C=c.length;g<C;g++)c[g]=an(c[g],u)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,u){var g,C,w,P,O,N,k=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(g=0,P=this._parts.length;g<P;g++)for(N=this._parts[g],C=0,O=N.length,w=O-1;C<O;w=C++)if(!(!u&&C===0)&&ln(c,N[w],N[C])<=k)return!0;return!1}});function ks(c,u){return new Ue(c,u)}Ue._flat=un;var gt=Ue.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return rn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var u=Ue.prototype._convertLatLngs.call(this,c),g=u.length;return g>=2&&u[0]instanceof oe&&u[0].equals(u[g-1])&&u.pop(),u},_setLatLngs:function(c){Ue.prototype._setLatLngs.call(this,c),Le(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Le(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,u=this.options.weight,g=new W(u,u);if(c=new ue(c.min.subtract(g),c.max.add(g)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var C=0,w=this._rings.length,P;C<w;C++)P=sn(this._rings[C],c,!0),P.length&&this._parts.push(P)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var u=!1,g,C,w,P,O,N,k,H;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(P=0,k=this._parts.length;P<k;P++)for(g=this._parts[P],O=0,H=g.length,N=H-1;O<H;N=O++)C=g[O],w=g[N],C.y>c.y!=w.y>c.y&&c.x<(w.x-C.x)*(c.y-C.y)/(w.y-C.y)+C.x&&(u=!u);return u||Ue.prototype._containsPoint.call(this,c,!0)}});function Gs(c,u){return new gt(c,u)}var Ke=je.extend({initialize:function(c,u){b(this,u),this._layers={},c&&this.addData(c)},addData:function(c){var u=R(c)?c:c.features,g,C,w;if(u){for(g=0,C=u.length;g<C;g++)w=u[g],(w.geometries||w.geometry||w.features||w.coordinates)&&this.addData(w);return this}var P=this.options;if(P.filter&&!P.filter(c))return this;var O=zt(c,P);return O?(O.feature=Kt(c),O.defaultOptions=O.options,this.resetStyle(O),P.onEachFeature&&P.onEachFeature(c,O),this.addLayer(O)):this},resetStyle:function(c){return c===void 0?this.eachLayer(this.resetStyle,this):(c.options=n({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(u){this._setLayerStyle(u,c)},this)},_setLayerStyle:function(c,u){c.setStyle&&(typeof u=="function"&&(u=u(c.feature)),c.setStyle(u))}});function zt(c,u){var g=c.type==="Feature"?c.geometry:c,C=g?g.coordinates:null,w=[],P=u&&u.pointToLayer,O=u&&u.coordsToLatLng||Ti,N,k,H,Q;if(!C&&!g)return null;switch(g.type){case"Point":return N=O(C),gn(P,c,N,u);case"MultiPoint":for(H=0,Q=C.length;H<Q;H++)N=O(C[H]),w.push(gn(P,c,N,u));return new je(w);case"LineString":case"MultiLineString":return k=jt(C,g.type==="LineString"?0:1,O),new Ue(k,u);case"Polygon":case"MultiPolygon":return k=jt(C,g.type==="Polygon"?1:2,O),new gt(k,u);case"GeometryCollection":for(H=0,Q=g.geometries.length;H<Q;H++){var se=zt({geometry:g.geometries[H],type:"Feature",properties:c.properties},u);se&&w.push(se)}return new je(w);case"FeatureCollection":for(H=0,Q=g.features.length;H<Q;H++){var fe=zt(g.features[H],u);fe&&w.push(fe)}return new je(w);default:throw new Error("Invalid GeoJSON object.")}}function gn(c,u,g,C){return c?c(u,g):new Wt(g,C&&C.markersInheritOptions&&C)}function Ti(c){return new oe(c[1],c[0],c[2])}function jt(c,u,g){for(var C=[],w=0,P=c.length,O;w<P;w++)O=u?jt(c[w],u-1,g):(g||Ti)(c[w]),C.push(O);return C}function Ri(c,u){return c=ie(c),c.alt!==void 0?[m(c.lng,u),m(c.lat,u),m(c.alt,u)]:[m(c.lng,u),m(c.lat,u)]}function Ut(c,u,g,C){for(var w=[],P=0,O=c.length;P<O;P++)w.push(u?Ut(c[P],Le(c[P])?0:u-1,g,C):Ri(c[P],C));return!u&&g&&w.length>0&&w.push(w[0].slice()),w}function mt(c,u){return c.feature?n({},c.feature,{geometry:u}):Kt(u)}function Kt(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var Ai={toGeoJSON:function(c){return mt(this,{type:"Point",coordinates:Ri(this.getLatLng(),c)})}};Wt.include(Ai),Pi.include(Ai),Bt.include(Ai),Ue.include({toGeoJSON:function(c){var u=!Le(this._latlngs),g=Ut(this._latlngs,u?1:0,!1,c);return mt(this,{type:(u?"Multi":"")+"LineString",coordinates:g})}}),gt.include({toGeoJSON:function(c){var u=!Le(this._latlngs),g=u&&!Le(this._latlngs[0]),C=Ut(this._latlngs,g?2:u?1:0,!0,c);return u||(C=[C]),mt(this,{type:(g?"Multi":"")+"Polygon",coordinates:C})}}),ht.include({toMultiPoint:function(c){var u=[];return this.eachLayer(function(g){u.push(g.toGeoJSON(c).geometry.coordinates)}),mt(this,{type:"MultiPoint",coordinates:u})},toGeoJSON:function(c){var u=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(u==="MultiPoint")return this.toMultiPoint(c);var g=u==="GeometryCollection",C=[];return this.eachLayer(function(w){if(w.toGeoJSON){var P=w.toGeoJSON(c);if(g)C.push(P.geometry);else{var O=Kt(P);O.type==="FeatureCollection"?C.push.apply(C,O.features):C.push(O)}}}),g?mt(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function mn(c,u){return new Ke(c,u)}var Vs=mn,Yt=Ie.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,u,g){this._url=c,this._bounds=le(u),b(this,g)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(pe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ye(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&dt(this._image),this},bringToBack:function(){return this._map&&ut(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=le(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",u=this._image=c?this._url:Ce("img");if(pe(u,"leaflet-image-layer"),this._zoomAnimated&&pe(u,"leaflet-zoom-animated"),this.options.className&&pe(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onload=r(this.fire,this,"load"),u.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=u.src;return}u.src=this._url,u.alt=this.options.alt},_animateZoom:function(c){var u=this._map.getZoomScale(c.zoom),g=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;nt(this._image,g,u)},_reset:function(){var c=this._image,u=new ue(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),g=u.getSize();Se(c,u.min),c.style.width=g.x+"px",c.style.height=g.y+"px"},_updateOpacity:function(){Me(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),Hs=function(c,u,g){return new Yt(c,u,g)},vn=Yt.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",u=this._image=c?this._url:Ce("video");if(pe(u,"leaflet-image-layer"),this._zoomAnimated&&pe(u,"leaflet-zoom-animated"),this.options.className&&pe(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onloadeddata=r(this.fire,this,"load"),c){for(var g=u.getElementsByTagName("source"),C=[],w=0;w<g.length;w++)C.push(g[w].src);this._url=g.length>0?C:[u.src];return}R(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(u.style,"objectFit")&&(u.style.objectFit="fill"),u.autoplay=!!this.options.autoplay,u.loop=!!this.options.loop,u.muted=!!this.options.muted,u.playsInline=!!this.options.playsInline;for(var P=0;P<this._url.length;P++){var O=Ce("source");O.src=this._url[P],u.appendChild(O)}}});function Ws(c,u,g){return new vn(c,u,g)}var Cn=Yt.extend({_initImage:function(){var c=this._image=this._url;pe(c,"leaflet-image-layer"),this._zoomAnimated&&pe(c,"leaflet-zoom-animated"),this.options.className&&pe(c,this.options.className),c.onselectstart=p,c.onmousemove=p}});function Bs(c,u,g){return new Cn(c,u,g)}var Ve=Ie.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,u){c&&(c instanceof oe||R(c))?(this._latlng=ie(c),b(this,u)):(b(this,c),this._source=u),this.options.content&&(this._content=this.options.content)},openOn:function(c){return c=arguments.length?c:this._source._map,c.hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&Me(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&Me(this._container,1),this.bringToFront(),this.options.interactive&&(pe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(Me(this._container,0),this._removeTimeout=setTimeout(r(ye,void 0,this._container),200)):ye(this._container),this.options.interactive&&(be(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=ie(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&dt(this._container),this},bringToBack:function(){return this._map&&ut(this._container),this},_prepareOpen:function(c){var u=this._source;if(!u._map)return!1;if(u instanceof je){u=null;var g=this._source._layers;for(var C in g)if(g[C]._map){u=g[C];break}if(!u)return!1;this._source=u}if(!c)if(u.getCenter)c=u.getCenter();else if(u.getLatLng)c=u.getLatLng();else if(u.getBounds)c=u.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,u=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof u=="string")c.innerHTML=u;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(u)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),u=K(this.options.offset),g=this._getAnchor();this._zoomAnimated?Se(this._container,c.add(g)):u=u.add(c).add(g);var C=this._containerBottom=-u.y,w=this._containerLeft=-Math.round(this._containerWidth/2)+u.x;this._container.style.bottom=C+"px",this._container.style.left=w+"px"}},_getAnchor:function(){return[0,0]}});ge.include({_initOverlay:function(c,u,g,C){var w=u;return w instanceof c||(w=new c(C).setContent(u)),g&&w.setLatLng(g),w}}),Ie.include({_initOverlay:function(c,u,g,C){var w=g;return w instanceof c?(b(w,C),w._source=this):(w=u&&!C?u:new c(C,this),w.setContent(g)),w}});var qt=Ve.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(c){return c=arguments.length?c:this._source._map,!c.hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,Ve.prototype.openOn.call(this,c)},onAdd:function(c){Ve.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ze||this._source.on("preclick",ot))},onRemove:function(c){Ve.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ze||this._source.off("preclick",ot))},getEvents:function(){var c=Ve.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",u=this._container=Ce("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),g=this._wrapper=Ce("div",c+"-content-wrapper",u);if(this._contentNode=Ce("div",c+"-content",g),Rt(u),mi(this._contentNode),he(u,"contextmenu",ot),this._tipContainer=Ce("div",c+"-tip-container",u),this._tip=Ce("div",c+"-tip",this._tipContainer),this.options.closeButton){var C=this._closeButton=Ce("a",c+"-close-button",u);C.setAttribute("role","button"),C.setAttribute("aria-label","Close popup"),C.href="#close",C.innerHTML='<span aria-hidden="true">&#215;</span>',he(C,"click",function(w){Ae(w),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,u=c.style;u.width="",u.whiteSpace="nowrap";var g=c.offsetWidth;g=Math.min(g,this.options.maxWidth),g=Math.max(g,this.options.minWidth),u.width=g+1+"px",u.whiteSpace="",u.height="";var C=c.offsetHeight,w=this.options.maxHeight,P="leaflet-popup-scrolled";w&&C>w?(u.height=w+"px",pe(c,P)):be(c,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var u=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),g=this._getAnchor();Se(this._container,u.add(g))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,u=parseInt(St(this._container,"marginBottom"),10)||0,g=this._container.offsetHeight+u,C=this._containerWidth,w=new W(this._containerLeft,-g-this._containerBottom);w._add(st(this._container));var P=c.layerPointToContainerPoint(w),O=K(this.options.autoPanPadding),N=K(this.options.autoPanPaddingTopLeft||O),k=K(this.options.autoPanPaddingBottomRight||O),H=c.getSize(),Q=0,se=0;P.x+C+k.x>H.x&&(Q=P.x+C-H.x+k.x),P.x-Q-N.x<0&&(Q=P.x-N.x),P.y+g+k.y>H.y&&(se=P.y+g-H.y+k.y),P.y-se-N.y<0&&(se=P.y-N.y),(Q||se)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Q,se]))}},_getAnchor:function(){return K(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),zs=function(c,u){return new qt(c,u)};ge.mergeOptions({closePopupOnClick:!0}),ge.include({openPopup:function(c,u,g){return this._initOverlay(qt,c,u,g).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),Ie.include({bindPopup:function(c,u){return this._popup=this._initOverlay(qt,this._popup,c,u),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(c){return this._popup&&(this instanceof je||(this._popup._source=this),this._popup._prepareOpen(c||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){rt(c);var u=c.layer||c.target;if(this._popup._source===u&&!(u instanceof Ze)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=u,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var Xt=Ve.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){Ve.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){Ve.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=Ve.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",u=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ce("div",u),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var u,g,C=this._map,w=this._container,P=C.latLngToContainerPoint(C.getCenter()),O=C.layerPointToContainerPoint(c),N=this.options.direction,k=w.offsetWidth,H=w.offsetHeight,Q=K(this.options.offset),se=this._getAnchor();N==="top"?(u=k/2,g=H):N==="bottom"?(u=k/2,g=0):N==="center"?(u=k/2,g=H/2):N==="right"?(u=0,g=H/2):N==="left"?(u=k,g=H/2):O.x<P.x?(N="right",u=0,g=H/2):(N="left",u=k+(Q.x+se.x)*2,g=H/2),c=c.subtract(K(u,g,!0)).add(Q).add(se),be(w,"leaflet-tooltip-right"),be(w,"leaflet-tooltip-left"),be(w,"leaflet-tooltip-top"),be(w,"leaflet-tooltip-bottom"),pe(w,"leaflet-tooltip-"+N),Se(w,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&Me(this._container,c)},_animateZoom:function(c){var u=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(u)},_getAnchor:function(){return K(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),js=function(c,u){return new Xt(c,u)};ge.include({openTooltip:function(c,u,g){return this._initOverlay(Xt,c,u,g).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),Ie.include({bindTooltip:function(c,u){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Xt,this._tooltip,c,u),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(c){if(!(!c&&this._tooltipHandlersAdded)){var u=c?"off":"on",g={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?g.add=this._openTooltip:(g.mouseover=this._openTooltip,g.mouseout=this.closeTooltip,g.click=this._openTooltip,this._map?this._addFocusListeners():g.add=this._addFocusListeners),this._tooltip.options.sticky&&(g.mousemove=this._moveTooltip),this[u](g),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof je||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var u=typeof c.getElement=="function"&&c.getElement();u&&(he(u,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),he(u,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var u=typeof c.getElement=="function"&&c.getElement();u&&u.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var u=this;this._map.once("moveend",function(){u._openOnceFlag=!1,u._openTooltip(c)});return}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var u=c.latlng,g,C;this._tooltip.options.sticky&&c.originalEvent&&(g=this._map.mouseEventToContainerPoint(c.originalEvent),C=this._map.containerPointToLayerPoint(g),u=this._map.layerPointToLatLng(C)),this._tooltip.setLatLng(u)}});var _n=ft.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var u=c&&c.tagName==="DIV"?c:document.createElement("div"),g=this.options;if(g.html instanceof Element?(Nt(u),u.appendChild(g.html)):u.innerHTML=g.html!==!1?g.html:"",g.bgPos){var C=K(g.bgPos);u.style.backgroundPosition=-C.x+"px "+-C.y+"px"}return this._setIconStyles(u,"icon"),u},createShadow:function(){return null}});function Us(c){return new _n(c)}ft.Default=Ot;var Mt=Ie.extend({options:{tileSize:256,opacity:1,updateWhenIdle:te.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(c){b(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),ye(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(dt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ut(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=d(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof W?c:new W(c,c)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var u=this.getPane().children,g=-c(-1/0,1/0),C=0,w=u.length,P;C<w;C++)P=u[C].style.zIndex,u[C]!==this._container&&P&&(g=c(g,+P));isFinite(g)&&(this.options.zIndex=g+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!te.ielt9){Me(this._container,this.options.opacity);var c=+new Date,u=!1,g=!1;for(var C in this._tiles){var w=this._tiles[C];if(!(!w.current||!w.loaded)){var P=Math.min(1,(c-w.loaded)/200);Me(w.el,P),P<1?u=!0:(w.active?g=!0:this._onOpaqueTile(w),w.active=!0)}}g&&!this._noPrune&&this._pruneTiles(),u&&(Y(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=Ce("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var c=this._tileZoom,u=this.options.maxZoom;if(c!==void 0){for(var g in this._levels)g=Number(g),this._levels[g].el.children.length||g===c?(this._levels[g].el.style.zIndex=u-Math.abs(c-g),this._onUpdateLevel(g)):(ye(this._levels[g].el),this._removeTilesAtZoom(g),this._onRemoveLevel(g),delete this._levels[g]);var C=this._levels[c],w=this._map;return C||(C=this._levels[c]={},C.el=Ce("div","leaflet-tile-container leaflet-zoom-animated",this._container),C.el.style.zIndex=u,C.origin=w.project(w.unproject(w.getPixelOrigin()),c).round(),C.zoom=c,this._setZoomTransform(C,w.getCenter(),w.getZoom()),p(C.el.offsetWidth),this._onCreateLevel(C)),this._level=C,C}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var c,u,g=this._map.getZoom();if(g>this.options.maxZoom||g<this.options.minZoom){this._removeAllTiles();return}for(c in this._tiles)u=this._tiles[c],u.retain=u.current;for(c in this._tiles)if(u=this._tiles[c],u.current&&!u.active){var C=u.coords;this._retainParent(C.x,C.y,C.z,C.z-5)||this._retainChildren(C.x,C.y,C.z,C.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var u in this._tiles)this._tiles[u].coords.z===c&&this._removeTile(u)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)ye(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,u,g,C){var w=Math.floor(c/2),P=Math.floor(u/2),O=g-1,N=new W(+w,+P);N.z=+O;var k=this._tileCoordsToKey(N),H=this._tiles[k];return H&&H.active?(H.retain=!0,!0):(H&&H.loaded&&(H.retain=!0),O>C?this._retainParent(w,P,O,C):!1)},_retainChildren:function(c,u,g,C){for(var w=2*c;w<2*c+2;w++)for(var P=2*u;P<2*u+2;P++){var O=new W(w,P);O.z=g+1;var N=this._tileCoordsToKey(O),k=this._tiles[N];if(k&&k.active){k.retain=!0;continue}else k&&k.loaded&&(k.retain=!0);g+1<C&&this._retainChildren(w,P,g+1,C)}},_resetView:function(c){var u=c&&(c.pinch||c.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),u,u)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var u=this.options;return u.minNativeZoom!==void 0&&c<u.minNativeZoom?u.minNativeZoom:u.maxNativeZoom!==void 0&&u.maxNativeZoom<c?u.maxNativeZoom:c},_setView:function(c,u,g,C){var w=Math.round(u);this.options.maxZoom!==void 0&&w>this.options.maxZoom||this.options.minZoom!==void 0&&w<this.options.minZoom?w=void 0:w=this._clampZoom(w);var P=this.options.updateWhenZooming&&w!==this._tileZoom;(!C||P)&&(this._tileZoom=w,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),w!==void 0&&this._update(c),g||this._pruneTiles(),this._noPrune=!!g),this._setZoomTransforms(c,u)},_setZoomTransforms:function(c,u){for(var g in this._levels)this._setZoomTransform(this._levels[g],c,u)},_setZoomTransform:function(c,u,g){var C=this._map.getZoomScale(g,c.zoom),w=c.origin.multiplyBy(C).subtract(this._map._getNewPixelOrigin(u,g)).round();te.any3d?nt(c.el,w,C):Se(c.el,w)},_resetGrid:function(){var c=this._map,u=c.options.crs,g=this._tileSize=this.getTileSize(),C=this._tileZoom,w=this._map.getPixelWorldBounds(this._tileZoom);w&&(this._globalTileRange=this._pxBoundsToTileRange(w)),this._wrapX=u.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,u.wrapLng[0]],C).x/g.x),Math.ceil(c.project([0,u.wrapLng[1]],C).x/g.y)],this._wrapY=u.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([u.wrapLat[0],0],C).y/g.x),Math.ceil(c.project([u.wrapLat[1],0],C).y/g.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var u=this._map,g=u._animatingZoom?Math.max(u._animateToZoom,u.getZoom()):u.getZoom(),C=u.getZoomScale(g,this._tileZoom),w=u.project(c,this._tileZoom).floor(),P=u.getSize().divideBy(C*2);return new ue(w.subtract(P),w.add(P))},_update:function(c){var u=this._map;if(u){var g=this._clampZoom(u.getZoom());if(c===void 0&&(c=u.getCenter()),this._tileZoom!==void 0){var C=this._getTiledPixelBounds(c),w=this._pxBoundsToTileRange(C),P=w.getCenter(),O=[],N=this.options.keepBuffer,k=new ue(w.getBottomLeft().subtract([N,-N]),w.getTopRight().add([N,-N]));if(!(isFinite(w.min.x)&&isFinite(w.min.y)&&isFinite(w.max.x)&&isFinite(w.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var H in this._tiles){var Q=this._tiles[H].coords;(Q.z!==this._tileZoom||!k.contains(new W(Q.x,Q.y)))&&(this._tiles[H].current=!1)}if(Math.abs(g-this._tileZoom)>1){this._setView(c,g);return}for(var se=w.min.y;se<=w.max.y;se++)for(var fe=w.min.x;fe<=w.max.x;fe++){var De=new W(fe,se);if(De.z=this._tileZoom,!!this._isValidTile(De)){var Re=this._tiles[this._tileCoordsToKey(De)];Re?Re.current=!0:O.push(De)}}if(O.sort(function(Oe,Ct){return Oe.distanceTo(P)-Ct.distanceTo(P)}),O.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var xe=document.createDocumentFragment();for(fe=0;fe<O.length;fe++)this._addTile(O[fe],xe);this._level.el.appendChild(xe)}}}},_isValidTile:function(c){var u=this._map.options.crs;if(!u.infinite){var g=this._globalTileRange;if(!u.wrapLng&&(c.x<g.min.x||c.x>g.max.x)||!u.wrapLat&&(c.y<g.min.y||c.y>g.max.y))return!1}if(!this.options.bounds)return!0;var C=this._tileCoordsToBounds(c);return le(this.options.bounds).overlaps(C)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var u=this._map,g=this.getTileSize(),C=c.scaleBy(g),w=C.add(g),P=u.unproject(C,c.z),O=u.unproject(w,c.z);return[P,O]},_tileCoordsToBounds:function(c){var u=this._tileCoordsToNwSe(c),g=new ae(u[0],u[1]);return this.options.noWrap||(g=this._map.wrapLatLngBounds(g)),g},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var u=c.split(":"),g=new W(+u[0],+u[1]);return g.z=+u[2],g},_removeTile:function(c){var u=this._tiles[c];u&&(ye(u.el),delete this._tiles[c],this.fire("tileunload",{tile:u.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){pe(c,"leaflet-tile");var u=this.getTileSize();c.style.width=u.x+"px",c.style.height=u.y+"px",c.onselectstart=p,c.onmousemove=p,te.ielt9&&this.options.opacity<1&&Me(c,this.options.opacity)},_addTile:function(c,u){var g=this._getTilePos(c),C=this._tileCoordsToKey(c),w=this.createTile(this._wrapCoords(c),r(this._tileReady,this,c));this._initTile(w),this.createTile.length<2&&B(r(this._tileReady,this,c,null,w)),Se(w,g),this._tiles[C]={el:w,coords:c,current:!0},u.appendChild(w),this.fire("tileloadstart",{tile:w,coords:c})},_tileReady:function(c,u,g){u&&this.fire("tileerror",{error:u,tile:g,coords:c});var C=this._tileCoordsToKey(c);g=this._tiles[C],g&&(g.loaded=+new Date,this._map._fadeAnimated?(Me(g.el,0),Y(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(g.active=!0,this._pruneTiles()),u||(pe(g.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:g.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),te.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var u=new W(this._wrapX?h(c.x,this._wrapX):c.x,this._wrapY?h(c.y,this._wrapY):c.y);return u.z=c.z,u},_pxBoundsToTileRange:function(c){var u=this.getTileSize();return new ue(c.min.unscaleBy(u).floor(),c.max.unscaleBy(u).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function Ks(c){return new Mt(c)}var vt=Mt.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,u){this._url=c,u=b(this,u),u.detectRetina&&te.retina&&u.maxZoom>0?(u.tileSize=Math.floor(u.tileSize/2),u.zoomReverse?(u.zoomOffset--,u.minZoom=Math.min(u.maxZoom,u.minZoom+1)):(u.zoomOffset++,u.maxZoom=Math.max(u.minZoom,u.maxZoom-1)),u.minZoom=Math.max(0,u.minZoom)):u.zoomReverse?u.minZoom=Math.min(u.maxZoom,u.minZoom):u.maxZoom=Math.max(u.minZoom,u.maxZoom),typeof u.subdomains=="string"&&(u.subdomains=u.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,u){return this._url===c&&u===void 0&&(u=!0),this._url=c,u||this.redraw(),this},createTile:function(c,u){var g=document.createElement("img");return he(g,"load",r(this._tileOnLoad,this,u,g)),he(g,"error",r(this._tileOnError,this,u,g)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(g.referrerPolicy=this.options.referrerPolicy),g.alt="",g.src=this.getTileUrl(c),g},getTileUrl:function(c){var u={r:te.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var g=this._globalTileRange.max.y-c.y;this.options.tms&&(u.y=g),u["-y"]=g}return T(this._url,n(u,this.options))},_tileOnLoad:function(c,u){te.ielt9?setTimeout(r(c,this,null,u),0):c(null,u)},_tileOnError:function(c,u,g){var C=this.options.errorTileUrl;C&&u.getAttribute("src")!==C&&(u.src=C),c(g,u)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,u=this.options.maxZoom,g=this.options.zoomReverse,C=this.options.zoomOffset;return g&&(c=u-c),c+C},_getSubdomain:function(c){var u=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[u]},_abortLoading:function(){var c,u;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(u=this._tiles[c].el,u.onload=p,u.onerror=p,!u.complete)){u.src=D;var g=this._tiles[c].coords;ye(u),delete this._tiles[c],this.fire("tileabort",{tile:u,coords:g})}},_removeTile:function(c){var u=this._tiles[c];if(u)return u.el.setAttribute("src",D),Mt.prototype._removeTile.call(this,c)},_tileReady:function(c,u,g){if(!(!this._map||g&&g.getAttribute("src")===D))return Mt.prototype._tileReady.call(this,c,u,g)}});function yn(c,u){return new vt(c,u)}var bn=vt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,u){this._url=c;var g=n({},this.defaultWmsParams);for(var C in u)C in this.options||(g[C]=u[C]);u=b(this,u);var w=u.detectRetina&&te.retina?2:1,P=this.getTileSize();g.width=P.x*w,g.height=P.y*w,this.wmsParams=g},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var u=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[u]=this._crs.code,vt.prototype.onAdd.call(this,c)},getTileUrl:function(c){var u=this._tileCoordsToNwSe(c),g=this._crs,C=ve(g.project(u[0]),g.project(u[1])),w=C.min,P=C.max,O=(this._wmsVersion>=1.3&&this._crs===pn?[w.y,w.x,P.y,P.x]:[w.x,w.y,P.x,P.y]).join(","),N=vt.prototype.getTileUrl.call(this,c);return N+S(this.wmsParams,N,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+O},setParams:function(c,u){return n(this.wmsParams,c),u||this.redraw(),this}});function Ys(c,u){return new bn(c,u)}vt.WMS=bn,yn.wms=Ys;var Ye=Ie.extend({options:{padding:.1},initialize:function(c){b(this,c),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),pe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,u){var g=this._map.getZoomScale(u,this._zoom),C=this._map.getSize().multiplyBy(.5+this.options.padding),w=this._map.project(this._center,u),P=C.multiplyBy(-g).add(w).subtract(this._map._getNewPixelOrigin(c,u));te.any3d?nt(this._container,P,g):Se(this._container,P)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,u=this._map.getSize(),g=this._map.containerPointToLayerPoint(u.multiplyBy(-c)).round();this._bounds=new ue(g,g.add(u.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),wn=Ye.extend({options:{tolerance:0},getEvents:function(){var c=Ye.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ye.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");he(c,"mousemove",this._onMouseMove,this),he(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),he(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){Y(this._redrawRequest),delete this._ctx,ye(this._container),_e(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var u in this._layers)c=this._layers[u],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ye.prototype._update.call(this);var c=this._bounds,u=this._container,g=c.getSize(),C=te.retina?2:1;Se(u,c.min),u.width=C*g.x,u.height=C*g.y,u.style.width=g.x+"px",u.style.height=g.y+"px",te.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){Ye.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[l(c)]=c;var u=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=u),this._drawLast=u,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var u=c._order,g=u.next,C=u.prev;g?g.prev=C:this._drawLast=C,C?C.next=g:this._drawFirst=g,delete c._order,delete this._layers[l(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var u=c.options.dashArray.split(/[, ]+/),g=[],C,w;for(w=0;w<u.length;w++){if(C=Number(u[w]),isNaN(C))return;g.push(C)}c.options._dashArray=g}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var u=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ue,this._redrawBounds.extend(c._pxBounds.min.subtract([u,u])),this._redrawBounds.extend(c._pxBounds.max.add([u,u]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var c=this._redrawBounds;if(c){var u=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,u.x,u.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var c,u=this._redrawBounds;if(this._ctx.save(),u){var g=u.getSize();this._ctx.beginPath(),this._ctx.rect(u.min.x,u.min.y,g.x,g.y),this._ctx.clip()}this._drawing=!0;for(var C=this._drawFirst;C;C=C.next)c=C.layer,(!u||c._pxBounds&&c._pxBounds.intersects(u))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,u){if(this._drawing){var g,C,w,P,O=c._parts,N=O.length,k=this._ctx;if(N){for(k.beginPath(),g=0;g<N;g++){for(C=0,w=O[g].length;C<w;C++)P=O[g][C],k[C?"lineTo":"moveTo"](P.x,P.y);u&&k.closePath()}this._fillStroke(k,c)}}},_updateCircle:function(c){if(!(!this._drawing||c._empty())){var u=c._point,g=this._ctx,C=Math.max(Math.round(c._radius),1),w=(Math.max(Math.round(c._radiusY),1)||C)/C;w!==1&&(g.save(),g.scale(1,w)),g.beginPath(),g.arc(u.x,u.y/w,C,0,Math.PI*2,!1),w!==1&&g.restore(),this._fillStroke(g,c)}},_fillStroke:function(c,u){var g=u.options;g.fill&&(c.globalAlpha=g.fillOpacity,c.fillStyle=g.fillColor||g.color,c.fill(g.fillRule||"evenodd")),g.stroke&&g.weight!==0&&(c.setLineDash&&c.setLineDash(u.options&&u.options._dashArray||[]),c.globalAlpha=g.opacity,c.lineWidth=g.weight,c.strokeStyle=g.color,c.lineCap=g.lineCap,c.lineJoin=g.lineJoin,c.stroke())},_onClick:function(c){for(var u=this._map.mouseEventToLayerPoint(c),g,C,w=this._drawFirst;w;w=w.next)g=w.layer,g.options.interactive&&g._containsPoint(u)&&(!(c.type==="click"||c.type==="preclick")||!this._map._draggableMoved(g))&&(C=g);this._fireEvent(C?[C]:!1,c)},_onMouseMove:function(c){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var u=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,u)}},_handleMouseOut:function(c){var u=this._hoveredLayer;u&&(be(this._container,"leaflet-interactive"),this._fireEvent([u],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,u){if(!this._mouseHoverThrottled){for(var g,C,w=this._drawFirst;w;w=w.next)g=w.layer,g.options.interactive&&g._containsPoint(u)&&(C=g);C!==this._hoveredLayer&&(this._handleMouseOut(c),C&&(pe(this._container,"leaflet-interactive"),this._fireEvent([C],c,"mouseover"),this._hoveredLayer=C)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,c),this._mouseHoverThrottled=!0,setTimeout(r(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,u,g){this._map._fireDOMEvent(u,g||u.type,c)},_bringToFront:function(c){var u=c._order;if(u){var g=u.next,C=u.prev;if(g)g.prev=C;else return;C?C.next=g:g&&(this._drawFirst=g),u.prev=this._drawLast,this._drawLast.next=u,u.next=null,this._drawLast=u,this._requestRedraw(c)}},_bringToBack:function(c){var u=c._order;if(u){var g=u.next,C=u.prev;if(C)C.next=g;else return;g?g.prev=C:C&&(this._drawLast=C),u.prev=null,u.next=this._drawFirst,this._drawFirst.prev=u,this._drawFirst=u,this._requestRedraw(c)}}});function Sn(c){return te.canvas?new wn(c):null}var Lt=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),qs={_initContainer:function(){this._container=Ce("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ye.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var u=c._container=Lt("shape");pe(u,"leaflet-vml-shape "+(this.options.className||"")),u.coordsize="1 1",c._path=Lt("path"),u.appendChild(c._path),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){var u=c._container;this._container.appendChild(u),c.options.interactive&&c.addInteractiveTarget(u)},_removePath:function(c){var u=c._container;ye(u),c.removeInteractiveTarget(u),delete this._layers[l(c)]},_updateStyle:function(c){var u=c._stroke,g=c._fill,C=c.options,w=c._container;w.stroked=!!C.stroke,w.filled=!!C.fill,C.stroke?(u||(u=c._stroke=Lt("stroke")),w.appendChild(u),u.weight=C.weight+"px",u.color=C.color,u.opacity=C.opacity,C.dashArray?u.dashStyle=R(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):u.dashStyle="",u.endcap=C.lineCap.replace("butt","flat"),u.joinstyle=C.lineJoin):u&&(w.removeChild(u),c._stroke=null),C.fill?(g||(g=c._fill=Lt("fill")),w.appendChild(g),g.color=C.fillColor||C.color,g.opacity=C.fillOpacity):g&&(w.removeChild(g),c._fill=null)},_updateCircle:function(c){var u=c._point.round(),g=Math.round(c._radius),C=Math.round(c._radiusY||g);this._setPath(c,c._empty()?"M0 0":"AL "+u.x+","+u.y+" "+g+","+C+" 0,"+65535*360)},_setPath:function(c,u){c._path.v=u},_bringToFront:function(c){dt(c._container)},_bringToBack:function(c){ut(c._container)}},Qt=te.vml?Lt:ze,xt=Ye.extend({_initContainer:function(){this._container=Qt("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Qt("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ye(this._container),_e(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ye.prototype._update.call(this);var c=this._bounds,u=c.getSize(),g=this._container;(!this._svgSize||!this._svgSize.equals(u))&&(this._svgSize=u,g.setAttribute("width",u.x),g.setAttribute("height",u.y)),Se(g,c.min),g.setAttribute("viewBox",[c.min.x,c.min.y,u.x,u.y].join(" ")),this.fire("update")}},_initPath:function(c){var u=c._path=Qt("path");c.options.className&&pe(u,c.options.className),c.options.interactive&&pe(u,"leaflet-interactive"),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){ye(c._path),c.removeInteractiveTarget(c._path),delete this._layers[l(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var u=c._path,g=c.options;u&&(g.stroke?(u.setAttribute("stroke",g.color),u.setAttribute("stroke-opacity",g.opacity),u.setAttribute("stroke-width",g.weight),u.setAttribute("stroke-linecap",g.lineCap),u.setAttribute("stroke-linejoin",g.lineJoin),g.dashArray?u.setAttribute("stroke-dasharray",g.dashArray):u.removeAttribute("stroke-dasharray"),g.dashOffset?u.setAttribute("stroke-dashoffset",g.dashOffset):u.removeAttribute("stroke-dashoffset")):u.setAttribute("stroke","none"),g.fill?(u.setAttribute("fill",g.fillColor||g.color),u.setAttribute("fill-opacity",g.fillOpacity),u.setAttribute("fill-rule",g.fillRule||"evenodd")):u.setAttribute("fill","none"))},_updatePoly:function(c,u){this._setPath(c,X(c._parts,u))},_updateCircle:function(c){var u=c._point,g=Math.max(Math.round(c._radius),1),C=Math.max(Math.round(c._radiusY),1)||g,w="a"+g+","+C+" 0 1,0 ",P=c._empty()?"M0 0":"M"+(u.x-g)+","+u.y+w+g*2+",0 "+w+-g*2+",0 ";this._setPath(c,P)},_setPath:function(c,u){c._path.setAttribute("d",u)},_bringToFront:function(c){dt(c._path)},_bringToBack:function(c){ut(c._path)}});te.vml&&xt.include(qs);function En(c){return te.svg||te.vml?new xt(c):null}ge.include({getRenderer:function(c){var u=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return u||(u=this._renderer=this._createRenderer()),this.hasLayer(u)||this.addLayer(u),u},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var u=this._paneRenderers[c];return u===void 0&&(u=this._createRenderer({pane:c}),this._paneRenderers[c]=u),u},_createRenderer:function(c){return this.options.preferCanvas&&Sn(c)||En(c)}});var Pn=gt.extend({initialize:function(c,u){gt.prototype.initialize.call(this,this._boundsToLatLngs(c),u)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))},_boundsToLatLngs:function(c){return c=le(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function Xs(c,u){return new Pn(c,u)}xt.create=Qt,xt.pointsToPath=X,Ke.geometryToLayer=zt,Ke.coordsToLatLng=Ti,Ke.coordsToLatLngs=jt,Ke.latLngToCoords=Ri,Ke.latLngsToCoords=Ut,Ke.getFeature=mt,Ke.asFeature=Kt,ge.mergeOptions({boxZoom:!0});var Tn=Ge.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){he(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){_e(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ye(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Et(),ai(),this._startPoint=this._map.mouseEventToContainerPoint(c),he(document,{contextmenu:rt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=Ce("div","leaflet-zoom-box",this._container),pe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var u=new ue(this._point,this._startPoint),g=u.getSize();Se(this._box,u.min),this._box.style.width=g.x+"px",this._box.style.height=g.y+"px"},_finish:function(){this._moved&&(ye(this._box),be(this._container,"leaflet-crosshair")),Pt(),li(),_e(document,{contextmenu:rt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var u=new ae(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(u).fire("boxzoomend",{boxZoomBounds:u})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ge.addInitHook("addHandler","boxZoom",Tn),ge.mergeOptions({doubleClickZoom:!0});var Rn=Ge.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var u=this._map,g=u.getZoom(),C=u.options.zoomDelta,w=c.originalEvent.shiftKey?g-C:g+C;u.options.doubleClickZoom==="center"?u.setZoom(w):u.setZoomAround(c.containerPoint,w)}});ge.addInitHook("addHandler","doubleClickZoom",Rn),ge.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var An=Ge.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new Qe(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}pe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){be(this._map._container,"leaflet-grab"),be(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var u=le(this._map.options.maxBounds);this._offsetLimit=ve(this._map.latLngToContainerPoint(u.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(u.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var u=this._lastTime=+new Date,g=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(g),this._times.push(u),this._prunePositions(u)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),u=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=u.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,u){return c-(c-u)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),u=this._offsetLimit;c.x<u.min.x&&(c.x=this._viscousLimit(c.x,u.min.x)),c.y<u.min.y&&(c.y=this._viscousLimit(c.y,u.min.y)),c.x>u.max.x&&(c.x=this._viscousLimit(c.x,u.max.x)),c.y>u.max.y&&(c.y=this._viscousLimit(c.y,u.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,u=Math.round(c/2),g=this._initialWorldOffset,C=this._draggable._newPos.x,w=(C-u+g)%c+u-g,P=(C+u+g)%c-u-g,O=Math.abs(w+g)<Math.abs(P+g)?w:P;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=O},_onDragEnd:function(c){var u=this._map,g=u.options,C=!g.inertia||c.noInertia||this._times.length<2;if(u.fire("dragend",c),C)u.fire("moveend");else{this._prunePositions(+new Date);var w=this._lastPos.subtract(this._positions[0]),P=(this._lastTime-this._times[0])/1e3,O=g.easeLinearity,N=w.multiplyBy(O/P),k=N.distanceTo([0,0]),H=Math.min(g.inertiaMaxSpeed,k),Q=N.multiplyBy(H/k),se=H/(g.inertiaDeceleration*O),fe=Q.multiplyBy(-se/2).round();!fe.x&&!fe.y?u.fire("moveend"):(fe=u._limitOffset(fe,u.options.maxBounds),B(function(){u.panBy(fe,{duration:se,easeLinearity:O,noMoveStart:!0,animate:!0})}))}}});ge.addInitHook("addHandler","dragging",An),ge.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Dn=Ge.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),he(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),_e(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var c=document.body,u=document.documentElement,g=c.scrollTop||u.scrollTop,C=c.scrollLeft||u.scrollLeft;this._map._container.focus(),window.scrollTo(C,g)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var u=this._panKeys={},g=this.keyCodes,C,w;for(C=0,w=g.left.length;C<w;C++)u[g.left[C]]=[-1*c,0];for(C=0,w=g.right.length;C<w;C++)u[g.right[C]]=[c,0];for(C=0,w=g.down.length;C<w;C++)u[g.down[C]]=[0,c];for(C=0,w=g.up.length;C<w;C++)u[g.up[C]]=[0,-1*c]},_setZoomDelta:function(c){var u=this._zoomKeys={},g=this.keyCodes,C,w;for(C=0,w=g.zoomIn.length;C<w;C++)u[g.zoomIn[C]]=c;for(C=0,w=g.zoomOut.length;C<w;C++)u[g.zoomOut[C]]=-c},_addHooks:function(){he(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){_e(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var u=c.keyCode,g=this._map,C;if(u in this._panKeys){if(!g._panAnim||!g._panAnim._inProgress)if(C=this._panKeys[u],c.shiftKey&&(C=K(C).multiplyBy(3)),g.options.maxBounds&&(C=g._limitOffset(K(C),g.options.maxBounds)),g.options.worldCopyJump){var w=g.wrapLatLng(g.unproject(g.project(g.getCenter()).add(C)));g.panTo(w)}else g.panBy(C)}else if(u in this._zoomKeys)g.setZoom(g.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[u]);else if(u===27&&g._popup&&g._popup.options.closeOnEscapeKey)g.closePopup();else return;rt(c)}}});ge.addInitHook("addHandler","keyboard",Dn),ge.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var On=Ge.extend({addHooks:function(){he(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){_e(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var u=Qi(c),g=this._map.options.wheelDebounceTime;this._delta+=u,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var C=Math.max(g-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),C),rt(c)},_performZoom:function(){var c=this._map,u=c.getZoom(),g=this._map.options.zoomSnap||0;c._stop();var C=this._delta/(this._map.options.wheelPxPerZoomLevel*4),w=4*Math.log(2/(1+Math.exp(-Math.abs(C))))/Math.LN2,P=g?Math.ceil(w/g)*g:w,O=c._limitZoom(u+(this._delta>0?P:-P))-u;this._delta=0,this._startTime=null,O&&(c.options.scrollWheelZoom==="center"?c.setZoom(u+O):c.setZoomAround(this._lastMousePos,u+O))}});ge.addInitHook("addHandler","scrollWheelZoom",On);var Qs=600;ge.mergeOptions({tapHold:te.touchNative&&te.safari&&te.mobile,tapTolerance:15});var Mn=Ge.extend({addHooks:function(){he(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){_e(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var u=c.touches[0];this._startPos=this._newPos=new W(u.clientX,u.clientY),this._holdTimeout=setTimeout(r(function(){this._cancel(),this._isTapValid()&&(he(document,"touchend",Ae),he(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",u))},this),Qs),he(document,"touchend touchcancel contextmenu",this._cancel,this),he(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){_e(document,"touchend",Ae),_e(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),_e(document,"touchend touchcancel contextmenu",this._cancel,this),_e(document,"touchmove",this._onMove,this)},_onMove:function(c){var u=c.touches[0];this._newPos=new W(u.clientX,u.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,u){var g=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:u.screenX,screenY:u.screenY,clientX:u.clientX,clientY:u.clientY});g._simulated=!0,u.target.dispatchEvent(g)}});ge.addInitHook("addHandler","tapHold",Mn),ge.mergeOptions({touchZoom:te.touch,bounceAtZoomLimits:!0});var Ln=Ge.extend({addHooks:function(){pe(this._map._container,"leaflet-touch-zoom"),he(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){be(this._map._container,"leaflet-touch-zoom"),_e(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var u=this._map;if(!(!c.touches||c.touches.length!==2||u._animatingZoom||this._zooming)){var g=u.mouseEventToContainerPoint(c.touches[0]),C=u.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=u.getSize()._divideBy(2),this._startLatLng=u.containerPointToLatLng(this._centerPoint),u.options.touchZoom!=="center"&&(this._pinchStartLatLng=u.containerPointToLatLng(g.add(C)._divideBy(2))),this._startDist=g.distanceTo(C),this._startZoom=u.getZoom(),this._moved=!1,this._zooming=!0,u._stop(),he(document,"touchmove",this._onTouchMove,this),he(document,"touchend touchcancel",this._onTouchEnd,this),Ae(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var u=this._map,g=u.mouseEventToContainerPoint(c.touches[0]),C=u.mouseEventToContainerPoint(c.touches[1]),w=g.distanceTo(C)/this._startDist;if(this._zoom=u.getScaleZoom(w,this._startZoom),!u.options.bounceAtZoomLimits&&(this._zoom<u.getMinZoom()&&w<1||this._zoom>u.getMaxZoom()&&w>1)&&(this._zoom=u._limitZoom(this._zoom)),u.options.touchZoom==="center"){if(this._center=this._startLatLng,w===1)return}else{var P=g._add(C)._divideBy(2)._subtract(this._centerPoint);if(w===1&&P.x===0&&P.y===0)return;this._center=u.unproject(u.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(u._moveStart(!0,!1),this._moved=!0),Y(this._animRequest);var O=r(u._move,u,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(O,this,!0),Ae(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Y(this._animRequest),_e(document,"touchmove",this._onTouchMove,this),_e(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ge.addInitHook("addHandler","touchZoom",Ln),ge.BoxZoom=Tn,ge.DoubleClickZoom=Rn,ge.Drag=An,ge.Keyboard=Dn,ge.ScrollWheelZoom=On,ge.TapHold=Mn,ge.TouchZoom=Ln,t.Bounds=ue,t.Browser=te,t.CRS=we,t.Canvas=wn,t.Circle=Pi,t.CircleMarker=Bt,t.Class=ee,t.Control=Fe,t.DivIcon=_n,t.DivOverlay=Ve,t.DomEvent=gs,t.DomUtil=ps,t.Draggable=Qe,t.Evented=q,t.FeatureGroup=je,t.GeoJSON=Ke,t.GridLayer=Mt,t.Handler=Ge,t.Icon=ft,t.ImageOverlay=Yt,t.LatLng=oe,t.LatLngBounds=ae,t.Layer=Ie,t.LayerGroup=ht,t.LineUtil=As,t.Map=ge,t.Marker=Wt,t.Mixin=ws,t.Path=Ze,t.Point=W,t.PolyUtil=Ss,t.Polygon=gt,t.Polyline=Ue,t.Popup=qt,t.PosAnimation=Zi,t.Projection=Ds,t.Rectangle=Pn,t.Renderer=Ye,t.SVG=xt,t.SVGOverlay=Cn,t.TileLayer=vt,t.Tooltip=Xt,t.Transformation=We,t.Util=ne,t.VideoOverlay=vn,t.bind=r,t.bounds=ve,t.canvas=Sn,t.circle=$s,t.circleMarker=Ns,t.control=At,t.divIcon=Us,t.extend=n,t.featureGroup=xs,t.geoJSON=mn,t.geoJson=Vs,t.gridLayer=Ks,t.icon=Fs,t.imageOverlay=Hs,t.latLng=ie,t.latLngBounds=le,t.layerGroup=Ls,t.map=ms,t.marker=Is,t.point=K,t.polygon=Gs,t.polyline=ks,t.popup=zs,t.rectangle=Xs,t.setOptions=b,t.stamp=l,t.svg=En,t.svgOverlay=Bs,t.tileLayer=yn,t.tooltip=js,t.transformation=Ne,t.version=i,t.videoOverlay=Ws;var Zs=window.L;t.noConflict=function(){return window.L=Zs,this},window.L=t})})(leafletSrc,leafletSrc.exports);var leafletSrcExports=leafletSrc.exports;const L$1=getDefaultExportFromCjs(leafletSrcExports);function makeNull(s){return s==null||s===""?null:s}function exists(s,e=!1){return s!=null&&(s!==""||e)}function missing(s){return!exists(s)}function missingOrEmpty(s){return s==null||s.length===0}function toStringOrNull(s){return s!=null&&typeof s.toString=="function"?s.toString():null}function attrToNumber(s){if(s===void 0)return;if(s===null||s==="")return null;if(typeof s=="number")return isNaN(s)?void 0:s;const e=parseInt(s,10);return isNaN(e)?void 0:e}function attrToBoolean(s){if(s!==void 0)return s===null||s===""?!1:typeof s=="boolean"?s:/true/i.test(s)}function attrToString(s){if(!(s==null||s===""))return s}function jsonEquals(s,e){const t=s?JSON.stringify(s):null,i=e?JSON.stringify(e):null;return t===i}function defaultComparator(s,e,t=!1){const i=s==null,n=e==null;if(s&&s.toNumber&&(s=s.toNumber()),e&&e.toNumber&&(e=e.toNumber()),i&&n)return 0;if(i)return-1;if(n)return 1;function o(r,a){return r>a?1:r<a?-1:0}if(typeof s!="string"||!t)return o(s,e);try{return s.localeCompare(e)}catch{return o(s,e)}}function values(s){if(s instanceof Set||s instanceof Map){const e=[];return s.forEach(t=>e.push(t)),e}return Object.values(s)}const GenericUtils=Object.freeze(Object.defineProperty({__proto__:null,attrToBoolean,attrToNumber,attrToString,defaultComparator,exists,jsonEquals,makeNull,missing,missingOrEmpty,toStringOrNull,values},Symbol.toStringTag,{value:"Module"}));class ColumnKeyCreator{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=toStringOrNull(e);let i=0;for(;;){let n;if(e?(n=e,i!==0&&(n+="_"+i)):t?(n=t,i!==0&&(n+="_"+i)):n=i,!this.existingKeys[n])return this.existingKeys[n]=!0,String(n);i++}}}function iterateObject(s,e){if(s!=null){if(Array.isArray(s)){for(let t=0;t<s.length;t++)e(t.toString(),s[t]);return}for(const[t,i]of Object.entries(s))e(t,i)}}function cloneObject(s){const e={},t=Object.keys(s);for(let i=0;i<t.length;i++){const n=t[i],o=s[n];e[n]=o}return e}function deepCloneDefinition(s,e){if(!s)return;const t=s,i={};return Object.keys(t).forEach(n=>{if(e&&e.indexOf(n)>=0)return;const o=t[n];isNonNullObject(o)&&o.constructor===Object?i[n]=deepCloneDefinition(o):i[n]=o}),i}function getAllValuesInObject(s){if(!s)return[];const e=Object;if(typeof e.values=="function")return e.values(s);const t=[];for(const i in s)s.hasOwnProperty(i)&&s.propertyIsEnumerable(i)&&t.push(s[i]);return t}function mergeDeep(s,e,t=!0,i=!1){exists(e)&&iterateObject(e,(n,o)=>{let r=s[n];r!==o&&(i&&r==null&&o!=null&&typeof o=="object"&&o.constructor===Object&&(r={},s[n]=r),isNonNullObject(o)&&isNonNullObject(r)&&!Array.isArray(r)?mergeDeep(r,o,t,i):(t||o!==void 0)&&(s[n]=o))})}function getValueUsingField(s,e,t){if(!e||!s)return;if(!t)return s[e];const i=e.split(".");let n=s;for(let o=0;o<i.length;o++){if(n==null)return;n=n[i[o]]}return n}function removeAllReferences(s,e=[],t){Object.keys(s).forEach(r=>{typeof s[r]=="object"&&!e.includes(r)&&(s[r]=void 0)});const i=Object.getPrototypeOf(s),n={},o=r=>`AG Grid: Grid API function ${r}() cannot be called as the grid has been destroyed.
+ */(function(s,e){(function(t,i){i(e)})(commonjsGlobal,function(t){var i="1.9.4";function n(c){var u,g,C,w;for(g=1,C=arguments.length;g<C;g++){w=arguments[g];for(u in w)c[u]=w[u]}return c}var o=Object.create||function(){function c(){}return function(u){return c.prototype=u,new c}}();function r(c,u){var g=Array.prototype.slice;if(c.bind)return c.bind.apply(c,g.call(arguments,1));var C=g.call(arguments,2);return function(){return c.apply(u,C.length?C.concat(g.call(arguments)):arguments)}}var a=0;function l(c){return"_leaflet_id"in c||(c._leaflet_id=++a),c._leaflet_id}function d(c,u,g){var C,w,P,O;return O=function(){C=!1,w&&(P.apply(g,w),w=!1)},P=function(){C?w=arguments:(c.apply(g,arguments),setTimeout(O,u),C=!0)},P}function h(c,u,g){var C=u[1],w=u[0],P=C-w;return c===C&&g?c:((c-w)%P+P)%P+w}function p(){return!1}function m(c,u){if(u===!1)return c;var g=Math.pow(10,u===void 0?6:u);return Math.round(c*g)/g}function v(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function y(c){return v(c).split(/\s+/)}function b(c,u){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?o(c.options):{});for(var g in u)c.options[g]=u[g];return c.options}function S(c,u,g){var C=[];for(var w in c)C.push(encodeURIComponent(g?w.toUpperCase():w)+"="+encodeURIComponent(c[w]));return(!u||u.indexOf("?")===-1?"?":"&")+C.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function T(c,u){return c.replace(E,function(g,C){var w=u[C];if(w===void 0)throw new Error("No value provided for variable "+g);return typeof w=="function"&&(w=w(u)),w})}var R=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function A(c,u){for(var g=0;g<c.length;g++)if(c[g]===u)return g;return-1}var D="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var M=0;function I(c){var u=+new Date,g=Math.max(0,16-(u-M));return M=u+g,window.setTimeout(c,g)}var V=window.requestAnimationFrame||x("RequestAnimationFrame")||I,U=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function B(c,u,g){if(g&&V===I)c.call(u);else return V.call(window,r(c,u))}function Y(c){c&&U.call(window,c)}var ne={__proto__:null,extend:n,create:o,bind:r,get lastId(){return a},stamp:l,throttle:d,wrapNum:h,falseFn:p,formatNum:m,trim:v,splitWords:y,setOptions:b,getParamString:S,template:T,isArray:R,indexOf:A,emptyImageUrl:D,requestFn:V,cancelFn:U,requestAnimFrame:B,cancelAnimFrame:Y};function ee(){}ee.extend=function(c){var u=function(){b(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},g=u.__super__=this.prototype,C=o(g);C.constructor=u,u.prototype=C;for(var w in this)Object.prototype.hasOwnProperty.call(this,w)&&w!=="prototype"&&w!=="__super__"&&(u[w]=this[w]);return c.statics&&n(u,c.statics),c.includes&&(F(c.includes),n.apply(null,[C].concat(c.includes))),n(C,c),delete C.statics,delete C.includes,C.options&&(C.options=g.options?o(g.options):{},n(C.options,c.options)),C._initHooks=[],C.callInitHooks=function(){if(!this._initHooksCalled){g.callInitHooks&&g.callInitHooks.call(this),this._initHooksCalled=!0;for(var P=0,O=C._initHooks.length;P<O;P++)C._initHooks[P].call(this)}},u},ee.include=function(c){var u=this.prototype.options;return n(this.prototype,c),c.options&&(this.prototype.options=u,this.mergeOptions(c.options)),this},ee.mergeOptions=function(c){return n(this.prototype.options,c),this},ee.addInitHook=function(c){var u=Array.prototype.slice.call(arguments,1),g=typeof c=="function"?c:function(){this[c].apply(this,u)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(g),this};function F(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=R(c)?c:[c];for(var u=0;u<c.length;u++)c[u]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var $={on:function(c,u,g){if(typeof c=="object")for(var C in c)this._on(C,c[C],u);else{c=y(c);for(var w=0,P=c.length;w<P;w++)this._on(c[w],u,g)}return this},off:function(c,u,g){if(!arguments.length)delete this._events;else if(typeof c=="object")for(var C in c)this._off(C,c[C],u);else{c=y(c);for(var w=arguments.length===1,P=0,O=c.length;P<O;P++)w?this._off(c[P]):this._off(c[P],u,g)}return this},_on:function(c,u,g,C){if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}if(this._listens(c,u,g)===!1){g===this&&(g=void 0);var w={fn:u,ctx:g};C&&(w.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(w)}},_off:function(c,u,g){var C,w,P;if(this._events&&(C=this._events[c],!!C)){if(arguments.length===1){if(this._firingCount)for(w=0,P=C.length;w<P;w++)C[w].fn=p;delete this._events[c];return}if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}var O=this._listens(c,u,g);if(O!==!1){var N=C[O];this._firingCount&&(N.fn=p,this._events[c]=C=C.slice()),C.splice(O,1)}}},fire:function(c,u,g){if(!this.listens(c,g))return this;var C=n({},u,{type:c,target:this,sourceTarget:u&&u.sourceTarget||this});if(this._events){var w=this._events[c];if(w){this._firingCount=this._firingCount+1||1;for(var P=0,O=w.length;P<O;P++){var N=w[P],k=N.fn;N.once&&this.off(c,k,N.ctx),k.call(N.ctx||this,C)}this._firingCount--}}return g&&this._propagateEvent(C),this},listens:function(c,u,g,C){typeof c!="string"&&console.warn('"string" type argument expected');var w=u;typeof u!="function"&&(C=!!u,w=void 0,g=void 0);var P=this._events&&this._events[c];if(P&&P.length&&this._listens(c,w,g)!==!1)return!0;if(C){for(var O in this._eventParents)if(this._eventParents[O].listens(c,u,g,C))return!0}return!1},_listens:function(c,u,g){if(!this._events)return!1;var C=this._events[c]||[];if(!u)return!!C.length;g===this&&(g=void 0);for(var w=0,P=C.length;w<P;w++)if(C[w].fn===u&&C[w].ctx===g)return w;return!1},once:function(c,u,g){if(typeof c=="object")for(var C in c)this._on(C,c[C],u,!0);else{c=y(c);for(var w=0,P=c.length;w<P;w++)this._on(c[w],u,g,!0)}return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[l(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[l(c)],this},_propagateEvent:function(c){for(var u in this._eventParents)this._eventParents[u].fire(c.type,n({layer:c.target,propagatedFrom:c.target},c),!0)}};$.addEventListener=$.on,$.removeEventListener=$.clearAllEventListeners=$.off,$.addOneTimeEventListener=$.once,$.fireEvent=$.fire,$.hasEventListeners=$.listens;var q=ee.extend($);function W(c,u,g){this.x=g?Math.round(c):c,this.y=g?Math.round(u):u}var J=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};W.prototype={clone:function(){return new W(this.x,this.y)},add:function(c){return this.clone()._add(K(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(K(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new W(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new W(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=J(this.x),this.y=J(this.y),this},distanceTo:function(c){c=K(c);var u=c.x-this.x,g=c.y-this.y;return Math.sqrt(u*u+g*g)},equals:function(c){return c=K(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=K(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function K(c,u,g){return c instanceof W?c:R(c)?new W(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new W(c.x,c.y):new W(c,u,g)}function ue(c,u){if(c)for(var g=u?[c,u]:c,C=0,w=g.length;C<w;C++)this.extend(g[C])}ue.prototype={extend:function(c){var u,g;if(!c)return this;if(c instanceof W||typeof c[0]=="number"||"x"in c)u=g=K(c);else if(c=ve(c),u=c.min,g=c.max,!u||!g)return this;return!this.min&&!this.max?(this.min=u.clone(),this.max=g.clone()):(this.min.x=Math.min(u.x,this.min.x),this.max.x=Math.max(g.x,this.max.x),this.min.y=Math.min(u.y,this.min.y),this.max.y=Math.max(g.y,this.max.y)),this},getCenter:function(c){return K((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},getBottomLeft:function(){return K(this.min.x,this.max.y)},getTopRight:function(){return K(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(c){var u,g;return typeof c[0]=="number"||c instanceof W?c=K(c):c=ve(c),c instanceof ue?(u=c.min,g=c.max):u=g=c,u.x>=this.min.x&&g.x<=this.max.x&&u.y>=this.min.y&&g.y<=this.max.y},intersects:function(c){c=ve(c);var u=this.min,g=this.max,C=c.min,w=c.max,P=w.x>=u.x&&C.x<=g.x,O=w.y>=u.y&&C.y<=g.y;return P&&O},overlaps:function(c){c=ve(c);var u=this.min,g=this.max,C=c.min,w=c.max,P=w.x>u.x&&C.x<g.x,O=w.y>u.y&&C.y<g.y;return P&&O},isValid:function(){return!!(this.min&&this.max)},pad:function(c){var u=this.min,g=this.max,C=Math.abs(u.x-g.x)*c,w=Math.abs(u.y-g.y)*c;return ve(K(u.x-C,u.y-w),K(g.x+C,g.y+w))},equals:function(c){return c?(c=ve(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight())):!1}};function ve(c,u){return!c||c instanceof ue?c:new ue(c,u)}function ae(c,u){if(c)for(var g=u?[c,u]:c,C=0,w=g.length;C<w;C++)this.extend(g[C])}ae.prototype={extend:function(c){var u=this._southWest,g=this._northEast,C,w;if(c instanceof oe)C=c,w=c;else if(c instanceof ae){if(C=c._southWest,w=c._northEast,!C||!w)return this}else return c?this.extend(ie(c)||le(c)):this;return!u&&!g?(this._southWest=new oe(C.lat,C.lng),this._northEast=new oe(w.lat,w.lng)):(u.lat=Math.min(C.lat,u.lat),u.lng=Math.min(C.lng,u.lng),g.lat=Math.max(w.lat,g.lat),g.lng=Math.max(w.lng,g.lng)),this},pad:function(c){var u=this._southWest,g=this._northEast,C=Math.abs(u.lat-g.lat)*c,w=Math.abs(u.lng-g.lng)*c;return new ae(new oe(u.lat-C,u.lng-w),new oe(g.lat+C,g.lng+w))},getCenter:function(){return new oe((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new oe(this.getNorth(),this.getWest())},getSouthEast:function(){return new oe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(c){typeof c[0]=="number"||c instanceof oe||"lat"in c?c=ie(c):c=le(c);var u=this._southWest,g=this._northEast,C,w;return c instanceof ae?(C=c.getSouthWest(),w=c.getNorthEast()):C=w=c,C.lat>=u.lat&&w.lat<=g.lat&&C.lng>=u.lng&&w.lng<=g.lng},intersects:function(c){c=le(c);var u=this._southWest,g=this._northEast,C=c.getSouthWest(),w=c.getNorthEast(),P=w.lat>=u.lat&&C.lat<=g.lat,O=w.lng>=u.lng&&C.lng<=g.lng;return P&&O},overlaps:function(c){c=le(c);var u=this._southWest,g=this._northEast,C=c.getSouthWest(),w=c.getNorthEast(),P=w.lat>u.lat&&C.lat<g.lat,O=w.lng>u.lng&&C.lng<g.lng;return P&&O},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,u){return c?(c=le(c),this._southWest.equals(c.getSouthWest(),u)&&this._northEast.equals(c.getNorthEast(),u)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function le(c,u){return c instanceof ae?c:new ae(c,u)}function oe(c,u,g){if(isNaN(c)||isNaN(u))throw new Error("Invalid LatLng object: ("+c+", "+u+")");this.lat=+c,this.lng=+u,g!==void 0&&(this.alt=+g)}oe.prototype={equals:function(c,u){if(!c)return!1;c=ie(c);var g=Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng));return g<=(u===void 0?1e-9:u)},toString:function(c){return"LatLng("+m(this.lat,c)+", "+m(this.lng,c)+")"},distanceTo:function(c){return Pe.distance(this,ie(c))},wrap:function(){return Pe.wrapLatLng(this)},toBounds:function(c){var u=180*c/40075017,g=u/Math.cos(Math.PI/180*this.lat);return le([this.lat-u,this.lng-g],[this.lat+u,this.lng+g])},clone:function(){return new oe(this.lat,this.lng,this.alt)}};function ie(c,u,g){return c instanceof oe?c:R(c)&&typeof c[0]!="object"?c.length===3?new oe(c[0],c[1],c[2]):c.length===2?new oe(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new oe(c.lat,"lng"in c?c.lng:c.lon,c.alt):u===void 0?null:new oe(c,u,g)}var we={latLngToPoint:function(c,u){var g=this.projection.project(c),C=this.scale(u);return this.transformation._transform(g,C)},pointToLatLng:function(c,u){var g=this.scale(u),C=this.transformation.untransform(c,g);return this.projection.unproject(C)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var u=this.projection.bounds,g=this.scale(c),C=this.transformation.transform(u.min,g),w=this.transformation.transform(u.max,g);return new ue(C,w)},infinite:!1,wrapLatLng:function(c){var u=this.wrapLng?h(c.lng,this.wrapLng,!0):c.lng,g=this.wrapLat?h(c.lat,this.wrapLat,!0):c.lat,C=c.alt;return new oe(g,u,C)},wrapLatLngBounds:function(c){var u=c.getCenter(),g=this.wrapLatLng(u),C=u.lat-g.lat,w=u.lng-g.lng;if(C===0&&w===0)return c;var P=c.getSouthWest(),O=c.getNorthEast(),N=new oe(P.lat-C,P.lng-w),k=new oe(O.lat-C,O.lng-w);return new ae(N,k)}},Pe=n({},we,{wrapLng:[-180,180],R:6371e3,distance:function(c,u){var g=Math.PI/180,C=c.lat*g,w=u.lat*g,P=Math.sin((u.lat-c.lat)*g/2),O=Math.sin((u.lng-c.lng)*g/2),N=P*P+Math.cos(C)*Math.cos(w)*O*O,k=2*Math.atan2(Math.sqrt(N),Math.sqrt(1-N));return this.R*k}}),He=6378137,qe={R:He,MAX_LATITUDE:85.0511287798,project:function(c){var u=Math.PI/180,g=this.MAX_LATITUDE,C=Math.max(Math.min(g,c.lat),-g),w=Math.sin(C*u);return new W(this.R*c.lng*u,this.R*Math.log((1+w)/(1-w))/2)},unproject:function(c){var u=180/Math.PI;return new oe((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*u,c.x*u/this.R)},bounds:function(){var c=He*Math.PI;return new ue([-c,-c],[c,c])}()};function We(c,u,g,C){if(R(c)){this._a=c[0],this._b=c[1],this._c=c[2],this._d=c[3];return}this._a=c,this._b=u,this._c=g,this._d=C}We.prototype={transform:function(c,u){return this._transform(c.clone(),u)},_transform:function(c,u){return u=u||1,c.x=u*(this._a*c.x+this._b),c.y=u*(this._c*c.y+this._d),c},untransform:function(c,u){return u=u||1,new W((c.x/u-this._b)/this._a,(c.y/u-this._d)/this._c)}};function Ne(c,u,g,C){return new We(c,u,g,C)}var Be=n({},Pe,{code:"EPSG:3857",projection:qe,transformation:function(){var c=.5/(Math.PI*qe.R);return Ne(c,.5,-c,.5)}()}),Xe=n({},Be,{code:"EPSG:900913"});function ze(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function X(c,u){var g="",C,w,P,O,N,k;for(C=0,P=c.length;C<P;C++){for(N=c[C],w=0,O=N.length;w<O;w++)k=N[w],g+=(w?"L":"M")+k.x+" "+k.y;g+=u?te.svg?"z":"x":""}return g||"M0 0"}var z=document.documentElement.style,Z="ActiveXObject"in window,re=Z&&!document.addEventListener,me="msLaunchUri"in navigator&&!("documentMode"in document),Te=$e("webkit"),Je=$e("android"),et=$e("android 2")||$e("android 3"),tt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ft=Je&&$e("Google")&&tt<537&&!("AudioNode"in window),lt=!!window.opera,_t=!me&&$e("chrome"),yt=$e("gecko")&&!Te&&!lt&&!Z,Gn=!_t&&$e("safari"),Mi=$e("phantom"),xi="OTransition"in z,Vn=navigator.platform.indexOf("Win")===0,Li=Z&&"transition"in z,ei="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!et,Fi="MozPerspective"in z,Hn=!window.L_DISABLE_3D&&(Li||ei||Fi)&&!xi&&!Mi,bt=typeof orientation<"u"||$e("mobile"),Wn=bt&&Te,Bn=bt&&ei,Ii=!window.PointerEvent&&window.MSPointerEvent,Ni=!!(window.PointerEvent||Ii),$i="ontouchstart"in window||!!window.TouchEvent,zn=!window.L_NO_TOUCH&&($i||Ni),jn=bt&&lt,Un=bt&&yt,Kn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Yn=function(){var c=!1;try{var u=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",p,u),window.removeEventListener("testPassiveEventSupport",p,u)}catch{}return c}(),qn=function(){return!!document.createElement("canvas").getContext}(),ti=!!(document.createElementNS&&ze("svg").createSVGRect),Xn=!!ti&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Qn=!ti&&function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var u=c.firstChild;return u.style.behavior="url(#default#VML)",u&&typeof u.adj=="object"}catch{return!1}}(),Zn=navigator.platform.indexOf("Mac")===0,Jn=navigator.platform.indexOf("Linux")===0;function $e(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var te={ie:Z,ielt9:re,edge:me,webkit:Te,android:Je,android23:et,androidStock:Ft,opera:lt,chrome:_t,gecko:yt,safari:Gn,phantom:Mi,opera12:xi,win:Vn,ie3d:Li,webkit3d:ei,gecko3d:Fi,any3d:Hn,mobile:bt,mobileWebkit:Wn,mobileWebkit3d:Bn,msPointer:Ii,pointer:Ni,touch:zn,touchNative:$i,mobileOpera:jn,mobileGecko:Un,retina:Kn,passiveEvents:Yn,canvas:qn,svg:ti,vml:Qn,inlineSvg:Xn,mac:Zn,linux:Jn},ki=te.msPointer?"MSPointerDown":"pointerdown",Gi=te.msPointer?"MSPointerMove":"pointermove",Vi=te.msPointer?"MSPointerUp":"pointerup",Hi=te.msPointer?"MSPointerCancel":"pointercancel",ii={touchstart:ki,touchmove:Gi,touchend:Vi,touchcancel:Hi},Wi={touchstart:rs,touchmove:It,touchend:It,touchcancel:It},ct={},Bi=!1;function ts(c,u,g){return u==="touchstart"&&os(),Wi[u]?(g=Wi[u].bind(this,g),c.addEventListener(ii[u],g,!1),g):(console.warn("wrong event specified:",u),p)}function is(c,u,g){if(!ii[u]){console.warn("wrong event specified:",u);return}c.removeEventListener(ii[u],g,!1)}function ns(c){ct[c.pointerId]=c}function ss(c){ct[c.pointerId]&&(ct[c.pointerId]=c)}function zi(c){delete ct[c.pointerId]}function os(){Bi||(document.addEventListener(ki,ns,!0),document.addEventListener(Gi,ss,!0),document.addEventListener(Vi,zi,!0),document.addEventListener(Hi,zi,!0),Bi=!0)}function It(c,u){if(u.pointerType!==(u.MSPOINTER_TYPE_MOUSE||"mouse")){u.touches=[];for(var g in ct)u.touches.push(ct[g]);u.changedTouches=[u],c(u)}}function rs(c,u){u.MSPOINTER_TYPE_TOUCH&&u.pointerType===u.MSPOINTER_TYPE_TOUCH&&Ae(u),It(c,u)}function as(c){var u={},g,C;for(C in c)g=c[C],u[C]=g&&g.bind?g.bind(c):g;return c=u,u.type="dblclick",u.detail=2,u.isTrusted=!1,u._simulated=!0,u}var ls=200;function ds(c,u){c.addEventListener("dblclick",u);var g=0,C;function w(P){if(P.detail!==1){C=P.detail;return}if(!(P.pointerType==="mouse"||P.sourceCapabilities&&!P.sourceCapabilities.firesTouchEvents)){var O=qi(P);if(!(O.some(function(k){return k instanceof HTMLLabelElement&&k.attributes.for})&&!O.some(function(k){return k instanceof HTMLInputElement||k instanceof HTMLSelectElement}))){var N=Date.now();N-g<=ls?(C++,C===2&&u(as(P))):C=1,g=N}}}return c.addEventListener("click",w),{dblclick:u,simDblclick:w}}function us(c,u){c.removeEventListener("dblclick",u.dblclick),c.removeEventListener("click",u.simDblclick)}var ni=kt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),wt=kt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ji=wt==="webkitTransition"||wt==="OTransition"?wt+"End":"transitionend";function Ui(c){return typeof c=="string"?document.getElementById(c):c}function St(c,u){var g=c.style[u]||c.currentStyle&&c.currentStyle[u];if((!g||g==="auto")&&document.defaultView){var C=document.defaultView.getComputedStyle(c,null);g=C?C[u]:null}return g==="auto"?null:g}function Ce(c,u,g){var C=document.createElement(c);return C.className=u||"",g&&g.appendChild(C),C}function ye(c){var u=c.parentNode;u&&u.removeChild(c)}function Nt(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function dt(c){var u=c.parentNode;u&&u.lastChild!==c&&u.appendChild(c)}function ut(c){var u=c.parentNode;u&&u.firstChild!==c&&u.insertBefore(c,u.firstChild)}function si(c,u){if(c.classList!==void 0)return c.classList.contains(u);var g=$t(c);return g.length>0&&new RegExp("(^|\\s)"+u+"(\\s|$)").test(g)}function pe(c,u){if(c.classList!==void 0)for(var g=y(u),C=0,w=g.length;C<w;C++)c.classList.add(g[C]);else if(!si(c,u)){var P=$t(c);oi(c,(P?P+" ":"")+u)}}function be(c,u){c.classList!==void 0?c.classList.remove(u):oi(c,v((" "+$t(c)+" ").replace(" "+u+" "," ")))}function oi(c,u){c.className.baseVal===void 0?c.className=u:c.className.baseVal=u}function $t(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function Me(c,u){"opacity"in c.style?c.style.opacity=u:"filter"in c.style&&hs(c,u)}function hs(c,u){var g=!1,C="DXImageTransform.Microsoft.Alpha";try{g=c.filters.item(C)}catch{if(u===1)return}u=Math.round(u*100),g?(g.Enabled=u!==100,g.Opacity=u):c.style.filter+=" progid:"+C+"(opacity="+u+")"}function kt(c){for(var u=document.documentElement.style,g=0;g<c.length;g++)if(c[g]in u)return c[g];return!1}function nt(c,u,g){var C=u||new W(0,0);c.style[ni]=(te.ie3d?"translate("+C.x+"px,"+C.y+"px)":"translate3d("+C.x+"px,"+C.y+"px,0)")+(g?" scale("+g+")":"")}function Se(c,u){c._leaflet_pos=u,te.any3d?nt(c,u):(c.style.left=u.x+"px",c.style.top=u.y+"px")}function st(c){return c._leaflet_pos||new W(0,0)}var Et,Pt,ri;if("onselectstart"in document)Et=function(){he(window,"selectstart",Ae)},Pt=function(){_e(window,"selectstart",Ae)};else{var Tt=kt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Et=function(){if(Tt){var c=document.documentElement.style;ri=c[Tt],c[Tt]="none"}},Pt=function(){Tt&&(document.documentElement.style[Tt]=ri,ri=void 0)}}function ai(){he(window,"dragstart",Ae)}function li(){_e(window,"dragstart",Ae)}var Gt,ci;function di(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(Vt(),Gt=c,ci=c.style.outlineStyle,c.style.outlineStyle="none",he(window,"keydown",Vt))}function Vt(){Gt&&(Gt.style.outlineStyle=ci,Gt=void 0,ci=void 0,_e(window,"keydown",Vt))}function Ki(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function ui(c){var u=c.getBoundingClientRect();return{x:u.width/c.offsetWidth||1,y:u.height/c.offsetHeight||1,boundingClientRect:u}}var ps={__proto__:null,TRANSFORM:ni,TRANSITION:wt,TRANSITION_END:ji,get:Ui,getStyle:St,create:Ce,remove:ye,empty:Nt,toFront:dt,toBack:ut,hasClass:si,addClass:pe,removeClass:be,setClass:oi,getClass:$t,setOpacity:Me,testProp:kt,setTransform:nt,setPosition:Se,getPosition:st,get disableTextSelection(){return Et},get enableTextSelection(){return Pt},disableImageDrag:ai,enableImageDrag:li,preventOutline:di,restoreOutline:Vt,getSizedParentNode:Ki,getScale:ui};function he(c,u,g,C){if(u&&typeof u=="object")for(var w in u)pi(c,w,u[w],g);else{u=y(u);for(var P=0,O=u.length;P<O;P++)pi(c,u[P],g,C)}return this}var ke="_leaflet_events";function _e(c,u,g,C){if(arguments.length===1)Yi(c),delete c[ke];else if(u&&typeof u=="object")for(var w in u)gi(c,w,u[w],g);else if(u=y(u),arguments.length===2)Yi(c,function(N){return A(u,N)!==-1});else for(var P=0,O=u.length;P<O;P++)gi(c,u[P],g,C);return this}function Yi(c,u){for(var g in c[ke]){var C=g.split(/\d/)[0];(!u||u(C))&&gi(c,C,null,null,g)}}var hi={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function pi(c,u,g,C){var w=u+l(g)+(C?"_"+l(C):"");if(c[ke]&&c[ke][w])return this;var P=function(N){return g.call(C||c,N||window.event)},O=P;!te.touchNative&&te.pointer&&u.indexOf("touch")===0?P=ts(c,u,P):te.touch&&u==="dblclick"?P=ds(c,P):"addEventListener"in c?u==="touchstart"||u==="touchmove"||u==="wheel"||u==="mousewheel"?c.addEventListener(hi[u]||u,P,te.passiveEvents?{passive:!1}:!1):u==="mouseenter"||u==="mouseleave"?(P=function(N){N=N||window.event,Ci(c,N)&&O(N)},c.addEventListener(hi[u],P,!1)):c.addEventListener(u,O,!1):c.attachEvent("on"+u,P),c[ke]=c[ke]||{},c[ke][w]=P}function gi(c,u,g,C,w){w=w||u+l(g)+(C?"_"+l(C):"");var P=c[ke]&&c[ke][w];if(!P)return this;!te.touchNative&&te.pointer&&u.indexOf("touch")===0?is(c,u,P):te.touch&&u==="dblclick"?us(c,P):"removeEventListener"in c?c.removeEventListener(hi[u]||u,P,!1):c.detachEvent("on"+u,P),c[ke][w]=null}function ot(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function mi(c){return pi(c,"wheel",ot),this}function Rt(c){return he(c,"mousedown touchstart dblclick contextmenu",ot),c._leaflet_disable_click=!0,this}function Ae(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function rt(c){return Ae(c),ot(c),this}function qi(c){if(c.composedPath)return c.composedPath();for(var u=[],g=c.target;g;)u.push(g),g=g.parentNode;return u}function Xi(c,u){if(!u)return new W(c.clientX,c.clientY);var g=ui(u),C=g.boundingClientRect;return new W((c.clientX-C.left)/g.x-u.clientLeft,(c.clientY-C.top)/g.y-u.clientTop)}var fs=te.linux&&te.chrome?window.devicePixelRatio:te.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Qi(c){return te.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/fs:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function Ci(c,u){var g=u.relatedTarget;if(!g)return!0;try{for(;g&&g!==c;)g=g.parentNode}catch{return!1}return g!==c}var gs={__proto__:null,on:he,off:_e,stopPropagation:ot,disableScrollPropagation:mi,disableClickPropagation:Rt,preventDefault:Ae,stop:rt,getPropagationPath:qi,getMousePosition:Xi,getWheelDelta:Qi,isExternalTarget:Ci,addListener:he,removeListener:_e},Zi=q.extend({run:function(c,u,g,C){this.stop(),this._el=c,this._inProgress=!0,this._duration=g||.25,this._easeOutPower=1/Math.max(C||.5,.2),this._startPos=st(c),this._offset=u.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=B(this._animate,this),this._step()},_step:function(c){var u=+new Date-this._startTime,g=this._duration*1e3;u<g?this._runFrame(this._easeOut(u/g),c):(this._runFrame(1),this._complete())},_runFrame:function(c,u){var g=this._startPos.add(this._offset.multiplyBy(c));u&&g._round(),Se(this._el,g),this.fire("step")},_complete:function(){Y(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),ge=q.extend({options:{crs:Be,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(c,u){u=b(this,u),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),u.maxBounds&&this.setMaxBounds(u.maxBounds),u.zoom!==void 0&&(this._zoom=this._limitZoom(u.zoom)),u.center&&u.zoom!==void 0&&this.setView(ie(u.center),u.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=wt&&te.any3d&&!te.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),he(this._proxy,ji,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(c,u,g){if(u=u===void 0?this._zoom:this._limitZoom(u),c=this._limitCenter(ie(c),u,this.options.maxBounds),g=g||{},this._stop(),this._loaded&&!g.reset&&g!==!0){g.animate!==void 0&&(g.zoom=n({animate:g.animate},g.zoom),g.pan=n({animate:g.animate,duration:g.duration},g.pan));var C=this._zoom!==u?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,u,g.zoom):this._tryAnimatedPan(c,g.pan);if(C)return clearTimeout(this._sizeTimer),this}return this._resetView(c,u,g.pan&&g.pan.noMoveStart),this},setZoom:function(c,u){return this._loaded?this.setView(this.getCenter(),c,{zoom:u}):(this._zoom=c,this)},zoomIn:function(c,u){return c=c||(te.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+c,u)},zoomOut:function(c,u){return c=c||(te.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-c,u)},setZoomAround:function(c,u,g){var C=this.getZoomScale(u),w=this.getSize().divideBy(2),P=c instanceof W?c:this.latLngToContainerPoint(c),O=P.subtract(w).multiplyBy(1-1/C),N=this.containerPointToLatLng(w.add(O));return this.setView(N,u,{zoom:g})},_getBoundsCenterZoom:function(c,u){u=u||{},c=c.getBounds?c.getBounds():le(c);var g=K(u.paddingTopLeft||u.padding||[0,0]),C=K(u.paddingBottomRight||u.padding||[0,0]),w=this.getBoundsZoom(c,!1,g.add(C));if(w=typeof u.maxZoom=="number"?Math.min(u.maxZoom,w):w,w===1/0)return{center:c.getCenter(),zoom:w};var P=C.subtract(g).divideBy(2),O=this.project(c.getSouthWest(),w),N=this.project(c.getNorthEast(),w),k=this.unproject(O.add(N).divideBy(2).add(P),w);return{center:k,zoom:w}},fitBounds:function(c,u){if(c=le(c),!c.isValid())throw new Error("Bounds are not valid.");var g=this._getBoundsCenterZoom(c,u);return this.setView(g.center,g.zoom,u)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,u){return this.setView(c,this._zoom,{pan:u})},panBy:function(c,u){if(c=K(c).round(),u=u||{},!c.x&&!c.y)return this.fire("moveend");if(u.animate!==!0&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Zi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),u.noMoveStart||this.fire("movestart"),u.animate!==!1){pe(this._mapPane,"leaflet-pan-anim");var g=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,g,u.duration||.25,u.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,u,g){if(g=g||{},g.animate===!1||!te.any3d)return this.setView(c,u,g);this._stop();var C=this.project(this.getCenter()),w=this.project(c),P=this.getSize(),O=this._zoom;c=ie(c),u=u===void 0?O:u;var N=Math.max(P.x,P.y),k=N*this.getZoomScale(O,u),H=w.distanceTo(C)||1,Q=1.42,se=Q*Q;function fe(Ee){var Zt=Ee?-1:1,so=Ee?k:N,oo=k*k-N*N+Zt*se*se*H*H,ao=2*so*se*H,Di=oo/ao,In=Math.sqrt(Di*Di+1)-Di,lo=In<1e-9?-18:Math.log(In);return lo}function De(Ee){return(Math.exp(Ee)-Math.exp(-Ee))/2}function Re(Ee){return(Math.exp(Ee)+Math.exp(-Ee))/2}function Le(Ee){return De(Ee)/Re(Ee)}var Oe=fe(0);function Ct(Ee){return N*(Re(Oe)/Re(Oe+Q*Ee))}function Js(Ee){return N*(Re(Oe)*Le(Oe+Q*Ee)-De(Oe))/se}function eo(Ee){return 1-Math.pow(1-Ee,1.5)}var io=Date.now(),Ln=(fe(1)-Oe)/Q,no=g.duration?1e3*g.duration:1e3*Ln*.8;function Fn(){var Ee=(Date.now()-io)/no,Zt=eo(Ee)*Ln;Ee<=1?(this._flyToFrame=B(Fn,this),this._move(this.unproject(C.add(w.subtract(C).multiplyBy(Js(Zt)/H)),O),this.getScaleZoom(N/Ct(Zt),O),{flyTo:!0})):this._move(c,u)._moveEnd(!0)}return this._moveStart(!0,g.noMoveStart),Fn.call(this),this},flyToBounds:function(c,u){var g=this._getBoundsCenterZoom(c,u);return this.flyTo(g.center,g.zoom,u)},setMaxBounds:function(c){return c=le(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var u=this.options.minZoom;return this.options.minZoom=c,this._loaded&&u!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var u=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&u!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,u){this._enforcingBounds=!0;var g=this.getCenter(),C=this._limitCenter(g,this._zoom,le(c));return g.equals(C)||this.panTo(C,u),this._enforcingBounds=!1,this},panInside:function(c,u){u=u||{};var g=K(u.paddingTopLeft||u.padding||[0,0]),C=K(u.paddingBottomRight||u.padding||[0,0]),w=this.project(this.getCenter()),P=this.project(c),O=this.getPixelBounds(),N=ve([O.min.add(g),O.max.subtract(C)]),k=N.getSize();if(!N.contains(P)){this._enforcingBounds=!0;var H=P.subtract(N.getCenter()),Q=N.extend(P).getSize().subtract(k);w.x+=H.x<0?-Q.x:Q.x,w.y+=H.y<0?-Q.y:Q.y,this.panTo(this.unproject(w),u),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=n({animate:!1,pan:!0},c===!0?{animate:!0}:c);var u=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var g=this.getSize(),C=u.divideBy(2).round(),w=g.divideBy(2).round(),P=C.subtract(w);return!P.x&&!P.y?this:(c.animate&&c.pan?this.panBy(P):(c.pan&&this._rawPanBy(P),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:u,newSize:g}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=n({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var u=r(this._handleGeolocationResponse,this),g=r(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(u,g,c):navigator.geolocation.getCurrentPosition(u,g,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var u=c.code,g=c.message||(u===1?"permission denied":u===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:u,message:"Geolocation error: "+g+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var u=c.coords.latitude,g=c.coords.longitude,C=new oe(u,g),w=C.toBounds(c.coords.accuracy*2),P=this._locateOptions;if(P.setView){var O=this.getBoundsZoom(w);this.setView(C,P.maxZoom?Math.min(O,P.maxZoom):O)}var N={latlng:C,bounds:w,timestamp:c.timestamp};for(var k in c.coords)typeof c.coords[k]=="number"&&(N[k]=c.coords[k]);this.fire("locationfound",N)}},addHandler:function(c,u){if(!u)return this;var g=this[c]=new u(this);return this._handlers.push(g),this.options[c]&&g.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ye(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Y(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)ye(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,u){var g="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),C=Ce("div",g,u||this._mapPane);return c&&(this._panes[c]=C),C},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),u=this.unproject(c.getBottomLeft()),g=this.unproject(c.getTopRight());return new ae(u,g)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,u,g){c=le(c),g=K(g||[0,0]);var C=this.getZoom()||0,w=this.getMinZoom(),P=this.getMaxZoom(),O=c.getNorthWest(),N=c.getSouthEast(),k=this.getSize().subtract(g),H=ve(this.project(N,C),this.project(O,C)).getSize(),Q=te.any3d?this.options.zoomSnap:1,se=k.x/H.x,fe=k.y/H.y,De=u?Math.max(se,fe):Math.min(se,fe);return C=this.getScaleZoom(De,C),Q&&(C=Math.round(C/(Q/100))*(Q/100),C=u?Math.ceil(C/Q)*Q:Math.floor(C/Q)*Q),Math.max(w,Math.min(P,C))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new W(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,u){var g=this._getTopLeftPoint(c,u);return new ue(g,g.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,u){var g=this.options.crs;return u=u===void 0?this._zoom:u,g.scale(c)/g.scale(u)},getScaleZoom:function(c,u){var g=this.options.crs;u=u===void 0?this._zoom:u;var C=g.zoom(c*g.scale(u));return isNaN(C)?1/0:C},project:function(c,u){return u=u===void 0?this._zoom:u,this.options.crs.latLngToPoint(ie(c),u)},unproject:function(c,u){return u=u===void 0?this._zoom:u,this.options.crs.pointToLatLng(K(c),u)},layerPointToLatLng:function(c){var u=K(c).add(this.getPixelOrigin());return this.unproject(u)},latLngToLayerPoint:function(c){var u=this.project(ie(c))._round();return u._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(ie(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(le(c))},distance:function(c,u){return this.options.crs.distance(ie(c),ie(u))},containerPointToLayerPoint:function(c){return K(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return K(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var u=this.containerPointToLayerPoint(K(c));return this.layerPointToLatLng(u)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ie(c)))},mouseEventToContainerPoint:function(c){return Xi(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var u=this._container=Ui(c);if(u){if(u._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");he(u,"scroll",this._onScroll,this),this._containerId=l(u)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&te.any3d,pe(c,"leaflet-container"+(te.touch?" leaflet-touch":"")+(te.retina?" leaflet-retina":"")+(te.ielt9?" leaflet-oldie":"")+(te.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var u=St(c,"position");u!=="absolute"&&u!=="relative"&&u!=="fixed"&&u!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Se(this._mapPane,new W(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(pe(c.markerPane,"leaflet-zoom-hide"),pe(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,u,g){Se(this._mapPane,new W(0,0));var C=!this._loaded;this._loaded=!0,u=this._limitZoom(u),this.fire("viewprereset");var w=this._zoom!==u;this._moveStart(w,g)._move(c,u)._moveEnd(w),this.fire("viewreset"),C&&this.fire("load")},_moveStart:function(c,u){return c&&this.fire("zoomstart"),u||this.fire("movestart"),this},_move:function(c,u,g,C){u===void 0&&(u=this._zoom);var w=this._zoom!==u;return this._zoom=u,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),C?g&&g.pinch&&this.fire("zoom",g):((w||g&&g.pinch)&&this.fire("zoom",g),this.fire("move",g)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Y(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){Se(this._mapPane,this._getMapPanePos().subtract(c))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(c){this._targets={},this._targets[l(this._container)]=this;var u=c?_e:he;u(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&u(window,"resize",this._onResize,this),te.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Y(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,u){for(var g=[],C,w=u==="mouseout"||u==="mouseover",P=c.target||c.srcElement,O=!1;P;){if(C=this._targets[l(P)],C&&(u==="click"||u==="preclick")&&this._draggableMoved(C)){O=!0;break}if(C&&C.listens(u,!0)&&(w&&!Ci(P,c)||(g.push(C),w))||P===this._container)break;P=P.parentNode}return!g.length&&!O&&!w&&this.listens(u,!0)&&(g=[this]),g},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var u=c.target||c.srcElement;if(!(!this._loaded||u._leaflet_disable_events||c.type==="click"&&this._isClickDisabled(u))){var g=c.type;g==="mousedown"&&di(u),this._fireDOMEvent(c,g)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,u,g){if(c.type==="click"){var C=n({},c);C.type="preclick",this._fireDOMEvent(C,C.type,g)}var w=this._findEventTargets(c,u);if(g){for(var P=[],O=0;O<g.length;O++)g[O].listens(u,!0)&&P.push(g[O]);w=P.concat(w)}if(w.length){u==="contextmenu"&&Ae(c);var N=w[0],k={originalEvent:c};if(c.type!=="keypress"&&c.type!=="keydown"&&c.type!=="keyup"){var H=N.getLatLng&&(!N._radius||N._radius<=10);k.containerPoint=H?this.latLngToContainerPoint(N.getLatLng()):this.mouseEventToContainerPoint(c),k.layerPoint=this.containerPointToLayerPoint(k.containerPoint),k.latlng=H?N.getLatLng():this.layerPointToLatLng(k.layerPoint)}for(O=0;O<w.length;O++)if(w[O].fire(u,k,!0),k.originalEvent._stopped||w[O].options.bubblingMouseEvents===!1&&A(this._mouseEvents,u)!==-1)return}},_draggableMoved:function(c){return c=c.dragging&&c.dragging.enabled()?c:this,c.dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,u=this._handlers.length;c<u;c++)this._handlers[c].disable()},whenReady:function(c,u){return this._loaded?c.call(u||this,{target:this}):this.on("load",c,u),this},_getMapPanePos:function(){return st(this._mapPane)||new W(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,u){var g=c&&u!==void 0?this._getNewPixelOrigin(c,u):this.getPixelOrigin();return g.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,u){var g=this.getSize()._divideBy(2);return this.project(c,u)._subtract(g)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,u,g){var C=this._getNewPixelOrigin(g,u);return this.project(c,u)._subtract(C)},_latLngBoundsToNewLayerBounds:function(c,u,g){var C=this._getNewPixelOrigin(g,u);return ve([this.project(c.getSouthWest(),u)._subtract(C),this.project(c.getNorthWest(),u)._subtract(C),this.project(c.getSouthEast(),u)._subtract(C),this.project(c.getNorthEast(),u)._subtract(C)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,u,g){if(!g)return c;var C=this.project(c,u),w=this.getSize().divideBy(2),P=new ue(C.subtract(w),C.add(w)),O=this._getBoundsOffset(P,g,u);return Math.abs(O.x)<=1&&Math.abs(O.y)<=1?c:this.unproject(C.add(O),u)},_limitOffset:function(c,u){if(!u)return c;var g=this.getPixelBounds(),C=new ue(g.min.add(c),g.max.add(c));return c.add(this._getBoundsOffset(C,u))},_getBoundsOffset:function(c,u,g){var C=ve(this.project(u.getNorthEast(),g),this.project(u.getSouthWest(),g)),w=C.min.subtract(c.min),P=C.max.subtract(c.max),O=this._rebound(w.x,-P.x),N=this._rebound(w.y,-P.y);return new W(O,N)},_rebound:function(c,u){return c+u>0?Math.round(c-u)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(u))},_limitZoom:function(c){var u=this.getMinZoom(),g=this.getMaxZoom(),C=te.any3d?this.options.zoomSnap:1;return C&&(c=Math.round(c/C)*C),Math.max(u,Math.min(g,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){be(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,u){var g=this._getCenterOffset(c)._trunc();return(u&&u.animate)!==!0&&!this.getSize().contains(g)?!1:(this.panBy(g,u),!0)},_createAnimProxy:function(){var c=this._proxy=Ce("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(u){var g=ni,C=this._proxy.style[g];nt(this._proxy,this.project(u.center,u.zoom),this.getZoomScale(u.zoom,1)),C===this._proxy.style[g]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ye(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),u=this.getZoom();nt(this._proxy,this.project(c,u),this.getZoomScale(u,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,u,g){if(this._animatingZoom)return!0;if(g=g||{},!this._zoomAnimated||g.animate===!1||this._nothingToAnimate()||Math.abs(u-this._zoom)>this.options.zoomAnimationThreshold)return!1;var C=this.getZoomScale(u),w=this._getCenterOffset(c)._divideBy(1-1/C);return g.animate!==!0&&!this.getSize().contains(w)?!1:(B(function(){this._moveStart(!0,g.noMoveStart||!1)._animateZoom(c,u,!0)},this),!0)},_animateZoom:function(c,u,g,C){this._mapPane&&(g&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=u,pe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:u,noUpdate:C}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&be(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ms(c,u){return new ge(c,u)}var Fe=ee.extend({options:{position:"topright"},initialize:function(c){b(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var u=this._map;return u&&u.removeControl(this),this.options.position=c,u&&u.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var u=this._container=this.onAdd(c),g=this.getPosition(),C=c._controlCorners[g];return pe(u,"leaflet-control"),g.indexOf("bottom")!==-1?C.insertBefore(u,C.firstChild):C.appendChild(u),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ye(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),At=function(c){return new Fe(c)};ge.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},u="leaflet-",g=this._controlContainer=Ce("div",u+"control-container",this._container);function C(w,P){var O=u+w+" "+u+P;c[w+P]=Ce("div",O,g)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)ye(this._controlCorners[c]);ye(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ji=Fe.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,u,g,C){return g<C?-1:C<g?1:0}},initialize:function(c,u,g){b(this,g),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var C in c)this._addLayer(c[C],C);for(C in u)this._addLayer(u[C],C,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return Fe.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,u){return this._addLayer(c,u),this._map?this._update():this},addOverlay:function(c,u){return this._addLayer(c,u,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var u=this._getLayer(l(c));return u&&this._layers.splice(this._layers.indexOf(u),1),this._map?this._update():this},expand:function(){pe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(pe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):be(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return be(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",u=this._container=Ce("div",c),g=this.options.collapsed;u.setAttribute("aria-haspopup",!0),Rt(u),mi(u);var C=this._section=Ce("section",c+"-list");g&&(this._map.on("click",this.collapse,this),he(u,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var w=this._layersLink=Ce("a",c+"-toggle",u);w.href="#",w.title="Layers",w.setAttribute("role","button"),he(w,{keydown:function(P){P.keyCode===13&&this._expandSafely()},click:function(P){Ae(P),this._expandSafely()}},this),g||this.expand(),this._baseLayersList=Ce("div",c+"-base",C),this._separator=Ce("div",c+"-separator",C),this._overlaysList=Ce("div",c+"-overlays",C),u.appendChild(C)},_getLayer:function(c){for(var u=0;u<this._layers.length;u++)if(this._layers[u]&&l(this._layers[u].layer)===c)return this._layers[u]},_addLayer:function(c,u,g){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:u,overlay:g}),this.options.sortLayers&&this._layers.sort(r(function(C,w){return this.options.sortFunction(C.layer,w.layer,C.name,w.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Nt(this._baseLayersList),Nt(this._overlaysList),this._layerControlInputs=[];var c,u,g,C,w=0;for(g=0;g<this._layers.length;g++)C=this._layers[g],this._addItem(C),u=u||C.overlay,c=c||!C.overlay,w+=C.overlay?0:1;return this.options.hideSingleBase&&(c=c&&w>1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=u&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var u=this._getLayer(l(c.target)),g=u.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;g&&this._map.fire(g,u)},_createRadioElement:function(c,u){var g='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(u?' checked="checked"':"")+"/>",C=document.createElement("div");return C.innerHTML=g,C.firstChild},_addItem:function(c){var u=document.createElement("label"),g=this._map.hasLayer(c.layer),C;c.overlay?(C=document.createElement("input"),C.type="checkbox",C.className="leaflet-control-layers-selector",C.defaultChecked=g):C=this._createRadioElement("leaflet-base-layers_"+l(this),g),this._layerControlInputs.push(C),C.layerId=l(c.layer),he(C,"click",this._onInputClick,this);var w=document.createElement("span");w.innerHTML=" "+c.name;var P=document.createElement("span");u.appendChild(P),P.appendChild(C),P.appendChild(w);var O=c.overlay?this._overlaysList:this._baseLayersList;return O.appendChild(u),this._checkDisabledLayers(),u},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,u,g,C=[],w=[];this._handlingClick=!0;for(var P=c.length-1;P>=0;P--)u=c[P],g=this._getLayer(u.layerId).layer,u.checked?C.push(g):u.checked||w.push(g);for(P=0;P<w.length;P++)this._map.hasLayer(w[P])&&this._map.removeLayer(w[P]);for(P=0;P<C.length;P++)this._map.hasLayer(C[P])||this._map.addLayer(C[P]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,u,g,C=this._map.getZoom(),w=c.length-1;w>=0;w--)u=c[w],g=this._getLayer(u.layerId).layer,u.disabled=g.options.minZoom!==void 0&&C<g.options.minZoom||g.options.maxZoom!==void 0&&C>g.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,he(c,"click",Ae),this.expand();var u=this;setTimeout(function(){_e(c,"click",Ae),u._preventClick=!1})}}),vs=function(c,u,g){return new Ji(c,u,g)},_i=Fe.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(c){var u="leaflet-control-zoom",g=Ce("div",u+" leaflet-bar"),C=this.options;return this._zoomInButton=this._createButton(C.zoomInText,C.zoomInTitle,u+"-in",g,this._zoomIn),this._zoomOutButton=this._createButton(C.zoomOutText,C.zoomOutTitle,u+"-out",g,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),g},onRemove:function(c){c.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,u,g,C,w){var P=Ce("a",g,C);return P.innerHTML=c,P.href="#",P.title=u,P.setAttribute("role","button"),P.setAttribute("aria-label",u),Rt(P),he(P,"click",rt),he(P,"click",w,this),he(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var c=this._map,u="leaflet-disabled";be(this._zoomInButton,u),be(this._zoomOutButton,u),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(pe(this._zoomOutButton,u),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(pe(this._zoomInButton,u),this._zoomInButton.setAttribute("aria-disabled","true"))}});ge.mergeOptions({zoomControl:!0}),ge.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _i,this.addControl(this.zoomControl))});var Cs=function(c){return new _i(c)},en=Fe.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var u="leaflet-control-scale",g=Ce("div",u),C=this.options;return this._addScales(C,u+"-line",g),c.on(C.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),g},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,u,g){c.metric&&(this._mScale=Ce("div",u,g)),c.imperial&&(this._iScale=Ce("div",u,g))},_update:function(){var c=this._map,u=c.getSize().y/2,g=c.distance(c.containerPointToLatLng([0,u]),c.containerPointToLatLng([this.options.maxWidth,u]));this._updateScales(g)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var u=this._getRoundNum(c),g=u<1e3?u+" m":u/1e3+" km";this._updateScale(this._mScale,g,u/c)},_updateImperial:function(c){var u=c*3.2808399,g,C,w;u>5280?(g=u/5280,C=this._getRoundNum(g),this._updateScale(this._iScale,C+" mi",C/g)):(w=this._getRoundNum(u),this._updateScale(this._iScale,w+" ft",w/u))},_updateScale:function(c,u,g){c.style.width=Math.round(this.options.maxWidth*g)+"px",c.innerHTML=u},_getRoundNum:function(c){var u=Math.pow(10,(Math.floor(c)+"").length-1),g=c/u;return g=g>=10?10:g>=5?5:g>=3?3:g>=2?2:1,u*g}}),_s=function(c){return new en(c)},ys='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',yi=Fe.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(te.inlineSvg?ys+" ":"")+"Leaflet</a>"},initialize:function(c){b(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=Ce("div","leaflet-control-attribution"),Rt(this._container);for(var u in c._layers)c._layers[u].getAttribution&&this.addAttribution(c._layers[u].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var u in this._attributions)this._attributions[u]&&c.push(u);var g=[];this.options.prefix&&g.push(this.options.prefix),c.length&&g.push(c.join(", ")),this._container.innerHTML=g.join(' <span aria-hidden="true">|</span> ')}}});ge.mergeOptions({attributionControl:!0}),ge.addInitHook(function(){this.options.attributionControl&&new yi().addTo(this)});var bs=function(c){return new yi(c)};Fe.Layers=Ji,Fe.Zoom=_i,Fe.Scale=en,Fe.Attribution=yi,At.layers=vs,At.zoom=Cs,At.scale=_s,At.attribution=bs;var Ge=ee.extend({initialize:function(c){this._map=c},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ge.addTo=function(c,u){return c.addHandler(u,this),this};var ws={Events:$},tn=te.touch?"touchstart mousedown":"mousedown",Qe=q.extend({options:{clickTolerance:3},initialize:function(c,u,g,C){b(this,C),this._element=c,this._dragStartTarget=u||c,this._preventOutline=g},enable:function(){this._enabled||(he(this._dragStartTarget,tn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Qe._dragging===this&&this.finishDrag(!0),_e(this._dragStartTarget,tn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!si(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){Qe._dragging===this&&this.finishDrag();return}if(!(Qe._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(Qe._dragging=this,this._preventOutline&&di(this._element),ai(),Et(),!this._moving)){this.fire("down");var u=c.touches?c.touches[0]:c,g=Ki(this._element);this._startPoint=new W(u.clientX,u.clientY),this._startPos=st(this._element),this._parentScale=ui(g);var C=c.type==="mousedown";he(document,C?"mousemove":"touchmove",this._onMove,this),he(document,C?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var u=c.touches&&c.touches.length===1?c.touches[0]:c,g=new W(u.clientX,u.clientY)._subtract(this._startPoint);!g.x&&!g.y||Math.abs(g.x)+Math.abs(g.y)<this.options.clickTolerance||(g.x/=this._parentScale.x,g.y/=this._parentScale.y,Ae(c),this._moved||(this.fire("dragstart"),this._moved=!0,pe(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),pe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(g),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),Se(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){be(document.body,"leaflet-dragging"),this._lastTarget&&(be(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),_e(document,"mousemove touchmove",this._onMove,this),_e(document,"mouseup touchend touchcancel",this._onUp,this),li(),Pt();var u=this._moved&&this._moving;this._moving=!1,Qe._dragging=!1,u&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function sn(c,u,g){var C,w=[1,4,2,8],P,O,N,k,H,Q,se,fe;for(P=0,Q=c.length;P<Q;P++)c[P]._code=at(c[P],u);for(N=0;N<4;N++){for(se=w[N],C=[],P=0,Q=c.length,O=Q-1;P<Q;O=P++)k=c[P],H=c[O],k._code&se?H._code&se||(fe=Ht(H,k,se,u,g),fe._code=at(fe,u),C.push(fe)):(H._code&se&&(fe=Ht(H,k,se,u,g),fe._code=at(fe,u),C.push(fe)),C.push(k));c=C}return c}function rn(c,u){var g,C,w,P,O,N,k,H,Q;if(!c||c.length===0)throw new Error("latlngs not passed");xe(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var se=ie([0,0]),fe=le(c),De=fe.getNorthWest().distanceTo(fe.getSouthWest())*fe.getNorthEast().distanceTo(fe.getNorthWest());De<1700&&(se=bi(c));var Re=c.length,Le=[];for(g=0;g<Re;g++){var Oe=ie(c[g]);Le.push(u.project(ie([Oe.lat-se.lat,Oe.lng-se.lng])))}for(N=k=H=0,g=0,C=Re-1;g<Re;C=g++)w=Le[g],P=Le[C],O=w.y*P.x-P.y*w.x,k+=(w.x+P.x)*O,H+=(w.y+P.y)*O,N+=O*3;N===0?Q=Le[0]:Q=[k/N,H/N];var Ct=u.unproject(K(Q));return ie([Ct.lat+se.lat,Ct.lng+se.lng])}function bi(c){for(var u=0,g=0,C=0,w=0;w<c.length;w++){var P=ie(c[w]);u+=P.lat,g+=P.lng,C++}return ie([u/C,g/C])}var Ss={__proto__:null,clipPolygon:sn,polygonCenter:rn,centroid:bi};function an(c,u){if(!u||!c.length)return c.slice();var g=u*u;return c=Ts(c,g),c=Ps(c,g),c}function ln(c,u,g){return Math.sqrt(Dt(c,u,g,!0))}function Es(c,u,g){return Dt(c,u,g)}function Ps(c,u){var g=c.length,C=typeof Uint8Array!=void 0+""?Uint8Array:Array,w=new C(g);w[0]=w[g-1]=1,wi(c,w,u,0,g-1);var P,O=[];for(P=0;P<g;P++)w[P]&&O.push(c[P]);return O}function wi(c,u,g,C,w){var P=0,O,N,k;for(N=C+1;N<=w-1;N++)k=Dt(c[N],c[C],c[w],!0),k>P&&(O=N,P=k);P>g&&(u[O]=1,wi(c,u,g,C,O),wi(c,u,g,O,w))}function Ts(c,u){for(var g=[c[0]],C=1,w=0,P=c.length;C<P;C++)Rs(c[C],c[w])>u&&(g.push(c[C]),w=C);return w<P-1&&g.push(c[P-1]),g}var cn;function dn(c,u,g,C,w){var P=C?cn:at(c,g),O=at(u,g),N,k,H;for(cn=O;;){if(!(P|O))return[c,u];if(P&O)return!1;N=P||O,k=Ht(c,u,N,g,w),H=at(k,g),N===P?(c=k,P=H):(u=k,O=H)}}function Ht(c,u,g,C,w){var P=u.x-c.x,O=u.y-c.y,N=C.min,k=C.max,H,Q;return g&8?(H=c.x+P*(k.y-c.y)/O,Q=k.y):g&4?(H=c.x+P*(N.y-c.y)/O,Q=N.y):g&2?(H=k.x,Q=c.y+O*(k.x-c.x)/P):g&1&&(H=N.x,Q=c.y+O*(N.x-c.x)/P),new W(H,Q,w)}function at(c,u){var g=0;return c.x<u.min.x?g|=1:c.x>u.max.x&&(g|=2),c.y<u.min.y?g|=4:c.y>u.max.y&&(g|=8),g}function Rs(c,u){var g=u.x-c.x,C=u.y-c.y;return g*g+C*C}function Dt(c,u,g,C){var w=u.x,P=u.y,O=g.x-w,N=g.y-P,k=O*O+N*N,H;return k>0&&(H=((c.x-w)*O+(c.y-P)*N)/k,H>1?(w=g.x,P=g.y):H>0&&(w+=O*H,P+=N*H)),O=c.x-w,N=c.y-P,C?O*O+N*N:new W(w,P)}function xe(c){return!R(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function un(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),xe(c)}function hn(c,u){var g,C,w,P,O,N,k,H;if(!c||c.length===0)throw new Error("latlngs not passed");xe(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Q=ie([0,0]),se=le(c),fe=se.getNorthWest().distanceTo(se.getSouthWest())*se.getNorthEast().distanceTo(se.getNorthWest());fe<1700&&(Q=bi(c));var De=c.length,Re=[];for(g=0;g<De;g++){var Le=ie(c[g]);Re.push(u.project(ie([Le.lat-Q.lat,Le.lng-Q.lng])))}for(g=0,C=0;g<De-1;g++)C+=Re[g].distanceTo(Re[g+1])/2;if(C===0)H=Re[0];else for(g=0,P=0;g<De-1;g++)if(O=Re[g],N=Re[g+1],w=O.distanceTo(N),P+=w,P>C){k=(P-C)/w,H=[N.x-k*(N.x-O.x),N.y-k*(N.y-O.y)];break}var Oe=u.unproject(K(H));return ie([Oe.lat+Q.lat,Oe.lng+Q.lng])}var As={__proto__:null,simplify:an,pointToSegmentDistance:ln,closestPointOnSegment:Es,clipSegment:dn,_getEdgeIntersection:Ht,_getBitCode:at,_sqClosestPointOnSegment:Dt,isFlat:xe,_flat:un,polylineCenter:hn},Si={project:function(c){return new W(c.lng,c.lat)},unproject:function(c){return new oe(c.y,c.x)},bounds:new ue([-180,-90],[180,90])},Ei={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ue([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var u=Math.PI/180,g=this.R,C=c.lat*u,w=this.R_MINOR/g,P=Math.sqrt(1-w*w),O=P*Math.sin(C),N=Math.tan(Math.PI/4-C/2)/Math.pow((1-O)/(1+O),P/2);return C=-g*Math.log(Math.max(N,1e-10)),new W(c.lng*u*g,C)},unproject:function(c){for(var u=180/Math.PI,g=this.R,C=this.R_MINOR/g,w=Math.sqrt(1-C*C),P=Math.exp(-c.y/g),O=Math.PI/2-2*Math.atan(P),N=0,k=.1,H;N<15&&Math.abs(k)>1e-7;N++)H=w*Math.sin(O),H=Math.pow((1-H)/(1+H),w/2),k=Math.PI/2-2*Math.atan(P*H)-O,O+=k;return new oe(O*u,c.x*u/g)}},Ds={__proto__:null,LonLat:Si,Mercator:Ei,SphericalMercator:qe},Os=n({},Pe,{code:"EPSG:3395",projection:Ei,transformation:function(){var c=.5/(Math.PI*Ei.R);return Ne(c,.5,-c,.5)}()}),pn=n({},Pe,{code:"EPSG:4326",projection:Si,transformation:Ne(1/180,1,-1/180,.5)}),Ms=n({},we,{projection:Si,transformation:Ne(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,u){var g=u.lng-c.lng,C=u.lat-c.lat;return Math.sqrt(g*g+C*C)},infinite:!0});we.Earth=Pe,we.EPSG3395=Os,we.EPSG3857=Be,we.EPSG900913=Xe,we.EPSG4326=pn,we.Simple=Ms;var Ie=q.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[l(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[l(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var u=c.target;if(u.hasLayer(this)){if(this._map=u,this._zoomAnimated=u._zoomAnimated,this.getEvents){var g=this.getEvents();u.on(g,this),this.once("remove",function(){u.off(g,this)},this)}this.onAdd(u),this.fire("add"),u.fire("layeradd",{layer:this})}}});ge.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var u=l(c);return this._layers[u]?this:(this._layers[u]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var u=l(c);return this._layers[u]?(this._loaded&&c.onRemove(this),delete this._layers[u],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return l(c)in this._layers},eachLayer:function(c,u){for(var g in this._layers)c.call(u,this._layers[g]);return this},_addLayers:function(c){c=c?R(c)?c:[c]:[];for(var u=0,g=c.length;u<g;u++)this.addLayer(c[u])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[l(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var u=l(c);this._zoomBoundLayers[u]&&(delete this._zoomBoundLayers[u],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,u=-1/0,g=this._getZoomSpan();for(var C in this._zoomBoundLayers){var w=this._zoomBoundLayers[C].options;c=w.minZoom===void 0?c:Math.min(c,w.minZoom),u=w.maxZoom===void 0?u:Math.max(u,w.maxZoom)}this._layersMaxZoom=u===-1/0?void 0:u,this._layersMinZoom=c===1/0?void 0:c,g!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ht=Ie.extend({initialize:function(c,u){b(this,u),this._layers={};var g,C;if(c)for(g=0,C=c.length;g<C;g++)this.addLayer(c[g])},addLayer:function(c){var u=this.getLayerId(c);return this._layers[u]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var u=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[u]&&this._map.removeLayer(this._layers[u]),delete this._layers[u],this},hasLayer:function(c){var u=typeof c=="number"?c:this.getLayerId(c);return u in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var u=Array.prototype.slice.call(arguments,1),g,C;for(g in this._layers)C=this._layers[g],C[c]&&C[c].apply(C,u);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,u){for(var g in this._layers)c.call(u,this._layers[g]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return l(c)}}),xs=function(c,u){return new ht(c,u)},je=ht.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),ht.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),ht.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new ae;for(var u in this._layers){var g=this._layers[u];c.extend(g.getBounds?g.getBounds():g.getLatLng())}return c}}),Ls=function(c,u){return new je(c,u)},ft=ee.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){b(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,u){var g=this._getIconUrl(c);if(!g){if(c==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var C=this._createImg(g,u&&u.tagName==="IMG"?u:null);return this._setIconStyles(C,c),(this.options.crossOrigin||this.options.crossOrigin==="")&&(C.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),C},_setIconStyles:function(c,u){var g=this.options,C=g[u+"Size"];typeof C=="number"&&(C=[C,C]);var w=K(C),P=K(u==="shadow"&&g.shadowAnchor||g.iconAnchor||w&&w.divideBy(2,!0));c.className="leaflet-marker-"+u+" "+(g.className||""),P&&(c.style.marginLeft=-P.x+"px",c.style.marginTop=-P.y+"px"),w&&(c.style.width=w.x+"px",c.style.height=w.y+"px")},_createImg:function(c,u){return u=u||document.createElement("img"),u.src=c,u},_getIconUrl:function(c){return te.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});function Fs(c){return new ft(c)}var Ot=ft.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(c){return typeof Ot.imagePath!="string"&&(Ot.imagePath=this._detectIconPath()),(this.options.imagePath||Ot.imagePath)+ft.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var u=function(g,C,w){var P=C.exec(g);return P&&P[w]};return c=u(c,/^url\((['"])?(.+)\1\)$/,2),c&&u(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=Ce("div","leaflet-default-icon-path",document.body),u=St(c,"background-image")||St(c,"backgroundImage");if(document.body.removeChild(c),u=this._stripUrl(u),u)return u;var g=document.querySelector('link[href$="leaflet.css"]');return g?g.href.substring(0,g.href.length-11-1):""}}),fn=Ge.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new Qe(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),pe(c,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&be(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var u=this._marker,g=u._map,C=this._marker.options.autoPanSpeed,w=this._marker.options.autoPanPadding,P=st(u._icon),O=g.getPixelBounds(),N=g.getPixelOrigin(),k=ve(O.min._subtract(N).add(w),O.max._subtract(N).subtract(w));if(!k.contains(P)){var H=K((Math.max(k.max.x,P.x)-k.max.x)/(O.max.x-k.max.x)-(Math.min(k.min.x,P.x)-k.min.x)/(O.min.x-k.min.x),(Math.max(k.max.y,P.y)-k.max.y)/(O.max.y-k.max.y)-(Math.min(k.min.y,P.y)-k.min.y)/(O.min.y-k.min.y)).multiplyBy(C);g.panBy(H,{animate:!1}),this._draggable._newPos._add(H),this._draggable._startPos._add(H),Se(u._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=B(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(Y(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,c)))},_onDrag:function(c){var u=this._marker,g=u._shadow,C=st(u._icon),w=u._map.layerPointToLatLng(C);g&&Se(g,C),u._latlng=w,c.latlng=w,c.oldLatLng=this._oldLatLng,u.fire("move",c).fire("drag",c)},_onDragEnd:function(c){Y(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),Wt=Ie.extend({options:{icon:new Ot,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(c,u){b(this,u),this._latlng=ie(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(c){var u=this._latlng;return this._latlng=ie(c),this.update(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,u="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),g=c.icon.createIcon(this._icon),C=!1;g!==this._icon&&(this._icon&&this._removeIcon(),C=!0,c.title&&(g.title=c.title),g.tagName==="IMG"&&(g.alt=c.alt||"")),pe(g,u),c.keyboard&&(g.tabIndex="0",g.setAttribute("role","button")),this._icon=g,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&he(g,"focus",this._panOnFocus,this);var w=c.icon.createShadow(this._shadow),P=!1;w!==this._shadow&&(this._removeShadow(),P=!0),w&&(pe(w,u),w.alt=""),this._shadow=w,c.opacity<1&&this._updateOpacity(),C&&this.getPane().appendChild(this._icon),this._initInteraction(),w&&P&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&_e(this._icon,"focus",this._panOnFocus,this),ye(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ye(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&Se(this._icon,c),this._shadow&&Se(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var u=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(u)},_initInteraction:function(){if(this.options.interactive&&(pe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),fn)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new fn(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&Me(this._icon,c),this._shadow&&Me(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var u=this.options.icon.options,g=u.iconSize?K(u.iconSize):K(0,0),C=u.iconAnchor?K(u.iconAnchor):K(0,0);c.panInside(this._latlng,{paddingTopLeft:C,paddingBottomRight:g.subtract(C)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Is(c,u){return new Wt(c,u)}var Ze=Ie.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(c){this._renderer=c.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(c){return b(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Bt=Ze.extend({options:{fill:!0,radius:10},initialize:function(c,u){b(this,u),this._latlng=ie(c),this._radius=this.options.radius},setLatLng:function(c){var u=this._latlng;return this._latlng=ie(c),this.redraw(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var u=c&&c.radius||this._radius;return Ze.prototype.setStyle.call(this,c),this.setRadius(u),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,u=this._radiusY||c,g=this._clickTolerance(),C=[c+g,u+g];this._pxBounds=new ue(this._point.subtract(C),this._point.add(C))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Ns(c,u){return new Bt(c,u)}var Pi=Bt.extend({initialize:function(c,u,g){if(typeof u=="number"&&(u=n({},g,{radius:u})),b(this,u),this._latlng=ie(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new ae(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:Ze.prototype.setStyle,_project:function(){var c=this._latlng.lng,u=this._latlng.lat,g=this._map,C=g.options.crs;if(C.distance===Pe.distance){var w=Math.PI/180,P=this._mRadius/Pe.R/w,O=g.project([u+P,c]),N=g.project([u-P,c]),k=O.add(N).divideBy(2),H=g.unproject(k).lat,Q=Math.acos((Math.cos(P*w)-Math.sin(u*w)*Math.sin(H*w))/(Math.cos(u*w)*Math.cos(H*w)))/w;(isNaN(Q)||Q===0)&&(Q=P/Math.cos(Math.PI/180*u)),this._point=k.subtract(g.getPixelOrigin()),this._radius=isNaN(Q)?0:k.x-g.project([H,c-Q]).x,this._radiusY=k.y-O.y}else{var se=C.unproject(C.project(this._latlng).subtract([this._mRadius,0]));this._point=g.latLngToLayerPoint(this._latlng),this._radius=this._point.x-g.latLngToLayerPoint(se).x}this._updateBounds()}});function $s(c,u,g){return new Pi(c,u,g)}var Ue=Ze.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,u){b(this,u),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var u=1/0,g=null,C=Dt,w,P,O=0,N=this._parts.length;O<N;O++)for(var k=this._parts[O],H=1,Q=k.length;H<Q;H++){w=k[H-1],P=k[H];var se=C(c,w,P,!0);se<u&&(u=se,g=C(c,w,P))}return g&&(g.distance=Math.sqrt(u)),g},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return hn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,u){return u=u||this._defaultShape(),c=ie(c),u.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new ae,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return xe(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var u=[],g=xe(c),C=0,w=c.length;C<w;C++)g?(u[C]=ie(c[C]),this._bounds.extend(u[C])):u[C]=this._convertLatLngs(c[C]);return u},_project:function(){var c=new ue;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),u=new W(c,c);this._rawPxBounds&&(this._pxBounds=new ue([this._rawPxBounds.min.subtract(u),this._rawPxBounds.max.add(u)]))},_projectLatlngs:function(c,u,g){var C=c[0]instanceof oe,w=c.length,P,O;if(C){for(O=[],P=0;P<w;P++)O[P]=this._map.latLngToLayerPoint(c[P]),g.extend(O[P]);u.push(O)}else for(P=0;P<w;P++)this._projectLatlngs(c[P],u,g)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}var u=this._parts,g,C,w,P,O,N,k;for(g=0,w=0,P=this._rings.length;g<P;g++)for(k=this._rings[g],C=0,O=k.length;C<O-1;C++)N=dn(k[C],k[C+1],c,C,!0),N&&(u[w]=u[w]||[],u[w].push(N[0]),(N[1]!==k[C+1]||C===O-2)&&(u[w].push(N[1]),w++))}},_simplifyPoints:function(){for(var c=this._parts,u=this.options.smoothFactor,g=0,C=c.length;g<C;g++)c[g]=an(c[g],u)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,u){var g,C,w,P,O,N,k=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(g=0,P=this._parts.length;g<P;g++)for(N=this._parts[g],C=0,O=N.length,w=O-1;C<O;w=C++)if(!(!u&&C===0)&&ln(c,N[w],N[C])<=k)return!0;return!1}});function ks(c,u){return new Ue(c,u)}Ue._flat=un;var gt=Ue.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return rn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var u=Ue.prototype._convertLatLngs.call(this,c),g=u.length;return g>=2&&u[0]instanceof oe&&u[0].equals(u[g-1])&&u.pop(),u},_setLatLngs:function(c){Ue.prototype._setLatLngs.call(this,c),xe(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return xe(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,u=this.options.weight,g=new W(u,u);if(c=new ue(c.min.subtract(g),c.max.add(g)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var C=0,w=this._rings.length,P;C<w;C++)P=sn(this._rings[C],c,!0),P.length&&this._parts.push(P)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var u=!1,g,C,w,P,O,N,k,H;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(P=0,k=this._parts.length;P<k;P++)for(g=this._parts[P],O=0,H=g.length,N=H-1;O<H;N=O++)C=g[O],w=g[N],C.y>c.y!=w.y>c.y&&c.x<(w.x-C.x)*(c.y-C.y)/(w.y-C.y)+C.x&&(u=!u);return u||Ue.prototype._containsPoint.call(this,c,!0)}});function Gs(c,u){return new gt(c,u)}var Ke=je.extend({initialize:function(c,u){b(this,u),this._layers={},c&&this.addData(c)},addData:function(c){var u=R(c)?c:c.features,g,C,w;if(u){for(g=0,C=u.length;g<C;g++)w=u[g],(w.geometries||w.geometry||w.features||w.coordinates)&&this.addData(w);return this}var P=this.options;if(P.filter&&!P.filter(c))return this;var O=zt(c,P);return O?(O.feature=Kt(c),O.defaultOptions=O.options,this.resetStyle(O),P.onEachFeature&&P.onEachFeature(c,O),this.addLayer(O)):this},resetStyle:function(c){return c===void 0?this.eachLayer(this.resetStyle,this):(c.options=n({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(u){this._setLayerStyle(u,c)},this)},_setLayerStyle:function(c,u){c.setStyle&&(typeof u=="function"&&(u=u(c.feature)),c.setStyle(u))}});function zt(c,u){var g=c.type==="Feature"?c.geometry:c,C=g?g.coordinates:null,w=[],P=u&&u.pointToLayer,O=u&&u.coordsToLatLng||Ti,N,k,H,Q;if(!C&&!g)return null;switch(g.type){case"Point":return N=O(C),gn(P,c,N,u);case"MultiPoint":for(H=0,Q=C.length;H<Q;H++)N=O(C[H]),w.push(gn(P,c,N,u));return new je(w);case"LineString":case"MultiLineString":return k=jt(C,g.type==="LineString"?0:1,O),new Ue(k,u);case"Polygon":case"MultiPolygon":return k=jt(C,g.type==="Polygon"?1:2,O),new gt(k,u);case"GeometryCollection":for(H=0,Q=g.geometries.length;H<Q;H++){var se=zt({geometry:g.geometries[H],type:"Feature",properties:c.properties},u);se&&w.push(se)}return new je(w);case"FeatureCollection":for(H=0,Q=g.features.length;H<Q;H++){var fe=zt(g.features[H],u);fe&&w.push(fe)}return new je(w);default:throw new Error("Invalid GeoJSON object.")}}function gn(c,u,g,C){return c?c(u,g):new Wt(g,C&&C.markersInheritOptions&&C)}function Ti(c){return new oe(c[1],c[0],c[2])}function jt(c,u,g){for(var C=[],w=0,P=c.length,O;w<P;w++)O=u?jt(c[w],u-1,g):(g||Ti)(c[w]),C.push(O);return C}function Ri(c,u){return c=ie(c),c.alt!==void 0?[m(c.lng,u),m(c.lat,u),m(c.alt,u)]:[m(c.lng,u),m(c.lat,u)]}function Ut(c,u,g,C){for(var w=[],P=0,O=c.length;P<O;P++)w.push(u?Ut(c[P],xe(c[P])?0:u-1,g,C):Ri(c[P],C));return!u&&g&&w.length>0&&w.push(w[0].slice()),w}function mt(c,u){return c.feature?n({},c.feature,{geometry:u}):Kt(u)}function Kt(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var Ai={toGeoJSON:function(c){return mt(this,{type:"Point",coordinates:Ri(this.getLatLng(),c)})}};Wt.include(Ai),Pi.include(Ai),Bt.include(Ai),Ue.include({toGeoJSON:function(c){var u=!xe(this._latlngs),g=Ut(this._latlngs,u?1:0,!1,c);return mt(this,{type:(u?"Multi":"")+"LineString",coordinates:g})}}),gt.include({toGeoJSON:function(c){var u=!xe(this._latlngs),g=u&&!xe(this._latlngs[0]),C=Ut(this._latlngs,g?2:u?1:0,!0,c);return u||(C=[C]),mt(this,{type:(g?"Multi":"")+"Polygon",coordinates:C})}}),ht.include({toMultiPoint:function(c){var u=[];return this.eachLayer(function(g){u.push(g.toGeoJSON(c).geometry.coordinates)}),mt(this,{type:"MultiPoint",coordinates:u})},toGeoJSON:function(c){var u=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(u==="MultiPoint")return this.toMultiPoint(c);var g=u==="GeometryCollection",C=[];return this.eachLayer(function(w){if(w.toGeoJSON){var P=w.toGeoJSON(c);if(g)C.push(P.geometry);else{var O=Kt(P);O.type==="FeatureCollection"?C.push.apply(C,O.features):C.push(O)}}}),g?mt(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function mn(c,u){return new Ke(c,u)}var Vs=mn,Yt=Ie.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,u,g){this._url=c,this._bounds=le(u),b(this,g)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(pe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ye(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&dt(this._image),this},bringToBack:function(){return this._map&&ut(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=le(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",u=this._image=c?this._url:Ce("img");if(pe(u,"leaflet-image-layer"),this._zoomAnimated&&pe(u,"leaflet-zoom-animated"),this.options.className&&pe(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onload=r(this.fire,this,"load"),u.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=u.src;return}u.src=this._url,u.alt=this.options.alt},_animateZoom:function(c){var u=this._map.getZoomScale(c.zoom),g=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;nt(this._image,g,u)},_reset:function(){var c=this._image,u=new ue(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),g=u.getSize();Se(c,u.min),c.style.width=g.x+"px",c.style.height=g.y+"px"},_updateOpacity:function(){Me(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),Hs=function(c,u,g){return new Yt(c,u,g)},vn=Yt.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",u=this._image=c?this._url:Ce("video");if(pe(u,"leaflet-image-layer"),this._zoomAnimated&&pe(u,"leaflet-zoom-animated"),this.options.className&&pe(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onloadeddata=r(this.fire,this,"load"),c){for(var g=u.getElementsByTagName("source"),C=[],w=0;w<g.length;w++)C.push(g[w].src);this._url=g.length>0?C:[u.src];return}R(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(u.style,"objectFit")&&(u.style.objectFit="fill"),u.autoplay=!!this.options.autoplay,u.loop=!!this.options.loop,u.muted=!!this.options.muted,u.playsInline=!!this.options.playsInline;for(var P=0;P<this._url.length;P++){var O=Ce("source");O.src=this._url[P],u.appendChild(O)}}});function Ws(c,u,g){return new vn(c,u,g)}var Cn=Yt.extend({_initImage:function(){var c=this._image=this._url;pe(c,"leaflet-image-layer"),this._zoomAnimated&&pe(c,"leaflet-zoom-animated"),this.options.className&&pe(c,this.options.className),c.onselectstart=p,c.onmousemove=p}});function Bs(c,u,g){return new Cn(c,u,g)}var Ve=Ie.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,u){c&&(c instanceof oe||R(c))?(this._latlng=ie(c),b(this,u)):(b(this,c),this._source=u),this.options.content&&(this._content=this.options.content)},openOn:function(c){return c=arguments.length?c:this._source._map,c.hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&Me(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&Me(this._container,1),this.bringToFront(),this.options.interactive&&(pe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(Me(this._container,0),this._removeTimeout=setTimeout(r(ye,void 0,this._container),200)):ye(this._container),this.options.interactive&&(be(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=ie(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&dt(this._container),this},bringToBack:function(){return this._map&&ut(this._container),this},_prepareOpen:function(c){var u=this._source;if(!u._map)return!1;if(u instanceof je){u=null;var g=this._source._layers;for(var C in g)if(g[C]._map){u=g[C];break}if(!u)return!1;this._source=u}if(!c)if(u.getCenter)c=u.getCenter();else if(u.getLatLng)c=u.getLatLng();else if(u.getBounds)c=u.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,u=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof u=="string")c.innerHTML=u;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(u)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),u=K(this.options.offset),g=this._getAnchor();this._zoomAnimated?Se(this._container,c.add(g)):u=u.add(c).add(g);var C=this._containerBottom=-u.y,w=this._containerLeft=-Math.round(this._containerWidth/2)+u.x;this._container.style.bottom=C+"px",this._container.style.left=w+"px"}},_getAnchor:function(){return[0,0]}});ge.include({_initOverlay:function(c,u,g,C){var w=u;return w instanceof c||(w=new c(C).setContent(u)),g&&w.setLatLng(g),w}}),Ie.include({_initOverlay:function(c,u,g,C){var w=g;return w instanceof c?(b(w,C),w._source=this):(w=u&&!C?u:new c(C,this),w.setContent(g)),w}});var qt=Ve.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(c){return c=arguments.length?c:this._source._map,!c.hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,Ve.prototype.openOn.call(this,c)},onAdd:function(c){Ve.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ze||this._source.on("preclick",ot))},onRemove:function(c){Ve.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ze||this._source.off("preclick",ot))},getEvents:function(){var c=Ve.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",u=this._container=Ce("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),g=this._wrapper=Ce("div",c+"-content-wrapper",u);if(this._contentNode=Ce("div",c+"-content",g),Rt(u),mi(this._contentNode),he(u,"contextmenu",ot),this._tipContainer=Ce("div",c+"-tip-container",u),this._tip=Ce("div",c+"-tip",this._tipContainer),this.options.closeButton){var C=this._closeButton=Ce("a",c+"-close-button",u);C.setAttribute("role","button"),C.setAttribute("aria-label","Close popup"),C.href="#close",C.innerHTML='<span aria-hidden="true">&#215;</span>',he(C,"click",function(w){Ae(w),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,u=c.style;u.width="",u.whiteSpace="nowrap";var g=c.offsetWidth;g=Math.min(g,this.options.maxWidth),g=Math.max(g,this.options.minWidth),u.width=g+1+"px",u.whiteSpace="",u.height="";var C=c.offsetHeight,w=this.options.maxHeight,P="leaflet-popup-scrolled";w&&C>w?(u.height=w+"px",pe(c,P)):be(c,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var u=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),g=this._getAnchor();Se(this._container,u.add(g))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,u=parseInt(St(this._container,"marginBottom"),10)||0,g=this._container.offsetHeight+u,C=this._containerWidth,w=new W(this._containerLeft,-g-this._containerBottom);w._add(st(this._container));var P=c.layerPointToContainerPoint(w),O=K(this.options.autoPanPadding),N=K(this.options.autoPanPaddingTopLeft||O),k=K(this.options.autoPanPaddingBottomRight||O),H=c.getSize(),Q=0,se=0;P.x+C+k.x>H.x&&(Q=P.x+C-H.x+k.x),P.x-Q-N.x<0&&(Q=P.x-N.x),P.y+g+k.y>H.y&&(se=P.y+g-H.y+k.y),P.y-se-N.y<0&&(se=P.y-N.y),(Q||se)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Q,se]))}},_getAnchor:function(){return K(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),zs=function(c,u){return new qt(c,u)};ge.mergeOptions({closePopupOnClick:!0}),ge.include({openPopup:function(c,u,g){return this._initOverlay(qt,c,u,g).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),Ie.include({bindPopup:function(c,u){return this._popup=this._initOverlay(qt,this._popup,c,u),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(c){return this._popup&&(this instanceof je||(this._popup._source=this),this._popup._prepareOpen(c||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){rt(c);var u=c.layer||c.target;if(this._popup._source===u&&!(u instanceof Ze)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=u,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var Xt=Ve.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){Ve.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){Ve.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=Ve.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",u=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ce("div",u),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var u,g,C=this._map,w=this._container,P=C.latLngToContainerPoint(C.getCenter()),O=C.layerPointToContainerPoint(c),N=this.options.direction,k=w.offsetWidth,H=w.offsetHeight,Q=K(this.options.offset),se=this._getAnchor();N==="top"?(u=k/2,g=H):N==="bottom"?(u=k/2,g=0):N==="center"?(u=k/2,g=H/2):N==="right"?(u=0,g=H/2):N==="left"?(u=k,g=H/2):O.x<P.x?(N="right",u=0,g=H/2):(N="left",u=k+(Q.x+se.x)*2,g=H/2),c=c.subtract(K(u,g,!0)).add(Q).add(se),be(w,"leaflet-tooltip-right"),be(w,"leaflet-tooltip-left"),be(w,"leaflet-tooltip-top"),be(w,"leaflet-tooltip-bottom"),pe(w,"leaflet-tooltip-"+N),Se(w,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&Me(this._container,c)},_animateZoom:function(c){var u=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(u)},_getAnchor:function(){return K(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),js=function(c,u){return new Xt(c,u)};ge.include({openTooltip:function(c,u,g){return this._initOverlay(Xt,c,u,g).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),Ie.include({bindTooltip:function(c,u){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Xt,this._tooltip,c,u),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(c){if(!(!c&&this._tooltipHandlersAdded)){var u=c?"off":"on",g={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?g.add=this._openTooltip:(g.mouseover=this._openTooltip,g.mouseout=this.closeTooltip,g.click=this._openTooltip,this._map?this._addFocusListeners():g.add=this._addFocusListeners),this._tooltip.options.sticky&&(g.mousemove=this._moveTooltip),this[u](g),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof je||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var u=typeof c.getElement=="function"&&c.getElement();u&&(he(u,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),he(u,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var u=typeof c.getElement=="function"&&c.getElement();u&&u.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var u=this;this._map.once("moveend",function(){u._openOnceFlag=!1,u._openTooltip(c)});return}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var u=c.latlng,g,C;this._tooltip.options.sticky&&c.originalEvent&&(g=this._map.mouseEventToContainerPoint(c.originalEvent),C=this._map.containerPointToLayerPoint(g),u=this._map.layerPointToLatLng(C)),this._tooltip.setLatLng(u)}});var _n=ft.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var u=c&&c.tagName==="DIV"?c:document.createElement("div"),g=this.options;if(g.html instanceof Element?(Nt(u),u.appendChild(g.html)):u.innerHTML=g.html!==!1?g.html:"",g.bgPos){var C=K(g.bgPos);u.style.backgroundPosition=-C.x+"px "+-C.y+"px"}return this._setIconStyles(u,"icon"),u},createShadow:function(){return null}});function Us(c){return new _n(c)}ft.Default=Ot;var Mt=Ie.extend({options:{tileSize:256,opacity:1,updateWhenIdle:te.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(c){b(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),ye(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(dt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ut(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=d(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof W?c:new W(c,c)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var u=this.getPane().children,g=-c(-1/0,1/0),C=0,w=u.length,P;C<w;C++)P=u[C].style.zIndex,u[C]!==this._container&&P&&(g=c(g,+P));isFinite(g)&&(this.options.zIndex=g+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!te.ielt9){Me(this._container,this.options.opacity);var c=+new Date,u=!1,g=!1;for(var C in this._tiles){var w=this._tiles[C];if(!(!w.current||!w.loaded)){var P=Math.min(1,(c-w.loaded)/200);Me(w.el,P),P<1?u=!0:(w.active?g=!0:this._onOpaqueTile(w),w.active=!0)}}g&&!this._noPrune&&this._pruneTiles(),u&&(Y(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=Ce("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var c=this._tileZoom,u=this.options.maxZoom;if(c!==void 0){for(var g in this._levels)g=Number(g),this._levels[g].el.children.length||g===c?(this._levels[g].el.style.zIndex=u-Math.abs(c-g),this._onUpdateLevel(g)):(ye(this._levels[g].el),this._removeTilesAtZoom(g),this._onRemoveLevel(g),delete this._levels[g]);var C=this._levels[c],w=this._map;return C||(C=this._levels[c]={},C.el=Ce("div","leaflet-tile-container leaflet-zoom-animated",this._container),C.el.style.zIndex=u,C.origin=w.project(w.unproject(w.getPixelOrigin()),c).round(),C.zoom=c,this._setZoomTransform(C,w.getCenter(),w.getZoom()),p(C.el.offsetWidth),this._onCreateLevel(C)),this._level=C,C}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var c,u,g=this._map.getZoom();if(g>this.options.maxZoom||g<this.options.minZoom){this._removeAllTiles();return}for(c in this._tiles)u=this._tiles[c],u.retain=u.current;for(c in this._tiles)if(u=this._tiles[c],u.current&&!u.active){var C=u.coords;this._retainParent(C.x,C.y,C.z,C.z-5)||this._retainChildren(C.x,C.y,C.z,C.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var u in this._tiles)this._tiles[u].coords.z===c&&this._removeTile(u)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)ye(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,u,g,C){var w=Math.floor(c/2),P=Math.floor(u/2),O=g-1,N=new W(+w,+P);N.z=+O;var k=this._tileCoordsToKey(N),H=this._tiles[k];return H&&H.active?(H.retain=!0,!0):(H&&H.loaded&&(H.retain=!0),O>C?this._retainParent(w,P,O,C):!1)},_retainChildren:function(c,u,g,C){for(var w=2*c;w<2*c+2;w++)for(var P=2*u;P<2*u+2;P++){var O=new W(w,P);O.z=g+1;var N=this._tileCoordsToKey(O),k=this._tiles[N];if(k&&k.active){k.retain=!0;continue}else k&&k.loaded&&(k.retain=!0);g+1<C&&this._retainChildren(w,P,g+1,C)}},_resetView:function(c){var u=c&&(c.pinch||c.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),u,u)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var u=this.options;return u.minNativeZoom!==void 0&&c<u.minNativeZoom?u.minNativeZoom:u.maxNativeZoom!==void 0&&u.maxNativeZoom<c?u.maxNativeZoom:c},_setView:function(c,u,g,C){var w=Math.round(u);this.options.maxZoom!==void 0&&w>this.options.maxZoom||this.options.minZoom!==void 0&&w<this.options.minZoom?w=void 0:w=this._clampZoom(w);var P=this.options.updateWhenZooming&&w!==this._tileZoom;(!C||P)&&(this._tileZoom=w,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),w!==void 0&&this._update(c),g||this._pruneTiles(),this._noPrune=!!g),this._setZoomTransforms(c,u)},_setZoomTransforms:function(c,u){for(var g in this._levels)this._setZoomTransform(this._levels[g],c,u)},_setZoomTransform:function(c,u,g){var C=this._map.getZoomScale(g,c.zoom),w=c.origin.multiplyBy(C).subtract(this._map._getNewPixelOrigin(u,g)).round();te.any3d?nt(c.el,w,C):Se(c.el,w)},_resetGrid:function(){var c=this._map,u=c.options.crs,g=this._tileSize=this.getTileSize(),C=this._tileZoom,w=this._map.getPixelWorldBounds(this._tileZoom);w&&(this._globalTileRange=this._pxBoundsToTileRange(w)),this._wrapX=u.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,u.wrapLng[0]],C).x/g.x),Math.ceil(c.project([0,u.wrapLng[1]],C).x/g.y)],this._wrapY=u.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([u.wrapLat[0],0],C).y/g.x),Math.ceil(c.project([u.wrapLat[1],0],C).y/g.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var u=this._map,g=u._animatingZoom?Math.max(u._animateToZoom,u.getZoom()):u.getZoom(),C=u.getZoomScale(g,this._tileZoom),w=u.project(c,this._tileZoom).floor(),P=u.getSize().divideBy(C*2);return new ue(w.subtract(P),w.add(P))},_update:function(c){var u=this._map;if(u){var g=this._clampZoom(u.getZoom());if(c===void 0&&(c=u.getCenter()),this._tileZoom!==void 0){var C=this._getTiledPixelBounds(c),w=this._pxBoundsToTileRange(C),P=w.getCenter(),O=[],N=this.options.keepBuffer,k=new ue(w.getBottomLeft().subtract([N,-N]),w.getTopRight().add([N,-N]));if(!(isFinite(w.min.x)&&isFinite(w.min.y)&&isFinite(w.max.x)&&isFinite(w.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var H in this._tiles){var Q=this._tiles[H].coords;(Q.z!==this._tileZoom||!k.contains(new W(Q.x,Q.y)))&&(this._tiles[H].current=!1)}if(Math.abs(g-this._tileZoom)>1){this._setView(c,g);return}for(var se=w.min.y;se<=w.max.y;se++)for(var fe=w.min.x;fe<=w.max.x;fe++){var De=new W(fe,se);if(De.z=this._tileZoom,!!this._isValidTile(De)){var Re=this._tiles[this._tileCoordsToKey(De)];Re?Re.current=!0:O.push(De)}}if(O.sort(function(Oe,Ct){return Oe.distanceTo(P)-Ct.distanceTo(P)}),O.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Le=document.createDocumentFragment();for(fe=0;fe<O.length;fe++)this._addTile(O[fe],Le);this._level.el.appendChild(Le)}}}},_isValidTile:function(c){var u=this._map.options.crs;if(!u.infinite){var g=this._globalTileRange;if(!u.wrapLng&&(c.x<g.min.x||c.x>g.max.x)||!u.wrapLat&&(c.y<g.min.y||c.y>g.max.y))return!1}if(!this.options.bounds)return!0;var C=this._tileCoordsToBounds(c);return le(this.options.bounds).overlaps(C)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var u=this._map,g=this.getTileSize(),C=c.scaleBy(g),w=C.add(g),P=u.unproject(C,c.z),O=u.unproject(w,c.z);return[P,O]},_tileCoordsToBounds:function(c){var u=this._tileCoordsToNwSe(c),g=new ae(u[0],u[1]);return this.options.noWrap||(g=this._map.wrapLatLngBounds(g)),g},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var u=c.split(":"),g=new W(+u[0],+u[1]);return g.z=+u[2],g},_removeTile:function(c){var u=this._tiles[c];u&&(ye(u.el),delete this._tiles[c],this.fire("tileunload",{tile:u.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){pe(c,"leaflet-tile");var u=this.getTileSize();c.style.width=u.x+"px",c.style.height=u.y+"px",c.onselectstart=p,c.onmousemove=p,te.ielt9&&this.options.opacity<1&&Me(c,this.options.opacity)},_addTile:function(c,u){var g=this._getTilePos(c),C=this._tileCoordsToKey(c),w=this.createTile(this._wrapCoords(c),r(this._tileReady,this,c));this._initTile(w),this.createTile.length<2&&B(r(this._tileReady,this,c,null,w)),Se(w,g),this._tiles[C]={el:w,coords:c,current:!0},u.appendChild(w),this.fire("tileloadstart",{tile:w,coords:c})},_tileReady:function(c,u,g){u&&this.fire("tileerror",{error:u,tile:g,coords:c});var C=this._tileCoordsToKey(c);g=this._tiles[C],g&&(g.loaded=+new Date,this._map._fadeAnimated?(Me(g.el,0),Y(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(g.active=!0,this._pruneTiles()),u||(pe(g.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:g.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),te.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var u=new W(this._wrapX?h(c.x,this._wrapX):c.x,this._wrapY?h(c.y,this._wrapY):c.y);return u.z=c.z,u},_pxBoundsToTileRange:function(c){var u=this.getTileSize();return new ue(c.min.unscaleBy(u).floor(),c.max.unscaleBy(u).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function Ks(c){return new Mt(c)}var vt=Mt.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,u){this._url=c,u=b(this,u),u.detectRetina&&te.retina&&u.maxZoom>0?(u.tileSize=Math.floor(u.tileSize/2),u.zoomReverse?(u.zoomOffset--,u.minZoom=Math.min(u.maxZoom,u.minZoom+1)):(u.zoomOffset++,u.maxZoom=Math.max(u.minZoom,u.maxZoom-1)),u.minZoom=Math.max(0,u.minZoom)):u.zoomReverse?u.minZoom=Math.min(u.maxZoom,u.minZoom):u.maxZoom=Math.max(u.minZoom,u.maxZoom),typeof u.subdomains=="string"&&(u.subdomains=u.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,u){return this._url===c&&u===void 0&&(u=!0),this._url=c,u||this.redraw(),this},createTile:function(c,u){var g=document.createElement("img");return he(g,"load",r(this._tileOnLoad,this,u,g)),he(g,"error",r(this._tileOnError,this,u,g)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(g.referrerPolicy=this.options.referrerPolicy),g.alt="",g.src=this.getTileUrl(c),g},getTileUrl:function(c){var u={r:te.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var g=this._globalTileRange.max.y-c.y;this.options.tms&&(u.y=g),u["-y"]=g}return T(this._url,n(u,this.options))},_tileOnLoad:function(c,u){te.ielt9?setTimeout(r(c,this,null,u),0):c(null,u)},_tileOnError:function(c,u,g){var C=this.options.errorTileUrl;C&&u.getAttribute("src")!==C&&(u.src=C),c(g,u)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,u=this.options.maxZoom,g=this.options.zoomReverse,C=this.options.zoomOffset;return g&&(c=u-c),c+C},_getSubdomain:function(c){var u=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[u]},_abortLoading:function(){var c,u;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(u=this._tiles[c].el,u.onload=p,u.onerror=p,!u.complete)){u.src=D;var g=this._tiles[c].coords;ye(u),delete this._tiles[c],this.fire("tileabort",{tile:u,coords:g})}},_removeTile:function(c){var u=this._tiles[c];if(u)return u.el.setAttribute("src",D),Mt.prototype._removeTile.call(this,c)},_tileReady:function(c,u,g){if(!(!this._map||g&&g.getAttribute("src")===D))return Mt.prototype._tileReady.call(this,c,u,g)}});function yn(c,u){return new vt(c,u)}var bn=vt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,u){this._url=c;var g=n({},this.defaultWmsParams);for(var C in u)C in this.options||(g[C]=u[C]);u=b(this,u);var w=u.detectRetina&&te.retina?2:1,P=this.getTileSize();g.width=P.x*w,g.height=P.y*w,this.wmsParams=g},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var u=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[u]=this._crs.code,vt.prototype.onAdd.call(this,c)},getTileUrl:function(c){var u=this._tileCoordsToNwSe(c),g=this._crs,C=ve(g.project(u[0]),g.project(u[1])),w=C.min,P=C.max,O=(this._wmsVersion>=1.3&&this._crs===pn?[w.y,w.x,P.y,P.x]:[w.x,w.y,P.x,P.y]).join(","),N=vt.prototype.getTileUrl.call(this,c);return N+S(this.wmsParams,N,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+O},setParams:function(c,u){return n(this.wmsParams,c),u||this.redraw(),this}});function Ys(c,u){return new bn(c,u)}vt.WMS=bn,yn.wms=Ys;var Ye=Ie.extend({options:{padding:.1},initialize:function(c){b(this,c),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),pe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,u){var g=this._map.getZoomScale(u,this._zoom),C=this._map.getSize().multiplyBy(.5+this.options.padding),w=this._map.project(this._center,u),P=C.multiplyBy(-g).add(w).subtract(this._map._getNewPixelOrigin(c,u));te.any3d?nt(this._container,P,g):Se(this._container,P)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,u=this._map.getSize(),g=this._map.containerPointToLayerPoint(u.multiplyBy(-c)).round();this._bounds=new ue(g,g.add(u.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),wn=Ye.extend({options:{tolerance:0},getEvents:function(){var c=Ye.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ye.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");he(c,"mousemove",this._onMouseMove,this),he(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),he(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){Y(this._redrawRequest),delete this._ctx,ye(this._container),_e(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var u in this._layers)c=this._layers[u],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ye.prototype._update.call(this);var c=this._bounds,u=this._container,g=c.getSize(),C=te.retina?2:1;Se(u,c.min),u.width=C*g.x,u.height=C*g.y,u.style.width=g.x+"px",u.style.height=g.y+"px",te.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){Ye.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[l(c)]=c;var u=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=u),this._drawLast=u,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var u=c._order,g=u.next,C=u.prev;g?g.prev=C:this._drawLast=C,C?C.next=g:this._drawFirst=g,delete c._order,delete this._layers[l(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var u=c.options.dashArray.split(/[, ]+/),g=[],C,w;for(w=0;w<u.length;w++){if(C=Number(u[w]),isNaN(C))return;g.push(C)}c.options._dashArray=g}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var u=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ue,this._redrawBounds.extend(c._pxBounds.min.subtract([u,u])),this._redrawBounds.extend(c._pxBounds.max.add([u,u]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var c=this._redrawBounds;if(c){var u=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,u.x,u.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var c,u=this._redrawBounds;if(this._ctx.save(),u){var g=u.getSize();this._ctx.beginPath(),this._ctx.rect(u.min.x,u.min.y,g.x,g.y),this._ctx.clip()}this._drawing=!0;for(var C=this._drawFirst;C;C=C.next)c=C.layer,(!u||c._pxBounds&&c._pxBounds.intersects(u))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,u){if(this._drawing){var g,C,w,P,O=c._parts,N=O.length,k=this._ctx;if(N){for(k.beginPath(),g=0;g<N;g++){for(C=0,w=O[g].length;C<w;C++)P=O[g][C],k[C?"lineTo":"moveTo"](P.x,P.y);u&&k.closePath()}this._fillStroke(k,c)}}},_updateCircle:function(c){if(!(!this._drawing||c._empty())){var u=c._point,g=this._ctx,C=Math.max(Math.round(c._radius),1),w=(Math.max(Math.round(c._radiusY),1)||C)/C;w!==1&&(g.save(),g.scale(1,w)),g.beginPath(),g.arc(u.x,u.y/w,C,0,Math.PI*2,!1),w!==1&&g.restore(),this._fillStroke(g,c)}},_fillStroke:function(c,u){var g=u.options;g.fill&&(c.globalAlpha=g.fillOpacity,c.fillStyle=g.fillColor||g.color,c.fill(g.fillRule||"evenodd")),g.stroke&&g.weight!==0&&(c.setLineDash&&c.setLineDash(u.options&&u.options._dashArray||[]),c.globalAlpha=g.opacity,c.lineWidth=g.weight,c.strokeStyle=g.color,c.lineCap=g.lineCap,c.lineJoin=g.lineJoin,c.stroke())},_onClick:function(c){for(var u=this._map.mouseEventToLayerPoint(c),g,C,w=this._drawFirst;w;w=w.next)g=w.layer,g.options.interactive&&g._containsPoint(u)&&(!(c.type==="click"||c.type==="preclick")||!this._map._draggableMoved(g))&&(C=g);this._fireEvent(C?[C]:!1,c)},_onMouseMove:function(c){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var u=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,u)}},_handleMouseOut:function(c){var u=this._hoveredLayer;u&&(be(this._container,"leaflet-interactive"),this._fireEvent([u],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,u){if(!this._mouseHoverThrottled){for(var g,C,w=this._drawFirst;w;w=w.next)g=w.layer,g.options.interactive&&g._containsPoint(u)&&(C=g);C!==this._hoveredLayer&&(this._handleMouseOut(c),C&&(pe(this._container,"leaflet-interactive"),this._fireEvent([C],c,"mouseover"),this._hoveredLayer=C)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,c),this._mouseHoverThrottled=!0,setTimeout(r(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,u,g){this._map._fireDOMEvent(u,g||u.type,c)},_bringToFront:function(c){var u=c._order;if(u){var g=u.next,C=u.prev;if(g)g.prev=C;else return;C?C.next=g:g&&(this._drawFirst=g),u.prev=this._drawLast,this._drawLast.next=u,u.next=null,this._drawLast=u,this._requestRedraw(c)}},_bringToBack:function(c){var u=c._order;if(u){var g=u.next,C=u.prev;if(C)C.next=g;else return;g?g.prev=C:C&&(this._drawLast=C),u.prev=null,u.next=this._drawFirst,this._drawFirst.prev=u,this._drawFirst=u,this._requestRedraw(c)}}});function Sn(c){return te.canvas?new wn(c):null}var xt=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),qs={_initContainer:function(){this._container=Ce("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ye.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var u=c._container=xt("shape");pe(u,"leaflet-vml-shape "+(this.options.className||"")),u.coordsize="1 1",c._path=xt("path"),u.appendChild(c._path),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){var u=c._container;this._container.appendChild(u),c.options.interactive&&c.addInteractiveTarget(u)},_removePath:function(c){var u=c._container;ye(u),c.removeInteractiveTarget(u),delete this._layers[l(c)]},_updateStyle:function(c){var u=c._stroke,g=c._fill,C=c.options,w=c._container;w.stroked=!!C.stroke,w.filled=!!C.fill,C.stroke?(u||(u=c._stroke=xt("stroke")),w.appendChild(u),u.weight=C.weight+"px",u.color=C.color,u.opacity=C.opacity,C.dashArray?u.dashStyle=R(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):u.dashStyle="",u.endcap=C.lineCap.replace("butt","flat"),u.joinstyle=C.lineJoin):u&&(w.removeChild(u),c._stroke=null),C.fill?(g||(g=c._fill=xt("fill")),w.appendChild(g),g.color=C.fillColor||C.color,g.opacity=C.fillOpacity):g&&(w.removeChild(g),c._fill=null)},_updateCircle:function(c){var u=c._point.round(),g=Math.round(c._radius),C=Math.round(c._radiusY||g);this._setPath(c,c._empty()?"M0 0":"AL "+u.x+","+u.y+" "+g+","+C+" 0,"+65535*360)},_setPath:function(c,u){c._path.v=u},_bringToFront:function(c){dt(c._container)},_bringToBack:function(c){ut(c._container)}},Qt=te.vml?xt:ze,Lt=Ye.extend({_initContainer:function(){this._container=Qt("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Qt("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ye(this._container),_e(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ye.prototype._update.call(this);var c=this._bounds,u=c.getSize(),g=this._container;(!this._svgSize||!this._svgSize.equals(u))&&(this._svgSize=u,g.setAttribute("width",u.x),g.setAttribute("height",u.y)),Se(g,c.min),g.setAttribute("viewBox",[c.min.x,c.min.y,u.x,u.y].join(" ")),this.fire("update")}},_initPath:function(c){var u=c._path=Qt("path");c.options.className&&pe(u,c.options.className),c.options.interactive&&pe(u,"leaflet-interactive"),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){ye(c._path),c.removeInteractiveTarget(c._path),delete this._layers[l(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var u=c._path,g=c.options;u&&(g.stroke?(u.setAttribute("stroke",g.color),u.setAttribute("stroke-opacity",g.opacity),u.setAttribute("stroke-width",g.weight),u.setAttribute("stroke-linecap",g.lineCap),u.setAttribute("stroke-linejoin",g.lineJoin),g.dashArray?u.setAttribute("stroke-dasharray",g.dashArray):u.removeAttribute("stroke-dasharray"),g.dashOffset?u.setAttribute("stroke-dashoffset",g.dashOffset):u.removeAttribute("stroke-dashoffset")):u.setAttribute("stroke","none"),g.fill?(u.setAttribute("fill",g.fillColor||g.color),u.setAttribute("fill-opacity",g.fillOpacity),u.setAttribute("fill-rule",g.fillRule||"evenodd")):u.setAttribute("fill","none"))},_updatePoly:function(c,u){this._setPath(c,X(c._parts,u))},_updateCircle:function(c){var u=c._point,g=Math.max(Math.round(c._radius),1),C=Math.max(Math.round(c._radiusY),1)||g,w="a"+g+","+C+" 0 1,0 ",P=c._empty()?"M0 0":"M"+(u.x-g)+","+u.y+w+g*2+",0 "+w+-g*2+",0 ";this._setPath(c,P)},_setPath:function(c,u){c._path.setAttribute("d",u)},_bringToFront:function(c){dt(c._path)},_bringToBack:function(c){ut(c._path)}});te.vml&&Lt.include(qs);function En(c){return te.svg||te.vml?new Lt(c):null}ge.include({getRenderer:function(c){var u=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return u||(u=this._renderer=this._createRenderer()),this.hasLayer(u)||this.addLayer(u),u},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var u=this._paneRenderers[c];return u===void 0&&(u=this._createRenderer({pane:c}),this._paneRenderers[c]=u),u},_createRenderer:function(c){return this.options.preferCanvas&&Sn(c)||En(c)}});var Pn=gt.extend({initialize:function(c,u){gt.prototype.initialize.call(this,this._boundsToLatLngs(c),u)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))},_boundsToLatLngs:function(c){return c=le(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function Xs(c,u){return new Pn(c,u)}Lt.create=Qt,Lt.pointsToPath=X,Ke.geometryToLayer=zt,Ke.coordsToLatLng=Ti,Ke.coordsToLatLngs=jt,Ke.latLngToCoords=Ri,Ke.latLngsToCoords=Ut,Ke.getFeature=mt,Ke.asFeature=Kt,ge.mergeOptions({boxZoom:!0});var Tn=Ge.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){he(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){_e(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ye(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Et(),ai(),this._startPoint=this._map.mouseEventToContainerPoint(c),he(document,{contextmenu:rt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=Ce("div","leaflet-zoom-box",this._container),pe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var u=new ue(this._point,this._startPoint),g=u.getSize();Se(this._box,u.min),this._box.style.width=g.x+"px",this._box.style.height=g.y+"px"},_finish:function(){this._moved&&(ye(this._box),be(this._container,"leaflet-crosshair")),Pt(),li(),_e(document,{contextmenu:rt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var u=new ae(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(u).fire("boxzoomend",{boxZoomBounds:u})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ge.addInitHook("addHandler","boxZoom",Tn),ge.mergeOptions({doubleClickZoom:!0});var Rn=Ge.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var u=this._map,g=u.getZoom(),C=u.options.zoomDelta,w=c.originalEvent.shiftKey?g-C:g+C;u.options.doubleClickZoom==="center"?u.setZoom(w):u.setZoomAround(c.containerPoint,w)}});ge.addInitHook("addHandler","doubleClickZoom",Rn),ge.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var An=Ge.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new Qe(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}pe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){be(this._map._container,"leaflet-grab"),be(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var u=le(this._map.options.maxBounds);this._offsetLimit=ve(this._map.latLngToContainerPoint(u.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(u.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var u=this._lastTime=+new Date,g=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(g),this._times.push(u),this._prunePositions(u)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),u=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=u.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,u){return c-(c-u)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),u=this._offsetLimit;c.x<u.min.x&&(c.x=this._viscousLimit(c.x,u.min.x)),c.y<u.min.y&&(c.y=this._viscousLimit(c.y,u.min.y)),c.x>u.max.x&&(c.x=this._viscousLimit(c.x,u.max.x)),c.y>u.max.y&&(c.y=this._viscousLimit(c.y,u.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,u=Math.round(c/2),g=this._initialWorldOffset,C=this._draggable._newPos.x,w=(C-u+g)%c+u-g,P=(C+u+g)%c-u-g,O=Math.abs(w+g)<Math.abs(P+g)?w:P;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=O},_onDragEnd:function(c){var u=this._map,g=u.options,C=!g.inertia||c.noInertia||this._times.length<2;if(u.fire("dragend",c),C)u.fire("moveend");else{this._prunePositions(+new Date);var w=this._lastPos.subtract(this._positions[0]),P=(this._lastTime-this._times[0])/1e3,O=g.easeLinearity,N=w.multiplyBy(O/P),k=N.distanceTo([0,0]),H=Math.min(g.inertiaMaxSpeed,k),Q=N.multiplyBy(H/k),se=H/(g.inertiaDeceleration*O),fe=Q.multiplyBy(-se/2).round();!fe.x&&!fe.y?u.fire("moveend"):(fe=u._limitOffset(fe,u.options.maxBounds),B(function(){u.panBy(fe,{duration:se,easeLinearity:O,noMoveStart:!0,animate:!0})}))}}});ge.addInitHook("addHandler","dragging",An),ge.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Dn=Ge.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),he(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),_e(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var c=document.body,u=document.documentElement,g=c.scrollTop||u.scrollTop,C=c.scrollLeft||u.scrollLeft;this._map._container.focus(),window.scrollTo(C,g)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var u=this._panKeys={},g=this.keyCodes,C,w;for(C=0,w=g.left.length;C<w;C++)u[g.left[C]]=[-1*c,0];for(C=0,w=g.right.length;C<w;C++)u[g.right[C]]=[c,0];for(C=0,w=g.down.length;C<w;C++)u[g.down[C]]=[0,c];for(C=0,w=g.up.length;C<w;C++)u[g.up[C]]=[0,-1*c]},_setZoomDelta:function(c){var u=this._zoomKeys={},g=this.keyCodes,C,w;for(C=0,w=g.zoomIn.length;C<w;C++)u[g.zoomIn[C]]=c;for(C=0,w=g.zoomOut.length;C<w;C++)u[g.zoomOut[C]]=-c},_addHooks:function(){he(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){_e(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var u=c.keyCode,g=this._map,C;if(u in this._panKeys){if(!g._panAnim||!g._panAnim._inProgress)if(C=this._panKeys[u],c.shiftKey&&(C=K(C).multiplyBy(3)),g.options.maxBounds&&(C=g._limitOffset(K(C),g.options.maxBounds)),g.options.worldCopyJump){var w=g.wrapLatLng(g.unproject(g.project(g.getCenter()).add(C)));g.panTo(w)}else g.panBy(C)}else if(u in this._zoomKeys)g.setZoom(g.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[u]);else if(u===27&&g._popup&&g._popup.options.closeOnEscapeKey)g.closePopup();else return;rt(c)}}});ge.addInitHook("addHandler","keyboard",Dn),ge.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var On=Ge.extend({addHooks:function(){he(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){_e(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var u=Qi(c),g=this._map.options.wheelDebounceTime;this._delta+=u,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var C=Math.max(g-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),C),rt(c)},_performZoom:function(){var c=this._map,u=c.getZoom(),g=this._map.options.zoomSnap||0;c._stop();var C=this._delta/(this._map.options.wheelPxPerZoomLevel*4),w=4*Math.log(2/(1+Math.exp(-Math.abs(C))))/Math.LN2,P=g?Math.ceil(w/g)*g:w,O=c._limitZoom(u+(this._delta>0?P:-P))-u;this._delta=0,this._startTime=null,O&&(c.options.scrollWheelZoom==="center"?c.setZoom(u+O):c.setZoomAround(this._lastMousePos,u+O))}});ge.addInitHook("addHandler","scrollWheelZoom",On);var Qs=600;ge.mergeOptions({tapHold:te.touchNative&&te.safari&&te.mobile,tapTolerance:15});var Mn=Ge.extend({addHooks:function(){he(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){_e(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var u=c.touches[0];this._startPos=this._newPos=new W(u.clientX,u.clientY),this._holdTimeout=setTimeout(r(function(){this._cancel(),this._isTapValid()&&(he(document,"touchend",Ae),he(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",u))},this),Qs),he(document,"touchend touchcancel contextmenu",this._cancel,this),he(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){_e(document,"touchend",Ae),_e(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),_e(document,"touchend touchcancel contextmenu",this._cancel,this),_e(document,"touchmove",this._onMove,this)},_onMove:function(c){var u=c.touches[0];this._newPos=new W(u.clientX,u.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,u){var g=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:u.screenX,screenY:u.screenY,clientX:u.clientX,clientY:u.clientY});g._simulated=!0,u.target.dispatchEvent(g)}});ge.addInitHook("addHandler","tapHold",Mn),ge.mergeOptions({touchZoom:te.touch,bounceAtZoomLimits:!0});var xn=Ge.extend({addHooks:function(){pe(this._map._container,"leaflet-touch-zoom"),he(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){be(this._map._container,"leaflet-touch-zoom"),_e(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var u=this._map;if(!(!c.touches||c.touches.length!==2||u._animatingZoom||this._zooming)){var g=u.mouseEventToContainerPoint(c.touches[0]),C=u.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=u.getSize()._divideBy(2),this._startLatLng=u.containerPointToLatLng(this._centerPoint),u.options.touchZoom!=="center"&&(this._pinchStartLatLng=u.containerPointToLatLng(g.add(C)._divideBy(2))),this._startDist=g.distanceTo(C),this._startZoom=u.getZoom(),this._moved=!1,this._zooming=!0,u._stop(),he(document,"touchmove",this._onTouchMove,this),he(document,"touchend touchcancel",this._onTouchEnd,this),Ae(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var u=this._map,g=u.mouseEventToContainerPoint(c.touches[0]),C=u.mouseEventToContainerPoint(c.touches[1]),w=g.distanceTo(C)/this._startDist;if(this._zoom=u.getScaleZoom(w,this._startZoom),!u.options.bounceAtZoomLimits&&(this._zoom<u.getMinZoom()&&w<1||this._zoom>u.getMaxZoom()&&w>1)&&(this._zoom=u._limitZoom(this._zoom)),u.options.touchZoom==="center"){if(this._center=this._startLatLng,w===1)return}else{var P=g._add(C)._divideBy(2)._subtract(this._centerPoint);if(w===1&&P.x===0&&P.y===0)return;this._center=u.unproject(u.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(u._moveStart(!0,!1),this._moved=!0),Y(this._animRequest);var O=r(u._move,u,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(O,this,!0),Ae(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Y(this._animRequest),_e(document,"touchmove",this._onTouchMove,this),_e(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ge.addInitHook("addHandler","touchZoom",xn),ge.BoxZoom=Tn,ge.DoubleClickZoom=Rn,ge.Drag=An,ge.Keyboard=Dn,ge.ScrollWheelZoom=On,ge.TapHold=Mn,ge.TouchZoom=xn,t.Bounds=ue,t.Browser=te,t.CRS=we,t.Canvas=wn,t.Circle=Pi,t.CircleMarker=Bt,t.Class=ee,t.Control=Fe,t.DivIcon=_n,t.DivOverlay=Ve,t.DomEvent=gs,t.DomUtil=ps,t.Draggable=Qe,t.Evented=q,t.FeatureGroup=je,t.GeoJSON=Ke,t.GridLayer=Mt,t.Handler=Ge,t.Icon=ft,t.ImageOverlay=Yt,t.LatLng=oe,t.LatLngBounds=ae,t.Layer=Ie,t.LayerGroup=ht,t.LineUtil=As,t.Map=ge,t.Marker=Wt,t.Mixin=ws,t.Path=Ze,t.Point=W,t.PolyUtil=Ss,t.Polygon=gt,t.Polyline=Ue,t.Popup=qt,t.PosAnimation=Zi,t.Projection=Ds,t.Rectangle=Pn,t.Renderer=Ye,t.SVG=Lt,t.SVGOverlay=Cn,t.TileLayer=vt,t.Tooltip=Xt,t.Transformation=We,t.Util=ne,t.VideoOverlay=vn,t.bind=r,t.bounds=ve,t.canvas=Sn,t.circle=$s,t.circleMarker=Ns,t.control=At,t.divIcon=Us,t.extend=n,t.featureGroup=Ls,t.geoJSON=mn,t.geoJson=Vs,t.gridLayer=Ks,t.icon=Fs,t.imageOverlay=Hs,t.latLng=ie,t.latLngBounds=le,t.layerGroup=xs,t.map=ms,t.marker=Is,t.point=K,t.polygon=Gs,t.polyline=ks,t.popup=zs,t.rectangle=Xs,t.setOptions=b,t.stamp=l,t.svg=En,t.svgOverlay=Bs,t.tileLayer=yn,t.tooltip=js,t.transformation=Ne,t.version=i,t.videoOverlay=Ws;var Zs=window.L;t.noConflict=function(){return window.L=Zs,this},window.L=t})})(leafletSrc,leafletSrc.exports);var leafletSrcExports=leafletSrc.exports;const L$1=getDefaultExportFromCjs(leafletSrcExports);function makeNull(s){return s==null||s===""?null:s}function exists(s,e=!1){return s!=null&&(s!==""||e)}function missing(s){return!exists(s)}function missingOrEmpty(s){return s==null||s.length===0}function toStringOrNull(s){return s!=null&&typeof s.toString=="function"?s.toString():null}function attrToNumber(s){if(s===void 0)return;if(s===null||s==="")return null;if(typeof s=="number")return isNaN(s)?void 0:s;const e=parseInt(s,10);return isNaN(e)?void 0:e}function attrToBoolean(s){if(s!==void 0)return s===null||s===""?!1:typeof s=="boolean"?s:/true/i.test(s)}function attrToString(s){if(!(s==null||s===""))return s}function jsonEquals(s,e){const t=s?JSON.stringify(s):null,i=e?JSON.stringify(e):null;return t===i}function defaultComparator(s,e,t=!1){const i=s==null,n=e==null;if(s&&s.toNumber&&(s=s.toNumber()),e&&e.toNumber&&(e=e.toNumber()),i&&n)return 0;if(i)return-1;if(n)return 1;function o(r,a){return r>a?1:r<a?-1:0}if(typeof s!="string"||!t)return o(s,e);try{return s.localeCompare(e)}catch{return o(s,e)}}function values(s){if(s instanceof Set||s instanceof Map){const e=[];return s.forEach(t=>e.push(t)),e}return Object.values(s)}const GenericUtils=Object.freeze(Object.defineProperty({__proto__:null,attrToBoolean,attrToNumber,attrToString,defaultComparator,exists,jsonEquals,makeNull,missing,missingOrEmpty,toStringOrNull,values},Symbol.toStringTag,{value:"Module"}));class ColumnKeyCreator{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=toStringOrNull(e);let i=0;for(;;){let n;if(e?(n=e,i!==0&&(n+="_"+i)):t?(n=t,i!==0&&(n+="_"+i)):n=i,!this.existingKeys[n])return this.existingKeys[n]=!0,String(n);i++}}}function iterateObject(s,e){if(s!=null){if(Array.isArray(s)){for(let t=0;t<s.length;t++)e(t.toString(),s[t]);return}for(const[t,i]of Object.entries(s))e(t,i)}}function cloneObject(s){const e={},t=Object.keys(s);for(let i=0;i<t.length;i++){const n=t[i],o=s[n];e[n]=o}return e}function deepCloneDefinition(s,e){if(!s)return;const t=s,i={};return Object.keys(t).forEach(n=>{if(e&&e.indexOf(n)>=0)return;const o=t[n];isNonNullObject(o)&&o.constructor===Object?i[n]=deepCloneDefinition(o):i[n]=o}),i}function getAllValuesInObject(s){if(!s)return[];const e=Object;if(typeof e.values=="function")return e.values(s);const t=[];for(const i in s)s.hasOwnProperty(i)&&s.propertyIsEnumerable(i)&&t.push(s[i]);return t}function mergeDeep(s,e,t=!0,i=!1){exists(e)&&iterateObject(e,(n,o)=>{let r=s[n];r!==o&&(i&&r==null&&o!=null&&typeof o=="object"&&o.constructor===Object&&(r={},s[n]=r),isNonNullObject(o)&&isNonNullObject(r)&&!Array.isArray(r)?mergeDeep(r,o,t,i):(t||o!==void 0)&&(s[n]=o))})}function getValueUsingField(s,e,t){if(!e||!s)return;if(!t)return s[e];const i=e.split(".");let n=s;for(let o=0;o<i.length;o++){if(n==null)return;n=n[i[o]]}return n}function removeAllReferences(s,e=[],t){Object.keys(s).forEach(r=>{typeof s[r]=="object"&&!e.includes(r)&&(s[r]=void 0)});const i=Object.getPrototypeOf(s),n={},o=r=>`AG Grid: Grid API function ${r}() cannot be called as the grid has been destroyed.
It is recommended to remove local references to the grid api. Alternatively, check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`;Object.getOwnPropertyNames(i).forEach(r=>{if(typeof i[r]=="function"&&!e.includes(r)){const l=()=>{console.warn(o(r))};n[r]={value:l,writable:!0}}}),Object.defineProperties(s,n)}function isNonNullObject(s){return typeof s=="object"&&s!==null}const ObjectUtils=Object.freeze(Object.defineProperty({__proto__:null,cloneObject,deepCloneDefinition,getAllValuesInObject,getValueUsingField,isNonNullObject,iterateObject,mergeDeep,removeAllReferences},Symbol.toStringTag,{value:"Module"})),doOnceFlags={};function doOnce(s,e){doOnceFlags[e]||(s(),doOnceFlags[e]=!0)}function warnOnce(s){doOnce(()=>console.warn("AG Grid: "+s),s)}function errorOnce(s){doOnce(()=>console.error("AG Grid: "+s),s)}function getFunctionName(s){if(s.name)return s.name;const e=/function\s+([^\(]+)/.exec(s.toString());return e&&e.length===2?e[1].trim():null}function isFunction(s){return!!(s&&s.constructor&&s.call&&s.apply)}function executeInAWhile(s){executeAfter(s,400)}const executeNextVMTurnFuncs=[];let executeNextVMTurnPending=!1;function executeNextVMTurn(s){executeNextVMTurnFuncs.push(s),!executeNextVMTurnPending&&(executeNextVMTurnPending=!0,window.setTimeout(()=>{const e=executeNextVMTurnFuncs.slice();executeNextVMTurnFuncs.length=0,executeNextVMTurnPending=!1,e.forEach(t=>t())},0))}function executeAfter(s,e=0){s.length>0&&window.setTimeout(()=>s.forEach(t=>t()),e)}function debounce(s,e){let t;return function(...i){const n=this;window.clearTimeout(t),t=window.setTimeout(function(){s.apply(n,i)},e)}}function throttle(s,e){let t=0;return function(...i){const n=this,o=new Date().getTime();o-t<e||(t=o,s.apply(n,i))}}function waitUntil(s,e,t=100,i){const n=new Date().getTime();let o=null,r=!1;const a=()=>{const l=new Date().getTime()-n>t;(s()||l)&&(e(),r=!0,o!=null&&(window.clearInterval(o),o=null),l&&i&&console.warn(i))};a(),r||(o=window.setInterval(a,10))}function compose(...s){return e=>s.reduce((t,i)=>i(t),e)}const noop=()=>{},FunctionUtils=Object.freeze(Object.defineProperty({__proto__:null,compose,debounce,doOnce,errorOnce,executeAfter,executeInAWhile,executeNextVMTurn,getFunctionName,isFunction,noop,throttle,waitUntil,warnOnce},Symbol.toStringTag,{value:"Module"}));var ModuleNames;(function(s){s.CommunityCoreModule="@ag-grid-community/core",s.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",s.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",s.CsvExportModule="@ag-grid-community/csv-export",s.EnterpriseCoreModule="@ag-grid-enterprise/core",s.RowGroupingModule="@ag-grid-enterprise/row-grouping",s.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",s.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",s.MenuModule="@ag-grid-enterprise/menu",s.SetFilterModule="@ag-grid-enterprise/set-filter",s.MultiFilterModule="@ag-grid-enterprise/multi-filter",s.StatusBarModule="@ag-grid-enterprise/status-bar",s.SideBarModule="@ag-grid-enterprise/side-bar",s.RangeSelectionModule="@ag-grid-enterprise/range-selection",s.MasterDetailModule="@ag-grid-enterprise/master-detail",s.RichSelectModule="@ag-grid-enterprise/rich-select",s.GridChartsModule="@ag-grid-enterprise/charts",s.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",s.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",s.ExcelExportModule="@ag-grid-enterprise/excel-export",s.ClipboardModule="@ag-grid-enterprise/clipboard",s.SparklinesModule="@ag-grid-enterprise/sparklines",s.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",s.AngularModule="@ag-grid-community/angular",s.ReactModule="@ag-grid-community/react",s.VueModule="@ag-grid-community/vue"})(ModuleNames||(ModuleNames={}));class ModuleRegistry{static register(e){ModuleRegistry.__register(e,!0,void 0)}static registerModules(e){ModuleRegistry.__registerModules(e,!0,void 0)}static __register(e,t,i){ModuleRegistry.runVersionChecks(e),i!==void 0?(ModuleRegistry.areGridScopedModules=!0,ModuleRegistry.gridModulesMap[i]===void 0&&(ModuleRegistry.gridModulesMap[i]={}),ModuleRegistry.gridModulesMap[i][e.moduleName]=e):ModuleRegistry.globalModulesMap[e.moduleName]=e,ModuleRegistry.setModuleBased(t)}static __unRegisterGridModules(e){delete ModuleRegistry.gridModulesMap[e]}static __registerModules(e,t,i){ModuleRegistry.setModuleBased(t),e&&e.forEach(n=>ModuleRegistry.__register(n,t,i))}static isValidModuleVersion(e){const[t,i]=e.version.split(".")||[],[n,o]=ModuleRegistry.currentModuleVersion.split(".")||[];return t===n&&i===o}static runVersionChecks(e){if(ModuleRegistry.currentModuleVersion||(ModuleRegistry.currentModuleVersion=e.version),e.version?ModuleRegistry.isValidModuleVersion(e)||console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${e.moduleName}' is version ${e.version} but the other modules are version ${this.currentModuleVersion}. Please update all modules to the same version.`):console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${e.moduleName}' is incompatible. Please update all modules to the same version.`),e.validate){const t=e.validate();t.isValid||console.error(`AG Grid: ${t.message}`)}}static setModuleBased(e){ModuleRegistry.moduleBased===void 0?ModuleRegistry.moduleBased=e:ModuleRegistry.moduleBased!==e&&doOnce(()=>{console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")},"ModulePackageCheck")}static __setIsBundled(){ModuleRegistry.isBundled=!0}static __assertRegistered(e,t,i){var n;if(this.__isRegistered(e,i))return!0;const o=t+e;let r;if(ModuleRegistry.isBundled)r=`AG Grid: unable to use ${t} as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:
diff --git a/public/build/manifest.json b/public/build/manifest.json
index 73c377764c..ff81cb0796 100644
--- a/public/build/manifest.json
+++ b/public/build/manifest.json
@@ -1,57 +1,57 @@
{
- "_create-empty-split-0cfec852.js": {
- "file": "assets/create-empty-split-0cfec852.js",
+ "_create-empty-split-70d17748.js": {
+ "file": "assets/create-empty-split-70d17748.js",
"imports": [
- "_vendor-0a0b4763.js"
+ "_vendor-291d7a70.js"
]
},
- "_format-money-db0e5105.js": {
- "file": "assets/format-money-db0e5105.js",
+ "_format-money-5a1aa122.js": {
+ "file": "assets/format-money-5a1aa122.js",
"imports": [
- "_vendor-0a0b4763.js"
+ "_vendor-291d7a70.js"
]
},
- "_get-04515a82.js": {
- "file": "assets/get-04515a82.js",
+ "_get-2d864c96.js": {
+ "file": "assets/get-2d864c96.js",
"imports": [
- "_format-money-db0e5105.js"
+ "_format-money-5a1aa122.js",
+ "_vendor-291d7a70.js"
]
},
- "_get-d7bb5fb3.js": {
- "file": "assets/get-d7bb5fb3.js",
+ "_get-316f0281.js": {
+ "file": "assets/get-316f0281.js",
"imports": [
- "_format-money-db0e5105.js"
+ "_format-money-5a1aa122.js"
]
},
- "_get-f12826cc.js": {
- "file": "assets/get-f12826cc.js",
+ "_get-a398221d.js": {
+ "file": "assets/get-a398221d.js",
"imports": [
- "_format-money-db0e5105.js",
- "_vendor-0a0b4763.js"
+ "_format-money-5a1aa122.js"
]
},
- "_parse-downloaded-splits-84d22cdd.js": {
- "file": "assets/parse-downloaded-splits-84d22cdd.js",
+ "_parse-downloaded-splits-ce04c01c.js": {
+ "file": "assets/parse-downloaded-splits-ce04c01c.js",
"imports": [
- "_create-empty-split-0cfec852.js",
- "_vendor-0a0b4763.js"
+ "_create-empty-split-70d17748.js",
+ "_vendor-291d7a70.js"
]
},
- "_put-ade65e7d.js": {
- "file": "assets/put-ade65e7d.js",
+ "_put-02a25c9f.js": {
+ "file": "assets/put-02a25c9f.js",
"imports": [
- "_format-money-db0e5105.js"
+ "_format-money-5a1aa122.js"
]
},
- "_splice-errors-into-transactions-bdbe4899.js": {
- "file": "assets/splice-errors-into-transactions-bdbe4899.js",
+ "_splice-errors-into-transactions-5b51d5fd.js": {
+ "file": "assets/splice-errors-into-transactions-5b51d5fd.js",
"imports": [
- "_format-money-db0e5105.js",
- "_get-d7bb5fb3.js",
- "_vendor-0a0b4763.js"
+ "_format-money-5a1aa122.js",
+ "_get-316f0281.js",
+ "_vendor-291d7a70.js"
]
},
- "_vendor-0a0b4763.js": {
+ "_vendor-291d7a70.js": {
"assets": [
"assets/layers-1dbbe9d0.png",
"assets/layers-2x-066daca8.png",
@@ -60,7 +60,7 @@
"css": [
"assets/vendor-52daf6b6.css"
],
- "file": "assets/vendor-0a0b4763.js"
+ "file": "assets/vendor-291d7a70.js"
},
"grid-ff3-theme.css": {
"file": "assets/grid-ff3-theme-badb0a41.css",
@@ -106,50 +106,50 @@
"css": [
"assets/grid-ff3-theme-badb0a41.css"
],
- "file": "assets/index-12a21fa7.js",
+ "file": "assets/index-fdc173aa.js",
"imports": [
- "_format-money-db0e5105.js",
- "_vendor-0a0b4763.js",
- "_get-f12826cc.js"
+ "_format-money-5a1aa122.js",
+ "_vendor-291d7a70.js",
+ "_get-2d864c96.js"
],
"isEntry": true,
"src": "resources/assets/v2/pages/accounts/index.js"
},
"resources/assets/v2/pages/dashboard/dashboard.js": {
- "file": "assets/dashboard-5dd24f6d.js",
+ "file": "assets/dashboard-39513f31.js",
"imports": [
- "_format-money-db0e5105.js",
- "_vendor-0a0b4763.js",
- "_get-f12826cc.js",
- "_get-04515a82.js",
- "_get-d7bb5fb3.js"
+ "_format-money-5a1aa122.js",
+ "_vendor-291d7a70.js",
+ "_get-2d864c96.js",
+ "_get-a398221d.js",
+ "_get-316f0281.js"
],
"isEntry": true,
"src": "resources/assets/v2/pages/dashboard/dashboard.js"
},
"resources/assets/v2/pages/transactions/create.js": {
- "file": "assets/create-9bb8a4d8.js",
+ "file": "assets/create-b70c5f7e.js",
"imports": [
- "_format-money-db0e5105.js",
- "_create-empty-split-0cfec852.js",
- "_splice-errors-into-transactions-bdbe4899.js",
- "_vendor-0a0b4763.js",
- "_get-d7bb5fb3.js"
+ "_format-money-5a1aa122.js",
+ "_create-empty-split-70d17748.js",
+ "_splice-errors-into-transactions-5b51d5fd.js",
+ "_vendor-291d7a70.js",
+ "_get-316f0281.js"
],
"isEntry": true,
"src": "resources/assets/v2/pages/transactions/create.js"
},
"resources/assets/v2/pages/transactions/edit.js": {
- "file": "assets/edit-40e70481.js",
+ "file": "assets/edit-0146de3c.js",
"imports": [
- "_format-money-db0e5105.js",
- "_get-04515a82.js",
- "_parse-downloaded-splits-84d22cdd.js",
- "_splice-errors-into-transactions-bdbe4899.js",
- "_vendor-0a0b4763.js",
- "_create-empty-split-0cfec852.js",
- "_put-ade65e7d.js",
- "_get-d7bb5fb3.js"
+ "_format-money-5a1aa122.js",
+ "_get-a398221d.js",
+ "_parse-downloaded-splits-ce04c01c.js",
+ "_splice-errors-into-transactions-5b51d5fd.js",
+ "_vendor-291d7a70.js",
+ "_create-empty-split-70d17748.js",
+ "_put-02a25c9f.js",
+ "_get-316f0281.js"
],
"isEntry": true,
"src": "resources/assets/v2/pages/transactions/edit.js"
@@ -158,12 +158,12 @@
"css": [
"assets/grid-ff3-theme-badb0a41.css"
],
- "file": "assets/index-a7622e11.js",
+ "file": "assets/index-80c224c9.js",
"imports": [
- "_format-money-db0e5105.js",
- "_vendor-0a0b4763.js",
- "_put-ade65e7d.js",
- "_get-04515a82.js"
+ "_format-money-5a1aa122.js",
+ "_vendor-291d7a70.js",
+ "_put-02a25c9f.js",
+ "_get-a398221d.js"
],
"isEntry": true,
"src": "resources/assets/v2/pages/transactions/index.js"
@@ -176,13 +176,13 @@
"css": [
"assets/show-8b1429e5.css"
],
- "file": "assets/show-6bc4010b.js",
+ "file": "assets/show-7b497861.js",
"imports": [
- "_format-money-db0e5105.js",
- "_vendor-0a0b4763.js",
- "_get-04515a82.js",
- "_parse-downloaded-splits-84d22cdd.js",
- "_create-empty-split-0cfec852.js"
+ "_format-money-5a1aa122.js",
+ "_vendor-291d7a70.js",
+ "_get-a398221d.js",
+ "_parse-downloaded-splits-ce04c01c.js",
+ "_create-empty-split-70d17748.js"
],
"isEntry": true,
"src": "resources/assets/v2/pages/transactions/show.js"
diff --git a/public/v2/i18n/bg.json b/public/v2/i18n/bg.json
new file mode 100644
index 0000000000..2d47da5022
--- /dev/null
+++ b/public/v2/i18n/bg.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "bg",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u041f\u043e\u0445\u0430\u0440\u0447\u0435\u043d\u0438",
+ "left": "\u041e\u0441\u0442\u0430\u043d\u0430\u043b\u0438",
+ "paid": "\u041f\u043b\u0430\u0442\u0435\u043d\u0438",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u041d\u0435\u043f\u043b\u0430\u0442\u0435\u043d\u0438",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Suscripciones en el grupo \"%{title}\"",
+ "subscr_expected_x_times": "Se debe pagar %{amount} %{times} veces este periodo",
+ "overspent": "\u041f\u0440\u0435\u0440\u0430\u0437\u0445\u043e\u0434",
+ "money_flowing_in": "\u0412\u0445\u043e\u0434\u044f\u0449\u0438",
+ "money_flowing_out": "\u0418\u0437\u0445\u043e\u0434\u044f\u0449\u0438",
+ "category": "\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u041f\u0440\u0435\u0445\u0432\u044a\u0440\u043b\u044f\u043d\u0435",
+ "Withdrawal": "\u0422\u0435\u0433\u043b\u0435\u043d\u0435",
+ "Deposit": "\u0414\u0435\u043f\u043e\u0437\u0438\u0442",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "\u0411\u044e\u0434\u0436\u0435\u0442",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\u0414\u044a\u043b\u0433",
+ "account_type_Loan": "\u0417\u0430\u0435\u043c",
+ "account_type_Mortgage": "\u0418\u043f\u043e\u0442\u0435\u043a\u0430"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/bg_BG.json b/public/v2/i18n/bg_BG.json
new file mode 100644
index 0000000000..2d47da5022
--- /dev/null
+++ b/public/v2/i18n/bg_BG.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "bg",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u041f\u043e\u0445\u0430\u0440\u0447\u0435\u043d\u0438",
+ "left": "\u041e\u0441\u0442\u0430\u043d\u0430\u043b\u0438",
+ "paid": "\u041f\u043b\u0430\u0442\u0435\u043d\u0438",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u041d\u0435\u043f\u043b\u0430\u0442\u0435\u043d\u0438",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Suscripciones en el grupo \"%{title}\"",
+ "subscr_expected_x_times": "Se debe pagar %{amount} %{times} veces este periodo",
+ "overspent": "\u041f\u0440\u0435\u0440\u0430\u0437\u0445\u043e\u0434",
+ "money_flowing_in": "\u0412\u0445\u043e\u0434\u044f\u0449\u0438",
+ "money_flowing_out": "\u0418\u0437\u0445\u043e\u0434\u044f\u0449\u0438",
+ "category": "\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u041f\u0440\u0435\u0445\u0432\u044a\u0440\u043b\u044f\u043d\u0435",
+ "Withdrawal": "\u0422\u0435\u0433\u043b\u0435\u043d\u0435",
+ "Deposit": "\u0414\u0435\u043f\u043e\u0437\u0438\u0442",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "\u0411\u044e\u0434\u0436\u0435\u0442",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\u0414\u044a\u043b\u0433",
+ "account_type_Loan": "\u0417\u0430\u0435\u043c",
+ "account_type_Mortgage": "\u0418\u043f\u043e\u0442\u0435\u043a\u0430"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ca.json b/public/v2/i18n/ca.json
new file mode 100644
index 0000000000..7dcddf4e9d
--- /dev/null
+++ b/public/v2/i18n/ca.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ca",
+ "date_time_fns": "D [de\/d'] MMMM yyyy [a les] HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Gastat",
+ "left": "Queda",
+ "paid": "Pagat",
+ "errors_submission_v2": "Hi ha hagut un error amb el teu enviament. Per favor, comprova els seg\u00fcents errors: %{errorMessage}",
+ "unpaid": "Pendent de pagament",
+ "default_group_title_name_plain": "no agrupades",
+ "subscriptions_in_group": "Subscripcions al grup \"%{title}\"",
+ "subscr_expected_x_times": "S'espera que pagues %{amount} %{times} vegades aquest per\u00edode",
+ "overspent": "Gastat de m\u00e9s",
+ "money_flowing_in": "Entrant",
+ "money_flowing_out": "Eixint",
+ "category": "Categoria",
+ "unknown_category_plain": "Sense categoria",
+ "all_money": "Tots els teus diners",
+ "unknown_source_plain": "Compte font desconegut",
+ "unknown_dest_plain": "Compte de dest\u00ed desconegut",
+ "unknown_any_plain": "Compte desconegut",
+ "unknown_budget_plain": "Cap pressupost",
+ "stored_journal_js": "S'ha creat la transacci\u00f3 \"%{description}\" correctament",
+ "wait_loading_transaction": "Per favor, espera que carregui el formulari",
+ "nothing_found": "(no s'ha trobat res)",
+ "wait_loading_data": "Per favor, espera que carregui la teva informaci\u00f3...",
+ "Transfer": "Transfer\u00e8ncia",
+ "Withdrawal": "Retirada",
+ "Deposit": "Ingr\u00e9s",
+ "expense_account": "Compte de despeses",
+ "revenue_account": "Compte d'ingressos",
+ "budget": "Pressupost",
+ "account_type_Asset account": "Compte d'actius",
+ "account_type_Expense account": "Compte de despeses",
+ "account_type_Revenue account": "Compte d'ingressos",
+ "account_type_Debt": "Deute",
+ "account_type_Loan": "Cr\u00e8dit",
+ "account_type_Mortgage": "Hipoteca"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ca_ES.json b/public/v2/i18n/ca_ES.json
new file mode 100644
index 0000000000..7dcddf4e9d
--- /dev/null
+++ b/public/v2/i18n/ca_ES.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ca",
+ "date_time_fns": "D [de\/d'] MMMM yyyy [a les] HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Gastat",
+ "left": "Queda",
+ "paid": "Pagat",
+ "errors_submission_v2": "Hi ha hagut un error amb el teu enviament. Per favor, comprova els seg\u00fcents errors: %{errorMessage}",
+ "unpaid": "Pendent de pagament",
+ "default_group_title_name_plain": "no agrupades",
+ "subscriptions_in_group": "Subscripcions al grup \"%{title}\"",
+ "subscr_expected_x_times": "S'espera que pagues %{amount} %{times} vegades aquest per\u00edode",
+ "overspent": "Gastat de m\u00e9s",
+ "money_flowing_in": "Entrant",
+ "money_flowing_out": "Eixint",
+ "category": "Categoria",
+ "unknown_category_plain": "Sense categoria",
+ "all_money": "Tots els teus diners",
+ "unknown_source_plain": "Compte font desconegut",
+ "unknown_dest_plain": "Compte de dest\u00ed desconegut",
+ "unknown_any_plain": "Compte desconegut",
+ "unknown_budget_plain": "Cap pressupost",
+ "stored_journal_js": "S'ha creat la transacci\u00f3 \"%{description}\" correctament",
+ "wait_loading_transaction": "Per favor, espera que carregui el formulari",
+ "nothing_found": "(no s'ha trobat res)",
+ "wait_loading_data": "Per favor, espera que carregui la teva informaci\u00f3...",
+ "Transfer": "Transfer\u00e8ncia",
+ "Withdrawal": "Retirada",
+ "Deposit": "Ingr\u00e9s",
+ "expense_account": "Compte de despeses",
+ "revenue_account": "Compte d'ingressos",
+ "budget": "Pressupost",
+ "account_type_Asset account": "Compte d'actius",
+ "account_type_Expense account": "Compte de despeses",
+ "account_type_Revenue account": "Compte d'ingressos",
+ "account_type_Debt": "Deute",
+ "account_type_Loan": "Cr\u00e8dit",
+ "account_type_Mortgage": "Hipoteca"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/cs.json b/public/v2/i18n/cs.json
new file mode 100644
index 0000000000..ad097def54
--- /dev/null
+++ b/public/v2/i18n/cs.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "cs",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Utraceno",
+ "left": "Zb\u00fdv\u00e1",
+ "paid": "Zaplaceno",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Nezaplaceno",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "P\u0159ekro\u010deny v\u00fddaje",
+ "money_flowing_in": "Vstup",
+ "money_flowing_out": "V\u00fdstup",
+ "category": "Kategorie",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "P\u0159evod",
+ "Withdrawal": "V\u00fdb\u011br",
+ "Deposit": "Vklad",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Rozpo\u010det",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Dluh",
+ "account_type_Loan": "P\u016fj\u010dka",
+ "account_type_Mortgage": "Hypot\u00e9ka"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/cs_CZ.json b/public/v2/i18n/cs_CZ.json
new file mode 100644
index 0000000000..ad097def54
--- /dev/null
+++ b/public/v2/i18n/cs_CZ.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "cs",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Utraceno",
+ "left": "Zb\u00fdv\u00e1",
+ "paid": "Zaplaceno",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Nezaplaceno",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "P\u0159ekro\u010deny v\u00fddaje",
+ "money_flowing_in": "Vstup",
+ "money_flowing_out": "V\u00fdstup",
+ "category": "Kategorie",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "P\u0159evod",
+ "Withdrawal": "V\u00fdb\u011br",
+ "Deposit": "Vklad",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Rozpo\u010det",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Dluh",
+ "account_type_Loan": "P\u016fj\u010dka",
+ "account_type_Mortgage": "Hypot\u00e9ka"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/da.json b/public/v2/i18n/da.json
new file mode 100644
index 0000000000..27fd84c6b2
--- /dev/null
+++ b/public/v2/i18n/da.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "da",
+ "date_time_fns": "MMMM g\u00f8r, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spent",
+ "left": "Left",
+ "paid": "Paid",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Ubetalt",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Ud",
+ "category": "Kategori",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Overf\u00f8rsel",
+ "Withdrawal": "H\u00e6vet",
+ "Deposit": "Indbetaling",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "G\u00e6ld",
+ "account_type_Loan": "L\u00e5n",
+ "account_type_Mortgage": "Pant"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/da_DK.json b/public/v2/i18n/da_DK.json
new file mode 100644
index 0000000000..27fd84c6b2
--- /dev/null
+++ b/public/v2/i18n/da_DK.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "da",
+ "date_time_fns": "MMMM g\u00f8r, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spent",
+ "left": "Left",
+ "paid": "Paid",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Ubetalt",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Ud",
+ "category": "Kategori",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Overf\u00f8rsel",
+ "Withdrawal": "H\u00e6vet",
+ "Deposit": "Indbetaling",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "G\u00e6ld",
+ "account_type_Loan": "L\u00e5n",
+ "account_type_Mortgage": "Pant"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/de.json b/public/v2/i18n/de.json
new file mode 100644
index 0000000000..1a352d6af4
--- /dev/null
+++ b/public/v2/i18n/de.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "de",
+ "date_time_fns": "dd. MMM. yyyy um HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Ausgegeben",
+ "left": "\u00dcbrig",
+ "paid": "Bezahlt",
+ "errors_submission_v2": "Bei Ihren Eingaben stimmt etwas nicht. Bitte \u00fcberpr\u00fcfen Sie die nachfolgenden Fehler: %{errorMessage}",
+ "unpaid": "Unbezahlt",
+ "default_group_title_name_plain": "ungruppiert",
+ "subscriptions_in_group": "Abonnements in Gruppe \"%{title}\"",
+ "subscr_expected_x_times": "Die Zahlung von %{amount} wird in diesem Zeitraum %{times}-mal erwartet",
+ "overspent": "Zuviel ausgegeben",
+ "money_flowing_in": "Eingehend",
+ "money_flowing_out": "Ausgehend",
+ "category": "Kategorie",
+ "unknown_category_plain": "Keine Kategorie",
+ "all_money": "All Ihr Geld",
+ "unknown_source_plain": "Unbekanntes Quellkonto",
+ "unknown_dest_plain": "Unbekanntes Zielkonto",
+ "unknown_any_plain": "Unbekanntes Konto",
+ "unknown_budget_plain": "Kein Budget",
+ "stored_journal_js": "Neue Buchung \u201e%{description}\u201d erfolgreich erstellt",
+ "wait_loading_transaction": "Bitte warten Sie, bis das Formular geladen wurde",
+ "nothing_found": "(nichts gefunden)",
+ "wait_loading_data": "Bitte warten Sie, bis Ihre Informationen geladen wurden \u2026",
+ "Transfer": "Umbuchung",
+ "Withdrawal": "Ausgabe",
+ "Deposit": "Einnahme",
+ "expense_account": "Ausgabenkonto",
+ "revenue_account": "Einnahmekonto",
+ "budget": "Budget",
+ "account_type_Asset account": "Bestandskonto",
+ "account_type_Expense account": "Ausgabenkonto",
+ "account_type_Revenue account": "Einnahmenkonto",
+ "account_type_Debt": "Schuld",
+ "account_type_Loan": "Darlehen",
+ "account_type_Mortgage": "Hypothek"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/de_DE.json b/public/v2/i18n/de_DE.json
new file mode 100644
index 0000000000..1a352d6af4
--- /dev/null
+++ b/public/v2/i18n/de_DE.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "de",
+ "date_time_fns": "dd. MMM. yyyy um HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Ausgegeben",
+ "left": "\u00dcbrig",
+ "paid": "Bezahlt",
+ "errors_submission_v2": "Bei Ihren Eingaben stimmt etwas nicht. Bitte \u00fcberpr\u00fcfen Sie die nachfolgenden Fehler: %{errorMessage}",
+ "unpaid": "Unbezahlt",
+ "default_group_title_name_plain": "ungruppiert",
+ "subscriptions_in_group": "Abonnements in Gruppe \"%{title}\"",
+ "subscr_expected_x_times": "Die Zahlung von %{amount} wird in diesem Zeitraum %{times}-mal erwartet",
+ "overspent": "Zuviel ausgegeben",
+ "money_flowing_in": "Eingehend",
+ "money_flowing_out": "Ausgehend",
+ "category": "Kategorie",
+ "unknown_category_plain": "Keine Kategorie",
+ "all_money": "All Ihr Geld",
+ "unknown_source_plain": "Unbekanntes Quellkonto",
+ "unknown_dest_plain": "Unbekanntes Zielkonto",
+ "unknown_any_plain": "Unbekanntes Konto",
+ "unknown_budget_plain": "Kein Budget",
+ "stored_journal_js": "Neue Buchung \u201e%{description}\u201d erfolgreich erstellt",
+ "wait_loading_transaction": "Bitte warten Sie, bis das Formular geladen wurde",
+ "nothing_found": "(nichts gefunden)",
+ "wait_loading_data": "Bitte warten Sie, bis Ihre Informationen geladen wurden \u2026",
+ "Transfer": "Umbuchung",
+ "Withdrawal": "Ausgabe",
+ "Deposit": "Einnahme",
+ "expense_account": "Ausgabenkonto",
+ "revenue_account": "Einnahmekonto",
+ "budget": "Budget",
+ "account_type_Asset account": "Bestandskonto",
+ "account_type_Expense account": "Ausgabenkonto",
+ "account_type_Revenue account": "Einnahmenkonto",
+ "account_type_Debt": "Schuld",
+ "account_type_Loan": "Darlehen",
+ "account_type_Mortgage": "Hypothek"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/el.json b/public/v2/i18n/el.json
new file mode 100644
index 0000000000..641946b60b
--- /dev/null
+++ b/public/v2/i18n/el.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "el",
+ "date_time_fns": "do MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u0394\u03b1\u03c0\u03b1\u03bd\u03ae\u03b8\u03b7\u03ba\u03b1\u03bd",
+ "left": "\u0391\u03c0\u03bf\u03bc\u03ad\u03bd\u03bf\u03c5\u03bd",
+ "paid": "\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ad\u03bd\u03bf",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u0391\u03c0\u03bb\u03ae\u03c1\u03c9\u03c4\u03bf",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "\u03a5\u03c0\u03ad\u03c1\u03b2\u03b1\u03c3\u03b7 \u03c0\u03c1\u03bf\u03cb\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03bc\u03ce\u03bd",
+ "money_flowing_in": "\u0395\u03b9\u03c3\u03c1\u03bf\u03ad\u03c2",
+ "money_flowing_out": "\u0395\u03ba\u03c1\u03bf\u03ad\u03c2",
+ "category": "\u039a\u03b1\u03c4\u03b7\u03b3\u03bf\u03c1\u03af\u03b1",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "\u0394\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03ae\u03b8\u03b7\u03ba\u03b5 \u03b5\u03c0\u03b9\u03c4\u03c5\u03c7\u03ce\u03c2 \u03b7 \u03bd\u03ad\u03b1 \u03c3\u03c5\u03bd\u03b1\u03bb\u03bb\u03b1\u03b3\u03ae \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u039c\u03b5\u03c4\u03b1\u03c6\u03bf\u03c1\u03ac",
+ "Withdrawal": "\u0391\u03bd\u03ac\u03bb\u03b7\u03c8\u03b7",
+ "Deposit": "\u039a\u03b1\u03c4\u03ac\u03b8\u03b5\u03c3\u03b7",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "\u03a0\u03c1\u03bf\u03cb\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03bc\u03cc\u03c2",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\u03a7\u03c1\u03ad\u03bf\u03c2",
+ "account_type_Loan": "\u0394\u03ac\u03bd\u03b5\u03b9\u03bf",
+ "account_type_Mortgage": "\u03a5\u03c0\u03bf\u03b8\u03ae\u03ba\u03b7"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/el_GR.json b/public/v2/i18n/el_GR.json
new file mode 100644
index 0000000000..641946b60b
--- /dev/null
+++ b/public/v2/i18n/el_GR.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "el",
+ "date_time_fns": "do MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u0394\u03b1\u03c0\u03b1\u03bd\u03ae\u03b8\u03b7\u03ba\u03b1\u03bd",
+ "left": "\u0391\u03c0\u03bf\u03bc\u03ad\u03bd\u03bf\u03c5\u03bd",
+ "paid": "\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ad\u03bd\u03bf",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u0391\u03c0\u03bb\u03ae\u03c1\u03c9\u03c4\u03bf",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "\u03a5\u03c0\u03ad\u03c1\u03b2\u03b1\u03c3\u03b7 \u03c0\u03c1\u03bf\u03cb\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03bc\u03ce\u03bd",
+ "money_flowing_in": "\u0395\u03b9\u03c3\u03c1\u03bf\u03ad\u03c2",
+ "money_flowing_out": "\u0395\u03ba\u03c1\u03bf\u03ad\u03c2",
+ "category": "\u039a\u03b1\u03c4\u03b7\u03b3\u03bf\u03c1\u03af\u03b1",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "\u0394\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03ae\u03b8\u03b7\u03ba\u03b5 \u03b5\u03c0\u03b9\u03c4\u03c5\u03c7\u03ce\u03c2 \u03b7 \u03bd\u03ad\u03b1 \u03c3\u03c5\u03bd\u03b1\u03bb\u03bb\u03b1\u03b3\u03ae \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u039c\u03b5\u03c4\u03b1\u03c6\u03bf\u03c1\u03ac",
+ "Withdrawal": "\u0391\u03bd\u03ac\u03bb\u03b7\u03c8\u03b7",
+ "Deposit": "\u039a\u03b1\u03c4\u03ac\u03b8\u03b5\u03c3\u03b7",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "\u03a0\u03c1\u03bf\u03cb\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03bc\u03cc\u03c2",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\u03a7\u03c1\u03ad\u03bf\u03c2",
+ "account_type_Loan": "\u0394\u03ac\u03bd\u03b5\u03b9\u03bf",
+ "account_type_Mortgage": "\u03a5\u03c0\u03bf\u03b8\u03ae\u03ba\u03b7"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/en-gb.json b/public/v2/i18n/en-gb.json
new file mode 100644
index 0000000000..d3c121ea11
--- /dev/null
+++ b/public/v2/i18n/en-gb.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "en-gb",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spent",
+ "left": "Left",
+ "paid": "Paid",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Unpaid",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Out",
+ "category": "Category",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Withdrawal",
+ "Deposit": "Deposit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Debt",
+ "account_type_Loan": "Loan",
+ "account_type_Mortgage": "Mortgage"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/en.json b/public/v2/i18n/en.json
new file mode 100644
index 0000000000..7f51e4210c
--- /dev/null
+++ b/public/v2/i18n/en.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "en",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spent",
+ "left": "Left",
+ "paid": "Paid",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Unpaid",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Out",
+ "category": "Category",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Withdrawal",
+ "Deposit": "Deposit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Debt",
+ "account_type_Loan": "Loan",
+ "account_type_Mortgage": "Mortgage"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/en_GB.json b/public/v2/i18n/en_GB.json
new file mode 100644
index 0000000000..d3c121ea11
--- /dev/null
+++ b/public/v2/i18n/en_GB.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "en-gb",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spent",
+ "left": "Left",
+ "paid": "Paid",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Unpaid",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Out",
+ "category": "Category",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Withdrawal",
+ "Deposit": "Deposit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Debt",
+ "account_type_Loan": "Loan",
+ "account_type_Mortgage": "Mortgage"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/en_US.json b/public/v2/i18n/en_US.json
new file mode 100644
index 0000000000..7f51e4210c
--- /dev/null
+++ b/public/v2/i18n/en_US.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "en",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spent",
+ "left": "Left",
+ "paid": "Paid",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Unpaid",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Out",
+ "category": "Category",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Withdrawal",
+ "Deposit": "Deposit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Debt",
+ "account_type_Loan": "Loan",
+ "account_type_Mortgage": "Mortgage"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/es.json b/public/v2/i18n/es.json
new file mode 100644
index 0000000000..22c3223846
--- /dev/null
+++ b/public/v2/i18n/es.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "es",
+ "date_time_fns": "El MMMM hacer, yyyy a las HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Gastado",
+ "left": "Disponible",
+ "paid": "Pagado",
+ "errors_submission_v2": "Hubo un problema con su env\u00edo. Por favor, compruebe los siguientes errores: %{errorMessage}",
+ "unpaid": "No pagado",
+ "default_group_title_name_plain": "sin agrupar",
+ "subscriptions_in_group": "Suscripciones en el grupo \"%{title}\"",
+ "subscr_expected_x_times": "Se espera pagar %{amount} %{times} veces este periodo",
+ "overspent": "Sobrepasadas",
+ "money_flowing_in": "Entrada",
+ "money_flowing_out": "Salida",
+ "category": "Categoria",
+ "unknown_category_plain": "Sin categor\u00eda",
+ "all_money": "Todo tu dinero",
+ "unknown_source_plain": "Cuenta origen desconocida",
+ "unknown_dest_plain": "Direcci\u00f3n de destino desconocida",
+ "unknown_any_plain": "Cuenta desconocida",
+ "unknown_budget_plain": "Sin presupuesto",
+ "stored_journal_js": "Nueva transacci\u00f3n creada con \u00e9xito \"%{description}\"",
+ "wait_loading_transaction": "Por favor, espere a que se cargue el formulario",
+ "nothing_found": "(no se encontr\u00f3 nada)",
+ "wait_loading_data": "Por favor, espere a que su informaci\u00f3n se cargue...",
+ "Transfer": "Transferencia",
+ "Withdrawal": "Gasto",
+ "Deposit": "Ingreso",
+ "expense_account": "Cuenta de gastos",
+ "revenue_account": "Cuenta de ingresos",
+ "budget": "Presupuesto",
+ "account_type_Asset account": "Cuenta de activos",
+ "account_type_Expense account": "Cuenta de gastos",
+ "account_type_Revenue account": "Cuenta de ingresos",
+ "account_type_Debt": "Deuda",
+ "account_type_Loan": "Pr\u00e9stamo",
+ "account_type_Mortgage": "Hipoteca"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/es_ES.json b/public/v2/i18n/es_ES.json
new file mode 100644
index 0000000000..22c3223846
--- /dev/null
+++ b/public/v2/i18n/es_ES.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "es",
+ "date_time_fns": "El MMMM hacer, yyyy a las HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Gastado",
+ "left": "Disponible",
+ "paid": "Pagado",
+ "errors_submission_v2": "Hubo un problema con su env\u00edo. Por favor, compruebe los siguientes errores: %{errorMessage}",
+ "unpaid": "No pagado",
+ "default_group_title_name_plain": "sin agrupar",
+ "subscriptions_in_group": "Suscripciones en el grupo \"%{title}\"",
+ "subscr_expected_x_times": "Se espera pagar %{amount} %{times} veces este periodo",
+ "overspent": "Sobrepasadas",
+ "money_flowing_in": "Entrada",
+ "money_flowing_out": "Salida",
+ "category": "Categoria",
+ "unknown_category_plain": "Sin categor\u00eda",
+ "all_money": "Todo tu dinero",
+ "unknown_source_plain": "Cuenta origen desconocida",
+ "unknown_dest_plain": "Direcci\u00f3n de destino desconocida",
+ "unknown_any_plain": "Cuenta desconocida",
+ "unknown_budget_plain": "Sin presupuesto",
+ "stored_journal_js": "Nueva transacci\u00f3n creada con \u00e9xito \"%{description}\"",
+ "wait_loading_transaction": "Por favor, espere a que se cargue el formulario",
+ "nothing_found": "(no se encontr\u00f3 nada)",
+ "wait_loading_data": "Por favor, espere a que su informaci\u00f3n se cargue...",
+ "Transfer": "Transferencia",
+ "Withdrawal": "Gasto",
+ "Deposit": "Ingreso",
+ "expense_account": "Cuenta de gastos",
+ "revenue_account": "Cuenta de ingresos",
+ "budget": "Presupuesto",
+ "account_type_Asset account": "Cuenta de activos",
+ "account_type_Expense account": "Cuenta de gastos",
+ "account_type_Revenue account": "Cuenta de ingresos",
+ "account_type_Debt": "Deuda",
+ "account_type_Loan": "Pr\u00e9stamo",
+ "account_type_Mortgage": "Hipoteca"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/fi.json b/public/v2/i18n/fi.json
new file mode 100644
index 0000000000..63bf10229a
--- /dev/null
+++ b/public/v2/i18n/fi.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "fi",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "K\u00e4ytetty",
+ "left": "J\u00e4ljell\u00e4",
+ "paid": "Maksettu",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Maksamatta",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Varojen ylitys",
+ "money_flowing_in": "Sis\u00e4\u00e4n",
+ "money_flowing_out": "Ulos",
+ "category": "Kategoria",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Siirto",
+ "Withdrawal": "Nosto",
+ "Deposit": "Talletus",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budjetti",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Velka",
+ "account_type_Loan": "Laina",
+ "account_type_Mortgage": "Kiinnelaina"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/fi_FI.json b/public/v2/i18n/fi_FI.json
new file mode 100644
index 0000000000..63bf10229a
--- /dev/null
+++ b/public/v2/i18n/fi_FI.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "fi",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "K\u00e4ytetty",
+ "left": "J\u00e4ljell\u00e4",
+ "paid": "Maksettu",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Maksamatta",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Varojen ylitys",
+ "money_flowing_in": "Sis\u00e4\u00e4n",
+ "money_flowing_out": "Ulos",
+ "category": "Kategoria",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Siirto",
+ "Withdrawal": "Nosto",
+ "Deposit": "Talletus",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budjetti",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Velka",
+ "account_type_Loan": "Laina",
+ "account_type_Mortgage": "Kiinnelaina"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/fr.json b/public/v2/i18n/fr.json
new file mode 100644
index 0000000000..107426ba50
--- /dev/null
+++ b/public/v2/i18n/fr.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "fr",
+ "date_time_fns": "do MMMM, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "D\u00e9pens\u00e9",
+ "left": "Reste",
+ "paid": "Pay\u00e9",
+ "errors_submission_v2": "Certaines informations ne sont pas correctes dans votre formulaire. Veuillez v\u00e9rifier les erreurs ci-dessous : %{errorMessage}",
+ "unpaid": "Impay\u00e9",
+ "default_group_title_name_plain": "non group\u00e9",
+ "subscriptions_in_group": "Abonnements dans le groupe \"%{title}\"",
+ "subscr_expected_x_times": "%{amount} \u00e0 payer %{times} fois cette p\u00e9riode",
+ "overspent": "Trop d\u00e9pens\u00e9",
+ "money_flowing_in": "Entr\u00e9e",
+ "money_flowing_out": "Sortie",
+ "category": "Cat\u00e9gorie",
+ "unknown_category_plain": "Sans cat\u00e9gorie",
+ "all_money": "Tout votre argent",
+ "unknown_source_plain": "Compte source inconnu",
+ "unknown_dest_plain": "Compte de destination inconnu",
+ "unknown_any_plain": "Compte inconnu",
+ "unknown_budget_plain": "Pas de budget",
+ "stored_journal_js": "Op\u00e9ration \"%{description}\" cr\u00e9\u00e9e avec succ\u00e8s",
+ "wait_loading_transaction": "Veuillez patienter pendant le chargement du formulaire",
+ "nothing_found": "(aucun r\u00e9sultat)",
+ "wait_loading_data": "Veuillez attendre que vos informations soient charg\u00e9es...",
+ "Transfer": "Transfert",
+ "Withdrawal": "D\u00e9pense",
+ "Deposit": "D\u00e9p\u00f4t",
+ "expense_account": "Compte de d\u00e9penses",
+ "revenue_account": "Compte de recettes",
+ "budget": "Budget",
+ "account_type_Asset account": "Compte d\u2019actif",
+ "account_type_Expense account": "Compte de d\u00e9penses",
+ "account_type_Revenue account": "Compte de recettes",
+ "account_type_Debt": "Dette",
+ "account_type_Loan": "Pr\u00eat",
+ "account_type_Mortgage": "Pr\u00eat hypoth\u00e9caire"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/fr_FR.json b/public/v2/i18n/fr_FR.json
new file mode 100644
index 0000000000..107426ba50
--- /dev/null
+++ b/public/v2/i18n/fr_FR.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "fr",
+ "date_time_fns": "do MMMM, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "D\u00e9pens\u00e9",
+ "left": "Reste",
+ "paid": "Pay\u00e9",
+ "errors_submission_v2": "Certaines informations ne sont pas correctes dans votre formulaire. Veuillez v\u00e9rifier les erreurs ci-dessous : %{errorMessage}",
+ "unpaid": "Impay\u00e9",
+ "default_group_title_name_plain": "non group\u00e9",
+ "subscriptions_in_group": "Abonnements dans le groupe \"%{title}\"",
+ "subscr_expected_x_times": "%{amount} \u00e0 payer %{times} fois cette p\u00e9riode",
+ "overspent": "Trop d\u00e9pens\u00e9",
+ "money_flowing_in": "Entr\u00e9e",
+ "money_flowing_out": "Sortie",
+ "category": "Cat\u00e9gorie",
+ "unknown_category_plain": "Sans cat\u00e9gorie",
+ "all_money": "Tout votre argent",
+ "unknown_source_plain": "Compte source inconnu",
+ "unknown_dest_plain": "Compte de destination inconnu",
+ "unknown_any_plain": "Compte inconnu",
+ "unknown_budget_plain": "Pas de budget",
+ "stored_journal_js": "Op\u00e9ration \"%{description}\" cr\u00e9\u00e9e avec succ\u00e8s",
+ "wait_loading_transaction": "Veuillez patienter pendant le chargement du formulaire",
+ "nothing_found": "(aucun r\u00e9sultat)",
+ "wait_loading_data": "Veuillez attendre que vos informations soient charg\u00e9es...",
+ "Transfer": "Transfert",
+ "Withdrawal": "D\u00e9pense",
+ "Deposit": "D\u00e9p\u00f4t",
+ "expense_account": "Compte de d\u00e9penses",
+ "revenue_account": "Compte de recettes",
+ "budget": "Budget",
+ "account_type_Asset account": "Compte d\u2019actif",
+ "account_type_Expense account": "Compte de d\u00e9penses",
+ "account_type_Revenue account": "Compte de recettes",
+ "account_type_Debt": "Dette",
+ "account_type_Loan": "Pr\u00eat",
+ "account_type_Mortgage": "Pr\u00eat hypoth\u00e9caire"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/hu.json b/public/v2/i18n/hu.json
new file mode 100644
index 0000000000..58bdb5c279
--- /dev/null
+++ b/public/v2/i18n/hu.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "hu",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Elk\u00f6lt\u00f6tt",
+ "left": "Maradv\u00e1ny",
+ "paid": "Kifizetve",
+ "errors_submission_v2": "Hiba t\u00f6rt\u00e9nt a bek\u00fcld\u00e9s sor\u00e1n. K\u00e9rlek jav\u00edtsd az al\u00e1bbi hib\u00e1kat: %{errorMessage}",
+ "unpaid": "Nincs fizetve",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "T\u00falk\u00f6lt\u00f6tt",
+ "money_flowing_in": "Be",
+ "money_flowing_out": "Ki",
+ "category": "Kateg\u00f3ria",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "K\u00e9rlek v\u00e1rj az \u0171rlap bet\u00f6lt\u00e9s\u00e9ig",
+ "nothing_found": "(nincs tal\u00e1lat)",
+ "wait_loading_data": "K\u00e9rlek v\u00e1rj am\u00edg bet\u00f6ltj\u00fck az adatokat...",
+ "Transfer": "\u00c1tvezet\u00e9s",
+ "Withdrawal": "K\u00f6lts\u00e9g",
+ "Deposit": "Bev\u00e9tel",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "K\u00f6lts\u00e9gkeret",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Ad\u00f3ss\u00e1g",
+ "account_type_Loan": "Hitel",
+ "account_type_Mortgage": "Jelz\u00e1log"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/hu_HU.json b/public/v2/i18n/hu_HU.json
new file mode 100644
index 0000000000..58bdb5c279
--- /dev/null
+++ b/public/v2/i18n/hu_HU.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "hu",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Elk\u00f6lt\u00f6tt",
+ "left": "Maradv\u00e1ny",
+ "paid": "Kifizetve",
+ "errors_submission_v2": "Hiba t\u00f6rt\u00e9nt a bek\u00fcld\u00e9s sor\u00e1n. K\u00e9rlek jav\u00edtsd az al\u00e1bbi hib\u00e1kat: %{errorMessage}",
+ "unpaid": "Nincs fizetve",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "T\u00falk\u00f6lt\u00f6tt",
+ "money_flowing_in": "Be",
+ "money_flowing_out": "Ki",
+ "category": "Kateg\u00f3ria",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "K\u00e9rlek v\u00e1rj az \u0171rlap bet\u00f6lt\u00e9s\u00e9ig",
+ "nothing_found": "(nincs tal\u00e1lat)",
+ "wait_loading_data": "K\u00e9rlek v\u00e1rj am\u00edg bet\u00f6ltj\u00fck az adatokat...",
+ "Transfer": "\u00c1tvezet\u00e9s",
+ "Withdrawal": "K\u00f6lts\u00e9g",
+ "Deposit": "Bev\u00e9tel",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "K\u00f6lts\u00e9gkeret",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Ad\u00f3ss\u00e1g",
+ "account_type_Loan": "Hitel",
+ "account_type_Mortgage": "Jelz\u00e1log"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/id.json b/public/v2/i18n/id.json
new file mode 100644
index 0000000000..d2c397597d
--- /dev/null
+++ b/public/v2/i18n/id.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "id",
+ "date_time_fns": "do MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Menghabiskan",
+ "left": "Kiri",
+ "paid": "Dibayar",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Tidak dibayar",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "Dalam",
+ "money_flowing_out": "Keluar",
+ "category": "Kategori",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Penarikan",
+ "Deposit": "Deposit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Anggaran",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Debt",
+ "account_type_Loan": "Loan",
+ "account_type_Mortgage": "Mortgage"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/id_ID.json b/public/v2/i18n/id_ID.json
new file mode 100644
index 0000000000..d2c397597d
--- /dev/null
+++ b/public/v2/i18n/id_ID.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "id",
+ "date_time_fns": "do MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Menghabiskan",
+ "left": "Kiri",
+ "paid": "Dibayar",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Tidak dibayar",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "Dalam",
+ "money_flowing_out": "Keluar",
+ "category": "Kategori",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Penarikan",
+ "Deposit": "Deposit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Anggaran",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Debt",
+ "account_type_Loan": "Loan",
+ "account_type_Mortgage": "Mortgage"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/it.json b/public/v2/i18n/it.json
new file mode 100644
index 0000000000..fa1989f40e
--- /dev/null
+++ b/public/v2/i18n/it.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "it",
+ "date_time_fns": "do MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Speso",
+ "left": "Resto",
+ "paid": "Pagati",
+ "errors_submission_v2": "Errore durante l'invio. Controlla gli errori segnalati qui sotto: %{errorMessage}",
+ "unpaid": "Da pagare",
+ "default_group_title_name_plain": "non raggruppato",
+ "subscriptions_in_group": "Abbonamenti nel gruppo \"%{title}\"",
+ "subscr_expected_x_times": "Prevedi di pagare %{amount} %{times} volte in questo periodo",
+ "overspent": "Speso troppo",
+ "money_flowing_in": "Entrate",
+ "money_flowing_out": "Uscite",
+ "category": "Categoria",
+ "unknown_category_plain": "Nessuna categoria",
+ "all_money": "Tutto il tuo denaro",
+ "unknown_source_plain": "Conto d'origine sconosciuto",
+ "unknown_dest_plain": "Conto di destinazione sconosciuto",
+ "unknown_any_plain": "Conto sconosciuto",
+ "unknown_budget_plain": "Nessun budget",
+ "stored_journal_js": "Nuova transazione \"%{description}\" creata correttamente",
+ "wait_loading_transaction": "Attendi il caricamento del modello",
+ "nothing_found": "(nessun risultato)",
+ "wait_loading_data": "Ti preghiamo di attendere il caricamento delle tue informazioni...",
+ "Transfer": "Trasferimento",
+ "Withdrawal": "Prelievo",
+ "Deposit": "Entrata",
+ "expense_account": "Conto di spese",
+ "revenue_account": "Conto di entrate",
+ "budget": "Budget",
+ "account_type_Asset account": "Conto di risorse",
+ "account_type_Expense account": "Conto di spesa",
+ "account_type_Revenue account": "Conto di entrate",
+ "account_type_Debt": "Debito",
+ "account_type_Loan": "Prestito",
+ "account_type_Mortgage": "Mutuo"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/it_IT.json b/public/v2/i18n/it_IT.json
new file mode 100644
index 0000000000..fa1989f40e
--- /dev/null
+++ b/public/v2/i18n/it_IT.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "it",
+ "date_time_fns": "do MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Speso",
+ "left": "Resto",
+ "paid": "Pagati",
+ "errors_submission_v2": "Errore durante l'invio. Controlla gli errori segnalati qui sotto: %{errorMessage}",
+ "unpaid": "Da pagare",
+ "default_group_title_name_plain": "non raggruppato",
+ "subscriptions_in_group": "Abbonamenti nel gruppo \"%{title}\"",
+ "subscr_expected_x_times": "Prevedi di pagare %{amount} %{times} volte in questo periodo",
+ "overspent": "Speso troppo",
+ "money_flowing_in": "Entrate",
+ "money_flowing_out": "Uscite",
+ "category": "Categoria",
+ "unknown_category_plain": "Nessuna categoria",
+ "all_money": "Tutto il tuo denaro",
+ "unknown_source_plain": "Conto d'origine sconosciuto",
+ "unknown_dest_plain": "Conto di destinazione sconosciuto",
+ "unknown_any_plain": "Conto sconosciuto",
+ "unknown_budget_plain": "Nessun budget",
+ "stored_journal_js": "Nuova transazione \"%{description}\" creata correttamente",
+ "wait_loading_transaction": "Attendi il caricamento del modello",
+ "nothing_found": "(nessun risultato)",
+ "wait_loading_data": "Ti preghiamo di attendere il caricamento delle tue informazioni...",
+ "Transfer": "Trasferimento",
+ "Withdrawal": "Prelievo",
+ "Deposit": "Entrata",
+ "expense_account": "Conto di spese",
+ "revenue_account": "Conto di entrate",
+ "budget": "Budget",
+ "account_type_Asset account": "Conto di risorse",
+ "account_type_Expense account": "Conto di spesa",
+ "account_type_Revenue account": "Conto di entrate",
+ "account_type_Debt": "Debito",
+ "account_type_Loan": "Prestito",
+ "account_type_Mortgage": "Mutuo"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ja.json b/public/v2/i18n/ja.json
new file mode 100644
index 0000000000..8344e1ef2c
--- /dev/null
+++ b/public/v2/i18n/ja.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ja",
+ "date_time_fns": "yyyy\u5e74MMMM\u6708do\u65e5 HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u652f\u51fa",
+ "left": "\u6b8b\u308a",
+ "paid": "\u652f\u6255\u3044\u6e08\u307f",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u672a\u6255\u3044",
+ "default_group_title_name_plain": "\u30b0\u30eb\u30fc\u30d7\u89e3\u9664",
+ "subscriptions_in_group": "\u30b0\u30eb\u30fc\u30d7\u300c%{title}\u300d\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3",
+ "subscr_expected_x_times": "\u3053\u306e\u671f\u9593\u306b %{amount} %{times} \u56de\u306e\u652f\u6255\u3044\u3092\u4e88\u5b9a",
+ "overspent": "\u4f7f\u3044\u3059\u304e",
+ "money_flowing_in": "\u5165",
+ "money_flowing_out": "\u51fa",
+ "category": "\u30ab\u30c6\u30b4\u30ea",
+ "unknown_category_plain": "\u30ab\u30c6\u30b4\u30ea\u306a\u3057",
+ "all_money": "\u3059\u3079\u3066\u306e\u304a\u91d1",
+ "unknown_source_plain": "\u4e0d\u660e\u306a\u5f15\u304d\u51fa\u3057\u53e3\u5ea7",
+ "unknown_dest_plain": "\u4e0d\u660e\u306a\u9810\u3051\u5165\u308c\u53e3\u5ea7",
+ "unknown_any_plain": "\u4e0d\u660e\u306a\u53e3\u5ea7",
+ "unknown_budget_plain": "\u4e88\u7b97\u306a\u3057",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u9001\u91d1",
+ "Withdrawal": "\u51fa\u91d1",
+ "Deposit": "\u9810\u91d1",
+ "expense_account": "\u652f\u51fa\u53e3\u5ea7",
+ "revenue_account": "\u53ce\u5165\u53e3\u5ea7",
+ "budget": "\u4e88\u7b97",
+ "account_type_Asset account": "\u8cc7\u7523\u53e3\u5ea7",
+ "account_type_Expense account": "\u652f\u51fa\u53e3\u5ea7",
+ "account_type_Revenue account": "\u53ce\u5165\u53e3\u5ea7",
+ "account_type_Debt": "\u501f\u91d1",
+ "account_type_Loan": "\u30ed\u30fc\u30f3",
+ "account_type_Mortgage": "\u4f4f\u5b85\u30ed\u30fc\u30f3"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ja_JP.json b/public/v2/i18n/ja_JP.json
new file mode 100644
index 0000000000..8344e1ef2c
--- /dev/null
+++ b/public/v2/i18n/ja_JP.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ja",
+ "date_time_fns": "yyyy\u5e74MMMM\u6708do\u65e5 HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u652f\u51fa",
+ "left": "\u6b8b\u308a",
+ "paid": "\u652f\u6255\u3044\u6e08\u307f",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u672a\u6255\u3044",
+ "default_group_title_name_plain": "\u30b0\u30eb\u30fc\u30d7\u89e3\u9664",
+ "subscriptions_in_group": "\u30b0\u30eb\u30fc\u30d7\u300c%{title}\u300d\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3",
+ "subscr_expected_x_times": "\u3053\u306e\u671f\u9593\u306b %{amount} %{times} \u56de\u306e\u652f\u6255\u3044\u3092\u4e88\u5b9a",
+ "overspent": "\u4f7f\u3044\u3059\u304e",
+ "money_flowing_in": "\u5165",
+ "money_flowing_out": "\u51fa",
+ "category": "\u30ab\u30c6\u30b4\u30ea",
+ "unknown_category_plain": "\u30ab\u30c6\u30b4\u30ea\u306a\u3057",
+ "all_money": "\u3059\u3079\u3066\u306e\u304a\u91d1",
+ "unknown_source_plain": "\u4e0d\u660e\u306a\u5f15\u304d\u51fa\u3057\u53e3\u5ea7",
+ "unknown_dest_plain": "\u4e0d\u660e\u306a\u9810\u3051\u5165\u308c\u53e3\u5ea7",
+ "unknown_any_plain": "\u4e0d\u660e\u306a\u53e3\u5ea7",
+ "unknown_budget_plain": "\u4e88\u7b97\u306a\u3057",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u9001\u91d1",
+ "Withdrawal": "\u51fa\u91d1",
+ "Deposit": "\u9810\u91d1",
+ "expense_account": "\u652f\u51fa\u53e3\u5ea7",
+ "revenue_account": "\u53ce\u5165\u53e3\u5ea7",
+ "budget": "\u4e88\u7b97",
+ "account_type_Asset account": "\u8cc7\u7523\u53e3\u5ea7",
+ "account_type_Expense account": "\u652f\u51fa\u53e3\u5ea7",
+ "account_type_Revenue account": "\u53ce\u5165\u53e3\u5ea7",
+ "account_type_Debt": "\u501f\u91d1",
+ "account_type_Loan": "\u30ed\u30fc\u30f3",
+ "account_type_Mortgage": "\u4f4f\u5b85\u30ed\u30fc\u30f3"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ko.json b/public/v2/i18n/ko.json
new file mode 100644
index 0000000000..a464cc667e
--- /dev/null
+++ b/public/v2/i18n/ko.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ko",
+ "date_time_fns": "YYYY\ub144 M\uc6d4 D\uc77c HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\uc9c0\ucd9c",
+ "left": "\ub0a8\uc74c",
+ "paid": "\uc9c0\ubd88\ub428",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\ubbf8\uc9c0\ubd88",
+ "default_group_title_name_plain": "\uadf8\ub8f9 \ud574\uc81c\ub428",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "\ucd08\uacfc \uc9c0\ucd9c",
+ "money_flowing_in": "\ub4e4\uc5b4\uc634",
+ "money_flowing_out": "\ub098\uac10",
+ "category": "\uce74\ud14c\uace0\ub9ac",
+ "unknown_category_plain": "\uce74\ud14c\uace0\ub9ac \uc5c6\uc74c",
+ "all_money": "\ubaa8\ub4e0 \ub3c8",
+ "unknown_source_plain": "\uc54c \uc218 \uc5c6\ub294 \uc18c\uc2a4 \uacc4\uc815",
+ "unknown_dest_plain": "\uc54c \uc218 \uc5c6\ub294 \ub300\uc0c1 \uacc4\uc815",
+ "unknown_any_plain": "\uc54c \uc218 \uc5c6\ub294 \uacc4\uc815",
+ "unknown_budget_plain": "\uc608\uc0b0 \uc5c6\uc74c",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\uc774\uccb4",
+ "Withdrawal": "\ucd9c\uae08",
+ "Deposit": "\uc785\uae08",
+ "expense_account": "\uc9c0\ucd9c \uacc4\uc815",
+ "revenue_account": "\uc218\uc775 \uacc4\uc815",
+ "budget": "\uc608\uc0b0",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\ub300\ucd9c",
+ "account_type_Loan": "\ube5a",
+ "account_type_Mortgage": "\ubaa8\uae30\uc9c0"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ko_KR.json b/public/v2/i18n/ko_KR.json
new file mode 100644
index 0000000000..a464cc667e
--- /dev/null
+++ b/public/v2/i18n/ko_KR.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ko",
+ "date_time_fns": "YYYY\ub144 M\uc6d4 D\uc77c HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\uc9c0\ucd9c",
+ "left": "\ub0a8\uc74c",
+ "paid": "\uc9c0\ubd88\ub428",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\ubbf8\uc9c0\ubd88",
+ "default_group_title_name_plain": "\uadf8\ub8f9 \ud574\uc81c\ub428",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "\ucd08\uacfc \uc9c0\ucd9c",
+ "money_flowing_in": "\ub4e4\uc5b4\uc634",
+ "money_flowing_out": "\ub098\uac10",
+ "category": "\uce74\ud14c\uace0\ub9ac",
+ "unknown_category_plain": "\uce74\ud14c\uace0\ub9ac \uc5c6\uc74c",
+ "all_money": "\ubaa8\ub4e0 \ub3c8",
+ "unknown_source_plain": "\uc54c \uc218 \uc5c6\ub294 \uc18c\uc2a4 \uacc4\uc815",
+ "unknown_dest_plain": "\uc54c \uc218 \uc5c6\ub294 \ub300\uc0c1 \uacc4\uc815",
+ "unknown_any_plain": "\uc54c \uc218 \uc5c6\ub294 \uacc4\uc815",
+ "unknown_budget_plain": "\uc608\uc0b0 \uc5c6\uc74c",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\uc774\uccb4",
+ "Withdrawal": "\ucd9c\uae08",
+ "Deposit": "\uc785\uae08",
+ "expense_account": "\uc9c0\ucd9c \uacc4\uc815",
+ "revenue_account": "\uc218\uc775 \uacc4\uc815",
+ "budget": "\uc608\uc0b0",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\ub300\ucd9c",
+ "account_type_Loan": "\ube5a",
+ "account_type_Mortgage": "\ubaa8\uae30\uc9c0"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/nb.json b/public/v2/i18n/nb.json
new file mode 100644
index 0000000000..8b5c611e30
--- /dev/null
+++ b/public/v2/i18n/nb.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "nb",
+ "date_time_fns": "do MMMM, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Brukt",
+ "left": "Gjenv\u00e6rende",
+ "paid": "Betalt",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Ikke betalt",
+ "default_group_title_name_plain": "ikke gruppert",
+ "subscriptions_in_group": "Abonnementer i gruppe \"%{title}\"",
+ "subscr_expected_x_times": "Forvent \u00e5 betale %{amount}, %{times} ganger denne perioden",
+ "overspent": "Overforbruk",
+ "money_flowing_in": "Inn",
+ "money_flowing_out": "Ut",
+ "category": "Kategori",
+ "unknown_category_plain": "Ingen kategori",
+ "all_money": "Alle pengene dine",
+ "unknown_source_plain": "Ukjent kilde-konto",
+ "unknown_dest_plain": "Ukjent destinasjonskonto",
+ "unknown_any_plain": "Ukjent konto",
+ "unknown_budget_plain": "Mangler budsjett",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Overf\u00f8ring",
+ "Withdrawal": "Uttak",
+ "Deposit": "Innskudd",
+ "expense_account": "Utgiftskonto",
+ "revenue_account": "Inntektskonto",
+ "budget": "Budsjett",
+ "account_type_Asset account": "Aktivakonto",
+ "account_type_Expense account": "Utgiftskonto",
+ "account_type_Revenue account": "Inntektskonto",
+ "account_type_Debt": "Gjeld",
+ "account_type_Loan": "L\u00e5n",
+ "account_type_Mortgage": "Boligl\u00e5n"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/nb_NO.json b/public/v2/i18n/nb_NO.json
new file mode 100644
index 0000000000..8b5c611e30
--- /dev/null
+++ b/public/v2/i18n/nb_NO.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "nb",
+ "date_time_fns": "do MMMM, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Brukt",
+ "left": "Gjenv\u00e6rende",
+ "paid": "Betalt",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Ikke betalt",
+ "default_group_title_name_plain": "ikke gruppert",
+ "subscriptions_in_group": "Abonnementer i gruppe \"%{title}\"",
+ "subscr_expected_x_times": "Forvent \u00e5 betale %{amount}, %{times} ganger denne perioden",
+ "overspent": "Overforbruk",
+ "money_flowing_in": "Inn",
+ "money_flowing_out": "Ut",
+ "category": "Kategori",
+ "unknown_category_plain": "Ingen kategori",
+ "all_money": "Alle pengene dine",
+ "unknown_source_plain": "Ukjent kilde-konto",
+ "unknown_dest_plain": "Ukjent destinasjonskonto",
+ "unknown_any_plain": "Ukjent konto",
+ "unknown_budget_plain": "Mangler budsjett",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Overf\u00f8ring",
+ "Withdrawal": "Uttak",
+ "Deposit": "Innskudd",
+ "expense_account": "Utgiftskonto",
+ "revenue_account": "Inntektskonto",
+ "budget": "Budsjett",
+ "account_type_Asset account": "Aktivakonto",
+ "account_type_Expense account": "Utgiftskonto",
+ "account_type_Revenue account": "Inntektskonto",
+ "account_type_Debt": "Gjeld",
+ "account_type_Loan": "L\u00e5n",
+ "account_type_Mortgage": "Boligl\u00e5n"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/nl.json b/public/v2/i18n/nl.json
new file mode 100644
index 0000000000..1d7572f61b
--- /dev/null
+++ b/public/v2/i18n/nl.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "nl",
+ "date_time_fns": "d MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Uitgegeven",
+ "left": "Over",
+ "paid": "Betaald",
+ "errors_submission_v2": "Er ging iets mis. Check de errors: %{errorMessage}",
+ "unpaid": "Niet betaald",
+ "default_group_title_name_plain": "ongegroepeerd",
+ "subscriptions_in_group": "Abonnementen in groep \"%{title}\"",
+ "subscr_expected_x_times": "Verwacht %{amount} %{times} keer te betalen in deze periode",
+ "overspent": "Teveel uitgegeven",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Uit",
+ "category": "Categorie",
+ "unknown_category_plain": "Geen categorie",
+ "all_money": "Al je geld",
+ "unknown_source_plain": "Onbekend bronrekening",
+ "unknown_dest_plain": "Onbekende doelrekening",
+ "unknown_any_plain": "Onbekende rekening",
+ "unknown_budget_plain": "Geen budget",
+ "stored_journal_js": "Nieuw transactie \"%{description}\" opgeslagen",
+ "wait_loading_transaction": "Wacht even tot het formulier geladen is",
+ "nothing_found": "(niets gevonden)",
+ "wait_loading_data": "Wacht even tot de gegevens er zijn...",
+ "Transfer": "Overschrijving",
+ "Withdrawal": "Uitgave",
+ "Deposit": "Inkomsten",
+ "expense_account": "Crediteur",
+ "revenue_account": "Debiteur",
+ "budget": "Budget",
+ "account_type_Asset account": "Betaalrekening",
+ "account_type_Expense account": "Crediteur",
+ "account_type_Revenue account": "Debiteur",
+ "account_type_Debt": "Schuld",
+ "account_type_Loan": "Lening",
+ "account_type_Mortgage": "Hypotheek"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/nl_NL.json b/public/v2/i18n/nl_NL.json
new file mode 100644
index 0000000000..1d7572f61b
--- /dev/null
+++ b/public/v2/i18n/nl_NL.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "nl",
+ "date_time_fns": "d MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Uitgegeven",
+ "left": "Over",
+ "paid": "Betaald",
+ "errors_submission_v2": "Er ging iets mis. Check de errors: %{errorMessage}",
+ "unpaid": "Niet betaald",
+ "default_group_title_name_plain": "ongegroepeerd",
+ "subscriptions_in_group": "Abonnementen in groep \"%{title}\"",
+ "subscr_expected_x_times": "Verwacht %{amount} %{times} keer te betalen in deze periode",
+ "overspent": "Teveel uitgegeven",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Uit",
+ "category": "Categorie",
+ "unknown_category_plain": "Geen categorie",
+ "all_money": "Al je geld",
+ "unknown_source_plain": "Onbekend bronrekening",
+ "unknown_dest_plain": "Onbekende doelrekening",
+ "unknown_any_plain": "Onbekende rekening",
+ "unknown_budget_plain": "Geen budget",
+ "stored_journal_js": "Nieuw transactie \"%{description}\" opgeslagen",
+ "wait_loading_transaction": "Wacht even tot het formulier geladen is",
+ "nothing_found": "(niets gevonden)",
+ "wait_loading_data": "Wacht even tot de gegevens er zijn...",
+ "Transfer": "Overschrijving",
+ "Withdrawal": "Uitgave",
+ "Deposit": "Inkomsten",
+ "expense_account": "Crediteur",
+ "revenue_account": "Debiteur",
+ "budget": "Budget",
+ "account_type_Asset account": "Betaalrekening",
+ "account_type_Expense account": "Crediteur",
+ "account_type_Revenue account": "Debiteur",
+ "account_type_Debt": "Schuld",
+ "account_type_Loan": "Lening",
+ "account_type_Mortgage": "Hypotheek"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/nn.json b/public/v2/i18n/nn.json
new file mode 100644
index 0000000000..0c6a2e5f2a
--- /dev/null
+++ b/public/v2/i18n/nn.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "nn",
+ "date_time_fns": "do MMMM, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Brukt",
+ "left": "Att",
+ "paid": "Betalt",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Ikke betalt",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Abonnement i gruppa \u00ab%{title}\u00bb",
+ "subscr_expected_x_times": "Forvent \u00e5 betal %{amount} %{times} gonger denne perioden",
+ "overspent": "Overforbruk",
+ "money_flowing_in": "Inn",
+ "money_flowing_out": "Ut",
+ "category": "Kategori",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Transaksjonen \u00ab%{description}\u00bb vart oppretta",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Overf\u00f8ring",
+ "Withdrawal": "Uttak",
+ "Deposit": "Innskudd",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budsjett",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Gjeld",
+ "account_type_Loan": "L\u00e5n",
+ "account_type_Mortgage": "Boligl\u00e5n"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/nn_NO.json b/public/v2/i18n/nn_NO.json
new file mode 100644
index 0000000000..0c6a2e5f2a
--- /dev/null
+++ b/public/v2/i18n/nn_NO.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "nn",
+ "date_time_fns": "do MMMM, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Brukt",
+ "left": "Att",
+ "paid": "Betalt",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Ikke betalt",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Abonnement i gruppa \u00ab%{title}\u00bb",
+ "subscr_expected_x_times": "Forvent \u00e5 betal %{amount} %{times} gonger denne perioden",
+ "overspent": "Overforbruk",
+ "money_flowing_in": "Inn",
+ "money_flowing_out": "Ut",
+ "category": "Kategori",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Transaksjonen \u00ab%{description}\u00bb vart oppretta",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Overf\u00f8ring",
+ "Withdrawal": "Uttak",
+ "Deposit": "Innskudd",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budsjett",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Gjeld",
+ "account_type_Loan": "L\u00e5n",
+ "account_type_Mortgage": "Boligl\u00e5n"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/pl.json b/public/v2/i18n/pl.json
new file mode 100644
index 0000000000..0fdf420e5f
--- /dev/null
+++ b/public/v2/i18n/pl.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "pl",
+ "date_time_fns": "do MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Wydano",
+ "left": "Pozosta\u0142o",
+ "paid": "Zap\u0142acone",
+ "errors_submission_v2": "Co\u015b posz\u0142o nie tak w czasie zapisu. Prosz\u0119, sprawd\u017a b\u0142\u0119dy poni\u017cej: %{errorMessage}",
+ "unpaid": "Niezap\u0142acone",
+ "default_group_title_name_plain": "bez grupy",
+ "subscriptions_in_group": "Subskrypcje w grupie \"%{title}\"",
+ "subscr_expected_x_times": "Oczekuje zap\u0142aty %{amount} %{times} razy w tym okresie",
+ "overspent": "Przep\u0142acono",
+ "money_flowing_in": "Przychodz\u0105ce",
+ "money_flowing_out": "Wychodz\u0105ce",
+ "category": "Kategoria",
+ "unknown_category_plain": "Brak kategorii",
+ "all_money": "Wszystkie Twoje pieni\u0105dze",
+ "unknown_source_plain": "Nieznane konto \u017ar\u00f3d\u0142owe",
+ "unknown_dest_plain": "Nieznane konto docelowe",
+ "unknown_any_plain": "Nieznane konto",
+ "unknown_budget_plain": "Brak bud\u017cetu",
+ "stored_journal_js": "Pomy\u015blnie utworzono now\u0105 transakcj\u0119 \"%{description}\"",
+ "wait_loading_transaction": "Poczekaj na za\u0142adowanie formularza",
+ "nothing_found": "(nic nie znaleziono)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Wyp\u0142ata",
+ "Deposit": "Wp\u0142ata",
+ "expense_account": "Konto wydatk\u00f3w",
+ "revenue_account": "Konto przychod\u00f3w",
+ "budget": "Bud\u017cet",
+ "account_type_Asset account": "Konto aktyw\u00f3w",
+ "account_type_Expense account": "Konto wydatk\u00f3w",
+ "account_type_Revenue account": "Konto przychod\u00f3w",
+ "account_type_Debt": "D\u0142ug",
+ "account_type_Loan": "Po\u017cyczka",
+ "account_type_Mortgage": "Hipoteka"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/pl_PL.json b/public/v2/i18n/pl_PL.json
new file mode 100644
index 0000000000..0fdf420e5f
--- /dev/null
+++ b/public/v2/i18n/pl_PL.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "pl",
+ "date_time_fns": "do MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Wydano",
+ "left": "Pozosta\u0142o",
+ "paid": "Zap\u0142acone",
+ "errors_submission_v2": "Co\u015b posz\u0142o nie tak w czasie zapisu. Prosz\u0119, sprawd\u017a b\u0142\u0119dy poni\u017cej: %{errorMessage}",
+ "unpaid": "Niezap\u0142acone",
+ "default_group_title_name_plain": "bez grupy",
+ "subscriptions_in_group": "Subskrypcje w grupie \"%{title}\"",
+ "subscr_expected_x_times": "Oczekuje zap\u0142aty %{amount} %{times} razy w tym okresie",
+ "overspent": "Przep\u0142acono",
+ "money_flowing_in": "Przychodz\u0105ce",
+ "money_flowing_out": "Wychodz\u0105ce",
+ "category": "Kategoria",
+ "unknown_category_plain": "Brak kategorii",
+ "all_money": "Wszystkie Twoje pieni\u0105dze",
+ "unknown_source_plain": "Nieznane konto \u017ar\u00f3d\u0142owe",
+ "unknown_dest_plain": "Nieznane konto docelowe",
+ "unknown_any_plain": "Nieznane konto",
+ "unknown_budget_plain": "Brak bud\u017cetu",
+ "stored_journal_js": "Pomy\u015blnie utworzono now\u0105 transakcj\u0119 \"%{description}\"",
+ "wait_loading_transaction": "Poczekaj na za\u0142adowanie formularza",
+ "nothing_found": "(nic nie znaleziono)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Wyp\u0142ata",
+ "Deposit": "Wp\u0142ata",
+ "expense_account": "Konto wydatk\u00f3w",
+ "revenue_account": "Konto przychod\u00f3w",
+ "budget": "Bud\u017cet",
+ "account_type_Asset account": "Konto aktyw\u00f3w",
+ "account_type_Expense account": "Konto wydatk\u00f3w",
+ "account_type_Revenue account": "Konto przychod\u00f3w",
+ "account_type_Debt": "D\u0142ug",
+ "account_type_Loan": "Po\u017cyczka",
+ "account_type_Mortgage": "Hipoteka"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/pt-br.json b/public/v2/i18n/pt-br.json
new file mode 100644
index 0000000000..01e0b42978
--- /dev/null
+++ b/public/v2/i18n/pt-br.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "pt-br",
+ "date_time_fns": "dd 'de' MMMM 'de' yyyy, '\u00e0s' HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Gasto",
+ "left": "Restante",
+ "paid": "Pago",
+ "errors_submission_v2": "Algo deu errado com seu envio. Por favor, verifique os erros abaixo: %{errorMessage}",
+ "unpaid": "N\u00e3o pago",
+ "default_group_title_name_plain": "sem grupo",
+ "subscriptions_in_group": "Assinaturas no grupo \"%{title}\"",
+ "subscr_expected_x_times": "Espera-se pagar %{amount} %{times} vezes neste per\u00edodo",
+ "overspent": "Gasto excedido",
+ "money_flowing_in": "Entrada",
+ "money_flowing_out": "Sa\u00edda",
+ "category": "Categoria",
+ "unknown_category_plain": "Sem categoria",
+ "all_money": "Todo o seu dinheiro",
+ "unknown_source_plain": "Conta de origem desconhecida",
+ "unknown_dest_plain": "Conta de destino desconhecida",
+ "unknown_any_plain": "Conta desconhecida",
+ "unknown_budget_plain": "Nenhum or\u00e7amento",
+ "stored_journal_js": "Transa\u00e7\u00e3o \"%{description}\" criada com sucesso",
+ "wait_loading_transaction": "Por favor, aguarde o formul\u00e1rio carregar",
+ "nothing_found": "(nada encontrado)",
+ "wait_loading_data": "Por favor, aguarde suas informa\u00e7\u00f5es serem carregadas...",
+ "Transfer": "Transfer\u00eancia",
+ "Withdrawal": "Retirada",
+ "Deposit": "Dep\u00f3sito",
+ "expense_account": "Conta de despesas",
+ "revenue_account": "Conta de Receitas",
+ "budget": "Or\u00e7amento",
+ "account_type_Asset account": "Conta de ativos",
+ "account_type_Expense account": "Conta de despesas",
+ "account_type_Revenue account": "Conta de receitas",
+ "account_type_Debt": "D\u00edvida",
+ "account_type_Loan": "Empr\u00e9stimo",
+ "account_type_Mortgage": "Hipoteca"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/pt.json b/public/v2/i18n/pt.json
new file mode 100644
index 0000000000..6a8c06c47c
--- /dev/null
+++ b/public/v2/i18n/pt.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "pt",
+ "date_time_fns": "DO [de] MMMM YYYY, @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Gasto",
+ "left": "Em falta",
+ "paid": "Pago",
+ "errors_submission_v2": "Algo correu mal com o envio dos dados. Por favor verifique e corrija os erros abaixo: %{errorMessage}",
+ "unpaid": "Por pagar",
+ "default_group_title_name_plain": "sem grupo",
+ "subscriptions_in_group": "Subscri\u00e7\u00e3o no grupo \"%{title}\"",
+ "subscr_expected_x_times": "Espere pagar %{amount} %{times} neste per\u00edodo",
+ "overspent": "Gasto excedido",
+ "money_flowing_in": "Dentro",
+ "money_flowing_out": "Fora",
+ "category": "Categoria",
+ "unknown_category_plain": "Sem categoria",
+ "all_money": "Todo o seu dinheiro",
+ "unknown_source_plain": "Conta de origem desconhecida",
+ "unknown_dest_plain": "Conta de destino desconhecida",
+ "unknown_any_plain": "Conta desconhecida",
+ "unknown_budget_plain": "Sem or\u00e7amento",
+ "stored_journal_js": "A transa\u00e7\u00e3o \"%{description}\" foi criada com sucesso",
+ "wait_loading_transaction": "Por favor, aguarde o formul\u00e1rio carregar",
+ "nothing_found": "(sem resultados)",
+ "wait_loading_data": "Por favor, aguarde enquanto carregamos a sua informa\u00e7\u00e3o...",
+ "Transfer": "Transfer\u00eancia",
+ "Withdrawal": "Levantamento",
+ "Deposit": "Dep\u00f3sito",
+ "expense_account": "Conta de despesas",
+ "revenue_account": "Conta de receitas",
+ "budget": "Or\u00e7amento",
+ "account_type_Asset account": "Conta de ativos",
+ "account_type_Expense account": "Conta de gastos \/ passivos",
+ "account_type_Revenue account": "Conta de receitas",
+ "account_type_Debt": "D\u00edvida",
+ "account_type_Loan": "Empr\u00e9stimo",
+ "account_type_Mortgage": "Hipoteca"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/pt_BR.json b/public/v2/i18n/pt_BR.json
new file mode 100644
index 0000000000..01e0b42978
--- /dev/null
+++ b/public/v2/i18n/pt_BR.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "pt-br",
+ "date_time_fns": "dd 'de' MMMM 'de' yyyy, '\u00e0s' HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Gasto",
+ "left": "Restante",
+ "paid": "Pago",
+ "errors_submission_v2": "Algo deu errado com seu envio. Por favor, verifique os erros abaixo: %{errorMessage}",
+ "unpaid": "N\u00e3o pago",
+ "default_group_title_name_plain": "sem grupo",
+ "subscriptions_in_group": "Assinaturas no grupo \"%{title}\"",
+ "subscr_expected_x_times": "Espera-se pagar %{amount} %{times} vezes neste per\u00edodo",
+ "overspent": "Gasto excedido",
+ "money_flowing_in": "Entrada",
+ "money_flowing_out": "Sa\u00edda",
+ "category": "Categoria",
+ "unknown_category_plain": "Sem categoria",
+ "all_money": "Todo o seu dinheiro",
+ "unknown_source_plain": "Conta de origem desconhecida",
+ "unknown_dest_plain": "Conta de destino desconhecida",
+ "unknown_any_plain": "Conta desconhecida",
+ "unknown_budget_plain": "Nenhum or\u00e7amento",
+ "stored_journal_js": "Transa\u00e7\u00e3o \"%{description}\" criada com sucesso",
+ "wait_loading_transaction": "Por favor, aguarde o formul\u00e1rio carregar",
+ "nothing_found": "(nada encontrado)",
+ "wait_loading_data": "Por favor, aguarde suas informa\u00e7\u00f5es serem carregadas...",
+ "Transfer": "Transfer\u00eancia",
+ "Withdrawal": "Retirada",
+ "Deposit": "Dep\u00f3sito",
+ "expense_account": "Conta de despesas",
+ "revenue_account": "Conta de Receitas",
+ "budget": "Or\u00e7amento",
+ "account_type_Asset account": "Conta de ativos",
+ "account_type_Expense account": "Conta de despesas",
+ "account_type_Revenue account": "Conta de receitas",
+ "account_type_Debt": "D\u00edvida",
+ "account_type_Loan": "Empr\u00e9stimo",
+ "account_type_Mortgage": "Hipoteca"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/pt_PT.json b/public/v2/i18n/pt_PT.json
new file mode 100644
index 0000000000..6a8c06c47c
--- /dev/null
+++ b/public/v2/i18n/pt_PT.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "pt",
+ "date_time_fns": "DO [de] MMMM YYYY, @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Gasto",
+ "left": "Em falta",
+ "paid": "Pago",
+ "errors_submission_v2": "Algo correu mal com o envio dos dados. Por favor verifique e corrija os erros abaixo: %{errorMessage}",
+ "unpaid": "Por pagar",
+ "default_group_title_name_plain": "sem grupo",
+ "subscriptions_in_group": "Subscri\u00e7\u00e3o no grupo \"%{title}\"",
+ "subscr_expected_x_times": "Espere pagar %{amount} %{times} neste per\u00edodo",
+ "overspent": "Gasto excedido",
+ "money_flowing_in": "Dentro",
+ "money_flowing_out": "Fora",
+ "category": "Categoria",
+ "unknown_category_plain": "Sem categoria",
+ "all_money": "Todo o seu dinheiro",
+ "unknown_source_plain": "Conta de origem desconhecida",
+ "unknown_dest_plain": "Conta de destino desconhecida",
+ "unknown_any_plain": "Conta desconhecida",
+ "unknown_budget_plain": "Sem or\u00e7amento",
+ "stored_journal_js": "A transa\u00e7\u00e3o \"%{description}\" foi criada com sucesso",
+ "wait_loading_transaction": "Por favor, aguarde o formul\u00e1rio carregar",
+ "nothing_found": "(sem resultados)",
+ "wait_loading_data": "Por favor, aguarde enquanto carregamos a sua informa\u00e7\u00e3o...",
+ "Transfer": "Transfer\u00eancia",
+ "Withdrawal": "Levantamento",
+ "Deposit": "Dep\u00f3sito",
+ "expense_account": "Conta de despesas",
+ "revenue_account": "Conta de receitas",
+ "budget": "Or\u00e7amento",
+ "account_type_Asset account": "Conta de ativos",
+ "account_type_Expense account": "Conta de gastos \/ passivos",
+ "account_type_Revenue account": "Conta de receitas",
+ "account_type_Debt": "D\u00edvida",
+ "account_type_Loan": "Empr\u00e9stimo",
+ "account_type_Mortgage": "Hipoteca"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ro.json b/public/v2/i18n/ro.json
new file mode 100644
index 0000000000..5e4331eb12
--- /dev/null
+++ b/public/v2/i18n/ro.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ro",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Cheltuit",
+ "left": "R\u0103mas",
+ "paid": "Pl\u0103tit",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Nepl\u0103tit",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Dep\u0103\u0219ire de buget",
+ "money_flowing_in": "\u00cen",
+ "money_flowing_out": "Afar\u0103",
+ "category": "Categorie",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Retragere",
+ "Deposit": "Depozit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Buget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Datorie",
+ "account_type_Loan": "\u00cemprumut",
+ "account_type_Mortgage": "Credit ipotecar"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ro_RO.json b/public/v2/i18n/ro_RO.json
new file mode 100644
index 0000000000..5e4331eb12
--- /dev/null
+++ b/public/v2/i18n/ro_RO.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ro",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Cheltuit",
+ "left": "R\u0103mas",
+ "paid": "Pl\u0103tit",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Nepl\u0103tit",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Dep\u0103\u0219ire de buget",
+ "money_flowing_in": "\u00cen",
+ "money_flowing_out": "Afar\u0103",
+ "category": "Categorie",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Transfer",
+ "Withdrawal": "Retragere",
+ "Deposit": "Depozit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Buget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Datorie",
+ "account_type_Loan": "\u00cemprumut",
+ "account_type_Mortgage": "Credit ipotecar"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ru.json b/public/v2/i18n/ru.json
new file mode 100644
index 0000000000..22ac24926a
--- /dev/null
+++ b/public/v2/i18n/ru.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ru",
+ "date_time_fns": "Do MMMM yyyy, @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u0420\u0430\u0441\u0445\u043e\u0434",
+ "left": "\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c",
+ "paid": "\u041e\u043f\u043b\u0430\u0447\u0435\u043d\u043e",
+ "errors_submission_v2": "\u0421 \u0432\u0430\u0448\u0435\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438: %{errorMessage}",
+ "unpaid": "\u041d\u0435 \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043e",
+ "default_group_title_name_plain": "\u0431\u0435\u0437 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438",
+ "subscriptions_in_group": "\u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 \"%{title}\"",
+ "subscr_expected_x_times": "\u041e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u043f\u043b\u0430\u0442\u0430 %{amount} %{times} \u0440\u0430\u0437 \u0437\u0430 \u044d\u0442\u043e\u0442 \u043f\u0435\u0440\u0438\u043e\u0434",
+ "overspent": "\u041f\u0435\u0440\u0435\u0440\u0430\u0441\u0445\u043e\u0434",
+ "money_flowing_in": "\u0412",
+ "money_flowing_out": "\u0418\u0437",
+ "category": "\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f",
+ "unknown_category_plain": "\u0411\u0435\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438",
+ "all_money": "\u0412\u0441\u0435 \u0432\u0430\u0448\u0438 \u0434\u0435\u043d\u044c\u0433\u0438",
+ "unknown_source_plain": "\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a",
+ "unknown_dest_plain": "\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f",
+ "unknown_any_plain": "\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442",
+ "unknown_budget_plain": "\u0411\u0435\u0437 \u0431\u044e\u0434\u0436\u0435\u0442\u0430",
+ "stored_journal_js": "\u041d\u043e\u0432\u0430\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \"%{description}\" \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0430",
+ "wait_loading_transaction": "\u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u043e\u0440\u043c\u044b",
+ "nothing_found": "(\u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e)",
+ "wait_loading_data": "\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0430\u0448\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438...",
+ "Transfer": "\u041f\u0435\u0440\u0435\u0432\u043e\u0434",
+ "Withdrawal": "\u0420\u0430\u0441\u0445\u043e\u0434",
+ "Deposit": "\u0414\u043e\u0445\u043e\u0434",
+ "expense_account": "\u0421\u0447\u0435\u0442 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432",
+ "revenue_account": "\u0421\u0447\u0435\u0442 \u0434\u043e\u0445\u043e\u0434\u043e\u0432",
+ "budget": "\u0411\u044e\u0434\u0436\u0435\u0442",
+ "account_type_Asset account": "\u0421\u0447\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u043e\u0432",
+ "account_type_Expense account": "\u0421\u0447\u0435\u0442\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432",
+ "account_type_Revenue account": "\u0421\u0447\u0435\u0442 \u0434\u043e\u0445\u043e\u0434\u043e\u0432",
+ "account_type_Debt": "\u0414\u0435\u0431\u0438\u0442",
+ "account_type_Loan": "\u0417\u0430\u0451\u043c",
+ "account_type_Mortgage": "\u0418\u043f\u043e\u0442\u0435\u043a\u0430"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/ru_RU.json b/public/v2/i18n/ru_RU.json
new file mode 100644
index 0000000000..22ac24926a
--- /dev/null
+++ b/public/v2/i18n/ru_RU.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "ru",
+ "date_time_fns": "Do MMMM yyyy, @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u0420\u0430\u0441\u0445\u043e\u0434",
+ "left": "\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c",
+ "paid": "\u041e\u043f\u043b\u0430\u0447\u0435\u043d\u043e",
+ "errors_submission_v2": "\u0421 \u0432\u0430\u0448\u0435\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438: %{errorMessage}",
+ "unpaid": "\u041d\u0435 \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043e",
+ "default_group_title_name_plain": "\u0431\u0435\u0437 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438",
+ "subscriptions_in_group": "\u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 \"%{title}\"",
+ "subscr_expected_x_times": "\u041e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u043f\u043b\u0430\u0442\u0430 %{amount} %{times} \u0440\u0430\u0437 \u0437\u0430 \u044d\u0442\u043e\u0442 \u043f\u0435\u0440\u0438\u043e\u0434",
+ "overspent": "\u041f\u0435\u0440\u0435\u0440\u0430\u0441\u0445\u043e\u0434",
+ "money_flowing_in": "\u0412",
+ "money_flowing_out": "\u0418\u0437",
+ "category": "\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f",
+ "unknown_category_plain": "\u0411\u0435\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438",
+ "all_money": "\u0412\u0441\u0435 \u0432\u0430\u0448\u0438 \u0434\u0435\u043d\u044c\u0433\u0438",
+ "unknown_source_plain": "\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a",
+ "unknown_dest_plain": "\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f",
+ "unknown_any_plain": "\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442",
+ "unknown_budget_plain": "\u0411\u0435\u0437 \u0431\u044e\u0434\u0436\u0435\u0442\u0430",
+ "stored_journal_js": "\u041d\u043e\u0432\u0430\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \"%{description}\" \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0430",
+ "wait_loading_transaction": "\u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u043e\u0440\u043c\u044b",
+ "nothing_found": "(\u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e)",
+ "wait_loading_data": "\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0430\u0448\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438...",
+ "Transfer": "\u041f\u0435\u0440\u0435\u0432\u043e\u0434",
+ "Withdrawal": "\u0420\u0430\u0441\u0445\u043e\u0434",
+ "Deposit": "\u0414\u043e\u0445\u043e\u0434",
+ "expense_account": "\u0421\u0447\u0435\u0442 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432",
+ "revenue_account": "\u0421\u0447\u0435\u0442 \u0434\u043e\u0445\u043e\u0434\u043e\u0432",
+ "budget": "\u0411\u044e\u0434\u0436\u0435\u0442",
+ "account_type_Asset account": "\u0421\u0447\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u043e\u0432",
+ "account_type_Expense account": "\u0421\u0447\u0435\u0442\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432",
+ "account_type_Revenue account": "\u0421\u0447\u0435\u0442 \u0434\u043e\u0445\u043e\u0434\u043e\u0432",
+ "account_type_Debt": "\u0414\u0435\u0431\u0438\u0442",
+ "account_type_Loan": "\u0417\u0430\u0451\u043c",
+ "account_type_Mortgage": "\u0418\u043f\u043e\u0442\u0435\u043a\u0430"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/sk.json b/public/v2/i18n/sk.json
new file mode 100644
index 0000000000..39f9530a70
--- /dev/null
+++ b/public/v2/i18n/sk.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "sk",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Utraten\u00e9",
+ "left": "Zost\u00e1va",
+ "paid": "Uhraden\u00e9",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Neuhraden\u00e9",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Prekro\u010den\u00e9 v\u00fddaje",
+ "money_flowing_in": "Prich\u00e1dzaj\u00face",
+ "money_flowing_out": "Odch\u00e1dzaj\u00face",
+ "category": "Kateg\u00f3ria",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Prevod",
+ "Withdrawal": "V\u00fdber",
+ "Deposit": "Vklad",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Rozpo\u010det",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Dlh",
+ "account_type_Loan": "P\u00f4\u017ei\u010dka",
+ "account_type_Mortgage": "Hypot\u00e9ka"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/sk_SK.json b/public/v2/i18n/sk_SK.json
new file mode 100644
index 0000000000..39f9530a70
--- /dev/null
+++ b/public/v2/i18n/sk_SK.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "sk",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Utraten\u00e9",
+ "left": "Zost\u00e1va",
+ "paid": "Uhraden\u00e9",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Neuhraden\u00e9",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Prekro\u010den\u00e9 v\u00fddaje",
+ "money_flowing_in": "Prich\u00e1dzaj\u00face",
+ "money_flowing_out": "Odch\u00e1dzaj\u00face",
+ "category": "Kateg\u00f3ria",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Prevod",
+ "Withdrawal": "V\u00fdber",
+ "Deposit": "Vklad",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Rozpo\u010det",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Dlh",
+ "account_type_Loan": "P\u00f4\u017ei\u010dka",
+ "account_type_Mortgage": "Hypot\u00e9ka"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/sl.json b/public/v2/i18n/sl.json
new file mode 100644
index 0000000000..2fa660ef31
--- /dev/null
+++ b/public/v2/i18n/sl.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "sl",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Porabljeno",
+ "left": "Preostalo",
+ "paid": "Pla\u010dano",
+ "errors_submission_v2": "Nekaj je bilo narobe z va\u0161o oddajo. Preverite spodnje napake: %{errorMessage}",
+ "unpaid": "Nepla\u010dano",
+ "default_group_title_name_plain": "nezdru\u017eeno",
+ "subscriptions_in_group": "Naro\u010dnine v skupini \"%{title}\"",
+ "subscr_expected_x_times": "Pri\u010dakujte, da boste v tem obdobju pla\u010dali %{amount} %{times}-krat",
+ "overspent": "Preve\u010d porabljeno",
+ "money_flowing_in": "Na",
+ "money_flowing_out": "Iz",
+ "category": "Kategorija",
+ "unknown_category_plain": "Brez kategorije",
+ "all_money": "Ves va\u0161 denar",
+ "unknown_source_plain": "Neznan izvorni ra\u010dun",
+ "unknown_dest_plain": "Neznan ciljni ra\u010dun",
+ "unknown_any_plain": "Neznan ra\u010dun",
+ "unknown_budget_plain": "Ni prora\u010duna",
+ "stored_journal_js": "Nova transakcija \"%{description}\" je uspe\u0161no ustvarjena",
+ "wait_loading_transaction": "Po\u010dakajte, da se obrazec nalo\u017ei",
+ "nothing_found": "(ni\u010d najdenega)",
+ "wait_loading_data": "Po\u010dakajte, da se va\u0161i podatki nalo\u017eijo...",
+ "Transfer": "Prenos",
+ "Withdrawal": "Odliv",
+ "Deposit": "Priliv",
+ "expense_account": "Ra\u010dun stro\u0161kov",
+ "revenue_account": "Ra\u010dun prihodkov",
+ "budget": "Prora\u010dun",
+ "account_type_Asset account": "Ra\u010dun sredstev",
+ "account_type_Expense account": "Ra\u010dun stro\u0161kov",
+ "account_type_Revenue account": "Ra\u010dun prihodkov",
+ "account_type_Debt": "Dolg",
+ "account_type_Loan": "Posojilo",
+ "account_type_Mortgage": "Hipoteka"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/sl_SI.json b/public/v2/i18n/sl_SI.json
new file mode 100644
index 0000000000..2fa660ef31
--- /dev/null
+++ b/public/v2/i18n/sl_SI.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "sl",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Porabljeno",
+ "left": "Preostalo",
+ "paid": "Pla\u010dano",
+ "errors_submission_v2": "Nekaj je bilo narobe z va\u0161o oddajo. Preverite spodnje napake: %{errorMessage}",
+ "unpaid": "Nepla\u010dano",
+ "default_group_title_name_plain": "nezdru\u017eeno",
+ "subscriptions_in_group": "Naro\u010dnine v skupini \"%{title}\"",
+ "subscr_expected_x_times": "Pri\u010dakujte, da boste v tem obdobju pla\u010dali %{amount} %{times}-krat",
+ "overspent": "Preve\u010d porabljeno",
+ "money_flowing_in": "Na",
+ "money_flowing_out": "Iz",
+ "category": "Kategorija",
+ "unknown_category_plain": "Brez kategorije",
+ "all_money": "Ves va\u0161 denar",
+ "unknown_source_plain": "Neznan izvorni ra\u010dun",
+ "unknown_dest_plain": "Neznan ciljni ra\u010dun",
+ "unknown_any_plain": "Neznan ra\u010dun",
+ "unknown_budget_plain": "Ni prora\u010duna",
+ "stored_journal_js": "Nova transakcija \"%{description}\" je uspe\u0161no ustvarjena",
+ "wait_loading_transaction": "Po\u010dakajte, da se obrazec nalo\u017ei",
+ "nothing_found": "(ni\u010d najdenega)",
+ "wait_loading_data": "Po\u010dakajte, da se va\u0161i podatki nalo\u017eijo...",
+ "Transfer": "Prenos",
+ "Withdrawal": "Odliv",
+ "Deposit": "Priliv",
+ "expense_account": "Ra\u010dun stro\u0161kov",
+ "revenue_account": "Ra\u010dun prihodkov",
+ "budget": "Prora\u010dun",
+ "account_type_Asset account": "Ra\u010dun sredstev",
+ "account_type_Expense account": "Ra\u010dun stro\u0161kov",
+ "account_type_Revenue account": "Ra\u010dun prihodkov",
+ "account_type_Debt": "Dolg",
+ "account_type_Loan": "Posojilo",
+ "account_type_Mortgage": "Hipoteka"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/sv.json b/public/v2/i18n/sv.json
new file mode 100644
index 0000000000..f5939f496d
--- /dev/null
+++ b/public/v2/i18n/sv.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "sv",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spenderat",
+ "left": "\u00c5terst\u00e5r",
+ "paid": "Betald",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Obetald",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "\u00d6veranstr\u00e4ngd",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Ut",
+ "category": "Kategori",
+ "unknown_category_plain": "Ingen kategori",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u00d6verf\u00f6ring",
+ "Withdrawal": "Uttag",
+ "Deposit": "Ins\u00e4ttning",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Skuld",
+ "account_type_Loan": "L\u00e5n",
+ "account_type_Mortgage": "Bol\u00e5n"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/sv_SE.json b/public/v2/i18n/sv_SE.json
new file mode 100644
index 0000000000..f5939f496d
--- /dev/null
+++ b/public/v2/i18n/sv_SE.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "sv",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spenderat",
+ "left": "\u00c5terst\u00e5r",
+ "paid": "Betald",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Obetald",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "\u00d6veranstr\u00e4ngd",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Ut",
+ "category": "Kategori",
+ "unknown_category_plain": "Ingen kategori",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u00d6verf\u00f6ring",
+ "Withdrawal": "Uttag",
+ "Deposit": "Ins\u00e4ttning",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Skuld",
+ "account_type_Loan": "L\u00e5n",
+ "account_type_Mortgage": "Bol\u00e5n"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/tr.json b/public/v2/i18n/tr.json
new file mode 100644
index 0000000000..4510cce784
--- /dev/null
+++ b/public/v2/i18n/tr.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "tr",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Harcanan",
+ "left": "Ayr\u0131ld\u0131",
+ "paid": "\u00d6dendi",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u00d6denmedi",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Fazladan",
+ "money_flowing_in": "\u0130\u00e7eri",
+ "money_flowing_out": "D\u0131\u015far\u0131",
+ "category": "Kategori",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Havale",
+ "Withdrawal": "Para \u00c7ekme",
+ "Deposit": "Mevduat",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "B\u00fct\u00e7e",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Debt",
+ "account_type_Loan": "Loan",
+ "account_type_Mortgage": "Mortgage"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/tr_TR.json b/public/v2/i18n/tr_TR.json
new file mode 100644
index 0000000000..4510cce784
--- /dev/null
+++ b/public/v2/i18n/tr_TR.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "tr",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Harcanan",
+ "left": "Ayr\u0131ld\u0131",
+ "paid": "\u00d6dendi",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u00d6denmedi",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Fazladan",
+ "money_flowing_in": "\u0130\u00e7eri",
+ "money_flowing_out": "D\u0131\u015far\u0131",
+ "category": "Kategori",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Havale",
+ "Withdrawal": "Para \u00c7ekme",
+ "Deposit": "Mevduat",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "B\u00fct\u00e7e",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "Debt",
+ "account_type_Loan": "Loan",
+ "account_type_Mortgage": "Mortgage"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/uk.json b/public/v2/i18n/uk.json
new file mode 100644
index 0000000000..6fa8f9ec5c
--- /dev/null
+++ b/public/v2/i18n/uk.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "uk",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spent",
+ "left": "Left",
+ "paid": "Paid",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Unpaid",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Out",
+ "category": "Category",
+ "unknown_category_plain": "No category",
+ "all_money": "\u0423\u0441\u0456 \u0432\u0430\u0448\u0456 \u0433\u0440\u043e\u0448\u0456",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u041f\u0435\u0440\u0435\u043a\u0430\u0437",
+ "Withdrawal": "\u0412\u0438\u0442\u0440\u0430\u0442\u0430",
+ "Deposit": "Deposit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\u0414\u0435\u0431\u0456\u0442",
+ "account_type_Loan": "\u041f\u043e\u0437\u0438\u043a\u0430",
+ "account_type_Mortgage": "\u0406\u043f\u043e\u0442\u0435\u043a\u0430"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/uk_UA.json b/public/v2/i18n/uk_UA.json
new file mode 100644
index 0000000000..6fa8f9ec5c
--- /dev/null
+++ b/public/v2/i18n/uk_UA.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "uk",
+ "date_time_fns": "MMMM do, yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "Spent",
+ "left": "Left",
+ "paid": "Paid",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Unpaid",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Overspent",
+ "money_flowing_in": "In",
+ "money_flowing_out": "Out",
+ "category": "Category",
+ "unknown_category_plain": "No category",
+ "all_money": "\u0423\u0441\u0456 \u0432\u0430\u0448\u0456 \u0433\u0440\u043e\u0448\u0456",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u041f\u0435\u0440\u0435\u043a\u0430\u0437",
+ "Withdrawal": "\u0412\u0438\u0442\u0440\u0430\u0442\u0430",
+ "Deposit": "Deposit",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Budget",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\u0414\u0435\u0431\u0456\u0442",
+ "account_type_Loan": "\u041f\u043e\u0437\u0438\u043a\u0430",
+ "account_type_Mortgage": "\u0406\u043f\u043e\u0442\u0435\u043a\u0430"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/vi.json b/public/v2/i18n/vi.json
new file mode 100644
index 0000000000..f43809d2e1
--- /dev/null
+++ b/public/v2/i18n/vi.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "vi",
+ "date_time_fns": "d MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u0110\u00e3 chi",
+ "left": "C\u00f2n l\u1ea1i",
+ "paid": "\u0110\u00e3 thanh to\u00e1n",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Ch\u01b0a thanh to\u00e1n",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Qu\u00e1 h\u1ea1n",
+ "money_flowing_in": "V\u00e0o",
+ "money_flowing_out": "Ra",
+ "category": "Danh m\u1ee5c",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Chuy\u1ec3n kho\u1ea3n",
+ "Withdrawal": "R\u00fat ti\u1ec1n",
+ "Deposit": "Ti\u1ec1n g\u1eedi",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Ng\u00e2n s\u00e1ch",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "M\u00f3n n\u1ee3",
+ "account_type_Loan": "Ti\u1ec1n vay",
+ "account_type_Mortgage": "Th\u1ebf ch\u1ea5p"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/vi_VN.json b/public/v2/i18n/vi_VN.json
new file mode 100644
index 0000000000..f43809d2e1
--- /dev/null
+++ b/public/v2/i18n/vi_VN.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "vi",
+ "date_time_fns": "d MMMM yyyy @ HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u0110\u00e3 chi",
+ "left": "C\u00f2n l\u1ea1i",
+ "paid": "\u0110\u00e3 thanh to\u00e1n",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "Ch\u01b0a thanh to\u00e1n",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "Qu\u00e1 h\u1ea1n",
+ "money_flowing_in": "V\u00e0o",
+ "money_flowing_out": "Ra",
+ "category": "Danh m\u1ee5c",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "Chuy\u1ec3n kho\u1ea3n",
+ "Withdrawal": "R\u00fat ti\u1ec1n",
+ "Deposit": "Ti\u1ec1n g\u1eedi",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "Ng\u00e2n s\u00e1ch",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "M\u00f3n n\u1ee3",
+ "account_type_Loan": "Ti\u1ec1n vay",
+ "account_type_Mortgage": "Th\u1ebf ch\u1ea5p"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/zh-cn.json b/public/v2/i18n/zh-cn.json
new file mode 100644
index 0000000000..bd36519138
--- /dev/null
+++ b/public/v2/i18n/zh-cn.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "zh-cn",
+ "date_time_fns": "YYYY\u5e74M\u6708D\u65e5 HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u652f\u51fa",
+ "left": "\u5269\u4f59",
+ "paid": "\u5df2\u4ed8\u6b3e",
+ "errors_submission_v2": "\u60a8\u7684\u63d0\u4ea4\u6709\u8bef\uff0c\u8bf7\u67e5\u770b\u4e0b\u9762\u8f93\u51fa\u7684\u9519\u8bef\u4fe1\u606f: %{errorMessage}",
+ "unpaid": "\u672a\u4ed8\u6b3e",
+ "default_group_title_name_plain": "\u672a\u5206\u7ec4",
+ "subscriptions_in_group": "\u5206\u7ec4\u201c%{title}\u201d\u8ba2\u9605",
+ "subscr_expected_x_times": "\u6b64\u5468\u671f\u9884\u8ba1\u652f\u4ed8%{amount}%{times}\u6b21",
+ "overspent": "\u8d85\u652f",
+ "money_flowing_in": "\u6d41\u5165",
+ "money_flowing_out": "\u6d41\u51fa",
+ "category": "\u5206\u7c7b",
+ "unknown_category_plain": "\u6ca1\u6709\u5206\u7c7b",
+ "all_money": "\u5168\u90e8\u8d44\u91d1",
+ "unknown_source_plain": "\u672a\u77e5\u6765\u6e90\u8d26\u6237",
+ "unknown_dest_plain": "\u672a\u77e5\u76ee\u6807\u8d26\u6237",
+ "unknown_any_plain": "\u672a\u77e5\u8d26\u6237",
+ "unknown_budget_plain": "\u65e0\u9884\u7b97",
+ "stored_journal_js": "\u6210\u529f\u521b\u5efa\u65b0\u4ea4\u6613 \"%{description}\"",
+ "wait_loading_transaction": "\u8bf7\u7b49\u5f85\u8868\u5355\u52a0\u8f7d",
+ "nothing_found": "(\u6ca1\u6709\u627e\u5230)",
+ "wait_loading_data": "\u8bf7\u7b49\u5f85\u60a8\u7684\u4fe1\u606f\u52a0\u8f7d...",
+ "Transfer": "\u8f6c\u8d26",
+ "Withdrawal": "\u652f\u51fa",
+ "Deposit": "\u6536\u5165",
+ "expense_account": "\u652f\u51fa\u8d26\u6237",
+ "revenue_account": "\u6536\u5165\u8d26\u6237",
+ "budget": "\u9884\u7b97",
+ "account_type_Asset account": "\u8d44\u4ea7\u8d26\u6237",
+ "account_type_Expense account": "\u652f\u51fa\u8d26\u6237",
+ "account_type_Revenue account": "\u6536\u5165\u8d26\u6237",
+ "account_type_Debt": "\u6b20\u6b3e",
+ "account_type_Loan": "\u8d37\u6b3e",
+ "account_type_Mortgage": "\u62b5\u62bc"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/zh-tw.json b/public/v2/i18n/zh-tw.json
new file mode 100644
index 0000000000..baeba45075
--- /dev/null
+++ b/public/v2/i18n/zh-tw.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "zh-tw",
+ "date_time_fns": "YYYY\u5e74 M\u6708 D\u65e5 dddd \u65bc HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u652f\u51fa",
+ "left": "\u5269\u9918",
+ "paid": "\u5df2\u4ed8\u6b3e",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u672a\u4ed8\u6b3e",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "\u8d85\u652f",
+ "money_flowing_in": "\u6d41\u5165",
+ "money_flowing_out": "\u6d41\u51fa",
+ "category": "\u5206\u985e",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u8f49\u5e33",
+ "Withdrawal": "\u63d0\u6b3e",
+ "Deposit": "\u5b58\u6b3e",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "\u9810\u7b97",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\u8ca0\u50b5",
+ "account_type_Loan": "\u8cb8\u6b3e",
+ "account_type_Mortgage": "\u62b5\u62bc"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/zh_CN.json b/public/v2/i18n/zh_CN.json
new file mode 100644
index 0000000000..bd36519138
--- /dev/null
+++ b/public/v2/i18n/zh_CN.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "zh-cn",
+ "date_time_fns": "YYYY\u5e74M\u6708D\u65e5 HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u652f\u51fa",
+ "left": "\u5269\u4f59",
+ "paid": "\u5df2\u4ed8\u6b3e",
+ "errors_submission_v2": "\u60a8\u7684\u63d0\u4ea4\u6709\u8bef\uff0c\u8bf7\u67e5\u770b\u4e0b\u9762\u8f93\u51fa\u7684\u9519\u8bef\u4fe1\u606f: %{errorMessage}",
+ "unpaid": "\u672a\u4ed8\u6b3e",
+ "default_group_title_name_plain": "\u672a\u5206\u7ec4",
+ "subscriptions_in_group": "\u5206\u7ec4\u201c%{title}\u201d\u8ba2\u9605",
+ "subscr_expected_x_times": "\u6b64\u5468\u671f\u9884\u8ba1\u652f\u4ed8%{amount}%{times}\u6b21",
+ "overspent": "\u8d85\u652f",
+ "money_flowing_in": "\u6d41\u5165",
+ "money_flowing_out": "\u6d41\u51fa",
+ "category": "\u5206\u7c7b",
+ "unknown_category_plain": "\u6ca1\u6709\u5206\u7c7b",
+ "all_money": "\u5168\u90e8\u8d44\u91d1",
+ "unknown_source_plain": "\u672a\u77e5\u6765\u6e90\u8d26\u6237",
+ "unknown_dest_plain": "\u672a\u77e5\u76ee\u6807\u8d26\u6237",
+ "unknown_any_plain": "\u672a\u77e5\u8d26\u6237",
+ "unknown_budget_plain": "\u65e0\u9884\u7b97",
+ "stored_journal_js": "\u6210\u529f\u521b\u5efa\u65b0\u4ea4\u6613 \"%{description}\"",
+ "wait_loading_transaction": "\u8bf7\u7b49\u5f85\u8868\u5355\u52a0\u8f7d",
+ "nothing_found": "(\u6ca1\u6709\u627e\u5230)",
+ "wait_loading_data": "\u8bf7\u7b49\u5f85\u60a8\u7684\u4fe1\u606f\u52a0\u8f7d...",
+ "Transfer": "\u8f6c\u8d26",
+ "Withdrawal": "\u652f\u51fa",
+ "Deposit": "\u6536\u5165",
+ "expense_account": "\u652f\u51fa\u8d26\u6237",
+ "revenue_account": "\u6536\u5165\u8d26\u6237",
+ "budget": "\u9884\u7b97",
+ "account_type_Asset account": "\u8d44\u4ea7\u8d26\u6237",
+ "account_type_Expense account": "\u652f\u51fa\u8d26\u6237",
+ "account_type_Revenue account": "\u6536\u5165\u8d26\u6237",
+ "account_type_Debt": "\u6b20\u6b3e",
+ "account_type_Loan": "\u8d37\u6b3e",
+ "account_type_Mortgage": "\u62b5\u62bc"
+ }
+}
\ No newline at end of file
diff --git a/public/v2/i18n/zh_TW.json b/public/v2/i18n/zh_TW.json
new file mode 100644
index 0000000000..baeba45075
--- /dev/null
+++ b/public/v2/i18n/zh_TW.json
@@ -0,0 +1,43 @@
+{
+ "config": {
+ "html_language": "zh-tw",
+ "date_time_fns": "YYYY\u5e74 M\u6708 D\u65e5 dddd \u65bc HH:mm:ss",
+ "date_time_fns_short": "MMMM do, yyyy @ HH:mm"
+ },
+ "firefly": {
+ "spent": "\u652f\u51fa",
+ "left": "\u5269\u9918",
+ "paid": "\u5df2\u4ed8\u6b3e",
+ "errors_submission_v2": "There was something wrong with your submission. Please check out the errors below: %{errorMessage}",
+ "unpaid": "\u672a\u4ed8\u6b3e",
+ "default_group_title_name_plain": "ungrouped",
+ "subscriptions_in_group": "Subscriptions in group \"%{title}\"",
+ "subscr_expected_x_times": "Expect to pay %{amount} %{times} times this period",
+ "overspent": "\u8d85\u652f",
+ "money_flowing_in": "\u6d41\u5165",
+ "money_flowing_out": "\u6d41\u51fa",
+ "category": "\u5206\u985e",
+ "unknown_category_plain": "No category",
+ "all_money": "All your money",
+ "unknown_source_plain": "Unknown source account",
+ "unknown_dest_plain": "Unknown destination account",
+ "unknown_any_plain": "Unknown account",
+ "unknown_budget_plain": "No budget",
+ "stored_journal_js": "Successfully created new transaction \"%{description}\"",
+ "wait_loading_transaction": "Please wait for the form to load",
+ "nothing_found": "(nothing found)",
+ "wait_loading_data": "Please wait for your information to load...",
+ "Transfer": "\u8f49\u5e33",
+ "Withdrawal": "\u63d0\u6b3e",
+ "Deposit": "\u5b58\u6b3e",
+ "expense_account": "Expense account",
+ "revenue_account": "Revenue account",
+ "budget": "\u9810\u7b97",
+ "account_type_Asset account": "Asset account",
+ "account_type_Expense account": "Expense account",
+ "account_type_Revenue account": "Revenue account",
+ "account_type_Debt": "\u8ca0\u50b5",
+ "account_type_Loan": "\u8cb8\u6b3e",
+ "account_type_Mortgage": "\u62b5\u62bc"
+ }
+}
\ No newline at end of file
diff --git a/resources/lang/bg_BG/config.php b/resources/lang/bg_BG/config.php
index e64007b783..2628c7060a 100644
--- a/resources/lang/bg_BG/config.php
+++ b/resources/lang/bg_BG/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'bg',
- 'locale' => 'bg, Bulgarian, bg_BG.utf8, bg_BG.UTF-8',
+ 'html_language' => 'bg',
+ 'locale' => 'bg, Bulgarian, bg_BG.utf8, bg_BG.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'Do MMMM YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'Do MMMM, YYYY',
+ 'month_and_day_moment_js' => 'Do MMMM YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'Do MMMM, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'Do MMMM, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'Do MMMM, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Week' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Week' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Понеделник',
- 'dow_2' => 'Вторник',
- 'dow_3' => 'Сряда',
- 'dow_4' => 'Четвъртък',
- 'dow_5' => 'Петък',
- 'dow_6' => 'Събота',
- 'dow_7' => 'Неделя',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Понеделник',
+ 'dow_2' => 'Вторник',
+ 'dow_3' => 'Сряда',
+ 'dow_4' => 'Четвъртък',
+ 'dow_5' => 'Петък',
+ 'dow_6' => 'Събота',
+ 'dow_7' => 'Неделя',
];
/*
diff --git a/resources/lang/bg_BG/errors.php b/resources/lang/bg_BG/errors.php
index a3abb846d2..bc0df2937b 100644
--- a/resources/lang/bg_BG/errors.php
+++ b/resources/lang/bg_BG/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Имаше фатална грешка. Моля, проверете лог файловете в "storage/logs" или използвайте "docker logs -f [container]", за да видите какво се случва.',
'maintenance_mode' => 'Firefly III е в режим на поддръжка.',
'be_right_back' => 'Веднага се връщам!',
- 'check_back' => 'Firefly III е изключен за някаква необходима поддръжка. Моля, проверете отново след секунда.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Опаааа! Случи се грешка.',
'db_error_occurred' => 'Опаааа! Случи се грешка с базата данни.',
'error_not_recoverable' => 'За съжаление от тази грешка не се възстановява :(. Firefly III се счупи. Грешката е:',
diff --git a/resources/lang/bg_BG/firefly.php b/resources/lang/bg_BG/firefly.php
index 43ba9cf0f7..ade7dc4449 100644
--- a/resources/lang/bg_BG/firefly.php
+++ b/resources/lang/bg_BG/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Забравих своето двуфакторно нещо.',
'two_factor_lost_header' => 'Загубихте вашата двуфакторната идентификация?',
'two_factor_lost_intro' => 'Ако сте загубили и резервните си кодове, имате лош късмет. Това не е нещо, което можете да поправите от уеб интерфейса. Имате два варианта.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'В противен случай изпратете имейл на собственика на сайта,<a href="mailto::site_owner">:site_owner</a> и ги помолете да нулират вашето двуфакторно удостоверяване.',
'mfa_backup_code' => 'Използвали сте резервен код, за да влезете в Firefly III. Не може да се използва отново, затова го зачеркнете от списъка си.',
'pref_two_factor_new_backup_codes' => 'Вземете нови резервни кодове',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Група правила за сметки',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/bg_BG/rules.php b/resources/lang/bg_BG/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/bg_BG/rules.php
+++ b/resources/lang/bg_BG/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/bg_BG/validation.php b/resources/lang/bg_BG/validation.php
index 0afc837eb6..1694283723 100644
--- a/resources/lang/bg_BG/validation.php
+++ b/resources/lang/bg_BG/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Поради съображения за сигурност не можете да се регистрирате, като използвате този имейл адрес.',
'rule_trigger_value' => 'Тази стойност е невалидна за избраното задействане.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Тази стойност е невалидна за избраното действие.',
'file_already_attached' => 'Каченият файл ":name" вече е прикачен към този обект.',
'file_attached' => 'Успешно качен файл ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Това не е сигурна парола. Моля, опитайте отново. За повече информация посетете https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Невалиден тип повторение за повтарящи се транзакции.',
'valid_recurrence_rep_moment' => 'Невалиден момент на повторение за този тип повторение.',
'invalid_account_info' => 'Невалидна информация за сметка.',
diff --git a/resources/lang/ca_ES/config.php b/resources/lang/ca_ES/config.php
index 3bd8587a4b..0b34b2aa47 100644
--- a/resources/lang/ca_ES/config.php
+++ b/resources/lang/ca_ES/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'ca',
- 'locale' => 'ca, Català, ca_ES.utf8, ca_ES.utf8',
+ 'html_language' => 'ca',
+ 'locale' => 'ca, Català, ca_ES.utf8, ca_ES.utf8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMM, YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'Do MMMM, YYYY',
+ 'month_and_day_moment_js' => 'D MMM, YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'Do MMMM, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd D [de/d\'] MMMM [de] YYYY',
+ 'month_and_date_day_js' => 'dddd D [de/d\'] MMMM [de] YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'D [de/d\'] MMMM',
+ 'month_and_day_no_year_js' => 'D [de/d\'] MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'Do MMMM, YYYY a les HH:mm:ss',
- 'date_time_fns' => 'D [de/d\'] MMMM yyyy [a les] HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'Do MMMM, YYYY a les HH:mm:ss',
+ 'date_time_fns' => 'D [de/d\'] MMMM yyyy [a les] HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Setmana' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Setmana' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Trimestre' Q, yyyy",
- 'half_year_fns' => "'S{half}', yyyy",
- 'dow_1' => 'Dilluns',
- 'dow_2' => 'Dimarts',
- 'dow_3' => 'Dimecres',
- 'dow_4' => 'Dijous',
- 'dow_5' => 'Divendres',
- 'dow_6' => 'Dissabte',
- 'dow_7' => 'Diumenge',
+ 'quarter_fns' => "'Trimestre' Q, yyyy",
+ 'half_year_fns' => "'S{half}', yyyy",
+ 'dow_1' => 'Dilluns',
+ 'dow_2' => 'Dimarts',
+ 'dow_3' => 'Dimecres',
+ 'dow_4' => 'Dijous',
+ 'dow_5' => 'Divendres',
+ 'dow_6' => 'Dissabte',
+ 'dow_7' => 'Diumenge',
];
/*
diff --git a/resources/lang/ca_ES/errors.php b/resources/lang/ca_ES/errors.php
index 649afbb4d7..2e8fbde8fc 100644
--- a/resources/lang/ca_ES/errors.php
+++ b/resources/lang/ca_ES/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Hi ha hagut un error crític. Si us plau, comprova els fitxers de registre a "emmagatzematge/registre" o utilitza "docker logs -f [container]" per veure què està passant.',
'maintenance_mode' => 'Firefly III està en mode de manteniment.',
'be_right_back' => 'Fins ara!',
- 'check_back' => 'Firefly III no està disponible per manteniment. Si us plau, torni en un moment.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Ups! Hi ha hagut un error.',
'db_error_occurred' => 'Ups! Hi ha hagut un error a la base de dades.',
'error_not_recoverable' => 'Malauradament, no s\'ha pogut recuperar d\'aquest error :(. Firefly III s\'ha trencat. L\'error és:',
diff --git a/resources/lang/ca_ES/firefly.php b/resources/lang/ca_ES/firefly.php
index 5d3fa62a0e..6ea5acbadc 100644
--- a/resources/lang/ca_ES/firefly.php
+++ b/resources/lang/ca_ES/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'He oblidat la meva cosa de dos factors.',
'two_factor_lost_header' => 'Has perdut la teva autenticació en dues passes?',
'two_factor_lost_intro' => 'Si també has perdut els teus codis de seguretat, has tingut mala sort. No hi ha res que puguis fer per arreglar-ho des de la interfície web. Tens dues opcions.',
- 'two_factor_lost_fix_self' => 'Si tens la teva pròpia instància de Firefly III, llegeix <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>aquesta entrada a les FAQ</a> per a obtenir instruccions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Altrament, envia un correu al propietari del lloc, <a href="mailto::site_owner">:site_owner</a> i demana-li que reiniciï la teva autenticació de dues passes.',
'mfa_backup_code' => 'Has fet servir un codi de seguretat per iniciar sessió a Firefly III. No es pot tornar a utilitzar, així que ratlla\'l de la llista.',
'pref_two_factor_new_backup_codes' => 'Obtenir nous codis de seguretat',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Afegir notes a la descripció',
'rule_action_move_descr_to_notes' => 'Substituir les notes per la descripció',
'rule_action_move_notes_to_descr' => 'Substituir la descripció per les notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Establir el compte destí a (efectiu)',
'rule_action_set_source_to_cash_choice' => 'Establir el compte font a (efectiu)',
'rulegroup_for_bills_title' => 'Grup de regles per factures',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Guardiola',
'ale_action_remove_from_piggy' => 'Guardiola',
'ale_action_add_tag' => 'Etiqueta afegida',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Habilita la conversió de moneda',
diff --git a/resources/lang/ca_ES/rules.php b/resources/lang/ca_ES/rules.php
index 69670696ec..82c99cb286 100644
--- a/resources/lang/ca_ES/rules.php
+++ b/resources/lang/ca_ES/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III no pot trobar el pressupost ":name"',
'cannot_find_category' => 'Firefly III no pot trobar la categoria ":name"',
'cannot_set_budget' => 'Firefly III no pot establir el pressupost ":name" a una transacció del tipus ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/ca_ES/validation.php b/resources/lang/ca_ES/validation.php
index 69bef504a0..90c00bd54a 100644
--- a/resources/lang/ca_ES/validation.php
+++ b/resources/lang/ca_ES/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Aquesta transacció ja està reconciliada, no pots canviar el ":field"',
'deleted_user' => 'Per restriccions de seguretat, no et pots registrar amb aquesta adreça de correu electrònic.',
'rule_trigger_value' => 'Aquest valor és invàlid per l\'activador seleccionat.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Aquest valor és invàlid per l\'acció seleccionada.',
'file_already_attached' => 'El fitxer ":name" ja s\'havia afegit a aquest objecte.',
'file_attached' => 'El fitxer ":name" s\'ha pujat satisfactòriament.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Aquesta contrasenya no és segura. Si us plau, prova-ho de nou. Per més informació, visita https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Tipus de repetició invàlid per transaccions periòdiques.',
'valid_recurrence_rep_moment' => 'Moment de repetició invàlid per aquest tipus de repetició.',
'invalid_account_info' => 'Informació de compte invàlida.',
diff --git a/resources/lang/cs_CZ/config.php b/resources/lang/cs_CZ/config.php
index 012ab4e72c..8a0ff0c440 100644
--- a/resources/lang/cs_CZ/config.php
+++ b/resources/lang/cs_CZ/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'cs',
- 'locale' => 'cs, Čeština, cs_CZ, cs_CZ.utf8, cs_CZ.UTF-8',
+ 'html_language' => 'cs',
+ 'locale' => 'cs, Čeština, cs_CZ, cs_CZ.utf8, cs_CZ.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, RRRR',
- 'month_and_day_fns' => 'd MMMM, y',
- 'month_and_day_js' => 'D. MMMM YYYY',
+ 'month_and_day_moment_js' => 'MMM D, RRRR',
+ 'month_and_day_fns' => 'd MMMM, y',
+ 'month_and_day_js' => 'D. MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'D. MMMM YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'D. MMMM YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D. MMMM YYYY',
+ 'specific_day_js' => 'D. MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'týden' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'týden' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Pondělí',
- 'dow_2' => 'Úterý',
- 'dow_3' => 'Středa',
- 'dow_4' => 'Čtvrtek',
- 'dow_5' => 'Pátek',
- 'dow_6' => 'Sobota',
- 'dow_7' => 'Neděle',
+ 'quarter_fns' => "Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Pondělí',
+ 'dow_2' => 'Úterý',
+ 'dow_3' => 'Středa',
+ 'dow_4' => 'Čtvrtek',
+ 'dow_5' => 'Pátek',
+ 'dow_6' => 'Sobota',
+ 'dow_7' => 'Neděle',
];
/*
diff --git a/resources/lang/cs_CZ/errors.php b/resources/lang/cs_CZ/errors.php
index 86d8dae511..0d888e5301 100644
--- a/resources/lang/cs_CZ/errors.php
+++ b/resources/lang/cs_CZ/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Došlo k fatální chybě. Zkontrolujte soubory protokolu v "storage/logs" nebo použijte "docker logs -f [container]", abyste zjistili, co se děje.',
'maintenance_mode' => 'Firefly III je v režimu údržby.',
'be_right_back' => 'Hned jsme zpět!',
- 'check_back' => 'Firefly III je vypnutý kvůli nezbytné údržbě. Zkuste to prosím později.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Jejda! Došlo k chybě.',
'db_error_occurred' => 'Whoops! A database error occurred.',
'error_not_recoverable' => 'Bohužel, tato chyba je neopravitelná :(. Firefly III se pokazil. Chyba je:',
diff --git a/resources/lang/cs_CZ/firefly.php b/resources/lang/cs_CZ/firefly.php
index 935847cd8c..7c6e62b0c9 100644
--- a/resources/lang/cs_CZ/firefly.php
+++ b/resources/lang/cs_CZ/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Zapomněl(a) jsem si nástroj pro dvoufázové ověření.',
'two_factor_lost_header' => 'Ztratili jste své dvoufázové ověření?',
'two_factor_lost_intro' => 'Pokud jste ztratili i své záložní kódy, máte smůlu. Toto se pak už nedá napravit z webového rozhraní. Máte dvě možnosti:',
- 'two_factor_lost_fix_self' => 'Pokud si sami provozujete instanci Firefly III, přečtěte si <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working> tento záznam v FAQ</a> pro instrukce.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'V ostatních případech napište provozovateli, <a href="mailto::site_owner">:site_owner</a> a požádejte ho o resetování svého dvoufázového ověřování.',
'mfa_backup_code' => 'Použitím záložního kódu, umožňujícího přihlášení do Firefly III, platnost kódu zaniká. Takže kód, kterým jste se už přihlásili, už k ničemu není (není možné ho použít opakovaně) proto si ho ze seznamu vyškrtněte.',
'pref_two_factor_new_backup_codes' => 'Získat nové záložní kódy',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Rule group for bills',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/cs_CZ/rules.php b/resources/lang/cs_CZ/rules.php
index c034df02ae..bdc73eb54c 100644
--- a/resources/lang/cs_CZ/rules.php
+++ b/resources/lang/cs_CZ/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III nemůže najít rozpočet ":name"',
'cannot_find_category' => 'Firefly III nemůže najít kategorii ":name"',
'cannot_set_budget' => 'Firefly III nemůže nastavit rozpočet ":name" na transakci typu ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/cs_CZ/validation.php b/resources/lang/cs_CZ/validation.php
index d72b0fe447..1251f4ef2d 100644
--- a/resources/lang/cs_CZ/validation.php
+++ b/resources/lang/cs_CZ/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Z bezpečnostních důvodů se nemůžete registrovat pomocí této emailové adresy.',
'rule_trigger_value' => 'Tato hodnota není platná pro označený spouštěč.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Tato hodnota je neplatná pro vybranou akci.',
'file_already_attached' => 'Nahraný soubor ":name" je již připojen k tomuto objektu.',
'file_attached' => 'Soubor „:name“ úspěšně nahrán.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Toto není bezpečné heslo. Zkuste jiné. Více se dozvíte na http://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Neplatný typ opakování pro opakované transakce.',
'valid_recurrence_rep_moment' => 'Neplatné opakování v tento moment tohoto typu opakování.',
'invalid_account_info' => 'Neplatná informace o účtu.',
diff --git a/resources/lang/da_DK/config.php b/resources/lang/da_DK/config.php
index 717724f9ee..7ef8ebe07a 100644
--- a/resources/lang/da_DK/config.php
+++ b/resources/lang/da_DK/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'da',
- 'locale' => 'da, Danish, da_DK.utf8, da_DK.UTF8',
+ 'html_language' => 'da',
+ 'locale' => 'da, Danish, da_DK.utf8, da_DK.UTF8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMMM, YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'Do MMMM, YYYY',
+ 'month_and_day_moment_js' => 'D MMMM, YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'Do MMMM, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, ÅÅÅÅ',
+ 'month_and_date_day_js' => 'dddd MMMM Do, ÅÅÅÅ',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'D MMMM',
+ 'month_and_day_no_year_js' => 'D MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'Do MMMM, YYYY @ HH:mm:ss',
- 'date_time_fns' => 'MMMM gør, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'Do MMMM, YYYY @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM gør, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] U, GGGG',
- 'week_in_year_fns' => "'Uge' w, yyyy",
+ 'week_in_year_js' => '[Week] U, GGGG',
+ 'week_in_year_fns' => "'Uge' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'kvt.' Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyyy",
- 'dow_1' => 'Mandag',
- 'dow_2' => 'Tirsdag',
- 'dow_3' => 'Onsdag',
- 'dow_4' => 'Torsdag',
- 'dow_5' => 'Fredag',
- 'dow_6' => 'Lørdag',
- 'dow_7' => 'Søndag',
+ 'quarter_fns' => "'kvt.' Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyyy",
+ 'dow_1' => 'Mandag',
+ 'dow_2' => 'Tirsdag',
+ 'dow_3' => 'Onsdag',
+ 'dow_4' => 'Torsdag',
+ 'dow_5' => 'Fredag',
+ 'dow_6' => 'Lørdag',
+ 'dow_7' => 'Søndag',
];
/*
diff --git a/resources/lang/da_DK/errors.php b/resources/lang/da_DK/errors.php
index 45677b70bf..1b4c968717 100644
--- a/resources/lang/da_DK/errors.php
+++ b/resources/lang/da_DK/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Der opstod en alvorlig fejl. Tjek logfilerne i "storage/logs" eller brug "docker logs -f [container]" for at se, hvad der gik galt.',
'maintenance_mode' => 'Firefly III kører i vedligeholdelsestilstand.',
'be_right_back' => 'Er straks tilbage!',
- 'check_back' => 'Firefly III er utilgængelig pga. en nødvendig vedligeholdelse. Tjek venligst tilbage om et sekund.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Beklager, der opstod en fejl.',
'db_error_occurred' => 'Hovsa! Der opstod en databasefejl.',
'error_not_recoverable' => 'Desværre er denne fejl uoprettelig :(. Firefly III brød sammen. Fejlen er:',
diff --git a/resources/lang/da_DK/firefly.php b/resources/lang/da_DK/firefly.php
index 308e4c6c3f..a101a9635a 100644
--- a/resources/lang/da_DK/firefly.php
+++ b/resources/lang/da_DK/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Jeg har glemt min tofaktor-ting.',
'two_factor_lost_header' => 'Glemt din totrinsbekræftelse?',
'two_factor_lost_intro' => 'Hvis du også har glemt dine backupkoder, så er det sort uheld. Det er ikke noget, du kan fikse fra webinterfacet. Du har to muligheder.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Ellers, send en e-mail til sideejeren, <a href="mailto::site_owner">:site_owner</a> og spørg dem om at nulstille din tofaktorgodkendelse.',
'mfa_backup_code' => 'Du har brugt en backupkode til at logge ind på Firefly III. Den kan ikke bruges igen, så streg den fra din liste.',
'pref_two_factor_new_backup_codes' => 'Få nye backupkoder',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Regelgruppe for regninger',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/da_DK/rules.php b/resources/lang/da_DK/rules.php
index 06edad7644..ae0cc0f524 100644
--- a/resources/lang/da_DK/rules.php
+++ b/resources/lang/da_DK/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III kan ikke finde budget ":name"',
'cannot_find_category' => 'Firefly III kan ikke finde kategori ":name"',
'cannot_set_budget' => 'Firefly III kan ikke indstille budget ":name" til en transaktion af typen ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/da_DK/validation.php b/resources/lang/da_DK/validation.php
index 4371db83b5..7a314de739 100644
--- a/resources/lang/da_DK/validation.php
+++ b/resources/lang/da_DK/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Denne transaktion er allerede forsonet, du kan ikke ændre ":field"',
'deleted_user' => 'På grund af sikkerhedspolikker, kan du ikke registrere med denne email adresse.',
'rule_trigger_value' => 'Denne værdi er ikke gyldig for den valgte trigger.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Denne værdi er ikke gyldig for den valgte handling.',
'file_already_attached' => 'Den uploadede fil ":name" er allerede vedhælftet til dette objekt.',
'file_attached' => 'Oploadede succesfuldt filen: ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Dette er ikke en sikker adgangskode. Prøv venligst igen. For mere information, besøg https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Ugyldig type gentalgelse for periodiske transaktioner.',
'valid_recurrence_rep_moment' => 'Ugyldigt øjeblik for denne type gentagelse.',
'invalid_account_info' => 'Ugyldig kontoinformation.',
diff --git a/resources/lang/de_DE/config.php b/resources/lang/de_DE/config.php
index 00e2c3ef04..2b46a9e6db 100644
--- a/resources/lang/de_DE/config.php
+++ b/resources/lang/de_DE/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'de',
- 'locale' => 'de, Deutsch, de_DE.utf8, de_DE.UTF-8',
+ 'html_language' => 'de',
+ 'locale' => 'de, Deutsch, de_DE.utf8, de_DE.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'DD. MMM. YYYY',
- 'month_and_day_fns' => 'D. MMMM Y',
- 'month_and_day_js' => 'Do MMMM YYYY',
+ 'month_and_day_moment_js' => 'DD. MMM. YYYY',
+ 'month_and_day_fns' => 'D. MMMM Y',
+ 'month_and_day_js' => 'Do MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd DD. MMMM YYYY',
+ 'month_and_date_day_js' => 'dddd DD. MMMM YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'DD. MMMM',
+ 'month_and_day_no_year_js' => 'DD. MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'Do MMMM YYYY um HH:mm:ss',
- 'date_time_fns' => 'dd. MMM. yyyy um HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'Do MMMM YYYY um HH:mm:ss',
+ 'date_time_fns' => 'dd. MMM. yyyy um HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D. MMMM YYYY',
+ 'specific_day_js' => 'D. MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[KW] W, GGGG',
- 'week_in_year_fns' => "'Woche' ww/yyyy",
+ 'week_in_year_js' => '[KW] W, GGGG',
+ 'week_in_year_fns' => "'Woche' ww/yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'QQQ, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Montag',
- 'dow_2' => 'Dienstag',
- 'dow_3' => 'Mittwoch',
- 'dow_4' => 'Donnerstag',
- 'dow_5' => 'Freitag',
- 'dow_6' => 'Samstag',
- 'dow_7' => 'Sonntag',
+ 'quarter_fns' => "'Q'QQQ, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Montag',
+ 'dow_2' => 'Dienstag',
+ 'dow_3' => 'Mittwoch',
+ 'dow_4' => 'Donnerstag',
+ 'dow_5' => 'Freitag',
+ 'dow_6' => 'Samstag',
+ 'dow_7' => 'Sonntag',
];
/*
diff --git a/resources/lang/de_DE/errors.php b/resources/lang/de_DE/errors.php
index ed99b6786a..04967be304 100644
--- a/resources/lang/de_DE/errors.php
+++ b/resources/lang/de_DE/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Es gab einen fatalen Fehler. Bitte überprüfen Sie die Logdateien in "storage/logs" oder verwenden Sie "docker logs -f [container]", um zu sehen, was vor sich geht.',
'maintenance_mode' => 'Firefly III ist im Wartungsmodus.',
'be_right_back' => 'Gleich wieder zurück!',
- 'check_back' => 'Firefly III ist für eine notwendige Wartung nicht verfügbar. Bitte versuchen Sie es in einer Sekunde noch einmal.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Hoppla! Ein Fehler ist aufgetreten.',
'db_error_occurred' => 'Hoppla! Ein Datenbankfehler ist aufgetreten.',
'error_not_recoverable' => 'Leider konnte dieser Fehler nicht wiederhergestellt werden :(. Firefly III ist kaputt. Der Fehler ist:',
diff --git a/resources/lang/de_DE/firefly.php b/resources/lang/de_DE/firefly.php
index aaec48568a..4096f541d8 100644
--- a/resources/lang/de_DE/firefly.php
+++ b/resources/lang/de_DE/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Ich kann keine 2FA-Codes generieren.',
'two_factor_lost_header' => 'Haben Sie ihre Zwei-Faktor-Authentifizierung verloren?',
'two_factor_lost_intro' => 'Wenn Sie auch Ihre Sicherungsschlüssel verloren haben, haben Sie Pech. Dies ist nichts, was Sie über die Weboberfläche beheben können. Sie haben jedoch zwei Möglichkeiten.',
- 'two_factor_lost_fix_self' => 'Wenn Sie Ihre eigene Instanz von Firefly III betreiben, lesen Sie <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>diesen Eintrag im FAQ</a> für Anweisungen.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Ansonsten, mailen Sie dem Inhaber der Website, <a href="mailto::site_owner">:site_owner</a> und bitten Sie ihn, Ihre Zwei-Faktor Authentifizierung zurückzusetzen.',
'mfa_backup_code' => 'Sie haben sich mit einem Sicherungsschlüssel bei Firefly III angemeldet. Dieser kann nun nicht mehr verwendet werden, also streichen Sie ihn aus Ihrer Liste.',
'pref_two_factor_new_backup_codes' => 'Neue Sicherungsschlüssel abrufen',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Notizen an die Beschreibung anhängen',
'rule_action_move_descr_to_notes' => 'Notizen durch die Beschreibung ersetzen',
'rule_action_move_notes_to_descr' => 'Beschreibung durch die Notizen ersetzen',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Zielkonto auf (Bargeld) setzen',
'rule_action_set_source_to_cash_choice' => 'Quellkonto auf (Bargeld) setzen',
'rulegroup_for_bills_title' => 'Regelgruppe für Rechnungen',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Sparschwein',
'ale_action_remove_from_piggy' => 'Sparschwein',
'ale_action_add_tag' => 'Schlagwort hinzugefügt',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Währungsumrechnung aktivieren',
diff --git a/resources/lang/de_DE/rules.php b/resources/lang/de_DE/rules.php
index 729843c3cc..62a0d8a179 100644
--- a/resources/lang/de_DE/rules.php
+++ b/resources/lang/de_DE/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III kann kein Budget ":name" finden',
'cannot_find_category' => 'Firefly III kann die Kategorie ":name" nicht finden',
'cannot_set_budget' => 'Firefly III kann das Budget ":name" nicht auf eine Buchung vom Typ ":type" setzen',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/de_DE/validation.php b/resources/lang/de_DE/validation.php
index f8e09f12e3..352dd188fe 100644
--- a/resources/lang/de_DE/validation.php
+++ b/resources/lang/de_DE/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Diese Buchung ist bereits abgeglichen, Sie können das „:field” nicht ändern',
'deleted_user' => 'Aufgrund von Sicherheitsbeschränkungen ist eine Registrierung mit dieser E-Mail-Adresse nicht zugelassen.',
'rule_trigger_value' => 'Dieser Wert ist für den ausgewählten Auslöser ungültig.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Dieser Wert ist für die gewählte Aktion ungültig.',
'file_already_attached' => 'Die hochgeladene Datei „:name” ist diesem Objekt bereits angehängt.',
'file_attached' => 'Datei „:name” erfolgreich hochgeladen.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Dies ist ein unsicheres Passwort. Bitte versuchen Sie es erneut. Weitere Informationen finden Sie unter https://github.com/firefly-iii/help/wiki/Secure-password',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Ungültige Wiederholungsart für Daueraufträge.',
'valid_recurrence_rep_moment' => 'Ungültiges Wiederholungsmoment für diese Art der Wiederholung.',
'invalid_account_info' => 'Ungültige Kontodaten.',
diff --git a/resources/lang/el_GR/config.php b/resources/lang/el_GR/config.php
index 075712073a..9cd4cd7123 100644
--- a/resources/lang/el_GR/config.php
+++ b/resources/lang/el_GR/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'el',
- 'locale' => 'el, Ελληνικά, el_GR.utf8, el_GR.UTF-8',
+ 'html_language' => 'el',
+ 'locale' => 'el, Ελληνικά, el_GR.utf8, el_GR.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMM YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'Do MMMM YYYY',
+ 'month_and_day_moment_js' => 'D MMM YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'Do MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd Do MMMM YYYY',
+ 'month_and_date_day_js' => 'dddd Do MMMM YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'Do MMMM',
+ 'month_and_day_no_year_js' => 'Do MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'Do MMMM YYYY, HH:mm:ss',
- 'date_time_fns' => 'do MMMM yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'Do MMMM YYYY, HH:mm:ss',
+ 'date_time_fns' => 'do MMMM yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Εβδομάδα' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Εβδομάδα' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Δευτέρα',
- 'dow_2' => 'Τρίτη',
- 'dow_3' => 'Τετάρτη',
- 'dow_4' => 'Πέμπτη',
- 'dow_5' => 'Παρασκευή',
- 'dow_6' => 'Σάββατο',
- 'dow_7' => 'Κυριακή',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Δευτέρα',
+ 'dow_2' => 'Τρίτη',
+ 'dow_3' => 'Τετάρτη',
+ 'dow_4' => 'Πέμπτη',
+ 'dow_5' => 'Παρασκευή',
+ 'dow_6' => 'Σάββατο',
+ 'dow_7' => 'Κυριακή',
];
/*
diff --git a/resources/lang/el_GR/errors.php b/resources/lang/el_GR/errors.php
index 96c022a3bd..f5ff1b10c2 100644
--- a/resources/lang/el_GR/errors.php
+++ b/resources/lang/el_GR/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Παρουσιάστηκε σοβαρό σφάλμα. Ελέγξτε τα αρχεία καταγραφής στο "storage/logs" ή χρησιμοποιήστε την εντολή "docker logs -f [container]" για να δείτε τι συμβαίνει.',
'maintenance_mode' => 'Το Firefly III βρίσκεται σε λειτουργία συντήρησης.',
'be_right_back' => 'Επιστρέφω αμέσως!',
- 'check_back' => 'Το Firefly III είναι εκτός λειτουργίας για κάποια απαραίτητη συντήρηση. Ελέγξτε ξανά σε ένα δευτερόλεπτο.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Ωχ! Παρουσιάστηκε σφάλμα.',
'db_error_occurred' => 'Ουπς! Προέκυψε ένα σφάλμα στη βάση δεδομένων.',
'error_not_recoverable' => 'Δυστυχώς, αυτό το σφάλμα δεν ήταν δυνατό να ξεπεραστεί :(. Το Firefly III δε λειτουργεί. Το σφάλμα είναι:',
diff --git a/resources/lang/el_GR/firefly.php b/resources/lang/el_GR/firefly.php
index 2aa367f202..75144ad9cb 100644
--- a/resources/lang/el_GR/firefly.php
+++ b/resources/lang/el_GR/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Ξέχασα τον παράγοντα ταυτοποίησης.',
'two_factor_lost_header' => 'Χάσατε την ταυτότητα δύο παραγόντων;',
'two_factor_lost_intro' => 'Εάν χάσατε τους εφεδρικούς κωδικούς σας επίσης, είστε άτυχοι. Αυτό δε μπορεί να διορθωθεί απευθείας. Έχετε δύο επιλογές.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Ειδάλλως, στείλτε email στον ιδιοκτήτη του ιστότοπου, <a href="mailto::site_owner">:site_owner</a> και ζητήστε να σας επαναφέρει την ταυτότητα δύο παραγόντων.',
'mfa_backup_code' => 'Έχετε χρησιμοποιήσει ένα εφεδρικό κωδικό για να συνδεθείτε στο Firefly III. Δε μπορεί να χρησιμοποιηθεί ξανά, οπότε διαγράψτε το από τη λίστα σας.',
'pref_two_factor_new_backup_codes' => 'Λάβετε νέους εφεδρικούς κωδικούς',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Ομάδα κανόνων για πάγια έξοδα',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Κουμπαράς',
'ale_action_remove_from_piggy' => 'Κουμπαράς',
'ale_action_add_tag' => 'Προστέθηκε ετικέτα',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/el_GR/rules.php b/resources/lang/el_GR/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/el_GR/rules.php
+++ b/resources/lang/el_GR/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/el_GR/validation.php b/resources/lang/el_GR/validation.php
index 9532ff6c2c..66b2bdcf4d 100644
--- a/resources/lang/el_GR/validation.php
+++ b/resources/lang/el_GR/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Αυτή η συναλλαγή έχει ήδη τακτοποιηθεί, δεν μπορείτε να αλλάξετε το ":field"',
'deleted_user' => 'Για λόγους ασφαλείας, δεν μπορείτε να εγγραφείτε χρησιμοποιώντας αυτή τη διεύθυνση email.',
'rule_trigger_value' => 'Αυτή η τιμή δεν είναι έγκυρη για το επιλεγμένο κριτήριο ενεργοποίησης.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Αυτή η τιμή δεν είναι έγκυρη για την επιλεγμένη ενέργεια.',
'file_already_attached' => 'Το μεταφορτωμένο αρχείο ":name" είναι ήδη συνημμένο σε αυτό το αντικείμενο.',
'file_attached' => 'Επιτυχής μεταφόρτωση του αρχείου ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Αυτό δεν είναι ασφαλές συνθηματικό. Παρακαλώ δοκιμάστε ξανά. Για περισσότερες πληροφορίες επισκεφτείτε https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Μη έγκυρος τύπος επανάληψης για επαναλαμβανόμενες συναλλαγές.',
'valid_recurrence_rep_moment' => 'Μη έγκυρη στιγμή επανάληψης για αυτό τον τύπο επανάληψης.',
'invalid_account_info' => 'Μη έγκυρες πληροφορίες λογαριασμού.',
diff --git a/resources/lang/en_GB/config.php b/resources/lang/en_GB/config.php
index 1de568de8d..721fab3ed6 100644
--- a/resources/lang/en_GB/config.php
+++ b/resources/lang/en_GB/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'en-gb',
- 'locale' => 'en, English, en_GB.utf8, en_GB.UTF-8',
+ 'html_language' => 'en-gb',
+ 'locale' => 'en, English, en_GB.utf8, en_GB.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, YYYY',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'MMMM Do, YYYY',
+ 'month_and_day_moment_js' => 'MMM D, YYYY',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'MMMM Do, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Week' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Week' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Monday',
- 'dow_2' => 'Tuesday',
- 'dow_3' => 'Wednesday',
- 'dow_4' => 'Thursday',
- 'dow_5' => 'Friday',
- 'dow_6' => 'Saturday',
- 'dow_7' => 'Sunday',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Monday',
+ 'dow_2' => 'Tuesday',
+ 'dow_3' => 'Wednesday',
+ 'dow_4' => 'Thursday',
+ 'dow_5' => 'Friday',
+ 'dow_6' => 'Saturday',
+ 'dow_7' => 'Sunday',
];
/*
diff --git a/resources/lang/en_GB/errors.php b/resources/lang/en_GB/errors.php
index 62511b57e6..e0c1e34bba 100644
--- a/resources/lang/en_GB/errors.php
+++ b/resources/lang/en_GB/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'There was a fatal error. Please check the log files in "storage/logs" or use "docker logs -f [container]" to see what\'s going on.',
'maintenance_mode' => 'Firefly III is in maintenance mode.',
'be_right_back' => 'Be right back!',
- 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Whoops! An error occurred.',
'db_error_occurred' => 'Whoops! A database error occurred.',
'error_not_recoverable' => 'Unfortunately, this error was not recoverable :(. Firefly III broke. The error is:',
diff --git a/resources/lang/en_GB/firefly.php b/resources/lang/en_GB/firefly.php
index 9dcfdc06bc..d8417d70b3 100644
--- a/resources/lang/en_GB/firefly.php
+++ b/resources/lang/en_GB/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'I forgot my two-factor thing.',
'two_factor_lost_header' => 'Lost your two factor authentication?',
'two_factor_lost_intro' => 'If you lost your backup codes as well, you have bad luck. This is not something you can fix from the web interface. You have two choices.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Otherwise, email the site owner, <a href="mailto::site_owner">:site_owner</a> and ask them to reset your two factor authentication.',
'mfa_backup_code' => 'You have used a backup code to login to Firefly III. It can\'t be used again, so cross it from your list.',
'pref_two_factor_new_backup_codes' => 'Get new backup codes',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Rule group for bills',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/en_GB/rules.php b/resources/lang/en_GB/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/en_GB/rules.php
+++ b/resources/lang/en_GB/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/en_GB/validation.php b/resources/lang/en_GB/validation.php
index 4f09aa3e66..03c41ef6ef 100644
--- a/resources/lang/en_GB/validation.php
+++ b/resources/lang/en_GB/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Due to security constraints, you cannot register using this email address.',
'rule_trigger_value' => 'This value is invalid for the selected trigger.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'This value is invalid for the selected action.',
'file_already_attached' => 'Uploaded file ":name" is already attached to this object.',
'file_attached' => 'Successfully uploaded file ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Invalid repetition type for recurring transactions.',
'valid_recurrence_rep_moment' => 'Invalid repetition moment for this type of repetition.',
'invalid_account_info' => 'Invalid account information.',
diff --git a/resources/lang/es_ES/config.php b/resources/lang/es_ES/config.php
index eeee6239ac..5ac61405d3 100644
--- a/resources/lang/es_ES/config.php
+++ b/resources/lang/es_ES/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'es',
- 'locale' => 'es, Spanish, es_ES.utf8, es_ES.UTF-8',
+ 'html_language' => 'es',
+ 'locale' => 'es, Spanish, es_ES.utf8, es_ES.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'D MMM YYYY',
+ 'month_and_day_moment_js' => 'MMM D, YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'D MMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd, D [de] MMMM [de] YYYY',
+ 'month_and_date_day_js' => 'dddd, D [de] MMMM [de] YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'D [de] MMMM',
+ 'month_and_day_no_year_js' => 'D [de] MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'D MMMM YYYY, HH:mm:ss',
- 'date_time_fns' => 'El MMMM hacer, yyyy a las HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'D MMMM YYYY, HH:mm:ss',
+ 'date_time_fns' => 'El MMMM hacer, yyyy a las HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGG',
- 'week_in_year_fns' => "'Semana' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGG',
+ 'week_in_year_fns' => "'Semana' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Trimestre' Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Lunes',
- 'dow_2' => 'Martes',
- 'dow_3' => 'Miércoles',
- 'dow_4' => 'Jueves',
- 'dow_5' => 'Viernes',
- 'dow_6' => 'Sábado',
- 'dow_7' => 'Domingo',
+ 'quarter_fns' => "'Trimestre' Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Lunes',
+ 'dow_2' => 'Martes',
+ 'dow_3' => 'Miércoles',
+ 'dow_4' => 'Jueves',
+ 'dow_5' => 'Viernes',
+ 'dow_6' => 'Sábado',
+ 'dow_7' => 'Domingo',
];
/*
diff --git a/resources/lang/es_ES/errors.php b/resources/lang/es_ES/errors.php
index 9053dfecd1..a7465ab519 100644
--- a/resources/lang/es_ES/errors.php
+++ b/resources/lang/es_ES/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Hubo un error fatal. Por favor, compruebe los archivos de registro en "almacenamiento/registro" o use "docker logs -f [container]" para ver lo que está sucediendo.',
'maintenance_mode' => 'Firefly III está en modo mantenimiento.',
'be_right_back' => '¡Enseguida vuelvo!',
- 'check_back' => 'Firefly III está apagado para el mantenimiento necesario. Por favor, vuelva en un segundo.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => '¡Uy! un error ha ocurrido.',
'db_error_occurred' => '¡Ups! Se ha producido un error en la base de datos.',
'error_not_recoverable' => 'Desafortunadamente, este error no se pudo recuperar :(. Firefly III se rompió. El error es:',
diff --git a/resources/lang/es_ES/firefly.php b/resources/lang/es_ES/firefly.php
index 93001dadcc..23fb1ede3d 100644
--- a/resources/lang/es_ES/firefly.php
+++ b/resources/lang/es_ES/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Olvidé mi cosa de dos factores.',
'two_factor_lost_header' => '¿Perdiste tu autenticación de doble factor?',
'two_factor_lost_intro' => 'Si también perdiste tus códigos de copia de seguridad, tienes mala suerte. Esto no es algo que puedas arreglar desde la interfaz web. Tienes dos opciones.',
- 'two_factor_lost_fix_self' => 'Si ejecutas tu propia instancia de Firefly III, lee <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>esta entrada en el FAQ</a> para obtener instrucciones.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'De lo contrario, comunícate por mail con el dueño del sitio, <a href="mailto::site_owner">:site_owner</a> y pídele que restablezca tu autenticación de dos pasos.',
'mfa_backup_code' => 'Has usado un código de respaldo para iniciar sesión en Firefly III. No se puede usar de nuevo, así que táchalo de tu lista.',
'pref_two_factor_new_backup_codes' => 'Obtener nuevos códigos de copia de seguridad',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Añadir las notas a la descripción',
'rule_action_move_descr_to_notes' => 'Reemplazar las notas con la descripción',
'rule_action_move_notes_to_descr' => 'Reemplazar la descripción con notas',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Establecer cuenta de destino a (cash)',
'rule_action_set_source_to_cash_choice' => 'Establecer cuenta de origen a (cash)',
'rulegroup_for_bills_title' => 'Regla de grupo para facturas',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Hucha',
'ale_action_remove_from_piggy' => 'Hucha',
'ale_action_add_tag' => 'Etiqueta añadida',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Habilitar conversión de moneda',
diff --git a/resources/lang/es_ES/rules.php b/resources/lang/es_ES/rules.php
index 43e03b72f6..96eea6262b 100644
--- a/resources/lang/es_ES/rules.php
+++ b/resources/lang/es_ES/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III no puede encontrar el presupuesto ":name"',
'cannot_find_category' => 'Firefly III no puede encontrar la categoría ":name"',
'cannot_set_budget' => 'Firefly III no puede establecer el presupuesto ":name" a una transacción de tipo ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/es_ES/validation.php b/resources/lang/es_ES/validation.php
index e8c21aff5e..d653d12dc2 100644
--- a/resources/lang/es_ES/validation.php
+++ b/resources/lang/es_ES/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Esta transacción ya está reconciliada, no puede cambiar ":field"',
'deleted_user' => 'Debido a restricciones de seguridad, no se puede registrar utilizando esta dirección de correo electrónico.',
'rule_trigger_value' => 'Este valor es incorrecto para el disparador seleccionado.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Este valor es incorrecto para la acción seleccionada.',
'file_already_attached' => 'El archivo ":name" ya ha sido añadido a este objeto.',
'file_attached' => 'Archivo ":name" subido con éxito.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Esta contraseña no es segura. Por favor inténtalo de nuevo. Para más información, visita https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Tipo de repetición no válido para transacciones recurrentes.',
'valid_recurrence_rep_moment' => 'Momento de repetición no válido para este tipo de repetición.',
'invalid_account_info' => 'Información de cuenta no válida.',
diff --git a/resources/lang/fi_FI/config.php b/resources/lang/fi_FI/config.php
index 9520542434..c7f5a5bbdf 100644
--- a/resources/lang/fi_FI/config.php
+++ b/resources/lang/fi_FI/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'fi',
- 'locale' => 'fi, Finnish, fi_FI.utf8, fi_FI.UTF-8',
+ 'html_language' => 'fi',
+ 'locale' => 'fi, Finnish, fi_FI.utf8, fi_FI.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMM, YYYY',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'MMMM Do, YYYY',
+ 'month_and_day_moment_js' => 'D MMM, YYYY',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'MMMM Do, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Viikko' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Viikko' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Maanantai',
- 'dow_2' => 'Tiistai',
- 'dow_3' => 'Keskiviikko',
- 'dow_4' => 'Torstai',
- 'dow_5' => 'Perjantai',
- 'dow_6' => 'Lauantai',
- 'dow_7' => 'Sunnuntai',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Maanantai',
+ 'dow_2' => 'Tiistai',
+ 'dow_3' => 'Keskiviikko',
+ 'dow_4' => 'Torstai',
+ 'dow_5' => 'Perjantai',
+ 'dow_6' => 'Lauantai',
+ 'dow_7' => 'Sunnuntai',
];
/*
diff --git a/resources/lang/fi_FI/errors.php b/resources/lang/fi_FI/errors.php
index 2d86fc12a6..c3240cc24e 100644
--- a/resources/lang/fi_FI/errors.php
+++ b/resources/lang/fi_FI/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Tapahtui vakava virhe. Ole hyvä ja tarkista lokitiedostot "storage/logs" tai käytä komentoa "docker logs -f [container]" nähdäksesi mikä menee pieleen.',
'maintenance_mode' => 'Firefly III on huoltotilassa.',
'be_right_back' => 'Palaan pian!',
- 'check_back' => 'Firefly III tekee joitain tarpeellisia huoltotoimenpiteitä. Ole hyvä ja yritä uudelleen hetken kuluttua.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Hupsista! Tapahtui virhe.',
'db_error_occurred' => 'Hupsista! Tapahtui tietokantavirhe.',
'error_not_recoverable' => 'Valitettavasti tästä virheestä ei pystytä palautumaan :(. Firefly III meni rikki. Virhe on:',
diff --git a/resources/lang/fi_FI/firefly.php b/resources/lang/fi_FI/firefly.php
index 2ffb5de7f2..37db8296f7 100644
--- a/resources/lang/fi_FI/firefly.php
+++ b/resources/lang/fi_FI/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Unohdin kaksivaiheisen tunnistusjuttuni.',
'two_factor_lost_header' => 'Unohdit kaksivaiheisen tunnistuksen koodisi?',
'two_factor_lost_intro' => 'Jos olet hävittänyt myös varakoodisi, onnesi on kääntynyt. Tätä et ikävä kyllä pysty korjaamaan selaimella. Sinulla on nyt kaksi vaihtoehtoa.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Muussa tapauksessa, ota yhteyttä ylläpitäjään, <a href="mailto::site_owner">:site_owner</a> ja pyydä että kaksivaiheinen tunnistautumisesi nollataan.',
'mfa_backup_code' => 'Olet käyttänyt varakoodin kirjautuessasi Firefly III:een. Varakoodi on kertakäyttöinen, joten muista merkitä se käytetyksi.',
'pref_two_factor_new_backup_codes' => 'Luo uudet varmistuskoodit',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Sääntöryhmä laskuille',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/fi_FI/rules.php b/resources/lang/fi_FI/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/fi_FI/rules.php
+++ b/resources/lang/fi_FI/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/fi_FI/validation.php b/resources/lang/fi_FI/validation.php
index 7e2632c161..390da3a798 100644
--- a/resources/lang/fi_FI/validation.php
+++ b/resources/lang/fi_FI/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Turvallisuussyistä et pysty käyttämään tätä sähköpostiosoitetta rekisteröitymiseen.',
'rule_trigger_value' => 'Arvo ei kelpaa valitulle ehdolle.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Arvo ei kelpaa valitulle toiminnolle.',
'file_already_attached' => 'Kohteella on jo liite nimeltä ":name".',
'file_attached' => 'Liitteen ":name" lataus onnistui.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Tämä ei ole turvallinen salasana. Yritäpä uudestaan. Lisätietoja löydät osoitteesta https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Virheellinen toiston tyyppi toistuville tapahtumille.',
'valid_recurrence_rep_moment' => 'Virheellinen arvo tämän tyyppiselle toistolle.',
'invalid_account_info' => 'Virheellinen tilitieto.',
diff --git a/resources/lang/fr_FR/config.php b/resources/lang/fr_FR/config.php
index 517e4d2d43..0446199679 100644
--- a/resources/lang/fr_FR/config.php
+++ b/resources/lang/fr_FR/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'fr',
- 'locale' => 'fr, French, fr_FR.utf8, fr_FR.UTF-8',
+ 'html_language' => 'fr',
+ 'locale' => 'fr, French, fr_FR.utf8, fr_FR.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMMM YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'Do MMMM YYYY',
+ 'month_and_day_moment_js' => 'D MMMM YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'Do MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd D MMMM AAAA',
+ 'month_and_date_day_js' => 'dddd D MMMM AAAA',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'D MMMM',
+ 'month_and_day_no_year_js' => 'D MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'Do MMMM YYYY, à HH:mm:ss',
- 'date_time_fns' => 'do MMMM, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'Do MMMM YYYY, à HH:mm:ss',
+ 'date_time_fns' => 'do MMMM, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Semaine' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Semaine' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Lundi',
- 'dow_2' => 'Mardi',
- 'dow_3' => 'Mercredi',
- 'dow_4' => 'Jeudi',
- 'dow_5' => 'Vendredi',
- 'dow_6' => 'Samedi',
- 'dow_7' => 'Dimanche',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Lundi',
+ 'dow_2' => 'Mardi',
+ 'dow_3' => 'Mercredi',
+ 'dow_4' => 'Jeudi',
+ 'dow_5' => 'Vendredi',
+ 'dow_6' => 'Samedi',
+ 'dow_7' => 'Dimanche',
];
/*
diff --git a/resources/lang/fr_FR/errors.php b/resources/lang/fr_FR/errors.php
index ce0e7cf2bb..6e78656fdf 100644
--- a/resources/lang/fr_FR/errors.php
+++ b/resources/lang/fr_FR/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Il y a eu une erreur fatale. Veuillez vérifier les fichiers journaux dans "storage/logs" ou utilisez "docker logs -f [container]" pour voir ce qui se passe.',
'maintenance_mode' => 'Firefly III est en mode maintenance.',
'be_right_back' => 'Je reviens tout de suite !',
- 'check_back' => 'Firefly III est fermé pour cause de maintenace. Veuillez revenir dans une seconde.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Oups ! Une erreur est survenue.',
'db_error_occurred' => 'Oups! Une erreur de base de données s\'est produite.',
'error_not_recoverable' => 'Malheureusement, cette erreur n\'a pas pu être récupérée :(. Firefly III s\'est cassé. L\'erreur est :',
diff --git a/resources/lang/fr_FR/firefly.php b/resources/lang/fr_FR/firefly.php
index 255d69a1b7..8a67ea0c9e 100644
--- a/resources/lang/fr_FR/firefly.php
+++ b/resources/lang/fr_FR/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'J’ai oublié mon code d\'identification à deux facteurs.',
'two_factor_lost_header' => 'Perdu votre authentification à deux facteurs ?',
'two_factor_lost_intro' => 'Si vous avez aussi perdu vos codes de récupération, vous n\'avez pas de chance. Ce n\'est pas quelque chose que vous pouvez corriger depuis l\'interface web. Vous avez deux choix.',
- 'two_factor_lost_fix_self' => 'Si vous exécutez votre propre instance de Firefly III, lisez <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>cette entrée dans la FAQ</a> pour obtenir des instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Dans le cas contraire, contactez le propriétaire du site par courriel <a href="mailto::site_owner">:site_owner</a> et demandez-lui de réinitialiser votre authentification à deux facteurs.',
'mfa_backup_code' => 'Vous avez utilisé un code de récupération pour vous connecter à Firefly III. Il ne peut être réutilisé, donc rayez-le de votre liste.',
'pref_two_factor_new_backup_codes' => 'Obtenir de nouveaux codes de récupération',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Ajouter les notes à la description',
'rule_action_move_descr_to_notes' => 'Remplacer les notes par la description',
'rule_action_move_notes_to_descr' => 'Remplacer la description par les notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Définir le compte de destination à (espèces)',
'rule_action_set_source_to_cash_choice' => 'Définir le compte source à (espèces)',
'rulegroup_for_bills_title' => 'Groupe de règles pour les factures',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Tirelire',
'ale_action_remove_from_piggy' => 'Tirelire',
'ale_action_add_tag' => 'Tag ajouté',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Activer la conversion des devises',
diff --git a/resources/lang/fr_FR/rules.php b/resources/lang/fr_FR/rules.php
index 1df31eb904..fbb66ad9ba 100644
--- a/resources/lang/fr_FR/rules.php
+++ b/resources/lang/fr_FR/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III ne trouve pas le budget ":name"',
'cannot_find_category' => 'Firefly III ne trouve pas la catégorie ":name"',
'cannot_set_budget' => 'Firefly III ne peut pas attribuer le budget ":name" à une opération de type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/fr_FR/validation.php b/resources/lang/fr_FR/validation.php
index 4a4dab522e..c686ef875c 100644
--- a/resources/lang/fr_FR/validation.php
+++ b/resources/lang/fr_FR/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Cette opération est déjà rappochée, vous ne pouvez pas modifier «:field»',
'deleted_user' => 'Compte tenu des contraintes de sécurité, vous ne pouvez pas vous inscrire en utilisant cette adresse e-mail.',
'rule_trigger_value' => 'Cette valeur n’est pas valide pour le déclencheur sélectionné.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Cette valeur n’est pas valide pour l’action sélectionnée.',
'file_already_attached' => 'Le fichier téléchargé ":name" est déjà attaché à cet objet.',
'file_attached' => 'Fichier ":name" téléchargé avec succès.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Ce n\'est pas un mot de passe sécurisé. Veuillez essayez à nouveau. Pour plus d\'informations, visitez https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Type de répétition non valide pour des opérations périodiques.',
'valid_recurrence_rep_moment' => 'Période de répétition non valide pour ce type de répétition.',
'invalid_account_info' => 'Informations de compte non valides.',
diff --git a/resources/lang/hu_HU/config.php b/resources/lang/hu_HU/config.php
index 15fec8e93d..e03f1c767e 100644
--- a/resources/lang/hu_HU/config.php
+++ b/resources/lang/hu_HU/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'hu',
- 'locale' => 'hu, Hungarian, hu_HU.utf8, hu_HU.UTF-8',
+ 'html_language' => 'hu',
+ 'locale' => 'hu, Hungarian, hu_HU.utf8, hu_HU.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'YYYY. MMMM',
+ 'month_js' => 'YYYY. MMMM',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'YYYY. MMM. D.',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'YYYY. MMMM DD.',
+ 'month_and_day_moment_js' => 'YYYY. MMM. D.',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'YYYY. MMMM DD.',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'YYYY. MMMM DD. HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'YYYY. MMMM DD. HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'YYYY. MMMM DD.',
+ 'specific_day_js' => 'YYYY. MMMM DD.',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Week' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Week' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Hétfő',
- 'dow_2' => 'Kedd',
- 'dow_3' => 'Szerda',
- 'dow_4' => 'Csütörtök',
- 'dow_5' => 'Péntek',
- 'dow_6' => 'Szombat',
- 'dow_7' => 'Vasárnap',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Hétfő',
+ 'dow_2' => 'Kedd',
+ 'dow_3' => 'Szerda',
+ 'dow_4' => 'Csütörtök',
+ 'dow_5' => 'Péntek',
+ 'dow_6' => 'Szombat',
+ 'dow_7' => 'Vasárnap',
];
/*
diff --git a/resources/lang/hu_HU/errors.php b/resources/lang/hu_HU/errors.php
index c4055169c5..ca04d3ebfb 100644
--- a/resources/lang/hu_HU/errors.php
+++ b/resources/lang/hu_HU/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Súlyos hiba történt. Kérem ellenőrizze a részleteket a napló fájlokban a "storage/logs" könyvtárban vagy használja a "docker logs -f [container]" parancsot.',
'maintenance_mode' => 'Firefly III karbantartás alatt.',
'be_right_back' => 'Rögtön jövök!',
- 'check_back' => 'FireFly III jelenleg karbantartás alatt. Kérem látogasson vissza később.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Hoppá! Hiba történt.',
'db_error_occurred' => 'Hoppá! Adatbázis hiba történt.',
'error_not_recoverable' => 'Sajnos a hiba után nem sikerült visszaállni :(. A futás megszakadt. A hiba:',
diff --git a/resources/lang/hu_HU/firefly.php b/resources/lang/hu_HU/firefly.php
index 5e54d7178e..3c67b6d8f4 100644
--- a/resources/lang/hu_HU/firefly.php
+++ b/resources/lang/hu_HU/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Elfelejtett kétlépcsős azonosítás.',
'two_factor_lost_header' => 'Elvesztett kétlépcsős hitelesítés?',
'two_factor_lost_intro' => 'Ha a biztonsági kódok is elvesztek, akkor bajban vagy. Ezt nem lehet a webes felületről megjavítani, így két lehetőséged van.',
- 'two_factor_lost_fix_self' => 'Ha saját példányt futtat a Firefly II-ból, akkor olvassa el a <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>ezt a GYIK bejegyzést</a> instrukciókért.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Ellenkező esetben emailt kell küldeni a webhely tulajdonosának a <a href="mailto::site_owner">:site_owner</a> címre, és meg kell kérni, hogy állítsa vissza a kétfaktoros hitelesítést.',
'mfa_backup_code' => 'A biztonsági kód fel lett használva a Firefly III-hoz. Ezt többé nem használhatod fel, így a listáról ez kihúzható.',
'pref_two_factor_new_backup_codes' => 'Új biztonsági kódok igénylése',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Szabálycsoport a számlákhoz',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/hu_HU/rules.php b/resources/lang/hu_HU/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/hu_HU/rules.php
+++ b/resources/lang/hu_HU/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/hu_HU/validation.php b/resources/lang/hu_HU/validation.php
index 4b18951a06..965a673a77 100644
--- a/resources/lang/hu_HU/validation.php
+++ b/resources/lang/hu_HU/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Biztonsági megkötések miatt ezzel az email címmel nem lehet regisztrálni.',
'rule_trigger_value' => 'Ez az érték érvénytelen a kiválasztott eseményindítóhoz.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Ez az érték érvénytelen a kiválasztott művelethez.',
'file_already_attached' => 'A feltöltött ":name" fájl már csatolva van ehhez az objektumhoz.',
'file_attached' => '":name" fájl sikeresen feltöltve.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Ez nem biztonságos jelszó. Kérlek próbáld meg újra. További információért lásd: https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Érvénytelen ismétléstípus az ismétlődő tranzakciókhoz.',
'valid_recurrence_rep_moment' => 'Érvénytelen ismétlési időpont ehhez az ismétléstípushoz.',
'invalid_account_info' => 'Érvénytelen számlainformáció.',
diff --git a/resources/lang/id_ID/config.php b/resources/lang/id_ID/config.php
index 25f6ba4a7f..b5e9caa5ed 100644
--- a/resources/lang/id_ID/config.php
+++ b/resources/lang/id_ID/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'id',
- 'locale' => 'id, Bahasa Indonesia, id_ID.utf8, id_ID.UTF-8',
+ 'html_language' => 'id',
+ 'locale' => 'id, Bahasa Indonesia, id_ID.utf8, id_ID.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, YYYY',
- 'month_and_day_fns' => 'd MMMM, y',
- 'month_and_day_js' => 'DD MMMM YYYY',
+ 'month_and_day_moment_js' => 'MMM D, YYYY',
+ 'month_and_day_fns' => 'd MMMM, y',
+ 'month_and_day_js' => 'DD MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd, Do MMMM YYYY',
+ 'month_and_date_day_js' => 'dddd, Do MMMM YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'Do MMMM',
+ 'month_and_day_no_year_js' => 'Do MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'DD MMMM YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'do MMMM yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'DD MMMM YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'do MMMM yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Mingguan' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Mingguan' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Senin',
- 'dow_2' => 'Selasa',
- 'dow_3' => 'Rabu',
- 'dow_4' => 'Kamis',
- 'dow_5' => 'Jumat',
- 'dow_6' => 'Sabtu',
- 'dow_7' => 'Minggu',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Senin',
+ 'dow_2' => 'Selasa',
+ 'dow_3' => 'Rabu',
+ 'dow_4' => 'Kamis',
+ 'dow_5' => 'Jumat',
+ 'dow_6' => 'Sabtu',
+ 'dow_7' => 'Minggu',
];
/*
diff --git a/resources/lang/id_ID/errors.php b/resources/lang/id_ID/errors.php
index da0d0c5f98..7edd1548ae 100644
--- a/resources/lang/id_ID/errors.php
+++ b/resources/lang/id_ID/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Ada kesalahan fatal. Silakan cek berkas log di "storage/logs" atau gunakan "docker logs -f [container]" untuk melihat apa yang terjadi.',
'maintenance_mode' => 'Firefly III sedang dalam mode pemeliharaan.',
'be_right_back' => 'Segera kembali!',
- 'check_back' => 'Firefly III tidak dapat diakses untuk pemeliharaan. Silakan cek kembali beberapa saat lagi.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Ups! Terjadi kesalahan.',
'db_error_occurred' => 'Whoops! A database error occurred.',
'error_not_recoverable' => 'Sayangnya, kesalahan ini tidak dapat diperbaiki :(. Firefly III mengalami kerusakan. Kesalahan yang terjadi adalah:',
diff --git a/resources/lang/id_ID/firefly.php b/resources/lang/id_ID/firefly.php
index a56783d4c9..7176e0edc4 100644
--- a/resources/lang/id_ID/firefly.php
+++ b/resources/lang/id_ID/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Saya lupa dua faktor saya.',
'two_factor_lost_header' => 'Kehilangan Pengecekan keamanan dua faktor Anda?',
'two_factor_lost_intro' => 'Jika Anda kehilangan kode cadangan Anda pula, keberuntungan Anda buruk sudah. Ini bukanlah sesuatu yang Anda dapat perbaiki dari antarmuka web. Anda mempunyai dua pilihan.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Jika tidak, kirimkan email ke pemilik situs, <a href="mailto::site_owner">:site_owner</a> dan mintalah mereka untuk menyetel ulang Pengecekan keamanan dua faktor Anda.',
'mfa_backup_code' => 'Anda telah menggunakan sebuah kode cadangan untuk masuk ke Firefly III. Kode ini tidak dapat digunakan lagi, jadi coret itu dari daftar Anda.',
'pref_two_factor_new_backup_codes' => 'Hasilkan kode cadangan baru',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Rule group for bills',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/id_ID/rules.php b/resources/lang/id_ID/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/id_ID/rules.php
+++ b/resources/lang/id_ID/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/id_ID/validation.php b/resources/lang/id_ID/validation.php
index 3cbcf7ac4f..464882bbe6 100644
--- a/resources/lang/id_ID/validation.php
+++ b/resources/lang/id_ID/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Kerena kendala keamanan, anda tidak bisa mendaftar menggunkan alamat email ini.',
'rule_trigger_value' => 'Nilai ini tidak validi untuk trigger yang dipilih.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Nilai ini tidak valid untuk tindakan yang dipilih.',
'file_already_attached' => 'Upload file ";name" sudah terpasang pada objek ini.',
'file_attached' => 'Berhasil mengunggah file ": name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Ini bukan sebuah kata sandi yang aman. Silahkan coba lagi. Untuk informasi lebih lanjut, kunjungi https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Tipe pengulangan yang tidak valid untuk transaksi berkala.',
'valid_recurrence_rep_moment' => 'Waktu pengulangan tidaklah valid untuk tipe pengulangan ini.',
'invalid_account_info' => 'Informasi akun tidak valid.',
diff --git a/resources/lang/it_IT/config.php b/resources/lang/it_IT/config.php
index 8130046058..961d827d36 100644
--- a/resources/lang/it_IT/config.php
+++ b/resources/lang/it_IT/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'it',
- 'locale' => 'it, Italiano, it_IT.utf8, it_IT.UTF-8',
+ 'html_language' => 'it',
+ 'locale' => 'it, Italiano, it_IT.utf8, it_IT.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMM YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'D MMMM YYYY',
+ 'month_and_day_moment_js' => 'D MMM YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'D MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd D MMMM YYYY',
+ 'month_and_date_day_js' => 'dddd D MMMM YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'D MMMM',
+ 'month_and_day_no_year_js' => 'D MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'D MMMM YYYY, HH:mm:ss',
- 'date_time_fns' => 'do MMMM yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'D MMMM YYYY, HH:mm:ss',
+ 'date_time_fns' => 'do MMMM yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Settimana' w yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Settimana' w yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\TQ YYYY',
+ 'half_year_js' => '\TQ YYYY',
- 'quarter_fns' => "'T'Q yyyy",
- 'half_year_fns' => "'S{half}' yyyy",
- 'dow_1' => 'Lunedì',
- 'dow_2' => 'Martedì',
- 'dow_3' => 'Mercoledì',
- 'dow_4' => 'Giovedì',
- 'dow_5' => 'Venerdì',
- 'dow_6' => 'Sabato',
- 'dow_7' => 'Domenica',
+ 'quarter_fns' => "'T'Q yyyy",
+ 'half_year_fns' => "'S{half}' yyyy",
+ 'dow_1' => 'Lunedì',
+ 'dow_2' => 'Martedì',
+ 'dow_3' => 'Mercoledì',
+ 'dow_4' => 'Giovedì',
+ 'dow_5' => 'Venerdì',
+ 'dow_6' => 'Sabato',
+ 'dow_7' => 'Domenica',
];
/*
diff --git a/resources/lang/it_IT/errors.php b/resources/lang/it_IT/errors.php
index ecc8493f06..1209e92bad 100644
--- a/resources/lang/it_IT/errors.php
+++ b/resources/lang/it_IT/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Si è verificato un errore fatale. Controlla i file di login "storage/Los" o usa "Docker Los f [container]" per vedere cosa sta succedendo.',
'maintenance_mode' => 'Firefox III è in modalità di manutenzione.',
'be_right_back' => 'Torno subito!',
- 'check_back' => 'Firefly III non è in funzione per una manutenzione necessaria. Ricontrolla tra qualche secondo.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Oops! Si è verificato un errore.',
'db_error_occurred' => 'Oops! Si è verificato un errore del database.',
'error_not_recoverable' => 'Sfortunatamente questo errore non è riparabile :(. Firefly III è rotto. L\'errore è:',
diff --git a/resources/lang/it_IT/firefly.php b/resources/lang/it_IT/firefly.php
index ac75844866..db5aed8b79 100644
--- a/resources/lang/it_IT/firefly.php
+++ b/resources/lang/it_IT/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Ho dimenticato la mia chiave a due fattori.',
'two_factor_lost_header' => 'Hai perso l\'autenticazione a due fattori?',
'two_factor_lost_intro' => 'Se hai perso anche i codici di recupero, sei sfortunato. Questo non è qualcosa che puoi risolvere tramite l\'interfaccia web. Hai due scelte.',
- 'two_factor_lost_fix_self' => 'Se esegui la tua istanza di Firefly III, leggi <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>questo articolo nelle Domande Frequenti</a> per delle istruzioni.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'In caso contrario, invia un mail al proprietario del sito, <a href="mailto::site_owner">:site_owner</a>, e chiedi loro di resettare l\'autenticazione a due fattori.',
'mfa_backup_code' => 'Hai usato un codice di recupero per accedere a Firefly III. Questo codice non potrà essere utilizzato di nuovo, quindi cancellalo dalla lista.',
'pref_two_factor_new_backup_codes' => 'Ottieni nuovi codici di recupero',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Aggiungi le note alla descrizione',
'rule_action_move_descr_to_notes' => 'Sostituisci le note con la descrizione',
'rule_action_move_notes_to_descr' => 'Sostituisci la descrizione con le note',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Imposta il conto di destinazione a (corrente)',
'rule_action_set_source_to_cash_choice' => 'Imposta il conto di origine a (corrente)',
'rulegroup_for_bills_title' => 'Gruppo di regole per le bollette',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Salvadanaio',
'ale_action_remove_from_piggy' => 'Salvadanaio',
'ale_action_add_tag' => 'Etichette aggiunte',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Abilita la conversione della valuta',
diff --git a/resources/lang/it_IT/rules.php b/resources/lang/it_IT/rules.php
index ce31dea2c3..ae42944cbc 100644
--- a/resources/lang/it_IT/rules.php
+++ b/resources/lang/it_IT/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III non riesce a trovare il budget ":name"',
'cannot_find_category' => 'Firefly III non riesce a trovare la categoria ":name"',
'cannot_set_budget' => 'Firefly III non può impostare il budget ":name" a una transazione di tipo ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/it_IT/validation.php b/resources/lang/it_IT/validation.php
index c58d9322bd..6e31214741 100644
--- a/resources/lang/it_IT/validation.php
+++ b/resources/lang/it_IT/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Questa transazione è già riconciliata, non è possibile modificare il campo ":field"',
'deleted_user' => 'A causa dei vincoli di sicurezza, non è possibile registrarsi utilizzando questo indirizzo email.',
'rule_trigger_value' => 'Questo valore non è valido per il trigger selezionato.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Questo valore non è valido per l\'azione selezionata.',
'file_already_attached' => 'Il file caricato ":name" è già associato a questo oggetto.',
'file_attached' => 'File caricato con successo ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Questa non è una password sicura. Riprova. Per maggiori informazioni visita https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Il tipo di ripetizione della transazione ricorrente non è valido.',
'valid_recurrence_rep_moment' => 'Il momento di ripetizione per questo tipo di ripetizione non è valido.',
'invalid_account_info' => 'Informazione sul conto non valida.',
diff --git a/resources/lang/ja_JP/config.php b/resources/lang/ja_JP/config.php
index 1801ba36c3..371bd095d2 100644
--- a/resources/lang/ja_JP/config.php
+++ b/resources/lang/ja_JP/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'ja',
- 'locale' => 'ja, Japanese, ja_JP.utf8, ja_JP.UTF-8',
+ 'html_language' => 'ja',
+ 'locale' => 'ja, Japanese, ja_JP.utf8, ja_JP.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'YYYY年MM月',
+ 'month_js' => 'YYYY年MM月',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'YYYY年MM月D日',
- 'month_and_day_fns' => 'y年 MMMM d日',
- 'month_and_day_js' => 'YYYY年MM月DD日',
+ 'month_and_day_moment_js' => 'YYYY年MM月D日',
+ 'month_and_day_fns' => 'y年 MMMM d日',
+ 'month_and_day_js' => 'YYYY年MM月DD日',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'YYYY年M月D日 dddd',
+ 'month_and_date_day_js' => 'YYYY年M月D日 dddd',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'M月D日',
+ 'month_and_day_no_year_js' => 'M月D日',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'YYYY年MM月DD日 HH:mm:ss',
- 'date_time_fns' => 'yyyy年MMMM月do日 HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'YYYY年MM月DD日 HH:mm:ss',
+ 'date_time_fns' => 'yyyy年MMMM月do日 HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'YYYY年MM月D日',
+ 'specific_day_js' => 'YYYY年MM月D日',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => 'GGGG年W週',
- 'week_in_year_fns' => 'yyyy年w週',
+ 'week_in_year_js' => 'GGGG年W週',
+ 'week_in_year_fns' => 'yyyy年w週',
// 'year' => '%Y',
- 'year_js' => 'YYYY年',
+ 'year_js' => 'YYYY年',
// 'half_year' => '%B %Y',
- 'half_year_js' => 'YYYY年第Q四半期',
+ 'half_year_js' => 'YYYY年第Q四半期',
- 'quarter_fns' => 'yyyy年第Q四半期',
- 'half_year_fns' => 'yyyy年H半期',
- 'dow_1' => '月曜日',
- 'dow_2' => '火曜日',
- 'dow_3' => '水曜日',
- 'dow_4' => '木曜日',
- 'dow_5' => '金曜日',
- 'dow_6' => '土曜日',
- 'dow_7' => '日曜日',
+ 'quarter_fns' => 'yyyy年第Q四半期',
+ 'half_year_fns' => 'yyyy年H半期',
+ 'dow_1' => '月曜日',
+ 'dow_2' => '火曜日',
+ 'dow_3' => '水曜日',
+ 'dow_4' => '木曜日',
+ 'dow_5' => '金曜日',
+ 'dow_6' => '土曜日',
+ 'dow_7' => '日曜日',
];
/*
diff --git a/resources/lang/ja_JP/errors.php b/resources/lang/ja_JP/errors.php
index 8816df25c5..0743f587a9 100644
--- a/resources/lang/ja_JP/errors.php
+++ b/resources/lang/ja_JP/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => '致命的なエラーが発生しました。"storage/logs"にあるログファイルを確認するか、"docker logs -f [container]"を使用して問題点を確認してください。',
'maintenance_mode' => 'Firefly III はメンテナンスモードです。',
'be_right_back' => 'メンテナンスはすぐに終わります。',
- 'check_back' => '必要なメンテナンスを行っているため、Firefly IIIは一時停止しています。しばらくしてからもう一度確認してください。',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => '申し訳ありません。エラーが発生しました。',
'db_error_occurred' => 'おっと!データベースエラーが発生しました。',
'error_not_recoverable' => '残念ながら、このエラーは回復不可能です。Firefly IIIは故障しました。エラーログは以下の通りです:',
diff --git a/resources/lang/ja_JP/firefly.php b/resources/lang/ja_JP/firefly.php
index f4c632b78b..00b51af7b5 100644
--- a/resources/lang/ja_JP/firefly.php
+++ b/resources/lang/ja_JP/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => '2要素認証端末を忘れてしまいました。',
'two_factor_lost_header' => '2要素認証を紛失しましたか?',
'two_factor_lost_intro' => 'バックアップコードも紛失してしまった場合、Webから修正する方法はありません。2つから選ぶことができます。',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'または、サイト管理者 <a href="mailto::site_owner">:site_owner</a> に連絡して2要素認証をリセットしてもらうよう頼んでください。',
'mfa_backup_code' => 'あなたはバックアップコードを利用してログインしました。もし再び使用することが出来ないなら、リストから削除してください。',
'pref_two_factor_new_backup_codes' => '新しいバックアップコードを取得',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => '概要の終わりにメモを追加',
'rule_action_move_descr_to_notes' => 'メモを概要で置き換え',
'rule_action_move_notes_to_descr' => '概要をメモで置き換え',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => '請求のルールグループ',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => '貯金箱',
'ale_action_remove_from_piggy' => '貯金箱',
'ale_action_add_tag' => '追加したタグ',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => '通貨の変換を有効にする',
diff --git a/resources/lang/ja_JP/rules.php b/resources/lang/ja_JP/rules.php
index c2850cbbe5..e754865845 100644
--- a/resources/lang/ja_JP/rules.php
+++ b/resources/lang/ja_JP/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly IIIは予算「:name」を見つけらませんでした',
'cannot_find_category' => 'Firefly IIIはカテゴリ「:name」を見つけらませんでした',
'cannot_set_budget' => 'Firefly IIIは予算「:name」を取引種別「:type」に設定できません',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/ja_JP/validation.php b/resources/lang/ja_JP/validation.php
index 2d9e2afbf1..f802ed6d90 100644
--- a/resources/lang/ja_JP/validation.php
+++ b/resources/lang/ja_JP/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'この取引は照合済みです。「:field」は変更できません。',
'deleted_user' => 'セキュリティ上の制約から、このメールアドレスでは登録できません。',
'rule_trigger_value' => 'この値は選択されたトリガーには無効です。',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'この値は選択された操作には無効です。',
'file_already_attached' => 'アップロードされたファイル ":name"は既に対象に割り当てられています。',
'file_attached' => 'ファイル ":name" のアップロードに成功しました。',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'これは安全なパスワードではありません。もう一度やり直してください。詳細については、https://bit.ly/FF3-password-security を参照してください。',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => '繰り返し取引のタイプが無効です。',
'valid_recurrence_rep_moment' => '無効な繰り返し設定があります。',
'invalid_account_info' => 'アカウント情報が正しくありません。',
diff --git a/resources/lang/ko_KR/config.php b/resources/lang/ko_KR/config.php
index 241d3ca965..a077d55ab6 100644
--- a/resources/lang/ko_KR/config.php
+++ b/resources/lang/ko_KR/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'ko',
- 'locale' => 'ko, Korean, ko_KR.utf8, ko_KR.UTF-8',
+ 'html_language' => 'ko',
+ 'locale' => 'ko, Korean, ko_KR.utf8, ko_KR.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'YYYY년 M월',
+ 'month_js' => 'YYYY년 M월',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'YYYY년 M월 D일',
- 'month_and_day_fns' => 'y년 MMMM d일',
- 'month_and_day_js' => 'YYYY년 MM월 DD일',
+ 'month_and_day_moment_js' => 'YYYY년 M월 D일',
+ 'month_and_day_fns' => 'y년 MMMM d일',
+ 'month_and_day_js' => 'YYYY년 MM월 DD일',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'YYYY년 M월 D일 ddd',
+ 'month_and_date_day_js' => 'YYYY년 M월 D일 ddd',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'M월 D일',
+ 'month_and_day_no_year_js' => 'M월 D일',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'YYYY년 M월 D일 HH:mm:ss',
- 'date_time_fns' => 'YYYY년 M월 D일 HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'YYYY년 M월 D일 HH:mm:ss',
+ 'date_time_fns' => 'YYYY년 M월 D일 HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'YYYY년 MM월 D일',
+ 'specific_day_js' => 'YYYY년 MM월 D일',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => 'YYYY년 w주',
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => 'YYYY년 w주',
// 'year' => '%Y',
- 'year_js' => 'YYYY년',
+ 'year_js' => 'YYYY년',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => 'yyyy년 Q사분기',
- 'half_year_fns' => 'yyyy년 H[반기]',
- 'dow_1' => '월요일',
- 'dow_2' => '화요일',
- 'dow_3' => '수요일',
- 'dow_4' => '목요일',
- 'dow_5' => '금요일',
- 'dow_6' => '토요일',
- 'dow_7' => '일요일',
+ 'quarter_fns' => 'yyyy년 Q사분기',
+ 'half_year_fns' => 'yyyy년 H[반기]',
+ 'dow_1' => '월요일',
+ 'dow_2' => '화요일',
+ 'dow_3' => '수요일',
+ 'dow_4' => '목요일',
+ 'dow_5' => '금요일',
+ 'dow_6' => '토요일',
+ 'dow_7' => '일요일',
];
/*
diff --git a/resources/lang/ko_KR/errors.php b/resources/lang/ko_KR/errors.php
index 4022bc65ef..37563de261 100644
--- a/resources/lang/ko_KR/errors.php
+++ b/resources/lang/ko_KR/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => '치명적인 오류가 발생했습니다. "storage/logs"에서 로그 파일을 확인하거나 "docker logs -f [container]"를 사용하여 진행 상황을 확인하세요.',
'maintenance_mode' => 'Firefly III는 유지 관리 모드입니다.',
'be_right_back' => '곧 돌아올게요!',
- 'check_back' => 'Firefly III가 필수 점검을 위해 다운되었습니다. 잠시후 다시 확인해 주세요.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => '이런! 오류가 발생했습니다.',
'db_error_occurred' => '이런! 데이터베이스 오류가 발생했습니다.',
'error_not_recoverable' => '안타깝게도 이 오류는 복구할 수 없습니다. :( Firefly III 고장. 에러:',
diff --git a/resources/lang/ko_KR/firefly.php b/resources/lang/ko_KR/firefly.php
index 427402a3b7..f5c97e1b62 100644
--- a/resources/lang/ko_KR/firefly.php
+++ b/resources/lang/ko_KR/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => '2단계 인증을 잊었습니다.',
'two_factor_lost_header' => '2단계 인증을 분실하셨나요?',
'two_factor_lost_intro' => '백업 코드도 분실하셨다면 운이 나쁘신 것입니다. 이 문제는 웹 인터페이스에서 해결할 수 있는 문제가 아닙니다. 두 가지 선택지가 있습니다.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => '그렇지 않은 경우 사이트 소유자 <a href="mailto::site_owner">:site_owner</a>에게 이메일을 보내 2단계 인증을 재설정해 달라고 요청하세요.',
'mfa_backup_code' => '백업 코드를 사용하여 Firefly III에 로그인했습니다. 코드는 다시 사용할 수 없으므로 목록에서 삭제하세요.',
'pref_two_factor_new_backup_codes' => '새 백업 코드 얻기',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => '설명에 메모 추가',
'rule_action_move_descr_to_notes' => '노트를 설명으로 바꾸기',
'rule_action_move_notes_to_descr' => '설명을 노트로 바꾸기',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => '청구서에 대한 규칙 그룹',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => '저금통',
'ale_action_remove_from_piggy' => '저금통',
'ale_action_add_tag' => '태그 추가',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => '통화 변환 활성화',
diff --git a/resources/lang/ko_KR/rules.php b/resources/lang/ko_KR/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/ko_KR/rules.php
+++ b/resources/lang/ko_KR/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/ko_KR/validation.php b/resources/lang/ko_KR/validation.php
index a55ad64fa4..24e1f8ec84 100644
--- a/resources/lang/ko_KR/validation.php
+++ b/resources/lang/ko_KR/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => '보안 제약으로 인해 이 이메일 주소를 사용하여 등록할 수 없습니다.',
'rule_trigger_value' => '선택한 트리거에 대해 이 값은 유효하지 않습니다.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => '선택한 액션에 대해 이 값은 유효하지 않습니다.',
'file_already_attached' => '업로드된 파일 ":name"이 이 개체에 이미 첨부되어 있습니다.',
'file_attached' => '":name" 파일을 성공적으로 업로드했습니다.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => "안전한 비밀번호가 아닙니다. 다시 시도해 주세요. 자세한 내용은 https://bit.ly/FF3-password-security 를 \u{200b}\u{200b}방문하세요.",
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => '반복 거래에 대한 반복 유형이 잘못되었습니다.',
'valid_recurrence_rep_moment' => '이 유형의 반복에 대한 반복 시점이 잘못되었습니다.',
'invalid_account_info' => '잘못된 계정 정보입니다.',
diff --git a/resources/lang/nb_NO/config.php b/resources/lang/nb_NO/config.php
index c92b438025..3a7597091a 100644
--- a/resources/lang/nb_NO/config.php
+++ b/resources/lang/nb_NO/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'nb',
- 'locale' => 'no, nb, Norsk, nb_NO, nb_NO.utf8, nb_NO.UTF-8',
+ 'html_language' => 'nb',
+ 'locale' => 'no, nb, Norsk, nb_NO, nb_NO.utf8, nb_NO.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, YYYY',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'MMMM Do, YYYY',
+ 'month_and_day_moment_js' => 'MMM D, YYYY',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'MMMM Do, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do
+ 'month_and_day_no_year_js' => 'MMMM Do
CONTEXTREQUEST',
/*
@@ -63,32 +63,32 @@ CONTEXTREQUEST',
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'do MMMM, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'do MMMM, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Week' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Week' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'kvartal'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Mandag',
- 'dow_2' => 'Tirsdag',
- 'dow_3' => 'Onsdag',
- 'dow_4' => 'Torsdag',
- 'dow_5' => 'Fredag',
- 'dow_6' => 'Lørdag',
- 'dow_7' => 'Søndag',
+ 'quarter_fns' => "'kvartal'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Mandag',
+ 'dow_2' => 'Tirsdag',
+ 'dow_3' => 'Onsdag',
+ 'dow_4' => 'Torsdag',
+ 'dow_5' => 'Fredag',
+ 'dow_6' => 'Lørdag',
+ 'dow_7' => 'Søndag',
];
/*
diff --git a/resources/lang/nb_NO/errors.php b/resources/lang/nb_NO/errors.php
index 584d5046dc..6bd149ca44 100644
--- a/resources/lang/nb_NO/errors.php
+++ b/resources/lang/nb_NO/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Det oppstod en alvorlig feil. Vennligst sjekk loggfilene i "lagring/logg" eller bruk "docker logger -f [container]" for å se hva som skjer.',
'maintenance_mode' => 'Firefly III er i vedlikeholdsmodus.',
'be_right_back' => 'Er straks tilbake!',
- 'check_back' => 'Firefly III er nede for nødvendig vedlikehold. Vennligst sjekk tilbake om en stund.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Beklager, en feil har oppstått.',
'db_error_occurred' => 'Uff da! En databasefeil har oppstått.',
'error_not_recoverable' => 'Dessverre ble ikke denne feilen fikset :(. Firefly III ødelagt. Feilen er:',
diff --git a/resources/lang/nb_NO/firefly.php b/resources/lang/nb_NO/firefly.php
index c139f09d63..c6e223d041 100644
--- a/resources/lang/nb_NO/firefly.php
+++ b/resources/lang/nb_NO/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Jeg har glemt/mistet min tofaktor-ting.',
'two_factor_lost_header' => 'Mistet tofaktorautentisering?',
'two_factor_lost_intro' => 'Hvis du også har mistet sikkerhetskodene din, har du dårlig hell. Noe du ikke kan fikse fra webgrensesnittet. Du har to valg.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Ellers sender du e-postadressen eieren, <a href="mailto::site_owner">:site_owner</a> og ber vedkommende om å tilbakestille tofaktorautentiseringen din.',
'mfa_backup_code' => 'Du har brukt en sikkerhetskode for å logge inn i Firefly III. Den kan ikke brukes igjen, så kryss den fra listen din.',
'pref_two_factor_new_backup_codes' => 'Få nye sikkerhetskoder',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Legg notater til beskrivelsen',
'rule_action_move_descr_to_notes' => 'Erstatt notater med beskrivelse',
'rule_action_move_notes_to_descr' => 'Erstatt beskrivelse med notater',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Regelgruppe for regninger',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Sparegris',
'ale_action_remove_from_piggy' => 'Sparegris',
'ale_action_add_tag' => 'La til tagg',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Aktiver valutakonvertering',
diff --git a/resources/lang/nb_NO/rules.php b/resources/lang/nb_NO/rules.php
index 89246b55da..d0dce413df 100644
--- a/resources/lang/nb_NO/rules.php
+++ b/resources/lang/nb_NO/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III kan ikke finne budsjettet ":name"',
'cannot_find_category' => 'Firefly III kan ikke finne kategorien ":name"',
'cannot_set_budget' => 'Firefly III kan ikke sette budsjettet ":name" til en transaksjon av typen ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/nb_NO/validation.php b/resources/lang/nb_NO/validation.php
index 5fd2039d76..f1e6b12f3c 100644
--- a/resources/lang/nb_NO/validation.php
+++ b/resources/lang/nb_NO/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Denne transaksjonen er allerede avstemt. Du kan ikke endre ":field"',
'deleted_user' => 'På grunn av sikkerhetsbegrensninger kan du ikke registreres med denne e-postadresse.',
'rule_trigger_value' => 'Denne verdien er ugyldig for den valgte triggeren.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Denne verdien er ugyldig for den valgte handlingen.',
'file_already_attached' => 'Opplastede fil ":name" er allerede knyttet til dette objektet.',
'file_attached' => 'Opplasting av fil ":name" var vellykket.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Dette er ikke et sikkert passord. Vennligst prøv igjen. For mer informasjon, se https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Ugyldig repetisjons type for gjentakende transaksjoner.',
'valid_recurrence_rep_moment' => 'Ugyldig repetisjons tid for denne type repetisjon.',
'invalid_account_info' => 'Ugyldig konto informasjon.',
diff --git a/resources/lang/nl_NL/config.php b/resources/lang/nl_NL/config.php
index 4671a67df9..fd2541d062 100644
--- a/resources/lang/nl_NL/config.php
+++ b/resources/lang/nl_NL/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'nl',
- 'locale' => 'nl, Dutch, nl_NL.utf8, nl_NL.UTF-8',
+ 'html_language' => 'nl',
+ 'locale' => 'nl, Dutch, nl_NL.utf8, nl_NL.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMM YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'D MMMM YYYY',
+ 'month_and_day_moment_js' => 'D MMM YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'D MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd D MMMM, YYYY',
+ 'month_and_date_day_js' => 'dddd D MMMM, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'D MMMM',
+ 'month_and_day_no_year_js' => 'D MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'D MMMM YYYY @ HH:mm:ss',
- 'date_time_fns' => 'd MMMM yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'D MMMM YYYY @ HH:mm:ss',
+ 'date_time_fns' => 'd MMMM yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Week' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Week' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Maandag',
- 'dow_2' => 'Dinsdag',
- 'dow_3' => 'Woensdag',
- 'dow_4' => 'Donderdag',
- 'dow_5' => 'Vrijdag',
- 'dow_6' => 'Zaterdag',
- 'dow_7' => 'Zondag',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Maandag',
+ 'dow_2' => 'Dinsdag',
+ 'dow_3' => 'Woensdag',
+ 'dow_4' => 'Donderdag',
+ 'dow_5' => 'Vrijdag',
+ 'dow_6' => 'Zaterdag',
+ 'dow_7' => 'Zondag',
];
/*
diff --git a/resources/lang/nl_NL/errors.php b/resources/lang/nl_NL/errors.php
index c078080b76..9982574a8d 100644
--- a/resources/lang/nl_NL/errors.php
+++ b/resources/lang/nl_NL/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Er is een fatale fout opgetreden. Controleer de logbestanden in "storage/logs" of gebruik "docker logs -f [container]" om te zien wat er gebeurde.',
'maintenance_mode' => 'Firefly III is in onderhoudsmodus.',
'be_right_back' => 'Zo terug!',
- 'check_back' => 'Firefly III is offline voor onderhoud. Kom later terug.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Oeps! Er is een fout opgetreden.',
'db_error_occurred' => 'Oeps! Er is een database-fout opgetreden.',
'error_not_recoverable' => 'Helaas was deze fout niet te herstellen :(. Firefly III is stuk. De fout is:',
diff --git a/resources/lang/nl_NL/firefly.php b/resources/lang/nl_NL/firefly.php
index 92130aa8c5..b2eb27b7ad 100644
--- a/resources/lang/nl_NL/firefly.php
+++ b/resources/lang/nl_NL/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Ik kan geen codes meer genereren.',
'two_factor_lost_header' => 'Kan je geen codes meer genereren?',
'two_factor_lost_intro' => 'Als je ook je backupcodes kwijt bent heb je pech gehad. Dit kan je niet via de web-interface fixen. Je kan kiezen.',
- 'two_factor_lost_fix_self' => 'Als dit jouw Firefly III-installatie is, lees dan <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>deze entry in de FAQ</a>.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Zo niet, stuur dan een e-mail naar <a href="mailto::site_owner">:site_owner</a> en vraag of ze je authenticatie in twee stappen willen resetten.',
'mfa_backup_code' => 'Je hebt een backupcode gebruikt om in te loggen op Firefly III. Deze kan je niet meer gebruiken dus streep hem weg.',
'pref_two_factor_new_backup_codes' => 'Nieuwe backupcodes genereren',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Voeg notitie toe aan beschrijving',
'rule_action_move_descr_to_notes' => 'Notitie vervangen door omschrijving',
'rule_action_move_notes_to_descr' => 'Beschrijving vervangen door notitie',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Verander doelrekening naar (cash)-rekening',
'rule_action_set_source_to_cash_choice' => 'Verander bronrekening naar (cash)-rekening',
'rulegroup_for_bills_title' => 'Regelgroep voor contracten',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Spaarpotje',
'ale_action_remove_from_piggy' => 'Spaarpotje',
'ale_action_add_tag' => 'Tag toegevoegd',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Doe valutaconversie',
diff --git a/resources/lang/nl_NL/rules.php b/resources/lang/nl_NL/rules.php
index e5e6c27748..84312afd8f 100644
--- a/resources/lang/nl_NL/rules.php
+++ b/resources/lang/nl_NL/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III kan budget ":name" niet vinden',
'cannot_find_category' => 'Firefly III kan categorie ":name" niet vinden',
'cannot_set_budget' => 'Firefly III kan budget ":name" niet instellen op een transactie van het type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/nl_NL/validation.php b/resources/lang/nl_NL/validation.php
index 714b70f9d9..1231a2441f 100644
--- a/resources/lang/nl_NL/validation.php
+++ b/resources/lang/nl_NL/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Deze transactie is al afgestemd, dus je kan ":field" niet wijzigen',
'deleted_user' => 'Je kan je niet registreren met dit e-mailadres.',
'rule_trigger_value' => 'Deze waarde is niet geldig voor de geselecteerde trigger.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Deze waarde is niet geldig voor de geselecteerde actie.',
'file_already_attached' => 'Het geuploade bestand ":name" is al gelinkt aan deze transactie.',
'file_attached' => 'Bestand ":name" is succesvol geüpload.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Dit is geen veilig wachtwoord. Probeer het nog een keer. Zie ook: https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Dit is geen geldige herhaling voor periodieke transacties.',
'valid_recurrence_rep_moment' => 'Ongeldig herhaalmoment voor dit type herhaling.',
'invalid_account_info' => 'Ongeldige rekeninginformatie.',
diff --git a/resources/lang/nn_NO/config.php b/resources/lang/nn_NO/config.php
index ffa1fb5a50..67f58b175a 100644
--- a/resources/lang/nn_NO/config.php
+++ b/resources/lang/nn_NO/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'nn',
- 'locale' => 'no, nn, Norsk, nn_NO, nn_NO.utf8, nn_NO.UTF-8',
+ 'html_language' => 'nn',
+ 'locale' => 'no, nn, Norsk, nn_NO, nn_NO.utf8, nn_NO.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, YYYY',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'MMMM Do, YYYY',
+ 'month_and_day_moment_js' => 'MMM D, YYYY',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'MMMM Do, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'Do MMMM',
+ 'month_and_day_no_year_js' => 'Do MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'do MMMM, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'do MMMM, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Week' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Week' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'kvartal'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Måndag',
- 'dow_2' => 'Tysdag',
- 'dow_3' => 'Onsdag',
- 'dow_4' => 'Torsdag',
- 'dow_5' => 'Fredag',
- 'dow_6' => 'Laurdag',
- 'dow_7' => 'Søndag',
+ 'quarter_fns' => "'kvartal'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Måndag',
+ 'dow_2' => 'Tysdag',
+ 'dow_3' => 'Onsdag',
+ 'dow_4' => 'Torsdag',
+ 'dow_5' => 'Fredag',
+ 'dow_6' => 'Laurdag',
+ 'dow_7' => 'Søndag',
];
/*
diff --git a/resources/lang/nn_NO/errors.php b/resources/lang/nn_NO/errors.php
index 3682bb3f5b..e23c2d8779 100644
--- a/resources/lang/nn_NO/errors.php
+++ b/resources/lang/nn_NO/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Det oppstod ein alvorlig feil. Ver venleg å sjekk loggfilene i "lagring/logg" eller bruk "docker logger -f [container]" for å sjå kva som skjer.',
'maintenance_mode' => 'Firefly III er i vedlikeholdsmodus.',
'be_right_back' => 'Er straks tilbake!',
- 'check_back' => 'Firefly III er stogga for nødvendig vedlikehald. Ver venleg å kom tilbake om ei stund.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Oisann! ein feil har oppstått.',
'db_error_occurred' => 'Oisann! Ein databasefeil har oppstått.',
'error_not_recoverable' => 'Dessverre vart ikkje denne feilen fikset :(. Firefly III ødelagt. Feilen er:',
diff --git a/resources/lang/nn_NO/firefly.php b/resources/lang/nn_NO/firefly.php
index edd443820c..29a7f316c3 100644
--- a/resources/lang/nn_NO/firefly.php
+++ b/resources/lang/nn_NO/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Jeg har glemt/mistet min tofaktor-ting.',
'two_factor_lost_header' => 'Mista tofaktorautentisering?',
'two_factor_lost_intro' => 'Om du òg har mistet sikkerhetskodane din, har du uflaks. Noko du ikkje kan fiksa frå webgrensesnittet. Du har to val.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Ellers sender ein epost til eigaren av nettsida, <a href="mailto::site_owner">:site_owner</a> og spør vedkommande om å tilbakestille tofaktorautentiseringa din.',
'mfa_backup_code' => 'Du har brukt ein sikkerhetskode for å logge inn i Firefly III. Den kan ikkje brukes igjen, så kryss den frå lista din.',
'pref_two_factor_new_backup_codes' => 'Få nye sikkerhetskoder',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Legg notat til beskrivinga',
'rule_action_move_descr_to_notes' => 'Erstatt notat med beskriving',
'rule_action_move_notes_to_descr' => 'Erstatt beskriving med notat',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Regelgruppe for rekningar',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Sparegris',
'ale_action_remove_from_piggy' => 'Sparegris',
'ale_action_add_tag' => 'La til nøkkelord',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/nn_NO/rules.php b/resources/lang/nn_NO/rules.php
index 48c1fd32d7..3776caf7e1 100644
--- a/resources/lang/nn_NO/rules.php
+++ b/resources/lang/nn_NO/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/nn_NO/validation.php b/resources/lang/nn_NO/validation.php
index e549a36c7a..3de5ad89e7 100644
--- a/resources/lang/nn_NO/validation.php
+++ b/resources/lang/nn_NO/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'På grunn av sikkerhetsbegrensninger kan du ikkje registreres med denne e-postadresse.',
'rule_trigger_value' => 'Denne verdien er ugyldig for den valde triggeren.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Denne verdien er ugyldig for den valde handlinga.',
'file_already_attached' => 'Opplastede fil ":name" er allereie knytt til dette objektet.',
'file_attached' => 'Opplasting av fil ":name" var vellukka.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Dette er ikkje eit sikkert passord. Ver venleg å prøv igjen. For meir informasjon, sjå https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Ugyldig repetisjons type for gjentakande transaksjonar.',
'valid_recurrence_rep_moment' => 'Ugyldig repetisjons tid for denne type repetisjon.',
'invalid_account_info' => 'Ugyldig konto informasjon.',
diff --git a/resources/lang/pl_PL/config.php b/resources/lang/pl_PL/config.php
index 51123ec55d..3ccaf03335 100644
--- a/resources/lang/pl_PL/config.php
+++ b/resources/lang/pl_PL/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'pl',
- 'locale' => 'pl_PL.utf8, pl_PL.UTF-8',
+ 'html_language' => 'pl',
+ 'locale' => 'pl_PL.utf8, pl_PL.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'D MMMM YYYY',
+ 'month_and_day_moment_js' => 'MMM D, YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'D MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd D MMMM, YYYY',
+ 'month_and_date_day_js' => 'dddd D MMMM, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'D MMMM',
+ 'month_and_day_no_year_js' => 'D MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'D MMMM YYYY [o] HH:mm:ss',
- 'date_time_fns' => 'do MMMM yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'D MMMM YYYY [o] HH:mm:ss',
+ 'date_time_fns' => 'do MMMM yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'tydzień' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'tydzień' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\k\w Q YYYY',
+ 'half_year_js' => '\k\w Q YYYY',
- 'quarter_fns' => "'kwartał' Q, yyyy",
- 'half_year_fns' => "'{half} półrocze' yyyy",
- 'dow_1' => 'Poniedziałek',
- 'dow_2' => 'Wtorek',
- 'dow_3' => 'Środa',
- 'dow_4' => 'Czwartek',
- 'dow_5' => 'Piątek',
- 'dow_6' => 'Sobota',
- 'dow_7' => 'Niedziela',
+ 'quarter_fns' => "'kwartał' Q, yyyy",
+ 'half_year_fns' => "'{half} półrocze' yyyy",
+ 'dow_1' => 'Poniedziałek',
+ 'dow_2' => 'Wtorek',
+ 'dow_3' => 'Środa',
+ 'dow_4' => 'Czwartek',
+ 'dow_5' => 'Piątek',
+ 'dow_6' => 'Sobota',
+ 'dow_7' => 'Niedziela',
];
/*
diff --git a/resources/lang/pl_PL/errors.php b/resources/lang/pl_PL/errors.php
index 6e4cd01c38..aecb7165a6 100644
--- a/resources/lang/pl_PL/errors.php
+++ b/resources/lang/pl_PL/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Wystąpił błąd krytyczny. Sprawdź pliki dziennika w "storage/logs" lub użyj "docker logs -f [container]", aby zobaczyć co się dzieje.',
'maintenance_mode' => 'Firefly III jest w trybie konserwacji.',
'be_right_back' => 'Zaraz wracam!',
- 'check_back' => 'Firefly III jest wyłączony na potrzeby wymaganej konserwacji. Sprawdź ponownie za sekundę.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Ups! Wystąpił błąd.',
'db_error_occurred' => 'Ups! Wystąpił błąd bazy danych.',
'error_not_recoverable' => 'Niestety, nie mogliśmy się pozbierać po tym błędzie :(. Firefly III się popsuło. Błąd to:',
diff --git a/resources/lang/pl_PL/firefly.php b/resources/lang/pl_PL/firefly.php
index 43397aeaee..8b44c29fb9 100644
--- a/resources/lang/pl_PL/firefly.php
+++ b/resources/lang/pl_PL/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Zapomniałem mojego uwierzytelnienia dwuskładnikowego.',
'two_factor_lost_header' => 'Straciłeś uwierzytelnianie dwuskładnikowe?',
'two_factor_lost_intro' => 'Jeżeli także nie masz kodów, to niestety nie masz szczęścia. To nie jest coś, co możemy naprawić z poziomu przeglądarki. Masz dwie opcje.',
- 'two_factor_lost_fix_self' => 'Jeśli jesteś właścicielem tej instalacji Firefly III, przeczytaj <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>ten wpis w FAQ</a>, aby uzyskać instrukcje.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'W przeciwnym razie, powiadom właściciela strony, <a href="mailto::site_owner">:site_owner</a> i poproś go o zresetowanie Twojego uwierzytelnienia dwuskładnikowego.',
'mfa_backup_code' => 'Użyłeś kodu zapasowego do zalogowania się do Firefly III. Nie możesz go użyć ponownie, więc wykreśl go z listy.',
'pref_two_factor_new_backup_codes' => 'Wygeneruj nowe kody zapasowe',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Dołącz notatki do opisu',
'rule_action_move_descr_to_notes' => 'Zastąp notatki opisem',
'rule_action_move_notes_to_descr' => 'Zastąp opis notatkami',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Ustaw konto docelowe na konto gotówkowe',
'rule_action_set_source_to_cash_choice' => 'Ustaw konto źródłowe na konto gotówkowe',
'rulegroup_for_bills_title' => 'Grupa reguł dla rachunków',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Skarbonka',
'ale_action_remove_from_piggy' => 'Skarbonka',
'ale_action_add_tag' => 'Dodano tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Włącz przeliczenie walut',
diff --git a/resources/lang/pl_PL/rules.php b/resources/lang/pl_PL/rules.php
index 08e2f00d96..ee14cf7cf0 100644
--- a/resources/lang/pl_PL/rules.php
+++ b/resources/lang/pl_PL/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III nie może znaleźć budżetu ":name"',
'cannot_find_category' => 'Firefly III nie może znaleźć kategorii ":name"',
'cannot_set_budget' => 'Firefly III nie może ustawić budżetu ":name" dla transakcji typu ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/pl_PL/validation.php b/resources/lang/pl_PL/validation.php
index dc9aa62df9..37e12de971 100644
--- a/resources/lang/pl_PL/validation.php
+++ b/resources/lang/pl_PL/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Ta transakcja jest już uzgodniona, nie można zmienić ":field"',
'deleted_user' => 'Ze względu na zabezpieczenia nie możesz się zarejestrować używając tego adresu e-mail.',
'rule_trigger_value' => 'Ta wartość jest nieprawidłowa dla wybranego wyzwalacza.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Ta wartość jest nieprawidłowa dla wybranej akcji.',
'file_already_attached' => 'Przesłany plik ":name" jest już dołączony do tego obiektu.',
'file_attached' => 'Pomyślnie wgrano plik ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'To nie jest bezpieczne hasło. Proszę spróbować ponownie. Aby uzyskać więcej informacji odwiedź https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Nieprawidłowy typ powtórzeń dla cyklicznych transakcji.',
'valid_recurrence_rep_moment' => 'Nieprawidłowy moment powtórzenia dla tego typu powtórzenia.',
'invalid_account_info' => 'Nieprawidłowe informacje o koncie.',
diff --git a/resources/lang/pt_BR/config.php b/resources/lang/pt_BR/config.php
index ef2f734b28..a58e7f4713 100644
--- a/resources/lang/pt_BR/config.php
+++ b/resources/lang/pt_BR/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'pt-br',
- 'locale' => 'pt-br, pt_BR.utf8, pt_BR.UTF-8',
+ 'html_language' => 'pt-br',
+ 'locale' => 'pt-br, pt_BR.utf8, pt_BR.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM [de] YYYY',
+ 'month_js' => 'MMMM [de] YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'DD [de] MMMM [de] YYYY',
- 'month_and_day_fns' => 'd [de] MMMM [de] y',
- 'month_and_day_js' => 'DD [de] MMMM [de] YYYY',
+ 'month_and_day_moment_js' => 'DD [de] MMMM [de] YYYY',
+ 'month_and_day_fns' => 'd [de] MMMM [de] y',
+ 'month_and_day_js' => 'DD [de] MMMM [de] YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd, D [de] MMMM [de] YYYY',
+ 'month_and_date_day_js' => 'dddd, D [de] MMMM [de] YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'D [de] MMMM',
+ 'month_and_day_no_year_js' => 'D [de] MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'DD [de] MMMM [de] YYYY, [às] HH:mm:ss',
- 'date_time_fns' => 'dd \'de\' MMMM \'de\' yyyy, \'às\' HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'DD [de] MMMM [de] YYYY, [às] HH:mm:ss',
+ 'date_time_fns' => 'dd \'de\' MMMM \'de\' yyyy, \'às\' HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'DD [de] MMMM [de] YYYY',
+ 'specific_day_js' => 'DD [de] MMMM [de] YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Semana] W, GGGG',
- 'week_in_year_fns' => "'Semana' w 'de' yyyy",
+ 'week_in_year_js' => '[Semana] W, GGGG',
+ 'week_in_year_fns' => "'Semana' w 'de' yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\TQ YYYY',
+ 'half_year_js' => '\TQ YYYY',
- 'quarter_fns' => "'T'Q, yyyy",
- 'half_year_fns' => "'S{half}', yyyy",
- 'dow_1' => 'Segunda',
- 'dow_2' => 'Terça',
- 'dow_3' => 'Quarta',
- 'dow_4' => 'Quinta',
- 'dow_5' => 'Sexta',
- 'dow_6' => 'Sábado',
- 'dow_7' => 'Domingo',
+ 'quarter_fns' => "'T'Q, yyyy",
+ 'half_year_fns' => "'S{half}', yyyy",
+ 'dow_1' => 'Segunda',
+ 'dow_2' => 'Terça',
+ 'dow_3' => 'Quarta',
+ 'dow_4' => 'Quinta',
+ 'dow_5' => 'Sexta',
+ 'dow_6' => 'Sábado',
+ 'dow_7' => 'Domingo',
];
/*
diff --git a/resources/lang/pt_BR/errors.php b/resources/lang/pt_BR/errors.php
index 085057e679..0ac40de94a 100644
--- a/resources/lang/pt_BR/errors.php
+++ b/resources/lang/pt_BR/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Houve um erro fatal. Por favor, verifique os arquivos de log em "storage/logs" ou use "docker logs -f [container]" para ver o que está acontecendo.',
'maintenance_mode' => 'Firefly III está em modo de manutenção.',
'be_right_back' => 'Volta logo!',
- 'check_back' => 'Firefly III está fora do ar devido a manutenção necessária. Acesse novamente em alguns instantes.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Ops! Aconteceu um erro.',
'db_error_occurred' => 'Ops! Ocorreu um erro no banco de dados.',
'error_not_recoverable' => 'Infelizmente este erro não é recuperável :(. Firefly III quebrou. O erro é:',
diff --git a/resources/lang/pt_BR/firefly.php b/resources/lang/pt_BR/firefly.php
index 394c9bbd12..90a576ae55 100644
--- a/resources/lang/pt_BR/firefly.php
+++ b/resources/lang/pt_BR/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Esqueci minha autenticação em duas etapas.',
'two_factor_lost_header' => 'Perdeu sua autenticação em duas etapas?',
'two_factor_lost_intro' => 'Se você perdeu seus códigos de backup também, você tem azar. Isso não é algo que você pode corrigir a partir da interface da web. Você tem duas escolhas.',
- 'two_factor_lost_fix_self' => 'Se você roda sua própria instância do Firefly III, leia <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>esta seção no FAQ</a> para instruções.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Caso contrário, entre em contato com o proprietário do site, <a href="mailto::site_owner">:site_owner</a>, e peça que redefina sua autenticação de duas etapas.',
'mfa_backup_code' => 'Você usou um código de backup para acessar o Firefly III. Não pode ser usado novamente, então cruze-o na sua lista.',
'pref_two_factor_new_backup_codes' => 'Obter novos códigos de backup',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Adicionar notas à descrição',
'rule_action_move_descr_to_notes' => 'Substituir notas por descrição',
'rule_action_move_notes_to_descr' => 'Substituir descrição por notas',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Definir a conta destino para (dinheiro)',
'rule_action_set_source_to_cash_choice' => 'Definir a conta de ativo para (dinheiro)',
'rulegroup_for_bills_title' => 'Grupo de regras para faturas',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Cofrinho',
'ale_action_remove_from_piggy' => 'Cofrinho',
'ale_action_add_tag' => 'Tag adicionada',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Habilitar conversão de moeda',
diff --git a/resources/lang/pt_BR/rules.php b/resources/lang/pt_BR/rules.php
index aaaf65d476..e6756875db 100644
--- a/resources/lang/pt_BR/rules.php
+++ b/resources/lang/pt_BR/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'O Firefly III não pode encontrar o orçamento ":name"',
'cannot_find_category' => 'O Firefly III não pode encontrar a categoria ":name"',
'cannot_set_budget' => 'O Firefly III não pode definir o orçamento ":name" à transação de tipo ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/pt_BR/validation.php b/resources/lang/pt_BR/validation.php
index e7a337c2fe..98082dedf3 100644
--- a/resources/lang/pt_BR/validation.php
+++ b/resources/lang/pt_BR/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Esta transação já está reconciliada, você não pode mudar o campo ":field"',
'deleted_user' => 'Devido a restrições de segurança, você não pode se registrar usando este endereço de e-mail.',
'rule_trigger_value' => 'Este valor é inválido para o disparo selecionado.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Este valor é inválido para a ação selecionada.',
'file_already_attached' => 'Arquivo ":name" carregado já está anexado para este objeto.',
'file_attached' => 'Arquivo carregado com sucesso ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Esta não é uma senha segura. Por favor, tente novamente. Para mais informações, visite https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Tipo de repetição inválido para transações recorrentes.',
'valid_recurrence_rep_moment' => 'Momento de repetição inválido para esse tipo de repetição.',
'invalid_account_info' => 'Informação de conta inválida.',
diff --git a/resources/lang/pt_PT/config.php b/resources/lang/pt_PT/config.php
index 88dce3a7cb..f24eb28c5a 100644
--- a/resources/lang/pt_PT/config.php
+++ b/resources/lang/pt_PT/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'pt',
- 'locale' => 'pt, Português, pt_PT.utf8, pt_PT.UTF-8',
+ 'html_language' => 'pt',
+ 'locale' => 'pt, Português, pt_PT.utf8, pt_PT.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMM YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'DD MMMM YYYY',
+ 'month_and_day_moment_js' => 'D MMM YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'DD MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd, DD [de] MMMM [de] YYYY',
+ 'month_and_date_day_js' => 'dddd, DD [de] MMMM [de] YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'DD [de] MMMM',
+ 'month_and_day_no_year_js' => 'DD [de] MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'DD [de] MMMM [de] YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'DO [de] MMMM YYYY, @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'DD [de] MMMM [de] YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'DO [de] MMMM YYYY, @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GG',
- 'week_in_year_fns' => "'Semana' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GG',
+ 'week_in_year_fns' => "'Semana' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\TQ YYYY',
+ 'half_year_js' => '\TQ YYYY',
- 'quarter_fns' => "'T' Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Segunda',
- 'dow_2' => 'Terça',
- 'dow_3' => 'Quarta',
- 'dow_4' => 'Quinta',
- 'dow_5' => 'Sexta',
- 'dow_6' => 'Sábado',
- 'dow_7' => 'Domingo',
+ 'quarter_fns' => "'T' Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Segunda',
+ 'dow_2' => 'Terça',
+ 'dow_3' => 'Quarta',
+ 'dow_4' => 'Quinta',
+ 'dow_5' => 'Sexta',
+ 'dow_6' => 'Sábado',
+ 'dow_7' => 'Domingo',
];
/*
diff --git a/resources/lang/pt_PT/errors.php b/resources/lang/pt_PT/errors.php
index a029a175cc..0bbcbcc48d 100644
--- a/resources/lang/pt_PT/errors.php
+++ b/resources/lang/pt_PT/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Aconteceu um erro fatal. Por favor, verifique os ficheiros de log em "storage/logs" ou use "docker logs -f [container]" para verificar o que se passa.',
'maintenance_mode' => 'O Firefly III está em modo de manutenção.',
'be_right_back' => 'Volto já!',
- 'check_back' => 'Firefly III está desligado para manutenção. Por favor, passe por cá depois.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Oops! Ocorreu um erro.',
'db_error_occurred' => 'Oops! Ocorreu um erro na base de dados.',
'error_not_recoverable' => 'Infelizmente, este erro não era recuperável :(. Firefly III avariou. O erro é:',
diff --git a/resources/lang/pt_PT/firefly.php b/resources/lang/pt_PT/firefly.php
index 3bf7fb39be..338a6a736c 100644
--- a/resources/lang/pt_PT/firefly.php
+++ b/resources/lang/pt_PT/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Esqueci-me da minha cena de 2 passos.',
'two_factor_lost_header' => 'Perdeu a sua autenticação de 2 passos?',
'two_factor_lost_intro' => 'Se também perdeu os códigos de backup, está com azar. Não é algo que se possa resolver pela interface web. Têm duas alternativas.',
- 'two_factor_lost_fix_self' => 'Se tiver a sua própria instância do Firefly III, por favor leia <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working> esta entrada no FAQ</a> para instruções.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Caso contrario, envie um email ao dono da plataforma, <a href="mailto::site_owner">:site_owner</a> e peça-lhe para reiniciar a sua autenticação de 2 passos.',
'mfa_backup_code' => 'Utilizou um código de backup para aceder ao Firefly III. Esse código não pode ser utilizado novamente, é melhor riscá-lo da sua lista.',
'pref_two_factor_new_backup_codes' => 'Obter novos códigos de backup',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Acrescentar notas à descrição',
'rule_action_move_descr_to_notes' => 'Substituir notas por descrição',
'rule_action_move_notes_to_descr' => 'Substituir descrição por notas',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Definir a conta de destino para (cash)',
'rule_action_set_source_to_cash_choice' => 'Definir a conta de origem para (cash)',
'rulegroup_for_bills_title' => 'Grupo de regras para encargos',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Mealheiro',
'ale_action_remove_from_piggy' => 'Mealheiro',
'ale_action_add_tag' => 'Etiqueta adicionada',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Ativar a conversão de moeda',
diff --git a/resources/lang/pt_PT/rules.php b/resources/lang/pt_PT/rules.php
index 280929c0e6..7b0052d70e 100644
--- a/resources/lang/pt_PT/rules.php
+++ b/resources/lang/pt_PT/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/pt_PT/validation.php b/resources/lang/pt_PT/validation.php
index f282d3f5e1..f58448e127 100644
--- a/resources/lang/pt_PT/validation.php
+++ b/resources/lang/pt_PT/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Esta transação já está reconciliada, não pode alterar o ":field"',
'deleted_user' => 'Devido a motivos de segurança, não se pode registar com este email.',
'rule_trigger_value' => 'Este valor é inválido para o gatilho selecionado.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Este valor é inválido para a ação selecionada.',
'file_already_attached' => 'O ficheiro ":name" carregado já está anexado a este objeto.',
'file_attached' => 'Ficheiro carregado com sucesso ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Esta não é uma palavra-passe segura. Tente de novo por favor. Para mais informações visite https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Tipo de repetição inválido para transações recorrentes.',
'valid_recurrence_rep_moment' => 'Momento inválido para este tipo de repetição.',
'invalid_account_info' => 'Informação de conta inválida.',
diff --git a/resources/lang/ro_RO/config.php b/resources/lang/ro_RO/config.php
index 58fe78eaf3..146c7599c0 100644
--- a/resources/lang/ro_RO/config.php
+++ b/resources/lang/ro_RO/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'ro',
- 'locale' => 'ro, Română, ro_RO.utf8, ro_RO.UTF-8',
+ 'html_language' => 'ro',
+ 'locale' => 'ro, Română, ro_RO.utf8, ro_RO.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, YYYY',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'MMMM Do, YYYY',
+ 'month_and_day_moment_js' => 'MMM D, YYYY',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'MMMM Do, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Săptămână' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Săptămână' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyy",
- 'dow_1' => 'Luni',
- 'dow_2' => 'Marţi',
- 'dow_3' => 'Miercuri',
- 'dow_4' => 'Joi',
- 'dow_5' => 'Vineri',
- 'dow_6' => 'Sâmbătă',
- 'dow_7' => 'Duminică',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyy",
+ 'dow_1' => 'Luni',
+ 'dow_2' => 'Marţi',
+ 'dow_3' => 'Miercuri',
+ 'dow_4' => 'Joi',
+ 'dow_5' => 'Vineri',
+ 'dow_6' => 'Sâmbătă',
+ 'dow_7' => 'Duminică',
];
/*
diff --git a/resources/lang/ro_RO/errors.php b/resources/lang/ro_RO/errors.php
index 5d4312315e..9118f2712c 100644
--- a/resources/lang/ro_RO/errors.php
+++ b/resources/lang/ro_RO/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'A existat o eroare fatală. Vă rugăm să verificaţi fişierele de jurnal din "storage/logs" sau utilizaţi "docker logs -f [container] pentru a vedea ce se întâmplă.',
'maintenance_mode' => 'Firefly III este în modul de întreținere.',
'be_right_back' => 'Revin imediat!',
- 'check_back' => 'Firefly III este oprit pentru o întreținere necesară. Vă rugăm să reveniți într-o secundă.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Ups! A apărut o eroare.',
'db_error_occurred' => 'Whoops! A database error occurred.',
'error_not_recoverable' => 'Din păcate, această eroare nu a putut fi recuperată :(. Firefly III s-a stricat. Eroarea este:',
diff --git a/resources/lang/ro_RO/firefly.php b/resources/lang/ro_RO/firefly.php
index d24a79b357..a0db9059b2 100644
--- a/resources/lang/ro_RO/firefly.php
+++ b/resources/lang/ro_RO/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Am uitat autentificarea cu doi factori.',
'two_factor_lost_header' => 'Ai uitat autentificarea cu doi factori?',
'two_factor_lost_intro' => 'Dacă ați pierdut și codurile de rezervă, aveți ghinion. Nu este un lucru pe care îl puteți remedia din interfața web. Aveți două opțiuni.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'În caz contrar, trimiteți prin e-mail proprietarului site-ului <a href="mailto::site_owner">: proprietarul site-ului </a> și solicitați-i să reseteze autentificarea cu doi factori.',
'mfa_backup_code' => 'You have used a backup code to login to Firefly III. It can\'t be used again, so cross it from your list.',
'pref_two_factor_new_backup_codes' => 'Obțineți noi coduri de rezervă',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Grup de reguli pentru facturi',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/ro_RO/rules.php b/resources/lang/ro_RO/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/ro_RO/rules.php
+++ b/resources/lang/ro_RO/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/ro_RO/validation.php b/resources/lang/ro_RO/validation.php
index 72c0da6b8e..49466fbb2b 100644
--- a/resources/lang/ro_RO/validation.php
+++ b/resources/lang/ro_RO/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Din cauza constrângerilor de securitate, nu vă puteți înregistra utilizând această adresă de e-mail.',
'rule_trigger_value' => 'Această valoare nu este validă pentru declanșatorul selectat.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Această valoare nu este validă pentru acțiunea selectată.',
'file_already_attached' => 'Fișierul încărcat ":name" este deja atașat acestui obiect.',
'file_attached' => 'Fișierul ":name" a fost încărcat cu succes.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Aceasta nu este o parolă sigură. Vă rugăm să încercați din nou. Pentru mai multe informații, vizitați https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Tip de repetare nevalid pentru tranzacțiile recurente.',
'valid_recurrence_rep_moment' => 'Momentul repetiției nevalid pentru acest tip de repetare.',
'invalid_account_info' => 'Informațiile contului nevalide.',
diff --git a/resources/lang/ru_RU/config.php b/resources/lang/ru_RU/config.php
index 9050867f9b..c3ebf39ab0 100644
--- a/resources/lang/ru_RU/config.php
+++ b/resources/lang/ru_RU/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'ru',
- 'locale' => 'ru, Russian, ru_RU.utf8, ru_RU.UTF-8',
+ 'html_language' => 'ru',
+ 'locale' => 'ru, Russian, ru_RU.utf8, ru_RU.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMM YYYY',
- 'month_and_day_fns' => 'D MMMM YYYY',
- 'month_and_day_js' => 'Do MMMM YYYY',
+ 'month_and_day_moment_js' => 'D MMM YYYY',
+ 'month_and_day_fns' => 'D MMMM YYYY',
+ 'month_and_day_js' => 'Do MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'Do MMMM YYYY',
+ 'month_and_date_day_js' => 'Do MMMM YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'Do MMMM',
+ 'month_and_day_no_year_js' => 'Do MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'Do MMMM YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'Do MMMM yyyy, @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'Do MMMM YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'Do MMMM yyyy, @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Неделя' ww, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Неделя' ww, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "Q'-й квартал', yyyy",
- 'half_year_fns' => "'{half}-е полугодие', yyyy",
- 'dow_1' => 'Понедельник',
- 'dow_2' => 'Вторник',
- 'dow_3' => 'Среда',
- 'dow_4' => 'Четверг',
- 'dow_5' => 'Пятница',
- 'dow_6' => 'Суббота',
- 'dow_7' => 'Воскресенье',
+ 'quarter_fns' => "Q'-й квартал', yyyy",
+ 'half_year_fns' => "'{half}-е полугодие', yyyy",
+ 'dow_1' => 'Понедельник',
+ 'dow_2' => 'Вторник',
+ 'dow_3' => 'Среда',
+ 'dow_4' => 'Четверг',
+ 'dow_5' => 'Пятница',
+ 'dow_6' => 'Суббота',
+ 'dow_7' => 'Воскресенье',
];
/*
diff --git a/resources/lang/ru_RU/errors.php b/resources/lang/ru_RU/errors.php
index 5bb5a8d366..9758d030b0 100644
--- a/resources/lang/ru_RU/errors.php
+++ b/resources/lang/ru_RU/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Произошла фатальная ошибка. Пожалуйста, проверьте файлы журнала в "storage/logs" или используйте "docker logs -f [container]", чтобы узнать, что происходит.',
'maintenance_mode' => 'Firefly III находится в режиме обслуживания.',
'be_right_back' => 'Временно недоступен!',
- 'check_back' => 'Firefly III отключён для необходимого обслуживания. Пожалуйста, зайдите через секунду.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Упс! Произошла ошибка.',
'db_error_occurred' => 'Упс! Произошла ошибка базы данных.',
'error_not_recoverable' => 'К сожалению, эта ошибка не была исправлена :(. Firefly III сломался. Ошибка:',
diff --git a/resources/lang/ru_RU/firefly.php b/resources/lang/ru_RU/firefly.php
index 999c292800..57d72cd16b 100644
--- a/resources/lang/ru_RU/firefly.php
+++ b/resources/lang/ru_RU/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Я забыл свой ключ для двухфакторной авторизации.',
'two_factor_lost_header' => 'Потеряли вашу двухфакторную аутентификацию?',
'two_factor_lost_intro' => 'Если вы потеряли также и ваши резервные коды, вам не повезло. Эту проблему вы не сможете решить через веб-интерфейс. Теперь у вас есть два варианта.',
- 'two_factor_lost_fix_self' => 'Если вы запускаете собственный экземпляр Firefly III, прочтите <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>эту запись в FAQ</a> для получения инструкций.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Иначе, свяжитесь по email с владельцем сайта <a href="mailto::site_owner">:site_owner</a> и попросите сбросить вашу двухфакторную аутентификацию.',
'mfa_backup_code' => 'Вы использовали резервный код для входа в Firefly III. Его нельзя использовать второй раз, поэтому вычеркните его из своего списка.',
'pref_two_factor_new_backup_codes' => 'Получить новые коды резервирования',
@@ -579,7 +579,7 @@ return [
'search_modifier_interest_date_after_day' => 'Дата транзакции после или в день месяца ":value"',
'search_modifier_book_date_on_year' => 'Дата книги транзакций в году ":value"',
'search_modifier_book_date_on_month' => 'Дата книги транзакций в месяце ":value"',
- 'search_modifier_book_date_on_day' => 'Transaction book date is on day of month ":value"',
+ 'search_modifier_book_date_on_day' => 'Дата начисления процентов приходится на день месяца ":value"',
'search_modifier_not_book_date_on_year' => 'Transaction book date is not in year ":value"',
'search_modifier_not_book_date_on_month' => 'Transaction book date is not in month ":value"',
'search_modifier_not_book_date_on_day' => 'Transaction book date is not on day of month ":value"',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Добавить заметки к описанию',
'rule_action_move_descr_to_notes' => 'Заменить заметки описанием',
'rule_action_move_notes_to_descr' => 'Заменить описание заметками',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Установить счет назначения (кэш)',
'rule_action_set_source_to_cash_choice' => 'Установить исходный счёт (кэш)',
'rulegroup_for_bills_title' => 'Группа правил для счетов к оплате',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Копилка',
'ale_action_remove_from_piggy' => 'Копилка',
'ale_action_add_tag' => 'Добавленный тег',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Включить конвертацию валюты',
diff --git a/resources/lang/ru_RU/rules.php b/resources/lang/ru_RU/rules.php
index fd167a059c..2677aae565 100644
--- a/resources/lang/ru_RU/rules.php
+++ b/resources/lang/ru_RU/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III не может найти бюджет ":name"',
'cannot_find_category' => 'Firefly III не может найти категорию ":name"',
'cannot_set_budget' => 'Firefly III не может установить бюджет ":name" транзакции типа ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/ru_RU/validation.php b/resources/lang/ru_RU/validation.php
index a37d8fe832..10751fb152 100644
--- a/resources/lang/ru_RU/validation.php
+++ b/resources/lang/ru_RU/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Эта транзакция уже сверена, вы не можете изменить ":field"',
'deleted_user' => 'По соображениям безопасности, вы не можете зарегистрироваться, используя этот адрес электронной почты.',
'rule_trigger_value' => 'Это значение является недопустимым для выбранного триггера.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Это значение является недопустимым для выбранного действия.',
'file_already_attached' => 'Загруженный файл ":name" уже прикреплён к этому объекту.',
'file_attached' => 'Файл ":name". успешно загружен.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Это не безопасный пароль. Попробуйте еще раз. Подробнее можно узнать по ссылке https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Недопустимый тип для повторяющихся транзакций.',
'valid_recurrence_rep_moment' => 'Неверный период повторения для данного типа повторений.',
'invalid_account_info' => 'Неверные данные о счёте.',
diff --git a/resources/lang/sk_SK/config.php b/resources/lang/sk_SK/config.php
index f7884a19c7..d02ef2f251 100644
--- a/resources/lang/sk_SK/config.php
+++ b/resources/lang/sk_SK/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'sk',
- 'locale' => 'sk, Slovenčina, sk_SK, sk_SK.utf8, sk_SK.UTF-8',
+ 'html_language' => 'sk',
+ 'locale' => 'sk, Slovenčina, sk_SK, sk_SK.utf8, sk_SK.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, RRRR',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'D. MMMM YYYY',
+ 'month_and_day_moment_js' => 'MMM D, RRRR',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'D. MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'D. MMMM YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'D. MMMM YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D. MMMM YYYY',
+ 'specific_day_js' => 'D. MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Týždeň' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Týždeň' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Pondelok',
- 'dow_2' => 'Utorok',
- 'dow_3' => 'Streda',
- 'dow_4' => 'Štvrtok',
- 'dow_5' => 'Piatok',
- 'dow_6' => 'Sobota',
- 'dow_7' => 'Nedeľa',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Pondelok',
+ 'dow_2' => 'Utorok',
+ 'dow_3' => 'Streda',
+ 'dow_4' => 'Štvrtok',
+ 'dow_5' => 'Piatok',
+ 'dow_6' => 'Sobota',
+ 'dow_7' => 'Nedeľa',
];
/*
diff --git a/resources/lang/sk_SK/errors.php b/resources/lang/sk_SK/errors.php
index d2d0d6efc4..959e6af559 100644
--- a/resources/lang/sk_SK/errors.php
+++ b/resources/lang/sk_SK/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Vyskytla sa závažná chyba. Prosím, pre zistenie, čo sa stalo, skontrolujte chybový záznam v "storage/logs" alebo použite "docker logs -f [container]".',
'maintenance_mode' => 'Firefly III je v údržbovom režime.',
'be_right_back' => 'Hneď sme späť!',
- 'check_back' => 'Firefly III je nedostupný kvôli nevyhnutnej údržbe. Prosím, skúste to neskôr.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Ups! Vyskytla sa chyba.',
'db_error_occurred' => 'Whoops! A database error occurred.',
'error_not_recoverable' => 'Nanešťastie, túto chybu nie je možné opraviť :(. Firefly III sa pokazil. Chyba:',
diff --git a/resources/lang/sk_SK/firefly.php b/resources/lang/sk_SK/firefly.php
index 4ff9402a88..2db97583e1 100644
--- a/resources/lang/sk_SK/firefly.php
+++ b/resources/lang/sk_SK/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Zabudol(a) som si nástroj pro dvojfázové overenie.',
'two_factor_lost_header' => 'Ztratili ste svoje dvojfázové overenie?',
'two_factor_lost_intro' => 'Ak ste stratili aj svoje záložné kódy, máte smolu. Nie je to niečo, čo by ste mohli opraviť z webového rozhrania. Máte dve možnosti.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'V ostatných prípadoch napíšte prevádzkovateľovi, <a href="mailto::site_owner">:site_owner</a> a požiadajte ho o obnovenie vášho dvojfázového overenia.',
'mfa_backup_code' => 'Použitím záložného kódu, umožňujúceho prihlásenie do Firefly III, platnosť kódu zaniká. Takže kód, ktorým ste sa už prihlásili, už vám je k ničomu (nie je možné ho použiť opakovane) - preto si ho zo zoznamu vyškrtnite.',
'pref_two_factor_new_backup_codes' => 'Získať nové záložní kódy',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Skupina pravidiel pre účty',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/sk_SK/rules.php b/resources/lang/sk_SK/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/sk_SK/rules.php
+++ b/resources/lang/sk_SK/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/sk_SK/validation.php b/resources/lang/sk_SK/validation.php
index 0d3c1a5930..861a30f0c3 100644
--- a/resources/lang/sk_SK/validation.php
+++ b/resources/lang/sk_SK/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Z bezpečnostných dôvodov pre registráciu nemôžete použiť túto emailovú adresu.',
'rule_trigger_value' => 'Táto hodnota je pre označený spúšťač neplatná.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Táto hodnota je pre vybranú akciu neplatná.',
'file_already_attached' => 'Nahraný soubor ":name" je už k tomuto objektu pripojený.',
'file_attached' => 'Soubor „:name“ úspěšně nahrán.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Toto nie je bezpečné heslo. Skúste iné. Viac se dozviete na http://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Neplatný typ opakovania pre opakované transakcie.',
'valid_recurrence_rep_moment' => 'Neplatný moment opakovania pre tento typ opakovania.',
'invalid_account_info' => 'Neplatná informácia o účte.',
diff --git a/resources/lang/sl_SI/config.php b/resources/lang/sl_SI/config.php
index 1b838a4b6a..15ea9c9dad 100644
--- a/resources/lang/sl_SI/config.php
+++ b/resources/lang/sl_SI/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'sl',
- 'locale' => 'sl, Slovenščina, sl_SI, sl_SI.utf8, sl_SI.UTF-8',
+ 'html_language' => 'sl',
+ 'locale' => 'sl, Slovenščina, sl_SI, sl_SI.utf8, sl_SI.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D. MMM, YYYY',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'MMMM Do, YYYY',
+ 'month_and_day_moment_js' => 'D. MMM, YYYY',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'MMMM Do, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'Do MMMM',
+ 'month_and_day_no_year_js' => 'Do MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'D. MMMM, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'D. MMMM, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D. MMMM YYYY',
+ 'specific_day_js' => 'D. MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Week' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Week' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Ponedeljek',
- 'dow_2' => 'Torek',
- 'dow_3' => 'Sreda',
- 'dow_4' => 'Četrtek',
- 'dow_5' => 'Petek',
- 'dow_6' => 'Sobota',
- 'dow_7' => 'Nedelja',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Ponedeljek',
+ 'dow_2' => 'Torek',
+ 'dow_3' => 'Sreda',
+ 'dow_4' => 'Četrtek',
+ 'dow_5' => 'Petek',
+ 'dow_6' => 'Sobota',
+ 'dow_7' => 'Nedelja',
];
/*
diff --git a/resources/lang/sl_SI/errors.php b/resources/lang/sl_SI/errors.php
index d1ccd063a8..9262b3a41c 100644
--- a/resources/lang/sl_SI/errors.php
+++ b/resources/lang/sl_SI/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Prišlo je do usodne napake. Preverite dnevniške datoteke v "storage/logs" ali uporabite "docker logs -f [container]", da vidite, kaj se dogaja.',
'maintenance_mode' => 'Firefly III je v vzdrževalnem načinu.',
'be_right_back' => 'Takoj se vrnem!',
- 'check_back' => 'Firefly III ne deluje zaradi potrebnega vzdrževanja. Preverite znova čez sekundo.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Ups! Zgodila se je napaka.',
'db_error_occurred' => 'Ups! Prišlo je do napake v podatkovni bazi.',
'error_not_recoverable' => 'Na žalost te napake ni bilo mogoče obnoviti :(. Firefly III se je pokvaril. Napaka je:',
diff --git a/resources/lang/sl_SI/firefly.php b/resources/lang/sl_SI/firefly.php
index 2373269adc..ce55d2e0c4 100644
--- a/resources/lang/sl_SI/firefly.php
+++ b/resources/lang/sl_SI/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Pozabil sem svojo reč za dva koraka.',
'two_factor_lost_header' => 'Nimate dostopa do dvofaktorske avtentikacije?',
'two_factor_lost_intro' => 'Če ste izgubili tudi varnostne kode imate res smolo. Tega ne morete popraviti preko spletnega vmesnika. Imate dve možnosti.',
- 'two_factor_lost_fix_self' => 'Če poganjate lastno namestitev Firefly III, preberite <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator -or-2fa-has-stopped-working>ta vnos v pogostih vprašanjih</a> za navodila.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'V nasprotnem primeru pišite po e-pošti lastniku spletnega mesta <a href="mailto::site_owner">:site_owner</a> in ga prosite, da ponastavi vaše preverjanje pristnosti v dveh korakih.',
'mfa_backup_code' => 'V Firefly III si se prijavil z rezervno kodo. Te kode ne moreš več uporabiti zato jo na seznamu prečrtaj.',
'pref_two_factor_new_backup_codes' => 'Pridobi nove varnostne kode',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Dodaj opombe k opisu',
'rule_action_move_descr_to_notes' => 'Opombe zamenjajte z opisom',
'rule_action_move_notes_to_descr' => 'Zamenjajte opis z opombami',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Nastavi ciljni račun na (gotovina)',
'rule_action_set_source_to_cash_choice' => 'Nastavi izvorni račun na (gotovina)',
'rulegroup_for_bills_title' => 'Skupina pravil za račune',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Hranilnik',
'ale_action_remove_from_piggy' => 'Hranilnik',
'ale_action_add_tag' => 'Dodana oznaka',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Omogoči pretvorbo valut',
diff --git a/resources/lang/sl_SI/rules.php b/resources/lang/sl_SI/rules.php
index 35ef72e038..8720f4639c 100644
--- a/resources/lang/sl_SI/rules.php
+++ b/resources/lang/sl_SI/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III ne najde proračuna ":name"',
'cannot_find_category' => 'Firefly III ne najde kategorije ":name"',
'cannot_set_budget' => 'Firefly III ne more nastaviti proračuna ":name" na transakcijo tipa ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/sl_SI/validation.php b/resources/lang/sl_SI/validation.php
index ef7758d4c4..3327341c5e 100644
--- a/resources/lang/sl_SI/validation.php
+++ b/resources/lang/sl_SI/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Ta transakcija je že usklajena, ne morete spremeniti ":field"',
'deleted_user' => 'Iz varnostnih razlogov ne morete ustvariti uporabnika s takim e-poštnim naslovom.',
'rule_trigger_value' => 'Ta vrednost je neveljavna za izbrani sprožilec.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Ta vrednost ni veljavna za izbrano dejanje.',
'file_already_attached' => 'Naložena datoteka ":name" je že priložena temu predmetu.',
'file_attached' => 'Datoteka ":name" je bila uspešno naložena.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'To ni varno geslo. Prosim poskusite ponovno. Za več informacij obiščite https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Neveljavna vrsta ponavljanja za ponavljajoče se transakcije.',
'valid_recurrence_rep_moment' => 'Neveljaven trenutek ponovitve za to vrsto ponovitve.',
'invalid_account_info' => 'Neveljavni podatki o računu.',
diff --git a/resources/lang/sv_SE/config.php b/resources/lang/sv_SE/config.php
index 7cdae8f31e..be75aa1ee6 100644
--- a/resources/lang/sv_SE/config.php
+++ b/resources/lang/sv_SE/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'sv',
- 'locale' => 'sv, Swedish, sv_SE.utf8, sv_SE.UTF-8',
+ 'html_language' => 'sv',
+ 'locale' => 'sv, Swedish, sv_SE.utf8, sv_SE.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, YYYY',
- 'month_and_day_fns' => 'd MMMM y',
- 'month_and_day_js' => 'MMMM DD, YYYY',
+ 'month_and_day_moment_js' => 'MMM D, YYYY',
+ 'month_and_day_fns' => 'd MMMM y',
+ 'month_and_day_js' => 'MMMM DD, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'MMMM DD YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'MMMM DD YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'DD MMMM YYYY',
+ 'specific_day_js' => 'DD MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Vecka' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Vecka' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'kvartal'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Måndag',
- 'dow_2' => 'Tisdag',
- 'dow_3' => 'Onsdag',
- 'dow_4' => 'Torsdag',
- 'dow_5' => 'Fredag',
- 'dow_6' => 'Lördag',
- 'dow_7' => 'Söndag',
+ 'quarter_fns' => "'kvartal'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Måndag',
+ 'dow_2' => 'Tisdag',
+ 'dow_3' => 'Onsdag',
+ 'dow_4' => 'Torsdag',
+ 'dow_5' => 'Fredag',
+ 'dow_6' => 'Lördag',
+ 'dow_7' => 'Söndag',
];
/*
diff --git a/resources/lang/sv_SE/errors.php b/resources/lang/sv_SE/errors.php
index ddf1e357ad..f1989b3ed8 100644
--- a/resources/lang/sv_SE/errors.php
+++ b/resources/lang/sv_SE/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Ett allvarligt fel har uppstått. Vänligen kontrollera loggfilerna i "lagring/loggar" eller använd "docker logs -f [container]" för att se vad som händer.',
'maintenance_mode' => 'Firefly III är i underhållsläge.',
'be_right_back' => 'Strax tillbaka!',
- 'check_back' => 'Firefly III är nere för nödvändigt underhåll. Vänligen kom tillbaka om en liten stund.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Hoppsan! Ett fel uppstod.',
'db_error_occurred' => 'Hoppsan! Ett databasfel inträffade.',
'error_not_recoverable' => 'Oturligt nog har ett återkalligt fel skett :(. Firefly III har gått sönder. Felet är:',
diff --git a/resources/lang/sv_SE/firefly.php b/resources/lang/sv_SE/firefly.php
index 357cc3eee7..c22861ae9a 100644
--- a/resources/lang/sv_SE/firefly.php
+++ b/resources/lang/sv_SE/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Jag har glömt min tvåfaktors-pryl.',
'two_factor_lost_header' => 'Förlorad tvåfaktorsautentisering?',
'two_factor_lost_intro' => 'Om du har förlorat även dina backupkoder har du otur. Detta är inte något du kan fixa från webbgränssnittet. Du har två val.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Annars, skicka epost till sajt-ägaren, <a href="mailto::site_owner">:site_owner</a> och be hen att återställa din tvåfaktorsautentisering.',
'mfa_backup_code' => 'Du har använt en engångskod för att logga in i Firefly III. Den kan inte användas igen, så stryk den från din lista.',
'pref_two_factor_new_backup_codes' => 'Generera nya engångskoder',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Regelgrupp för räkningar',
@@ -2769,6 +2771,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/sv_SE/rules.php b/resources/lang/sv_SE/rules.php
index 666ba3fa97..707b904234 100644
--- a/resources/lang/sv_SE/rules.php
+++ b/resources/lang/sv_SE/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/sv_SE/validation.php b/resources/lang/sv_SE/validation.php
index 6ec88b2de8..501ebdc7b3 100644
--- a/resources/lang/sv_SE/validation.php
+++ b/resources/lang/sv_SE/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'På grund av säkerhetsbegränsningar går det inte att registrera sig med denna e-postadress.',
'rule_trigger_value' => 'Detta värde är ogiltigt för vald trigger.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Detta värde är ogiltigt för den valda åtgärden.',
'file_already_attached' => 'Den uppladdade filen ”:name” är redan kopplad till detta objekt.',
'file_attached' => 'Filen ”:name” har laddats upp.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Detta lösenord är inte säkert. Vänligen försök igen. För mer info se https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Ogiltig repetitionstyp får återkommande transaktioner.',
'valid_recurrence_rep_moment' => 'Ogiltig repetitionsmoment för denna typ av repetition.',
'invalid_account_info' => 'Ogiltig kontoinformation.',
diff --git a/resources/lang/th_TH/config.php b/resources/lang/th_TH/config.php
index 2f99078e41..bab471a115 100644
--- a/resources/lang/th_TH/config.php
+++ b/resources/lang/th_TH/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'th',
- 'locale' => 'th, Thai, th_TH.utf8, th_TH.UTF-8',
+ 'html_language' => 'th',
+ 'locale' => 'th, Thai, th_TH.utf8, th_TH.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'D MMM YYYY',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'Do MMMM YYYY',
+ 'month_and_day_moment_js' => 'D MMM YYYY',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'Do MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'Do MMMM YYYY @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'Do MMMM YYYY @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Week' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Week' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'จันทร์',
- 'dow_2' => 'อังคาร',
- 'dow_3' => 'พุธ',
- 'dow_4' => 'พฤหัสบดี',
- 'dow_5' => 'ศุกร์',
- 'dow_6' => 'เสาร์',
- 'dow_7' => 'อาทิตย์',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'จันทร์',
+ 'dow_2' => 'อังคาร',
+ 'dow_3' => 'พุธ',
+ 'dow_4' => 'พฤหัสบดี',
+ 'dow_5' => 'ศุกร์',
+ 'dow_6' => 'เสาร์',
+ 'dow_7' => 'อาทิตย์',
];
/*
diff --git a/resources/lang/th_TH/errors.php b/resources/lang/th_TH/errors.php
index ea78811295..0b28c615fa 100644
--- a/resources/lang/th_TH/errors.php
+++ b/resources/lang/th_TH/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'There was a fatal error. Please check the log files in "storage/logs" or use "docker logs -f [container]" to see what\'s going on.',
'maintenance_mode' => 'Firefly III is in maintenance mode.',
'be_right_back' => 'Be right back!',
- 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'อุปส์! เกิดข้อผิดพลาด',
'db_error_occurred' => 'Whoops! A database error occurred.',
'error_not_recoverable' => 'Unfortunately, this error was not recoverable :(. Firefly III broke. The error is:',
diff --git a/resources/lang/th_TH/firefly.php b/resources/lang/th_TH/firefly.php
index 5d6936e439..d8e7f08ca4 100644
--- a/resources/lang/th_TH/firefly.php
+++ b/resources/lang/th_TH/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'I forgot my two-factor thing.',
'two_factor_lost_header' => 'Lost your two factor authentication?',
'two_factor_lost_intro' => 'If you lost your backup codes as well, you have bad luck. This is not something you can fix from the web interface. You have two choices.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Otherwise, email the site owner, <a href="mailto::site_owner">:site_owner</a> and ask them to reset your two factor authentication.',
'mfa_backup_code' => 'You have used a backup code to login to Firefly III. It can\'t be used again, so cross it from your list.',
'pref_two_factor_new_backup_codes' => 'Get new backup codes',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Rule group for bills',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/th_TH/rules.php b/resources/lang/th_TH/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/th_TH/rules.php
+++ b/resources/lang/th_TH/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/th_TH/validation.php b/resources/lang/th_TH/validation.php
index 824ac954db..bbfd8a9852 100644
--- a/resources/lang/th_TH/validation.php
+++ b/resources/lang/th_TH/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Due to security constraints, you cannot register using this email address.',
'rule_trigger_value' => 'This value is invalid for the selected trigger.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'This value is invalid for the selected action.',
'file_already_attached' => 'Uploaded file ":name" is already attached to this object.',
'file_attached' => 'Successfully uploaded file ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Invalid repetition type for recurring transactions.',
'valid_recurrence_rep_moment' => 'Invalid repetition moment for this type of repetition.',
'invalid_account_info' => 'Invalid account information.',
diff --git a/resources/lang/tr_TR/config.php b/resources/lang/tr_TR/config.php
index 33836c9dad..1e5ce744f7 100644
--- a/resources/lang/tr_TR/config.php
+++ b/resources/lang/tr_TR/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'tr',
- 'locale' => 'tr, Turkish, tr_TR, tr_TR.utf8, tr_TR.UTF-8',
+ 'html_language' => 'tr',
+ 'locale' => 'tr, Turkish, tr_TR, tr_TR.utf8, tr_TR.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM D, YYYY',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'MMMM Do, YYYY',
+ 'month_and_day_moment_js' => 'MMM D, YYYY',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'MMMM Do, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => '',
+ 'month_and_date_day_js' => '',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Hafta' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Hafta' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Pazartesi',
- 'dow_2' => 'Salı',
- 'dow_3' => 'Çarşamba',
- 'dow_4' => 'Perşembe',
- 'dow_5' => 'Cuma',
- 'dow_6' => 'Cumartesi',
- 'dow_7' => 'Pazar',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Pazartesi',
+ 'dow_2' => 'Salı',
+ 'dow_3' => 'Çarşamba',
+ 'dow_4' => 'Perşembe',
+ 'dow_5' => 'Cuma',
+ 'dow_6' => 'Cumartesi',
+ 'dow_7' => 'Pazar',
];
/*
diff --git a/resources/lang/tr_TR/errors.php b/resources/lang/tr_TR/errors.php
index f636e24ac8..042c3f7945 100644
--- a/resources/lang/tr_TR/errors.php
+++ b/resources/lang/tr_TR/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Ölümcül bir hata vardı. Neler olduğunu görmek için lütfen "storage/ logs" içindeki günlük dosyalarını kontrol edin veya "docker logs -f [container]" kullanın.',
'maintenance_mode' => 'Firefly III bakım modunda.',
'be_right_back' => 'Hemen dönecek!',
- 'check_back' => 'Firefly III gerekli bakım için hazır. Lütfen bir saniye sonra tekrar kontrol edin.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Hoppala! Bir hata oluştu.',
'db_error_occurred' => 'Whoops! A database error occurred.',
'error_not_recoverable' => 'Ne yazık ki, bu hata kurtarılamadı :(. Ateşböceği III kırıldı. Hata şu şekildedir:',
diff --git a/resources/lang/tr_TR/firefly.php b/resources/lang/tr_TR/firefly.php
index 395140c4bb..4c06c1f510 100644
--- a/resources/lang/tr_TR/firefly.php
+++ b/resources/lang/tr_TR/firefly.php
@@ -114,7 +114,7 @@ return [
'two_factor_forgot' => 'İki faktörlü kimlik doğrulama cihazını unuttum.',
'two_factor_lost_header' => 'İki faktörlü kimlik doğrulamanızı mı kaybettiniz?',
'two_factor_lost_intro' => 'Eğer yedek kodlarınızı da kayıp ettiyseniz, şansınız kötü. Bu web arayüzünden düzeltebileceğiniz bir şey değil. İki seçeneğiniz var.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Aksi takdirde, site sahibine (<a href="mailto::site_owner">:site_owner</a>) e-posta gönderin ve iki faktörlü kimlik doğrulamasını sıfırlamasını isteyin.',
'mfa_backup_code' => 'Firefly III giriş yapmak için yedek kullandınız. Bu kod tekrar kullanılamaz, o yüzden listenizden çıkartın.',
'pref_two_factor_new_backup_codes' => 'Yeni yedek kodları alın',
@@ -1287,6 +1287,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Fatura kuralı grubu',
@@ -2769,6 +2771,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/tr_TR/rules.php b/resources/lang/tr_TR/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/tr_TR/rules.php
+++ b/resources/lang/tr_TR/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/tr_TR/validation.php b/resources/lang/tr_TR/validation.php
index 4f03da2144..3d63f5d59f 100644
--- a/resources/lang/tr_TR/validation.php
+++ b/resources/lang/tr_TR/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Güvenlik kısıtlamaları nedeniyle, bu e-posta adresini kullanarak kayıt yapamazsınız.',
'rule_trigger_value' => 'Bu eylem, seçili işlem için geçersizdir.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Bu eylem seçili işlem için geçersizdir.',
'file_already_attached' => 'Yüklenen dosya ":name" zaten bu nesneye bağlı.',
'file_attached' => '":name" dosyası başarıyla yüklendi.',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Invalid repetition type for recurring transactions.',
'valid_recurrence_rep_moment' => 'Invalid repetition moment for this type of repetition.',
'invalid_account_info' => 'Geçersiz hesap bilgileri.',
diff --git a/resources/lang/uk_UA/config.php b/resources/lang/uk_UA/config.php
index 60d7a95fcf..62a4146efe 100644
--- a/resources/lang/uk_UA/config.php
+++ b/resources/lang/uk_UA/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'uk',
- 'locale' => 'uk, Ukrainian, uk_UA.utf8, uk_UA.UTF-8',
+ 'html_language' => 'uk',
+ 'locale' => 'uk, Ukrainian, uk_UA.utf8, uk_UA.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'місяць день рік',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'MMMM Do, YYYY',
+ 'month_and_day_moment_js' => 'місяць день рік',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'MMMM Do, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'MMMM Do',
+ 'month_and_day_no_year_js' => 'MMMM Do',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'MMMM do, yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Тиждень] W, GGG',
- 'week_in_year_fns' => "'Тиждень' w, yyyy",
+ 'week_in_year_js' => '[Тиждень] W, GGG',
+ 'week_in_year_fns' => "'Тиждень' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Понеділок',
- 'dow_2' => 'Вівторок',
- 'dow_3' => 'Середа',
- 'dow_4' => 'Четвер',
- 'dow_5' => 'П\'ятниця',
- 'dow_6' => 'Субота',
- 'dow_7' => 'Неділя',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Понеділок',
+ 'dow_2' => 'Вівторок',
+ 'dow_3' => 'Середа',
+ 'dow_4' => 'Четвер',
+ 'dow_5' => 'П\'ятниця',
+ 'dow_6' => 'Субота',
+ 'dow_7' => 'Неділя',
];
/*
diff --git a/resources/lang/uk_UA/errors.php b/resources/lang/uk_UA/errors.php
index b0f1bbcdb4..0fd9a4ed2e 100644
--- a/resources/lang/uk_UA/errors.php
+++ b/resources/lang/uk_UA/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Сталася фатальна помилка. Перевірте файли журналів у «storage/logs» або скористайтеся «docker logs -f [container]», щоб побачити, що відбувається.',
'maintenance_mode' => 'Firefly III знаходиться в режимі обслуговування.',
'be_right_back' => 'Незабаром повернусь!',
- 'check_back' => 'Firefly III вимкнено для необхідного обслуговування. Перевірте за секунду.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Ой! Сталася помилка.',
'db_error_occurred' => 'Ой! Сталася помилка бази даних.',
'error_not_recoverable' => 'На жаль, цю помилку не можна виправити :(. Firefly III пошкоджено. Помилка:',
diff --git a/resources/lang/uk_UA/firefly.php b/resources/lang/uk_UA/firefly.php
index 16dd660f94..f3f0d33aeb 100644
--- a/resources/lang/uk_UA/firefly.php
+++ b/resources/lang/uk_UA/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Я забув свій двофакторний ключ.',
'two_factor_lost_header' => 'Чи втрачено двофакторну аутентифікацію?',
'two_factor_lost_intro' => 'Якщо ви втратили резервні копії, вам не пощастило. Через вебінтерфейс це неможливо виправити. Ви маєте виходи.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'В іншому випадку надішліть електронний лист адміністратору сервісу, <a href="mailto::site_owner">:site_owner</a> та попросіть його створити новий ключ двофакторної автентифікації.',
'mfa_backup_code' => 'Ви використали резервний код для входу в Firefly III. Його не можна використати повторно, тому видаліть його зі свого списку.',
'pref_two_factor_new_backup_codes' => 'Отримати нові резервні коди',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Додайте примітки до опису',
'rule_action_move_descr_to_notes' => 'Замініть примітки в описі',
'rule_action_move_notes_to_descr' => 'Замініть примітки в описі',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Налаштувати цільовий рахунок як (готівковий)',
'rule_action_set_source_to_cash_choice' => 'Налаштувати вихідний рахунок як (готівковий)',
'rulegroup_for_bills_title' => 'Група правил для рахунків до сплати',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Скарбничка',
'ale_action_remove_from_piggy' => 'Скарбничка',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/uk_UA/rules.php b/resources/lang/uk_UA/rules.php
index c23b6a89b3..f4bd5c4382 100644
--- a/resources/lang/uk_UA/rules.php
+++ b/resources/lang/uk_UA/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/uk_UA/validation.php b/resources/lang/uk_UA/validation.php
index 85daa519c6..56cc4e6ffa 100644
--- a/resources/lang/uk_UA/validation.php
+++ b/resources/lang/uk_UA/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => 'Через обмеження безпеки ви не можете зареєструвати цю електронну адресу.',
'rule_trigger_value' => 'Це значення неправильне для вибраного тригера.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Це значення є неприпустимим для вибраної дії.',
'file_already_attached' => 'Файл ":name" вже прикріплено до цього об\'єкта.',
'file_attached' => 'Успішно завантажено файл ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Це не надійний пароль. Будь ласка, спробуйте інший. Для отримання додаткової інформації, відвідайте https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Неприпустимий тип для повторюваних транзакцій.',
'valid_recurrence_rep_moment' => 'Невірний період повторення для цого типу повторення.',
'invalid_account_info' => 'Невірні дані рахунка.',
diff --git a/resources/lang/vi_VN/config.php b/resources/lang/vi_VN/config.php
index 92e3e62860..2bdb5adc29 100644
--- a/resources/lang/vi_VN/config.php
+++ b/resources/lang/vi_VN/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'vi',
- 'locale' => 'vi, Vietnamese, vi_VN.utf8, vi_VN.UTF-8',
+ 'html_language' => 'vi',
+ 'locale' => 'vi, Vietnamese, vi_VN.utf8, vi_VN.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'MMM YYYY',
- 'month_and_day_fns' => 'MMMM d, y',
- 'month_and_day_js' => 'D MMMM YYYY',
+ 'month_and_day_moment_js' => 'MMM YYYY',
+ 'month_and_day_fns' => 'MMMM d, y',
+ 'month_and_day_js' => 'D MMMM YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'dddd D MMMM YYYY',
+ 'month_and_date_day_js' => 'dddd D MMMM YYYY',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'D MMMM',
+ 'month_and_day_no_year_js' => 'D MMMM',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'D MMMM YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'd MMMM yyyy @ HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'D MMMM YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'd MMMM yyyy @ HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => '[Week] W, GGGG',
- 'week_in_year_fns' => "'Tuần' w, yyyy",
+ 'week_in_year_js' => '[Week] W, GGGG',
+ 'week_in_year_fns' => "'Tuần' w, yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => 'Thứ 2',
- 'dow_2' => 'Thứ 3',
- 'dow_3' => 'Thứ 4',
- 'dow_4' => 'Thứ 5',
- 'dow_5' => 'Thứ 6',
- 'dow_6' => 'Thứ 7',
- 'dow_7' => 'Chủ nhật',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => 'Thứ 2',
+ 'dow_2' => 'Thứ 3',
+ 'dow_3' => 'Thứ 4',
+ 'dow_4' => 'Thứ 5',
+ 'dow_5' => 'Thứ 6',
+ 'dow_6' => 'Thứ 7',
+ 'dow_7' => 'Chủ nhật',
];
/*
diff --git a/resources/lang/vi_VN/errors.php b/resources/lang/vi_VN/errors.php
index c8a9fdb861..5fa5fdb091 100644
--- a/resources/lang/vi_VN/errors.php
+++ b/resources/lang/vi_VN/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'Có một lỗi nghiêm trọng. Vui lòng kiểm tra các tệp nhật ký trong "lưu trữ / nhật ký" hoặc sử dụng "nhật ký docker -f [container]" để xem những gì đang xảy ra.',
'maintenance_mode' => 'Firefly III đang bảo trì.',
'be_right_back' => 'Sẽ quay lại ngay!',
- 'check_back' => 'Firefly III ngừng hoạt động để bảo trì. Vui lòng kiểm tra lại sau một giây.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Rất tiếc! Lỗi xảy ra.',
'db_error_occurred' => 'Ây dà! Có lỗi trong cơ sở dữ liệu.',
'error_not_recoverable' => 'Thật không may, lỗi này không thể phục hồi :(. Firefly III đã bị hỏng. Lỗi là:',
diff --git a/resources/lang/vi_VN/firefly.php b/resources/lang/vi_VN/firefly.php
index ce02422339..a6a124c295 100644
--- a/resources/lang/vi_VN/firefly.php
+++ b/resources/lang/vi_VN/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => 'Tôi quên mất hai yếu tố.',
'two_factor_lost_header' => 'Mất xác thực hai yếu tố của bạn?',
'two_factor_lost_intro' => 'Nếu bạn bị mất mã dự phòng. Bạn có hai lựa chọn.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => 'Nếu không, gửi email cho chủ sở hữu trang web, <a href="mailto::site_owner">:site_owner</a> và yêu cầu họ đặt lại xác thực hai yếu tố của bạn.',
'mfa_backup_code' => 'Bạn đã sử dụng mã dự phòng để đăng nhập vào Firefly III. Nó không thể được sử dụng lại, vì vậy hãy gạch chéo nó khỏi danh sách của bạn.',
'pref_two_factor_new_backup_codes' => 'Nhận mã dự phòng mới',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Nhóm quy tắc cho hóa đơn',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/vi_VN/rules.php b/resources/lang/vi_VN/rules.php
index db9b3d7abe..d6c28c2641 100644
--- a/resources/lang/vi_VN/rules.php
+++ b/resources/lang/vi_VN/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/vi_VN/validation.php b/resources/lang/vi_VN/validation.php
index 70e1244a25..dd272d57ba 100644
--- a/resources/lang/vi_VN/validation.php
+++ b/resources/lang/vi_VN/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'Giao dịch này đã được đối chiếu, bạn không thể thay đổi ":field"',
'deleted_user' => 'Do những hạn chế về bảo mật, bạn không thể đăng ký bằng địa chỉ email này.',
'rule_trigger_value' => 'Giá trị này không hợp lệ cho trình kích hoạt được chọn.',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => 'Giá trị này không hợp lệ cho hành động đã chọn.',
'file_already_attached' => 'Đã tải lên tập tin ":name" đã được gắn vào đối tượng này.',
'file_attached' => 'Tải lên thành công tập tin ":name".',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => 'Đây không phải là một mật khẩu an toàn. Vui lòng thử lại. Để biết thêm thông tin, hãy truy cập https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => 'Loại lặp lại không hợp lệ cho các giao dịch định kỳ.',
'valid_recurrence_rep_moment' => 'Khoảnh khắc lặp lại không hợp lệ cho loại lặp lại này.',
'invalid_account_info' => 'Thông tin tài khoản không hợp lệ.',
diff --git a/resources/lang/zh_CN/config.php b/resources/lang/zh_CN/config.php
index 8367dd53d1..9015107d04 100644
--- a/resources/lang/zh_CN/config.php
+++ b/resources/lang/zh_CN/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'zh-cn',
- 'locale' => 'zh_CN.utf8, zh_CN.UTF-8',
+ 'html_language' => 'zh-cn',
+ 'locale' => 'zh_CN.utf8, zh_CN.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'YYYY年M月',
+ 'month_js' => 'YYYY年M月',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'YYYY年M月D日',
- 'month_and_day_fns' => 'YYYY年M月D日',
- 'month_and_day_js' => 'YYYY年M月D日',
+ 'month_and_day_moment_js' => 'YYYY年M月D日',
+ 'month_and_day_fns' => 'YYYY年M月D日',
+ 'month_and_day_js' => 'YYYY年M月D日',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'YYYY年M月D日 dddd',
+ 'month_and_date_day_js' => 'YYYY年M月D日 dddd',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'M月D日',
+ 'month_and_day_no_year_js' => 'M月D日',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'YYYY年M月D日 HH:mm:ss',
- 'date_time_fns' => 'YYYY年M月D日 HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'YYYY年M月D日 HH:mm:ss',
+ 'date_time_fns' => 'YYYY年M月D日 HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'YYYY年M月D日',
+ 'specific_day_js' => 'YYYY年M月D日',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => 'W周,GGGG',
- 'week_in_year_fns' => "w'周',yyyy",
+ 'week_in_year_js' => 'W周,GGGG',
+ 'week_in_year_fns' => "w'周',yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => 'YYYY年 第Q季度',
+ 'half_year_js' => 'YYYY年 第Q季度',
- 'quarter_fns' => 'YYYY年 第Q季度',
- 'half_year_fns' => '{half}小时,yyyy',
- 'dow_1' => '星期一',
- 'dow_2' => '星期二',
- 'dow_3' => '星期三',
- 'dow_4' => '星期四',
- 'dow_5' => '星期五',
- 'dow_6' => '星期六',
- 'dow_7' => '星期日',
+ 'quarter_fns' => 'YYYY年 第Q季度',
+ 'half_year_fns' => '{half}小时,yyyy',
+ 'dow_1' => '星期一',
+ 'dow_2' => '星期二',
+ 'dow_3' => '星期三',
+ 'dow_4' => '星期四',
+ 'dow_5' => '星期五',
+ 'dow_6' => '星期六',
+ 'dow_7' => '星期日',
];
/*
diff --git a/resources/lang/zh_CN/errors.php b/resources/lang/zh_CN/errors.php
index d8432545f3..d2b7076ff7 100644
--- a/resources/lang/zh_CN/errors.php
+++ b/resources/lang/zh_CN/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => '发生致命错误:请检查位于“storage/logs”目录的日志文件,或使用“docker logs -f [container]”命令查看相关信息。',
'maintenance_mode' => 'Firefly III 已启用维护模式',
'be_right_back' => '敬请期待!',
- 'check_back' => 'Firefly III 正在进行必要的维护,请稍后再试',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => '很抱歉,出现错误',
'db_error_occurred' => '哎呀!发生数据库错误。',
'error_not_recoverable' => '很遗憾,该错误无法恢复 :( Firefly III 已崩溃。错误信息:',
diff --git a/resources/lang/zh_CN/firefly.php b/resources/lang/zh_CN/firefly.php
index 40ff177654..297d6fb288 100644
--- a/resources/lang/zh_CN/firefly.php
+++ b/resources/lang/zh_CN/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => '我忘记了两步验证码',
'two_factor_lost_header' => '遗失了您的两步验证吗?',
'two_factor_lost_intro' => '如果您同时遗失了备份代码,很抱歉,您无法通过网页进行恢复。您可以通过下述方式进行操作。',
- 'two_factor_lost_fix_self' => '若您自行运行 Firefly III 服务,查看 <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>常见问题解答</a> 来参考',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => '如果这不是您自己的 Firefly III 站点,请邮件联系站点管理员(<a href="mailto::site_owner">:site_owner</a>)协助您重置两步验证。',
'mfa_backup_code' => '您已使用备用代码登录到 Firefly III 。 您不能再使用它,因此请将其划掉。',
'pref_two_factor_new_backup_codes' => '获取新的备份代码',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => '在描述后追加备注',
'rule_action_move_descr_to_notes' => '用描述替换备注',
'rule_action_move_notes_to_descr' => '用备注替换描述',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => '将目标帐户设置为 (现金)',
'rule_action_set_source_to_cash_choice' => '将源账户设置为 (现金)',
'rulegroup_for_bills_title' => '账单规则组',
@@ -2769,6 +2771,7 @@ return [
'ale_action_add_to_piggy' => '存钱罐',
'ale_action_remove_from_piggy' => '存钱罐',
'ale_action_add_tag' => '添加标签',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => '启用货币转换',
diff --git a/resources/lang/zh_CN/rules.php b/resources/lang/zh_CN/rules.php
index e95d5004ed..b20828b9d9 100644
--- a/resources/lang/zh_CN/rules.php
+++ b/resources/lang/zh_CN/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III 找不到预算“:name”',
'cannot_find_category' => 'Firefly III 找不到分类“:name”',
'cannot_set_budget' => 'Firefly III 无法设置预算“:name”为类型“:type”的交易',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/zh_CN/validation.php b/resources/lang/zh_CN/validation.php
index 840b2a8f77..9f3b9b376d 100644
--- a/resources/lang/zh_CN/validation.php
+++ b/resources/lang/zh_CN/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => '这笔交易已经对账,您无法更改“:field”',
'deleted_user' => '由于安全限制,您无法使用此电子邮件地址注册',
'rule_trigger_value' => '此值不能用于所选触发条件',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => '此值不能用于所选动作',
'file_already_attached' => '上传的文件“:name”已添加到此对象',
'file_attached' => '成功上传文件“:name”',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => '此密码不安全,请重试。访问 https://bit.ly/FF3-password-security 获取更多信息。',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => '此重复类型不能用于定期交易',
'valid_recurrence_rep_moment' => '此重复时刻不能用于此重复类型',
'invalid_account_info' => '无效的账户信息',
diff --git a/resources/lang/zh_TW/config.php b/resources/lang/zh_TW/config.php
index 0c60849e8c..7cf264187e 100644
--- a/resources/lang/zh_TW/config.php
+++ b/resources/lang/zh_TW/config.php
@@ -34,21 +34,21 @@
declare(strict_types=1);
return [
- 'html_language' => 'zh-tw',
- 'locale' => 'zh_TW, Chinese Traditional (Taiwan), zh_TW.utf8, zh_TW.UTF-8',
+ 'html_language' => 'zh-tw',
+ 'locale' => 'zh_TW, Chinese Traditional (Taiwan), zh_TW.utf8, zh_TW.UTF-8',
// 'month' => '%B %Y',
- 'month_js' => 'MMMM YYYY',
+ 'month_js' => 'MMMM YYYY',
// 'month_and_day' => '%B %e, %Y',
- 'month_and_day_moment_js' => 'YYYY 年 MMM D 日',
- 'month_and_day_fns' => 'YYYY年 M月 d日',
- 'month_and_day_js' => 'MMMM Do, YYYY',
+ 'month_and_day_moment_js' => 'YYYY 年 MMM D 日',
+ 'month_and_day_fns' => 'YYYY年 M月 d日',
+ 'month_and_day_js' => 'MMMM Do, YYYY',
// 'month_and_date_day' => '%A %B %e, %Y',
- 'month_and_date_day_js' => 'YYYY年 M月 D日 dddd',
+ 'month_and_date_day_js' => 'YYYY年 M月 D日 dddd',
// 'month_and_day_no_year' => '%B %e',
- 'month_and_day_no_year_js' => 'M月 D日',
+ 'month_and_day_no_year_js' => 'M月 D日',
/*
* PLEASE DO NOT EDIT THIS FILE DIRECTLY.
@@ -62,32 +62,32 @@ return [
*/
// 'date_time' => '%B %e, %Y, @ %T',
- 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
- 'date_time_fns' => 'YYYY年 M月 D日 dddd 於 HH:mm:ss',
- 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
+ 'date_time_js' => 'MMMM Do, YYYY, @ HH:mm:ss',
+ 'date_time_fns' => 'YYYY年 M月 D日 dddd 於 HH:mm:ss',
+ 'date_time_fns_short' => 'MMMM do, yyyy @ HH:mm',
// 'specific_day' => '%e %B %Y',
- 'specific_day_js' => 'D MMMM YYYY',
+ 'specific_day_js' => 'D MMMM YYYY',
// 'week_in_year' => 'Week %V, %G',
- 'week_in_year_js' => 'GGGG年 第W週',
- 'week_in_year_fns' => "'週' w,yyyy",
+ 'week_in_year_js' => 'GGGG年 第W週',
+ 'week_in_year_fns' => "'週' w,yyyy",
// 'year' => '%Y',
- 'year_js' => 'YYYY',
+ 'year_js' => 'YYYY',
// 'half_year' => '%B %Y',
- 'half_year_js' => '\QQ YYYY',
+ 'half_year_js' => '\QQ YYYY',
- 'quarter_fns' => "'Q'Q, yyyy",
- 'half_year_fns' => "'H{half}', yyyy",
- 'dow_1' => '週一',
- 'dow_2' => '週二',
- 'dow_3' => '週三',
- 'dow_4' => '週四',
- 'dow_5' => '週五',
- 'dow_6' => '週六',
- 'dow_7' => '週日',
+ 'quarter_fns' => "'Q'Q, yyyy",
+ 'half_year_fns' => "'H{half}', yyyy",
+ 'dow_1' => '週一',
+ 'dow_2' => '週二',
+ 'dow_3' => '週三',
+ 'dow_4' => '週四',
+ 'dow_5' => '週五',
+ 'dow_6' => '週六',
+ 'dow_7' => '週日',
];
/*
diff --git a/resources/lang/zh_TW/errors.php b/resources/lang/zh_TW/errors.php
index 62511b57e6..e0c1e34bba 100644
--- a/resources/lang/zh_TW/errors.php
+++ b/resources/lang/zh_TW/errors.php
@@ -42,7 +42,7 @@ return [
'fatal_error' => 'There was a fatal error. Please check the log files in "storage/logs" or use "docker logs -f [container]" to see what\'s going on.',
'maintenance_mode' => 'Firefly III is in maintenance mode.',
'be_right_back' => 'Be right back!',
- 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second.',
+ 'check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',
'error_occurred' => 'Whoops! An error occurred.',
'db_error_occurred' => 'Whoops! A database error occurred.',
'error_not_recoverable' => 'Unfortunately, this error was not recoverable :(. Firefly III broke. The error is:',
diff --git a/resources/lang/zh_TW/firefly.php b/resources/lang/zh_TW/firefly.php
index 8bb9b7b653..72dd199c93 100644
--- a/resources/lang/zh_TW/firefly.php
+++ b/resources/lang/zh_TW/firefly.php
@@ -113,7 +113,7 @@ return [
'two_factor_forgot' => '啥兩步驟我忘了。',
'two_factor_lost_header' => '遺失您的兩步驟驗證嗎?',
'two_factor_lost_intro' => 'If you lost your backup codes as well, you have bad luck. This is not something you can fix from the web interface. You have two choices.',
- 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working>this entry in the FAQ</a> for instructions.',
+ 'two_factor_lost_fix_self' => 'If you run your own instance of Firefly III, read <a href="https://docs.firefly-iii.org/references/faq/firefly-iii/using/#i-lost-my-2fa-token-generator-or-2fa-has-stopped-working">this entry in the FAQ</a> for instructions.',
'two_factor_lost_fix_owner' => '否則,請寄送電子郵件至網站擁有者 <a href="mailto::site_owner">:site_owner</a> 要求重設您的兩步驟驗證。',
'mfa_backup_code' => 'You have used a backup code to login to Firefly III. It can\'t be used again, so cross it from your list.',
'pref_two_factor_new_backup_codes' => 'Get new backup codes',
@@ -1286,6 +1286,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
+ 'rule_action_set_amount_choice' => 'Set amount to ..',
+ 'rule_action_set_amount' => 'Set amount to ":action_value"',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => '供帳單的規則群組',
@@ -2768,6 +2770,7 @@ return [
'ale_action_add_to_piggy' => 'Piggy bank',
'ale_action_remove_from_piggy' => 'Piggy bank',
'ale_action_add_tag' => 'Added tag',
+ 'ale_action_update_amount' => 'Updated amount',
// dashboard
'enable_auto_convert' => 'Enable currency conversion',
diff --git a/resources/lang/zh_TW/rules.php b/resources/lang/zh_TW/rules.php
index 8d4b44ad76..020162caf3 100644
--- a/resources/lang/zh_TW/rules.php
+++ b/resources/lang/zh_TW/rules.php
@@ -70,4 +70,5 @@ return [
'cannot_find_budget' => 'Firefly III can\'t find budget ":name"',
'cannot_find_category' => 'Firefly III can\'t find category ":name"',
'cannot_set_budget' => 'Firefly III can\'t set budget ":name" to a transaction of type ":type"',
+ 'journal_invalid_amount' => 'Firefly III can\'t set amount ":amount" because it is not a valid number.',
];
diff --git a/resources/lang/zh_TW/validation.php b/resources/lang/zh_TW/validation.php
index 21464e3b1a..2248fa99ce 100644
--- a/resources/lang/zh_TW/validation.php
+++ b/resources/lang/zh_TW/validation.php
@@ -55,6 +55,7 @@ return [
'reconciled_forbidden_field' => 'This transaction is already reconciled, you cannot change the ":field"',
'deleted_user' => '受安全限制,您無法使用此電子郵件地址註冊。',
'rule_trigger_value' => '此值不適用於選取的觸發器。',
+ 'rule_action_expression' => 'Invalid expression. :error',
'rule_action_value' => '此值不適用於選取的動作。',
'file_already_attached' => '上傳的檔案 ":name" 已附加到該物件上。',
'file_attached' => '已成功上傳檔案 ":name"。',
@@ -195,7 +196,7 @@ return [
*
*/
- 'secure_password' => '此密碼不安全,請再試一遍。如需更多資訊,請瀏覽 https://bit.ly/FF3-password-security',
+ 'secure_password' => 'This is not a secure password. Please try again. For more information, visit https://bit.ly/FF3-password',
'valid_recurrence_rep_type' => '定期重複交易的重複類型無效。',
'valid_recurrence_rep_moment' => '重複時刻在此重複類型無效。',
'invalid_account_info' => '無效的帳戶資訊。',