diff --git a/ra/assets/AddedByList.vue_vue_type_script_setup_true_lang-Uj9nWl0E.js b/ra/assets/AddedByList.vue_vue_type_script_setup_true_lang-Uj9nWl0E.js new file mode 100644 index 0000000..2869b7b --- /dev/null +++ b/ra/assets/AddedByList.vue_vue_type_script_setup_true_lang-Uj9nWl0E.js @@ -0,0 +1 @@ +import{u as _}from"./riskassessment-gvIk_m2h.js";import{l as o}from"./livequery-N-IbBJej.js";import{d as y,f as s,o as t,g as a,V as f,F as i,l as n,j as m,a as u,t as c}from"./index-DYrAM6VV.js";const g={key:0},h={key:1},L=y({__name:"AddedByList",props:{triggerList:{}},setup(k){const r=o.table("measures"),d=o.table("equipment"),l=_();return(p,v)=>s(l).isReady&&s(r).isReady()?(t(!0),a(i,{key:0},f(p.triggerList,e=>(t(),a(i,null,[e.type==="measure"?(t(),a("div",g,[m("Automatisch hinzugefügt von "),u("em",null,c(s(r).get(e.id).descr),1)])):n("",!0),e.type==="equipment"?(t(),a("div",h,[m("Automatisch hinzugefügt von "),u("em",null,c(s(d).get(e.id).descr),1)])):n("",!0)],64))),256)):n("",!0)}});export{L as _}; diff --git a/ra/assets/AddedByList.vue_vue_type_script_setup_true_lang-legacy-kEQjZDfl.js b/ra/assets/AddedByList.vue_vue_type_script_setup_true_lang-legacy-kEQjZDfl.js new file mode 100644 index 0000000..2c7638c --- /dev/null +++ b/ra/assets/AddedByList.vue_vue_type_script_setup_true_lang-legacy-kEQjZDfl.js @@ -0,0 +1 @@ +System.register(["./riskassessment-legacy-kVyVXEzW.js","./livequery-legacy-GqvLyVpq.js","./index-legacy-l9aK7RKf.js"],(function(e,t){"use strict";var s,i,n,r,u,a,g,l,c,d,y,m;return{setters:[e=>{s=e.u},e=>{i=e.l},e=>{n=e.d,r=e.f,u=e.o,a=e.g,g=e.V,l=e.F,c=e.l,d=e.j,y=e.a,m=e.t}],execute:function(){const t={key:0},o={key:1};e("_",n({__name:"AddedByList",props:{triggerList:{}},setup(e){const n=i.table("measures"),p=i.table("equipment"),v=s();return(e,s)=>r(v).isReady&&r(n).isReady()?(u(!0),a(l,{key:0},g(e.triggerList,(e=>(u(),a(l,null,["measure"===e.type?(u(),a("div",t,[d("Automatisch hinzugefügt von "),y("em",null,m(r(n).get(e.id).descr),1)])):c("",!0),"equipment"===e.type?(u(),a("div",o,[d("Automatisch hinzugefügt von "),y("em",null,m(r(p).get(e.id).descr),1)])):c("",!0)],64)))),256)):c("",!0)}}))}}})); diff --git a/ra/assets/EquipmentCatalogPage-legacy-TEHh17q4.js b/ra/assets/EquipmentCatalogPage-legacy-TEHh17q4.js new file mode 100644 index 0000000..95a4af3 --- /dev/null +++ b/ra/assets/EquipmentCatalogPage-legacy-TEHh17q4.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js","./EquipmentList.vue_vue_type_script_setup_true_lang-legacy-Z90HBhdn.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js"],(function(e,t){"use strict";var u,l,n,_,s,a,i,r,c,p,g,o;return{setters:[e=>{u=e.d,l=e.o,n=e.c,_=e.w,s=e.b,a=e.f,i=e.m,r=e.n,c=e.p,p=e.q},e=>{g=e._},e=>{o=e._},null,null,null],execute:function(){e("default",u({__name:"EquipmentCatalogPage",setup:e=>(e,t)=>(l(),n(g,null,{default:_((()=>[s(a(p),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:_((()=>[s(a(i),{onClick:t[0]||(t[0]=t=>e.$router.push("/equipment/new"))},{default:_((()=>[s(a(r),{icon:a(c)},null,8,["icon"])])),_:1})])),_:1}),s(o)])),_:1}))}))}}})); diff --git a/ra/assets/EquipmentCatalogPage-vFC-50U8.js b/ra/assets/EquipmentCatalogPage-vFC-50U8.js new file mode 100644 index 0000000..4b61780 --- /dev/null +++ b/ra/assets/EquipmentCatalogPage-vFC-50U8.js @@ -0,0 +1 @@ +import{d as r,o as s,c as i,w as a,b as o,f as t,m,n as p,p as l,q as u}from"./index-DYrAM6VV.js";import{_ as f}from"./TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js";import{_}from"./EquipmentList.vue_vue_type_script_setup_true_lang-LrAGbvfC.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import"./helpers-ZGJup-tE.js";import"./livequery-N-IbBJej.js";const w=r({__name:"EquipmentCatalogPage",setup(c){return(n,e)=>(s(),i(f,null,{default:a(()=>[o(t(u),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:a(()=>[o(t(m),{onClick:e[0]||(e[0]=d=>n.$router.push("/equipment/new"))},{default:a(()=>[o(t(p),{icon:t(l)},null,8,["icon"])]),_:1})]),_:1}),o(_)]),_:1}))}});export{w as default}; diff --git a/ra/assets/EquipmentEditPage-FFbluN7d.js b/ra/assets/EquipmentEditPage-FFbluN7d.js new file mode 100644 index 0000000..a1137bf --- /dev/null +++ b/ra/assets/EquipmentEditPage-FFbluN7d.js @@ -0,0 +1 @@ +import{T as E}from"./TemplateGenericEditPage-c3J_MoRf.js";import{I,r as D,i as B,h as S,D as F,k as L,_ as N,E as u,o as g,g as T,b as n,w as i,j as _,F as $,l as G,d as x,u as U,c as k,S as A,f}from"./index-DYrAM6VV.js";import{d as c,p as r}from"./helpers-ZGJup-tE.js";import{_ as H}from"./RiskList.vue_vue_type_script_setup_true_lang-RlQXPtnM.js";import{G as j}from"./GenericEditModal-HfPjcc9X.js";import{_ as y}from"./RiskCatalog.vue_vue_type_script_setup_true_lang-t3Akc4GU.js";import"./RiskListItem-_kbE0JWc.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import"./liveriskstree-S1mQ308m.js";import"./livequery-N-IbBJej.js";const M={components:{IonList:I,IonItem:D,IonLabel:B,IonListHeader:S,IonInput:F,RiskList:H,RiskCatalog:y,GenericEditModal:j,IonButton:L},emits:["hasSaved","hasAdded"],props:{id:{type:Number},createNew:Boolean,defaultValues:{type:Object,default:{descr:"",tags:[],causeRisks:[]}}},data(){return{equipment:void 0,addCausedRisks:!1}},methods:{loadFromDb(){this.id!==void 0&&c.equipment.get(this.id).then(o=>{if(o===void 0){r("Es existiert keine Ausrüstung mit der ID "+this.id+" in der Datenbank.","danger");return}this.equipment=o})},saveToDb(){if(this.equipment===void 0){r("Etwas ist schief gelaufen.");return}if(this.equipment.descr===""){r("Die Beschreibung darf nicht leer sein.");return}const o={descr:this.equipment.descr,tags:[...this.equipment.tags],causeRisks:[...this.equipment.causeRisks]};if(this.createNew&&c.equipment.add(o).then(e=>{r(o.descr+" wurde hinzugefügt.","success"),this.$emit("hasAdded",{id:e,...this.equipment})}).catch(e=>{throw r("Beim Speichern ist ein Fehler aufgetreten.","danger"),e}),this.id===void 0){r("Ungültige ID","danger");return}c.equipment.update(this.id,o).then(()=>{r("Änderungen gespeichert.","success"),console.log(o),this.$emit("hasSaved",{id:this.id,...this.equipment})}).catch(e=>{throw r("Beim Speichern ist ein Fehler aufgetreten.","warning"),e})}},mounted(){this.equipment=this.defaultValues,console.log(this.equipment),this.loadFromDb()}};function z(o,e,h,m,t,d){const s=u("ion-input"),l=u("ion-item"),q=u("ion-list"),b=u("ion-label"),v=u("ion-button"),R=u("ion-list-header"),V=u("RiskList"),C=u("RiskCatalog"),w=u("GenericEditModal");return t.equipment?(g(),T($,{key:0},[n(q,{inset:""},{default:i(()=>[n(l,null,{default:i(()=>[n(s,{label:"Beschreibung","label-placement":"floating",modelValue:t.equipment.descr,"onUpdate:modelValue":e[0]||(e[0]=a=>t.equipment.descr=a)},null,8,["modelValue"])]),_:1}),n(l,null,{default:i(()=>[n(s,{label:"Tags","label-placement":"floating",modelValue:t.equipment.tags.join(" "),"onUpdate:modelValue":e[1]||(e[1]=a=>t.equipment.tags=a.split(" ").map(p=>p.trim().toLowerCase()).filter(p=>p!==""))},null,8,["modelValue"])]),_:1})]),_:1}),n(V,{modelValue:t.equipment.causeRisks,"onUpdate:modelValue":e[3]||(e[3]=a=>t.equipment.causeRisks=a),"forbid-deletion":"",inverted:"",inset:""},{header:i(()=>[n(R,null,{default:i(()=>[n(b,null,{default:i(()=>[_("Verursachte Gefährdungen...")]),_:1}),n(v,{onClick:e[2]||(e[2]=a=>t.addCausedRisks=!0)},{default:i(()=>[_("Hinzufügen")]),_:1})]),_:1})]),_:1},8,["modelValue"]),n(w,{"is-open":t.addCausedRisks,onWillDismiss:e[5]||(e[5]=a=>t.addCausedRisks=!1),"hide-save":""},{default:i(()=>[n(C,{modelValue:t.equipment.causeRisks,"onUpdate:modelValue":e[4]||(e[4]=a=>t.equipment.causeRisks=a),"link-to-function":()=>{}},null,8,["modelValue"])]),_:1},8,["is-open"])],64)):G("",!0)}const P=N(M,[["render",z]]),ne=x({__name:"EquipmentEditPage",setup(o){let e,h={descr:"",tags:[],causeRisks:[]},m=!1;const t=U();return t.path==="/equipment/new"?m=!0:e=parseInt(t.params.id),(d,s)=>(g(),k(E,{onShouldCancel:s[2]||(s[2]=l=>d.$router.back()),onSubmit:s[3]||(s[3]=l=>{d.$refs.editor.saveToDb()})},{default:i(()=>[(g(),k(A,null,{default:i(()=>[n(P,{ref:"editor",id:f(e),"create-new":f(m),"default-values":f(h),onHasAdded:s[0]||(s[0]=l=>d.$router.back()),onHasSaved:s[1]||(s[1]=l=>d.$router.back())},null,8,["id","create-new","default-values"])]),_:1}))]),_:1}))}});export{ne as default}; diff --git a/ra/assets/EquipmentEditPage-legacy-HsAnWkP8.js b/ra/assets/EquipmentEditPage-legacy-HsAnWkP8.js new file mode 100644 index 0000000..804c299 --- /dev/null +++ b/ra/assets/EquipmentEditPage-legacy-HsAnWkP8.js @@ -0,0 +1 @@ +System.register(["./TemplateGenericEditPage-legacy-PPT4N-QR.js","./index-legacy-l9aK7RKf.js","./helpers-legacy-X82L35U6.js","./RiskList.vue_vue_type_script_setup_true_lang-legacy-Gt6J-dTZ.js","./GenericEditModal-legacy-bj_6eKP1.js","./RiskCatalog.vue_vue_type_script_setup_true_lang-legacy-HueAlsRD.js","./RiskListItem-legacy--OFZLq8T.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./liveriskstree-legacy-dlv-ajCr.js","./livequery-legacy-GqvLyVpq.js"],(function(e,t){"use strict";var i,s,n,a,u,l,d,o,r,c,m,p,h,g,f,_,k,q,v,b,y,R,V,j,w,I;return{setters:[e=>{i=e.T},e=>{s=e.I,n=e.r,a=e.i,u=e.h,l=e.D,d=e.k,o=e._,r=e.E,c=e.o,m=e.g,p=e.b,h=e.w,g=e.j,f=e.F,_=e.l,k=e.d,q=e.u,v=e.c,b=e.S,y=e.f},e=>{R=e.d,V=e.p},e=>{j=e._},e=>{w=e.G},e=>{I=e._},null,null,null,null],execute:function(){const t={components:{IonList:s,IonItem:n,IonLabel:a,IonListHeader:u,IonInput:l,RiskList:j,RiskCatalog:I,GenericEditModal:w,IonButton:d},emits:["hasSaved","hasAdded"],props:{id:{type:Number},createNew:Boolean,defaultValues:{type:Object,default:{descr:"",tags:[],causeRisks:[]}}},data:()=>({equipment:void 0,addCausedRisks:!1}),methods:{loadFromDb(){void 0!==this.id&&R.equipment.get(this.id).then((e=>{void 0!==e?this.equipment=e:V("Es existiert keine Ausrüstung mit der ID "+this.id+" in der Datenbank.","danger")}))},saveToDb(){if(void 0===this.equipment)return void V("Etwas ist schief gelaufen.");if(""===this.equipment.descr)return void V("Die Beschreibung darf nicht leer sein.");const e={descr:this.equipment.descr,tags:[...this.equipment.tags],causeRisks:[...this.equipment.causeRisks]};this.createNew&&R.equipment.add(e).then((t=>{V(e.descr+" wurde hinzugefügt.","success"),this.$emit("hasAdded",{id:t,...this.equipment})})).catch((e=>{throw V("Beim Speichern ist ein Fehler aufgetreten.","danger"),e})),void 0!==this.id?R.equipment.update(this.id,e).then((()=>{V("Änderungen gespeichert.","success"),console.log(e),this.$emit("hasSaved",{id:this.id,...this.equipment})})).catch((e=>{throw V("Beim Speichern ist ein Fehler aufgetreten.","warning"),e})):V("Ungültige ID","danger")}},mounted(){this.equipment=this.defaultValues,console.log(this.equipment),this.loadFromDb()}},C=o(t,[["render",function(e,t,i,s,n,a){const u=r("ion-input"),l=r("ion-item"),d=r("ion-list"),o=r("ion-label"),k=r("ion-button"),q=r("ion-list-header"),v=r("RiskList"),b=r("RiskCatalog"),y=r("GenericEditModal");return n.equipment?(c(),m(f,{key:0},[p(d,{inset:""},{default:h((()=>[p(l,null,{default:h((()=>[p(u,{label:"Beschreibung","label-placement":"floating",modelValue:n.equipment.descr,"onUpdate:modelValue":t[0]||(t[0]=e=>n.equipment.descr=e)},null,8,["modelValue"])])),_:1}),p(l,null,{default:h((()=>[p(u,{label:"Tags","label-placement":"floating",modelValue:n.equipment.tags.join(" "),"onUpdate:modelValue":t[1]||(t[1]=e=>n.equipment.tags=e.split(" ").map((e=>e.trim().toLowerCase())).filter((e=>""!==e)))},null,8,["modelValue"])])),_:1})])),_:1}),p(v,{modelValue:n.equipment.causeRisks,"onUpdate:modelValue":t[3]||(t[3]=e=>n.equipment.causeRisks=e),"forbid-deletion":"",inverted:"",inset:""},{header:h((()=>[p(q,null,{default:h((()=>[p(o,null,{default:h((()=>[g("Verursachte Gefährdungen...")])),_:1}),p(k,{onClick:t[2]||(t[2]=e=>n.addCausedRisks=!0)},{default:h((()=>[g("Hinzufügen")])),_:1})])),_:1})])),_:1},8,["modelValue"]),p(y,{"is-open":n.addCausedRisks,onWillDismiss:t[5]||(t[5]=e=>n.addCausedRisks=!1),"hide-save":""},{default:h((()=>[p(b,{modelValue:n.equipment.causeRisks,"onUpdate:modelValue":t[4]||(t[4]=e=>n.equipment.causeRisks=e),"link-to-function":()=>{}},null,8,["modelValue"])])),_:1},8,["is-open"])],64)):_("",!0)}]]);e("default",k({__name:"EquipmentEditPage",setup(e){let t,s={descr:"",tags:[],causeRisks:[]},n=!1;const a=q();return"/equipment/new"===a.path?n=!0:t=parseInt(a.params.id),(e,a)=>(c(),v(i,{onShouldCancel:a[2]||(a[2]=t=>e.$router.back()),onSubmit:a[3]||(a[3]=t=>{e.$refs.editor.saveToDb()})},{default:h((()=>[(c(),v(b,null,{default:h((()=>[p(C,{ref:"editor",id:y(t),"create-new":y(n),"default-values":y(s),onHasAdded:a[0]||(a[0]=t=>e.$router.back()),onHasSaved:a[1]||(a[1]=t=>e.$router.back())},null,8,["id","create-new","default-values"])])),_:1}))])),_:1}))}}))}}})); diff --git a/ra/assets/EquipmentList.vue_vue_type_script_setup_true_lang-LrAGbvfC.js b/ra/assets/EquipmentList.vue_vue_type_script_setup_true_lang-LrAGbvfC.js new file mode 100644 index 0000000..10ddf11 --- /dev/null +++ b/ra/assets/EquipmentList.vue_vue_type_script_setup_true_lang-LrAGbvfC.js @@ -0,0 +1 @@ +import{d as c,o as r,c as n,w as t,f as a,ah as f,r as g,i as p,t as d,j as i,b as u,ag as b,l as y}from"./index-DYrAM6VV.js";import{_ as k}from"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import{l as m}from"./livequery-N-IbBJej.js";const j=c({__name:"EquipmentList",props:{modelValue:{type:Array,default:void 0},entries:{type:Array,default:m.table("equipment").entries()},inverted:Boolean},emits:["update:modelValue"],setup(l,{emit:v}){return(s,o)=>(r(),n(k,{entries:l.entries,"delete-function":e=>a(m).table("equipment").delete(e),"model-value":l.modelValue,"onUpdate:modelValue":o[0]||(o[0]=e=>s.$emit("update:modelValue",e)),"messag-really-delete":e=>"".concat(e.descr," wirklich löschen?"),"message-delete-success":"Löschen erfolgreich.",inverted:l.inverted},{default:t(e=>[f(s.$slots,"default",{object:e.object},()=>[u(a(g),{"router-link":"/equipment/".concat(e.object.id)},{default:t(()=>[u(a(p),null,{default:t(()=>[i(d(e.object.descr),1)]),_:2},1024),e.object.causeRisks.length>0?(r(),n(a(b),{key:0,slot:"end",color:"warning"},{default:t(()=>[i(d(e.object.causeRisks.length),1)]),_:2},1024)):y("",!0)]),_:2},1032,["router-link"])])]),_:3},8,["entries","delete-function","model-value","messag-really-delete","inverted"]))}});export{j as _}; diff --git a/ra/assets/EquipmentList.vue_vue_type_script_setup_true_lang-legacy-Z90HBhdn.js b/ra/assets/EquipmentList.vue_vue_type_script_setup_true_lang-legacy-Z90HBhdn.js new file mode 100644 index 0000000..a7fe58a --- /dev/null +++ b/ra/assets/EquipmentList.vue_vue_type_script_setup_true_lang-legacy-Z90HBhdn.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./livequery-legacy-GqvLyVpq.js"],(function(e,t){"use strict";var l,s,i,r,u,a,n,d,o,c,m,p,_,f,g;return{setters:[e=>{l=e.d,s=e.o,i=e.c,r=e.w,u=e.f,a=e.ah,n=e.r,d=e.i,o=e.t,c=e.j,m=e.b,p=e.ag,_=e.l},e=>{f=e._},e=>{g=e.l}],execute:function(){e("_",l({__name:"EquipmentList",props:{modelValue:{type:Array,default:void 0},entries:{type:Array,default:g.table("equipment").entries()},inverted:Boolean},emits:["update:modelValue"],setup:(e,{emit:t})=>(t,l)=>(s(),i(f,{entries:e.entries,"delete-function":e=>u(g).table("equipment").delete(e),"model-value":e.modelValue,"onUpdate:modelValue":l[0]||(l[0]=e=>t.$emit("update:modelValue",e)),"messag-really-delete":e=>`${e.descr} wirklich löschen?`,"message-delete-success":"Löschen erfolgreich.",inverted:e.inverted},{default:r((e=>[a(t.$slots,"default",{object:e.object},(()=>[m(u(n),{"router-link":`/equipment/${e.object.id}`},{default:r((()=>[m(u(d),null,{default:r((()=>[c(o(e.object.descr),1)])),_:2},1024),e.object.causeRisks.length>0?(s(),i(u(p),{key:0,slot:"end",color:"warning"},{default:r((()=>[c(o(e.object.causeRisks.length),1)])),_:2},1024)):_("",!0)])),_:2},1032,["router-link"])]))])),_:3},8,["entries","delete-function","model-value","messag-really-delete","inverted"]))}))}}})); diff --git a/ra/assets/GenericEditModal-HfPjcc9X.js b/ra/assets/GenericEditModal-HfPjcc9X.js new file mode 100644 index 0000000..11a98b5 --- /dev/null +++ b/ra/assets/GenericEditModal-HfPjcc9X.js @@ -0,0 +1 @@ +import{A as ie,s as ae,v as le,y as ce,r as de,B as ue,k as fe,T as me,n as he,ak as ge,x as ve,_ as pe,E as y,o as T,c as B,w as p,b as C,t as G,j as D,l as F,ah as we}from"./index-DYrAM6VV.js";/*! Capacitor: https://capacitorjs.com/ - MIT License */const be=t=>{const e=new Map;e.set("web",{name:"web"});const n=t.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},i=(o,a)=>{n.platforms.set(o,a)},s=o=>{n.platforms.has(o)&&(n.currentPlatform=n.platforms.get(o))};return n.addPlatform=i,n.setPlatform=s,n},Pe=t=>t.CapacitorPlatforms=be(t),N=Pe(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});N.addPlatform;N.setPlatform;var S;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(S||(S={}));class H extends Error{constructor(e,n,i){super(e),this.message=e,this.code=n,this.data=i}}const ye=t=>{var e,n;return t!=null&&t.androidBridge?"android":!((n=(e=t==null?void 0:t.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||n===void 0)&&n.bridge?"ios":"web"},Ce=t=>{var e,n,i,s,o;const a=t.CapacitorCustomPlatform||null,r=t.Capacitor||{},u=r.Plugins=r.Plugins||{},l=t.CapacitorPlatforms,k=()=>a!==null?a.name:ye(t),w=((e=l==null?void 0:l.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||k,x=()=>w()!=="web",U=((n=l==null?void 0:l.currentPlatform)===null||n===void 0?void 0:n.isNativePlatform)||x,Q=c=>{const d=I.get(c);return!!(d!=null&&d.platforms.has(w())||M(c))},X=((i=l==null?void 0:l.currentPlatform)===null||i===void 0?void 0:i.isPluginAvailable)||Q,Y=c=>{var d;return(d=r.PluginHeaders)===null||d===void 0?void 0:d.find(E=>E.name===c)},M=((s=l==null?void 0:l.currentPlatform)===null||s===void 0?void 0:s.getPluginHeader)||Y,Z=c=>t.console.error(c),ee=(c,d,E)=>Promise.reject("".concat(E,' does not have an implementation of "').concat(d,'".')),I=new Map,te=(c,d={})=>{const E=I.get(c);if(E)return console.warn('Capacitor plugin "'.concat(c,'" already registered. Cannot register plugins twice.')),E.proxy;const _=w(),$=M(c);let v;const oe=async()=>(!v&&_ in d?v=typeof d[_]=="function"?v=await d[_]():v=d[_]:a!==null&&!v&&"web"in d&&(v=typeof d.web=="function"?v=await d.web():v=d.web),v),re=(f,m)=>{var g,b;if($){const P=$==null?void 0:$.methods.find(h=>m===h.name);if(P)return P.rtype==="promise"?h=>r.nativePromise(c,m.toString(),h):(h,O)=>r.nativeCallback(c,m.toString(),h,O);if(f)return(g=f[m])===null||g===void 0?void 0:g.bind(f)}else{if(f)return(b=f[m])===null||b===void 0?void 0:b.bind(f);throw new H('"'.concat(c,'" plugin is not implemented on ').concat(_),S.Unimplemented)}},A=f=>{let m;const g=(...b)=>{const P=oe().then(h=>{const O=re(h,f);if(O){const j=O(...b);return m=j==null?void 0:j.remove,j}else throw new H('"'.concat(c,".").concat(f,'()" is not implemented on ').concat(_),S.Unimplemented)});return f==="addListener"&&(P.remove=async()=>m()),P};return g.toString=()=>"".concat(f.toString(),"() { [capacitor code] }"),Object.defineProperty(g,"name",{value:f,writable:!1,configurable:!1}),g},R=A("addListener"),q=A("removeListener"),se=(f,m)=>{const g=R({eventName:f},m),b=async()=>{const h=await g;q({eventName:f,callbackId:h},m)},P=new Promise(h=>g.then(()=>h({remove:b})));return P.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await b()},P},W=new Proxy({},{get(f,m){switch(m){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return $?se:R;case"removeListener":return q;default:return A(m)}}});return u[c]=W,I.set(c,{name:c,proxy:W,platforms:new Set([...Object.keys(d),...$?[_]:[]])}),W},ne=((o=l==null?void 0:l.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||te;return r.convertFileSrc||(r.convertFileSrc=c=>c),r.getPlatform=w,r.handleError=Z,r.isNativePlatform=U,r.isPluginAvailable=X,r.pluginMethodNoop=ee,r.registerPlugin=ne,r.Exception=H,r.DEBUG=!!r.DEBUG,r.isLoggingEnabled=!!r.isLoggingEnabled,r.platform=r.getPlatform(),r.isNative=r.isNativePlatform(),r},_e=t=>t.Capacitor=Ce(t),L=_e(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),z=L.registerPlugin;L.Plugins;class J{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn('Capacitor WebPlugin "'.concat(e.name,'" config object was deprecated in v3 and will be removed in v4.')),this.config=e)}addListener(e,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(n);const s=this.windowListeners[e];s&&!s.registered&&this.addWindowListener(s);const o=async()=>this.removeListener(e,n),a=Promise.resolve({remove:o});return Object.defineProperty(a,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await o()}}),a}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,n){const i=this.listeners[e];i&&i.forEach(s=>s(n))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,n){this.windowListeners[n]={registered:!1,windowEventName:e,pluginEventName:n,handler:i=>{this.notifyListeners(n,i)}}}unimplemented(e="not implemented"){return new L.Exception(e,S.Unimplemented)}unavailable(e="not available"){return new L.Exception(e,S.Unavailable)}async removeListener(e,n){const i=this.listeners[e];if(!i)return;const s=i.indexOf(n);this.listeners[e].splice(s,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const K=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),V=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class Le extends J{async getCookies(){const e=document.cookie,n={};return e.split(";").forEach(i=>{if(i.length<=0)return;let[s,o]=i.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");s=V(s).trim(),o=V(o).trim(),n[s]=o}),n}async setCookie(e){try{const n=K(e.key),i=K(e.value),s="; expires=".concat((e.expires||"").replace("expires=","")),o=(e.path||"/").replace("path=",""),a=e.url!=null&&e.url.length>0?"domain=".concat(e.url):"";document.cookie="".concat(n,"=").concat(i||"").concat(s,"; path=").concat(o,"; ").concat(a,";")}catch(n){return Promise.reject(n)}}async deleteCookie(e){try{document.cookie="".concat(e.key,"=; Max-Age=0")}catch(n){return Promise.reject(n)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const n of e)document.cookie=n.replace(/^ +/,"").replace(/=.*/,"=;expires=".concat(new Date().toUTCString(),";path=/"))}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}z("CapacitorCookies",{web:()=>new Le});const ke=async t=>new Promise((e,n)=>{const i=new FileReader;i.onload=()=>{const s=i.result;e(s.indexOf(",")>=0?s.split(",")[1]:s)},i.onerror=s=>n(s),i.readAsDataURL(t)}),Ee=(t={})=>{const e=Object.keys(t);return Object.keys(t).map(s=>s.toLocaleLowerCase()).reduce((s,o,a)=>(s[o]=t[e[a]],s),{})},$e=(t,e=!0)=>t?Object.entries(t).reduce((i,s)=>{const[o,a]=s;let r,u;return Array.isArray(a)?(u="",a.forEach(l=>{r=e?encodeURIComponent(l):l,u+="".concat(o,"=").concat(r,"&")}),u.slice(0,-1)):(r=e?encodeURIComponent(a):a,u="".concat(o,"=").concat(r)),"".concat(i,"&").concat(u)},"").substr(1):null,Se=(t,e={})=>{const n=Object.assign({method:t.method||"GET",headers:t.headers},e),s=Ee(t.headers)["content-type"]||"";if(typeof t.data=="string")n.body=t.data;else if(s.includes("application/x-www-form-urlencoded")){const o=new URLSearchParams;for(const[a,r]of Object.entries(t.data||{}))o.set(a,r);n.body=o.toString()}else if(s.includes("multipart/form-data")||t.data instanceof FormData){const o=new FormData;if(t.data instanceof FormData)t.data.forEach((r,u)=>{o.append(u,r)});else for(const r of Object.keys(t.data))o.append(r,t.data[r]);n.body=o;const a=new Headers(n.headers);a.delete("content-type"),n.headers=a}else(s.includes("application/json")||typeof t.data=="object")&&(n.body=JSON.stringify(t.data));return n};class xe extends J{async request(e){const n=Se(e,e.webFetchExtra),i=$e(e.params,e.shouldEncodeUrlParams),s=i?"".concat(e.url,"?").concat(i):e.url,o=await fetch(s,n),a=o.headers.get("content-type")||"";let{responseType:r="text"}=o.ok?e:{};a.includes("application/json")&&(r="json");let u,l;switch(r){case"arraybuffer":case"blob":l=await o.blob(),u=await ke(l);break;case"json":u=await o.json();break;case"document":case"text":default:u=await o.text()}const k={};return o.headers.forEach((w,x)=>{k[x]=w}),{data:u,headers:k,status:o.status,url:o.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}z("CapacitorHttp",{web:()=>new xe});const Oe={components:{IonHeader:ie,IonToolbar:ae,IonButtons:le,IonTitle:ce,IonItem:de,IonContent:ue,IonButton:fe,IonModal:me,IonIcon:he},emits:["willDismiss","willPresent"],props:{captionSave:{type:String,default:void 0},iconSave:{type:String,default:ge},hideSave:Boolean,captionCancel:{type:String,default:void 0},iconCancel:{type:String,default:ve},hideCancel:Boolean},beforeRouteLeave(t,e){return console.log("Route leave"),t},methods:{onWillPresent(t){this.$emit("willPresent",t),L.isNativePlatform()||(console.log("Not Native"),this.$router.push({query:{edit:"true"}})),window.addEventListener("popstate",this.onPopState)},onPopState(t){console.log(t),window.removeEventListener("popstate",this.onPopState),L.isNativePlatform()||this.$refs.modal.$el.dismiss(void 0,"popstate"),console.log(t)},cancel(){this.$refs.modal.$el.dismiss()},save(){this.$refs.modal.$el.dismiss(void 0,"save")},onWillDismiss(t){t.detail.role!=="popstate"&&!L.isNativePlatform()&&this.$router.back(),this.$emit("willDismiss",t)}}};function je(t,e,n,i,s,o){const a=y("ion-icon"),r=y("ion-button"),u=y("ion-buttons"),l=y("ion-title"),k=y("ion-toolbar"),w=y("ion-header"),x=y("ion-content"),U=y("ion-modal");return T(),B(U,{ref:"modal",onWillPresent:o.onWillPresent,onWillDismiss:o.onWillDismiss},{default:p(()=>[C(w,null,{default:p(()=>[C(k,null,{default:p(()=>[n.hideCancel?F("",!0):(T(),B(u,{key:0,slot:"start"},{default:p(()=>[C(r,{onClick:o.cancel},{default:p(()=>[C(a,{icon:n.iconCancel,slot:n.captionCancel?"start":"icon-only"},null,8,["icon","slot"]),D(" "+G(n.captionCancel),1)]),_:1},8,["onClick"])]),_:1})),C(l,null,{default:p(()=>[D("Bearbeiten")]),_:1}),n.hideSave?F("",!0):(T(),B(u,{key:1,slot:"end"},{default:p(()=>[C(r,{strong:!0,onClick:o.save},{default:p(()=>[C(a,{icon:n.iconSave,slot:n.captionSave?"end":"icon-only"},null,8,["icon","slot"]),D(" "+G(n.captionSave),1)]),_:1},8,["onClick"])]),_:1}))]),_:1})]),_:1}),C(x,{class:"ion-padding"},{default:p(()=>[we(t.$slots,"default")]),_:3})]),_:3},8,["onWillPresent","onWillDismiss"])}const Ie=pe(Oe,[["render",je]]);export{Ie as G}; diff --git a/ra/assets/GenericEditModal-legacy-bj_6eKP1.js b/ra/assets/GenericEditModal-legacy-bj_6eKP1.js new file mode 100644 index 0000000..f22d048 --- /dev/null +++ b/ra/assets/GenericEditModal-legacy-bj_6eKP1.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js"],(function(e,t){"use strict";var n,o,i,s,r,a,l,c,d,u,m,p,f,h,w,v,g,b,y,P,C;return{setters:[e=>{n=e.A,o=e.s,i=e.v,s=e.y,r=e.r,a=e.B,l=e.k,c=e.T,d=e.n,u=e.ak,m=e.x,p=e._,f=e.E,h=e.o,w=e.c,v=e.w,g=e.b,b=e.t,y=e.j,P=e.l,C=e.ah}],execute:function(){/*! Capacitor: https://capacitorjs.com/ - MIT License */const t=(e=>e.CapacitorPlatforms=(e=>{const t=new Map;t.set("web",{name:"web"});const n=e.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:t};return n.addPlatform=(e,t)=>{n.platforms.set(e,t)},n.setPlatform=e=>{n.platforms.has(e)&&(n.currentPlatform=n.platforms.get(e))},n})(e))("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});var L;t.addPlatform,t.setPlatform,function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"}(L||(L={}));class $ extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}}const E=e=>{var t,n,o,i,s;const r=e.CapacitorCustomPlatform||null,a=e.Capacitor||{},l=a.Plugins=a.Plugins||{},c=e.CapacitorPlatforms,d=(null===(t=null==c?void 0:c.currentPlatform)||void 0===t?void 0:t.getPlatform)||(()=>null!==r?r.name:(e=>{var t,n;return(null==e?void 0:e.androidBridge)?"android":(null===(n=null===(t=null==e?void 0:e.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===n?void 0:n.bridge)?"ios":"web"})(e)),u=(null===(n=null==c?void 0:c.currentPlatform)||void 0===n?void 0:n.isNativePlatform)||(()=>"web"!==d()),m=(null===(o=null==c?void 0:c.currentPlatform)||void 0===o?void 0:o.isPluginAvailable)||(e=>{const t=f.get(e);return!!(null==t?void 0:t.platforms.has(d()))||!!p(e)}),p=(null===(i=null==c?void 0:c.currentPlatform)||void 0===i?void 0:i.getPluginHeader)||(e=>{var t;return null===(t=a.PluginHeaders)||void 0===t?void 0:t.find((t=>t.name===e))}),f=new Map,h=(null===(s=null==c?void 0:c.currentPlatform)||void 0===s?void 0:s.registerPlugin)||((e,t={})=>{const n=f.get(e);if(n)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),n.proxy;const o=d(),i=p(e);let s;const c=n=>{let l;const c=(...c)=>{const d=(async()=>(!s&&o in t?s=s="function"==typeof t[o]?await t[o]():t[o]:null!==r&&!s&&"web"in t&&(s=s="function"==typeof t.web?await t.web():t.web),s))().then((t=>{const s=((t,n)=>{var s,r;if(!i){if(t)return null===(r=t[n])||void 0===r?void 0:r.bind(t);throw new $(`"${e}" plugin is not implemented on ${o}`,L.Unimplemented)}{const o=null==i?void 0:i.methods.find((e=>n===e.name));if(o)return"promise"===o.rtype?t=>a.nativePromise(e,n.toString(),t):(t,o)=>a.nativeCallback(e,n.toString(),t,o);if(t)return null===(s=t[n])||void 0===s?void 0:s.bind(t)}})(t,n);if(s){const e=s(...c);return l=null==e?void 0:e.remove,e}throw new $(`"${e}.${n}()" is not implemented on ${o}`,L.Unimplemented)}));return"addListener"===n&&(d.remove=async()=>l()),d};return c.toString=()=>`${n.toString()}() { [capacitor code] }`,Object.defineProperty(c,"name",{value:n,writable:!1,configurable:!1}),c},u=c("addListener"),m=c("removeListener"),h=(e,t)=>{const n=u({eventName:e},t),o=async()=>{const o=await n;m({eventName:e,callbackId:o},t)},i=new Promise((e=>n.then((()=>e({remove:o})))));return i.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await o()},i},w=new Proxy({},{get(e,t){switch(t){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return i?h:u;case"removeListener":return m;default:return c(t)}}});return l[e]=w,f.set(e,{name:e,proxy:w,platforms:new Set([...Object.keys(t),...i?[o]:[]])}),w});return a.convertFileSrc||(a.convertFileSrc=e=>e),a.getPlatform=d,a.handleError=t=>e.console.error(t),a.isNativePlatform=u,a.isPluginAvailable=m,a.pluginMethodNoop=(e,t,n)=>Promise.reject(`${n} does not have an implementation of "${t}".`),a.registerPlugin=h,a.Exception=$,a.DEBUG=!!a.DEBUG,a.isLoggingEnabled=!!a.isLoggingEnabled,a.platform=a.getPlatform(),a.isNative=a.isNativePlatform(),a},j=(e=>e.Capacitor=E(e))("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),k=j.registerPlugin;j.Plugins;class O{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n);const o=async()=>this.removeListener(e,t),i=Promise.resolve({remove:o});return Object.defineProperty(i,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await o()}}),i}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t){const n=this.listeners[e];n&&n.forEach((e=>e(t)))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e="not implemented"){return new j.Exception(e,L.Unimplemented)}unavailable(e="not available"){return new j.Exception(e,L.Unavailable)}async removeListener(e,t){const n=this.listeners[e];if(!n)return;const o=n.indexOf(t);this.listeners[e].splice(o,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const S=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),x=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class U extends O{async getCookies(){const e=document.cookie,t={};return e.split(";").forEach((e=>{if(e.length<=0)return;let[n,o]=e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=x(n).trim(),o=x(o).trim(),t[n]=o})),t}async setCookie(e){try{const t=S(e.key),n=S(e.value),o=`; expires=${(e.expires||"").replace("expires=","")}`,i=(e.path||"/").replace("path=",""),s=null!=e.url&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${t}=${n||""}${o}; path=${i}; ${s};`}catch(t){return Promise.reject(t)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(t){return Promise.reject(t)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const t of e)document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}k("CapacitorCookies",{web:()=>new U});const I=(e,t={})=>{const n=Object.assign({method:e.method||"GET",headers:e.headers},t),o=((e={})=>{const t=Object.keys(e);return Object.keys(e).map((e=>e.toLocaleLowerCase())).reduce(((n,o,i)=>(n[o]=e[t[i]],n)),{})})(e.headers)["content-type"]||"";if("string"==typeof e.data)n.body=e.data;else if(o.includes("application/x-www-form-urlencoded")){const t=new URLSearchParams;for(const[n,o]of Object.entries(e.data||{}))t.set(n,o);n.body=t.toString()}else if(o.includes("multipart/form-data")||e.data instanceof FormData){const t=new FormData;if(e.data instanceof FormData)e.data.forEach(((e,n)=>{t.append(n,e)}));else for(const n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;const o=new Headers(n.headers);o.delete("content-type"),n.headers=o}else(o.includes("application/json")||"object"==typeof e.data)&&(n.body=JSON.stringify(e.data));return n};class N extends O{async request(e){const t=I(e,e.webFetchExtra),n=((e,t=!0)=>e?Object.entries(e).reduce(((e,n)=>{const[o,i]=n;let s,r;return Array.isArray(i)?(r="",i.forEach((e=>{s=t?encodeURIComponent(e):e,r+=`${o}=${s}&`})),r.slice(0,-1)):(s=t?encodeURIComponent(i):i,r=`${o}=${s}`),`${e}&${r}`}),"").substr(1):null)(e.params,e.shouldEncodeUrlParams),o=n?`${e.url}?${n}`:e.url,i=await fetch(o,t),s=i.headers.get("content-type")||"";let r,a,{responseType:l="text"}=i.ok?e:{};switch(s.includes("application/json")&&(l="json"),l){case"arraybuffer":case"blob":a=await i.blob(),r=await(async e=>new Promise(((t,n)=>{const o=new FileReader;o.onload=()=>{const e=o.result;t(e.indexOf(",")>=0?e.split(",")[1]:e)},o.onerror=e=>n(e),o.readAsDataURL(e)})))(a);break;case"json":r=await i.json();break;default:r=await i.text()}const c={};return i.headers.forEach(((e,t)=>{c[t]=e})),{data:r,headers:c,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}k("CapacitorHttp",{web:()=>new N});const A={components:{IonHeader:n,IonToolbar:o,IonButtons:i,IonTitle:s,IonItem:r,IonContent:a,IonButton:l,IonModal:c,IonIcon:d},emits:["willDismiss","willPresent"],props:{captionSave:{type:String,default:void 0},iconSave:{type:String,default:u},hideSave:Boolean,captionCancel:{type:String,default:void 0},iconCancel:{type:String,default:m},hideCancel:Boolean},beforeRouteLeave:(e,t)=>(console.log("Route leave"),e),methods:{onWillPresent(e){this.$emit("willPresent",e),j.isNativePlatform()||(console.log("Not Native"),this.$router.push({query:{edit:"true"}})),window.addEventListener("popstate",this.onPopState)},onPopState(e){console.log(e),window.removeEventListener("popstate",this.onPopState),j.isNativePlatform()||this.$refs.modal.$el.dismiss(void 0,"popstate"),console.log(e)},cancel(){this.$refs.modal.$el.dismiss()},save(){this.$refs.modal.$el.dismiss(void 0,"save")},onWillDismiss(e){"popstate"===e.detail.role||j.isNativePlatform()||this.$router.back(),this.$emit("willDismiss",e)}}};e("G",p(A,[["render",function(e,t,n,o,i,s){const r=f("ion-icon"),a=f("ion-button"),l=f("ion-buttons"),c=f("ion-title"),d=f("ion-toolbar"),u=f("ion-header"),m=f("ion-content"),p=f("ion-modal");return h(),w(p,{ref:"modal",onWillPresent:s.onWillPresent,onWillDismiss:s.onWillDismiss},{default:v((()=>[g(u,null,{default:v((()=>[g(d,null,{default:v((()=>[n.hideCancel?P("",!0):(h(),w(l,{key:0,slot:"start"},{default:v((()=>[g(a,{onClick:s.cancel},{default:v((()=>[g(r,{icon:n.iconCancel,slot:n.captionCancel?"start":"icon-only"},null,8,["icon","slot"]),y(" "+b(n.captionCancel),1)])),_:1},8,["onClick"])])),_:1})),g(c,null,{default:v((()=>[y("Bearbeiten")])),_:1}),n.hideSave?P("",!0):(h(),w(l,{key:1,slot:"end"},{default:v((()=>[g(a,{strong:!0,onClick:s.save},{default:v((()=>[g(r,{icon:n.iconSave,slot:n.captionSave?"end":"icon-only"},null,8,["icon","slot"]),y(" "+b(n.captionSave),1)])),_:1},8,["onClick"])])),_:1}))])),_:1})])),_:1}),g(m,{class:"ion-padding"},{default:v((()=>[C(e.$slots,"default")])),_:3})])),_:3},8,["onWillPresent","onWillDismiss"])}]]))}}})); diff --git a/ra/assets/GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js b/ra/assets/GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js new file mode 100644 index 0000000..b546b10 --- /dev/null +++ b/ra/assets/GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./helpers-legacy-X82L35U6.js"],(function(e,l){"use strict";var t,n,i,o,d,a,u,s,c,r,f,v,m,p,y,g,V,_,h,k,b,F,S,w,x,D,C;return{setters:[e=>{t=e.d,n=e.as,i=e.aJ,o=e.e,d=e.G,a=e.o,u=e.c,s=e.w,c=e.ah,r=e.g,f=e.V,v=e.F,m=e.f,p=e.I,y=e.at,g=e.r,V=e.i,_=e.t,h=e.j,k=e.b,b=e.au,F=e.av,S=e.n,w=e.l,x=e.Y},e=>{D=e.a,C=e.p}],execute:function(){e("_",t({__name:"GenericList",props:{entries:{type:Array,required:!0,readonly:!0},deleteFunction:Function,filter:{type:Function,default:()=>!0},setup:{type:Function,default:e=>e},messageDeleteSuccess:{type:String,default:"Löschen erfolgreich"},messagReallyDelete:{type:Function,default:()=>"Wirklich löschen?"},iconAdd:{type:String,default:n},iconRemove:{type:String,default:i},modelValue:{type:Array,default:void 0},inverted:Boolean,forbidEditing:Boolean,forbidDeletion:Boolean},emits:["update:modelValue"],setup(e,{expose:l,emit:t}){const n=e,i=t,I=o((()=>n.entries.filter((e=>n.filter(e))).map((e=>n.setup(e))))),A=d(null);l({editId:d(void 0)});const L=o((()=>void 0===n.modelValue?I.value:I.value.filter((e=>{var l;return(null===(l=n.modelValue)||void 0===l?void 0:l.includes(e.id))===n.inverted}))));async function j(e){if(void 0===e.id)return;const l={text:"Löschen",role:"destructive",icon:x,handler:(t=e.id,()=>{!async function(e){void 0!==n.deleteFunction?n.deleteFunction(e).then((()=>{void 0!==n.modelValue&&i("update:modelValue",n.modelValue.filter((l=>l!==e))),C(n.messageDeleteSuccess,"success")})).catch((e=>(console.log(e),e))):console.warn("Delete function was called but is undefined")}(t)})};var t;null!==A.value&&A.value.$el.closeSlidingItems(),await D(n.messagReallyDelete(e),l)}function R(e){void 0!==n.modelValue&&(n.inverted?i("update:modelValue",n.modelValue.filter((l=>l!==e))):i("update:modelValue",[...n.modelValue,e]))}return(l,t)=>(a(),u(m(p),{ref_key:"slidingList",ref:A},{default:s((()=>[c(l.$slots,"header"),(a(!0),r(v,null,f(L.value,((t,n)=>(a(),u(m(y),{key:t.id,ref_for:!0,ref:"slidingItem"},{default:s((()=>[c(l.$slots,"default",{object:t},(()=>[k(m(g),null,{default:s((()=>[k(m(V),null,{default:s((()=>[h(_(t),1)])),_:2},1024)])),_:2},1024)])),e.forbidEditing||void 0===e.modelValue?w("",!0):(a(),u(m(b),{key:0,side:"start",onIonSwipe:e=>R(t.id)},{default:s((()=>[e.inverted?(a(),u(m(F),{key:1,color:"warning",onClick:e=>R(t.id),expandable:""},{default:s((()=>[k(m(S),{icon:e.iconRemove,slot:"start"},null,8,["icon"]),h(" Enfernen ")])),_:2},1032,["onClick"])):(a(),u(m(F),{key:0,color:"success",onClick:e=>R(t.id),expandable:""},{default:s((()=>[k(m(S),{icon:e.iconAdd,slot:"start"},null,8,["icon"]),h(" Auswählen ")])),_:2},1032,["onClick"]))])),_:2},1032,["onIonSwipe"])),e.forbidDeletion||void 0===e.deleteFunction?w("",!0):(a(),u(m(b),{key:1,side:"end"},{default:s((()=>[k(m(F),{color:"danger",onClick:e=>j(t)},{default:s((()=>[k(m(S),{icon:m(x),slot:"end"},null,8,["icon"]),h(" Löschen ")])),_:2},1032,["onClick"])])),_:2},1024))])),_:2},1024)))),128))])),_:3},512))}}))}}})); diff --git a/ra/assets/GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js b/ra/assets/GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js new file mode 100644 index 0000000..3b67158 --- /dev/null +++ b/ra/assets/GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js @@ -0,0 +1 @@ +import{d as A,as as E,aJ as R,e as I,G as h,o as r,c as s,w as o,ah as V,g as N,V as b,F as G,f as n,I as O,at as T,r as _,i as q,t as J,j as u,b as d,au as k,av as p,n as g,l as S,Y as C}from"./index-DYrAM6VV.js";import{a as W,p as Y}from"./helpers-ZGJup-tE.js";const M=A({__name:"GenericList",props:{entries:{type:Array,required:!0,readonly:!0},deleteFunction:Function,filter:{type:Function,default:()=>!0},setup:{type:Function,default:i=>i},messageDeleteSuccess:{type:String,default:"Löschen erfolgreich"},messagReallyDelete:{type:Function,default:()=>"Wirklich löschen?"},iconAdd:{type:String,default:E},iconRemove:{type:String,default:R},modelValue:{type:Array,default:void 0},inverted:Boolean,forbidEditing:Boolean,forbidDeletion:Boolean},emits:["update:modelValue"],setup(i,{expose:D,emit:F}){const t=i,c=F,y=I(()=>t.entries.filter(e=>t.filter(e)).map(e=>t.setup(e))),f=h(null),L=h(void 0);D({editId:L});const w=I(()=>t.modelValue===void 0?y.value:y.value.filter(e=>{var l;return((l=t.modelValue)==null?void 0:l.includes(e.id))===t.inverted}));async function B(e){if(t.deleteFunction===void 0){console.warn("Delete function was called but is undefined");return}t.deleteFunction(e).then(()=>{t.modelValue!==void 0&&c("update:modelValue",t.modelValue.filter(l=>l!==e)),Y(t.messageDeleteSuccess,"success")}).catch(l=>(console.log(l),l))}async function $(e){if(e.id===void 0)return;const l={text:"Löschen",role:"destructive",icon:C,handler:x(e.id)};f.value!==null&&f.value.$el.closeSlidingItems(),await W(t.messagReallyDelete(e),l)}function x(e){return()=>{B(e)}}function m(e){t.modelValue!==void 0&&(t.inverted?c("update:modelValue",t.modelValue.filter(l=>l!==e)):c("update:modelValue",[...t.modelValue,e]))}return(e,l)=>(r(),s(n(O),{ref_key:"slidingList",ref:f},{default:o(()=>[V(e.$slots,"header"),(r(!0),N(G,null,b(w.value,(a,z)=>(r(),s(n(T),{key:a.id,ref_for:!0,ref:"slidingItem"},{default:o(()=>[V(e.$slots,"default",{object:a},()=>[d(n(_),null,{default:o(()=>[d(n(q),null,{default:o(()=>[u(J(a),1)]),_:2},1024)]),_:2},1024)]),!i.forbidEditing&&i.modelValue!==void 0?(r(),s(n(k),{key:0,side:"start",onIonSwipe:v=>m(a.id)},{default:o(()=>[i.inverted?(r(),s(n(p),{key:1,color:"warning",onClick:v=>m(a.id),expandable:""},{default:o(()=>[d(n(g),{icon:i.iconRemove,slot:"start"},null,8,["icon"]),u(" Enfernen ")]),_:2},1032,["onClick"])):(r(),s(n(p),{key:0,color:"success",onClick:v=>m(a.id),expandable:""},{default:o(()=>[d(n(g),{icon:i.iconAdd,slot:"start"},null,8,["icon"]),u(" Auswählen ")]),_:2},1032,["onClick"]))]),_:2},1032,["onIonSwipe"])):S("",!0),!i.forbidDeletion&&i.deleteFunction!==void 0?(r(),s(n(k),{key:1,side:"end"},{default:o(()=>[d(n(p),{color:"danger",onClick:v=>$(a)},{default:o(()=>[d(n(g),{icon:n(C),slot:"end"},null,8,["icon"]),u(" Löschen ")]),_:2},1032,["onClick"])]),_:2},1024)):S("",!0)]),_:2},1024))),128))]),_:3},512))}});export{M as _}; diff --git a/ra/assets/LandingPage-3V93WHBH.js b/ra/assets/LandingPage-3V93WHBH.js new file mode 100644 index 0000000..81853cf --- /dev/null +++ b/ra/assets/LandingPage-3V93WHBH.js @@ -0,0 +1 @@ +import{_ as t}from"./TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js";import{d as o,o as n,c as s,w as r,a as e,t as _}from"./index-DYrAM6VV.js";const c=e("h1",null,"Welcome",-1),u=o({__name:"LandingPage",setup(l){return(a,p)=>(n(),s(t,null,{default:r(()=>[c,e("p",null,_(a.$route.path),1)]),_:1}))}});export{u as default}; diff --git a/ra/assets/LandingPage-legacy-jNiGhj4u.js b/ra/assets/LandingPage-legacy-jNiGhj4u.js new file mode 100644 index 0000000..4d4fe54 --- /dev/null +++ b/ra/assets/LandingPage-legacy-jNiGhj4u.js @@ -0,0 +1 @@ +System.register(["./TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js","./index-legacy-l9aK7RKf.js"],(function(e,t){"use strict";var u,n,a,l,s,c,r;return{setters:[e=>{u=e._},e=>{n=e.d,a=e.o,l=e.c,s=e.w,c=e.a,r=e.t}],execute:function(){const t=c("h1",null,"Welcome",-1);e("default",n({__name:"LandingPage",setup:e=>(e,n)=>(a(),l(u,null,{default:s((()=>[t,c("p",null,r(e.$route.path),1)])),_:1}))}))}}})); diff --git a/ra/assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-Z3tgqIYP.js b/ra/assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-Z3tgqIYP.js new file mode 100644 index 0000000..f7ccb94 --- /dev/null +++ b/ra/assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-Z3tgqIYP.js @@ -0,0 +1 @@ +import{d as s,o as u,c as d,w as a,f as r,ah as m,b as l,i as f,j as c,t as p,r as v}from"./index-DYrAM6VV.js";import{_ as V}from"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import{l as i}from"./livequery-N-IbBJej.js";const $=s({__name:"MeasureCatalog",props:{entries:{type:Array,default:i.table("measures").entries()},routerLinkFunction:{type:Function,default:e=>"/measures/".concat(e.id)},modelValue:Array,inverted:Boolean},emits:["update:modelValue"],setup(e,{emit:b}){return(n,o)=>(u(),d(V,{entries:e.entries,"delete-function":t=>r(i).table("measures").delete(t),"model-value":e.modelValue,"onUpdate:modelValue":o[0]||(o[0]=t=>n.$emit("update:modelValue",t)),inverted:e.inverted},{header:a(()=>[m(n.$slots,"header")]),default:a(t=>[l(r(v),{"router-link":e.routerLinkFunction(t.object)},{default:a(()=>[l(r(f),null,{default:a(()=>[c(p(t.object.descr),1)]),_:2},1024)]),_:2},1032,["router-link"])]),_:3},8,["entries","delete-function","model-value","inverted"]))}});export{$ as _}; diff --git a/ra/assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-legacy-SWGuYKdX.js b/ra/assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-legacy-SWGuYKdX.js new file mode 100644 index 0000000..8b5a3a5 --- /dev/null +++ b/ra/assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-legacy-SWGuYKdX.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./livequery-legacy-GqvLyVpq.js"],(function(e,t){"use strict";var r,u,l,a,n,i,s,d,o,c,m,_,p;return{setters:[e=>{r=e.d,u=e.o,l=e.c,a=e.w,n=e.f,i=e.ah,s=e.b,d=e.i,o=e.j,c=e.t,m=e.r},e=>{_=e._},e=>{p=e.l}],execute:function(){e("_",r({__name:"MeasureCatalog",props:{entries:{type:Array,default:p.table("measures").entries()},routerLinkFunction:{type:Function,default:e=>`/measures/${e.id}`},modelValue:Array,inverted:Boolean},emits:["update:modelValue"],setup:(e,{emit:t})=>(t,r)=>(u(),l(_,{entries:e.entries,"delete-function":e=>n(p).table("measures").delete(e),"model-value":e.modelValue,"onUpdate:modelValue":r[0]||(r[0]=e=>t.$emit("update:modelValue",e)),inverted:e.inverted},{header:a((()=>[i(t.$slots,"header")])),default:a((t=>[s(n(m),{"router-link":e.routerLinkFunction(t.object)},{default:a((()=>[s(n(d),null,{default:a((()=>[o(c(t.object.descr),1)])),_:2},1024)])),_:2},1032,["router-link"])])),_:3},8,["entries","delete-function","model-value","inverted"]))}))}}})); diff --git a/ra/assets/MeasureDetailsPage-af5t5lTX.js b/ra/assets/MeasureDetailsPage-af5t5lTX.js new file mode 100644 index 0000000..36b1f16 --- /dev/null +++ b/ra/assets/MeasureDetailsPage-af5t5lTX.js @@ -0,0 +1 @@ +import{d as k,f as e,o,g as b,b as a,w as t,r as v,i as u,j as n,t as y,I as h,h as c,c as i,l as f,F as B,u as C,s as R,v as _,k as m,n as p,x,y as $,z as A,A as D,S as M,B as N,C as V}from"./index-DYrAM6VV.js";import{_ as I}from"./RiskList.vue_vue_type_script_setup_true_lang-RlQXPtnM.js";import{l as w}from"./livequery-N-IbBJej.js";import"./RiskListItem-_kbE0JWc.js";import"./helpers-ZGJup-tE.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import"./liveriskstree-S1mQ308m.js";const L=k({__name:"MeasureDetails",props:{id:{type:Number,required:!0}},setup(d){const l=d,s=w.table("measures").getAsRef(l.id);return(r,g)=>e(s)?(o(),b(B,{key:0},[a(e(h),{inset:""},{default:t(()=>[a(e(v),null,{default:t(()=>[a(e(u),null,{default:t(()=>[n(y(e(s).descr),1)]),_:1})]),_:1})]),_:1}),a(I,{"model-value":e(s).solveRisks,"forbid-deletion":"",inverted:"","forbid-editing":"",inset:""},{header:t(()=>[a(e(c),null,{default:t(()=>[a(e(u),null,{default:t(()=>[n("Maßnahme für...")]),_:1})]),_:1})]),_:1},8,["model-value"]),Array.isArray(e(s).causeRisks)&&e(s).causeRisks.length>0?(o(),i(I,{key:0,"model-value":e(s).causeRisks,"forbid-deletion":"","forbid-editing":"",inverted:"",inset:""},{header:t(()=>[a(e(c),null,{default:t(()=>[a(e(u),null,{default:t(()=>[n("Verursachte Gefährdungen...")]),_:1})]),_:1})]),_:1},8,["model-value"])):f("",!0)],64)):f("",!0)}}),z=k({__name:"MeasureDetailsPage",setup(d){const l=parseInt(C().params.id);return(s,r)=>(o(),i(e(V),null,{default:t(()=>[a(e(D),null,{default:t(()=>[a(e(R),null,{default:t(()=>[a(e(_),{slot:"start"},{default:t(()=>[a(e(m),{onClick:r[0]||(r[0]=g=>s.$router.back())},{default:t(()=>[a(e(p),{icon:e(x),slot:"icon-only"},null,8,["icon"])]),_:1})]),_:1}),a(e($),null,{default:t(()=>[n("Details")]),_:1}),a(e(_),{slot:"end"},{default:t(()=>[a(e(m),{"router-link":"/measures/".concat(e(l),"/edit")},{default:t(()=>[a(e(p),{icon:e(A),slot:"icon-only"},null,8,["icon"])]),_:1},8,["router-link"])]),_:1})]),_:1})]),_:1}),a(e(N),{color:"light"},{default:t(()=>[(o(),i(M,null,{default:t(()=>[a(L,{id:e(l)},null,8,["id"])]),_:1}))]),_:1})]),_:1}))}});export{z as default}; diff --git a/ra/assets/MeasureDetailsPage-legacy-y74zfiku.js b/ra/assets/MeasureDetailsPage-legacy-y74zfiku.js new file mode 100644 index 0000000..4d2be60 --- /dev/null +++ b/ra/assets/MeasureDetailsPage-legacy-y74zfiku.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./RiskList.vue_vue_type_script_setup_true_lang-legacy-Gt6J-dTZ.js","./livequery-legacy-GqvLyVpq.js","./RiskListItem-legacy--OFZLq8T.js","./helpers-legacy-X82L35U6.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,l){"use strict";var t,u,s,n,a,i,r,d,o,_,c,f,y,g,v,k,p,m,h,b,j,R,x,A,D,I,L,M,q;return{setters:[e=>{t=e.d,u=e.f,s=e.o,n=e.g,a=e.b,i=e.w,r=e.r,d=e.i,o=e.j,_=e.t,c=e.I,f=e.h,y=e.c,g=e.l,v=e.F,k=e.u,p=e.s,m=e.v,h=e.k,b=e.n,j=e.x,R=e.y,x=e.z,A=e.A,D=e.S,I=e.B,L=e.C},e=>{M=e._},e=>{q=e.l},null,null,null,null],execute:function(){const l=t({__name:"MeasureDetails",props:{id:{type:Number,required:!0}},setup(e){const l=e,t=q.table("measures").getAsRef(l.id);return(e,l)=>u(t)?(s(),n(v,{key:0},[a(u(c),{inset:""},{default:i((()=>[a(u(r),null,{default:i((()=>[a(u(d),null,{default:i((()=>[o(_(u(t).descr),1)])),_:1})])),_:1})])),_:1}),a(M,{"model-value":u(t).solveRisks,"forbid-deletion":"",inverted:"","forbid-editing":"",inset:""},{header:i((()=>[a(u(f),null,{default:i((()=>[a(u(d),null,{default:i((()=>[o("Maßnahme für...")])),_:1})])),_:1})])),_:1},8,["model-value"]),Array.isArray(u(t).causeRisks)&&u(t).causeRisks.length>0?(s(),y(M,{key:0,"model-value":u(t).causeRisks,"forbid-deletion":"","forbid-editing":"",inverted:"",inset:""},{header:i((()=>[a(u(f),null,{default:i((()=>[a(u(d),null,{default:i((()=>[o("Verursachte Gefährdungen...")])),_:1})])),_:1})])),_:1},8,["model-value"])):g("",!0)],64)):g("",!0)}});e("default",t({__name:"MeasureDetailsPage",setup(e){const t=parseInt(k().params.id);return(e,n)=>(s(),y(u(L),null,{default:i((()=>[a(u(A),null,{default:i((()=>[a(u(p),null,{default:i((()=>[a(u(m),{slot:"start"},{default:i((()=>[a(u(h),{onClick:n[0]||(n[0]=l=>e.$router.back())},{default:i((()=>[a(u(b),{icon:u(j),slot:"icon-only"},null,8,["icon"])])),_:1})])),_:1}),a(u(R),null,{default:i((()=>[o("Details")])),_:1}),a(u(m),{slot:"end"},{default:i((()=>[a(u(h),{"router-link":`/measures/${u(t)}/edit`},{default:i((()=>[a(u(b),{icon:u(x),slot:"icon-only"},null,8,["icon"])])),_:1},8,["router-link"])])),_:1})])),_:1})])),_:1}),a(u(I),{color:"light"},{default:i((()=>[(s(),y(D,null,{default:i((()=>[a(l,{id:u(t)},null,8,["id"])])),_:1}))])),_:1})])),_:1}))}}))}}})); diff --git a/ra/assets/MeasureEditPage-fpofoCRn.js b/ra/assets/MeasureEditPage-fpofoCRn.js new file mode 100644 index 0000000..b94dc82 --- /dev/null +++ b/ra/assets/MeasureEditPage-fpofoCRn.js @@ -0,0 +1 @@ +import{T as w}from"./TemplateGenericEditPage-c3J_MoRf.js";import{I as D,r as S,i as E,h as x,D as F,k as B,_ as M,E as a,o as v,g as G,b as t,w as i,j as p,F as N,l as L,d as T,u as U,c as C,S as y,f as k}from"./index-DYrAM6VV.js";import{d as c,p as u}from"./helpers-ZGJup-tE.js";import{_ as H}from"./RiskList.vue_vue_type_script_setup_true_lang-RlQXPtnM.js";import{G as z}from"./GenericEditModal-HfPjcc9X.js";import{_ as A}from"./RiskCatalog.vue_vue_type_script_setup_true_lang-t3Akc4GU.js";import"./RiskListItem-_kbE0JWc.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import"./liveriskstree-S1mQ308m.js";import"./livequery-N-IbBJej.js";const $={components:{IonList:D,IonItem:S,IonLabel:E,IonListHeader:x,IonInput:F,RiskList:H,RiskCatalog:A,GenericEditModal:z,IonButton:B},emits:["hasSaved","hasAdded"],props:{id:{type:Number},createNew:Boolean,defaultValues:{type:Object,default:{descr:"",solveRisks:[],causeRisks:[]}}},data(){return{measure:void 0,addSolvedRisks:!1,addCausedRisks:!1}},methods:{loadFromDb(){this.id!==void 0&&c.measures.get(this.id).then(l=>{if(l===void 0){u("Es existiert keine Maßnahme mit der ID "+this.id+" in der Datenbank.","danger");return}this.measure=l})},saveToDb(){var e,m;if(((e=this.measure)==null?void 0:e.descr)===""){u("Die Beschreibung darf nicht leer sein.");return}if(((m=this.measure)==null?void 0:m.solveRisks.length)===0){u("Eine Maßnahme muss mindestens eine Gefährdung lösen.");return}if(this.measure===void 0){u("Etwas ist schief gelaufen.");return}const l={descr:this.measure.descr,solveRisks:[...this.measure.solveRisks],causeRisks:[...this.measure.causeRisks]};if(this.createNew&&c.measures.add(l).then(r=>{u("Die Maßnahme wurde hinzugefügt.","success"),this.$emit("hasAdded",{id:r,...this.measure})}).catch(r=>{throw u("Beim Speichern ist ein Fehler aufgetreten.","danger"),r}),this.id===void 0){u("Ungültige ID","danger");return}c.measures.update(this.id,l).then(()=>{u("Änderungen gespeichert.","success"),this.$emit("hasSaved",{id:this.id,...this.measure})}).catch(r=>{throw u("Beim Speichern ist ein Fehler aufgetreten.","warning"),r})}},mounted(){this.measure=this.defaultValues,console.log(this.measure),this.loadFromDb()}};function j(l,e,m,r,s,d){const o=a("ion-input"),f=a("ion-item"),I=a("ion-list"),h=a("ion-label"),R=a("ion-button"),_=a("ion-list-header"),g=a("RiskList"),b=a("RiskCatalog"),V=a("GenericEditModal");return s.measure?(v(),G(N,{key:0},[t(I,{inset:""},{default:i(()=>[t(f,null,{default:i(()=>[t(o,{label:"Beschreibung","label-placement":"floating",modelValue:s.measure.descr,"onUpdate:modelValue":e[0]||(e[0]=n=>s.measure.descr=n)},null,8,["modelValue"])]),_:1})]),_:1}),t(g,{modelValue:s.measure.solveRisks,"onUpdate:modelValue":e[2]||(e[2]=n=>s.measure.solveRisks=n),"forbid-deletion":"",inverted:"",inset:""},{header:i(()=>[t(_,null,{default:i(()=>[t(h,null,{default:i(()=>[p("Maßnahme für...")]),_:1}),t(R,{onClick:e[1]||(e[1]=n=>s.addSolvedRisks=!0)},{default:i(()=>[p("Hinzufügen")]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(V,{"is-open":s.addSolvedRisks,onWillDismiss:e[4]||(e[4]=n=>s.addSolvedRisks=!1),"hide-save":""},{default:i(()=>[t(b,{modelValue:s.measure.solveRisks,"onUpdate:modelValue":e[3]||(e[3]=n=>s.measure.solveRisks=n),"link-to-function":()=>{}},null,8,["modelValue"])]),_:1},8,["is-open"]),t(g,{modelValue:s.measure.causeRisks,"onUpdate:modelValue":e[6]||(e[6]=n=>s.measure.causeRisks=n),"forbid-deletion":"",inverted:"",inset:""},{header:i(()=>[t(_,null,{default:i(()=>[t(h,null,{default:i(()=>[p("Verursachte Gefährdungen...")]),_:1}),t(R,{onClick:e[5]||(e[5]=n=>s.addCausedRisks=!0)},{default:i(()=>[p("Hinzufügen")]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(V,{"is-open":s.addCausedRisks,onWillDismiss:e[8]||(e[8]=n=>s.addCausedRisks=!1),"hide-save":""},{default:i(()=>[t(b,{modelValue:s.measure.causeRisks,"onUpdate:modelValue":e[7]||(e[7]=n=>s.measure.causeRisks=n),"link-to-function":()=>{},exclude:s.measure.solveRisks},null,8,["modelValue","exclude"])]),_:1},8,["is-open"])],64)):L("",!0)}const q=M($,[["render",j]]),se=T({__name:"MeasureEditPage",setup(l){let e,m={descr:"",solveRisks:[],causeRisks:[]},r=!1;const s=U();if(s.path==="/measures/new"){if(r=!0,s.query.for!==void 0){let d=parseInt(s.query.for);m.solveRisks.push(d)}}else e=parseInt(s.params.id);return(d,o)=>(v(),C(w,{onShouldCancel:o[2]||(o[2]=f=>d.$router.back()),onSubmit:o[3]||(o[3]=f=>{d.$refs.editor.saveToDb()})},{default:i(()=>[(v(),C(y,null,{default:i(()=>[t(q,{ref:"editor",id:k(e),"create-new":k(r),"default-values":k(m),onHasAdded:o[0]||(o[0]=f=>d.$router.back()),onHasSaved:o[1]||(o[1]=f=>d.$router.back())},null,8,["id","create-new","default-values"])]),_:1}))]),_:1}))}});export{se as default}; diff --git a/ra/assets/MeasureEditPage-legacy-Dhj6B0vU.js b/ra/assets/MeasureEditPage-legacy-Dhj6B0vU.js new file mode 100644 index 0000000..794e8cd --- /dev/null +++ b/ra/assets/MeasureEditPage-legacy-Dhj6B0vU.js @@ -0,0 +1 @@ +System.register(["./TemplateGenericEditPage-legacy-PPT4N-QR.js","./index-legacy-l9aK7RKf.js","./helpers-legacy-X82L35U6.js","./RiskList.vue_vue_type_script_setup_true_lang-legacy-Gt6J-dTZ.js","./GenericEditModal-legacy-bj_6eKP1.js","./RiskCatalog.vue_vue_type_script_setup_true_lang-legacy-HueAlsRD.js","./RiskListItem-legacy--OFZLq8T.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./liveriskstree-legacy-dlv-ajCr.js","./livequery-legacy-GqvLyVpq.js"],(function(e,s){"use strict";var i,a,t,l,u,d,n,r,o,c,m,h,v,f,k,g,p,_,R,b,y,V,I,D,S,j;return{setters:[e=>{i=e.T},e=>{a=e.I,t=e.r,l=e.i,u=e.h,d=e.D,n=e.k,r=e._,o=e.E,c=e.o,m=e.g,h=e.b,v=e.w,f=e.j,k=e.F,g=e.l,p=e.d,_=e.u,R=e.c,b=e.S,y=e.f},e=>{V=e.d,I=e.p},e=>{D=e._},e=>{S=e.G},e=>{j=e._},null,null,null,null],execute:function(){const s={components:{IonList:a,IonItem:t,IonLabel:l,IonListHeader:u,IonInput:d,RiskList:D,RiskCatalog:j,GenericEditModal:S,IonButton:n},emits:["hasSaved","hasAdded"],props:{id:{type:Number},createNew:Boolean,defaultValues:{type:Object,default:{descr:"",solveRisks:[],causeRisks:[]}}},data:()=>({measure:void 0,addSolvedRisks:!1,addCausedRisks:!1}),methods:{loadFromDb(){void 0!==this.id&&V.measures.get(this.id).then((e=>{void 0!==e?this.measure=e:I("Es existiert keine Maßnahme mit der ID "+this.id+" in der Datenbank.","danger")}))},saveToDb(){var e,s;if(""===(null===(e=this.measure)||void 0===e?void 0:e.descr))return void I("Die Beschreibung darf nicht leer sein.");if(0===(null===(s=this.measure)||void 0===s?void 0:s.solveRisks.length))return void I("Eine Maßnahme muss mindestens eine Gefährdung lösen.");if(void 0===this.measure)return void I("Etwas ist schief gelaufen.");const i={descr:this.measure.descr,solveRisks:[...this.measure.solveRisks],causeRisks:[...this.measure.causeRisks]};this.createNew&&V.measures.add(i).then((e=>{I("Die Maßnahme wurde hinzugefügt.","success"),this.$emit("hasAdded",{id:e,...this.measure})})).catch((e=>{throw I("Beim Speichern ist ein Fehler aufgetreten.","danger"),e})),void 0!==this.id?V.measures.update(this.id,i).then((()=>{I("Änderungen gespeichert.","success"),this.$emit("hasSaved",{id:this.id,...this.measure})})).catch((e=>{throw I("Beim Speichern ist ein Fehler aufgetreten.","warning"),e})):I("Ungültige ID","danger")}},mounted(){this.measure=this.defaultValues,console.log(this.measure),this.loadFromDb()}},w=r(s,[["render",function(e,s,i,a,t,l){const u=o("ion-input"),d=o("ion-item"),n=o("ion-list"),r=o("ion-label"),p=o("ion-button"),_=o("ion-list-header"),R=o("RiskList"),b=o("RiskCatalog"),y=o("GenericEditModal");return t.measure?(c(),m(k,{key:0},[h(n,{inset:""},{default:v((()=>[h(d,null,{default:v((()=>[h(u,{label:"Beschreibung","label-placement":"floating",modelValue:t.measure.descr,"onUpdate:modelValue":s[0]||(s[0]=e=>t.measure.descr=e)},null,8,["modelValue"])])),_:1})])),_:1}),h(R,{modelValue:t.measure.solveRisks,"onUpdate:modelValue":s[2]||(s[2]=e=>t.measure.solveRisks=e),"forbid-deletion":"",inverted:"",inset:""},{header:v((()=>[h(_,null,{default:v((()=>[h(r,null,{default:v((()=>[f("Maßnahme für...")])),_:1}),h(p,{onClick:s[1]||(s[1]=e=>t.addSolvedRisks=!0)},{default:v((()=>[f("Hinzufügen")])),_:1})])),_:1})])),_:1},8,["modelValue"]),h(y,{"is-open":t.addSolvedRisks,onWillDismiss:s[4]||(s[4]=e=>t.addSolvedRisks=!1),"hide-save":""},{default:v((()=>[h(b,{modelValue:t.measure.solveRisks,"onUpdate:modelValue":s[3]||(s[3]=e=>t.measure.solveRisks=e),"link-to-function":()=>{}},null,8,["modelValue"])])),_:1},8,["is-open"]),h(R,{modelValue:t.measure.causeRisks,"onUpdate:modelValue":s[6]||(s[6]=e=>t.measure.causeRisks=e),"forbid-deletion":"",inverted:"",inset:""},{header:v((()=>[h(_,null,{default:v((()=>[h(r,null,{default:v((()=>[f("Verursachte Gefährdungen...")])),_:1}),h(p,{onClick:s[5]||(s[5]=e=>t.addCausedRisks=!0)},{default:v((()=>[f("Hinzufügen")])),_:1})])),_:1})])),_:1},8,["modelValue"]),h(y,{"is-open":t.addCausedRisks,onWillDismiss:s[8]||(s[8]=e=>t.addCausedRisks=!1),"hide-save":""},{default:v((()=>[h(b,{modelValue:t.measure.causeRisks,"onUpdate:modelValue":s[7]||(s[7]=e=>t.measure.causeRisks=e),"link-to-function":()=>{},exclude:t.measure.solveRisks},null,8,["modelValue","exclude"])])),_:1},8,["is-open"])],64)):g("",!0)}]]);e("default",p({__name:"MeasureEditPage",setup(e){let s,a={descr:"",solveRisks:[],causeRisks:[]},t=!1;const l=_();if("/measures/new"===l.path){if(t=!0,void 0!==l.query.for){let e=parseInt(l.query.for);a.solveRisks.push(e)}}else s=parseInt(l.params.id);return(e,l)=>(c(),R(i,{onShouldCancel:l[2]||(l[2]=s=>e.$router.back()),onSubmit:l[3]||(l[3]=s=>{e.$refs.editor.saveToDb()})},{default:v((()=>[(c(),R(b,null,{default:v((()=>[h(w,{ref:"editor",id:y(s),"create-new":y(t),"default-values":y(a),onHasAdded:l[0]||(l[0]=s=>e.$router.back()),onHasSaved:l[1]||(l[1]=s=>e.$router.back())},null,8,["id","create-new","default-values"])])),_:1}))])),_:1}))}}))}}})); diff --git a/ra/assets/MeasuresCatalogPage-5rpP6tEC.js b/ra/assets/MeasuresCatalogPage-5rpP6tEC.js new file mode 100644 index 0000000..e0afe8c --- /dev/null +++ b/ra/assets/MeasuresCatalogPage-5rpP6tEC.js @@ -0,0 +1 @@ +import{d as s,o as r,c as i,w as e,b as o,f as a,m,n as l,p as u,q as f}from"./index-DYrAM6VV.js";import{_ as p}from"./TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js";import{_}from"./MeasureCatalog.vue_vue_type_script_setup_true_lang-Z3tgqIYP.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import"./helpers-ZGJup-tE.js";import"./livequery-N-IbBJej.js";const x=s({__name:"MeasuresCatalogPage",setup(c){return(n,t)=>(r(),i(p,null,{default:e(()=>[o(a(f),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:e(()=>[o(a(m),{onClick:t[0]||(t[0]=d=>n.$router.push("/measures/new"))},{default:e(()=>[o(a(l),{icon:a(u)},null,8,["icon"])]),_:1})]),_:1}),o(_)]),_:1}))}});export{x as default}; diff --git a/ra/assets/MeasuresCatalogPage-legacy-AvG4mjrA.js b/ra/assets/MeasuresCatalogPage-legacy-AvG4mjrA.js new file mode 100644 index 0000000..4536417 --- /dev/null +++ b/ra/assets/MeasuresCatalogPage-legacy-AvG4mjrA.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js","./MeasureCatalog.vue_vue_type_script_setup_true_lang-legacy-SWGuYKdX.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js"],(function(e,t){"use strict";var u,l,a,s,_,n,r,c,i,g,o,p;return{setters:[e=>{u=e.d,l=e.o,a=e.c,s=e.w,_=e.b,n=e.f,r=e.m,c=e.n,i=e.p,g=e.q},e=>{o=e._},e=>{p=e._},null,null,null],execute:function(){e("default",u({__name:"MeasuresCatalogPage",setup:e=>(e,t)=>(l(),a(o,null,{default:s((()=>[_(n(g),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:s((()=>[_(n(r),{onClick:t[0]||(t[0]=t=>e.$router.push("/measures/new"))},{default:s((()=>[_(n(c),{icon:n(i)},null,8,["icon"])])),_:1})])),_:1}),_(p)])),_:1}))}))}}})); diff --git a/ra/assets/RAEditAccess-FLjc5L4p.js b/ra/assets/RAEditAccess-FLjc5L4p.js new file mode 100644 index 0000000..fd1de1b --- /dev/null +++ b/ra/assets/RAEditAccess-FLjc5L4p.js @@ -0,0 +1 @@ +import{d as g,o as s,c as r,w as t,f as e,g as m,b as l,m as _,n as k,p as h,q as b,F as c,V as I,l as C,O as x,P as U,Q as w,D as A,R as B,N as u,k as T,j as v,a as F,Y as N}from"./index-DYrAM6VV.js";import{u as S}from"./riskassessment-gvIk_m2h.js";import{T as L}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import{a as P}from"./helpers-ZGJup-tE.js";import"./livequery-N-IbBJej.js";import"./liveriskstree-S1mQ308m.js";const R={class:"ion-text-right"},H=g({__name:"RAEditAccess",setup(y){const d=S();function p(){d.addSector()}function f(o){const i=d.access.findIndex(a=>a.id===o.id);if(i===-1){console.warn("Sector "+o.title+" ("+o.id+") not found in riskassessment");return}d.access.splice(i,1)}function V(o){P("Die Gefährdung wirklich aus der Liste entfernen?",{text:"Löschen",role:"destructive",icon:N,handler:()=>{f(o)}})}return(o,i)=>(s(),r(L,null,{default:t(()=>[e(d).ready?(s(),m(c,{key:0},[l(e(b),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:t(()=>[l(e(_),{onClick:p},{default:t(()=>[l(e(k),{icon:e(h)},null,8,["icon"])]),_:1})]),_:1}),(s(!0),m(c,null,I(e(d).access,a=>(s(),r(e(x),{key:a.id},{default:t(()=>[l(e(U),null,{default:t(()=>[l(e(w),null,{default:t(()=>[l(e(A),{modelValue:a.title,"onUpdate:modelValue":n=>a.title=n,label:"Titel","label-placement":"floating"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),l(e(B),null,{default:t(()=>[l(e(u),{modelValue:a.entrance,"onUpdate:modelValue":n=>a.entrance=n,label:"Eingang","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"]),l(e(u),{modelValue:a.exit,"onUpdate:modelValue":n=>a.exit=n,label:"Ausgang","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"]),l(e(u),{modelValue:a.anchorPoints,"onUpdate:modelValue":n=>a.anchorPoints=n,label:"Anschlagpunkte","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"]),l(e(u),{modelValue:a.comment,"onUpdate:modelValue":n=>a.comment=n,label:"Kommentar","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"]),F("div",R,[l(e(T),{fill:"clear",color:"danger",onClick:n=>V(a)},{default:t(()=>[v("Löschen")]),_:2},1032,["onClick"])])]),_:2},1024)]),_:2},1024))),128))],64)):C("",!0)]),_:1}))}});export{H as default}; diff --git a/ra/assets/RAEditAccess-legacy-OVKuuqnz.js b/ra/assets/RAEditAccess-legacy-OVKuuqnz.js new file mode 100644 index 0000000..167bd27 --- /dev/null +++ b/ra/assets/RAEditAccess-legacy-OVKuuqnz.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,l){"use strict";var a,n,t,o,u,d,s,c,i,r,m,f,g,p,V,b,k,y,h,U,_,x,j,w,v,A,P;return{setters:[e=>{a=e.d,n=e.o,t=e.c,o=e.w,u=e.f,d=e.g,s=e.b,c=e.m,i=e.n,r=e.p,m=e.q,f=e.F,g=e.V,p=e.l,V=e.O,b=e.P,k=e.Q,y=e.D,h=e.R,U=e.N,_=e.k,x=e.j,j=e.a,w=e.Y},e=>{v=e.u},e=>{A=e.T},e=>{P=e.a},null,null],execute:function(){const l={class:"ion-text-right"};e("default",a({__name:"RAEditAccess",setup(e){const a=v();function C(){a.addSector()}function L(e){P("Die Gefährdung wirklich aus der Liste entfernen?",{text:"Löschen",role:"destructive",icon:w,handler:()=>{!function(e){const l=a.access.findIndex((l=>l.id===e.id));-1!==l?a.access.splice(l,1):console.warn("Sector "+e.title+" ("+e.id+") not found in riskassessment")}(e)}})}return(e,w)=>(n(),t(A,null,{default:o((()=>[u(a).ready?(n(),d(f,{key:0},[s(u(m),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:o((()=>[s(u(c),{onClick:C},{default:o((()=>[s(u(i),{icon:u(r)},null,8,["icon"])])),_:1})])),_:1}),(n(!0),d(f,null,g(u(a).access,(e=>(n(),t(u(V),{key:e.id},{default:o((()=>[s(u(b),null,{default:o((()=>[s(u(k),null,{default:o((()=>[s(u(y),{modelValue:e.title,"onUpdate:modelValue":l=>e.title=l,label:"Titel","label-placement":"floating"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024),s(u(h),null,{default:o((()=>[s(u(U),{modelValue:e.entrance,"onUpdate:modelValue":l=>e.entrance=l,label:"Eingang","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"]),s(u(U),{modelValue:e.exit,"onUpdate:modelValue":l=>e.exit=l,label:"Ausgang","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"]),s(u(U),{modelValue:e.anchorPoints,"onUpdate:modelValue":l=>e.anchorPoints=l,label:"Anschlagpunkte","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"]),s(u(U),{modelValue:e.comment,"onUpdate:modelValue":l=>e.comment=l,label:"Kommentar","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"]),j("div",l,[s(u(_),{fill:"clear",color:"danger",onClick:l=>L(e)},{default:o((()=>[x("Löschen")])),_:2},1032,["onClick"])])])),_:2},1024)])),_:2},1024)))),128))],64)):p("",!0)])),_:1}))}}))}}})); diff --git a/ra/assets/RAEditDate-2a9-RHq5.js b/ra/assets/RAEditDate-2a9-RHq5.js new file mode 100644 index 0000000..c118d3b --- /dev/null +++ b/ra/assets/RAEditDate-2a9-RHq5.js @@ -0,0 +1 @@ +import{d as l,G as g,e as u,o as s,c as r,w as D,f as i,ad as p,l as f}from"./index-DYrAM6VV.js";import{u as h}from"./riskassessment-gvIk_m2h.js";import{T}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./helpers-ZGJup-tE.js";import"./livequery-N-IbBJej.js";import"./liveriskstree-S1mQ308m.js";const E=l({__name:"RAEditDate",setup(_){const e=h();g(),u(()=>{if(e.endDate!==void 0){const a=[];let t=e.getStartDate().getTime();const o=e.getEndDate().getTime(),n=24*60*60*1e3;for(;te.getStartDate().getTime()?e.setEndDate(t):(e.setEndDate(void 0),e.setStartDate(t)),console.log(e.startDate)}return(a,t)=>(s(),r(T,null,{default:D(()=>[i(e).isReady?(s(),r(i(p),{key:0,size:"cover",presentation:"date","highlighted-dates":d,onIonChange:c})):f("",!0)]),_:1}))}});export{E as default}; diff --git a/ra/assets/RAEditDate-legacy-Ts6FzhDv.js b/ra/assets/RAEditDate-legacy-Ts6FzhDv.js new file mode 100644 index 0000000..70363ea --- /dev/null +++ b/ra/assets/RAEditDate-legacy-Ts6FzhDv.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,t){"use strict";var a,n,s,r,o,i,l,c,g,u,d;return{setters:[e=>{a=e.d,n=e.G,s=e.e,r=e.o,o=e.c,i=e.w,l=e.f,c=e.ad,g=e.l},e=>{u=e.u},e=>{d=e.T},null,null,null],execute:function(){e("default",a({__name:"RAEditDate",setup(e){const t=u();function a(e){const a=new Date(e).getTime();if(!t.startDate||!t.endDate)return;const n=t.getStartDate().getTime(),s=t.getEndDate().getTime();return n<=a&&a<=s?{backgroundColor:"var(--ion-color-primary)",textColor:"var(--ion-color-primary-contrast)"}:void 0}function D(e){const a=new Date(e.detail.value);t.startDate?(!t.endDate&&a.getTime()>t.getStartDate().getTime()?t.setEndDate(a):(t.setEndDate(void 0),t.setStartDate(a)),console.log(t.startDate)):t.setStartDate(a)}return n(),s((()=>{if(void 0!==t.endDate){const e=[];let a=t.getStartDate().getTime();const n=t.getEndDate().getTime(),s=864e5;for(;a(r(),o(d,null,{default:i((()=>[l(t).isReady?(r(),o(l(c),{key:0,size:"cover",presentation:"date","highlighted-dates":a,onIonChange:D})):g("",!0)])),_:1}))}}))}}})); diff --git a/ra/assets/RAEditEquipment-legacy-8l2JLxhr.js b/ra/assets/RAEditEquipment-legacy-8l2JLxhr.js new file mode 100644 index 0000000..88f22c9 --- /dev/null +++ b/ra/assets/RAEditEquipment-legacy-8l2JLxhr.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./EquipmentList.vue_vue_type_script_setup_true_lang-legacy-Z90HBhdn.js","./riskassessment-legacy-kVyVXEzW.js","./livequery-legacy-GqvLyVpq.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./helpers-legacy-X82L35U6.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,l){"use strict";var t,u,a,n,s,i,r,d,m,c,o,p,v,_,g,y,f,q,j,b,V,k,h;return{setters:[e=>{t=e.d,u=e.e,a=e.G,n=e.u,s=e.o,i=e.c,r=e.w,d=e.b,m=e.f,c=e.ae,o=e.i,p=e.j,v=e.af,_=e.g,g=e.m,y=e.n,f=e.p,q=e.q,j=e.F},e=>{b=e._},e=>{V=e.u},e=>{k=e.l},e=>{h=e.T},null,null,null],execute:function(){e("default",t({__name:"RAEditEquipment",setup(e){const l=V(),t=u((()=>k.table("equipment").isReady().value?l.equipment.map((e=>k.table("equipment").get(e))):[])),x=a("selected");return["selected","available"].includes(n().query.segment)&&(x.value=n().query.segment),(e,u)=>(s(),i(h,null,{default:r((()=>[d(m(v),{value:x.value,onIonChange:u[0]||(u[0]=l=>{x.value=l.detail.value,e.$router.replace({query:{segment:l.detail.value}})})},{default:r((()=>[d(m(c),{value:"selected"},{default:r((()=>[d(m(o),null,{default:r((()=>[p("Ausgewählt")])),_:1})])),_:1}),d(m(c),{value:"available"},{default:r((()=>[d(m(o),null,{default:r((()=>[p("Verfügbar")])),_:1})])),_:1})])),_:1},8,["value"]),"selected"===x.value?(s(),i(b,{key:0,entries:t.value,modelValue:m(l).equipment,"onUpdate:modelValue":u[1]||(u[1]=e=>m(l).equipment=e),inverted:"","forbid-deletion":""},null,8,["entries","modelValue"])):(s(),_(j,{key:1},[d(m(q),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:r((()=>[d(m(g),{"router-link":"/equipment/new"},{default:r((()=>[d(m(y),{icon:m(f)},null,8,["icon"])])),_:1})])),_:1}),d(b,{modelValue:m(l).equipment,"onUpdate:modelValue":u[2]||(u[2]=e=>m(l).equipment=e)},null,8,["modelValue"])],64))])),_:1}))}}))}}})); diff --git a/ra/assets/RAEditEquipment-qHDJOFsK.js b/ra/assets/RAEditEquipment-qHDJOFsK.js new file mode 100644 index 0000000..fab3fe3 --- /dev/null +++ b/ra/assets/RAEditEquipment-qHDJOFsK.js @@ -0,0 +1 @@ +import{d as q,e as _,G as b,u as r,o as m,c as i,w as a,b as t,f as e,ae as d,i as p,j as f,af as k,g as V,m as I,n as y,p as A,q as B,F as R}from"./index-DYrAM6VV.js";import{_ as v}from"./EquipmentList.vue_vue_type_script_setup_true_lang-LrAGbvfC.js";import{u as w}from"./riskassessment-gvIk_m2h.js";import{l as c}from"./livequery-N-IbBJej.js";import{T as x}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import"./helpers-ZGJup-tE.js";import"./liveriskstree-S1mQ308m.js";const j=q({__name:"RAEditEquipment",setup(F){const u=w(),g=_(()=>c.table("equipment").isReady().value?u.equipment.map(o=>c.table("equipment").get(o)):[]),s=b("selected");return["selected","available"].includes(r().query.segment)&&(s.value=r().query.segment),(o,l)=>(m(),i(x,null,{default:a(()=>[t(e(k),{value:s.value,onIonChange:l[0]||(l[0]=n=>{s.value=n.detail.value,o.$router.replace({query:{segment:n.detail.value}})})},{default:a(()=>[t(e(d),{value:"selected"},{default:a(()=>[t(e(p),null,{default:a(()=>[f("Ausgewählt")]),_:1})]),_:1}),t(e(d),{value:"available"},{default:a(()=>[t(e(p),null,{default:a(()=>[f("Verfügbar")]),_:1})]),_:1})]),_:1},8,["value"]),s.value==="selected"?(m(),i(v,{key:0,entries:g.value,modelValue:e(u).equipment,"onUpdate:modelValue":l[1]||(l[1]=n=>e(u).equipment=n),inverted:"","forbid-deletion":""},null,8,["entries","modelValue"])):(m(),V(R,{key:1},[t(e(B),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:a(()=>[t(e(I),{"router-link":"/equipment/new"},{default:a(()=>[t(e(y),{icon:e(A)},null,8,["icon"])]),_:1})]),_:1}),t(v,{modelValue:e(u).equipment,"onUpdate:modelValue":l[2]||(l[2]=n=>e(u).equipment=n)},null,8,["modelValue"])],64))]),_:1}))}});export{j as default}; diff --git a/ra/assets/RAEditGeneral-EGQFgfrA.js b/ra/assets/RAEditGeneral-EGQFgfrA.js new file mode 100644 index 0000000..611a252 --- /dev/null +++ b/ra/assets/RAEditGeneral-EGQFgfrA.js @@ -0,0 +1 @@ +import{d as r,o as m,c as u,w as t,b as a,f as e,r as n,D as i,N as p,I as d}from"./index-DYrAM6VV.js";import{u as f}from"./riskassessment-gvIk_m2h.js";import{T as c}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./helpers-ZGJup-tE.js";import"./livequery-N-IbBJej.js";import"./liveriskstree-S1mQ308m.js";const T=r({__name:"RAEditGeneral",setup(b){const l=f();return(_,o)=>(m(),u(c,null,{default:t(()=>[a(e(d),{lines:"none"},{default:t(()=>[a(e(n),null,{default:t(()=>[a(e(i),{label:"Ausführende Firma","label-placement":"floating",modelValue:e(l).company,"onUpdate:modelValue":o[0]||(o[0]=s=>e(l).company=s)},null,8,["modelValue"])]),_:1}),a(e(n),null,{default:t(()=>[a(e(p),{label:"Beschreibung der Tätigkeit","label-placement":"floating","auto-grow":"",modelValue:e(l).jobDescr,"onUpdate:modelValue":o[1]||(o[1]=s=>e(l).jobDescr=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}))}});export{T as default}; diff --git a/ra/assets/RAEditGeneral-legacy-hsgC9o4b.js b/ra/assets/RAEditGeneral-legacy-hsgC9o4b.js new file mode 100644 index 0000000..279916b --- /dev/null +++ b/ra/assets/RAEditGeneral-legacy-hsgC9o4b.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,l){"use strict";var a,n,s,t,u,r,o,c,d,i,m,g;return{setters:[e=>{a=e.d,n=e.o,s=e.c,t=e.w,u=e.b,r=e.f,o=e.r,c=e.D,d=e.N,i=e.I},e=>{m=e.u},e=>{g=e.T},null,null,null],execute:function(){e("default",a({__name:"RAEditGeneral",setup(e){const l=m();return(e,a)=>(n(),s(g,null,{default:t((()=>[u(r(i),{lines:"none"},{default:t((()=>[u(r(o),null,{default:t((()=>[u(r(c),{label:"Ausführende Firma","label-placement":"floating",modelValue:r(l).company,"onUpdate:modelValue":a[0]||(a[0]=e=>r(l).company=e)},null,8,["modelValue"])])),_:1}),u(r(o),null,{default:t((()=>[u(r(d),{label:"Beschreibung der Tätigkeit","label-placement":"floating","auto-grow":"",modelValue:r(l).jobDescr,"onUpdate:modelValue":a[1]||(a[1]=e=>r(l).jobDescr=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}))}}))}}})); diff --git a/ra/assets/RAEditLocation-hdzOW14o.js b/ra/assets/RAEditLocation-hdzOW14o.js new file mode 100644 index 0000000..e54ab7e --- /dev/null +++ b/ra/assets/RAEditLocation-hdzOW14o.js @@ -0,0 +1 @@ +import{u as ll}from"./riskassessment-gvIk_m2h.js";import{n as hl,ab as Do,_ as Fo,o as Ns,g as ko,ac as cl,E as Lr,b as xs,a as ul,d as dl,c as fl,w as gl,f as Mr}from"./index-DYrAM6VV.js";import{T as _l}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./helpers-ZGJup-tE.js";import"./livequery-N-IbBJej.js";import"./liveriskstree-S1mQ308m.js";class ml{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const le=ml,ui={PROPERTYCHANGE:"propertychange"};class pl{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const Gs=pl;function yl(n,t,e){let i,s;e=e||Te;let r=0,o=n.length,a=!1;for(;r>1),s=+e(n[i],t),s<0?r=i+1:(o=i,a=!s);return a?r:~r}function Te(n,t){return n>t?1:n0?s-1:s}return i-1}if(e>0){for(let s=1;s0||e&&o===0)})}function Di(){return!0}function Fn(){return!1}function di(){}function No(n){let t=!1,e,i,s;return function(){const r=Array.prototype.slice.call(arguments);return(!t||this!==s||!Se(r,i))&&(t=!0,s=this,i=r,e=n.apply(this,arguments)),e}}function Ki(n){for(const t in n)delete n[t]}function fi(n){let t;for(t in n)return!1;return!t}class Cl extends Gs{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const i=this.listeners_||(this.listeners_={}),s=i[t]||(i[t]=[]);s.includes(e)||s.push(e)}dispatchEvent(t){const e=typeof t=="string",i=e?t:t.type,s=this.listeners_&&this.listeners_[i];if(!s)return;const r=e?new le(t):t;r.target||(r.target=this.eventTarget_||this);const o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});i in o||(o[i]=0,a[i]=0),++o[i];let l;for(let h=0,c=s.length;h0:!1}removeEventListener(t,e){if(!this.listeners_)return;const i=this.listeners_[t];if(!i)return;const s=i.indexOf(e);s!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[s]=di,++this.pendingRemovals_[t]):(i.splice(s,1),i.length===0&&delete this.listeners_[t]))}}const kn=Cl,G={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function B(n,t,e,i,s){if(i&&i!==n&&(e=e.bind(i)),s){const o=e;e=function(){n.removeEventListener(t,e),o.apply(this,arguments)}}const r={target:n,type:t,listener:e};return n.addEventListener(t,e),r}function Rn(n,t,e,i){return B(n,t,e,i,!0)}function et(n){n&&n.target&&(n.target.removeEventListener(n.type,n.listener),Ki(n))}class Nn extends kn{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(G.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,s=new Array(i);for(let r=0;r0;)this.pop()}extend(t){for(let e=0,i=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new un(Ct.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let i=0,s=e.length;i=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new un(Ct.REMOVE,e,t)),e}setAt(t,e){const i=this.getLength();if(t>=i){this.insertAt(t,e);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const s=this.array_[t];this.array_[t]=e,this.dispatchEvent(new un(Ct.REMOVE,s,t)),this.dispatchEvent(new un(Ct.ADD,e,t))}updateLength_(){this.set(Pr.LENGTH,this.array_.length)}assertUnique_(t,e){for(let i=0,s=this.array_.length;is&&(l=l|ot.RIGHT),ar&&(l=l|ot.ABOVE),l===ot.UNKNOWN&&(l=ot.INTERSECTING),l}function Dt(){return[1/0,1/0,-1/0,-1/0]}function oe(n,t,e,i,s){return s?(s[0]=n,s[1]=t,s[2]=e,s[3]=i,s):[n,t,e,i]}function ji(n){return oe(1/0,1/0,-1/0,-1/0,n)}function Ko(n,t){const e=n[0],i=n[1];return oe(e,i,e,i,t)}function Zs(n,t,e,i,s){const r=ji(s);return qo(r,n,t,e,i)}function Fi(n,t){return n[0]==t[0]&&n[2]==t[2]&&n[1]==t[1]&&n[3]==t[3]}function jo(n,t){return t[0]n[2]&&(n[2]=t[2]),t[1]n[3]&&(n[3]=t[3]),n}function bi(n,t){t[0]n[2]&&(n[2]=t[0]),t[1]n[3]&&(n[3]=t[1])}function qo(n,t,e,i,s){for(;et[0]?i[0]=n[0]:i[0]=t[0],n[1]>t[1]?i[1]=n[1]:i[1]=t[1],n[2]=t[0]&&n[1]<=t[3]&&n[3]>=t[1]}function qi(n){return n[2]=o&&_<=l),!i&&r&ot.RIGHT&&!(s&ot.RIGHT)&&(m=f-(d-l)*g,i=m>=a&&m<=h),!i&&r&ot.BELOW&&!(s&ot.BELOW)&&(_=d-(f-a)/g,i=_>=o&&_<=l),!i&&r&ot.LEFT&&!(s&ot.LEFT)&&(m=f-(d-o)*g,i=m>=a&&m<=h)}return i}function Gl(n,t,e,i){if(qi(n))return ji(e);let s=[];if(i>1){const a=n[2]-n[0],l=n[3]-n[1];for(let h=0;h=e[2])){const s=tt(e),o=Math.floor((i[0]-e[0])/s)*s;n[0]-=o,n[2]-=o}return n}function Wl(n,t){if(t.canWrapX()){const e=t.getExtent();if(!isFinite(n[0])||!isFinite(n[2]))return[[e[0],n[1],e[2],n[3]]];$o(n,t);const i=tt(e);if(tt(n)>i)return[[e[0],n[1],e[2],n[3]]];if(n[0]e[2])return[[n[0],n[1],e[2],n[3]],[e[0],n[1],n[2]-i,n[3]]]}return[n]}const ki={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var ht={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"]};ht.whitepoint={2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}};ht.max=ht.whitepoint[2].D65;ht.rgb=function(n,t){t=t||ht.whitepoint[2].E;var e=n[0]/t[0],i=n[1]/t[1],s=n[2]/t[2],r,o,a;return r=e*3.240969941904521+i*-1.537383177570093+s*-.498610760293,o=e*-.96924363628087+i*1.87596750150772+s*.041555057407175,a=e*.055630079696993+i*-.20397695888897+s*1.056971514242878,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o=o*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a=a*12.92,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[r*255,o*255,a*255]};ki.xyz=function(n,t){var e=n[0]/255,i=n[1]/255,s=n[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;var r=e*.41239079926595+i*.35758433938387+s*.18048078840183,o=e*.21263900587151+i*.71516867876775+s*.072192315360733,a=e*.019330818715591+i*.11919477979462+s*.95053215224966;return t=t||ht.whitepoint[2].E,[r*t[0],o*t[1],a*t[2]]};const Bs={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(n,t,e){var i,s,r,o,a,l,h,c,u,d,f,g,_;if(r=n[0],o=n[1],a=n[2],r===0)return[0,0,0];var m=.0011070564598794539;return t=t||"D65",e=e||2,u=ht.whitepoint[e][t][0],d=ht.whitepoint[e][t][1],f=ht.whitepoint[e][t][2],g=4*u/(u+15*d+3*f),_=9*d/(u+15*d+3*f),i=o/(13*r)+g||0,s=a/(13*r)+_||0,h=r>8?d*Math.pow((r+16)/116,3):d*r*m,l=h*9*i/(4*s)||0,c=h*(12-3*i-20*s)/(4*s)||0,[l,h,c]}};ht.luv=function(n,t,e){var i,s,r,o,a,l,h,c,u,d,f,g,_,m=.008856451679035631,p=903.2962962962961;t=t||"D65",e=e||2,u=ht.whitepoint[e][t][0],d=ht.whitepoint[e][t][1],f=ht.whitepoint[e][t][2],g=4*u/(u+15*d+3*f),_=9*d/(u+15*d+3*f),l=n[0],h=n[1],c=n[2],i=4*l/(l+15*h+3*c)||0,s=9*h/(l+15*h+3*c)||0;var y=h/d;return r=y<=m?p*y:116*Math.pow(y,1/3)-16,o=13*r*(i-g),a=13*r*(s-_),[r,o,a]};var Jo={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(n){var t=n[0],e=n[1],i=n[2],s,r,o;return o=i/360*2*Math.PI,s=e*Math.cos(o),r=e*Math.sin(o),[t,s,r]},xyz:function(n){return Bs.xyz(Jo.luv(n))}};Bs.lchuv=function(n){var t=n[0],e=n[1],i=n[2],s=Math.sqrt(e*e+i*i),r=Math.atan2(i,e),o=r*360/2/Math.PI;return o<0&&(o+=360),[t,s,o]};ht.lchuv=function(n){return Bs.lchuv(ht.luv(n))};function Xl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var zl={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Fr=Xl(zl);var kr={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Yl(n){var c,u;var t,e=[],i=1,s;if(typeof n=="number")return{space:"rgb",values:[n>>>16,(n&65280)>>>8,n&255],alpha:1};if(typeof n=="number")return{space:"rgb",values:[n>>>16,(n&65280)>>>8,n&255],alpha:1};if(n=String(n).toLowerCase(),Fr[n])e=Fr[n].slice(),s="rgb";else if(n==="transparent")i=0,s="rgb",e=[0,0,0];else if(n[0]==="#"){var r=n.slice(1),o=r.length,a=o<=4;i=1,a?(e=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],o===4&&(i=parseInt(r[3]+r[3],16)/255)):(e=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],o===8&&(i=parseInt(r[6]+r[7],16)/255)),e[0]||(e[0]=0),e[1]||(e[1]=0),e[2]||(e[2]=0),s="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(n)){var l=t[1];s=l.replace(/a$/,"");var h=s==="cmyk"?4:s==="gray"?1:3;e=t[2].trim().split(/\s*[,\/]\s*|\s+/),s==="color"&&(s=e.shift()),e=e.map(function(d,f){if(d[d.length-1]==="%")return d=parseFloat(d)/100,f===3?d:s==="rgb"?d*255:s[0]==="h"||s[0]==="l"&&!f?d*100:s==="lab"?d*125:s==="lch"?f<2?d*150:d*360:s[0]==="o"&&!f?d:s==="oklab"?d*.4:s==="oklch"?f<2?d*.4:d*360:d;if(s[f]==="h"||f===2&&s[s.length-1]==="h"){if(kr[d]!==void 0)return kr[d];if(d.endsWith("deg"))return parseFloat(d);if(d.endsWith("turn"))return parseFloat(d)*360;if(d.endsWith("grad"))return parseFloat(d)*360/400;if(d.endsWith("rad"))return parseFloat(d)*180/Math.PI}return d==="none"?0:parseFloat(d)}),i=e.length>h?e.pop():1}else/[0-9](?:\s|\/|,)/.test(n)&&(e=n.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),s=((u=(c=n.match(/([a-z])/ig))==null?void 0:c.join(""))==null?void 0:u.toLowerCase())||"rgb");return{space:s,values:e,alpha:i}}const ss={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(n){var t=n[0]/360,e=n[1]/100,i=n[2]/100,s,r,o,a,l,h=0;if(e===0)return l=i*255,[l,l,l];for(r=i<.5?i*(1+e):i+e-i*e,s=2*i-r,a=[0,0,0];h<3;)o=t+1/3*-(h-1),o<0?o++:o>1&&o--,l=6*o<1?s+(r-s)*6*o:2*o<1?r:3*o<2?s+(r-s)*(2/3-o)*6:s,a[h++]=l*255;return a}};ki.hsl=function(n){var t=n[0]/255,e=n[1]/255,i=n[2]/255,s=Math.min(t,e,i),r=Math.max(t,e,i),o=r-s,a,l,h;return r===s?a=0:t===r?a=(e-i)/o:e===r?a=2+(i-t)/o:i===r&&(a=4+(t-e)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(s+r)/2,r===s?l=0:h<=.5?l=o/(r+s):l=o/(2-r-s),[a,l*100,h*100]};function Vl(n){Array.isArray(n)&&n.raw&&(n=String.raw(...arguments)),n instanceof Number&&(n=+n);var t,e=Yl(n);if(!e.space)return[];const i=e.space[0]==="h"?ss.min:ki.min,s=e.space[0]==="h"?ss.max:ki.max;return t=Array(3),t[0]=Math.min(Math.max(e.values[0],i[0]),s[0]),t[1]=Math.min(Math.max(e.values[1],i[1]),s[1]),t[2]=Math.min(Math.max(e.values[2],i[2]),s[2]),e.space[0]==="h"&&(t=ss.rgb(t)),t.push(Math.min(Math.max(e.alpha,0),1)),t}function rt(n,t,e){return Math.min(Math.max(n,t),e)}function Zl(n,t,e,i,s,r){const o=s-e,a=r-i;if(o!==0||a!==0){const l=((n-e)*o+(t-i)*a)/(o*o+a*a);l>1?(e=s,i=r):l>0&&(e+=o*l,i+=a*l)}return ai(n,t,e,i)}function ai(n,t,e,i){const s=e-n,r=i-t;return s*s+r*r}function Bl(n){const t=n.length;for(let i=0;ir&&(r=l,s=a)}if(r===0)return null;const o=n[s];n[s]=n[i],n[i]=o;for(let a=i+1;a=0;i--){e[i]=n[i][t]/n[i][i];for(let s=i-1;s>=0;s--)n[s][t]-=n[s][i]*e[i]}return e}function wn(n){return n*Math.PI/180}function li(n,t){const e=n%t;return e*t<0?e+t:e}function Ot(n,t,e){return n+e*(t-n)}function Us(n,t){const e=Math.pow(10,t);return Math.round(n*e)/e}function dn(n,t){return Math.floor(Us(n,t))}function fn(n,t){return Math.ceil(Us(n,t))}function Qo(n){return typeof n=="string"?n:ea(n)}const Ul=1024,Ti={};let rs=0;function Kl(n){if(n.length===4)return n;const t=n.slice();return t[3]=1,t}function Nr(n){const t=ht.lchuv(ki.xyz(n));return t[3]=n[3],t}function jl(n){const t=ht.rgb(Jo.xyz(n));return t[3]=n[3],t}function Ks(n){if(Ti.hasOwnProperty(n))return Ti[n];if(rs>=Ul){let e=0;for(const i in Ti)e++&3||(delete Ti[i],--rs)}const t=Vl(n);if(t.length!==4)throw new Error('Failed to parse "'+n+'" as color');for(const e of t)if(isNaN(e))throw new Error('Failed to parse "'+n+'" as color');return ta(t),Ti[n]=t,++rs,t}function Tn(n){return Array.isArray(n)?n:Ks(n)}function ta(n){return n[0]=rt(n[0]+.5|0,0,255),n[1]=rt(n[1]+.5|0,0,255),n[2]=rt(n[2]+.5|0,0,255),n[3]=rt(n[3],0,1),n}function ea(n){let t=n[0];t!=(t|0)&&(t=t+.5|0);let e=n[1];e!=(e|0)&&(e=e+.5|0);let i=n[2];i!=(i|0)&&(i=i+.5|0);const s=n[3]===void 0?1:Math.round(n[3]*100)/100;return"rgba("+t+","+e+","+i+","+s+")"}function ql(n){try{return Ks(n),!0}catch(t){return!1}}class Hl{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];!(t++&3)&&!i.hasListener()&&(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,i){const s=Gr(t,e,i);return s in this.cache_?this.cache_[s]:null}set(t,e,i,s){const r=Gr(t,e,i);this.cache_[r]=s,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function Gr(n,t,e){const i=e?Qo(e):"null";return t+":"+n+":"+i}const vn=new Hl,$={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};class $l extends Kt{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);typeof t.properties=="object"&&(delete e.properties,Object.assign(e,t.properties)),e[$.OPACITY]=t.opacity!==void 0?t.opacity:1,Y(typeof e[$.OPACITY]=="number","Layer opacity must be a number"),e[$.VISIBLE]=t.visible!==void 0?t.visible:!0,e[$.Z_INDEX]=t.zIndex,e[$.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,e[$.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,e[$.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,e[$.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=e.className!==void 0?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:t===void 0?!0:t},i=this.getZIndex();return e.opacity=rt(Math.round(this.getOpacity()*100)/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=i===void 0&&!e.managed?1/0:i,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return Z()}getLayerStatesArray(t){return Z()}getExtent(){return this.get($.EXTENT)}getMaxResolution(){return this.get($.MAX_RESOLUTION)}getMinResolution(){return this.get($.MIN_RESOLUTION)}getMinZoom(){return this.get($.MIN_ZOOM)}getMaxZoom(){return this.get($.MAX_ZOOM)}getOpacity(){return this.get($.OPACITY)}getSourceState(){return Z()}getVisible(){return this.get($.VISIBLE)}getZIndex(){return this.get($.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set($.EXTENT,t)}setMaxResolution(t){this.set($.MAX_RESOLUTION,t)}setMinResolution(t){this.set($.MIN_RESOLUTION,t)}setMaxZoom(t){this.set($.MAX_ZOOM,t)}setMinZoom(t){this.set($.MIN_ZOOM,t)}setOpacity(t){Y(typeof t=="number","Layer opacity must be a number"),this.set($.OPACITY,t)}setVisible(t){this.set($.VISIBLE,t)}setZIndex(t){this.set($.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const ia=$l,Bt={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},dt={ANIMATING:0,INTERACTING:1},Nt={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},Jl=42,js=256,Ni={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class Ql{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=t.extent!==void 0?t.extent:null,this.worldExtent_=t.worldExtent!==void 0?t.worldExtent:null,this.axisOrientation_=t.axisOrientation!==void 0?t.axisOrientation:"enu",this.global_=t.global!==void 0?t.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Ni[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!!(t&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!!(this.global_&&t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const na=Ql,Hi=6378137,si=Math.PI*Hi,th=[-si,-si,si,si],eh=[-180,-85,180,85],gn=Hi*Math.log(Math.tan(Math.PI/2));class Ke extends na{constructor(t){super({code:t,units:"m",extent:th,global:!0,worldExtent:eh,getPointResolution:function(e,i){return e/Math.cosh(i[1]/Hi)}})}}const Wr=[new Ke("EPSG:3857"),new Ke("EPSG:102100"),new Ke("EPSG:102113"),new Ke("EPSG:900913"),new Ke("http://www.opengis.net/def/crs/EPSG/0/3857"),new Ke("http://www.opengis.net/gml/srs/epsg.xml#3857")];function ih(n,t,e){const i=n.length;e=e>1?e:2,t===void 0&&(e>2?t=n.slice():t=new Array(i));for(let s=0;sgn?r=gn:r<-gn&&(r=-gn),t[s+1]=r}return t}function nh(n,t,e){const i=n.length;e=e>1?e:2,t===void 0&&(e>2?t=n.slice():t=new Array(i));for(let s=0;s=0;--i)if(n[i]!=t[i]){e=!1;break}return e}function qs(n,t){const e=Math.cos(t),i=Math.sin(t),s=n[0]*e-n[1]*i,r=n[1]*e+n[0]*i;return n[0]=s,n[1]=r,n}function ch(n,t){return n[0]*=t,n[1]*=t,n}function sa(n,t){if(t.canWrapX()){const e=tt(t.getExtent()),i=uh(n,t,e);i&&(n[0]-=i*e)}return n}function uh(n,t,e){const i=t.getExtent();let s=0;return t.canWrapX()&&(n[0]i[2])&&(e=e||tt(i),s=Math.floor((n[0]-i[0])/e)),s}const dh=63710088e-1;function Yr(n,t,e){e=e||dh;const i=wn(n[1]),s=wn(t[1]),r=(s-i)/2,o=wn(t[0]-n[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(s);return 2*e*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}const ra={info:1,warn:2,error:3,none:4};let fh=ra.info;function oa(...n){fh>ra.warn||console.warn(...n)}let Is=!0;function gh(n){Is=!(n===void 0?!0:n)}function Hs(n,t){if(t!==void 0){for(let e=0,i=n.length;e=-180&&n[0]<=180&&n[1]>=-90&&n[1]<=90&&(Is=!1,oa("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),n)}function As(n,t){return Ft?la(n,t,Ft):n}function Fe(n,t){return Ft?la(n,Ft,t):n}function Eh(n,t){if(!Ft)return n;const e=vt(t).getMetersPerUnit(),i=Ft.getMetersPerUnit();return e&&i?n*e/i:n}function xh(){Zr(Wr),Zr(zr),ph(zr,Wr,ih,nh)}xh();function Ur(n,t,e){return function(i,s,r,o,a){if(!i)return;if(!s&&!t)return i;const l=t?0:r[0]*s,h=t?0:r[1]*s,c=a?a[0]:0,u=a?a[1]:0;let d=n[0]+l/2+c,f=n[2]-l/2+c,g=n[1]+h/2+u,_=n[3]-h/2+u;d>f&&(d=(f+d)/2,f=d),g>_&&(g=(_+g)/2,_=g);let m=rt(i[0],d,f),p=rt(i[1],g,_);if(o&&e&&s){const y=30*s;m+=-y*Math.log(1+Math.max(0,d-i[0])/y)+y*Math.log(1+Math.max(0,i[0]-f)/y),p+=-y*Math.log(1+Math.max(0,g-i[1])/y)+y*Math.log(1+Math.max(0,i[1]-_)/y)}return[m,p]}}function Ch(n){return n}function Js(n,t,e,i){const s=tt(t)/e[0],r=Lt(t)/e[1];return i?Math.min(n,Math.max(s,r)):Math.min(n,Math.min(s,r))}function Qs(n,t,e){let i=Math.min(n,t);const s=50;return i*=Math.log(1+s*Math.max(0,n/t-1))/s+1,e&&(i=Math.max(i,e),i/=Math.log(1+s*Math.max(0,e/n-1))/s+1),rt(i,e/2,t*2)}function wh(n,t,e,i){return t=t!==void 0?t:!0,function(s,r,o,a){if(s!==void 0){const l=n[0],h=n[n.length-1],c=e?Js(l,e,o,i):l;if(a)return t?Qs(s,c,h):rt(s,h,c);const u=Math.min(c,s),d=Math.floor(Ws(n,u,r));return n[d]>c&&d{if(!i)return this.getSimplifiedGeometry(e);const s=this.clone();return s.applyTransform(i),s.getSimplifiedGeometry(e)})}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return Z()}closestPointXY(t,e,i,s){return Z()}containsXY(t,e){const i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return Z()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&ji(e),this.extentRevision_=this.getRevision()}return kl(this.extent_,t)}rotate(t,e){Z()}scale(t,e,i){Z()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return Z()}getType(){return Z()}applyTransform(t){Z()}intersectsExtent(t){return Z()}translate(t,e){Z()}transform(t,e){const i=vt(t),s=i.getUnits()=="tile-pixels"?function(r,o,a){const l=i.getExtent(),h=i.getWorldExtent(),c=Lt(h)/Lt(l);return re(qr,h[0],h[3],c,-c,0,0,0),Re(r,0,r.length,a,qr,o),Gi(i,e)(r,o,a)}:Gi(i,e);return this.applyTransform(s),this}}const bh=Mh;class Ph extends bh{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return Zs(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return Z()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length1)u=e;else if(d>0){for(let f=0;fs&&(s=h),r=a,o=l}return s}function Fh(n,t,e,i,s){for(let r=0,o=e.length;r0;){const u=h.pop(),d=h.pop();let f=0;const g=n[d],_=n[d+1],m=n[u],p=n[u+1];for(let y=d+i;yf&&(c=y,f=C)}f>s&&(l[(c-t)/i]=1,d+i0&&_>f)&&(g<0&&m0&&m>g)){h=u,c=d;continue}r[o++]=h,r[o++]=c,a=h,l=c,h=u,c=d}return r[o++]=h,r[o++]=c,o}function _a(n,t,e,i,s,r,o,a){for(let l=0,h=e.length;lr&&(h-a)*(r-l)-(s-a)*(c-l)>0&&o++:c<=r&&(h-a)*(r-l)-(s-a)*(c-l)<0&&o--,a=h,l=c}return o!==0}function ya(n,t,e,i,s,r){if(e.length===0||!ke(n,t,e[0],i,s,r))return!1;for(let o=1,a=e.length;op&&(h=(c+u)/2,ya(n,t,e,i,h,g)&&(m=h,p=y)),c=u}return isNaN(m)&&(m=s[r]),o?(o.push(m,g,p),o):[m,g,p]}function Vh(n,t,e,i,s){let r=[];for(let o=0,a=e.length;o=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:Zh(n,t,e,i,function(o,a){return Nl(s,o,a)}):!1}function xa(n,t,e,i,s){return!!(Ea(n,t,e,i,s)||ke(n,t,e,i,s[0],s[1])||ke(n,t,e,i,s[0],s[3])||ke(n,t,e,i,s[2],s[1])||ke(n,t,e,i,s[2],s[3]))}function Bh(n,t,e,i,s){if(!xa(n,t,e[0],i,s))return!1;if(e.length===1)return!0;for(let r=1,o=e.length;r0}function Kh(n,t,e,i,s){s=s!==void 0?s:!1;for(let r=0,o=e.length;r1&&typeof arguments[e-1]=="function"&&(i=arguments[e-1],--e);let s=0;for(;s0}getInteracting(){return this.hints_[dt.INTERACTING]>0}cancelAnimations(){this.setHint(dt.ANIMATING,-this.hints_[dt.ANIMATING]);let t;for(let e=0,i=this.animations_.length;e=0;--i){const s=this.animations_[i];let r=!0;for(let o=0,a=s.length;o0?h/l.duration:1;c>=1?(l.complete=!0,c=1):r=!1;const u=l.easing(c);if(l.sourceCenter){const d=l.sourceCenter[0],f=l.sourceCenter[1],g=l.targetCenter[0],_=l.targetCenter[1];this.nextCenter_=l.targetCenter;const m=d+u*(g-d),p=f+u*(_-f);this.targetCenter_=[m,p]}if(l.sourceResolution&&l.targetResolution){const d=u===1?l.targetResolution:l.sourceResolution+u*(l.targetResolution-l.sourceResolution);if(l.anchor){const f=this.getViewportSize_(this.getRotation()),g=this.constraints_.resolution(d,0,f,!0);this.targetCenter_=this.calculateCenterZoom(g,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){const d=u===1?li(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+u*(l.targetRotation-l.sourceRotation);if(l.anchor){const f=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(f,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),e=!0,!l.complete)break}if(r){this.animations_[i]=null,this.setHint(dt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const o=s[0].callback;o&&_n(o,!0)}}this.animations_=this.animations_.filter(Boolean),e&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i;const s=this.getCenterInternal();return s!==void 0&&(i=[s[0]-e[0],s[1]-e[1]],qs(i,t-this.getRotation()),hh(i,e)),i}calculateCenterZoom(t,e){let i;const s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){const o=e[0]-t*(e[0]-s[0])/r,a=e[1]-t*(e[1]-s[1])/r;i=[o,a]}return i}getViewportSize_(t){const e=this.viewportSize_;if(t){const i=e[0],s=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(s*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(s*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t&&Ss(t,this.getProjection())}getCenterInternal(){return this.get(Nt.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return As(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();Y(e,"The view center is not defined");const i=this.getResolution();Y(i!==void 0,"The view resolution is not defined");const s=this.getRotation();return Y(s!==void 0,"The view rotation is not defined"),Rs(e,i,s,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(Nt.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(Fe(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=tt(t)/e[0],s=Lt(t)/e[1];return Math.max(i,s)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,s=Math.log(e/i)/Math.log(t);return function(r){return e/Math.pow(t,r*s)}}getRotation(){return this.get(Nt.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(i/s)/e;return function(o){return Math.log(i/o)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let s=this.getCenterInternal();const r=this.padding_;if(r){const o=this.getViewportSizeMinusPadding_();s=as(s,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],e,i)}return{center:s.slice(0),projection:t!==void 0?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return e!==void 0&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e=this.minZoom_||0,i,s;if(this.resolutions_){const r=Ws(this.resolutions_,t,1);e=r,i=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=i/this.resolutions_[r+1]}else i=this.maxResolution_,s=this.zoomFactor_;return e+Math.log(i/t)/Math.log(s)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=rt(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,rt(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if(Y(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){Y(!qi(t),"Cannot fit empty extent provided as `geometry`");const s=Fe(t,this.getProjection());i=eo(s)}else if(t.getType()==="Circle"){const s=Fe(t.getExtent(),this.getProjection());i=eo(s),i.rotate(this.getRotation(),We(s))}else{const s=ha();s?i=t.clone().transform(s,this.getProjection()):i=t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),s=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride();let a=1/0,l=1/0,h=-1/0,c=-1/0;for(let u=0,d=r.length;u{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)}isVisible(t){let e;const i=this.getMapInternal();!t&&i&&(t=i.getView()),t instanceof zt?e={viewState:t.getState(),extent:t.calculateExtent()}:e=t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray());let s;e.layerStatesArray?s=e.layerStatesArray.find(o=>o.layer===this):s=this.getLayerState();const r=this.getExtent();return or(s,e.viewState)&&(!r||Rt(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e;const i=this.getSource();if(i&&(e=i.getAttributions()),!e)return[];const s=t instanceof zt?t.getViewStateAndExtent():t;let r=e(s);return Array.isArray(r)||(r=[r]),r}render(t,e){const i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set($.MAP,t)}getMapInternal(){return this.get($.MAP)}setMap(t){this.mapPrecomposeKey_&&(et(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(et(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=B(t,Bt.PRECOMPOSE,function(e){const s=e.frameState.layerStatesArray,r=this.getLayerState(!1);Y(!s.some(function(o){return o.layer===r.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),s.push(r)},this),this.mapRenderKey_=B(this,G.CHANGE,t.render,t),this.changed())}setSource(t){this.set($.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function or(n,t){if(!n.visible)return!1;const e=t.resolution;if(e=n.maxResolution)return!1;const i=t.zoom;return i>n.minZoom&&i<=n.maxZoom}const Zn=tc;class ec extends Gs{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){Z()}calculateMatrices2D(t){const e=t.viewState,i=t.coordinateToPixelTransform,s=t.pixelToCoordinateTransform;re(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Ys(s,i)}forEachFeatureAtCoordinate(t,e,i,s,r,o,a,l){let h;const c=e.viewState;function u(x,C,w,I){return r.call(o,C,x?w:null,I)}const d=c.projection,f=sa(t.slice(),d),g=[[0,0]];if(d.canWrapX()&&s){const x=d.getExtent(),C=tt(x);g.push([-C,0],[C,0])}const _=e.layerStatesArray,m=_.length,p=[],y=[];for(let x=0;x=0;--C){const w=_[C],I=w.layer;if(I.hasRenderer()&&or(w,c)&&a.call(l,I)){const v=I.getRenderer(),P=I.getSource();if(v&&P){const D=P.getWrapX()?f:t,X=u.bind(null,w.managed);y[0]=D[0]+g[x][0],y[1]=D[1]+g[x][1],h=v.forEachFeatureAtCoordinate(y,e,i,X,p)}if(h)return h}}if(p.length===0)return;const E=1/p.length;return p.forEach((x,C)=>x.distanceSq+=C*E),p.sort((x,C)=>x.distanceSq-C.distanceSq),p.some(x=>h=x.callback(x.feature,x.layer,x.geometry)),h}hasFeatureAtCoordinate(t,e,i,s,r,o){return this.forEachFeatureAtCoordinate(t,e,i,s,Di,this,r,o)!==void 0}getMap(){return this.map_}renderFrame(t){Z()}flushDeclutterItems(t){}scheduleExpireIconCache(t){vn.canExpireCache()&&t.postRenderFunctions.push(ic)}}function ic(n,t){vn.expire()}const nc=ec;class sc extends le{constructor(t,e,i,s){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=s}}const Ca=sc,mn="ol-hidden",Bn="ol-unselectable",ar="ol-control",io="ol-collapsed",rc=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),no=["style","variant","weight","size","lineHeight","family"],wa=function(n){const t=n.match(rc);if(!t)return null;const e={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,s=no.length;iMath.max(s,bn(n,r)),0);return e[t]=i,i}function cc(n,t){const e=[],i=[],s=[];let r=0,o=0,a=0,l=0;for(let h=0,c=t.length;h<=c;h+=2){const u=t[h];if(u==="\n"||h===c){r=Math.max(r,o),s.push(o),o=0,a+=l;continue}const d=t[h+1]||n.font,f=bn(d,u);e.push(f),o+=f;const g=hc(d);i.push(g),l=Math.max(l,g)}return{width:r,height:a,widths:e,heights:i,lineWidths:s}}function uc(n,t,e,i,s,r,o,a,l,h,c){n.save(),e!==1&&(n.globalAlpha*=e),t&&n.transform.apply(n,t),i.contextInstructions?(n.translate(l,h),n.scale(c[0],c[1]),dc(i,n)):c[0]<0||c[1]<0?(n.translate(l,h),n.scale(c[0],c[1]),n.drawImage(i,s,r,o,a,0,0,o,a)):n.drawImage(i,s,r,o,a,l,h,o*c[0],a*c[1]),n.restore()}function dc(n,t){const e=n.contextInstructions;for(let i=0,s=e.length;i=0;--i)e[i].renderDeclutter(t);e.length=0}}const gc=fc;class Ee extends le{constructor(t,e){super(t),this.layer=e}}const ls={LAYERS:"layers"};class lr extends ia{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(ls.LAYERS,this.handleLayersChanged_),i?Array.isArray(i)?i=new Vt(i.slice(),{unique:!0}):Y(typeof i.getArray=="function","Expected `layers` to be an array or a `Collection`"):i=new Vt(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(et),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(B(t,Ct.ADD,this.handleLayersAdd_,this),B(t,Ct.REMOVE,this.handleLayersRemove_,this));for(const i in this.listenerKeys_)this.listenerKeys_[i].forEach(et);Ki(this.listenerKeys_);const e=t.getArray();for(let i=0,s=e.length;i{this.clickTimeoutId_=void 0;const i=new pe(it.SINGLECLICK,this.map_,t);this.dispatchEvent(i)},250)}updateActivePointers_(t){const e=t,i=e.pointerId;if(e.type==it.POINTERUP||e.type==it.POINTERCANCEL){delete this.trackedTouches_[i];for(const s in this.trackedTouches_)if(this.trackedTouches_[s].target!==e.target){delete this.trackedTouches_[s];break}}else(e.type==it.POINTERDOWN||e.type==it.POINTERMOVE)&&(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new pe(it.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(et),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return t.button===0}handlePointerDown_(t){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(t);const e=new pe(it.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),this.dragListenerKeys_.length===0){const i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(B(i,it.POINTERMOVE,this.handlePointerMove_,this),B(i,it.POINTERUP,this.handlePointerUp_,this),B(this.element_,it.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(B(this.element_.getRootNode(),it.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new pe(it.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new pe(it.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;(!e||e.defaultPrevented)&&(typeof t.cancelable!="boolean"||t.cancelable===!0)&&t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(et(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(G.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(et(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(et),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const yc=pc,ye={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},ut={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},Pn=1/0;class Ec{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Ki(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,i=t[0];t.length==1?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const s=this.keyFunction_(i);return delete this.queuedElements_[s],i}enqueue(t){Y(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=Pn?(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(t){return t*2+1}getRightChildIndex_(t){return t*2+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return this.elements_.length===0}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,i=this.priorities_,s=e.length,r=e[t],o=i[t],a=t;for(;t>1;){const l=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),c=ht;){const a=this.getParentIndex_(e);if(s[a]>o)i[e]=i[a],s[e]=s[a],e=a;else break}i[e]=r,s[e]=o}reprioritize(){const t=this.priorityFunction_,e=this.elements_,i=this.priorities_;let s=0;const r=e.length;let o,a,l;for(a=0;a0;)r=this.dequeue()[0],o=r.getKey(),s=r.getState(),s===b.IDLE&&!(o in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[o]=!0,++this.tilesLoading_,++i,r.load())}}const wc=Cc;function Rc(n,t,e,i,s){if(!n||!(e in n.wantedTiles)||!n.wantedTiles[e][t.getKey()])return Pn;const r=n.viewState.center,o=i[0]-r[0],a=i[1]-r[1];return 65536*Math.log(s)+Math.sqrt(o*o+a*a)/s}class Tc extends Kt{constructor(t){super();const e=t.element;e&&!t.target&&!e.style.pointerEvents&&(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){Ls(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&Ls(this.element);for(let e=0,i=this.listenerKeys.length;es.getAttributions(t)))),i=!this.getMap().getAllLayers().some(s=>s.getSource()&&s.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(i),e}updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const e=this.collectSourceAttributions_(t),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Se(e,this.renderedAttributions_)){oc(this.ulElement_);for(let s=0,r=e.length;s0&&i%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:pi}):e.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const i=e.viewState.rotation;if(i!=this.rotation_){const s="rotate("+i+"rad)";if(this.autoHide_){const r=this.element.classList.contains(mn);!r&&i===0?this.element.classList.add(mn):r&&i!==0&&this.element.classList.remove(mn)}this.label_.style.transform=s}this.rotation_=i}}const Ac=Sc;class Lc extends jn{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=t.className!==void 0?t.className:"ol-zoom",i=t.delta!==void 0?t.delta:1,s=t.zoomInClassName!==void 0?t.zoomInClassName:e+"-in",r=t.zoomOutClassName!==void 0?t.zoomOutClassName:e+"-out",o=t.zoomInLabel!==void 0?t.zoomInLabel:"+",a=t.zoomOutLabel!==void 0?t.zoomOutLabel:"–",l=t.zoomInTipLabel!==void 0?t.zoomInTipLabel:"Zoom in",h=t.zoomOutTipLabel!==void 0?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=s,c.setAttribute("type","button"),c.title=l,c.appendChild(typeof o=="string"?document.createTextNode(o):o),c.addEventListener(G.CLICK,this.handleClick_.bind(this,i),!1);const u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=h,u.appendChild(typeof a=="string"?document.createTextNode(a):a),u.addEventListener(G.CLICK,this.handleClick_.bind(this,-i),!1);const d=e+" "+Bn+" "+ar,f=this.element;f.className=d,f.appendChild(c),f.appendChild(u),this.duration_=t.duration!==void 0?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const i=this.getMap().getView();if(!i)return;const s=i.getZoom();if(s!==void 0){const r=i.getConstrainedZoom(s+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:r,duration:this.duration_,easing:pi})):i.setZoom(r)}}}const Mc=Lc;function bc(n){n=n||{};const t=new Vt;return(n.zoom!==void 0?n.zoom:!0)&&t.push(new Mc(n.zoomOptions)),(n.rotate!==void 0?n.rotate:!0)&&t.push(new Ac(n.rotateOptions)),(n.attribution!==void 0?n.attribution:!0)&&t.push(new Ic(n.attributionOptions)),t}const oo={ACTIVE:"active"};class Pc extends Kt{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(oo.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(oo.ACTIVE,t)}setMap(t){this.map_=t}}function Oc(n,t,e){const i=n.getCenterInternal();if(i){const s=[i[0]+t[0],i[1]+t[1]];n.animateInternal({duration:e!==void 0?e:250,easing:Sh,center:n.getConstrainedCenter(s)})}}function hr(n,t,e,i){const s=n.getZoom();if(s===void 0)return;const r=n.getConstrainedZoom(s+t),o=n.getResolutionForZoom(r);n.getAnimating()&&n.cancelAnimations(),n.animate({resolution:o,anchor:e,duration:i!==void 0?i:250,easing:pi})}const $i=Pc;class Dc extends $i{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:250}handleEvent(t){let e=!1;if(t.type==it.DBLCLICK){const i=t.originalEvent,s=t.map,r=t.coordinate,o=i.shiftKey?-this.delta_:this.delta_,a=s.getView();hr(a,o,r,this.duration_),i.preventDefault(),e=!0}return!e}}const Fc=Dc;class kc extends $i{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==it.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==it.POINTERUP){const i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==it.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==it.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function cr(n){const t=n.length;let e=0,i=0;for(let s=0;s0&&this.condition_(t)){const i=t.map.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const Zc=Vc;class Bc extends Ji{constructor(t){t=t||{},super({stopDown:Fn}),this.condition_=t.condition?t.condition:Nc,this.lastAngle_=void 0,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){if(!hs(t))return;const e=t.map,i=e.getView();if(i.getConstraints().rotation===tr)return;const s=e.getSize(),r=t.pixel,o=Math.atan2(s[1]/2-r[1],r[0]-s[0]/2);if(this.lastAngle_!==void 0){const a=o-this.lastAngle_;i.adjustRotationInternal(-a)}this.lastAngle_=o}handleUpEvent(t){return hs(t)?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){return hs(t)&&Ia(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}const Uc=Bc;class Kc extends Gs{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,i="px",s=this.element_.style;s.left=Math.min(t[0],e[0])+i,s.top=Math.min(t[1],e[1])+i,s.width=Math.abs(e[0]-t[0])+i,s.height=Math.abs(e[1]-t[1])+i}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const t=this.startPixel_,e=this.endPixel_,s=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);s[4]=s[0].slice(),this.geometry_?this.geometry_.setCoordinates([s]):this.geometry_=new Wi([s])}getGeometry(){return this.geometry_}}const jc=Kc,pn={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class cs extends le{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}class qc extends Ji{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new jc(t.className||"ol-dragbox"),this.minArea_=t.minArea!==void 0?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:Ia,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){const s=i[0]-e[0],r=i[1]-e[1];return s*s+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new cs(pn.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new cs(e?pn.BOXEND:pn.BOXCANCEL,t.coordinate,t)),!1}handleDownEvent(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new cs(pn.BOXSTART,t.coordinate,t)),!0):!1}onBoxEnd(t){}}const Hc=qc;class $c extends Hc{constructor(t){t=t||{};const e=t.condition?t.condition:zc;super({condition:e,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=t.duration!==void 0?t.duration:200,this.out_=t.out!==void 0?t.out:!1}onBoxEnd(t){const i=this.getMap().getView();let s=this.getGeometry();if(this.out_){const r=i.rotatedExtentForGeometry(s),o=i.getResolutionForExtentInternal(r),a=i.getResolution()/o;s=s.clone(),s.scale(a*a)}i.fitInternal(s,{duration:this.duration_,easing:pi})}}const Jc=$c,be={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class Qc extends $i{constructor(t){super(),t=t||{},this.defaultCondition_=function(e){return Sa(e)&&Aa(e)},this.condition_=t.condition!==void 0?t.condition:this.defaultCondition_,this.duration_=t.duration!==void 0?t.duration:100,this.pixelDelta_=t.pixelDelta!==void 0?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==G.KEYDOWN){const i=t.originalEvent,s=i.key;if(this.condition_(t)&&(s==be.DOWN||s==be.LEFT||s==be.RIGHT||s==be.UP)){const o=t.map.getView(),a=o.getResolution()*this.pixelDelta_;let l=0,h=0;s==be.DOWN?h=-a:s==be.LEFT?l=-a:s==be.RIGHT?l=a:h=a;const c=[l,h];qs(c,o.getRotation()),Oc(o,c,this.duration_),i.preventDefault(),e=!0}}return!e}}const tu=Qc;class eu extends $i{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(e){return!Xc(e)&&Aa(e)},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:100}handleEvent(t){let e=!1;if(t.type==G.KEYDOWN||t.type==G.KEYPRESS){const i=t.originalEvent,s=i.key;if(this.condition_(t)&&(s==="+"||s==="-")){const r=t.map,o=s==="+"?this.delta_:-this.delta_,a=r.getView();hr(a,o,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}}const iu=eu;class nu{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[i+2]>t;)i-=3;const s=this.points_[e+2]-this.points_[i+2];if(s<1e3/60)return!1;const r=this.points_[e]-this.points_[i],o=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}const su=nu;class ru extends $i{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=t.maxDelta!==void 0?t.maxDelta:1,this.duration_=t.duration!==void 0?t.duration:250,this.timeout_=t.timeout!==void 0?t.timeout:80,this.useAnchor_=t.useAnchor!==void 0?t.useAnchor:!0,this.constrainResolution_=t.constrainResolution!==void 0?t.constrainResolution:!1;const e=t.condition?t.condition:Wc;this.condition_=t.onFocusOnly?Os(va,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t)||t.type!==G.WHEEL)return!0;const i=t.map,s=t.originalEvent;s.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);let r;if(t.type==G.WHEEL&&(r=s.deltaY,Il&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=Xo),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;const o=Date.now();this.startTime_===void 0&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const a=i.getView();if(this.mode_==="trackpad"&&!(a.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=r;const l=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),l),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-rt(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),hr(e,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}}const ou=ru;class au extends Ji{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=Fn),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=t.threshold!==void 0?t.threshold:.3,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){let e=0;const i=this.targetPointers[0],s=this.targetPointers[1],r=Math.atan2(s.clientY-i.clientY,s.clientX-i.clientX);if(this.lastAngle_!==void 0){const l=r-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=l}this.lastAngle_=r;const o=t.map,a=o.getView();a.getConstraints().rotation!==tr&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(cr(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return this.targetPointers.length<2?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}const lu=au;class hu extends Ji{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=Fn),super(e),this.anchor_=null,this.duration_=t.duration!==void 0?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const i=this.targetPointers[0],s=this.targetPointers[1],r=i.clientX-s.clientX,o=i.clientY-s.clientY,a=Math.sqrt(r*r+o*o);this.lastDistance_!==void 0&&(e=this.lastDistance_/a),this.lastDistance_=a;const l=t.map,h=l.getView();e!=1&&(this.lastScaleDelta_=e),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(cr(this.targetPointers))),l.render(),h.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const i=t.map.getView(),s=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,s),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}const cu=hu;function uu(n){n=n||{};const t=new Vt,e=new su(-.005,.05,100);return(n.altShiftDragRotate!==void 0?n.altShiftDragRotate:!0)&&t.push(new Uc),(n.doubleClickZoom!==void 0?n.doubleClickZoom:!0)&&t.push(new Fc({delta:n.zoomDelta,duration:n.zoomDuration})),(n.dragPan!==void 0?n.dragPan:!0)&&t.push(new Zc({onFocusOnly:n.onFocusOnly,kinetic:e})),(n.pinchRotate!==void 0?n.pinchRotate:!0)&&t.push(new lu),(n.pinchZoom!==void 0?n.pinchZoom:!0)&&t.push(new cu({duration:n.zoomDuration})),(n.keyboard!==void 0?n.keyboard:!0)&&(t.push(new tu),t.push(new iu({delta:n.zoomDelta,duration:n.zoomDuration}))),(n.mouseWheelZoom!==void 0?n.mouseWheelZoom:!0)&&t.push(new ou({onFocusOnly:n.onFocusOnly,duration:n.zoomDuration})),(n.shiftDragZoom!==void 0?n.shiftDragZoom:!0)&&t.push(new Jc({duration:n.zoomDuration})),t}function ao(n){return n[0]>0&&n[1]>0}function du(n,t,e){return e===void 0&&(e=[0,0]),e[0]=n[0]*t+.5|0,e[1]=n[1]*t+.5|0,e}function At(n,t){return Array.isArray(n)?n:(t===void 0?t=[n,n]:(t[0]=n,t[1]=n),t)}function La(n){if(n instanceof Zn){n.setMapInternal(null);return}n instanceof Kn&&n.getLayers().forEach(La)}function Ma(n,t){if(n instanceof Zn){n.setMapInternal(t);return}if(n instanceof Kn){const e=n.getLayers().getArray();for(let i=0,s=e.length;ithis.updateSize()),this.controls=e.controls||bc(),this.interactions=e.interactions||uu({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new wc(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(ut.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(ut.VIEW,this.handleViewChanged_),this.addChangeListener(ut.SIZE,this.handleSizeChanged_),this.addChangeListener(ut.TARGET,this.handleTargetChanged_),this.setProperties(e.values);const i=this;t.view&&!(t.view instanceof zt)&&t.view.then(function(s){i.setView(new zt(s))}),this.controls.addEventListener(Ct.ADD,s=>{s.element.setMap(this)}),this.controls.addEventListener(Ct.REMOVE,s=>{s.element.setMap(null)}),this.interactions.addEventListener(Ct.ADD,s=>{s.element.setMap(this)}),this.interactions.addEventListener(Ct.REMOVE,s=>{s.element.setMap(null)}),this.overlays_.addEventListener(Ct.ADD,s=>{this.addOverlayInternal_(s.element)}),this.overlays_.addEventListener(Ct.REMOVE,s=>{const r=s.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],s.element.setMap(null)}),this.controls.forEach(s=>{s.setMap(this)}),this.interactions.forEach(s=>{s.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){Ma(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();e!==void 0&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;const s=this.getCoordinateFromPixelInternal(t);i=i!==void 0?i:{};const r=i.hitTolerance!==void 0?i.hitTolerance:0,o=i.layerFilter!==void 0?i.layerFilter:Di,a=i.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(s,this.frameState_,r,a,e,null,o,null)}getFeaturesAtPixel(t,e){const i=[];return this.forEachFeatureAtPixel(t,function(s){i.push(s)},e),i}getAllLayers(){const t=[];function e(i){i.forEach(function(s){s instanceof Kn?e(s.getLayers()):t.push(s)})}return e(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(t);e=e!==void 0?e:{};const s=e.layerFilter!==void 0?e.layerFilter:Di,r=e.hitTolerance!==void 0?e.hitTolerance:0,o=e.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,o,s,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const i=this.viewport_.getBoundingClientRect(),s=this.getSize(),r=i.width/s[0],o=i.height/s[1],a="changedTouches"in t?t.changedTouches[0]:t;return[(a.clientX-i.left)/r,(a.clientY-i.top)/o]}getTarget(){return this.get(ut.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return Ss(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?at(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return e!==void 0?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(ut.LAYERGROUP)}setLayers(t){const e=this.getLayerGroup();if(t instanceof Vt){e.setLayers(t);return}const i=e.getLayers();i.clear(),i.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e=0;r--){const o=s[r];if(o.getMap()!==this||!o.getActive()||!this.getTargetElement())continue;if(!o.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let s=this.maxTilesLoading_,r=s;if(t){const o=t.viewHints;if(o[dt.ANIMATING]||o[dt.INTERACTING]){const a=Date.now()-t.time>8;s=a?0:8,r=a?0:2}}e.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new Ee("removelayer",e)),this.set(ut.LAYERGROUP,t)}setSize(t){this.set(ut.SIZE,t)}setTarget(t){this.set(ut.TARGET,t)}setView(t){if(!t||t instanceof zt){this.set(ut.VIEW,t);return}this.set(ut.VIEW,new zt);const e=this;t.then(function(i){e.setView(new zt(i))})}updateSize(){const t=this.getTargetElement();let e;if(t){const s=getComputedStyle(t),r=t.offsetWidth-parseFloat(s.borderLeftWidth)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderRightWidth),o=t.offsetHeight-parseFloat(s.borderTopWidth)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderBottomWidth);!isNaN(r)&&!isNaN(o)&&(e=[r,o],!ao(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&oa("No map visible because the map container's width or height are 0."))}const i=this.getSize();e&&(!i||!Se(e,i))&&(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}};function gu(n){let t=null;n.keyboardEventTarget!==void 0&&(t=typeof n.keyboardEventTarget=="string"?document.getElementById(n.keyboardEventTarget):n.keyboardEventTarget);const e={},i=n.layers&&typeof n.layers.getLayers=="function"?n.layers:new Kn({layers:n.layers});e[ut.LAYERGROUP]=i,e[ut.TARGET]=n.target,e[ut.VIEW]=n.view instanceof zt?n.view:new zt;let s;n.controls!==void 0&&(Array.isArray(n.controls)?s=new Vt(n.controls.slice()):(Y(typeof n.controls.getArray=="function","Expected `controls` to be an array or an `ol/Collection.js`"),s=n.controls));let r;n.interactions!==void 0&&(Array.isArray(n.interactions)?r=new Vt(n.interactions.slice()):(Y(typeof n.interactions.getArray=="function","Expected `interactions` to be an array or an `ol/Collection.js`"),r=n.interactions));let o;return n.overlays!==void 0?Array.isArray(n.overlays)?o=new Vt(n.overlays.slice()):(Y(typeof n.overlays.getArray=="function","Expected `overlays` to be an array or an `ol/Collection.js`"),o=n.overlays):o=new Vt,{controls:s,interactions:r,keyboardEventTarget:t,overlays:o,values:e}}const _u=fu,Q={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};class ur{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=At(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new ur({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Z()}getImage(t){return Z()}getHitDetectionImage(){return Z()}getPixelRatio(t){return 1}getImageState(){return Z()}getImageSize(){return Z()}getOrigin(){return Z()}getSize(){return Z()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=At(t)}listenImageChange(t){Z()}load(){Z()}unlistenImageChange(t){Z()}}const ba=ur;function Zt(n){return Array.isArray(n)?ea(n):n}class dr extends ba{constructor(t){const e=t.rotateWithView!==void 0?t.rotateWithView:!1;super({opacity:1,rotateWithView:e,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0],declutterMode:t.declutterMode}),this.canvases_,this.hitDetectionCanvas_=null,this.fill_=t.fill!==void 0?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=t.radius!==void 0?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=t.angle!==void 0?t.angle:0,this.stroke_=t.stroke!==void 0?t.stroke:null,this.size_,this.renderOptions_,this.render()}clone(){const t=this.getScale(),e=new dr({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){let e=this.canvases_[t];if(!e){const i=this.renderOptions_,s=pt(i.size*t,i.size*t);this.draw_(i,s,t),e=s.canvas,this.canvases_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return Q.LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(e===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return e;let s=this.radius_,r=this.radius2_===void 0?s:this.radius2_;if(s{const o=this.loadedTileCallback.bind(this,i,s);return t.forEachLoadedTile(e,s,r,o)}}forEachFeatureAtCoordinate(t,e,i,s,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;(e.getState()===Q.LOADED||e.getState()===Q.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=Q.LOADED&&e!=Q.ERROR&&t.addEventListener(G.CHANGE,this.boundHandleImageChange_),e==Q.IDLE&&(t.load(),e=t.getState()),e==Q.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const wu=Cu,ho=[];let ei=null;function Ru(){ei=pt(1,1,void 0,{willReadFrequently:!0})}class Tu extends wu{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=Xt(),this.pixelTransform=Xt(),this.inversePixelTransform=Xt(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,i){ei||Ru(),ei.clearRect(0,0,1,1);let s;try{ei.drawImage(t,e,i,1,1,0,0,1,1),s=ei.getImageData(0,0,1,1).data}catch(r){return ei=null,null}return s}getBackground(t){let i=this.getLayer().getBackground();return typeof i=="function"&&(i=i(t.viewState.resolution)),i||void 0}useContainer(t,e,i){const s=this.getLayer().getClassName();let r,o;if(t&&t.className===s&&(!i||t&&t.style.backgroundColor&&Se(Tn(t.style.backgroundColor),Tn(i)))){const a=t.firstElementChild;a instanceof HTMLCanvasElement&&(o=a.getContext("2d"))}if(o&&o.canvas.style.transform===e?(this.container=t,this.context=o,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=s;let a=r.style;a.position="absolute",a.width="100%",a.height="100%",o=pt();const l=o.canvas;r.appendChild(l),a=l.style,a.position="absolute",a.left="0",a.transformOrigin="top left",this.container=r,this.context=o}!this.containerReused&&i&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){const s=Xe(i),r=zn(i),o=Xn(i),a=Wn(i);at(e.coordinateToPixelTransform,s),at(e.coordinateToPixelTransform,r),at(e.coordinateToPixelTransform,o),at(e.coordinateToPixelTransform,a);const l=this.inversePixelTransform;at(l,s),at(l,r),at(l,o),at(l,a),t.save(),t.beginPath(),t.moveTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}dispatchRenderEvent_(t,e,i){const s=this.getLayer();if(s.hasListener(t)){const r=new Ca(t,this.inversePixelTransform,i,e);s.dispatchEvent(r)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_(Bt.PRERENDER,t,e)}postRender(t,e){this.dispatchRenderEvent_(Bt.POSTRENDER,t,e)}getRenderTransform(t,e,i,s,r,o,a){const l=r/2,h=o/2,c=s/e,u=-c,d=-t[0]+a,f=-t[1];return re(this.tempTransform,l,h,c,u,-i,d,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}}const Fa=Tu;class vu extends kn{constructor(t,e,i){super(),i=i||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=i.transition===void 0?250:i.transition,this.transitionStarts_={},this.interpolate=!!i.interpolate}changed(){this.dispatchEvent(G.CHANGE)}release(){this.state===b.ERROR&&this.setState(b.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){let t=this.interimTile;if(!t)return this;do{if(t.getState()==b.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){let t=this.interimTile;if(!t)return;let e=this;do{if(t.getState()==b.LOADED){t.interimTile=null;break}t.getState()==b.LOADING?e=t:t.getState()==b.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==b.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){Z()}getAlpha(t,e){if(!this.transition_)return 1;let i=this.transitionStarts_[t];if(!i)i=e,this.transitionStarts_[t]=i;else if(i===-1)return 1;const s=e-i+1e3/60;return s>=this.transition_?1:ca(s/this.transition_)}inTransition(t){return this.transition_?this.transitionStarts_[t]!==-1:!1}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}const ka=vu;function Iu(n,t,e){const i=n;let s=!0,r=!1,o=!1;const a=[Rn(i,G.LOAD,function(){o=!0,r||t()})];return i.src&&zo?(r=!0,i.decode().then(function(){s&&t()}).catch(function(l){s&&(o?t():e())})):a.push(Rn(i,G.ERROR,e)),function(){s=!1,a.forEach(et)}}function Su(n,t){return new Promise((e,i)=>{function s(){o(),e(n)}function r(){o(),i(new Error("Image load error"))}function o(){n.removeEventListener("load",s),n.removeEventListener("error",r)}n.addEventListener("load",s),n.addEventListener("error",r),t&&(n.src=t)})}function Au(n,t){return t&&(n.src=t),n.src&&zo?new Promise((e,i)=>n.decode().then(()=>e(n)).catch(s=>n.complete&&n.width?e(n):i(s))):Su(n)}class Lu extends ka{constructor(t,e,i,s,r,o){super(t,e,o),this.crossOrigin_=s,this.src_=i,this.key=i,this.image_=new Image,s!==null&&(this.image_.crossOrigin=s),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=b.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=b.ERROR,this.unlistenImage_(),this.image_=Mu(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=b.LOADED:this.state=b.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==b.ERROR&&(this.state=b.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==b.IDLE&&(this.state=b.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Iu(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function Mu(){const n=pt(1,1);return n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1),n.canvas}const Na=Lu,bu=.5,Pu=10,co=.25;class Ou{constructor(t,e,i,s,r,o){this.sourceProj_=t,this.targetProj_=e;let a={};const l=Gi(this.targetProj_,this.sourceProj_);this.transformInv_=function(y){const E=y[0]+"/"+y[1];return a[E]||(a[E]=l(y)),a[E]},this.maxSourceExtent_=s,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&tt(s)>=tt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?tt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?tt(this.targetProj_.getExtent()):null;const h=Xe(i),c=zn(i),u=Xn(i),d=Wn(i),f=this.transformInv_(h),g=this.transformInv_(c),_=this.transformInv_(u),m=this.transformInv_(d),p=Pu+(o?Math.max(0,Math.ceil(Math.log2(ws(i)/(o*o*256*256)))):0);if(this.addQuad_(h,c,u,d,f,g,_,m,p),this.wrapsXInSource_){let y=1/0;this.triangles_.forEach(function(E,x,C){y=Math.min(y,E.source[0][0],E.source[1][0],E.source[2][0])}),this.triangles_.forEach(E=>{if(Math.max(E.source[0][0],E.source[1][0],E.source[2][0])-y>this.sourceWorldWidth_/2){const x=[[E.source[0][0],E.source[0][1]],[E.source[1][0],E.source[1][1]],[E.source[2][0],E.source[2][1]]];x[0][0]-y>this.sourceWorldWidth_/2&&(x[0][0]-=this.sourceWorldWidth_),x[1][0]-y>this.sourceWorldWidth_/2&&(x[1][0]-=this.sourceWorldWidth_),x[2][0]-y>this.sourceWorldWidth_/2&&(x[2][0]-=this.sourceWorldWidth_);const C=Math.min(x[0][0],x[1][0],x[2][0]);Math.max(x[0][0],x[1][0],x[2][0])-C.5&&u<1;let g=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const m=Dr([t,e,i,s]);g=tt(m)/this.targetWorldWidth_>co||g}!f&&this.sourceProj_.isGlobal()&&u&&(g=u>co||g)}if(!g&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!Rt(c,this.maxSourceExtent_))return;let _=0;if(!g&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1]))){if(h>0)g=!0;else if(_=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(a[0])||!isFinite(a[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),_!=1&&_!=2&&_!=4&&_!=8)return}if(h>0){if(!g){const m=[(t[0]+i[0])/2,(t[1]+i[1])/2],p=this.transformInv_(m);let y;f?y=(li(r[0],d)+li(a[0],d))/2-li(p[0],d):y=(r[0]+a[0])/2-p[0];const E=(r[1]+a[1])/2-p[1];g=y*y+E*E>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const m=[(e[0]+i[0])/2,(e[1]+i[1])/2],p=this.transformInv_(m),y=[(s[0]+t[0])/2,(s[1]+t[1])/2],E=this.transformInv_(y);this.addQuad_(t,e,m,y,r,o,p,E,h-1),this.addQuad_(y,m,i,s,E,p,a,l,h-1)}else{const m=[(t[0]+e[0])/2,(t[1]+e[1])/2],p=this.transformInv_(m),y=[(i[0]+s[0])/2,(i[1]+s[1])/2],E=this.transformInv_(y);this.addQuad_(t,m,y,s,r,p,E,l,h-1),this.addQuad_(m,e,i,y,p,o,a,E,h-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}_&11||this.addTriangle_(t,i,s,r,a,l),_&14||this.addTriangle_(t,i,e,r,a,o),_&&(_&13||this.addTriangle_(e,s,t,o,l,r),_&7||this.addTriangle_(e,s,i,o,l,a))}calculateSourceExtent(){const t=Dt();return this.triangles_.forEach(function(e,i,s){const r=e.source;bi(t,r[0]),bi(t,r[1]),bi(t,r[2])}),t}getTriangles(){return this.triangles_}}const Du=Ou;let ds;const ci=[];function uo(n,t,e,i,s){n.beginPath(),n.moveTo(0,0),n.lineTo(t,e),n.lineTo(i,s),n.closePath(),n.save(),n.clip(),n.fillRect(0,0,Math.max(t,i)+1,Math.max(e,s)),n.restore()}function fs(n,t){return Math.abs(n[t*4]-210)>2||Math.abs(n[t*4+3]-.75*255)>2}function Fu(){if(ds===void 0){const n=pt(6,6,ci);n.globalCompositeOperation="lighter",n.fillStyle="rgba(210, 0, 0, 0.75)",uo(n,4,5,4,0),uo(n,4,5,0,5);const t=n.getImageData(0,0,3,3).data;ds=fs(t,0)||fs(t,4)||fs(t,8),Un(n),ci.push(n.canvas)}return ds}function fo(n,t,e,i){const s=Vn(e,t,n);let r=Vr(t,i,e);const o=t.getMetersPerUnit();o!==void 0&&(r*=o);const a=n.getMetersPerUnit();a!==void 0&&(r/=a);const l=n.getExtent();if(!l||Gn(l,s)){const h=Vr(n,r,s)/r;isFinite(h)&&h>0&&(r/=h)}return r}function ku(n,t,e,i){const s=We(e);let r=fo(n,t,s,i);return(!isFinite(r)||r<=0)&&Ho(e,function(o){return r=fo(n,t,o,i),isFinite(r)&&r>0}),r}function Nu(n,t,e,i,s,r,o,a,l,h,c,u,d){const f=pt(Math.round(e*n),Math.round(e*t),ci);if(u||(f.imageSmoothingEnabled=!1),l.length===0)return f.canvas;f.scale(e,e);function g(y){return Math.round(y*e)/e}f.globalCompositeOperation="lighter";const _=Dt();l.forEach(function(y,E,x){jo(_,y.extent)});let m;if(!d||l.length!==1||h!==0){const y=tt(_),E=Lt(_);m=pt(Math.round(e*y/i),Math.round(e*E/i),ci),u||(m.imageSmoothingEnabled=!1);const x=e/i;l.forEach(function(C,w,I){const v=C.extent[0]-_[0],P=-(C.extent[3]-_[3]),D=tt(C.extent),X=Lt(C.extent);C.image.width>0&&C.image.height>0&&m.drawImage(C.image,h,h,C.image.width-2*h,C.image.height-2*h,v*x,P*x,D*x,X*x)})}const p=Xe(o);return a.getTriangles().forEach(function(y,E,x){const C=y.source,w=y.target;let I=C[0][0],v=C[0][1],P=C[1][0],D=C[1][1],X=C[2][0],U=C[2][1];const N=g((w[0][0]-p[0])/r),nt=g(-(w[0][1]-p[1])/r),k=g((w[1][0]-p[0])/r),A=g(-(w[1][1]-p[1])/r),S=g((w[2][0]-p[0])/r),L=g(-(w[2][1]-p[1])/r),V=I,H=v;I=0,v=0,P-=V,D-=H,X-=V,U-=H;const ct=[[P,D,0,0,k-N],[X,U,0,0,S-N],[0,0,P,D,A-nt],[0,0,X,U,L-nt]],T=Bl(ct);if(!T)return;if(f.save(),f.beginPath(),Fu()||!u){f.moveTo(k,A);const z=4,J=N-k,he=nt-A;for(let _t=0;_t{e&&e.getState()==b.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}),this.sourceTiles_.length=0,t.length===0)this.state=b.ERROR;else{const e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),s=typeof i=="number"?i:i[0],r=typeof i=="number"?i:i[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Nu(s,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=b.LOADED}this.changed()}load(){if(this.state==b.IDLE){this.state=b.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(e=>{const i=e.getState();if(i==b.IDLE||i==b.LOADING){t++;const s=B(e,G.CHANGE,function(r){const o=e.getState();(o==b.LOADED||o==b.ERROR||o==b.EMPTY)&&(et(s),t--,t===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(s)}}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(e,i,s){e.getState()==b.IDLE&&e.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(et),this.sourcesListenerKeys_=null}release(){this.canvas_&&(Un(this.canvas_.getContext("2d")),ci.push(this.canvas_),this.canvas_=null),super.release()}}const Ds=Gu;class Ga{constructor(t,e,i,s){this.minX=t,this.maxX=e,this.minY=i,this.maxY=s}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function je(n,t,e,i,s){return s!==void 0?(s.minX=n,s.maxX=t,s.minY=e,s.maxY=i,s):new Ga(n,t,e,i)}const Wa=Ga;class Wu extends Fa{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=Dt(),this.tmpTileRange_=new Wa(0,0,0,0)}isDrawableTile(t){const e=this.getLayer(),i=t.getState(),s=e.getUseInterimTilesOnError();return i==b.LOADED||i==b.EMPTY||i==b.ERROR&&!s}getTile(t,e,i,s){const r=s.pixelRatio,o=s.viewState.projection,a=this.getLayer();let h=a.getSource().getTile(t,e,i,r,o);return h.getState()==b.ERROR&&a.getUseInterimTilesOnError()&&a.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(h)||(h=h.getInterimTile()),h}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),s=at(e.pixelToCoordinateTransform,t.slice()),r=i.getExtent();if(r&&!Gn(r,s))return null;const o=e.pixelRatio,a=e.viewState.projection,l=e.viewState,h=i.getRenderSource(),c=h.getTileGridForProjection(l.projection),u=h.getTilePixelRatio(e.pixelRatio);for(let d=c.getZForResolution(l.resolution);d>=c.getMinZoom();--d){const f=c.getTileCoordForCoordAndZ(s,d),g=h.getTile(d,f[1],f[2],o,a);if(!(g instanceof Na||g instanceof Ds)||g instanceof Ds&&g.getState()===b.EMPTY)return null;if(g.getState()!==b.LOADED)continue;const _=c.getOrigin(d),m=At(c.getTileSize(d)),p=c.getResolution(d),y=Math.floor(u*((s[0]-_[0])/p-f[1]*m[0])),E=Math.floor(u*((_[1]-s[1])/p-f[2]*m[1])),x=Math.round(u*h.getGutterForProjection(l.projection));return this.getImageData(g.getImage(),y+x,E+x)}return null}loadedTileCallback(t,e,i){return this.isDrawableTile(i)?super.loadedTileCallback(t,e,i):!1}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){const i=t.layerStatesArray[t.layerIndex],s=t.viewState,r=s.projection,o=s.resolution,a=s.center,l=s.rotation,h=t.pixelRatio,c=this.getLayer(),u=c.getSource(),d=u.getRevision(),f=u.getTileGridForProjection(r),g=f.getZForResolution(o,u.zDirection),_=f.getResolution(g);let m=t.extent;const p=t.viewState.resolution,y=u.getTilePixelRatio(h),E=Math.round(tt(m)/p*h),x=Math.round(Lt(m)/p*h),C=i.extent&&Fe(i.extent,r);C&&(m=Pi(m,Fe(i.extent,r)));const w=_*E/2/y,I=_*x/2/y,v=[a[0]-w,a[1]-I,a[0]+w,a[1]+I],P=f.getTileRangeForExtentAndZ(m,g),D={};D[g]={};const X=this.createLoadedTileFinder(u,r,D),U=this.tmpExtent,N=this.tmpTileRange_;this.newTiles_=!1;const nt=l?Ts(s.center,p,l,t.size):void 0;for(let lt=P.minX;lt<=P.maxX;++lt)for(let z=P.minY;z<=P.maxY;++z){if(l&&!f.tileCoordIntersectsViewport([g,lt,z],nt))continue;const J=this.getTile(g,lt,z,t);if(this.isDrawableTile(J)){const jt=j(this);if(J.getState()==b.LOADED){D[g][J.tileCoord.toString()]=J;let qt=J.inTransition(jt);qt&&i.opacity!==1&&(J.endTransition(jt),qt=!1),!this.newTiles_&&(qt||!this.renderedTiles.includes(J))&&(this.newTiles_=!0)}if(J.getAlpha(jt,t.time)===1)continue}const he=f.getTileCoordChildTileRange(J.tileCoord,N,U);let _t=!1;he&&(_t=X(g+1,he)),_t||f.forEachTileCoordParentTileRange(J.tileCoord,X,N,U)}const k=_/o*h/y;re(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/h,1/h,l,-E/2,-x/2);const A=Vo(this.pixelTransform);this.useContainer(e,A,this.getBackground(t));const S=this.context,L=S.canvas;Ys(this.inversePixelTransform,this.pixelTransform),re(this.tempTransform,E/2,x/2,k,k,0,-E/2,-x/2),L.width!=E||L.height!=x?(L.width=E,L.height=x):this.containerReused||S.clearRect(0,0,E,x),C&&this.clipUnrotated(S,t,C),u.getInterpolate()||(S.imageSmoothingEnabled=!1),this.preRender(S,t),this.renderedTiles.length=0;let V=Object.keys(D).map(Number);V.sort(Te);let H,ct,T;i.opacity===1&&(!this.containerReused||u.getOpaque(t.viewState.projection))?V=V.reverse():(H=[],ct=[]);for(let lt=V.length-1;lt>=0;--lt){const z=V[lt],J=u.getTilePixelSize(z,h,r),_t=f.getResolution(z)/_,jt=J[0]*_t*k,qt=J[1]*_t*k,ze=f.getTileCoordForCoordAndZ(Xe(v),z),nn=f.getTileCoordExtent(ze),Ye=at(this.tempTransform,[y*(nn[0]-v[0])/_,y*(v[3]-nn[3])/_]),sn=y*u.getGutterForProjection(r),ce=D[z];for(const xi in ce){const ue=ce[xi],rn=ue.tileCoord,on=ze[1]-rn[1],an=Math.round(Ye[0]-(on-1)*jt),Ve=ze[2]-rn[2],ts=Math.round(Ye[1]-(Ve-1)*qt),yt=Math.round(Ye[0]-on*jt),Mt=Math.round(Ye[1]-Ve*qt),kt=an-yt,Ht=ts-Mt,Ze=g===z,Le=Ze&&ue.getAlpha(j(this),t.time)!==1;let de=!1;if(!Le)if(H){T=[yt,Mt,yt+kt,Mt,yt+kt,Mt+Ht,yt,Mt+Ht];for(let Be=0,ln=H.length;Be0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const i=this.entries_[t];return Y(i!==void 0,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(t){const e=this.entries_[t];return Y(e!==void 0,"Tried to get a value for a key that does not exist in the cache"),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e=0,i;for(i=this.newest_;i;i=i.older)t[e++]=i.key_;return t}getValues(){const t=new Array(this.count_);let e=0,i;for(i=this.newest_;i;i=i.older)t[e++]=i.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){var e;return(e=this.entries_[t])==null?void 0:e.value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){Y(!(t in this.entries_),"Tried to set a value for a key that is used already");const i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_}setSize(t){this.highWaterMark=t}}const Zu=Vu;function go(n,t,e,i){return i!==void 0?(i[0]=n,i[1]=t,i[2]=e,i):[n,t,e]}function $n(n,t,e){return n+"/"+t+"/"+e}function Xa(n){return $n(n[0],n[1],n[2])}function Bu(n){return n.split("/").map(Number)}function Uu(n){return(n[1]<e||e>t.getMaxZoom())return!1;const r=t.getFullTileRange(e);return r?r.containsXY(i,s):!0}class ju extends Zu{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;const t=this.peekFirstKey(),i=Bu(t)[0];this.forEach(s=>{s.tileCoord[0]!==i&&(this.remove(Xa(s.tileCoord)),s.release())})}}const za=ju,gs={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};class qu extends Kt{constructor(t){super(),this.projection=vt(t.projection),this.attributions_=_o(t.attributions),this.attributionsCollapsible_=t.attributionsCollapsible!==void 0?t.attributionsCollapsible:!0,this.loading=!1,this.state_=t.state!==void 0?t.state:"ready",this.wrapX_=t.wrapX!==void 0?t.wrapX:!1,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise(function(i,s){e.viewResolver=i,e.viewRejector=s})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=_o(t),this.changed()}setState(t){this.state_=t,this.changed()}}function _o(n){return n?Array.isArray(n)?function(t){return n}:typeof n=="function"?n:function(t){return[n]}:null}const Ya=qu,qe=[0,0,0],fe=5;class Hu{constructor(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,Y(xl(this.resolutions_,(s,r)=>r-s,!0),"`resolutions` must be sorted in descending order");let e;if(!t.origins){for(let s=0,r=this.resolutions_.length-1;s{const o=new Wa(Math.min(0,s[0]),Math.max(s[0]-1,-1),Math.min(0,s[1]),Math.max(s[1]-1,-1));if(i){const a=this.getTileRangeForExtentAndZ(i,r);o.minX=Math.max(a.minX,o.minX),o.maxX=Math.min(a.maxX,o.maxX),o.minY=Math.max(a.minY,o.minY),o.maxY=Math.min(a.maxY,o.maxY)}return o}):i&&this.calculateTileRanges_(i)}forEachTileCoord(t,e,i){const s=this.getTileRangeForExtentAndZ(t,e);for(let r=s.minX,o=s.maxX;r<=o;++r)for(let a=s.minY,l=s.maxY;a<=l;++a)i([e,r,a])}forEachTileCoordParentTileRange(t,e,i,s){let r,o,a,l=null,h=t[0]-1;for(this.zoomFactor_===2?(o=t[1],a=t[2]):l=this.getTileCoordExtent(t,s);h>=this.minZoom;){if(o!==void 0&&a!==void 0?(o=Math.floor(o/2),a=Math.floor(a/2),r=je(o,o,a,a,i)):r=this.getTileRangeForExtentAndZ(l,h,i),e(h,r))return!0;--h}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,i){if(t[0]this.maxZoom||e0?i:Math.max(r/e[0],s/e[1]);const o=t+1,a=new Array(o);for(let l=0;li.highWaterMark&&(i.highWaterMark=t)}useTile(t,e,i,s){}}class id extends le{constructor(t,e){super(t),this.tile=e}}const nd=ed;function sd(n,t){const e=/\{z\}/g,i=/\{x\}/g,s=/\{y\}/g,r=/\{-y\}/g;return function(o,a,l){if(o)return n.replace(e,o[0].toString()).replace(i,o[1].toString()).replace(s,o[2].toString()).replace(r,function(){const h=o[0],c=t.getFullTileRange(h);if(!c)throw new Error("The {-y} placeholder requires a tile grid with extent");return(c.getHeight()-o[2]-1).toString()})}}function rd(n,t){const e=n.length,i=new Array(e);for(let s=0;sthis.getTileInternal(m,p,y,E,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return _.key=u,h?(_.interimTile=h,_.refreshInterimChain(),a.replace(c,_)):a.set(c,_),_}getTileInternal(t,e,i,s,r){let o=null;const a=$n(t,e,i),l=this.getKey();if(!this.tileCache.containsKey(a))o=this.createTile_(t,e,i,s,r,l),this.tileCache.set(a,o);else if(o=this.tileCache.get(a),o.key!=l){const h=o;o=this.createTile_(t,e,i,s,r,l),h.getState()==b.IDLE?o.interimTile=h.interimTile:o.interimTile=h,o.refreshInterimChain(),this.tileCache.replace(a,o)}return o}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(t,e){const i=vt(t);if(i){const s=j(i);s in this.tileGridForProjection||(this.tileGridForProjection[s]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}}function cd(n,t){n.getImage().src=t}const ud=hd;class dd extends ud{constructor(t){t=t||{};const e=t.projection!==void 0?t.projection:"EPSG:3857",i=t.tileGrid!==void 0?t.tileGrid:Qu({extent:yr(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}}const fd=dd,gd='© OpenStreetMap contributors.';class _d extends fd{constructor(t){t=t||{};let e;t.attributions!==void 0?e=t.attributions:e=[gd];const i=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",s=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:i,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,opaque:t.opaque!==void 0?t.opaque:!0,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:s,wrapX:t.wrapX,zDirection:t.zDirection})}}const md=_d;class xr extends Kt{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if(typeof t.getSimplifiedGeometry=="function"){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new xr(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const i=this.getStyle();return i&&t.setStyle(i),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(et(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=B(t,G.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?pd(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function pd(n){if(typeof n=="function")return n;let t;return Array.isArray(n)?t=n:(Y(typeof n.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),t=[n]),function(){return t}}const yd=xr;let vi=null;class Ed extends kn{constructor(t,e,i,s,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=r,this.imageState_=s===void 0?Q.IDLE:s,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===Q.LOADED){vi||(vi=pt(1,1,void 0,{willReadFrequently:!0})),vi.drawImage(this.image_,0,0);try{vi.getImageData(0,0,1,1),this.tainted_=!1}catch(t){vi=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(G.CHANGE)}handleImageError_(){this.imageState_=Q.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=Q.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],i=pt(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===Q.IDLE){this.image_||this.initializeImage_(),this.imageState_=Q.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch(t){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&Au(this.image_,this.src_).then(t=>{this.image_=t,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==Q.LOADED)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const s=i.getContext("2d");s.scale(t,t),s.drawImage(e,0,0),s.globalCompositeOperation="multiply",s.fillStyle=Qo(this.color_),s.fillRect(0,0,i.width/t,i.height/t),s.globalCompositeOperation="destination-in",s.drawImage(e,0,0),this.canvas_[t]=i}}function xd(n,t,e,i,s){let r=t===void 0?void 0:vn.get(t,e,s);return r||(r=new Ed(n,n instanceof HTMLImageElement?n.src||void 0:t,e,i,s),vn.set(t,e,s,r)),r}function mo(n,t,e,i){return e!==void 0&&i!==void 0?[e/n,i/t]:e!==void 0?e/n:i!==void 0?i/t:1}class Cr extends ba{constructor(t){t=t||{};const e=t.opacity!==void 0?t.opacity:1,i=t.rotation!==void 0?t.rotation:0,s=t.scale!==void 0?t.scale:1,r=t.rotateWithView!==void 0?t.rotateWithView:!1;super({opacity:e,rotation:i,scale:s,displacement:t.displacement!==void 0?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=t.anchor!==void 0?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=t.anchorOrigin!==void 0?t.anchorOrigin:"top-left",this.anchorXUnits_=t.anchorXUnits!==void 0?t.anchorXUnits:"fraction",this.anchorYUnits_=t.anchorYUnits!==void 0?t.anchorYUnits:"fraction",this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null;const o=t.img!==void 0?t.img:null;let a=t.src;Y(!(a!==void 0&&o),"`image` and `src` cannot be provided at the same time"),(a===void 0||a.length===0)&&o&&(a=o.src||j(o)),Y(a!==void 0&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),Y(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),"`width` or `height` cannot be provided together with `scale`");let l;if(t.src!==void 0?l=Q.IDLE:o!==void 0&&(o instanceof HTMLImageElement?o.complete?l=o.src?Q.LOADED:Q.IDLE:l=Q.LOADING:l=Q.LOADED),this.color_=t.color!==void 0?Tn(t.color):null,this.iconImage_=xd(o,a,this.crossOrigin_,l,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{const u=this.getImage(1);if(u.width&&u.height)h=u.width,c=u.height;else if(u instanceof HTMLImageElement){this.initialOptions_=t;const d=()=>{if(this.unlistenImageChange(d),!this.initialOptions_)return;const f=this.iconImage_.getSize();this.setScale(mo(f[0],f[1],t.width,t.height))};this.listenImageChange(d);return}}h!==void 0&&this.setScale(mo(h,c,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new Cr({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const s=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!s)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=s[0]),this.anchorYUnits_=="fraction"&&(t[1]*=s[1])}if(this.anchorOrigin_!="top-left"){if(!s)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+s[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+s[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if(this.offsetOrigin_!="top-left"){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=i[0]-e[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==Q.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){const t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==Q.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(G.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(G.CHANGE,t)}}const wr=Cr;function Cd(n,t,e,i,s){Ua(n,t,e||0,i||n.length-1,s||wd)}function Ua(n,t,e,i,s){for(;i>e;){if(i-e>600){var r=i-e+1,o=t-e+1,a=Math.log(r),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(r-l)/r)*(o-r/2<0?-1:1),c=Math.max(e,Math.floor(t-o*l/r+h)),u=Math.min(i,Math.floor(t+(r-o)*l/r+h));Ua(n,t,c,u,s)}var d=n[t],f=e,g=i;for(Ii(n,e,t),s(n[i],d)>0&&Ii(n,e,i);f0;)g--}s(n[e],d)===0?Ii(n,e,g):(g++,Ii(n,g,i)),g<=t&&(e=g+1),t<=g&&(i=g-1)}}function Ii(n,t,e){var i=n[t];n[t]=n[e],n[e]=i}function wd(n,t){return nt?1:0}let Ka=class{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const i=[];if(!xn(t,e))return i;const s=this.toBBox,r=[];for(;e;){for(let o=0;o=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)}_split(t,e){const i=t[e],s=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,s);const o=this._chooseSplitIndex(i,r,s),a=ii(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,He(i,this.toBBox),He(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)}_splitRoot(t,e){this.data=ii([t,e]),this.data.height=t.height+1,this.data.leaf=!1,He(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let s,r=1/0,o=1/0;for(let a=e;a<=i-e;a++){const l=Ai(t,0,a,this.toBBox),h=Ai(t,a,i,this.toBBox),c=Sd(l,h),u=_s(l)+_s(h);c=e;h--){const c=t.children[h];Li(a,t.leaf?r(c):c),l+=En(a)}return l}_adjustParentBBoxes(t,e,i){for(let s=i;s>=0;s--)Li(e[s],t)}_condense(t){for(let e=t.length-1,i;e>=0;e--)t[e].children.length===0?e>0?(i=t[e-1].children,i.splice(i.indexOf(t[e]),1)):this.clear():He(t[e],this.toBBox)}};function Rd(n,t,e){if(!e)return t.indexOf(n);for(let i=0;i=n.minX&&t.maxY>=n.minY}function ii(n){return{children:n,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function po(n,t,e,i,s){const r=[t,e];for(;r.length;){if(e=r.pop(),t=r.pop(),e-t<=i)continue;const o=t+Math.ceil((e-t)/i/2)*i;Cd(n,o,t,e,s),r.push(t,o,o,e)}}class Ad{constructor(t){this.rbush_=new Ka(t),this.items_={}}insert(t,e){const i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[j(e)]=i}load(t,e){const i=new Array(e.length);for(let s=0,r=e.length;s1?o:2,r=r||new Array(o);for(let c=0;c{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const i=this.simplifiedGeometry_.getFlatCoordinates();let s;switch(this.type_){case"LineString":i.length=ir(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,i,0),s=[i.length];break;case"MultiLineString":s=[],i.length=Wh(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,i,0,s);break;case"Polygon":s=[],i.length=_a(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),i,0,s);break}return s&&(this.simplifiedGeometry_=new mi(this.type_,i,s,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_}),this}}mi.prototype.getFlatCoordinates=mi.prototype.getOrientedFlatCoordinates;const Pe=mi,Gt={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function bd(n,t){return[[-1/0,-1/0,1/0,1/0]]}let Pd=!1;function Od(n,t,e,i,s,r,o){const a=new XMLHttpRequest;a.open("GET",typeof n=="function"?n(e,i,s):n,!0),t.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=Pd,a.onload=function(l){if(!a.status||a.status>=200&&a.status<300){const h=t.getType();let c;h=="json"?c=JSON.parse(a.responseText):h=="text"?c=a.responseText:h=="xml"?(c=a.responseXML,c||(c=new DOMParser().parseFromString(a.responseText,"application/xml"))):h=="arraybuffer"&&(c=a.response),c?r(t.readFeatures(c,{extent:e,featureProjection:s}),t.readProjection(c)):o()}else o()},a.onerror=o,a.send()}function Co(n,t){return function(e,i,s,r,o){const a=this;Od(n,t,e,i,s,function(l,h){a.addFeatures(l),r!==void 0&&r(l)},o||di)}}class ge extends le{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class Dd extends Ya{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:t.wrapX!==void 0?t.wrapX:!0}),this.on,this.once,this.un,this.loader_=di,this.format_=t.format,this.overlaps_=t.overlaps===void 0?!0:t.overlaps,this.url_=t.url,t.loader!==void 0?this.loader_=t.loader:this.url_!==void 0&&(Y(this.format_,"`format` must be set when `url` is set"),this.loader_=Co(this.url_,this.format_)),this.strategy_=t.strategy!==void 0?t.strategy:bd;const e=t.useSpatialIndex!==void 0?t.useSpatialIndex:!0;this.featuresRtree_=e?new yo:null,this.loadedExtentsRtree_=new yo,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let i,s;Array.isArray(t.features)?s=t.features:t.features&&(i=t.features,s=i.getArray()),!e&&i===void 0&&(i=new Vt(s)),s!==void 0&&this.addFeaturesInternal(s),i!==void 0&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=j(t);if(!this.addToIndex_(e,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const s=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(s,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new ge(Gt.ADDFEATURE,t))}setupChangeEvents_(t,e){e instanceof Pe||(this.featureChangeKeys_[t]=[B(e,G.CHANGE,this.handleFeatureChange_,this),B(e,ui.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(e.getId()!==void 0){const s=String(e.getId());if(!(s in this.idIndex_))this.idIndex_[s]=e;else if(e instanceof Pe){const r=this.idIndex_[s];r instanceof Pe?Array.isArray(r)?r.push(e):this.idIndex_[s]=[r,e]:i=!1}else i=!1}return i&&(Y(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],s=[];for(let r=0,o=t.length;r{e||(e=!0,this.addFeature(i.element),e=!1)}),t.addEventListener(Ct.REMOVE,i=>{e||(e=!0,this.removeFeature(i.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(const i in this.featureChangeKeys_)this.featureChangeKeys_[i].forEach(et);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const i=s=>{this.removeFeatureInternal(s)};this.featuresRtree_.forEach(i);for(const s in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[s])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new ge(Gt.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(s){const r=s.getGeometry();if(r instanceof Pe||r.intersectsCoordinate(t))return e(s)})}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,function(i){const s=i.getGeometry();if(s instanceof Pe||s.intersectsExtent(t)){const r=e(i);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),fi(this.nullGeometryFeatures_)||Xs(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,function(i){e.push(i)}),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const s=Wl(t,e);return[].concat(...s.map(r=>this.featuresRtree_.getInExtent(r)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],s=t[1];let r=null;const o=[NaN,NaN];let a=1/0;const l=[-1/0,-1/0,1/0,1/0];return e=e||Di,this.featuresRtree_.forEachInExtent(l,function(h){if(e(h)){const c=h.getGeometry(),u=a;if(a=c instanceof Pe?0:c.closestPointXY(i,s,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new ge(Gt.FEATURESLOADEND,void 0,c))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new ge(Gt.FEATURESLOADERROR))}),s.insert(l,{extent:l.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let i;e.forEachInExtent(t,function(s){if(Fi(s.extent,t))return i=s,!0}),i&&e.remove(i)}removeFeature(t){if(!t)return;const e=j(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=j(t),i=this.featureChangeKeys_[e];if(!i)return;i.forEach(et),delete this.featureChangeKeys_[e];const s=t.getId();return s!==void 0&&delete this.idIndex_[s.toString()],delete this.uidIndex_[e],this.dispatchEvent(new ge(Gt.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let e=!1;for(const i in this.idIndex_){const s=this.idIndex_[i];if(t instanceof Pe&&Array.isArray(s)&&s.includes(t))s.splice(s.indexOf(t),1);else if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}}return e}setLoader(t){this.loader_=t}setUrl(t){Y(this.format_,"`format` must be set when `url` is set"),this.url_=t,this.setLoader(Co(t,this.format_))}}const Fd=Dd;let yi=0;const Ei=0,st=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette"},Xd={[R.Get]:F(([n,t])=>t!==void 0?Wd(t.value):xt,W(1,2),zd),[R.Var]:F(([n])=>n.type,W(1,1),Yd),[R.Id]:F(M|Wt,Si,Vd),[R.Concat]:F(Wt,W(2,1/0),K(xt)),[R.GeometryType]:F(Wt,Si),[R.Resolution]:F(M,Si),[R.Zoom]:F(M,Si),[R.Time]:F(M,Si),[R.Any]:F(st,W(2,1/0),K(st)),[R.All]:F(st,W(2,1/0),K(st)),[R.Not]:F(st,W(1,1),K(st)),[R.Equal]:F(st,W(2,2),K(xt),Oe),[R.NotEqual]:F(st,W(2,2),K(xt),Oe),[R.GreaterThan]:F(st,W(2,2),K(xt),Oe),[R.GreaterThanOrEqualTo]:F(st,W(2,2),K(xt),Oe),[R.LessThan]:F(st,W(2,2),K(xt),Oe),[R.LessThanOrEqualTo]:F(st,W(2,2),K(xt),Oe),[R.Multiply]:F(n=>{let t=M|ft;for(let e=0;e{let t=xt;for(let e=2;e{let t=ft|M;for(let e=3;e{let t=xt;for(let e=1;en.length===3||n.length===4?Ie|ft:Ie,W(1,1/0),K(M)),[R.Color]:F(ft,W(3,4),K(M)),[R.Band]:F(M,W(1,3),K(M)),[R.Palette]:F(ft,W(2,2),qd)};function zd(n,t){const e=q(n[1],t);if(!(e instanceof Ce))throw new Error("Expected a literal argument for get operation");if(typeof e.value!="string")throw new Error("Expected a string argument for get operation");if(t.properties.add(e.value),n.length===3){const i=q(n[2],t);return[e,i]}return[e]}function Yd(n,t,e,i){const s=n[1];if(typeof s!="string")throw new Error("Expected a string argument for var operation");if(t.variables.add(s),!("variables"in t.style)||t.style.variables[s]===void 0)return[new Ce(xt,s)];const r=t.style.variables[s],o=q(r,t);if(o.value=s,i&&!Ut(i,o.type))throw new Error("The variable ".concat(s," has type ").concat(gt(o.type)," but the following type was expected: ").concat(gt(i)));return[o]}function Vd(n,t){t.featureId=!0}function Si(n,t){const e=n[0];if(n.length!==1)throw new Error("Expected no arguments for ".concat(e," operation"));return[]}function W(n,t){return function(e,i){const s=e[0],r=e.length-1;if(n===t){if(r!==n){const o=n===1?"":"s";throw new Error("Expected ".concat(n," argument").concat(o," for ").concat(s,", got ").concat(r))}}else if(rt){const o=t===1/0?"".concat(n," or more"):"".concat(n," to ").concat(t);throw new Error("Expected ".concat(o," arguments for ").concat(s,", got ").concat(r))}}}function K(n){return function(t,e){const i=t[0],s=t.length-1,r=new Array(s);for(let o=0;oi.featureId;case R.Concat:{const i=n.args.map(s=>ae(s));return s=>"".concat(...i.map(r=>r(s).toString()))}case R.Resolution:return i=>i.resolution;case R.Any:case R.All:case R.Not:return tf(n);case R.Equal:case R.NotEqual:case R.LessThan:case R.LessThanOrEqualTo:case R.GreaterThan:case R.GreaterThanOrEqualTo:return Qd(n);case R.Multiply:case R.Divide:case R.Add:case R.Subtract:case R.Clamp:case R.Mod:case R.Pow:case R.Abs:case R.Floor:case R.Ceil:case R.Round:case R.Sin:case R.Cos:case R.Atan:case R.Sqrt:return ef(n);case R.Match:return nf(n);case R.Interpolate:return sf(n);default:throw new Error("Unsupported operator ".concat(e))}}function $d(n,t){const e=n.operator,i=n.args.length,s=new Array(i);for(let r=0;r{for(let o=0;os.properties[i];case R.Var:return s=>s.variables[i];default:throw new Error("Unsupported accessor operator ".concat(n.operator))}}function Qd(n,t){const e=n.operator,i=ae(n.args[0]),s=ae(n.args[1]);switch(e){case R.Equal:return r=>i(r)===s(r);case R.NotEqual:return r=>i(r)!==s(r);case R.LessThan:return r=>i(r)i(r)<=s(r);case R.GreaterThan:return r=>i(r)>s(r);case R.GreaterThanOrEqualTo:return r=>i(r)>=s(r);default:throw new Error("Unsupported comparison operator ".concat(e))}}function tf(n,t){const e=n.operator,i=n.args.length,s=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o!s[0](r);default:throw new Error("Unsupported logical operator ".concat(e))}}function ef(n,t){const e=n.operator,i=n.args.length,s=new Array(i);for(let r=0;r{let o=1;for(let a=0;as[0](r)/s[1](r);case R.Add:return r=>{let o=0;for(let a=0;as[0](r)-s[1](r);case R.Clamp:return r=>{const o=s[0](r),a=s[1](r);if(ol?l:o};case R.Mod:return r=>s[0](r)%s[1](r);case R.Pow:return r=>Math.pow(s[0](r),s[1](r));case R.Abs:return r=>Math.abs(s[0](r));case R.Floor:return r=>Math.floor(s[0](r));case R.Ceil:return r=>Math.ceil(s[0](r));case R.Round:return r=>Math.round(s[0](r));case R.Sin:return r=>Math.sin(s[0](r));case R.Cos:return r=>Math.cos(s[0](r));case R.Atan:return i===2?r=>Math.atan2(s[0](r),s[1](r)):r=>Math.atan(s[0](r));case R.Sqrt:return r=>Math.sqrt(s[0](r));default:throw new Error("Unsupported numeric operator ".concat(e))}}function nf(n,t){const e=n.args.length,i=new Array(e);for(let s=0;s{const r=i[0](s);for(let o=1;o{const r=i[0](s),o=i[1](s);let a,l;for(let h=2;h=o)return h===2?u:d?rf(r,o,a,l,c,u):Mi(r,o,a,l,c,u);a=c,l=u}return l}}function Mi(n,t,e,i,s,r){const o=s-e;if(o===0)return i;const a=t-e,l=n===1?a/o:(Math.pow(n,a)-1)/(Math.pow(n,o)-1);return i+l*(r-i)}function rf(n,t,e,i,s,r){if(s-e===0)return i;const a=Nr(i),l=Nr(r);let h=l[2]-a[2];h>180?h-=360:h<-180&&(h+=360);const c=[Mi(n,t,e,a[0],s,l[0]),Mi(n,t,e,a[1],s,l[1]),a[2]+Mi(n,t,e,0,s,h),Mi(n,t,e,i[3],s,r[3])];return ta(jl(c))}function of(n){return!0}function af(n){const t=qa(),e=lf(n,t),i=Ha();return function(s,r){if(i.properties=s.getPropertiesInternal(),i.resolution=r,t.featureId){const o=s.getId();o!==void 0?i.featureId=o:i.featureId=null}return e(i)}}function Ro(n){const t=qa(),e=n.length,i=new Array(e);for(let o=0;o4)throw new Error("Expected a color with 3 or 4 values for ".concat(t));return e}function yf(n,t){if(typeof n=="number")return n;const e=Qi(n,t);if(e.length!==2)throw new Error("Expected an array of two numbers for ".concat(t));return e}const Io={RENDER_ORDER:"renderOrder"};class Ef extends Zn{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter!==void 0?t.declutter:!1,this.renderBuffer_=t.renderBuffer!==void 0?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=t.updateWhileAnimating!==void 0?t.updateWhileAnimating:!1,this.updateWhileInteracting_=t.updateWhileInteracting!==void 0?t.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(Io.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new Ka(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(Io.RENDER_ORDER,t)}setStyle(t){this.style_=xf(t),this.styleFunction_=t===null?void 0:mu(this.style_),this.changed()}}function xf(n){if(n===void 0)return pu;if(!n)return null;if(typeof n=="function"||n instanceof Oi)return n;if(!Array.isArray(n))return Ro([n]);if(n.length===0)return[];const t=n.length,e=n[0];if(e instanceof Oi){const s=new Array(t);for(let r=0;ra&&(this.instructions.push([O.CUSTOM,a,h,t,i,ri]),this.hitDetectionInstructions.push([O.CUSTOM,a,h,t,s||i,ri]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),h=this.coordinates.length,this.instructions.push([O.CUSTOM,a,h,t,i]),this.hitDetectionInstructions.push([O.CUSTOM,a,h,t,s||i]);break}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[O.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[O.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;t.reverse();let e;const i=t.length;let s,r,o=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(t){const e=t.fillStyle,i=[O.SET_FILL_STYLE,e];return typeof e!="string"&&i.push(!0),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[O.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){const i=t.strokeStyle,s=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,l=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=s||r!=t.currentLineDash&&!Se(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h)&&(i!==void 0&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=s,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=l,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[O.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Zo(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;Vs(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}const en=Rf;class Tf extends en{constructor(t,e,i,s){super(t,e,i,s),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,s);this.instructions.push([O.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([O.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,s);this.instructions.push([O.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([O.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){const i=t.getAnchor(),s=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=s[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=s[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}const vf=Tf;class If extends en{constructor(t,e,i,s){super(t,e,i,s)}drawFlatCoordinates_(t,e,i,s){const r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,s,!1,!1),a=[O.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),i}drawLineString(t,e){const i=this.state,s=i.strokeStyle,r=i.lineWidth;if(s===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([O.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,ne,se],Ge);const o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(we),this.endGeometry(e)}drawMultiLineString(t,e){const i=this.state,s=i.strokeStyle,r=i.lineWidth;if(s===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([O.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,ne,se],Ge);const o=t.getEnds(),a=t.getFlatCoordinates(),l=t.getStride();let h=0;for(let c=0,u=o.length;c=n){const g=(n-a+f)/f,_=Ot(h,u,g),m=Ot(c,d,g);l.push(_,m),r.push(l),l=[_,m],a==n&&(o+=s),a=0}else if(a0&&r.push(l),r}function Mf(n,t,e,i,s){let r=e,o=e,a=0,l=0,h=e,c,u,d,f,g,_,m,p,y,E;for(u=e;un&&(l>a&&(a=l,r=h,o=u),l=0,h=u-s)),d=f,m=y,p=E),g=x,_=C}return l+=f,l>a?[h,u]:[r,o]}const Dn={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class bf extends en{constructor(t,e,i,s){super(t,e,i,s),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[wt]={fillStyle:wt},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e){const i=this.textFillState_,s=this.textStrokeState_,r=this.textState_;if(this.text_===""||!r||!i&&!s)return;const o=this.coordinates;let a=o.length;const l=t.getType();let h=null,c=t.getStride();if(r.placement==="line"&&(l=="LineString"||l=="MultiLineString"||l=="Polygon"||l=="MultiPolygon")){if(!Rt(this.getBufferedMaxExtent(),t.getExtent()))return;let u;if(h=t.getFlatCoordinates(),l=="LineString")u=[h.length];else if(l=="MultiLineString")u=t.getEnds();else if(l=="Polygon")u=t.getEnds().slice(0,1);else if(l=="MultiPolygon"){const _=t.getEndss();u=[];for(let m=0,p=_.length;m{const x=o[(p+E)*2]===h[E*c]&&o[(p+E)*2+1]===h[E*c+1];return x||--p,x})}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let f=r.padding;if(f!=Ne&&(r.scale[0]<0||r.scale[1]<0)){let p=r.padding[0],y=r.padding[1],E=r.padding[2],x=r.padding[3];r.scale[0]<0&&(y=-y,x=-x),r.scale[1]<0&&(p=-p,E=-E),f=[p,y,E,x]}const g=this.pixelRatio;this.instructions.push([O.DRAW_IMAGE,a,d,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,f==Ne?Ne:f.map(function(p){return p*g}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]);const _=1/g,m=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=wt,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([O.DRAW_IMAGE,a,d,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[_,_],NaN,void 0,this.declutterImageWithText_,f,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?wt:this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]),r.backgroundFill&&(this.state.fillStyle=m,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,s=this.strokeKey_;t&&(s in this.strokeStates||(this.strokeStates[s]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||Yi,justify:e.justify,textBaseline:e.textBaseline||Mn,scale:e.scale});const o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,s=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const l=this.pixelRatio,h=Dn[s.textBaseline],c=this.textOffsetY_*l,u=this.text_,d=i?i.lineWidth*Math.abs(s.scale[0])/2:0;this.instructions.push([O.DRAW_CHARS,t,e,h,s.overflow,a,s.maxAngle,l,c,r,d*l,u,o,1]),this.hitDetectionInstructions.push([O.DRAW_CHARS,t,e,h,s.overflow,a&&wt,s.maxAngle,l,c,r,d*l,u,o,1/l])}setTextStyle(t,e){let i,s,r;if(!t)this.text_="";else{const o=t.getFill();o?(s=this.textFillState_,s||(s={},this.textFillState_=s),s.fillStyle=Zt(o.getColor()||wt)):(s=null,this.textFillState_=s);const a=t.getStroke();if(!a)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const g=a.getLineDash(),_=a.getLineDashOffset(),m=a.getWidth(),p=a.getMiterLimit();r.lineCap=a.getLineCap()||gi,r.lineDash=g?g.slice():ne,r.lineDashOffset=_===void 0?se:_,r.lineJoin=a.getLineJoin()||_i,r.lineWidth=m===void 0?Vi:m,r.miterLimit=p===void 0?Xi:p,r.strokeStyle=Zt(a.getColor()||zi)}i=this.textState_;const l=t.getFont()||Ra;lc(l);const h=t.getScaleArray();i.overflow=t.getOverflow(),i.font=l,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||Mn,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||Ne,i.scale=h===void 0?[1,1]:h;const c=t.getOffsetX(),u=t.getOffsetY(),d=t.getRotateWithView(),f=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=u===void 0?0:u,this.textRotateWithView_=d===void 0?!1:d,this.textRotation_=f===void 0?0:f,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:j(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=s?typeof s.fillStyle=="string"?s.fillStyle:"|"+j(s.fillStyle):""}this.declutterImageWithText_=e}}const Pf={Circle:Ao,Default:en,Image:vf,LineString:Sf,Polygon:Ao,Text:bf};class Of{constructor(t,e,i,s){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=s,this.resolution_=i,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const i=this.buildersByZIndex_[e];for(const s in i){const r=i[s].finish();t[e][s]=r}}return t}getBuilder(t,e){const i=t!==void 0?t.toString():"0";let s=this.buildersByZIndex_[i];s===void 0&&(s={},this.buildersByZIndex_[i]=s);let r=s[e];if(r===void 0){const o=Pf[e];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),s[e]=r}return r}}const Lo=Of;function Df(n,t,e,i,s,r,o,a,l,h,c,u){let d=n[t],f=n[t+1],g=0,_=0,m=0,p=0;function y(){g=d,_=f,t+=i,d=n[t],f=n[t+1],p+=m,m=Math.sqrt((d-g)*(d-g)+(f-_)*(f-_))}do y();while(tA[2]}else X=x>P;const U=Math.PI,N=[],nt=w+i===t;t=w,m=0,p=I,d=n[t],f=n[t+1];let k;if(nt){y(),k=Math.atan2(f-_,d-g),X&&(k+=k>0?-U:U);const A=(P+x)/2,S=(D+C)/2;return N[0]=[A,S,(v-r)/2,k,s],N}s=s.replace(/\n/g," ");for(let A=0,S=s.length;A0?-U:U),k!==void 0){let z=L-k;if(z+=z>U?-2*U:z<-U?2*U:0,Math.abs(z)>o)return null}k=L;const V=A;let H=0;for(;A0&&n.push("\n",""),n.push(t,""),n}class kf{constructor(t,e,i,s){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=s.instructions,this.coordinates=s.coordinates,this.coordinateCache_={},this.renderedTransform_=Xt(),this.hitDetectionInstructions=s.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=s.fillStates||{},this.strokeStates=s.strokeStates||{},this.textStates=s.textStates||{},this.widths_={},this.labels_={}}createLabel(t,e,i,s){const r=t+e+i+s;if(this.labels_[r])return this.labels_[r];const o=s?this.strokeStates[s]:null,a=i?this.fillStates[i]:null,l=this.textStates[e],h=this.pixelRatio,c=[l.scale[0]*h,l.scale[1]*h],u=Array.isArray(t),d=l.justify?Dn[l.justify]:ps(Array.isArray(t)?t[0]:t,l.textAlign||Yi),f=s&&o.lineWidth?o.lineWidth:0,g=u?t:t.split("\n").reduce(Ff,[]),{width:_,height:m,widths:p,heights:y,lineWidths:E}=cc(l,g),x=_+f,C=[],w=(x+2)*c[0],I=(m+f)*c[1],v={width:w<0?Math.floor(w):Math.ceil(w),height:I<0?Math.floor(I):Math.ceil(I),contextInstructions:C};(c[0]!=1||c[1]!=1)&&C.push("scale",c),s&&(C.push("strokeStyle",o.strokeStyle),C.push("lineWidth",f),C.push("lineCap",o.lineCap),C.push("lineJoin",o.lineJoin),C.push("miterLimit",o.miterLimit),C.push("setLineDash",[o.lineDash]),C.push("lineDashOffset",o.lineDashOffset)),i&&C.push("fillStyle",a.fillStyle),C.push("textBaseline","middle"),C.push("textAlign","center");const P=.5-d;let D=d*x+P*f;const X=[],U=[];let N=0,nt=0,k=0,A=0,S;for(let L=0,V=g.length;Lt?t-h:r,x=o+c>e?e-c:o,C=g[3]+E*d[0]+g[1],w=g[0]+x*d[1]+g[2],I=p-g[3],v=y-g[0];(_||u!==0)&&(_e[0]=I,me[0]=I,_e[1]=v,Qt[1]=v,Qt[0]=I+C,te[0]=Qt[0],te[1]=v+w,me[1]=te[1]);let P;return u!==0?(P=re(Xt(),i,s,1,1,u,-i,-s),at(P,_e),at(P,Qt),at(P,te),at(P,me),oe(Math.min(_e[0],Qt[0],te[0],me[0]),Math.min(_e[1],Qt[1],te[1],me[1]),Math.max(_e[0],Qt[0],te[0],me[0]),Math.max(_e[1],Qt[1],te[1],me[1]),$e)):oe(Math.min(I,I+C),Math.min(v,v+w),Math.max(I,I+C),Math.max(v,v+w),$e),f&&(p=Math.round(p),y=Math.round(y)),{drawImageX:p,drawImageY:y,drawImageW:E,drawImageH:x,originX:h,originY:c,declutterBox:{minX:$e[0],minY:$e[1],maxX:$e[2],maxY:$e[3],value:m},canvasTransform:P,scale:d}}replayImageOrLabel_(t,e,i,s,r,o,a){const l=!!(o||a),h=s.declutterBox,c=t.canvas,u=a?a[2]*s.scale[0]/2:0;return h.minX-u<=c.width/e&&h.maxX+u>=0&&h.minY-u<=c.height/e&&h.maxY+u>=0&&(l&&this.replayTextBackground_(t,_e,Qt,te,me,o,a),uc(t,s.canvasTransform,r,i,s.originX,s.originY,s.drawImageW,s.drawImageH,s.drawImageX,s.drawImageY,s.scale)),!0}fill_(t){if(this.alignFill_){const e=at(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,s){const r=this.textStates[e],o=this.createLabel(t,e,s,i),a=this.strokeStates[i],l=this.pixelRatio,h=ps(Array.isArray(t)?t[0]:t,r.textAlign||Yi),c=Dn[r.textBaseline||Mn],u=a&&a.lineWidth?a.lineWidth:0,d=o.width/l-2*r.scale[0],f=h*d+2*(.5-h)*u,g=c*o.height/l+2*(.5-c)*u;return{label:o,anchorX:f,anchorY:g}}execute_(t,e,i,s,r,o,a,l){let h;this.pixelCoordinates_&&Se(i,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=Re(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Ml(this.renderedTransform_,i));let c=0;const u=s.length;let d=0,f,g,_,m,p,y,E,x,C,w,I,v,P=0,D=0,X=null,U=null;const N=this.coordinateCache_,nt=this.viewRotation_,k=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,A={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:nt},S=this.instructions!=s||this.overlaps?0:200;let L,V,H,ct;for(;cS&&(this.fill_(t),P=0),D>S&&(t.stroke(),D=0),!P&&!D&&(t.beginPath(),m=NaN,p=NaN),++c;break;case O.CIRCLE:d=T[1];const z=h[d],J=h[d+1],he=h[d+2],_t=h[d+3],jt=he-z,qt=_t-J,ze=Math.sqrt(jt*jt+qt*qt);t.moveTo(z+ze,J),t.arc(z,J,ze,0,2*Math.PI,!0),++c;break;case O.CLOSE_PATH:t.closePath(),++c;break;case O.CUSTOM:d=T[1],f=T[2];const nn=T[3],Ye=T[4],sn=T.length==6?T[5]:void 0;A.geometry=nn,A.feature=L,c in N||(N[c]=[]);const ce=N[c];sn?sn(h,d,f,2,ce):(ce[0]=h[d],ce[1]=h[d+1],ce.length=2),Ye(ce,A),++c;break;case O.DRAW_IMAGE:d=T[1],f=T[2],x=T[3],g=T[4],_=T[5];let xi=T[6];const ue=T[7],rn=T[8],on=T[9],an=T[10];let Ve=T[11];const ts=T[12];let yt=T[13];const Mt=T[14],kt=T[15];if(!x&&T.length>=20){C=T[19],w=T[20],I=T[21],v=T[22];const It=this.drawLabelWithPointPlacement_(C,w,I,v);x=It.label,T[3]=x;const Ue=T[23];g=(It.anchorX-Ue)*this.pixelRatio,T[4]=g;const bt=T[24];_=(It.anchorY-bt)*this.pixelRatio,T[5]=_,xi=x.height,T[6]=xi,yt=x.width,T[13]=yt}let Ht;T.length>25&&(Ht=T[25]);let Ze,Le,de;T.length>17?(Ze=T[16],Le=T[17],de=T[18]):(Ze=Ne,Le=!1,de=!1),an&&k?Ve+=nt:!an&&!k&&(Ve-=nt);let Be=0;for(;d0){if(!o||f!=="Image"&&f!=="Text"||o.includes(C)){const D=(d[v]-3)/4,X=s-D%a,U=s-(D/a|0),N=r(C,w,X*X+U*U);if(N)return N}c.clearRect(0,0,a,a);break}}const _=Object.keys(this.executorsByZIndex_).map(Number);_.sort(Te);let m,p,y,E,x;for(m=_.length-1;m>=0;--m){const C=_[m].toString();for(y=this.executorsByZIndex_[C],p=ys.length-1;p>=0;--p)if(f=ys[p],E=y[f],E!==void 0&&(x=E.executeHitDetection(c,l,i,g,u),x))return x}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],s=e[1],r=e[2],o=e[3],a=[i,s,i,o,r,o,r,s];return Re(a,0,8,2,t,a),a}isEmpty(){return fi(this.executorsByZIndex_)}execute(t,e,i,s,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(Te),this.maxExtent_&&(t.save(),this.clip(t,i)),o=o||ys;let h,c,u,d,f,g;for(a&&l.reverse(),h=0,c=l.length;he)break;let l=i[a];l||(l=[],i[a]=l),l.push(((n+r)*t+(n+o))*4+3),r>0&&l.push(((n-r)*t+(n+o))*4+3),o>0&&(l.push(((n+r)*t+(n-o))*4+3),r>0&&l.push(((n-r)*t+(n-o))*4+3))}const s=[];for(let r=0,o=i.length;ru*this.pixelRatio_),lineDashOffset:(o||se)*this.pixelRatio_,lineJoin:a!==void 0?a:_i,lineWidth:(l!==void 0?l:Vi)*this.pixelRatio_,miterLimit:h!==void 0?h:Xi,strokeStyle:Zt(i||zi)}}}setImageStyle(t){let e;if(!t||!(e=t.getSize())){this.image_=null;return}const i=t.getPixelRatio(this.pixelRatio_),s=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=s[0]*i,this.imageAnchorY_=s[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/i,o[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(!t)this.text_="";else{const e=t.getFill();if(!e)this.textFillState_=null;else{const f=e.getColor();this.textFillState_={fillStyle:Zt(f||wt)}}const i=t.getStroke();if(!i)this.textStrokeState_=null;else{const f=i.getColor(),g=i.getLineCap(),_=i.getLineDash(),m=i.getLineDashOffset(),p=i.getLineJoin(),y=i.getWidth(),E=i.getMiterLimit();this.textStrokeState_={lineCap:g!==void 0?g:gi,lineDash:_||ne,lineDashOffset:m||se,lineJoin:p!==void 0?p:_i,lineWidth:y!==void 0?y:Vi,miterLimit:E!==void 0?E:Xi,strokeStyle:Zt(f||zi)}}const s=t.getFont(),r=t.getOffsetX(),o=t.getOffsetY(),a=t.getRotateWithView(),l=t.getRotation(),h=t.getScaleArray(),c=t.getText(),u=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:s!==void 0?s:Ra,textAlign:u!==void 0?u:Yi,textBaseline:d!==void 0?d:Mn},this.text_=c!==void 0?Array.isArray(c)?c.reduce((f,g,_)=>f+=_%2?" ":g,""):c:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=o!==void 0?this.pixelRatio_*o:0,this.textRotateWithView_=a!==void 0?a:!1,this.textRotation_=l!==void 0?l:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}}}const zf=Xf,Yt=.5;function Yf(n,t,e,i,s,r,o){const a=n[0]*Yt,l=n[1]*Yt,h=pt(a,l);h.imageSmoothingEnabled=!1;const c=h.canvas,u=new zf(h,Yt,s,null,o),d=e.length,f=Math.floor((256*256*256-1)/d),g={};for(let m=1;m<=d;++m){const p=e[m-1],y=p.getStyleFunction()||i;if(!y)continue;let E=y(p,r);if(!E)continue;Array.isArray(E)||(E=[E]);const C=(m*f).toString(16).padStart(7,"#00000");for(let w=0,I=E.length;w{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const i=[this.context.canvas.width,this.context.canvas.height];at(this.pixelTransform,i);const s=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,l=this.wrappedRenderedExtent_,h=this.getLayer(),c=[],u=i[0]*Yt,d=i[1]*Yt;c.push(this.getRenderTransform(s,r,o,Yt,u,d,0).slice());const f=h.getSource(),g=a.getExtent();if(f.getWrapX()&&a.canWrapX()&&!ni(g,l)){let _=l[0];const m=tt(g);let p=0,y;for(;_g[2];)++p,y=m*p,c.push(this.getRenderTransform(s,r,o,Yt,u,d,y).slice()),_-=m}this.hitDetectionImageData_=Yf(i,c,this.renderedFeatures_,h.getStyleFunction(),l,r,o)}e(Vf(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,i,s,r){if(!this.replayGroup_)return;const o=e.viewState.resolution,a=e.viewState.rotation,l=this.getLayer(),h={},c=function(f,g,_){const m=j(f),p=h[m];if(p){if(p!==!0&&_u=f.forEachFeatureAtCoordinate(t,o,a,i,c,f===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(g=>g.value):null)),u}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const s=t.viewHints[dt.ANIMATING],r=t.viewHints[dt.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&s||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=t.extent,h=t.viewState,c=h.projection,u=h.resolution,d=t.pixelRatio,f=e.getRevision(),g=e.getRenderBuffer();let _=e.getRenderOrder();_===void 0&&(_=Bf);const m=h.center.slice(),p=Vs(l,g*u),y=p.slice(),E=[p.slice()],x=c.getExtent();if(i.getWrapX()&&c.canWrapX()&&!ni(x,t.extent)){const A=tt(x),S=Math.max(tt(p)/2,A);p[0]=x[0]-S,p[2]=x[2]+S,sa(m,c);const L=$o(E[0],c);L[0]x[0]&&L[2]>x[2]&&E.push([L[0]-A,L[1],L[2]-A,L[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==f&&this.renderedRenderOrder_==_&&ni(this.wrappedRenderedExtent_,p))return Se(this.renderedExtent_,y)||(this.hitDetectionImageData_=null,this.renderedExtent_=y),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const C=new Lo(ks(u,d),p,u,d);let w;this.getLayer().getDeclutter()&&(w=new Lo(ks(u,d),p,u,d));const I=ha();let v;if(I){for(let A=0,S=E.length;A{let S;const L=A.getStyleFunction()||e.getStyleFunction();if(L&&(S=L(A,u)),S){const V=this.renderFeature(A,P,S,C,v,w);D=D&&!V}},U=As(p,c),N=i.getFeaturesInExtent(U);_&&N.sort(_);for(let A=0,S=N.length;A{this.addMarker(e)}),n.length!=0){var t=void 0;n.forEach(e=>{console.log(e);const i=e.bbox;t===void 0?t=i:i!==void 0&&jo(t,i)}),this.view.fit(t),this.view.setZoom(this.view.getZoom()*.9)}}},mounted(){Br(),this.mainMap=new _u({layers:[new Yu({source:new md})],target:"map-element"}),this.mainMap.setView(this.view);const n=new rg;n.setSource(this.markers),this.mainMap.addLayer(n),this.mainMap.on("click",this.onMapClick);const t=document.createElement("div");t.className="ol-control ol-unselectable locate-control",t.innerHTML='';const e=this;t.addEventListener("click",function(){e.geolocate()}),this.mainMap.addControl(new jn({element:t}))},methods:{async geolocate(){console.log("TODO")},addMarker(n,t){const e=t||n.geometry.coordinates,i=this.displayName(n),s=this.createMarker(e,i,n);this.markers.addFeature(s)},createMarker(n,t,e=void 0){const i=new yd(new pa(n));i.set("meta",e);const s=new Oi({image:new wr({anchor:[.5,0],anchorXUnits:"fraction",anchorYUnits:"pixels",anchorOrigin:"bottom-left",size:[60,97],scale:.45,opacity:1,src:og}),text:new Da({offsetY:10,text:t,scale:1.5,fill:new qn({color:"#fff"}),stroke:new mr({color:"0",width:2})})});return i.setStyle(s),i},displayName(n,t=!1){const e=n.properties;if(!e)return"";if(!e.address){if(e.name&&!t)return e.name;if(e.display_name)return e.display_name}let i="";if(e.addresstype&&e.address[e.addresstype]&&(i=e.address[e.addresstype]),i&&!t)return i;let s="";e.address.road&&(s=e.address.road),e.address.house_number&&(s+=" "+e.address.house_number);let r="";e.address.postcode&&(r=e.address.postcode),e.address.city?r+=" "+e.address.city:e.address.town?r+=" "+e.address.town:e.address.village&&(r+=" "+e.address.village);let o=s+", "+r;return i?i+", "+o:o},nominatimReverseRequest(n){const t=n[0],e=n[1],i={lon:t,lat:e,format:"geojson",limit:1},r="https://nominatim.openstreetmap.org/reverse?"+Object.keys(i).map(function(o){return encodeURIComponent(o)+"="+encodeURIComponent(i[o])}).join("&");return console.log("URL Request NOMINATIM-Reverse: "+r),fetch(r).then(o=>o.json()).then(o=>o.features[0])},async onMapClick(n){var s;let t=!1;if((s=this.mainMap)==null||s.forEachFeatureAtPixel(n.pixel,r=>{if(console.log(r),r===this.markers.getFeatures()[0]){console.log(r.get("meta")),t=!0;const o=r.get("meta").geometry.coordinates.map(a=>parseFloat(a));this.nominatimReverseRequest(o).then(a=>{console.log(a),r.set("meta",a),this.$emit("addressSelected",a)})}}),t)return;console.log("evt.coordinate: "+n.coordinate);const e=Vn(n.coordinate,"EPSG:3857","EPSG:4326");console.log("Mouse Click coordinates: "+e);const i=n.coordinate;this.nominatimReverseRequest(i).then(r=>{if(console.log(r),this.displayName(r),this.$emit("addressSelected",r),this.markers.clear(),!r.geometry||r.geometry.type!=="Point"){console.warn("Feature is not a Point"),console.warn(r);return}this.addMarker(r,i)}).catch(r=>{console.log(r)})}},ionViewWillEnter(){},ionViewDidEnter(){var n;(n=this.mainMap)==null||n.updateSize(),this.markers.changed()}},hg={id:"map-element",class:"map"};function cg(n,t,e,i,s,r){return Ns(),ko("div",hg)}const ug=Fo(lg,[["render",cg]]),dg={components:{Map:ug,IonSearchbar:cl},emits:["update:modelValue"],props:{modelValue:String},data(){return{address:"",results:[],locateIcon:Do}},watch:{address(n){this.$emit("update:modelValue",n)},modelValue(n){n!==this.address&&(this.address=n,this.search(n))}},methods:{setAddress(n){this.address=this.$refs.map.displayName(n,!0)},onSearch(n){console.log(),this.$emit("update:modelValue",n.detail.value),this.search(n.detail.value)},search(n){fetch("https://nominatim.openstreetmap.org/search?q=".concat(encodeURIComponent(n),"&format=geojson&countrycodes=de")).then(t=>t.json()).then(t=>{console.log(t),this.results=t.features})}},mounted(){this.modelValue&&(this.address=this.modelValue,this.search(this.address))}},fg={id:"map-container"},gg={class:"input"};function _g(n,t,e,i,s,r){const o=Lr("Map"),a=Lr("ion-searchbar");return Ns(),ko("div",fg,[xs(o,{ref:"map",class:"map",onAddressSelected:r.setAddress,results:s.results},null,8,["onAddressSelected","results"]),ul("div",gg,[xs(a,{color:"light",class:"searchbar",value:s.address,placeholder:"Adresse suchen",onIonChange:r.onSearch},null,8,["value","onIonChange"])])])}const mg=Fo(dg,[["render",_g],["__scopeId","data-v-3c60a885"]]),vg=dl({__name:"RAEditLocation",setup(n){const t=ll();return(e,i)=>(Ns(),fl(_l,null,{default:gl(()=>[xs(mg,{modelValue:Mr(t).address,"onUpdate:modelValue":i[0]||(i[0]=s=>Mr(t).address=s)},null,8,["modelValue"])]),_:1}))}});export{vg as default}; diff --git a/ra/assets/RAEditLocation-legacy-dcpF_GaH.js b/ra/assets/RAEditLocation-legacy-dcpF_GaH.js new file mode 100644 index 0000000..7bd3e31 --- /dev/null +++ b/ra/assets/RAEditLocation-legacy-dcpF_GaH.js @@ -0,0 +1 @@ +System.register(["./riskassessment-legacy-kVyVXEzW.js","./index-legacy-l9aK7RKf.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(t,e){"use strict";var i,n,s,r,o,a,l,h,c,u,d,g,f,_,p;return{setters:[t=>{i=t.u},t=>{n=t.n,s=t.ab,r=t._,o=t.o,a=t.g,l=t.ac,h=t.E,c=t.b,u=t.a,d=t.d,g=t.c,f=t.w,_=t.f},t=>{p=t.T},null,null,null],execute:function(){var e=document.createElement("style");e.textContent=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.map{min-height:100px;width:100%;height:100%}.ol-rotate{right:.5em;top:3em}.locate-control{top:.5em;right:.5em}#map-container[data-v-3c60a885]{display:flex;flex-direction:column;width:100%;height:100%}#map-container .map[data-v-3c60a885]{flex-grow:2}#map-container .input[data-v-3c60a885]{position:absolute;bottom:5px;width:100%;padding-right:5px}\n',document.head.appendChild(e);const m=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}},y="propertychange",x=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function v(t,e){return t>e?1:t0?s-1:s}return n-1}if(i>0){for(let i=1;i0)}removeEventListener(t,e){if(!this.listeners_)return;const i=this.listeners_[t];if(!i)return;const n=i.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=R,++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}},P="change",F="error",k="contextmenu",O="click",D="dblclick",G="keydown",z="keypress",N="load",W="touchmove",X="wheel";function j(t,e,i,n,s){if(n&&n!==t&&(i=i.bind(n)),s){const n=i;i=function(){t.removeEventListener(e,i),n.apply(this,arguments)}}const r={target:t,type:e,listener:i};return t.addEventListener(e,i),r}function Y(t,e,i,n){return j(t,e,i,n,!0)}function Z(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),M(t))}class B extends L{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(P)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,n=new Array(i);for(let s=0;s0;)this.pop()}extend(t){for(let e=0,i=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new et(Q,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let i=0,n=e.length;i=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new et($,e,t)),e}setAt(t,e){if(t>=this.getLength())return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new et($,i,t)),this.dispatchEvent(new et(Q,e,t))}updateLength_(){this.set(tt,this.array_.length)}assertUnique_(t,e){for(let i=0,n=this.array_.length;is&&(l|=mt.RIGHT),ar&&(l|=mt.ABOVE),l===mt.UNKNOWN&&(l=mt.INTERSECTING),l}function Tt(t,e,i,n,s){return s?(s[0]=t,s[1]=e,s[2]=i,s[3]=n,s):[t,e,i,n]}function Rt(t){return Tt(1/0,1/0,-1/0,-1/0,t)}function It(t,e){const i=t[0],n=t[1];return Tt(i,n,i,n,e)}function Mt(t,e,i,n,s){return Ft(Rt(s),t,e,i,n)}function At(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function Lt(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function Pt(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function Ft(t,e,i,n,s){for(;ie[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Ut(t){return t[2]1){const e=t[2]-t[0],i=t[3]-t[1];for(let r=0;r=i[2])){const e=Kt(i),s=Math.floor((n[0]-i[0])/e)*e;t[0]-=s,t[2]-=s}return t}const Qt={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var $t={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};$t.max=$t.whitepoint[2].D65,$t.rgb=function(t,e){e=e||$t.whitepoint[2].E;var i,n,s,r=t[0]/e[0],o=t[1]/e[1],a=t[2]/e[2];return n=-.96924363628087*r+1.87596750150772*o+.041555057407175*a,s=.055630079696993*r+-.20397695888897*o+1.056971514242878*a,i=(i=3.240969941904521*r+-1.537383177570093*o+-.498610760293*a)>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*=12.92,[255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1)),255*(s=Math.min(Math.max(0,s),1))]},Qt.xyz=function(t,e){var i=t[0]/255,n=t[1]/255,s=t[2]/255,r=.21263900587151*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.71516867876775*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.072192315360733*(s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92),o=.019330818715591*i+.11919477979462*n+.95053215224966*s;return[(.41239079926595*i+.35758433938387*n+.18048078840183*s)*(e=e||$t.whitepoint[2].E)[0],r*e[1],o*e[2]]};const te={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,i){var n,s,r,o,a,l,h,c,u;return r=t[0],o=t[1],a=t[2],0===r?[0,0,0]:(e=e||"D65",i=i||2,n=o/(13*r)+4*(h=$t.whitepoint[i][e][0])/(h+15*(c=$t.whitepoint[i][e][1])+3*(u=$t.whitepoint[i][e][2]))||0,s=a/(13*r)+9*c/(h+15*c+3*u)||0,[9*(l=r>8?c*Math.pow((r+16)/116,3):c*r*.0011070564598794539)*n/(4*s)||0,l,l*(12-3*n-20*s)/(4*s)||0])}};$t.luv=function(t,e,i){var n,s,r,o,a,l,h,c,u,d,g;e=e||"D65",i=i||2,d=4*(h=$t.whitepoint[i][e][0])/(h+15*(c=$t.whitepoint[i][e][1])+3*(u=$t.whitepoint[i][e][2])),g=9*c/(h+15*c+3*u),n=4*(o=t[0])/(o+15*(a=t[1])+3*(l=t[2]))||0,s=9*a/(o+15*a+3*l)||0;var f=a/c;return[r=f<=.008856451679035631?903.2962962962961*f:116*Math.pow(f,1/3)-16,13*r*(n-d),13*r*(s-g)]};var ee={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(t){var e,i=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[i,n*Math.cos(e),n*Math.sin(e)]},xyz:function(t){return te.xyz(ee.luv(t))}};function ie(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}te.lchuv=function(t){var e=t[0],i=t[1],n=t[2],s=Math.sqrt(i*i+n*n),r=360*Math.atan2(n,i)/2/Math.PI;return r<0&&(r+=360),[e,s,r]},$t.lchuv=function(t){return te.lchuv($t.luv(t))};const ne=ie({aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]});var se={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const re={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,i,n,s,r,o=t[0]/360,a=t[1]/100,l=t[2]/100,h=0;if(0===a)return[r=255*l,r,r];for(e=2*l-(i=l<.5?l*(1+a):l+a-l*a),s=[0,0,0];h<3;)(n=o+1/3*-(h-1))<0?n++:n>1&&n--,r=6*n<1?e+6*(i-e)*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,s[h++]=255*r;return s}};function oe(t){var e;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var i=function(t){var e,i,n=[],s=1;if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),ne[t])n=ne[t].slice(),i="rgb";else if("transparent"===t)s=0,i="rgb",n=[0,0,0];else if("#"===t[0]){var r=t.slice(1),o=r.length;s=1,o<=4?(n=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],4===o&&(s=parseInt(r[3]+r[3],16)/255)):(n=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],8===o&&(s=parseInt(r[6]+r[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),i="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var a=e[1],l="cmyk"===(i=a.replace(/a$/,""))?4:"gray"===i?1:3;n=e[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===i&&(i=n.shift()),s=(n=n.map((function(t,e){if("%"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:"rgb"===i?255*t:"h"===i[0]?100*t:"l"!==i[0]||e?"lab"===i?125*t:"lch"===i?e<2?150*t:360*t:"o"!==i[0]||e?"oklab"===i?.4*t:"oklch"===i?e<2?.4*t:360*t:t:t:100*t;if("h"===i[e]||2===e&&"h"===i[i.length-1]){if(void 0!==se[t])return se[t];if(t.endsWith("deg"))return parseFloat(t);if(t.endsWith("turn"))return 360*parseFloat(t);if(t.endsWith("grad"))return 360*parseFloat(t)/400;if(t.endsWith("rad"))return 180*parseFloat(t)/Math.PI}return"none"===t?0:parseFloat(t)}))).length>l?n.pop():1}else if(/[0-9](?:\s|\/|,)/.test(t)){var h;n=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),i=(null===(h=t.match(/([a-z])/gi))||void 0===h||null===(h=h.join(""))||void 0===h?void 0:h.toLowerCase())||"rgb"}return{space:i,values:n,alpha:s}}(t);if(!i.space)return[];const n="h"===i.space[0]?re.min:Qt.min,s="h"===i.space[0]?re.max:Qt.max;return(e=Array(3))[0]=Math.min(Math.max(i.values[0],n[0]),s[0]),e[1]=Math.min(Math.max(i.values[1],n[1]),s[1]),e[2]=Math.min(Math.max(i.values[2],n[2]),s[2]),"h"===i.space[0]&&(e=re.rgb(e)),e.push(Math.min(Math.max(i.alpha,0),1)),e}function ae(t,e,i){return Math.min(Math.max(t,e),i)}function le(t,e,i,n,s,r){const o=s-i,a=r-n;if(0!==o||0!==a){const l=((t-i)*o+(e-n)*a)/(o*o+a*a);l>1?(i=s,n=r):l>0&&(i+=o*l,n+=a*l)}return he(t,e,i,n)}function he(t,e,i,n){const s=i-t,r=n-e;return s*s+r*r}function ce(t){return t*Math.PI/180}function ue(t,e){const i=t%e;return i*e<0?i+e:i}function de(t,e,i){return t+i*(e-t)}function ge(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}function fe(t,e){return Math.floor(ge(t,e))}function _e(t,e){return Math.ceil(ge(t,e))}function pe(t){return"string"==typeof t?t:be(t)}Qt.hsl=function(t){var e,i,n=t[0]/255,s=t[1]/255,r=t[2]/255,o=Math.min(n,s,r),a=Math.max(n,s,r),l=a-o;return a===o?e=0:n===a?e=(s-r)/l:s===a?e=2+(r-n)/l:r===a&&(e=4+(n-s)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(o+a)/2,[e,100*(a===o?0:i<=.5?l/(a+o):l/(2-a-o)),100*i]};const me=1024,ye={};let xe=0;function ve(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function we(t){const e=$t.lchuv(Qt.xyz(t));return e[3]=t[3],e}function Ce(t){if(ye.hasOwnProperty(t))return ye[t];if(xe>=me){let t=0;for(const e in ye)0==(3&t++)&&(delete ye[e],--xe)}const e=oe(t);if(4!==e.length)throw new Error('Failed to parse "'+t+'" as color');for(const i of e)if(isNaN(i))throw new Error('Failed to parse "'+t+'" as color');return Ee(e),ye[t]=e,++xe,e}function Se(t){return Array.isArray(t)?t:Ce(t)}function Ee(t){return t[0]=ae(t[0]+.5|0,0,255),t[1]=ae(t[1]+.5|0,0,255),t[2]=ae(t[2]+.5|0,0,255),t[3]=ae(t[3],0,1),t}function be(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let i=t[1];i!=(0|i)&&(i=i+.5|0);let n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:Math.round(100*t[3])/100)+")"}function Te(t,e,i){return e+":"+t+":"+(i?pe(i):"null")}const Re=new class{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];0!=(3&t++)||i.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,i){const n=Te(t,e,i);return n in this.cache_?this.cache_[n]:null}set(t,e,i,n){const s=Te(t,e,i);this.cache_[s]=n,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}},Ie="opacity",Me="visible",Ae="extent",Le="zIndex",Pe="maxResolution",Fe="minResolution",ke="maxZoom",Oe="minZoom",De="source",Ge="map",ze=class extends J{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[Ie]=void 0!==t.opacity?t.opacity:1,ut("number"==typeof e[Ie],"Layer opacity must be a number"),e[Me]=void 0===t.visible||t.visible,e[Le]=t.zIndex,e[Pe]=void 0!==t.maxResolution?t.maxResolution:1/0,e[Fe]=void 0!==t.minResolution?t.minResolution:0,e[Oe]=void 0!==t.minZoom?t.minZoom:-1/0,e[ke]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=ae(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==i||e.managed?i:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return K()}getLayerStatesArray(t){return K()}getExtent(){return this.get(Ae)}getMaxResolution(){return this.get(Pe)}getMinResolution(){return this.get(Fe)}getMinZoom(){return this.get(Oe)}getMaxZoom(){return this.get(ke)}getOpacity(){return this.get(Ie)}getSourceState(){return K()}getVisible(){return this.get(Me)}getZIndex(){return this.get(Le)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(Ae,t)}setMaxResolution(t){this.set(Pe,t)}setMinResolution(t){this.set(Fe,t)}setMaxZoom(t){this.set(ke,t)}setMinZoom(t){this.set(Oe,t)}setOpacity(t){ut("number"==typeof t,"Layer opacity must be a number"),this.set(Ie,t)}setVisible(t){this.set(Me,t)}setZIndex(t){this.set(Le,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}},Ne="prerender",We="postrender",Xe="precompose",je="postcompose",Ye="rendercomplete",Ze=0,Be=1,Ve={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},Ke=42,qe=256,Ue={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937},He=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Ue[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}},Je=6378137,Qe=Math.PI*Je,$e=[-Qe,-Qe,Qe,Qe],ti=[-180,-85,180,85],ei=Je*Math.log(Math.tan(Math.PI/2));class ii extends He{constructor(t){super({code:t,units:"m",extent:$e,global:!0,worldExtent:ti,getPointResolution:function(t,e){return t/Math.cosh(e[1]/Je)}})}}const ni=[new ii("EPSG:3857"),new ii("EPSG:102100"),new ii("EPSG:102113"),new ii("EPSG:900913"),new ii("http://www.opengis.net/def/crs/EPSG/0/3857"),new ii("http://www.opengis.net/gml/srs/epsg.xml#3857")];function si(t,e,i){const n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(n));for(let s=0;sei?i=ei:i<-ei&&(i=-ei),e[s+1]=i}return e}function ri(t,e,i){const n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(n));for(let s=0;s=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function fi(t,e){const i=Math.cos(e),n=Math.sin(e),s=t[0]*i-t[1]*n,r=t[1]*i+t[0]*n;return t[0]=s,t[1]=r,t}function _i(t,e){if(e.canWrapX()){const i=Kt(e.getExtent()),n=function(t,e,i){const n=e.getExtent();let s=0;return e.canWrapX()&&(t[0]n[2])&&(i=i||Kt(n),s=Math.floor((t[0]-n[0])/i)),s}(t,e,i);n&&(t[0]-=n*i)}return t}const pi=6371008.8;function mi(t,e,i){i=i||pi;const n=ce(t[1]),s=ce(e[1]),r=(s-n)/2,o=ce(e[0]-t[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(n)*Math.cos(s);return 2*i*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}const yi={info:1,warn:2,error:3,none:4};let xi=yi.info;function vi(...t){xi>yi.warn||console.warn(...t)}let wi=!0;function Ci(t,e){if(void 0!==e)for(let i=0,n=t.length;i=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(wi=!1,vi("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function Ni(t,e){return ki?Fi(t,e,ki):t}function Wi(t,e){return ki?Fi(t,ki,e):t}function Xi(t,e){if(!ki)return t;const i=bi(e).getMetersPerUnit(),n=ki.getMetersPerUnit();return i&&n?t*i/n:t}var ji,Yi,Zi;function Bi(t,e,i){return function(n,s,r,o,a){if(!n)return;if(!s&&!e)return n;const l=e?0:r[0]*s,h=e?0:r[1]*s,c=a?a[0]:0,u=a?a[1]:0;let d=t[0]+l/2+c,g=t[2]-l/2+c,f=t[1]+h/2+u,_=t[3]-h/2+u;d>g&&(d=(g+d)/2,g=d),f>_&&(f=(_+f)/2,_=f);let p=ae(n[0],d,g),m=ae(n[1],f,_);if(o&&i&&s){const t=30*s;p+=-t*Math.log(1+Math.max(0,d-n[0])/t)+t*Math.log(1+Math.max(0,n[0]-g)/t),m+=-t*Math.log(1+Math.max(0,f-n[1])/t)+t*Math.log(1+Math.max(0,n[1]-_)/t)}return[p,m]}}function Vi(t){return t}function Ki(t,e,i,n){const s=Kt(e)/i[0],r=Yt(e)/i[1];return n?Math.min(t,Math.max(s,r)):Math.min(t,Math.min(s,r))}function qi(t,e,i){let n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,i&&(n=Math.max(n,i),n/=Math.log(1+50*Math.max(0,i/t-1))/50+1),ae(n,i/2,2*e)}function Ui(t,e,i,n,s){return i=void 0===i||i,function(r,o,a,l){if(void 0!==r){const o=n?Ki(t,n,a,s):t;return i&&l?qi(r,o,e):ae(r,e,o)}}}function Hi(t){if(void 0!==t)return 0}function Ji(t){if(void 0!==t)return t}function Qi(t){return Math.pow(t,3)}function $i(t){return 1-Qi(1-t)}function tn(t){return 3*t*t-2*t*t*t}function en(t){return t}function nn(t,e,i,n,s,r){r=r||[];let o=0;for(let a=e;a{if(!i)return this.getSimplifiedGeometry(e);const n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return K()}closestPointXY(t,e,i,n){return K()}containsXY(t,e){const i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return K()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&Rt(t),this.extentRevision_=this.getRevision()}return function(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}(this.extent_,t)}rotate(t,e){K()}scale(t,e,i){K()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return K()}getType(){return K()}applyTransform(t){K()}intersectsExtent(t){return K()}translate(t,e){K()}transform(t,e){const i=bi(t),n="tile-pixels"==i.getUnits()?function(t,n,s){const r=i.getExtent(),o=i.getWorldExtent(),a=Yt(o)/Yt(r);return gt(rn,o[0],o[3],a,-a,0,0,0),nn(t,0,t.length,s,rn,n),Li(i,e)(t,n,s)}:Li(i,e);return this.applyTransform(n),this}};function an(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}const ln=class extends on{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return Mt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return K()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length1)u=i;else{if(d>0){for(let s=0;ss&&(s=a),r=i,o=n}return s}function un(t,e,i,n,s,r,o,a,l,h,c){if(e==i)return h;let u,d;if(0===s){if(d=he(o,a,t[e],t[e+1]),d0;){const i=h.pop(),r=h.pop();let o=0;const a=t[r],u=t[r+1],d=t[i],g=t[i+1];for(let e=r+n;eo&&(c=e,o=i)}o>s&&(l[(c-e)/n]=1,r+n0&&f>d)&&(g<0&&_0&&_>g)?(a=i,l=u):(r[o++]=a,r[o++]=l,h=a,c=l,a=i,l=u)}return r[o++]=a,r[o++]=l,o}function pn(t,e,i,n,s,r,o,a){for(let l=0,h=i.length;lr&&(i-a)*(r-l)-(s-a)*(n-l)>0&&o++:n<=r&&(i-a)*(r-l)-(s-a)*(n-l)<0&&o--,a=i,l=n}return 0!==o}function Rn(t,e,i,n,s,r){if(0===i.length)return!1;if(!Tn(t,e,i[0],n,s,r))return!1;for(let o=1,a=i.length;om&&(h=(c+u)/2,Rn(t,e,i,n,h,f)&&(p=h,m=s)),c=u}return isNaN(p)&&(p=s[r]),o?(o.push(p,f,m),o):[p,f,m]}function Mn(t,e,i,n,s){const r=Ft([1/0,1/0,-1/0,-1/0],t,e,i,n);return!!qt(s,r)&&(!!St(s,r)||r[0]>=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]||function(t,e,i,n,s){let r;for(e+=n;e=o&&_<=l),n||!(r&mt.RIGHT)||s&mt.RIGHT||(p=g-(d-l)*f,n=p>=a&&p<=h),n||!(r&mt.BELOW)||s&mt.BELOW||(_=d-(g-a)/f,n=_>=o&&_<=l),n||!(r&mt.LEFT)||s&mt.LEFT||(p=g-(d-o)*f,n=p>=a&&p<=h)}return n}(s,t,e)})))}function An(t,e,i,n,s){return!!(Mn(t,e,i,n,s)||Tn(t,e,i,n,s[0],s[1])||Tn(t,e,i,n,s[0],s[3])||Tn(t,e,i,n,s[2],s[1])||Tn(t,e,i,n,s[2],s[3]))}function Ln(t,e,i,n){for(;e0}function Fn(t,e,i,n,s){s=void 0!==s&&s;for(let r=0,o=i.length;rc&&d1&&"function"==typeof arguments[i-1]&&(e=arguments[i-1],--i);let n=0;for(;n0}getInteracting(){return this.hints_[Be]>0}cancelAnimations(){let t;this.setHint(Ze,-this.hints_[Ze]);for(let e=0,i=this.animations_.length;e=0;--i){const n=this.animations_[i];let s=!0;for(let i=0,r=n.length;i0?o/r.duration:1;a>=1?(r.complete=!0,a=1):s=!1;const l=r.easing(a);if(r.sourceCenter){const t=r.sourceCenter[0],e=r.sourceCenter[1],i=r.targetCenter[0],n=r.targetCenter[1];this.nextCenter_=r.targetCenter;const s=t+l*(i-t),o=e+l*(n-e);this.targetCenter_=[s,o]}if(r.sourceResolution&&r.targetResolution){const t=1===l?r.targetResolution:r.sourceResolution+l*(r.targetResolution-r.sourceResolution);if(r.anchor){const e=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(i,r.anchor)}this.nextResolution_=r.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==r.sourceRotation&&void 0!==r.targetRotation){const t=1===l?ue(r.targetRotation+Math.PI,2*Math.PI)-Math.PI:r.sourceRotation+l*(r.targetRotation-r.sourceRotation);if(r.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,r.anchor)}this.nextRotation_=r.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!r.complete)break}if(s){this.animations_[i]=null,this.setHint(Ze,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=n[0].callback;t&&Dn(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i;const n=this.getCenterInternal();var s,r;return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],fi(i,t-this.getRotation()),r=e,(s=i)[0]+=+r[0],s[1]+=+r[1]),i}calculateCenterZoom(t,e){let i;const n=this.getCenterInternal(),s=this.getResolution();return void 0!==n&&void 0!==s&&(i=[e[0]-t*(e[0]-n[0])/s,e[1]-t*(e[1]-n[1])/s]),i}getViewportSize_(t){const e=this.viewportSize_;if(t){const i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?Gi(t,this.getProjection()):t}getCenterInternal(){return this.get(Ve.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){return Ni(this.calculateExtentInternal(t),this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();ut(e,"The view center is not defined");const i=this.getResolution();ut(void 0!==i,"The view resolution is not defined");const n=this.getRotation();return ut(void 0!==n,"The view rotation is not defined"),Xt(e,i,n,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(Ve.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(Wi(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=Kt(t)/e[0],n=Yt(t)/e[1];return Math.max(i,n)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,n=Math.log(e/i)/Math.log(t);return function(i){return e/Math.pow(t,i*n)}}getRotation(){return this.get(Ve.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,s=Math.log(i/n)/e;return function(t){return Math.log(i/t)/e/s}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let n=this.getCenterInternal();const s=this.padding_;if(s){const t=this.getViewportSizeMinusPadding_();n=zn(n,this.getViewportSize_(),[t[0]/2+s[3],t[1]/2+s[0]],e,i)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,i,n=this.minZoom_||0;if(this.resolutions_){const s=w(this.resolutions_,t,1);n=s,e=this.resolutions_[s],i=s==this.resolutions_.length-1?2:e/this.resolutions_[s+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=ae(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,ae(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if(ut(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t))ut(!Ut(t),"Cannot fit empty extent provided as `geometry`"),i=On(Wi(t,this.getProjection()));else if("Circle"===t.getType()){const e=Wi(t.getExtent(),this.getProjection());i=On(e),i.rotate(this.getRotation(),Nt(e))}else{const e=Oi();i=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),s=t.getFlatCoordinates(),r=t.getStride();let o=1/0,a=1/0,l=-1/0,h=-1/0;for(let c=0,u=s.length;c=t.maxResolution)return!1;const n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const Xn=class extends ze{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(De,this.handleSourcePropertyChange_);const i=t.source?t.source:null;this.setSource(i)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(De)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&(Z(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=j(t,P,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const i=this.getMapInternal();let n;!t&&i&&(t=i.getView()),e=t instanceof Nn?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray()),n=e.layerStatesArray?e.layerStatesArray.find((t=>t.layer===this)):this.getLayerState();const s=this.getExtent();return Wn(n,e.viewState)&&(!s||qt(s,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e;const i=this.getSource();if(i&&(e=i.getAttributions()),!e)return[];let n=e(t instanceof Nn?t.getViewStateAndExtent():t);return Array.isArray(n)||(n=[n]),n}render(t,e){const i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(Ge,t)}getMapInternal(){return this.get(Ge)}setMap(t){this.mapPrecomposeKey_&&(Z(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Z(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=j(t,Xe,(function(t){const e=t.frameState.layerStatesArray,i=this.getLayerState(!1);ut(!e.some((function(t){return t.layer===i.layer})),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),e.push(i)}),this),this.mapRenderKey_=j(this,P,t.render,t),this.changed())}setSource(t){this.set(De,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}};function jn(t,e){Re.expire()}const Yn=class extends x{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){K()}calculateMatrices2D(t){const e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;gt(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),ft(n,i)}forEachFeatureAtCoordinate(t,e,i,n,s,r,o,a){let l;const h=e.viewState;function c(t,e,i,n){return s.call(r,e,t?i:null,n)}const u=h.projection,d=_i(t.slice(),u),g=[[0,0]];if(u.canWrapX()&&n){const t=Kt(u.getExtent());g.push([-t,0],[t,0])}const f=e.layerStatesArray,_=f.length,p=[],m=[];for(let x=0;x=0;--n){const s=f[n],r=s.layer;if(r.hasRenderer()&&Wn(s,h)&&o.call(a,r)){const n=r.getRenderer(),o=r.getSource();if(n&&o){const r=o.getWrapX()?d:t,a=c.bind(null,s.managed);m[0]=r[0]+g[x][0],m[1]=r[1]+g[x][1],l=n.forEachFeatureAtCoordinate(m,e,i,a,p)}if(l)return l}}if(0===p.length)return;const y=1/p.length;return p.forEach(((t,e)=>t.distanceSq+=e*y)),p.sort(((t,e)=>t.distanceSq-e.distanceSq)),p.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,i,n,s,r){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,b,this,s,r)}getMap(){return this.map_}renderFrame(t){K()}flushDeclutterItems(t){}scheduleExpireIconCache(t){Re.canExpireCache()&&t.postRenderFunctions.push(jn)}},Zn=class extends m{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}},Bn="ol-hidden",Vn="ol-unselectable",Kn="ol-control",qn="ol-collapsed",Un=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),Hn=["style","variant","weight","size","lineHeight","family"],Jn=function(t){const e=t.match(Un);if(!e)return null;const i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let n=0,s=Hn.length;nMath.max(e,ys(t,i))),0);return i[e]=n,n}function vs(t,e,i,n,s,r,o,a,l,h,c){t.save(),1!==i&&(t.globalAlpha*=i),e&&t.transform.apply(t,e),n.contextInstructions?(t.translate(l,h),t.scale(c[0],c[1]),function(t,e){const i=t.contextInstructions;for(let n=0,s=i.length;n=0;--i)e[i].renderDeclutter(t);e.length=0}};class Cs extends m{constructor(t,e){super(t),this.layer=e}}const Ss="layers";class Es extends ze{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Ss,this.handleLayersChanged_),i?Array.isArray(i)?i=new it(i.slice(),{unique:!0}):ut("function"==typeof i.getArray,"Expected `layers` to be an array or a `Collection`"):i=new it(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(Z),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(j(t,Q,this.handleLayersAdd_,this),j(t,$,this.handleLayersRemove_,this));for(const i in this.listenerKeys_)this.listenerKeys_[i].forEach(Z);M(this.listenerKeys_);const e=t.getArray();for(let i=0,n=e.length;i{this.clickTimeoutId_=void 0;const e=new Rs(Is.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,i=e.pointerId;if(e.type==Is.POINTERUP||e.type==Is.POINTERCANCEL){delete this.trackedTouches_[i];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=Is.POINTERDOWN&&e.type!=Is.POINTERMOVE||(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new Rs(Is.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(Z),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new Rs(Is.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push(j(t,Is.POINTERMOVE,this.handlePointerMove_,this),j(t,Is.POINTERUP,this.handlePointerUp_,this),j(this.element_,Is.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push(j(this.element_.getRootNode(),Is.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new Rs(Is.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new Rs(Is.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(Z(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(W,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Z(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Z),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},Ps="postrender",Fs="movestart",ks="moveend",Os="loadstart",Ds="loadend",Gs="layergroup",zs="size",Ns="target",Ws="view",Xs=1/0,js=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,M(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){ut(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=Xs&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,i=this.priorities_,n=e.length,s=e[t],r=i[t],o=t;for(;t>1;){const s=this.getLeftChildIndex_(t),r=this.getRightChildIndex_(t),o=rt;){const t=this.getParentIndex_(e);if(!(n[t]>r))break;i[e]=i[t],n[e]=n[t],e=t}i[e]=s,n[e]=r}reprioritize(){const t=this.priorityFunction_,e=this.elements_,i=this.priorities_;let n=0;const s=e.length;let r,o,a;for(o=0;o0;)n=this.dequeue()[0],s=n.getKey(),i=n.getState(),i!==Ys||s in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++r,n.load())}},Us=class extends J{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){es(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&es(this.element);for(let e=0,i=this.listenerKeys.length;ee.getAttributions(t))))),i=!this.getMap().getAllLayers().some((t=>t.getSource()&&!1===t.getSource().getAttributionsCollapsible()));return this.overrideCollapsible_||this.setCollapsible(i),e}updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=this.collectSourceAttributions_(t),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!E(e,this.renderedAttributions_)){!function(t){for(;t.lastChild;)t.removeChild(t.lastChild)}(this.ulElement_);for(let t=0,i=e.length;t0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:$i}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const i=e.viewState.rotation;if(i!=this.rotation_){const t="rotate("+i+"rad)";if(this.autoHide_){const t=this.element.classList.contains(Bn);t||0!==i?t&&0!==i&&this.element.classList.remove(Bn):this.element.classList.add(Bn)}this.label_.style.transform=t}this.rotation_=i}},Qs=class extends Us{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",i=void 0!==t.delta?t.delta:1,n=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",s=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",r=void 0!==t.zoomInLabel?t.zoomInLabel:"+",o=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",a=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=n,h.setAttribute("type","button"),h.title=a,h.appendChild("string"==typeof r?document.createTextNode(r):r),h.addEventListener(O,this.handleClick_.bind(this,i),!1);const c=document.createElement("button");c.className=s,c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof o?document.createTextNode(o):o),c.addEventListener(O,this.handleClick_.bind(this,-i),!1);const u=e+" "+Vn+" "+Kn,d=this.element;d.className=u,d.appendChild(h),d.appendChild(c),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const i=e.getZoom();if(void 0!==i){const n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:$i})):e.setZoom(n)}}},$s="active";function tr(t,e,i,n){const s=t.getZoom();if(void 0===s)return;const r=t.getConstrainedZoom(s+e),o=t.getResolutionForZoom(r);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:o,anchor:i,duration:void 0!==n?n:250,easing:$i})}const er=class extends J{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get($s)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set($s,t)}setMap(t){this.map_=t}},ir=class extends er{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==Is.DBLCLICK){const i=t.originalEvent,n=t.map,s=t.coordinate,r=i.shiftKey?-this.delta_:this.delta_;tr(n.getView(),r,s,this.duration_),i.preventDefault(),e=!0}return!e}};function nr(t){const e=t.length;let i=0,n=0;for(let s=0;s0}}else if(t.type==Is.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==Is.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function rr(t){const e=arguments;return function(t){let i=!0;for(let n=0,s=e.length;n0&&this.condition_(t)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},pr=class extends sr{constructor(t){t=t||{},super({stopDown:T}),this.condition_=t.condition?t.condition:or,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!gr(t))return;const e=t.map,i=e.getView();if(i.getConstraints().rotation===Hi)return;const n=e.getSize(),s=t.pixel,r=Math.atan2(n[1]/2-s[1],s[0]-n[0]/2);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;i.adjustRotationInternal(-t)}this.lastAngle_=r}handleUpEvent(t){return!gr(t)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){return!!gr(t)&&(!(!hr(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))}},mr=class extends x{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,i="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+i,n.top=Math.min(t[1],e[1])+i,n.width=Math.abs(e[0]-t[0])+i,n.height=Math.abs(e[1]-t[1])+i}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new kn([i])}getGeometry(){return this.geometry_}},yr="boxstart",xr="boxdrag",vr="boxend",wr="boxcancel";class Cr extends m{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}const Sr=class extends sr{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new mr(t.className||"ol-dragbox"),this.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:hr,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){const n=i[0]-e[0],s=i[1]-e[1];return n*n+s*s>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Cr(xr,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new Cr(e?vr:wr,t.coordinate,t)),!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Cr(yr,t.coordinate,t)),!0)}onBoxEnd(t){}},Er=class extends Sr{constructor(t){super({condition:(t=t||{}).condition?t.condition:ur,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let i=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(t),s=e.getResolution()/n;i=i.clone(),i.scale(s*s)}e.fitInternal(i,{duration:this.duration_,easing:$i})}},br="ArrowLeft",Tr="ArrowUp",Rr="ArrowRight",Ir="ArrowDown",Mr=class extends er{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return cr(t)&&dr(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==G){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&(n==Ir||n==br||n==Rr||n==Tr)){const s=t.map.getView(),r=s.getResolution()*this.pixelDelta_;let o=0,a=0;n==Ir?a=-r:n==br?o=-r:n==Rr?o=r:a=r;const l=[o,a];fi(l,s.getRotation()),function(t,e,i){const n=t.getCenterInternal();if(n){const s=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:en,center:t.getConstrainedCenter(s)})}}(s,l,this.duration_),i.preventDefault(),e=!0}}return!e}},Ar=class extends er{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!function(t){const e=t.originalEvent;return ot?e.metaKey:e.ctrlKey}(t)&&dr(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==G||t.type==z){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&("+"===n||"-"===n)){const s=t.map,r="+"===n?this.delta_:-this.delta_;tr(s.getView(),r,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}},Lr=class{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[i+2]>t;)i-=3;const n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;const s=this.points_[e]-this.points_[i],r=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(r,s),this.initialVelocity_=Math.sqrt(s*s+r*r)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}},Pr=class extends er{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:lr;this.condition_=t.onFocusOnly?rr(ar,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==X)return!0;const e=t.map,i=t.originalEvent;let n;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==X&&(n=i.deltaY,st&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=at),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;const s=Date.now();void 0===this.startTime_&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?"trackpad":"wheel");const r=e.getView();if("trackpad"===this.mode_&&!r.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(r.getAnimating()&&r.cancelAnimations(),r.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),r.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=s,!1;this.totalDelta_+=n;const o=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),o),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-ae(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),tr(e,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},Fr=class extends sr{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=T),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const i=this.targetPointers[0],n=this.targetPointers[1],s=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){const t=s-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=s;const r=t.map,o=r.getView();o.getConstraints().rotation!==Hi&&(this.anchor_=r.getCoordinateFromPixelInternal(r.getEventPixel(nr(this.targetPointers))),this.rotating_&&(r.render(),o.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}},kr=class extends sr{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=T),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const i=this.targetPointers[0],n=this.targetPointers[1],s=i.clientX-n.clientX,r=i.clientY-n.clientY,o=Math.sqrt(s*s+r*r);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;const a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(nr(this.targetPointers))),a.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};function Or(t){return t[0]>0&&t[1]>0}function Dr(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}function Gr(t){t instanceof Xn?t.setMapInternal(null):t instanceof bs&&t.getLayers().forEach(Gr)}function zr(t,e){if(t instanceof Xn)t.setMapInternal(e);else if(t instanceof bs){const i=t.getLayers().getArray();for(let t=0,n=i.length;tthis.updateSize())),this.controls=e.controls||function(t){t=t||{};const e=new it;return(void 0===t.zoom||t.zoom)&&e.push(new Qs(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new Js(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new Hs(t.attributionOptions)),e}(),this.interactions=e.interactions||function(t){t=t||{};const e=new it,i=new Lr(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new pr),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new ir({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new _r({onFocusOnly:t.onFocusOnly,kinetic:i})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new Fr),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new kr({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new Mr),e.push(new Ar({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new Pr({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new Er({duration:t.zoomDuration})),e}({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new qs(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(Gs,this.handleLayerGroupChanged_),this.addChangeListener(Ws,this.handleViewChanged_),this.addChangeListener(zs,this.handleSizeChanged_),this.addChangeListener(Ns,this.handleTargetChanged_),this.setProperties(e.values);const i=this;!t.view||t.view instanceof Nn||t.view.then((function(t){i.setView(new Nn(t))})),this.controls.addEventListener(Q,(t=>{t.element.setMap(this)})),this.controls.addEventListener($,(t=>{t.element.setMap(null)})),this.interactions.addEventListener(Q,(t=>{t.element.setMap(this)})),this.interactions.addEventListener($,(t=>{t.element.setMap(null)})),this.overlays_.addEventListener(Q,(t=>{this.addOverlayInternal_(t.element)})),this.overlays_.addEventListener($,(t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){zr(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;const n=this.getCoordinateFromPixelInternal(t),s=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance:0,r=void 0!==i.layerFilter?i.layerFilter:b,o=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,s,o,e,null,r,null)}getFeaturesAtPixel(t,e){const i=[];return this.forEachFeatureAtPixel(t,(function(t){i.push(t)}),e),i}getAllLayers(){const t=[];return function e(i){i.forEach((function(i){i instanceof bs?e(i.getLayers()):t.push(i)}))}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:b,s=void 0!==e.hitTolerance?e.hitTolerance:0,r=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,s,r,n,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),i=this.getSize(),n=e.width/i[0],s=e.height/i[1],r="changedTouches"in t?t.changedTouches[0]:t;return[(r.clientX-e.left)/n,(r.clientY-e.top)/s]}getTarget(){return this.get(Ns)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return Gi(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?dt(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(Gs)}setLayers(t){const e=this.getLayerGroup();if(t instanceof it)return void e.setLayers(t);const i=e.getLayers();i.clear(),i.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e=0;i--){const n=e[i];if(n.getMap()===this&&n.getActive()&&this.getTargetElement()&&(!n.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let i=this.maxTilesLoading_,n=i;if(t){const e=t.viewHints;if(e[Ze]||e[Be]){const e=Date.now()-t.time>8;i=e?0:8,n=e?0:2}}e.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new Cs("removelayer",e)),this.set(Gs,t)}setSize(t){this.set(zs,t)}setTarget(t){this.set(Ns,t)}setView(t){if(!t||t instanceof Nn)return void this.set(Ws,t);this.set(Ws,new Nn);const e=this;t.then((function(t){e.setView(new Nn(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){const i=getComputedStyle(t),n=t.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),s=t.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);isNaN(n)||isNaN(s)||(e=[n,s],!Or(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&vi("No map visible because the map container's width or height are 0."))}const i=this.getSize();!e||i&&E(e,i)||(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}},Wr=0,Xr=1,jr=2,Yr=3;class Zr{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Dr(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Zr({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return K()}getImage(t){return K()}getHitDetectionImage(){return K()}getPixelRatio(t){return 1}getImageState(){return K()}getImageSize(){return K()}getOrigin(){return K()}getSize(){return K()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=Dr(t)}listenImageChange(t){K()}load(){K()}unlistenImageChange(t){K()}}const Br=Zr;function Vr(t){return Array.isArray(t)?be(t):t}class Kr extends Br{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode}),this.canvases_,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.render()}clone(){const t=this.getScale(),e=new Kr({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){let e=this.canvases_[t];if(!e){const i=this.renderOptions_,n=Qn(i.size*t,i.size*t);this.draw_(i,n,t),e=n.canvas,this.canvases_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return jr}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let n=this.radius_,s=void 0===this.radius2_?n:this.radius2_;if(n{const r=this.loadedTileCallback.bind(this,i,n);return t.forEachLoadedTile(e,n,s,r)}}forEachFeatureAtCoordinate(t,e,i,n,s){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()!==jr&&e.getState()!==Yr||this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=jr&&e!=Yr&&t.addEventListener(P,this.boundHandleImageChange_),e==Wr&&(t.load(),e=t.getState()),e==jr}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}},go=[];let fo=null;const _o=class extends uo{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=[1,0,0,1,0,0],this.pixelTransform=[1,0,0,1,0,0],this.inversePixelTransform=[1,0,0,1,0,0],this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,i){let n;fo||(fo=Qn(1,1,void 0,{willReadFrequently:!0})),fo.clearRect(0,0,1,1);try{fo.drawImage(t,e,i,1,1,0,0,1,1),n=fo.getImageData(0,0,1,1).data}catch(s){return fo=null,null}return n}getBackground(t){let e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,e,i){const n=this.getLayer().getClassName();let s,r;if(t&&t.className===n&&(!i||t&&t.style.backgroundColor&&E(Se(t.style.backgroundColor),Se(i)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(r=e.getContext("2d"))}if(r&&r.canvas.style.transform===e?(this.container=t,this.context=r,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){s=document.createElement("div"),s.className=n;let t=s.style;t.position="absolute",t.width="100%",t.height="100%",r=Qn();const e=r.canvas;s.appendChild(e),t=e.style,t.position="absolute",t.left="0",t.transformOrigin="top left",this.container=s,this.context=r}this.containerReused||!i||this.container.style.backgroundColor||(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){const n=Bt(i),s=Vt(i),r=zt(i),o=Gt(i);dt(e.coordinateToPixelTransform,n),dt(e.coordinateToPixelTransform,s),dt(e.coordinateToPixelTransform,r),dt(e.coordinateToPixelTransform,o);const a=this.inversePixelTransform;dt(a,n),dt(a,s),dt(a,r),dt(a,o),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.clip()}dispatchRenderEvent_(t,e,i){const n=this.getLayer();if(n.hasListener(t)){const s=new Zn(t,this.inversePixelTransform,i,e);n.dispatchEvent(s)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_(Ne,t,e)}postRender(t,e){this.dispatchRenderEvent_(We,t,e)}getRenderTransform(t,e,i,n,s,r,o){const a=s/2,l=r/2,h=n/e,c=-h,u=-t[0]+o,d=-t[1];return gt(this.tempTransform,a,l,h,c,-i,u,d)}disposeInternal(){delete this.frameState,super.disposeInternal()}},po=class extends L{constructor(t,e,i){super(),i=i||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=void 0===i.transition?250:i.transition,this.transitionStarts_={},this.interpolate=!!i.interpolate}changed(){this.dispatchEvent(P)}release(){this.state===Vs&&this.setState(Ks)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){let t=this.interimTile;if(!t)return this;do{if(t.getState()==Bs)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){let t=this.interimTile;if(!t)return;let e=this;do{if(t.getState()==Bs){t.interimTile=null;break}t.getState()==Zs?e=t:t.getState()==Ys?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==Vs&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){K()}getAlpha(t,e){if(!this.transition_)return 1;let i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;const n=e-i+1e3/60;return n>=this.transition_?1:Qi(n/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}};function mo(t,e){return e&&(t.src=e),t.src&&ht?new Promise(((e,i)=>t.decode().then((()=>e(t))).catch((n=>t.complete&&t.width?e(t):i(n))))):function(t,e){return new Promise(((i,n)=>{function s(){o(),i(t)}function r(){o(),n(new Error("Image load error"))}function o(){t.removeEventListener("load",s),t.removeEventListener("error",r)}t.addEventListener("load",s),t.addEventListener("error",r),e&&(t.src=e)}))}(t)}const yo=class extends po{constructor(t,e,i,n,s,r){super(t,e,r),this.crossOrigin_=n,this.src_=i,this.key=i,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=s}getImage(){return this.image_}setImage(t){this.image_=t,this.state=Bs,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=Vs,this.unlistenImage_(),this.image_=function(){const t=Qn(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=Bs:this.state=Ks,this.unlistenImage_(),this.changed()}load(){this.state==Vs&&(this.state=Ys,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Ys&&(this.state=Zs,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=function(t,e,i){const n=t;let s=!0,r=!1,o=!1;const a=[Y(n,N,(function(){o=!0,r||e()}))];return n.src&&ht?(r=!0,n.decode().then((function(){s&&e()})).catch((function(t){s&&(o?e():i())}))):a.push(Y(n,F,i)),function(){s=!1,a.forEach(Z)}}(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}},xo=class{constructor(t,e,i,n,s,r){this.sourceProj_=t,this.targetProj_=e;let o={};const a=Li(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+"/"+t[1];return o[e]||(o[e]=a(t)),o[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&Kt(n)>=Kt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Kt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Kt(this.targetProj_.getExtent()):null;const l=Bt(i),h=Vt(i),c=zt(i),u=Gt(i),d=this.transformInv_(l),g=this.transformInv_(h),f=this.transformInv_(c),_=this.transformInv_(u),p=10+(r?Math.max(0,Math.ceil(Math.log2(Dt(i)/(r*r*256*256)))):0);if(this.addQuad_(l,h,c,u,d,g,f,_,p),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach((function(e,i,n){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach((e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){const i=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];i[0][0]-t>this.sourceWorldWidth_/2&&(i[0][0]-=this.sourceWorldWidth_),i[1][0]-t>this.sourceWorldWidth_/2&&(i[1][0]-=this.sourceWorldWidth_),i[2][0]-t>this.sourceWorldWidth_/2&&(i[2][0]-=this.sourceWorldWidth_);const n=Math.min(i[0][0],i[1][0],i[2][0]);Math.max(i[0][0],i[1][0],i[2][0])-n.5&&c<1;let g=!1;if(l>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(g=Kt(yt([t,e,i,n]))/this.targetWorldWidth_>.25||g),!d&&this.sourceProj_.isGlobal()&&c&&(g=c>.25||g)),!g&&this.maxSourceExtent_&&isFinite(h[0])&&isFinite(h[1])&&isFinite(h[2])&&isFinite(h[3])&&!qt(h,this.maxSourceExtent_))return;let f=0;if(!(g||isFinite(s[0])&&isFinite(s[1])&&isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])))if(l>0)g=!0;else if(f=(isFinite(s[0])&&isFinite(s[1])?0:8)+(isFinite(r[0])&&isFinite(r[1])?0:4)+(isFinite(o[0])&&isFinite(o[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1),1!=f&&2!=f&&4!=f&&8!=f)return;if(l>0){if(!g){const e=[(t[0]+i[0])/2,(t[1]+i[1])/2],n=this.transformInv_(e);let r;r=d?(ue(s[0],u)+ue(o[0],u))/2-ue(n[0],u):(s[0]+o[0])/2-n[0];const a=(s[1]+o[1])/2-n[1];g=r*r+a*a>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const h=[(e[0]+i[0])/2,(e[1]+i[1])/2],c=this.transformInv_(h),u=[(n[0]+t[0])/2,(n[1]+t[1])/2],d=this.transformInv_(u);this.addQuad_(t,e,h,u,s,r,c,d,l-1),this.addQuad_(u,h,i,n,d,c,o,a,l-1)}else{const h=[(t[0]+e[0])/2,(t[1]+e[1])/2],c=this.transformInv_(h),u=[(i[0]+n[0])/2,(i[1]+n[1])/2],d=this.transformInv_(u);this.addQuad_(t,h,u,n,s,c,d,a,l-1),this.addQuad_(h,e,i,u,c,r,o,d,l-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&f)&&this.addTriangle_(t,i,n,s,o,a),0==(14&f)&&this.addTriangle_(t,i,e,s,o,r),f&&(0==(13&f)&&this.addTriangle_(e,n,t,r,a,s),0==(7&f)&&this.addTriangle_(e,n,i,r,a,o))}calculateSourceExtent(){const t=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach((function(e,i,n){const s=e.source;Pt(t,s[0]),Pt(t,s[1]),Pt(t,s[2])})),t}getTriangles(){return this.triangles_}};let vo;const wo=[];function Co(t,e,i,n,s){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,s),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,s)),t.restore()}function So(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function Eo(t,e,i,n){const s=Pi(i,e,t);let r=Ti(e,n,i);const o=e.getMetersPerUnit();void 0!==o&&(r*=o);const a=t.getMetersPerUnit();void 0!==a&&(r/=a);const l=t.getExtent();if(!l||Ct(l,s)){const e=Ti(t,r,s)/r;isFinite(e)&&e>0&&(r/=e)}return r}function bo(t,e,i,n,s,r,o,a,l,h,c,u,d){const g=Qn(Math.round(i*t),Math.round(i*e),wo);if(u||(g.imageSmoothingEnabled=!1),0===l.length)return g.canvas;function f(t){return Math.round(t*i)/i}g.scale(i,i),g.globalCompositeOperation="lighter";const _=[1/0,1/0,-1/0,-1/0];let p;if(l.forEach((function(t,e,i){Lt(_,t.extent)})),!d||1!==l.length||0!==h){const t=Kt(_),e=Yt(_);p=Qn(Math.round(i*t/n),Math.round(i*e/n),wo),u||(p.imageSmoothingEnabled=!1);const s=i/n;l.forEach((function(t,e,i){const n=t.extent[0]-_[0],r=-(t.extent[3]-_[3]),o=Kt(t.extent),a=Yt(t.extent);t.image.width>0&&t.image.height>0&&p.drawImage(t.image,h,h,t.image.width-2*h,t.image.height-2*h,n*s,r*s,o*s,a*s)}))}const m=Bt(o);return a.getTriangles().forEach((function(t,e,s){const o=t.source,a=t.target;let h=o[0][0],c=o[0][1],d=o[1][0],y=o[1][1],x=o[2][0],v=o[2][1];const w=f((a[0][0]-m[0])/r),C=f(-(a[0][1]-m[1])/r),S=f((a[1][0]-m[0])/r),E=f(-(a[1][1]-m[1])/r),b=f((a[2][0]-m[0])/r),T=f(-(a[2][1]-m[1])/r),R=h,I=c;h=0,c=0,d-=R,y-=I,x-=R,v-=I;const M=function(t){const e=t.length;for(let n=0;ns&&(s=e,i=o)}if(0===s)return null;const r=t[i];t[i]=t[n],t[n]=r;for(let o=n+1;o=0;n--){i[n]=t[n][e]/t[n][n];for(let s=n-1;s>=0;s--)t[s][e]-=t[s][n]*i[n]}return i}([[d,y,0,0,S-w],[x,v,0,0,b-w],[0,0,d,y,E-C],[0,0,x,v,T-C]]);if(!M)return;if(g.save(),g.beginPath(),function(){if(void 0===vo){const t=Qn(6,6,wo);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",Co(t,4,5,4,0),Co(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;vo=So(e,0)||So(e,4)||So(e,8),$n(t),wo.push(t.canvas)}return vo}()||!u){g.moveTo(S,E);const t=4,e=w-S,i=C-E;for(let n=0;n0})),r}(t,i,_,m);if(!isFinite(y)||y<=0)return void(this.state=Ks);const x=void 0!==h?h:.5;if(this.triangulation_=new xo(t,i,_,f,y*x,m),0===this.triangulation_.getTriangles().length)return void(this.state=Ks);this.sourceZ_=e.getZForResolution(y);let v=this.triangulation_.calculateSourceExtent();if(f&&(t.canWrapX()?(v[1]=ae(v[1],f[1],f[3]),v[3]=ae(v[3],f[1],f[3])):v=Zt(v,f)),Dt(v)){const t=e.getTileRangeForExtentAndZ(v,this.sourceZ_);for(let e=t.minX;e<=t.maxX;e++)for(let i=t.minY;i<=t.maxY;i++){const t=l(this.sourceZ_,e,i,o);t&&this.sourceTiles_.push(t)}0===this.sourceTiles_.length&&(this.state=Ks)}else this.state=Ks}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach((e=>{e&&e.getState()==Bs&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})})),this.sourceTiles_.length=0,0===t.length)this.state=Vs;else{const e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n="number"==typeof i?i:i[0],s="number"==typeof i?i:i[1],r=this.targetTileGrid_.getResolution(e),o=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=bo(n,s,this.pixelRatio_,o,this.sourceTileGrid_.getExtent(),r,a,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=Bs}this.changed()}load(){if(this.state==Ys){this.state=Zs,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((e=>{const i=e.getState();if(i==Ys||i==Zs){t++;const i=j(e,P,(function(n){const s=e.getState();s!=Bs&&s!=Vs&&s!=Ks||(Z(i),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(i)}})),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,i){t.getState()==Ys&&t.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(Z),this.sourcesListenerKeys_=null}release(){this.canvas_&&($n(this.canvas_.getContext("2d")),wo.push(this.canvas_),this.canvas_=null),super.release()}};class Ro{constructor(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function Io(t,e,i,n,s){return void 0!==s?(s.minX=t,s.maxX=e,s.minY=i,s.maxY=n,s):new Ro(t,e,i,n)}const Mo=Ro,Ao=class extends _o{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=[1/0,1/0,-1/0,-1/0],this.tmpTileRange_=new Mo(0,0,0,0)}isDrawableTile(t){const e=this.getLayer(),i=t.getState(),n=e.getUseInterimTilesOnError();return i==Bs||i==Ks||i==Vs&&!n}getTile(t,e,i,n){const s=n.pixelRatio,r=n.viewState.projection,o=this.getLayer();let a=o.getSource().getTile(t,e,i,s,r);return a.getState()==Vs&&o.getUseInterimTilesOnError()&&o.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(a)||(a=a.getInterimTile()),a}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=dt(e.pixelToCoordinateTransform,t.slice()),s=i.getExtent();if(s&&!Ct(s,n))return null;const r=e.pixelRatio,o=e.viewState.projection,a=e.viewState,l=i.getRenderSource(),h=l.getTileGridForProjection(a.projection),c=l.getTilePixelRatio(e.pixelRatio);for(let u=h.getZForResolution(a.resolution);u>=h.getMinZoom();--u){const t=h.getTileCoordForCoordAndZ(n,u),e=l.getTile(u,t[1],t[2],r,o);if(!(e instanceof yo||e instanceof To)||e instanceof To&&e.getState()===Ks)return null;if(e.getState()!==Bs)continue;const i=h.getOrigin(u),s=Dr(h.getTileSize(u)),d=h.getResolution(u),g=Math.floor(c*((n[0]-i[0])/d-t[1]*s[0])),f=Math.floor(c*((i[1]-n[1])/d-t[2]*s[1])),_=Math.round(c*l.getGutterForProjection(a.projection));return this.getImageData(e.getImage(),g+_,f+_)}return null}loadedTileCallback(t,e,i){return!!this.isDrawableTile(i)&&super.loadedTileCallback(t,e,i)}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){const i=t.layerStatesArray[t.layerIndex],n=t.viewState,s=n.projection,r=n.resolution,o=n.center,a=n.rotation,l=t.pixelRatio,h=this.getLayer(),c=h.getSource(),u=c.getRevision(),d=c.getTileGridForProjection(s),g=d.getZForResolution(r,c.zDirection),f=d.getResolution(g);let _=t.extent;const p=t.viewState.resolution,m=c.getTilePixelRatio(l),y=Math.round(Kt(_)/p*l),x=Math.round(Yt(_)/p*l),w=i.extent&&Wi(i.extent,s);w&&(_=Zt(_,Wi(i.extent,s)));const C=f*y/2/m,S=f*x/2/m,E=[o[0]-C,o[1]-S,o[0]+C,o[1]+S],b=d.getTileRangeForExtentAndZ(_,g),T={};T[g]={};const R=this.createLoadedTileFinder(c,s,T),I=this.tmpExtent,M=this.tmpTileRange_;this.newTiles_=!1;const A=a?jt(n.center,p,a,t.size):void 0;for(let v=b.minX;v<=b.maxX;++v)for(let e=b.minY;e<=b.maxY;++e){if(a&&!d.tileCoordIntersectsViewport([g,v,e],A))continue;const n=this.getTile(g,v,e,t);if(this.isDrawableTile(n)){const e=U(this);if(n.getState()==Bs){T[g][n.tileCoord.toString()]=n;let t=n.inTransition(e);t&&1!==i.opacity&&(n.endTransition(e),t=!1),this.newTiles_||!t&&this.renderedTiles.includes(n)||(this.newTiles_=!0)}if(1===n.getAlpha(e,t.time))continue}const s=d.getTileCoordChildTileRange(n.tileCoord,M,I);let r=!1;s&&(r=R(g+1,s)),r||d.forEachTileCoordParentTileRange(n.tileCoord,R,M,I)}const L=f/r*l/m;gt(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,a,-y/2,-x/2);const P=pt(this.pixelTransform);this.useContainer(e,P,this.getBackground(t));const F=this.context,k=F.canvas;ft(this.inversePixelTransform,this.pixelTransform),gt(this.tempTransform,y/2,x/2,L,L,0,-y/2,-x/2),k.width!=y||k.height!=x?(k.width=y,k.height=x):this.containerReused||F.clearRect(0,0,y,x),w&&this.clipUnrotated(F,t,w),c.getInterpolate()||(F.imageSmoothingEnabled=!1),this.preRender(F,t),this.renderedTiles.length=0;let O,D,G,z=Object.keys(T).map(Number);z.sort(v),1!==i.opacity||this.containerReused&&!c.getOpaque(t.viewState.projection)?(O=[],D=[]):z=z.reverse();for(let v=z.length-1;v>=0;--v){const e=z[v],i=c.getTilePixelSize(e,l,s),n=d.getResolution(e)/f,r=i[0]*n*L,o=i[1]*n*L,a=d.getTileCoordForCoordAndZ(Bt(E),e),h=d.getTileCoordExtent(a),u=dt(this.tempTransform,[m*(h[0]-E[0])/f,m*(E[3]-h[3])/f]),_=m*c.getGutterForProjection(s),p=T[e];for(const s in p){const i=p[s],n=i.tileCoord,l=a[1]-n[1],h=Math.round(u[0]-(l-1)*r),d=a[2]-n[2],f=Math.round(u[1]-(d-1)*o),m=Math.round(u[0]-l*r),y=Math.round(u[1]-d*o),x=h-m,v=f-y,w=g===e,C=w&&1!==i.getAlpha(U(this),t.time);let S=!1;if(!C)if(O){G=[m,y,m+x,y,m+x,y+v,m,y+v];for(let t=0,i=O.length;t0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const i=this.entries_[t];return ut(void 0!==i,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(t){const e=this.entries_[t];return ut(void 0!==e,"Tried to get a value for a key that does not exist in the cache"),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){var e;return null===(e=this.entries_[t])||void 0===e?void 0:e.value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){ut(!(t in this.entries_),"Tried to set a value for a key that is used already");const i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_}setSize(t){this.highWaterMark=t}};function Fo(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function ko(t,e,i){return t+"/"+e+"/"+i}function Oo(t){return ko(t[0],t[1],t[2])}const Do=class extends Po{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const t=function(t){return t.split("/").map(Number)}(this.peekFirstKey()),e=t[0];this.forEach((t=>{t.tileCoord[0]!==e&&(this.remove(Oo(t.tileCoord)),t.release())}))}},Go="tileloadstart",zo="tileloadend",No="tileloaderror";function Wo(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const Xo=class extends J{constructor(t){super(),this.projection=bi(t.projection),this.attributions_=Wo(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise((function(t,i){e.viewResolver=t,e.viewRejector=i}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=Wo(t),this.changed()}setState(t){this.state_=t,this.changed()}},jo=[0,0,0],Yo=class{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,ut(function(t,e,i){const n=e||v;return t.every((function(e,s){if(0===s)return!0;const r=n(t[s-1],e);return!(r>0||i&&0===r)}))}(this.resolutions_,((t,e)=>e-t),!0),"`resolutions` must be sorted in descending order"),!t.origins)for(let n=0,s=this.resolutions_.length-1;n{const n=new Mo(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(i){const t=this.getTileRangeForExtentAndZ(i,e);n.minX=Math.max(t.minX,n.minX),n.maxX=Math.min(t.maxX,n.maxX),n.minY=Math.max(t.minY,n.minY),n.maxY=Math.min(t.maxY,n.maxY)}return n})):i&&this.calculateTileRanges_(i)}forEachTileCoord(t,e,i){const n=this.getTileRangeForExtentAndZ(t,e);for(let s=n.minX,r=n.maxX;s<=r;++s)for(let t=n.minY,o=n.maxY;t<=o;++t)i([e,s,t])}forEachTileCoordParentTileRange(t,e,i,n){let s,r,o,a=null,l=t[0]-1;for(2===this.zoomFactor_?(r=t[1],o=t[2]):a=this.getTileCoordExtent(t,n);l>=this.minZoom;){if(void 0!==r&&void 0!==o?(r=Math.floor(r/2),o=Math.floor(o/2),s=Io(r,r,o,o,i)):s=this.getTileRangeForExtentAndZ(a,l,i),e(l,s))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,i){if(t[0]this.maxZoom||e0?n:Math.max(r/i[0],s/i[1]);const o=e+1,a=new Array(o);for(let l=0;li||i>e.getMaxZoom())return!1;const r=e.getFullTileRange(i);return!r||r.containsXY(n,s)}(t,i)?t:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(t,e){const i=this.getTileCacheForProjection(e);t>i.highWaterMark&&(i.highWaterMark=t)}useTile(t,e,i,n){}};function Uo(t,e){const i=/\{z\}/g,n=/\{x\}/g,s=/\{y\}/g,r=/\{-y\}/g;return function(o,a,l){if(o)return t.replace(i,o[0].toString()).replace(n,o[1].toString()).replace(s,o[2].toString()).replace(r,(function(){const t=o[0],i=e.getFullTileRange(t);if(!i)throw new Error("The {-y} placeholder requires a tile grid with extent");return(i.getHeight()-o[2]-1).toString()}))}}function Ho(t,e){const i=t.length,n=new Array(i);for(let s=0;sthis.getTileInternal(t,e,i,n,r)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return f.key=c,l?(f.interimTile=l,f.refreshInterimChain(),o.replace(h,f)):o.set(h,f),f}getTileInternal(t,e,i,n,s){let r=null;const o=ko(t,e,i),a=this.getKey();if(this.tileCache.containsKey(o)){if(r=this.tileCache.get(o),r.key!=a){const l=r;r=this.createTile_(t,e,i,n,s,a),l.getState()==Ys?r.interimTile=l.interimTile:r.interimTile=l,r.refreshInterimChain(),this.tileCache.replace(o,r)}}else r=this.createTile_(t,e,i,n,s,a),this.tileCache.set(o,r);return r}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}setTileGridForProjection(t,e){const i=bi(t);if(i){const t=U(i);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}},ea=class extends ta{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",i=void 0!==t.tileGrid?t.tileGrid:function(t){const e=t||{},i=e.extent||bi("EPSG:3857").getExtent(),n={extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:Bo(i,e.maxZoom,e.tileSize,e.maxResolution)};return new Yo(n)}({extent:Vo(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}},ia=class extends ea{constructor(t){let e;e=void 0!==(t=t||{}).attributions?t.attributions:['© OpenStreetMap contributors.'];const i=void 0!==t.crossOrigin?t.crossOrigin:"anonymous",n=void 0!==t.url?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:i,interpolate:t.interpolate,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,opaque:void 0===t.opaque||t.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:n,wrapX:t.wrapX,zDirection:t.zDirection})}};class na extends J{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new na(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const i=this.getStyle();return i&&t.setStyle(i),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Z(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=j(t,P,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;let e;return Array.isArray(t)?e=t:(ut("function"==typeof t.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}}(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const sa=na;let ra=null;class oa extends L{constructor(t,e,i,n,s){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=s,this.imageState_=void 0===n?Wr:n,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===jr){ra||(ra=Qn(1,1,void 0,{willReadFrequently:!0})),ra.drawImage(this.image_,0,0);try{ra.getImageData(0,0,1,1),this.tainted_=!1}catch(t){ra=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(P)}handleImageError_(){this.imageState_=Yr,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=jr,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],i=Qn(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===Wr){this.image_||this.initializeImage_(),this.imageState_=Xr;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch(t){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&mo(this.image_,this.src_).then((t=>{this.image_=t,this.handleImageLoad_()})).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==jr)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const n=i.getContext("2d");n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=pe(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}}function aa(t,e,i,n){return void 0!==i&&void 0!==n?[i/t,n/e]:void 0!==i?i/t:void 0!==n?n/e:1}class la extends Br{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,i=void 0!==t.rotation?t.rotation:0,n=void 0!==t.scale?t.scale:1,s=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:i,scale:n,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:s,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null;const r=void 0!==t.img?t.img:null;let o,a=t.src;if(ut(!(void 0!==a&&r),"`image` and `src` cannot be provided at the same time"),void 0!==a&&0!==a.length||!r||(a=r.src||U(r)),ut(void 0!==a&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),ut(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==t.src?o=Wr:void 0!==r&&(o=r instanceof HTMLImageElement?r.complete?r.src?jr:Wr:Xr:jr),this.color_=void 0!==t.color?Se(t.color):null,this.iconImage_=function(t,e,i,n,s){let r=void 0===e?void 0:Re.get(e,i,s);return r||(r=new oa(t,t instanceof HTMLImageElement?t.src||void 0:e,i,n,s),Re.set(e,i,s,r)),r}(r,a,this.crossOrigin_,o,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,void 0!==t.width||void 0!==t.height){let e,i;if(t.size)[e,i]=t.size;else{const n=this.getImage(1);if(n.width&&n.height)e=n.width,i=n.height;else if(n instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const i=this.iconImage_.getSize();this.setScale(aa(i[0],i[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(aa(e,i,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new la({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=i[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==jr?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==jr?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(P,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(P,t)}}const ha=la;function ca(t,e,i,n,s){ua(t,e,i||0,n||t.length-1,s||ga)}function ua(t,e,i,n,s){for(;n>i;){if(n-i>600){var r=n-i+1,o=e-i+1,a=Math.log(r),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(r-l)/r)*(o-r/2<0?-1:1);ua(t,e,Math.max(i,Math.floor(e-o*l/r+h)),Math.min(n,Math.floor(e+(r-o)*l/r+h)),s)}var c=t[e],u=i,d=n;for(da(t,i,e),s(t[n],c)>0&&da(t,i,n);u0;)d--}0===s(t[i],c)?da(t,i,d):da(t,++d,n),d<=e&&(i=d+1),e<=d&&(n=d-1)}}function da(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function ga(t,e){return te?1:0}let fa=class{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const i=[];if(!ba(t,e))return i;const n=this.toBBox,s=[];for(;e;){for(let r=0;r=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(n,s,e)}_split(t,e){const i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);const r=this._chooseSplitIndex(i,s,n),o=Ta(i.children.splice(r,i.children.length-r));o.height=i.height,o.leaf=i.leaf,pa(i,this.toBBox),pa(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(i,o)}_splitRoot(t,e){this.data=Ta([t,e]),this.data.height=t.height+1,this.data.leaf=!1,pa(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let n,s=1/0,r=1/0;for(let o=e;o<=i-e;o++){const e=ma(t,0,o,this.toBBox),a=ma(t,o,i,this.toBBox),l=Sa(e,a),h=wa(e)+wa(a);l=e;l--){const e=t.children[l];ya(o,t.leaf?s(e):e),a+=Ca(o)}return a}_adjustParentBBoxes(t,e,i){for(let n=i;n>=0;n--)ya(e[n],t)}_condense(t){for(let e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children,e.splice(e.indexOf(t[i]),1)):this.clear():pa(t[i],this.toBBox)}};function _a(t,e,i){if(!i)return e.indexOf(t);for(let n=0;n=t.minX&&e.maxY>=t.minY}function Ta(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Ra(t,e,i,n,s){const r=[e,i];for(;r.length;){if((i=r.pop())-(e=r.pop())<=n)continue;const o=e+Math.ceil((i-e)/n/2)*n;ca(t,o,e,i,s),r.push(e,o,o,i)}}const Ia=class{constructor(t){this.rbush_=new fa(t),this.items_={}}insert(t,e){const i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[U(e)]=i}load(t,e){const i=new Array(e.length);for(let n=0,s=e.length;n>1),s=+i(t[n],e),s<0?r=n+1:(o=n,a=!s);return a?r:~r}(c,u);d<0?(l=(u-c[-d-2])/(c[-d-1]-c[-d-2]),a=e+(-d-2)*n):a=e+d*n}o=o>1?o:2,r=r||new Array(o);for(let c=0;c{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const i=this.simplifiedGeometry_.getFlatCoordinates();let n;switch(this.type_){case"LineString":i.length=gn(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,i,0),n=[i.length];break;case"MultiLineString":n=[],i.length=function(t,e,i,n,s,r,o,a){for(let l=0,h=i.length;l=200&&a.status<300){const t=e.getType();let n;"json"==t?n=JSON.parse(a.responseText):"text"==t?n=a.responseText:"xml"==t?(n=a.responseXML,n||(n=(new DOMParser).parseFromString(a.responseText,"application/xml"))):"arraybuffer"==t&&(n=a.response),n?r(e.readFeatures(n,{extent:i,featureProjection:s}),e.readProjection(n)):o()}else o()},a.onerror=o,a.send()}(t,e,i,n,s,(function(t,e){a.addFeatures(t),void 0!==r&&r(t)}),o||R)}}class Za extends m{constructor(t,e,i){super(t),this.feature=e,this.features=i}}const Ba=class extends Xo{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=R,this.format_=t.format,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&(ut(this.format_,"`format` must be set when `url` is set"),this.loader_=Ya(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:Xa;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let i,n;this.featuresRtree_=e?new Ia:null,this.loadedExtentsRtree_=new Ia,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?n=t.features:t.features&&(i=t.features,n=i.getArray()),e||void 0!==i||(i=new it(n)),void 0!==n&&this.addFeaturesInternal(n),void 0!==i&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=U(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const e=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new Za(ka,t))}setupChangeEvents_(t,e){e instanceof Fa||(this.featureChangeKeys_[t]=[j(e,P,this.handleFeatureChange_,this),j(e,y,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(void 0!==e.getId()){const t=String(e.getId());if(t in this.idIndex_)if(e instanceof Fa){const n=this.idIndex_[t];n instanceof Fa?Array.isArray(n)?n.push(e):this.idIndex_[t]=[n,e]:i=!1}else i=!1;else this.idIndex_[t]=e}return i&&(ut(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],n=[];for(let s=0,r=t.length;s{e||(e=!0,this.addFeature(t.element),e=!1)})),t.addEventListener($,(t=>{e||(e=!0,this.removeFeature(t.element),e=!1)})),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_)this.featureChangeKeys_[t].forEach(Z);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const t=t=>{this.removeFeatureInternal(t)};this.featuresRtree_.forEach(t);for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new Za(Da);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,(function(i){const n=i.getGeometry();if(n instanceof Fa||n.intersectsCoordinate(t))return e(i)}))}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,(function(i){const n=i.getGeometry();if(n instanceof Fa||n.intersectsExtent(t)){const t=e(i);if(t)return t}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),A(this.nullGeometryFeatures_)||S(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const i=function(t,e){if(e.canWrapX()){const i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];Jt(t,e);const n=Kt(i);if(Kt(t)>n)return[[i[0],t[1],i[2],t[3]]];if(t[0]i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-n,t[3]]]}return[t]}(t,e);return[].concat(...i.map((t=>this.featuresRtree_.getInExtent(t))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],n=t[1];let s=null;const r=[NaN,NaN];let o=1/0;const a=[-1/0,-1/0,1/0,1/0];return e=e||b,this.featuresRtree_.forEachInExtent(a,(function(t){if(e(t)){const e=t.getGeometry(),l=o;if(o=e instanceof Fa?0:e.closestPointXY(i,n,r,o),o{--this.loadingExtentsCount_,this.dispatchEvent(new Za(Na,void 0,t))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new Za(Wa))})),n.insert(t,{extent:t.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let i;e.forEachInExtent(t,(function(e){if(At(e.extent,t))return i=e,!0})),i&&e.remove(i)}removeFeature(t){if(!t)return;const e=U(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=U(t),i=this.featureChangeKeys_[e];if(!i)return;i.forEach(Z),delete this.featureChangeKeys_[e];const n=t.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new Za(Ga,t)),t}removeFromIdIndex_(t){let e=!1;for(const i in this.idIndex_){const n=this.idIndex_[i];if(t instanceof Fa&&Array.isArray(n)&&n.includes(t))n.splice(n.indexOf(t),1);else if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}}return e}setLoader(t){this.loader_=t}setUrl(t){ut(this.format_,"`format` must be set when `url` is set"),this.url_=t,this.setLoader(Ya(t,this.format_))}};let Va=0;const Ka=0,qa=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette"},cl={[hl.Get]:pl((([t,e])=>void 0!==e?function(t){switch(t){case"string":return Ha;case"color":return Ja;case"number":return Ua;case"boolean":return qa;case"number[]":return Qa;default:throw new Error(`Unrecognized type hint: ${t}`)}}(e.value):$a),dl(1,2),(function(t,e){const i=ll(t[1],e);if(!(i instanceof rl))throw new Error("Expected a literal argument for get operation");if("string"!=typeof i.value)throw new Error("Expected a string argument for get operation");return e.properties.add(i.value),3===t.length?[i,ll(t[2],e)]:[i]})),[hl.Var]:pl((([t])=>t.type),dl(1,1),(function(t,e,i,n){const s=t[1];if("string"!=typeof s)throw new Error("Expected a string argument for var operation");if(e.variables.add(s),!("variables"in e.style)||void 0===e.style.variables[s])return[new rl($a,s)];const r=ll(e.style.variables[s],e);if(r.value=s,n&&!nl(n,r.type))throw new Error(`The variable ${s} has type ${il(r.type)} but the following type was expected: ${il(n)}`);return[r]})),[hl.Id]:pl(Ua|Ha,ul,(function(t,e){e.featureId=!0})),[hl.Concat]:pl(Ha,dl(2,1/0),gl($a)),[hl.GeometryType]:pl(Ha,ul),[hl.Resolution]:pl(Ua,ul),[hl.Zoom]:pl(Ua,ul),[hl.Time]:pl(Ua,ul),[hl.Any]:pl(qa,dl(2,1/0),gl(qa)),[hl.All]:pl(qa,dl(2,1/0),gl(qa)),[hl.Not]:pl(qa,dl(1,1),gl(qa)),[hl.Equal]:pl(qa,dl(2,2),gl($a),fl),[hl.NotEqual]:pl(qa,dl(2,2),gl($a),fl),[hl.GreaterThan]:pl(qa,dl(2,2),gl($a),fl),[hl.GreaterThanOrEqualTo]:pl(qa,dl(2,2),gl($a),fl),[hl.LessThan]:pl(qa,dl(2,2),gl($a),fl),[hl.LessThanOrEqualTo]:pl(qa,dl(2,2),gl($a),fl),[hl.Multiply]:pl((t=>{let e=Ua|Ja;for(let i=0;i{let e=$a;for(let i=2;i{let e=Ja|Ua;for(let i=3;i{let e=$a;for(let i=1;i3===t.length||4===t.length?Qa|Ja:Qa),dl(1,1/0),gl(Ua)),[hl.Color]:pl(Ja,dl(3,4),gl(Ua)),[hl.Band]:pl(Ua,dl(1,3),gl(Ua)),[hl.Palette]:pl(Ja,dl(2,2),(function(t,e){const i=ll(t[1],e,Ua);if(i.type!==Ua)throw new Error(`The first argument of palette must be an number, got ${il(i.type)} instead`);const n=t[2];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");const s=new Array(n.length);for(let r=0;re)throw new Error(`Expected ${e===1/0?`${t} or more`:`${t} to ${e}`} arguments for ${s}, got ${r}`)}}function gl(t){return function(e,i){const n=e[0],s=e.length-1,r=new Array(s);for(let o=0;o{for(let e=0;et.properties[n];case hl.Var:return t=>t.variables[n];default:throw new Error(`Unsupported accessor operator ${t.operator}`)}}(t);case hl.Id:return t=>t.featureId;case hl.Concat:{const e=t.args.map((t=>yl(t)));return t=>"".concat(...e.map((e=>e(t).toString())))}case hl.Resolution:return t=>t.resolution;case hl.Any:case hl.All:case hl.Not:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let r=0;r{for(let e=0;e{for(let e=0;e!s[0](t);default:throw new Error(`Unsupported logical operator ${i}`)}}(t);case hl.Equal:case hl.NotEqual:case hl.LessThan:case hl.LessThanOrEqualTo:case hl.GreaterThan:case hl.GreaterThanOrEqualTo:return function(t,e){const i=t.operator,n=yl(t.args[0]),s=yl(t.args[1]);switch(i){case hl.Equal:return t=>n(t)===s(t);case hl.NotEqual:return t=>n(t)!==s(t);case hl.LessThan:return t=>n(t)n(t)<=s(t);case hl.GreaterThan:return t=>n(t)>s(t);case hl.GreaterThanOrEqualTo:return t=>n(t)>=s(t);default:throw new Error(`Unsupported comparison operator ${i}`)}}(t);case hl.Multiply:case hl.Divide:case hl.Add:case hl.Subtract:case hl.Clamp:case hl.Mod:case hl.Pow:case hl.Abs:case hl.Floor:case hl.Ceil:case hl.Round:case hl.Sin:case hl.Cos:case hl.Atan:case hl.Sqrt:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let r=0;r{let e=1;for(let i=0;is[0](t)/s[1](t);case hl.Add:return t=>{let e=0;for(let i=0;is[0](t)-s[1](t);case hl.Clamp:return t=>{const e=s[0](t),i=s[1](t);if(en?n:e};case hl.Mod:return t=>s[0](t)%s[1](t);case hl.Pow:return t=>Math.pow(s[0](t),s[1](t));case hl.Abs:return t=>Math.abs(s[0](t));case hl.Floor:return t=>Math.floor(s[0](t));case hl.Ceil:return t=>Math.ceil(s[0](t));case hl.Round:return t=>Math.round(s[0](t));case hl.Sin:return t=>Math.sin(s[0](t));case hl.Cos:return t=>Math.cos(s[0](t));case hl.Atan:return 2===n?t=>Math.atan2(s[0](t),s[1](t)):t=>Math.atan(s[0](t));case hl.Sqrt:return t=>Math.sqrt(s[0](t));default:throw new Error(`Unsupported numeric operator ${i}`)}}(t);case hl.Match:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s{const e=n[0](t);for(let s=1;s{const e=n[0](t),s=n[1](t);let r,o;for(let a=2;a=s)return 2===a?l:h?vl(e,s,r,o,i,l):xl(e,s,r,o,i,l);r=i,o=l}return o}}(t);default:throw new Error(`Unsupported operator ${i}`)}}function xl(t,e,i,n,s,r){const o=s-i;if(0===o)return n;const a=e-i;return n+(1===t?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1))*(r-n)}function vl(t,e,i,n,s,r){if(0==s-i)return n;const o=we(n),a=we(r);let l=a[2]-o[2];return l>180?l-=360:l<-180&&(l+=360),Ee(function(t){const e=$t.rgb(ee.xyz(t));return e[3]=t[3],e}([xl(t,e,i,o[0],s,a[0]),xl(t,e,i,o[1],s,a[1]),o[2]+xl(t,e,i,0,s,l),xl(t,e,i,n[3],s,r[3])]))}function wl(t){return!0}function Cl(t){const e=al(),i=function(t,e){const i=t.length,n=new Array(i);for(let s=0;s4)throw new Error(`Expected a color with 3 or 4 values for ${e}`);return i}const jl="renderOrder",Yl=class extends Xn{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=void 0!==t.declutter&&t.declutter,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(jl)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new fa(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(jl,t)}setStyle(t){this.style_=function(t){if(void 0===t)return no;if(!t)return null;if("function"==typeof t)return t;if(t instanceof ro)return t;if(!Array.isArray(t))return Sl([t]);if(0===t.length)return[];const e=t.length,i=t[0];if(i instanceof ro){const i=new Array(e);for(let n=0;no&&(this.instructions.push([Ul.CUSTOM,o,l,t,i,mn]),this.hitDetectionInstructions.push([Ul.CUSTOM,o,l,t,n||i,mn]));break;case"Point":a=t.getFlatCoordinates(),this.coordinates.push(a[0],a[1]),l=this.coordinates.length,this.instructions.push([Ul.CUSTOM,o,l,t,i]),this.hitDetectionInstructions.push([Ul.CUSTOM,o,l,t,n||i])}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[Ul.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Ul.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const i=t.length;let n,s,r=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(t){const e=t.fillStyle,i=[Ul.SET_FILL_STYLE,e];return"string"!=typeof e&&i.push(!0),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[Ul.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;"string"==typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){const i=t.strokeStyle,n=t.lineCap,s=t.lineDash,r=t.lineDashOffset,o=t.lineJoin,a=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||s!=t.currentLineDash&&!E(t.currentLineDash,s)||t.currentLineDashOffset!=r||t.currentLineJoin!=o||t.currentLineWidth!=a||t.currentMiterLimit!=l)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=s,t.currentLineDashOffset=r,t.currentLineJoin=o,t.currentLineWidth=a,t.currentMiterLimit=l)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[Ul.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=vt(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;xt(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}},Ql=class extends Jl{constructor(t,e,i,n){super(t,e,i,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),s=this.coordinates.length,r=this.appendFlatPointCoordinates(i,n);this.instructions.push([Ul.DRAW_IMAGE,s,r,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Ul.DRAW_IMAGE,s,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),s=this.coordinates.length,r=this.appendFlatPointCoordinates(i,n);this.instructions.push([Ul.DRAW_IMAGE,s,r,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Ul.DRAW_IMAGE,s,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){const i=t.getAnchor(),n=t.getSize(),s=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}},$l=class extends Jl{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinates_(t,e,i,n){const s=this.coordinates.length,r=this.appendFlatLineCoordinates(t,e,i,n,!1,!1),o=[Ul.MOVE_TO_LINE_TO,s,r];return this.instructions.push(o),this.hitDetectionInstructions.push(o),i}drawLineString(t,e){const i=this.state,n=i.strokeStyle,s=i.lineWidth;if(void 0===n||void 0===s)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Ul.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,rs,0],Kl);const r=t.getFlatCoordinates(),o=t.getStride();this.drawFlatCoordinates_(r,0,r.length,o),this.hitDetectionInstructions.push(Vl),this.endGeometry(e)}drawMultiLineString(t,e){const i=this.state,n=i.strokeStyle,s=i.lineWidth;if(void 0===n||void 0===s)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Ul.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,rs,0],Kl);const r=t.getEnds(),o=t.getFlatCoordinates(),a=t.getStride();let l=0;for(let h=0,c=r.length;h=t){const e=(t-a+u)/u,d=de(i,h,e),g=de(n,c,e);l.push(d,g),r.push(l),l=[d,g],a==t&&(o+=s),a=0}else if(a0&&r.push(l),r}function ih(t,e,i,n,s){let r,o,a,l,h,c,u,d,g,f,_=i,p=i,m=0,y=0,x=i;for(o=i;ot&&(y>m&&(m=y,_=x,p=o),y=0,x=o-s)),a=l,u=g,d=f),h=i,c=n}return y+=l,y>m?[x,o]:[_,p]}const nh={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},sh={Circle:th,Default:Jl,Image:Ql,LineString:$l,Polygon:th,Text:class extends Jl{constructor(t,e,i,n){super(t,e,i,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[ns]={fillStyle:ns},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e){const i=this.textFillState_,n=this.textStrokeState_,s=this.textState_;if(""===this.text_||!s||!i&&!n)return;const r=this.coordinates;let o=r.length;const a=t.getType();let l=null,h=t.getStride();if("line"!==s.placement||"LineString"!=a&&"MultiLineString"!=a&&"Polygon"!=a&&"MultiPolygon"!=a){let i=s.overflow?null:[];switch(a){case"Point":case"MultiPoint":l=t.getFlatCoordinates();break;case"LineString":l=t.getFlatMidpoint();break;case"Circle":l=t.getCenter();break;case"MultiLineString":l=t.getFlatMidpoints(),h=2;break;case"Polygon":l=t.getFlatInteriorPoint(),s.overflow||i.push(l[2]/this.resolution),h=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();l=[];for(let t=0,n=e.length;t{const n=r[2*(t+i)]===l[i*h]&&r[2*(t+i)+1]===l[i*h+1];return n||--t,n}))}this.saveTextStates_(),(s.backgroundFill||s.backgroundStroke)&&(this.setFillStrokeStyle(s.backgroundFill,s.backgroundStroke),s.backgroundFill&&this.updateFillStyle(this.state,this.createFill),s.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let c=s.padding;if(c!=cs&&(s.scale[0]<0||s.scale[1]<0)){let t=s.padding[0],e=s.padding[1],i=s.padding[2],n=s.padding[3];s.scale[0]<0&&(e=-e,n=-n),s.scale[1]<0&&(t=-t,i=-i),c=[t,e,i,n]}const u=this.pixelRatio;this.instructions.push([Ul.DRAW_IMAGE,o,n,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,c==cs?cs:c.map((function(t){return t*u})),!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]);const d=1/u,g=this.state.fillStyle;s.backgroundFill&&(this.state.fillStyle=ns,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([Ul.DRAW_IMAGE,o,n,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[d,d],NaN,void 0,this.declutterImageWithText_,c,!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?ns:this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]),s.backgroundFill&&(this.state.fillStyle=g,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}else{if(!qt(this.getBufferedMaxExtent(),t.getExtent()))return;let i;if(l=t.getFlatCoordinates(),"LineString"==a)i=[l.length];else if("MultiLineString"==a)i=t.getEnds();else if("Polygon"==a)i=t.getEnds().slice(0,1);else if("MultiPolygon"==a){const e=t.getEndss();i=[];for(let t=0,n=e.length;tt[2]}else R=v>b;const I=Math.PI,M=[],A=C+n===e;let L;if(p=0,m=S,d=t[e=C],g=t[e+1],A){y(),L=Math.atan2(g-_,d-f),R&&(L+=L>0?-I:I);const t=(b+v)/2,e=(T+w)/2;return M[0]=[t,e,(E-r)/2,L,s],M}for(let P=0,F=(s=s.replace(/\n/g," ")).length;P0?-I:I),void 0!==L){let e=t-L;if(e+=e>I?-2*I:e<-I?2*I:0,Math.abs(e)>o)return null}L=t;const u=P;let v=0;for(;P0&&t.push("\n",""),t.push(e,""),t}const ph=class{constructor(t,e,i,n){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}createLabel(t,e,i,n){const s=t+e+i+n;if(this.labels_[s])return this.labels_[s];const r=n?this.strokeStates[n]:null,o=i?this.fillStates[i]:null,a=this.textStates[e],l=this.pixelRatio,h=[a.scale[0]*l,a.scale[1]*l],c=Array.isArray(t),u=a.justify?nh[a.justify]:fh(Array.isArray(t)?t[0]:t,a.textAlign||ls),d=n&&r.lineWidth?r.lineWidth:0,g=c?t:t.split("\n").reduce(_h,[]),{width:f,height:_,widths:p,heights:m,lineWidths:y}=function(t,e){const i=[],n=[],s=[];let r=0,o=0,a=0,l=0;for(let h=0,c=e.length;h<=c;h+=2){const u=e[h];if("\n"===u||h===c){r=Math.max(r,o),s.push(o),o=0,a+=l;continue}const d=e[h+1]||t.font,g=ys(d,u);i.push(g),o+=g;const f=ps(d);n.push(f),l=Math.max(l,f)}return{width:r,height:a,widths:i,heights:n,lineWidths:s}}(a,g),x=f+d,v=[],w=(x+2)*h[0],C=(_+d)*h[1],S={width:w<0?Math.floor(w):Math.ceil(w),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:v};1==h[0]&&1==h[1]||v.push("scale",h),n&&(v.push("strokeStyle",r.strokeStyle),v.push("lineWidth",d),v.push("lineCap",r.lineCap),v.push("lineJoin",r.lineJoin),v.push("miterLimit",r.miterLimit),v.push("setLineDash",[r.lineDash]),v.push("lineDashOffset",r.lineDashOffset)),i&&v.push("fillStyle",o.fillStyle),v.push("textBaseline","middle"),v.push("textAlign","center");const E=.5-u;let b=u*x+E*d;const T=[],R=[];let I,M=0,A=0,L=0,P=0;for(let F=0,k=g.length;Ft?t-l:s,x=r+h>e?e-h:r,v=g[3]+y*u[0]+g[1],w=g[0]+x*u[1]+g[2],C=p-g[3],S=m-g[0];let E;return(f||0!==c)&&(lh[0]=C,uh[0]=C,lh[1]=S,hh[1]=S,hh[0]=C+v,ch[0]=hh[0],ch[1]=S+w,uh[1]=ch[1]),0!==c?(E=gt([1,0,0,1,0,0],i,n,1,1,c,-i,-n),dt(E,lh),dt(E,hh),dt(E,ch),dt(E,uh),Tt(Math.min(lh[0],hh[0],ch[0],uh[0]),Math.min(lh[1],hh[1],ch[1],uh[1]),Math.max(lh[0],hh[0],ch[0],uh[0]),Math.max(lh[1],hh[1],ch[1],uh[1]),ah)):Tt(Math.min(C,C+v),Math.min(S,S+w),Math.max(C,C+v),Math.max(S,S+w),ah),d&&(p=Math.round(p),m=Math.round(m)),{drawImageX:p,drawImageY:m,drawImageW:y,drawImageH:x,originX:l,originY:h,declutterBox:{minX:ah[0],minY:ah[1],maxX:ah[2],maxY:ah[3],value:_},canvasTransform:E,scale:u}}replayImageOrLabel_(t,e,i,n,s,r,o){const a=!(!r&&!o),l=n.declutterBox,h=t.canvas,c=o?o[2]*n.scale[0]/2:0;return l.minX-c<=h.width/e&&l.maxX+c>=0&&l.minY-c<=h.height/e&&l.maxY+c>=0&&(a&&this.replayTextBackground_(t,lh,hh,ch,uh,r,o),vs(t,n.canvasTransform,s,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){if(this.alignFill_){const e=dt(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,n){const s=this.textStates[e],r=this.createLabel(t,e,n,i),o=this.strokeStates[i],a=this.pixelRatio,l=fh(Array.isArray(t)?t[0]:t,s.textAlign||ls),h=nh[s.textBaseline||hs],c=o&&o.lineWidth?o.lineWidth:0;return{label:r,anchorX:l*(r.width/a-2*s.scale[0])+2*(.5-l)*c,anchorY:h*r.height/a+2*(.5-h)*c}}execute_(t,e,i,n,s,r,o,a){let l;var h,c;this.pixelCoordinates_&&E(i,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=nn(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),h=this.renderedTransform_,c=i,h[0]=c[0],h[1]=c[1],h[2]=c[2],h[3]=c[3],h[4]=c[4],h[5]=c[5]);let u=0;const d=n.length;let g,f,_,p,m,y,x,v,w,C,S,b,T=0,R=0,I=0,M=null,A=null;const L=this.coordinateCache_,P=this.viewRotation_,F=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,k={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:P},O=this.instructions!=n||this.overlaps?0:200;let D,G,z,N;for(;uO&&(this.fill_(t),R=0),I>O&&(t.stroke(),I=0),R||I||(t.beginPath(),p=NaN,m=NaN),++u;break;case Ul.CIRCLE:T=i[1];const n=l[T],h=l[T+1],c=l[T+2]-n,d=l[T+3]-h,E=Math.sqrt(c*c+d*d);t.moveTo(n+E,h),t.arc(n,h,E,0,2*Math.PI,!0),++u;break;case Ul.CLOSE_PATH:t.closePath(),++u;break;case Ul.CUSTOM:T=i[1],g=i[2];const W=i[3],X=i[4],j=6==i.length?i[5]:void 0;k.geometry=W,k.feature=D,u in L||(L[u]=[]);const Y=L[u];j?j(l,T,g,2,Y):(Y[0]=l[T],Y[1]=l[T+1],Y.length=2),X(Y,k),++u;break;case Ul.DRAW_IMAGE:T=i[1],g=i[2],v=i[3],f=i[4],_=i[5];let Z=i[6];const B=i[7],V=i[8],K=i[9],q=i[10];let U=i[11];const H=i[12];let J=i[13];const Q=i[14],$=i[15];if(!v&&i.length>=20){w=i[19],C=i[20],S=i[21],b=i[22];const t=this.drawLabelWithPointPlacement_(w,C,S,b);v=t.label,i[3]=v;const e=i[23];f=(t.anchorX-e)*this.pixelRatio,i[4]=f;const n=i[24];_=(t.anchorY-n)*this.pixelRatio,i[5]=_,Z=v.height,i[6]=Z,J=v.width,i[13]=J}let tt,et,it,nt;i.length>25&&(tt=i[25]),i.length>17?(et=i[16],it=i[17],nt=i[18]):(et=cs,it=!1,nt=!1),q&&F?U+=P:q||F||(U-=P);let st=0;for(;Ti)break;let a=n[o];a||(a=[],n[o]=a),a.push(4*((t+r)*e+(t+s))+3),r>0&&a.push(4*((t-r)*e+(t+s))+3),s>0&&(a.push(4*((t+r)*e+(t-s))+3),r>0&&a.push(4*((t-r)*e+(t-s))+3))}const s=[];for(let r=0,o=n.length;r0){if(!r||"Image"!==d&&"Text"!==d||r.includes(t)){const i=(u[a]-3)/4,r=n-i%o,l=n-(i/o|0),h=s(t,e,r*r+l*l);if(h)return h}h.clearRect(0,0,o,o);break}}const f=Object.keys(this.executorsByZIndex_).map(Number);let _,p,m,y,x;for(f.sort(v),_=f.length-1;_>=0;--_){const t=f[_].toString();for(m=this.executorsByZIndex_[t],p=mh.length-1;p>=0;--p)if(d=mh[p],y=m[d],void 0!==y&&(x=y.executeHitDetection(h,a,i,g,c),x))return x}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],n=e[1],s=e[2],r=e[3],o=[i,n,i,r,s,r,s,n];return nn(o,0,8,2,t,o),o}isEmpty(){return A(this.executorsByZIndex_)}execute(t,e,i,n,s,r,o){const a=Object.keys(this.executorsByZIndex_).map(Number);let l,h,c,u,d,g;for(a.sort(v),this.maxExtent_&&(t.save(),this.clip(t,i)),r=r||mh,o&&a.reverse(),l=0,h=a.length;lt*this.pixelRatio_)),lineDashOffset:(s||0)*this.pixelRatio_,lineJoin:void 0!==r?r:os,lineWidth:(void 0!==o?o:1)*this.pixelRatio_,miterLimit:void 0!==a?a:10,strokeStyle:Vr(t||as)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),s=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*i,this.imageAnchorY_=n[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=s[0],this.imageOriginY_=s[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const r=t.getScaleArray();this.imageScale_=[r[0]*this.pixelRatio_/i,r[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:Vr(t||ns)}}else this.textFillState_=null;const i=t.getStroke();if(i){const t=i.getColor(),e=i.getLineCap(),n=i.getLineDash(),s=i.getLineDashOffset(),r=i.getLineJoin(),o=i.getWidth(),a=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:ss,lineDash:n||rs,lineDashOffset:s||0,lineJoin:void 0!==r?r:os,lineWidth:void 0!==o?o:1,miterLimit:void 0!==a?a:10,strokeStyle:Vr(t||as)}}else this.textStrokeState_=null;const n=t.getFont(),s=t.getOffsetX(),r=t.getOffsetY(),o=t.getRotateWithView(),a=t.getRotation(),l=t.getScaleArray(),h=t.getText(),c=t.getTextAlign(),u=t.getTextBaseline();this.textState_={font:void 0!==n?n:is,textAlign:void 0!==c?c:ls,textBaseline:void 0!==u?u:hs},this.text_=void 0!==h?Array.isArray(h)?h.reduce(((t,e,i)=>t+(i%2?" ":e)),""):h:"",this.textOffsetX_=void 0!==s?this.pixelRatio_*s:0,this.textOffsetY_=void 0!==r?this.pixelRatio_*r:0,this.textRotateWithView_=void 0!==o&&o,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=""}},wh=.5,Ch=.5,Sh={Point:function(t,e,i,n,s){const r=i.getImage(),o=i.getText();let a;if(r){if(r.getImageState()!=jr)return;let l=t;if(s){const h=r.getDeclutterMode();if("none"!==h)if(l=s,"obstacle"===h){const s=t.getBuilder(i.getZIndex(),"Image");s.setImageStyle(r,a),s.drawPoint(e,n)}else o&&o.getText()&&(a={})}const h=l.getBuilder(i.getZIndex(),"Image");h.setImageStyle(r,a),h.drawPoint(e,n)}if(o&&o.getText()){let r=t;s&&(r=s);const l=r.getBuilder(i.getZIndex(),"Text");l.setTextStyle(o,a),l.drawText(e,n)}},LineString:function(t,e,i,n,s){const r=i.getStroke();if(r){const s=t.getBuilder(i.getZIndex(),"LineString");s.setFillStrokeStyle(null,r),s.drawLineString(e,n)}const o=i.getText();if(o&&o.getText()){const r=(s||t).getBuilder(i.getZIndex(),"Text");r.setTextStyle(o),r.drawText(e,n)}},Polygon:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(r||o){const s=t.getBuilder(i.getZIndex(),"Polygon");s.setFillStrokeStyle(r,o),s.drawPolygon(e,n)}const a=i.getText();if(a&&a.getText()){const r=(s||t).getBuilder(i.getZIndex(),"Text");r.setTextStyle(a),r.drawText(e,n)}},MultiPoint:function(t,e,i,n,s){const r=i.getImage(),o=i.getText();let a;if(r){if(r.getImageState()!=jr)return;let l=t;if(s){const h=r.getDeclutterMode();if("none"!==h)if(l=s,"obstacle"===h){const s=t.getBuilder(i.getZIndex(),"Image");s.setImageStyle(r,a),s.drawMultiPoint(e,n)}else o&&o.getText()&&(a={})}const h=l.getBuilder(i.getZIndex(),"Image");h.setImageStyle(r,a),h.drawMultiPoint(e,n)}if(o&&o.getText()){let r=t;s&&(r=s);const l=r.getBuilder(i.getZIndex(),"Text");l.setTextStyle(o,a),l.drawText(e,n)}},MultiLineString:function(t,e,i,n,s){const r=i.getStroke();if(r){const s=t.getBuilder(i.getZIndex(),"LineString");s.setFillStrokeStyle(null,r),s.drawMultiLineString(e,n)}const o=i.getText();if(o&&o.getText()){const r=(s||t).getBuilder(i.getZIndex(),"Text");r.setTextStyle(o),r.drawText(e,n)}},MultiPolygon:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(o||r){const s=t.getBuilder(i.getZIndex(),"Polygon");s.setFillStrokeStyle(r,o),s.drawMultiPolygon(e,n)}const a=i.getText();if(a&&a.getText()){const r=(s||t).getBuilder(i.getZIndex(),"Text");r.setTextStyle(a),r.drawText(e,n)}},GeometryCollection:function(t,e,i,n,s){const r=e.getGeometriesArray();let o,a;for(o=0,a=r.length;o{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=[this.context.canvas.width,this.context.canvas.height];dt(this.pixelTransform,t);const e=this.renderedCenter_,i=this.renderedResolution_,n=this.renderedRotation_,s=this.renderedProjection_,r=this.wrappedRenderedExtent_,o=this.getLayer(),a=[],l=t[0]*wh,h=t[1]*wh;a.push(this.getRenderTransform(e,i,n,wh,l,h,0).slice());const c=o.getSource(),u=s.getExtent();if(c.getWrapX()&&s.canWrapX()&&!St(u,r)){let t=r[0];const s=Kt(u);let o,c=0;for(;tu[2];)++c,o=s*c,a.push(this.getRenderTransform(e,i,n,wh,l,h,o).slice()),t-=s}this.hitDetectionImageData_=function(t,e,i,n,s,r,o){const a=Qn(t[0]*wh,t[1]*wh);a.imageSmoothingEnabled=!1;const l=a.canvas,h=new vh(a,wh,s,null,o),c=i.length,u=Math.floor(16777215/c),d={};for(let f=1;f<=c;++f){const t=i[f-1],e=t.getStyleFunction()||n;if(!e)continue;let o=e(t,r);if(!o)continue;Array.isArray(o)||(o=[o]);const a=(f*u).toString(16).padStart(7,"#00000");for(let i=0,n=o.length;ic=n.forEachFeatureAtCoordinate(t,r,o,i,h,n===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((t=>t.value)):null))),c}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const n=t.viewHints[Ze],s=t.viewHints[Be],r=e.getUpdateWhileAnimating(),o=e.getUpdateWhileInteracting();if(this.ready&&!r&&n||!o&&s)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const a=t.extent,l=t.viewState,h=l.projection,c=l.resolution,u=t.pixelRatio,d=e.getRevision(),g=e.getRenderBuffer();let f=e.getRenderOrder();void 0===f&&(f=Eh);const _=l.center.slice(),p=xt(a,g*c),m=p.slice(),y=[p.slice()],x=h.getExtent();if(i.getWrapX()&&h.canWrapX()&&!St(x,t.extent)){const t=Kt(x),e=Math.max(Kt(p)/2,t);p[0]=x[0]-e,p[2]=x[2]+e,_i(_,h);const i=Jt(y[0],h);i[0]x[0]&&i[2]>x[2]&&y.push([i[0]-t,i[1],i[2]-t,i[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==d&&this.renderedRenderOrder_==f&&St(this.wrappedRenderedExtent_,p))return E(this.renderedExtent_,m)||(this.hitDetectionImageData_=null,this.renderedExtent_=m),this.renderedCenter_=_,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const v=new rh(bh(c,u),p,c,u);let w;this.getLayer().getDeclutter()&&(w=new rh(bh(c,u),p,c,u));const C=Oi();let S;if(C){for(let t=0,e=y.length;t{let i;const n=t.getStyleFunction()||e.getStyleFunction();if(n&&(i=n(t,c)),i){const e=this.renderFeature(t,b,i,v,S,w);T=T&&!e}},I=Ni(p,h),M=i.getFeaturesInExtent(I);f&&M.sort(f);for(let E=0,P=M.length;E(Di(),{mainMap:void 0,markers:new Ba,view:new Nn({center:Ah,zoom:10,maxZoom:21}),locateIcon:s}),watch:{results(t){if(void 0===this.mainMap)throw Error("MainMap not initialized");if(console.log(t),this.markers.clear(),t.forEach((t=>{this.addMarker(t)})),0!=t.length){var e=void 0;t.forEach((t=>{console.log(t);const i=t.bbox;void 0===e?e=i:void 0!==i&&Lt(e,i)})),this.view.fit(e),this.view.setZoom(.9*this.view.getZoom())}}},mounted(){Di(),this.mainMap=new Nr({layers:[new Lo({source:new ia})],target:"map-element"}),this.mainMap.setView(this.view);const t=new Mh;t.setSource(this.markers),this.mainMap.addLayer(t),this.mainMap.on("click",this.onMapClick);const e=document.createElement("div");e.className="ol-control ol-unselectable locate-control",e.innerHTML='';const i=this;e.addEventListener("click",(function(){i.geolocate()})),this.mainMap.addControl(new Us({element:e}))},methods:{async geolocate(){console.log("TODO")},addMarker(t,e){const i=e||t.geometry.coordinates,n=this.displayName(t),s=this.createMarker(i,n,t);this.markers.addFeature(s)},createMarker(t,e,i=void 0){const n=new sa(new En(t));n.set("meta",i);const s=new ro({image:new ha({anchor:[.5,0],anchorXUnits:"fraction",anchorYUnits:"pixels",anchorOrigin:"bottom-left",size:[60,97],scale:.45,opacity:1,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAABhCAYAAACK7MJbAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAHdElNRQfnDBgLHwUmrQYbAAAOsElEQVR42t2ceXBVdZbHP+d3730rZDMQZI0EQQdENo1IHFoUGhkVbSm3nrKZnpqhpihLq3umm7Kq/7DLqtGZmp6xlW6nx7Fpq8elXVoZEBWwEQHZhIAmrAlhMUA2YraXt9x75o8HFEoCecl9STvfqleV997vnnc+9+Te+/ud3+/8hD7IS6X4/M47mbxmDTsmT8br7KTz2DEiEybkqetejedNA6YC4xEZhcgVqEYBB1BE4qi2oVoHHAX2IbJbjNkroVB1/OjRdjs/HysaZd/u3cz88Y8pefppjOP02mfpFajrUn7rreTPmUPdH/6A29aGnZeXo6nUNFTnAbechSwA7AzNx1GtB/YBGxBZb0Khz5NNTR1WOMyMykrKy8qYunEjxrKyC+y5LpUPPsjpN95g0LXXkmppwcnPH6GuezfwADAdkUG9Pv1dSfUMsA14DWPWeO3tdSYcprOmhiH33881L72UEXiPgdV12Tp+PCYUwovFMKFQoXrewyLyt4hcl+nJ64VcVHer6otiWW948XiTFYngdXRQevAgYkyPjPSo1cFHH2VTURFiDMZxLAkE7kT1HTHmPxCZ3A+wABYiM8SY5XjeW8a251uRiMEYNg8bRtVPf+oP8GczZwLg5OWBZQ11OzufEZH/QWRWP4F2Bf4dRF5LNTf/s1jWECsnB7FtdpaWXvbgSzpcPm8eXkcH8dpaTCAwGfg3jLl9ACC7l+d9qPBPmkjsdYYOxQqHmfqnP3XbvNsI7ywtxW1vp23PHsRx5iDy6p8dLIAx80TkVXGcW2OHDuElEuwqK+u2eZcR3j5pEmLbJOrrsQcPvgORFxAZPdBsl5TqUVT/IdncvCZUXIxxHKZ98snF5+ebH1Q+8giBYcNItbZiRaO3fStgAUTGIPKCnZs7J3HqFLmzZ3PoRz+6uNmFb7xUis1Dh2IXFCCWNVWMeQWRawaaJSOpVqrnPYTr7k21tDDr1KmvPbLOA6vn8enYselumzHDROQVjLl1oP3vlTxvHfB99bw6dV1uOngQOds5OY/++d13Y0UiSDDoIPLEtxYWwJjbFZZZ4bBlhcPsveuu818JpLuML1sW44uLMaHQIhFZgUh0oP3uk1RbVfURTSTeaayuZoHrYiwrDbx90iS8ZBIxZgSwEpFpA+2vL/K8HQoL8byTYtuUVlZiPNfFGTKE+MmToPrD/zewAMbcAPxNoq6O4IgReK6LbL/uOrx4HLGsq4H3ERk70H76KtXDqjofz6sywSAmp7SUZGMjqD6QVVhV1HXTL89Lv86+RzV7wCLjBB5MNjSQW1aGbLv2WsSyitR1P0Dket9/0PNAhMCwYUSuuYZwSQl2fj4AqTNniFVV0bF/P4lTp9LgPRzmZXiyy8Wy5qvrnra9RAITCJQBf+H773ge4eJihixaRP5ttxEcMQL5RnpGk0niX37JmfXrqX/zTWI1NT0e22agieq6ZV4i8Zb1j/fdJ/Hjxx9H5AYfzygYQ+GCBVz185+TP2cOdl7e+Yf/hRLLws7LY/C0aeSWleE2NxOrqkrbEJ9GnyIW0JJTWrra+kEqNRzPW4ZIkW/AxlD08MOMXraMwNChPT7Mzssjd9YsvI4O2r/4wjd3ziqQrKt712gqNQkY45dV9TwK5s1j5GOPYUUz77tY0SgjH3uMgnnzUM/zE3iMuu4kA0xDZLAvJj2P0OjRjFi6tFewF0KPWLqU0OjR6ZueH0onF6cZVP3LSYlQuHAh4ZKSPpsKl5RQuHChf9cxCKqTDdB37wBUcQoLKZg71y8HKZg7F6ew0M/ndIlBZLgvvJ5HeNw4gqNG+QYcHDWK8Lhx/l3LIlcaRHJ9MaZKaMwYTCjkG7AJhQiNGeNfhEVyDaphn4xh5+X5BntOdl6ef9exatgAmU/QdG/Qd2CfbVoGcP1yLNnY6Dvv2YGNX+Zcg0jMF1MixI4cwW1v9w3WbW8nduSIn13MDnN2dq7vtoyhs6oq3Q/2SbGqKjqrqvwbTKg2GVSP+2JMhGRzM01r1vgG3LRmDcnmZj9vWscMsN8vB0WExtWraSsv77OttvJyGlevRvzraQHsM4jsBFI+EZOoq+PEs8+SrK/vtZlkfT0nnn2WRF2dn13LJPBZGljVt9urWBYt27ZR89RTaYczVKKujpqnnqJl27Yux8+9lmojxnxmi+Mc0Hj8C8C/8bAIZ9auJXXmDCMffZTBM2ZcPlKqtO7cyYnnnqN1504/I3tOFSYQOGQtNiZhQqHhiPg7FSpC/MQJmj/+mPiJE5hIBCsaRRzn/F1XXRe3pYW2vXs5+eKLfLl8ObHDh7OR4gH4TbKh4SPZevXViG1PAT5ApOfpiZ5KFfU8rEGDCI0eTXDUKJyCAgCSTU3Ejx+n89gx3La2NKj/kQXVU4jM01Tqc9k5fToY47htbb9D5KFsnNrz4KoXD+iNSd+JswF6Tp73W6eg4O/UdV1ZB0SvugoTDM5H5M1v/ZzSN6V6Rj1voSaTn6QaGjAzDxxAgkEUPlbVtQPtn/+8uloCga0mEmFmbS0mOmECnTU1aCIRA55H9auBdtJH2maBF71YLNlZU4M9aFB6frj4Zz/DikQwgcDHqvrWQPvpo1abSGSLPWgQ161cCVyQvNtUVIQ1eDDiOFMEViEyYqC97ZNUm4F7vGTyY7e5mbKGBuCCFQClBw4QKCqidt++clVdMdD++gD8jjjOFiscZvqOHec/Pg/s5OWRampi+IQJiMh/o7pvoH3uA+xp4FdeR0cy2dhIcOTIi4EBbqioIGfWLNyOjiOq+ivA19R/PwKvGDxjxk4rJ4fJ7733tfXVFz3td0ybhtvRgRhTgOpbiHxnoP3PELYC1TvVdWvUdZlZXf21ry/qtE7fsYPOQ4fwOjubUP0XVFsGmiED2KSq/sKNxWqKf/ITbqysvKjJRcDGsihavBgrGsVEImtV9eWB5sgAeJVY1utWJMKXL72E1UWOvNsO7Kdjx6bHo8aMFWNWIjJxoHkuA1urqvdqMrndbW1l1smTXY6nux2HTdu8mevXrcPr7KxWz3sa1c6BZroErKrqc52HD293Cgu56sknu00eXHKIsmv2bJJ1dWBMCNf9L4z564Fm61Ket07hATyv6dx6rO50SWBNpfi0uBgTDiOWNRGRdxHxZ7bRL6nWq+ct0lRqY7KxkbL6+kuW+VwytSC2zTUrVhAeNw63o6NCPe9fUU0ONOPXeXX5jP37N9q5uRQ99NBla5p6NOreMXXquWdzVFVXiDGLBhoUAM/biMgi9bx6gJsOHLjsIT0C1lSKLaNHYyIRxLanisg7A75oPD2wf0BTqbXx2lpmt7Yi9uVrwnqULRPbpuTppwkOG4b71Ve7VfUXqPozCddrXv2Nk5+/zopEGHrvvT2ChQzXdmyfPBlNJEAkB9VXMWbBANFuU9Xv4bq1qHLT4cM9PjQjYHVdNg0Zgp2fjzjOzSLytq/ru3oG26aq39dEYmV7dTVzUilMD6MLPfyXPn92LIsxTzyBnZfHsf37t6jqr/sVFlDV3xvHec+Ewwy9556MYKGXy5W2Tphwbnlh0dko39xPtAdU9S5c95CXSHDz0aMZm+hViv/GigraDh5EE4nTqD6Dals/wKbU8/7di8UO5ZSWdjkSyhqwsW2ufPjh9GMqEFijqq/3A/CHYtuvWOEw7RUV2L1c6dfrdL+XSrF17FhMMAiWNVFEViFSnCXYJlW9TxOJDYn6em45cybja/ecej1rZWybqZs3EywuJllXV6GqLwBZWdquqr+3cnI2WoMHM2bZsl7Dgg9rLLdPmYIXi6VvYPAuIpevac2MtkpVF+C6B7tK2WSqPs9Lzti1i+MHDuB1dp5W1edQTfiKq/qfbmvrwVBxca9vVL4CG2MYv2BBuqrNtt9V1fU+4n4mIi9b0Sjx2touUzaZypc5Ss912RiNEhw5ErHtBSLyep83P1BNqerfe7HYb185epRfZtij6k6+TLUby2LU449jDRqEFYl8BLzfZ6Oqm0TkjyYc5oezZ/sCCz7W8Huuy+bCwnQprm3fJsa8jUhOL2ETqvoDr7PztTM1Ndxxtm7QD/m2mMJYFtd/+CEmGEQsa5Oq9jrKqvqJGPOeFQoxbskS32DB510avESCT/LyCAwfjnGcucDbGV/L6egu1nj81aYjR3yNLvgYYQATCHD1889jhcOI42xC9aNemNkulvW+CYW4avFiX2EhS/twfES6SMM4zvcQeQWRYI8OVPVQXeJ2dLy459gxlvh0Z75QWVkQNX758vS1bNsfAdszOLQCY1Zb4TA3z5/vO2zWgIcvWUJpZSXJ5uZmVF+jp31s1TcSp0+fzLnpJq5bvTobrmUH2Ng25d/9brpYy5jVqF4+6aR6EpE/OgUFfLV5s+/XblaBASavWkWouJhtlZVHgcuHS3W9nZu7387P58Z92Vt8kNXNgzaEw4TSJbR/Cfxvtx0R1ThwvxePr2yrrsa/Uq+LlbUIA5Q1NJzLiuwCdl6iaYVY1hYTDjP17PKibyWwCYW4Yc8ekg0NbcCqSzR9P3b4cEP+nDkU3HFHVoGzvh/WrrIyEnV1iG1PQnUtIsO+1kC1BZG/0mRyU7y2ltk+VsV0paxGGGDKhg04V1yBnZt7CNjRRZO94jh7TTjMLS3ZX06SdWBj20z/9FPix4/HgQ+6aLI+fuxYy4ilS7P2KLpQ/ndlutDWCRPSf4hsQrUekSEAqLYhssG54gq2LVnSH65kP8KQTtxb0SgmFDoEfH7BV4fFtr8w4TD3pPwprPmzADa2zdhnniF+/HgHcOE2Zttu2LOnITpxYlb6zV2pf34F+PXcudw+bhyIbEE1hkgQkc1bS0pY08fUaybqlwgDPJFMIoEAYlkVwJeoNolIuTgOT2Zza5pvqN8ijEi6nt9165JNTRXAlRIIHLUCAf92cuiB+i3CxraZsm4dserqJPAZUP7C7t0t0UmT/K1Au4z6dedRVWVrSQkmGLwD1aGp1tbf3XzihN8FlZdU//1LA5wt2BLbrgBq7OxUoF1S/wdwognAXQQJHQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0xMi0yNFQxMDo1NTowNiswMDowME2bmQ8AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMTItMjNUMTg6NDY6NDcrMDA6MDCTuGsmAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIzLTEyLTI0VDExOjMxOjA1KzAwOjAwZvOpTQAAAABJRU5ErkJggg=="}),text:new ao({offsetY:10,text:e,scale:1.5,fill:new Qr({color:"#fff"}),stroke:new to({color:"0",width:2})})});return n.setStyle(s),n},displayName(t,e=!1){const i=t.properties;if(!i)return"";if(!i.address){if(i.name&&!e)return i.name;if(i.display_name)return i.display_name}let n="";if(i.addresstype&&i.address[i.addresstype]&&(n=i.address[i.addresstype]),n&&!e)return n;let s="";i.address.road&&(s=i.address.road),i.address.house_number&&(s+=" "+i.address.house_number);let r="";i.address.postcode&&(r=i.address.postcode),i.address.city?r+=" "+i.address.city:i.address.town?r+=" "+i.address.town:i.address.village&&(r+=" "+i.address.village);let o=s+", "+r;return n?n+", "+o:o},nominatimReverseRequest(t){const e={lon:t[0],lat:t[1],format:"geojson",limit:1},i="https://nominatim.openstreetmap.org/reverse?"+Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&");return console.log("URL Request NOMINATIM-Reverse: "+i),fetch(i).then((t=>t.json())).then((t=>t.features[0]))},async onMapClick(t){var e;let i=!1;if(null===(e=this.mainMap)||void 0===e||e.forEachFeatureAtPixel(t.pixel,(t=>{if(console.log(t),t===this.markers.getFeatures()[0]){console.log(t.get("meta")),i=!0;const e=t.get("meta").geometry.coordinates.map((t=>parseFloat(t)));this.nominatimReverseRequest(e).then((e=>{console.log(e),t.set("meta",e),this.$emit("addressSelected",e)}))}})),i)return;console.log("evt.coordinate: "+t.coordinate);const n=Pi(t.coordinate,"EPSG:3857","EPSG:4326");console.log("Mouse Click coordinates: "+n);const s=t.coordinate;this.nominatimReverseRequest(s).then((t=>{if(console.log(t),this.displayName(t),this.$emit("addressSelected",t),this.markers.clear(),!t.geometry||"Point"!==t.geometry.type)return console.warn("Feature is not a Point"),void console.warn(t);this.addMarker(t,s)})).catch((t=>{console.log(t)}))}},ionViewWillEnter(){},ionViewDidEnter(){var t;null===(t=this.mainMap)||void 0===t||t.updateSize(),this.markers.changed()}},[["render",function(t,e,i,n,s,r){return o(),a("div",Lh)}]]),IonSearchbar:l},emits:["update:modelValue"],props:{modelValue:String},data:()=>({address:"",results:[],locateIcon:s}),watch:{address(t){this.$emit("update:modelValue",t)},modelValue(t){t!==this.address&&(this.address=t,this.search(t))}},methods:{setAddress(t){this.address=this.$refs.map.displayName(t,!0)},onSearch(t){console.log(),this.$emit("update:modelValue",t.detail.value),this.search(t.detail.value)},search(t){fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(t)}&format=geojson&countrycodes=de`).then((t=>t.json())).then((t=>{console.log(t),this.results=t.features}))}},mounted(){this.modelValue&&(this.address=this.modelValue,this.search(this.address))}},[["render",function(t,e,i,n,s,r){const l=h("Map"),d=h("ion-searchbar");return o(),a("div",Ph,[c(l,{ref:"map",class:"map",onAddressSelected:r.setAddress,results:s.results},null,8,["onAddressSelected","results"]),u("div",Fh,[c(d,{color:"light",class:"searchbar",value:s.address,placeholder:"Adresse suchen",onIonChange:r.onSearch},null,8,["value","onIonChange"])])])}],["__scopeId","data-v-3c60a885"]]);t("default",d({__name:"RAEditLocation",setup(t){const e=i();return(t,i)=>(o(),g(p,null,{default:f((()=>[c(kh,{modelValue:_(e).address,"onUpdate:modelValue":i[0]||(i[0]=t=>_(e).address=t)},null,8,["modelValue"])])),_:1}))}}))}}})); diff --git a/ra/assets/RAEditOverview-iBe6H-Vh.js b/ra/assets/RAEditOverview-iBe6H-Vh.js new file mode 100644 index 0000000..8f8aaee --- /dev/null +++ b/ra/assets/RAEditOverview-iBe6H-Vh.js @@ -0,0 +1 @@ +import{d as x,o as n,c as o,f as e,X as R,n as r,_ as V,e as D,Z as S,$ as z,w as a,b as t,h as T,j as l,r as c,a0 as B,l as u,D as w,a1 as C,N as L,a2 as N,a3 as P,a4 as j,i as y,a5 as F,g as i,F as d,V as G,a6 as q,t as b,a7 as M,a8 as O,I as U,a9 as $,aa as H,a as I}from"./index-DYrAM6VV.js";import{u as Q,a as X}from"./riskassessment-gvIk_m2h.js";import{l as Z}from"./livequery-N-IbBJej.js";import{T as J}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./helpers-ZGJup-tE.js";import"./liveriskstree-S1mQ308m.js";const K=x({__name:"Checkmark",setup(h){return(v,s)=>(n(),o(e(r),{class:"checkmark",slot:"end",color:"success",icon:e(R)},null,8,["icon"]))}}),k=V(K,[["__scopeId","data-v-b74799a7"]]),W=h=>($("data-v-9c2bb659"),h=h(),H(),h),Y=W(()=>I("ul",{class:"nested-list",lines:"none"},[I("li",{class:"ion-no-padding ion-no-margin nested-list-item",lines:"none"},"TEst"),I("li",{class:"ion-no-padding ion-no-margin nested-list-item",lines:"none"},"TEst")],-1)),ee={key:1,class:"nested-list ion-no-padding",lines:"none"},se={class:"ion-no-padding ion-no-margin nested-list-item",lines:"none",size:"small"},te=x({__name:"RAEditOverview",setup(h){const v=Z.table("technicians"),s=Q(),A=D(()=>v.isReady().value?s.technicians.map(_=>v.get(_)):[]),m="/riskassessment/"+s.id,E=X(),g=S({direct:-1,all:-1,solved:-1});return z(E,async()=>{await s.ready,g.direct=s.risks.length;const _=await s.calcAllRisks();g.all=_.length,g.solved=_.filter(p=>s.measures[p]!==void 0&&s.measures[p].length>0).length}),(_,p)=>(n(),o(J,null,{default:a(()=>[t(e(U),{lines:"full"},{default:a(()=>[t(e(T),null,{default:a(()=>[l(" Allgemeines ")]),_:1}),t(e(c),null,{default:a(()=>[t(e(r),{slot:"start",icon:e(B)},null,8,["icon"]),e(s).company?(n(),o(k,{key:0})):u("",!0),t(e(w),{label:"Ausführende Firma","label-placement":"floating",modelValue:e(s).company,"onUpdate:modelValue":p[0]||(p[0]=f=>e(s).company=f)},null,8,["modelValue"])]),_:1}),t(e(c),null,{default:a(()=>[t(e(r),{slot:"start",icon:e(C)},null,8,["icon"]),e(s).jobDescr?(n(),o(k,{key:0})):u("",!0),t(e(L),{label:"Beschreibung der Tätigkeit","label-placement":"floating","auto-grow":"",modelValue:e(s).jobDescr,"onUpdate:modelValue":p[1]||(p[1]=f=>e(s).jobDescr=f)},null,8,["modelValue"])]),_:1}),t(e(c),null,{default:a(()=>[t(e(r),{slot:"start",icon:e(N)},null,8,["icon"]),e(s).address?(n(),o(k,{key:0})):u("",!0),t(e(w),{"router-link":m+"/location",label:"Addresse","label-placement":"floating",readonly:"",value:e(s).address},null,8,["router-link","value"])]),_:1}),t(e(c),null,{default:a(()=>[t(e(r),{slot:"start",icon:e(P)},null,8,["icon"]),e(s).startDate?(n(),o(k,{key:0})):u("",!0),t(e(w),{"router-link":m+"/date",label:"Datum","label-placement":"floating",readonly:"",value:e(s).startDate+(e(s).endDate?" - "+e(s).endDate:"")},null,8,["router-link","value"])]),_:1}),t(e(c),{"router-link":m+"/equipment",detail:!1},{default:a(()=>[t(e(r),{slot:"start",icon:e(j)},null,8,["icon"]),e(s).equipment?(n(),o(k,{key:0})):u("",!0),t(e(y),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:a(()=>[l("Ausrüstung")]),_:1}),Y]),_:1},8,["router-link"]),t(e(c),{"router-link":m+"/technicians",detail:!1},{default:a(()=>[t(e(r),{slot:"start",icon:e(F)},null,8,["icon"]),e(s).technicians.length>0?(n(),o(k,{key:0})):u("",!0),t(e(y),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:a(()=>[l("Personal")]),_:1}),e(s).technicians.length>0?(n(),i("ul",ee,[(n(!0),i(d,null,G(A.value,f=>(n(),i("li",se,b(f.name),1))),256))])):(n(),i(d,{key:2},[l(" Es wurde noch kein Personal ausgewählt ")],64))]),_:1},8,["router-link"]),t(e(c),{"router-link":m+"/access",detail:!1},{default:a(()=>[t(e(r),{slot:"start",icon:e(q)},null,8,["icon"]),e(s).access.length>0?(n(),o(k,{key:0})):u("",!0),t(e(y),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:a(()=>[l("Sektoren")]),_:1}),e(s).access.length===0?(n(),i(d,{key:1},[l("Es wurden noch keine Sektoren definiert")],64)):e(s).access.length===1?(n(),i(d,{key:2},[l("Es wurde ein Sektor definiert")],64)):(n(),i(d,{key:3},[l("Es wurden bisher "+b(e(s).access.length)+" Sektoren definiert",1)],64))]),_:1},8,["router-link"]),t(e(c),{"router-link":m+"/rescue",detail:!1},{default:a(()=>[t(e(r),{slot:"start",icon:e(M)},null,8,["icon"]),e(s).access.length>0?(n(),o(k,{key:0})):u("",!0),t(e(y),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:a(()=>[l("Rettungskonzept")]),_:1}),e(s).access.length===0?(n(),i(d,{key:1},[l("Es wurden noch keine Sektoren definiert")],64)):(n(),i(d,{key:2},[l("Für "+b(e(s).access.filter(f=>f.rescue).length)+" Sektoren existiert ein Rettungskonzept",1)],64))]),_:1},8,["router-link"]),t(e(c),{"router-link":m+"/risks",detail:!1},{default:a(()=>[t(e(r),{slot:"start",icon:e(O)},null,8,["icon"]),e(s).access.length>0?(n(),o(k,{key:0})):u("",!0),t(e(y),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:a(()=>[l("Gefährdungen")]),_:1}),g.all===0?(n(),i(d,{key:1},[l("Es wurden noch keine Gefährdungen hinzugefügt")],64)):(n(),i(d,{key:2},[l(" Von insgesamt "+b(g.all)+" Gefährdungen sind für "+b(g.solved)+" Maßnahmen angegeben. ",1)],64))]),_:1},8,["router-link"])]),_:1})]),_:1}))}}),ce=V(te,[["__scopeId","data-v-9c2bb659"]]);export{ce as default}; diff --git a/ra/assets/RAEditOverview-legacy-YvdLVVEn.js b/ra/assets/RAEditOverview-legacy-YvdLVVEn.js new file mode 100644 index 0000000..955fb28 --- /dev/null +++ b/ra/assets/RAEditOverview-legacy-YvdLVVEn.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./livequery-legacy-GqvLyVpq.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./helpers-legacy-X82L35U6.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,l){"use strict";var n,t,a,s,i,o,r,c,d,u,k,g,m,h,y,f,b,p,_,v,w,x,j,z,E,D,V,A,S,R,T,I,q,C,F,G,P,U,B,H;return{setters:[e=>{n=e.d,t=e.o,a=e.c,s=e.f,i=e.X,o=e.n,r=e._,c=e.e,d=e.Z,u=e.$,k=e.w,g=e.b,m=e.h,h=e.j,y=e.r,f=e.a0,b=e.l,p=e.D,_=e.a1,v=e.N,w=e.a2,x=e.a3,j=e.a4,z=e.i,E=e.a5,D=e.g,V=e.F,A=e.V,S=e.a6,R=e.t,T=e.a7,I=e.a8,q=e.I,C=e.a9,F=e.aa,G=e.a},e=>{P=e.u,U=e.a},e=>{B=e.l},e=>{H=e.T},null,null],execute:function(){var l=document.createElement("style");l.textContent=".checkmark[data-v-b74799a7]{float:right}.label[data-v-9c2bb659]{margin-bottom:10px}.nested-list[data-v-9c2bb659]{background:transparent;width:100%;padding:0;margin:0}.nested-list-item[data-v-9c2bb659]{background:transparent;padding:0;margin:0;border:0}\n",document.head.appendChild(l);const M=r(n({__name:"Checkmark",setup:e=>(e,l)=>(t(),a(s(o),{class:"checkmark",slot:"end",color:"success",icon:s(i)},null,8,["icon"]))}),[["__scopeId","data-v-b74799a7"]]),N=(e=>(C("data-v-9c2bb659"),e=e(),F(),e))((()=>G("ul",{class:"nested-list",lines:"none"},[G("li",{class:"ion-no-padding ion-no-margin nested-list-item",lines:"none"},"TEst"),G("li",{class:"ion-no-padding ion-no-margin nested-list-item",lines:"none"},"TEst")],-1))),O={key:1,class:"nested-list ion-no-padding",lines:"none"},X={class:"ion-no-padding ion-no-margin nested-list-item",lines:"none",size:"small"};e("default",r(n({__name:"RAEditOverview",setup(e){const l=B.table("technicians"),n=P(),i=c((()=>l.isReady().value?n.technicians.map((e=>l.get(e))):[])),r="/riskassessment/"+n.id,C=U(),F=d({direct:-1,all:-1,solved:-1});return u(C,(async()=>{await n.ready,F.direct=n.risks.length;const e=await n.calcAllRisks();F.all=e.length,F.solved=e.filter((e=>void 0!==n.measures[e]&&n.measures[e].length>0)).length})),(e,l)=>(t(),a(H,null,{default:k((()=>[g(s(q),{lines:"full"},{default:k((()=>[g(s(m),null,{default:k((()=>[h(" Allgemeines ")])),_:1}),g(s(y),null,{default:k((()=>[g(s(o),{slot:"start",icon:s(f)},null,8,["icon"]),s(n).company?(t(),a(M,{key:0})):b("",!0),g(s(p),{label:"Ausführende Firma","label-placement":"floating",modelValue:s(n).company,"onUpdate:modelValue":l[0]||(l[0]=e=>s(n).company=e)},null,8,["modelValue"])])),_:1}),g(s(y),null,{default:k((()=>[g(s(o),{slot:"start",icon:s(_)},null,8,["icon"]),s(n).jobDescr?(t(),a(M,{key:0})):b("",!0),g(s(v),{label:"Beschreibung der Tätigkeit","label-placement":"floating","auto-grow":"",modelValue:s(n).jobDescr,"onUpdate:modelValue":l[1]||(l[1]=e=>s(n).jobDescr=e)},null,8,["modelValue"])])),_:1}),g(s(y),null,{default:k((()=>[g(s(o),{slot:"start",icon:s(w)},null,8,["icon"]),s(n).address?(t(),a(M,{key:0})):b("",!0),g(s(p),{"router-link":r+"/location",label:"Addresse","label-placement":"floating",readonly:"",value:s(n).address},null,8,["router-link","value"])])),_:1}),g(s(y),null,{default:k((()=>[g(s(o),{slot:"start",icon:s(x)},null,8,["icon"]),s(n).startDate?(t(),a(M,{key:0})):b("",!0),g(s(p),{"router-link":r+"/date",label:"Datum","label-placement":"floating",readonly:"",value:s(n).startDate+(s(n).endDate?" - "+s(n).endDate:"")},null,8,["router-link","value"])])),_:1}),g(s(y),{"router-link":r+"/equipment",detail:!1},{default:k((()=>[g(s(o),{slot:"start",icon:s(j)},null,8,["icon"]),s(n).equipment?(t(),a(M,{key:0})):b("",!0),g(s(z),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:k((()=>[h("Ausrüstung")])),_:1}),N])),_:1},8,["router-link"]),g(s(y),{"router-link":r+"/technicians",detail:!1},{default:k((()=>[g(s(o),{slot:"start",icon:s(E)},null,8,["icon"]),s(n).technicians.length>0?(t(),a(M,{key:0})):b("",!0),g(s(z),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:k((()=>[h("Personal")])),_:1}),s(n).technicians.length>0?(t(),D("ul",O,[(t(!0),D(V,null,A(i.value,(e=>(t(),D("li",X,R(e.name),1)))),256))])):(t(),D(V,{key:2},[h(" Es wurde noch kein Personal ausgewählt ")],64))])),_:1},8,["router-link"]),g(s(y),{"router-link":r+"/access",detail:!1},{default:k((()=>[g(s(o),{slot:"start",icon:s(S)},null,8,["icon"]),s(n).access.length>0?(t(),a(M,{key:0})):b("",!0),g(s(z),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:k((()=>[h("Sektoren")])),_:1}),0===s(n).access.length?(t(),D(V,{key:1},[h("Es wurden noch keine Sektoren definiert")],64)):1===s(n).access.length?(t(),D(V,{key:2},[h("Es wurde ein Sektor definiert")],64)):(t(),D(V,{key:3},[h("Es wurden bisher "+R(s(n).access.length)+" Sektoren definiert",1)],64))])),_:1},8,["router-link"]),g(s(y),{"router-link":r+"/rescue",detail:!1},{default:k((()=>[g(s(o),{slot:"start",icon:s(T)},null,8,["icon"]),s(n).access.length>0?(t(),a(M,{key:0})):b("",!0),g(s(z),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:k((()=>[h("Rettungskonzept")])),_:1}),0===s(n).access.length?(t(),D(V,{key:1},[h("Es wurden noch keine Sektoren definiert")],64)):(t(),D(V,{key:2},[h("Für "+R(s(n).access.filter((e=>e.rescue)).length)+" Sektoren existiert ein Rettungskonzept",1)],64))])),_:1},8,["router-link"]),g(s(y),{"router-link":r+"/risks",detail:!1},{default:k((()=>[g(s(o),{slot:"start",icon:s(I)},null,8,["icon"]),s(n).access.length>0?(t(),a(M,{key:0})):b("",!0),g(s(z),{position:"stacked",style:{"z-index":"10"},class:"label"},{default:k((()=>[h("Gefährdungen")])),_:1}),0===F.all?(t(),D(V,{key:1},[h("Es wurden noch keine Gefährdungen hinzugefügt")],64)):(t(),D(V,{key:2},[h(" Von insgesamt "+R(F.all)+" Gefährdungen sind für "+R(F.solved)+" Maßnahmen angegeben. ",1)],64))])),_:1},8,["router-link"])])),_:1})])),_:1}))}}),[["__scopeId","data-v-9c2bb659"]]))}}})); diff --git a/ra/assets/RAEditRescue-iPh9mXkA.js b/ra/assets/RAEditRescue-iPh9mXkA.js new file mode 100644 index 0000000..bf3c2c1 --- /dev/null +++ b/ra/assets/RAEditRescue-iPh9mXkA.js @@ -0,0 +1 @@ +import{d as u,o as l,c as n,w as a,g as d,V as m,f as e,F as i,O as p,P as c,Q as f,i as _,t as k,j as g,b as t,R as C,N as V}from"./index-DYrAM6VV.js";import{u as I}from"./riskassessment-gvIk_m2h.js";import{T as R}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./helpers-ZGJup-tE.js";import"./livequery-N-IbBJej.js";import"./liveriskstree-S1mQ308m.js";const E=u({__name:"RAEditRescue",setup(x){const o=I();return(T,b)=>(l(),n(R,null,{default:a(()=>[(l(!0),d(i,null,m(e(o).access,s=>(l(),n(e(p),{key:s.id},{default:a(()=>[t(e(c),null,{default:a(()=>[t(e(f),null,{default:a(()=>[t(e(_),null,{default:a(()=>[g(k(s.title),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(e(C),null,{default:a(()=>[t(e(V),{modelValue:s.rescue,"onUpdate:modelValue":r=>s.rescue=r,label:"Rettungskonzept","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024))),128))]),_:1}))}});export{E as default}; diff --git a/ra/assets/RAEditRescue-legacy-9AqeDjU2.js b/ra/assets/RAEditRescue-legacy-9AqeDjU2.js new file mode 100644 index 0000000..c4ba8d9 --- /dev/null +++ b/ra/assets/RAEditRescue-legacy-9AqeDjU2.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,l){"use strict";var t,u,s,a,n,c,d,r,i,o,g,f,m,y,_,j,p,k,R;return{setters:[e=>{t=e.d,u=e.o,s=e.c,a=e.w,n=e.g,c=e.V,d=e.f,r=e.F,i=e.O,o=e.P,g=e.Q,f=e.i,m=e.t,y=e.j,_=e.b,j=e.R,p=e.N},e=>{k=e.u},e=>{R=e.T},null,null,null],execute:function(){e("default",t({__name:"RAEditRescue",setup(e){const l=k();return(e,t)=>(u(),s(R,null,{default:a((()=>[(u(!0),n(r,null,c(d(l).access,(e=>(u(),s(d(i),{key:e.id},{default:a((()=>[_(d(o),null,{default:a((()=>[_(d(g),null,{default:a((()=>[_(d(f),null,{default:a((()=>[y(m(e.title),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),_(d(j),null,{default:a((()=>[_(d(p),{modelValue:e.rescue,"onUpdate:modelValue":l=>e.rescue=l,label:"Rettungskonzept","label-placement":"floating","auto-grow":""},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)))),128))])),_:1}))}}))}}})); diff --git a/ra/assets/RAEditRiskEntry-legacy-e3_wn4kx.js b/ra/assets/RAEditRiskEntry-legacy-e3_wn4kx.js new file mode 100644 index 0000000..5fb98cb --- /dev/null +++ b/ra/assets/RAEditRiskEntry-legacy-e3_wn4kx.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./liveriskstree-legacy-dlv-ajCr.js","./livequery-legacy-GqvLyVpq.js","./MeasureCatalog.vue_vue_type_script_setup_true_lang-legacy-SWGuYKdX.js","./AddedByList.vue_vue_type_script_setup_true_lang-legacy-kEQjZDfl.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./helpers-legacy-X82L35U6.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js"],(function(e,t){"use strict";var a,l,s,u,r,n,d,i,g,o,_,c,m,y,p,f,v,j,k,M,h,R,b,A,V,I,w;return{setters:[e=>{a=e.d,l=e.u,s=e.e,u=e.o,r=e.c,n=e.w,d=e.f,i=e.g,g=e.b,o=e.r,_=e.i,c=e.j,m=e.t,y=e.a,p=e.aj,f=e.l,v=e.N,j=e.I,k=e.h,M=e.k,h=e.F},e=>{R=e.u},e=>{b=e.l},e=>{A=e.l},e=>{V=e._},e=>{I=e._},e=>{w=e.T},null,null],execute:function(){const t={style:{"font-size":"1.2rem","margin-bottom":"0.3rem"}};e("default",a({__name:"RAEditRiskEntry",setup(e){const a=R(),x=A.table("measures"),z=parseInt(l().params.riskId),B=b.getAsRef(z),E=s((()=>{if(!x.isReady().value)return[];a.getMeasures(z).map((e=>x.get(e)))}));return a.getMeasures(z),(e,l)=>(u(),r(w,null,{default:n((()=>[d(B)&&d(a).isReady&&d(x).isReady()?(u(),i(h,{key:0},[g(d(j),{lines:"none"},{default:n((()=>[g(d(o),{class:"ion-margin-bottom"},{default:n((()=>[g(d(_),{position:"stacked"},{default:n((()=>[c(m(d(B).factor.category.descr)+" ➤ "+m(d(B).factor.descr),1)])),_:1}),y("p",t,m(d(B).descr),1),d(a).getMeta(d(z)).addedBy.length>0?(u(),r(d(p),{key:0},{default:n((()=>[g(I,{"trigger-list":d(a).getMeta(d(z)).addedBy},null,8,["trigger-list"])])),_:1})):f("",!0)])),_:1}),g(d(o),null,{default:n((()=>[c(m(d(a).getMeta(d(z)))+" ",1),g(d(v),{label:"Kommentar","auto-grow":"","label-placement":"floating",modelValue:d(a).getMeta(d(z)).comment,"onUpdate:modelValue":l[0]||(l[0]=e=>d(a).getMeta(d(z)).comment=e)},null,8,["modelValue"])])),_:1})])),_:1}),g(V,{modelValue:d(a).measures[d(z)],"onUpdate:modelValue":l[1]||(l[1]=e=>d(a).measures[d(z)]=e),entries:E.value,inverted:""},{header:n((()=>[g(d(k),null,{default:n((()=>[g(d(_),null,{default:n((()=>[c("Ausgewählte Maßnahmen")])),_:1}),g(d(M),{"router-link":e.$route.path+"/addmeasures"},{default:n((()=>[c("Hinzufügen")])),_:1},8,["router-link"])])),_:1})])),_:1},8,["modelValue","entries"])],64)):f("",!0)])),_:1}))}}))}}})); diff --git a/ra/assets/RAEditRiskEntry-pnSiEAko.js b/ra/assets/RAEditRiskEntry-pnSiEAko.js new file mode 100644 index 0000000..6a24607 --- /dev/null +++ b/ra/assets/RAEditRiskEntry-pnSiEAko.js @@ -0,0 +1 @@ +import{d as y,u as I,e as R,o as f,c as p,w as s,f as e,g as V,b as r,r as c,i as g,j as l,t as m,a as M,aj as b,l as _,N as B,I as A,h as N,k as T,F as h}from"./index-DYrAM6VV.js";import{u as v}from"./riskassessment-gvIk_m2h.js";import{l as w}from"./liveriskstree-S1mQ308m.js";import{l as x}from"./livequery-N-IbBJej.js";import{_ as L}from"./MeasureCatalog.vue_vue_type_script_setup_true_lang-Z3tgqIYP.js";import{_ as C}from"./AddedByList.vue_vue_type_script_setup_true_lang-Uj9nWl0E.js";import{T as E}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./helpers-ZGJup-tE.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";const $={style:{"font-size":"1.2rem","margin-bottom":"0.3rem"}},q=y({__name:"RAEditRiskEntry",setup(j){const t=v(),i=x.table("measures"),a=parseInt(I().params.riskId),o=w.getAsRef(a),k=R(()=>{if(!i.isReady().value)return[];t.getMeasures(a).map(u=>i.get(u))});return t.getMeasures(a),(u,n)=>(f(),p(E,null,{default:s(()=>[e(o)&&e(t).isReady&&e(i).isReady()?(f(),V(h,{key:0},[r(e(A),{lines:"none"},{default:s(()=>[r(e(c),{class:"ion-margin-bottom"},{default:s(()=>[r(e(g),{position:"stacked"},{default:s(()=>[l(m(e(o).factor.category.descr)+" ➤ "+m(e(o).factor.descr),1)]),_:1}),M("p",$,m(e(o).descr),1),e(t).getMeta(e(a)).addedBy.length>0?(f(),p(e(b),{key:0},{default:s(()=>[r(C,{"trigger-list":e(t).getMeta(e(a)).addedBy},null,8,["trigger-list"])]),_:1})):_("",!0)]),_:1}),r(e(c),null,{default:s(()=>[l(m(e(t).getMeta(e(a)))+" ",1),r(e(B),{label:"Kommentar","auto-grow":"","label-placement":"floating",modelValue:e(t).getMeta(e(a)).comment,"onUpdate:modelValue":n[0]||(n[0]=d=>e(t).getMeta(e(a)).comment=d)},null,8,["modelValue"])]),_:1})]),_:1}),r(L,{modelValue:e(t).measures[e(a)],"onUpdate:modelValue":n[1]||(n[1]=d=>e(t).measures[e(a)]=d),entries:k.value,inverted:""},{header:s(()=>[r(e(N),null,{default:s(()=>[r(e(g),null,{default:s(()=>[l("Ausgewählte Maßnahmen")]),_:1}),r(e(T),{"router-link":u.$route.path+"/addmeasures"},{default:s(()=>[l("Hinzufügen")]),_:1},8,["router-link"])]),_:1})]),_:1},8,["modelValue","entries"])],64)):_("",!0)]),_:1}))}});export{q as default}; diff --git a/ra/assets/RAEditRiskEntryMeasures-legacy-6ISYF15v.js b/ra/assets/RAEditRiskEntryMeasures-legacy-6ISYF15v.js new file mode 100644 index 0000000..cf37723 --- /dev/null +++ b/ra/assets/RAEditRiskEntryMeasures-legacy-6ISYF15v.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./liveriskstree-legacy-dlv-ajCr.js","./RiskListItem-legacy--OFZLq8T.js","./livequery-legacy-GqvLyVpq.js","./MeasureCatalog.vue_vue_type_script_setup_true_lang-legacy-SWGuYKdX.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./helpers-legacy-X82L35U6.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js"],(function(e,s){"use strict";var l,t,a,u,r,i,n,d,c,_,g,m,y,o,f,k,p,v,j,R,b,I;return{setters:[e=>{l=e.d,t=e.u,a=e.e,u=e.o,r=e.c,i=e.w,n=e.f,d=e.g,c=e.b,_=e.I,g=e.h,m=e.i,y=e.j,o=e.k,f=e.F,k=e.l},e=>{p=e.u},e=>{v=e.l},e=>{j=e.R},e=>{R=e.l},e=>{b=e._},e=>{I=e.T},null,null],execute:function(){e("default",l({__name:"RAEditRiskEntryMeasures",setup(e){const s=p();R.table("measures");const l=parseInt(t().params.riskId),h=v.getAsRef(l);R.table("measures").updated();const A=a((()=>void 0!==h.value&&R.table("measures").isReady()?R.table("measures").entries().filter((e=>e.solveRisks.includes(h.value.id))):[]));return s.getMeasures(l),(e,t)=>(u(),r(I,null,{default:i((()=>[n(h)&&n(s).isReady?(u(),d(f,{key:0},[c(n(_),{inset:""},{default:i((()=>[c(j,{risk:n(h)},null,8,["risk"])])),_:1}),c(b,{inset:"",modelValue:n(s).measures[n(l)],"onUpdate:modelValue":t[0]||(t[0]=e=>n(s).measures[n(l)]=e),entries:A.value},{header:i((()=>[c(n(g),null,{default:i((()=>[c(n(m),null,{default:i((()=>[y("Verfügbare Maßnahmen")])),_:1}),c(n(o),{"router-link":`/measures/new?for=${n(h).id}`},{default:i((()=>[y("Erstellen")])),_:1},8,["router-link"])])),_:1})])),_:1},8,["modelValue","entries"])],64)):k("",!0)])),_:1}))}}))}}})); diff --git a/ra/assets/RAEditRiskEntryMeasures-zG8H-6Om.js b/ra/assets/RAEditRiskEntryMeasures-zG8H-6Om.js new file mode 100644 index 0000000..71948ef --- /dev/null +++ b/ra/assets/RAEditRiskEntryMeasures-zG8H-6Om.js @@ -0,0 +1 @@ +import{d as p,u as k,e as c,o as u,c as _,w as s,f as e,g as R,b as a,I,h as v,i as b,j as m,k as g,F as V,l as y}from"./index-DYrAM6VV.js";import{u as A}from"./riskassessment-gvIk_m2h.js";import{l as B}from"./liveriskstree-S1mQ308m.js";import{R as x}from"./RiskListItem-_kbE0JWc.js";import{l as n}from"./livequery-N-IbBJej.js";import{_ as E}from"./MeasureCatalog.vue_vue_type_script_setup_true_lang-Z3tgqIYP.js";import{T as L}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./helpers-ZGJup-tE.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";const P=p({__name:"RAEditRiskEntryMeasures",setup(M){const r=A();n.table("measures");const o=parseInt(k().params.riskId),t=B.getAsRef(o);n.table("measures").updated();const d=c(()=>t.value===void 0||!n.table("measures").isReady()?[]:n.table("measures").entries().filter(i=>i.solveRisks.includes(t.value.id)));return r.getMeasures(o),(i,l)=>(u(),_(L,null,{default:s(()=>[e(t)&&e(r).isReady?(u(),R(V,{key:0},[a(e(I),{inset:""},{default:s(()=>[a(x,{risk:e(t)},null,8,["risk"])]),_:1}),a(E,{inset:"",modelValue:e(r).measures[e(o)],"onUpdate:modelValue":l[0]||(l[0]=f=>e(r).measures[e(o)]=f),entries:d.value},{header:s(()=>[a(e(v),null,{default:s(()=>[a(e(b),null,{default:s(()=>[m("Verfügbare Maßnahmen")]),_:1}),a(e(g),{"router-link":"/measures/new?for=".concat(e(t).id)},{default:s(()=>[m("Erstellen")]),_:1},8,["router-link"])]),_:1})]),_:1},8,["modelValue","entries"])],64)):y("",!0)]),_:1}))}});export{P as default}; diff --git a/ra/assets/RAEditRisks-RehlTfpG.js b/ra/assets/RAEditRisks-RehlTfpG.js new file mode 100644 index 0000000..64f5aec --- /dev/null +++ b/ra/assets/RAEditRisks-RehlTfpG.js @@ -0,0 +1 @@ +import{d as F,G as m,ai as G,e as C,u as B,o,c as u,w as a,b as s,f as e,ae as v,i as f,j as i,af as N,g as p,m as b,n as A,p as q,q as D,F as I,V,l as k,O as U,X as Z,P as z,W as P,t as g,Q as W,aj as H,R as Q,I as X,h as Y,r as J,k as L,a as K,Y as j,_ as O}from"./index-DYrAM6VV.js";import{u as ee,a as ae}from"./riskassessment-gvIk_m2h.js";import{_ as se}from"./RiskCatalog.vue_vue_type_script_setup_true_lang-t3Akc4GU.js";import{G as te}from"./GenericEditModal-HfPjcc9X.js";import{l as x}from"./liveriskstree-S1mQ308m.js";import{l as ne}from"./livequery-N-IbBJej.js";import{_ as le}from"./AddedByList.vue_vue_type_script_setup_true_lang-Uj9nWl0E.js";import{T as re}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import{a as oe}from"./helpers-ZGJup-tE.js";const ie={class:"ion-text-right"},ue=F({__name:"RAEditRisks",setup(de){m(0),G(()=>console.log("will enter"));const n=ee(),w=ae(),y=ne.table("measures"),M=C(()=>x.isReady()?w.value.map(l=>({risk:x.get(l),meta:n.getMeta(l)})):[]),d=m("Z");m(-1);const S=C(()=>M.value.filter(l=>l.risk.sector===d.value));["Z","U","A"].includes(B().query.sector)&&(d.value=B().query.sector);const _=m(!1);function T(l){n.risks=n.risks.filter(r=>r!==l.risk.id)}function $(l){oe("Die Gefährdung wirklich aus der Liste entfernen?",{text:"Löschen",role:"destructive",icon:j,handler:()=>{T(l)}})}const E="/riskassessment/"+n.id+"/risks";return(l,r)=>(o(),u(re,null,{default:a(()=>[s(e(N),{value:d.value,onIonChange:r[0]||(r[0]=t=>{d.value=t.detail.value,l.$router.replace({query:{sector:t.detail.value}})})},{default:a(()=>[s(e(v),{value:"Z"},{default:a(()=>[s(e(f),null,{default:a(()=>[i("Zugang")]),_:1})]),_:1}),s(e(v),{value:"U"},{default:a(()=>[s(e(f),null,{default:a(()=>[i("Umgebung")]),_:1})]),_:1}),s(e(v),{value:"A"},{default:a(()=>[s(e(f),null,{default:a(()=>[i("Arbeit")]),_:1})]),_:1})]),_:1},8,["value"]),e(n).ready&&e(y).isReady()?(o(),p(I,{key:0},[s(e(D),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:a(()=>[s(e(b),{onClick:r[1]||(r[1]=t=>_.value=!0)},{default:a(()=>[s(e(A),{icon:e(q)},null,8,["icon"])]),_:1})]),_:1}),(o(!0),p(I,null,V(S.value,t=>(o(),u(e(U),{key:t.risk.id,class:"risk-card"},{default:a(()=>[s(e(A),{icon:e(Z),color:"success",class:"checkmark ion-padding ion-float-right",size:"large"},null,8,["icon"]),s(e(z),null,{default:a(()=>[s(e(P),null,{default:a(()=>{var c,R,h;return[i(g((R=(c=t.risk.factor)==null?void 0:c.category)==null?void 0:R.descr)+" ➤ "+g((h=t.risk.factor)==null?void 0:h.descr),1)]}),_:2},1024),s(e(W),{style:{"font-size":"1.1rem"}},{default:a(()=>[i(g(t.risk.descr),1)]),_:2},1024),e(n).meta[t.risk.id].addedBy.length>0?(o(),u(e(H),{key:0,style:{"margin-bottom":"1rem"}},{default:a(()=>[s(le,{"trigger-list":e(n).meta[t.risk.id].addedBy},null,8,["trigger-list"])]),_:2},1024)):k("",!0)]),_:2},1024),s(e(Q),{class:"ion-no-margin ion-no-padding"},{default:a(()=>[e(n).getMeasures(t.risk.id).length?(o(),u(e(X),{key:0,class:"risk-solved ion-no-padding ion-no-margin",lines:"none"},{default:a(()=>[s(e(Y),{class:"ion-no-margin"},{default:a(()=>[s(e(f),null,{default:a(()=>[i("Gewählte Maßnahmen")]),_:1})]),_:1}),(o(!0),p(I,null,V(e(n).getMeasures(t.risk.id),c=>(o(),u(e(J),{class:"ion-no-margin"},{default:a(()=>[i(g(e(y).get(c).descr),1)]),_:2},1024))),256))]),_:2},1024)):k("",!0),K("div",ie,[e(n).meta[t.risk.id].addedBy.length===0?(o(),u(e(L),{key:0,fill:"clear",color:"danger",onClick:c=>$(t)},{default:a(()=>[i("Löschen")]),_:2},1032,["onClick"])):k("",!0),s(e(L),{fill:"clear","router-link":E+"/"+t.risk.id},{default:a(()=>[i("Bearbeiten")]),_:2},1032,["router-link"])])]),_:2},1024)]),_:2},1024))),128)),s(te,{"is-open":_.value,onWillDismiss:r[3]||(r[3]=t=>_.value=!1),"hide-save":""},{default:a(()=>[s(se,{modelValue:e(n).risks,"onUpdate:modelValue":r[2]||(r[2]=t=>e(n).risks=t),sector:d.value,"link-to-function":()=>{}},null,8,["modelValue","sector"])]),_:1},8,["is-open"])],64)):k("",!0)]),_:1}))}}),ye=O(ue,[["__scopeId","data-v-ab65f980"]]);export{ye as default}; diff --git a/ra/assets/RAEditRisks-legacy-1OUQVgZQ.js b/ra/assets/RAEditRisks-legacy-1OUQVgZQ.js new file mode 100644 index 0000000..99aec0c --- /dev/null +++ b/ra/assets/RAEditRisks-legacy-1OUQVgZQ.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./RiskCatalog.vue_vue_type_script_setup_true_lang-legacy-HueAlsRD.js","./GenericEditModal-legacy-bj_6eKP1.js","./liveriskstree-legacy-dlv-ajCr.js","./livequery-legacy-GqvLyVpq.js","./AddedByList.vue_vue_type_script_setup_true_lang-legacy-kEQjZDfl.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./helpers-legacy-X82L35U6.js"],(function(e,l){"use strict";var a,s,t,i,n,r,u,d,o,c,k,g,f,_,v,y,m,h,p,b,j,x,C,R,A,q,w,B,G,M,z,I,L,U,V,Z,E,D,F,P,T,W,H,K,O,Q;return{setters:[e=>{a=e.d,s=e.G,t=e.ai,i=e.e,n=e.u,r=e.o,u=e.c,d=e.w,o=e.b,c=e.f,k=e.ae,g=e.i,f=e.j,_=e.af,v=e.g,y=e.m,m=e.n,h=e.p,p=e.q,b=e.F,j=e.V,x=e.l,C=e.O,R=e.X,A=e.P,q=e.W,w=e.t,B=e.Q,G=e.aj,M=e.R,z=e.I,I=e.h,L=e.r,U=e.k,V=e.a,Z=e.Y,E=e._},e=>{D=e.u,F=e.a},e=>{P=e._},e=>{T=e.G},e=>{W=e.l},e=>{H=e.l},e=>{K=e._},e=>{O=e.T},e=>{Q=e.a}],execute:function(){var l=document.createElement("style");l.textContent=".risk-card .checkmark[data-v-ab65f980]{display:none}.risk-card:has(.risk-solved) .checkmark[data-v-ab65f980]{display:block}\n",document.head.appendChild(l);const S={class:"ion-text-right"};e("default",E(a({__name:"RAEditRisks",setup(e){s(0),t((()=>console.log("will enter")));const l=D(),a=F(),E=H.table("measures"),X=i((()=>W.isReady()?a.value.map((e=>({risk:W.get(e),meta:l.getMeta(e)}))):[])),Y=s("Z");s(-1);const $=i((()=>X.value.filter((e=>e.risk.sector===Y.value))));["Z","U","A"].includes(n().query.sector)&&(Y.value=n().query.sector);const J=s(!1);function N(e){Q("Die Gefährdung wirklich aus der Liste entfernen?",{text:"Löschen",role:"destructive",icon:Z,handler:()=>{!function(e){l.risks=l.risks.filter((l=>l!==e.risk.id))}(e)}})}const ee="/riskassessment/"+l.id+"/risks";return(e,a)=>(r(),u(O,null,{default:d((()=>[o(c(_),{value:Y.value,onIonChange:a[0]||(a[0]=l=>{Y.value=l.detail.value,e.$router.replace({query:{sector:l.detail.value}})})},{default:d((()=>[o(c(k),{value:"Z"},{default:d((()=>[o(c(g),null,{default:d((()=>[f("Zugang")])),_:1})])),_:1}),o(c(k),{value:"U"},{default:d((()=>[o(c(g),null,{default:d((()=>[f("Umgebung")])),_:1})])),_:1}),o(c(k),{value:"A"},{default:d((()=>[o(c(g),null,{default:d((()=>[f("Arbeit")])),_:1})])),_:1})])),_:1},8,["value"]),c(l).ready&&c(E).isReady()?(r(),v(b,{key:0},[o(c(p),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:d((()=>[o(c(y),{onClick:a[1]||(a[1]=e=>J.value=!0)},{default:d((()=>[o(c(m),{icon:c(h)},null,8,["icon"])])),_:1})])),_:1}),(r(!0),v(b,null,j($.value,(e=>(r(),u(c(C),{key:e.risk.id,class:"risk-card"},{default:d((()=>[o(c(m),{icon:c(R),color:"success",class:"checkmark ion-padding ion-float-right",size:"large"},null,8,["icon"]),o(c(A),null,{default:d((()=>[o(c(q),null,{default:d((()=>{var l,a;return[f(w(null===(l=e.risk.factor)||void 0===l||null===(l=l.category)||void 0===l?void 0:l.descr)+" ➤ "+w(null===(a=e.risk.factor)||void 0===a?void 0:a.descr),1)]})),_:2},1024),o(c(B),{style:{"font-size":"1.1rem"}},{default:d((()=>[f(w(e.risk.descr),1)])),_:2},1024),c(l).meta[e.risk.id].addedBy.length>0?(r(),u(c(G),{key:0,style:{"margin-bottom":"1rem"}},{default:d((()=>[o(K,{"trigger-list":c(l).meta[e.risk.id].addedBy},null,8,["trigger-list"])])),_:2},1024)):x("",!0)])),_:2},1024),o(c(M),{class:"ion-no-margin ion-no-padding"},{default:d((()=>[c(l).getMeasures(e.risk.id).length?(r(),u(c(z),{key:0,class:"risk-solved ion-no-padding ion-no-margin",lines:"none"},{default:d((()=>[o(c(I),{class:"ion-no-margin"},{default:d((()=>[o(c(g),null,{default:d((()=>[f("Gewählte Maßnahmen")])),_:1})])),_:1}),(r(!0),v(b,null,j(c(l).getMeasures(e.risk.id),(e=>(r(),u(c(L),{class:"ion-no-margin"},{default:d((()=>[f(w(c(E).get(e).descr),1)])),_:2},1024)))),256))])),_:2},1024)):x("",!0),V("div",S,[0===c(l).meta[e.risk.id].addedBy.length?(r(),u(c(U),{key:0,fill:"clear",color:"danger",onClick:l=>N(e)},{default:d((()=>[f("Löschen")])),_:2},1032,["onClick"])):x("",!0),o(c(U),{fill:"clear","router-link":ee+"/"+e.risk.id},{default:d((()=>[f("Bearbeiten")])),_:2},1032,["router-link"])])])),_:2},1024)])),_:2},1024)))),128)),o(T,{"is-open":J.value,onWillDismiss:a[3]||(a[3]=e=>J.value=!1),"hide-save":""},{default:d((()=>[o(P,{modelValue:c(l).risks,"onUpdate:modelValue":a[2]||(a[2]=e=>c(l).risks=e),sector:Y.value,"link-to-function":()=>{}},null,8,["modelValue","sector"])])),_:1},8,["is-open"])],64)):x("",!0)])),_:1}))}}),[["__scopeId","data-v-ab65f980"]]))}}})); diff --git a/ra/assets/RAEditTechnicians-NY5x7qs-.js b/ra/assets/RAEditTechnicians-NY5x7qs-.js new file mode 100644 index 0000000..4f842b8 --- /dev/null +++ b/ra/assets/RAEditTechnicians-NY5x7qs-.js @@ -0,0 +1 @@ +import{d as y,e as V,G as j,u as f,o as r,c as d,w as s,b as a,f as e,ae as c,i as m,j as u,af as B,t as p,ag as v,l as g,r as C,g as w,m as x,n as A,p as R,q as S,F as T}from"./index-DYrAM6VV.js";import{_ as b}from"./TechniciansList.vue_vue_type_script_setup_true_lang-6ejC1Akr.js";import{u as q}from"./riskassessment-gvIk_m2h.js";import{l as _}from"./livequery-N-IbBJej.js";import{T as F}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import"./helpers-ZGJup-tE.js";import"./liveriskstree-S1mQ308m.js";const O=y({__name:"RAEditTechnicians",setup(N){const o=q(),k=V(()=>_.table("technicians").isReady().value?o.technicians.map(n=>_.table("technicians").get(n)):[]),i=j("selected");["selected","available"].includes(f().query.segment)&&(i.value=f().query.segment);function I(n){if(n.id===void 0){console.warn("Technician ID is undefined");return}if(!n.fisat||n.fisat.level!==3)return;const l=o.supervisors.indexOf(n.id);console.log(l),l!==-1?o.supervisors.splice(l,1):o.supervisors.push(n.id)}return(n,l)=>(r(),d(F,null,{default:s(()=>[a(e(B),{value:i.value,onIonChange:l[0]||(l[0]=t=>{i.value=t.detail.value,n.$router.replace({query:{segment:t.detail.value}})})},{default:s(()=>[a(e(c),{value:"selected"},{default:s(()=>[a(e(m),null,{default:s(()=>[u("Ausgewählt")]),_:1})]),_:1}),a(e(c),{value:"available"},{default:s(()=>[a(e(m),null,{default:s(()=>[u("Verfügbar")]),_:1})]),_:1})]),_:1},8,["value"]),i.value==="selected"?(r(),d(b,{key:0,entries:k.value,modelValue:e(o).technicians,"onUpdate:modelValue":l[1]||(l[1]=t=>e(o).technicians=t),inverted:"","forbid-deletion":""},{default:s(t=>[a(e(C),null,{default:s(()=>[a(e(m),null,{default:s(()=>[u(p(t.object.name),1)]),_:2},1024),t.object.fisat?(r(),d(e(v),{key:0,slot:"end",color:t.object.fisat.level===3?"tertiary":"medium",onClick:$=>I(t.object)},{default:s(()=>[u(" Level "+p(t.object.fisat.level),1)]),_:2},1032,["color","onClick"])):g("",!0),e(o).supervisors.includes(t.object.id)?(r(),d(e(v),{key:1,slot:"start"},{default:s(()=>[u("Supervisor")]),_:1})):g("",!0)]),_:2},1024)]),_:1},8,["entries","modelValue"])):(r(),w(T,{key:1},[a(e(S),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:s(()=>[a(e(x),{"router-link":"/technicians/new"},{default:s(()=>[a(e(A),{icon:e(R)},null,8,["icon"])]),_:1})]),_:1}),a(b,{modelValue:e(o).technicians,"onUpdate:modelValue":l[2]||(l[2]=t=>e(o).technicians=t)},null,8,["modelValue"])],64))]),_:1}))}});export{O as default}; diff --git a/ra/assets/RAEditTechnicians-legacy-tb8HIiNB.js b/ra/assets/RAEditTechnicians-legacy-tb8HIiNB.js new file mode 100644 index 0000000..eb2596c --- /dev/null +++ b/ra/assets/RAEditTechnicians-legacy-tb8HIiNB.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./TechniciansList.vue_vue_type_script_setup_true_lang-legacy-Efqsdd0r.js","./riskassessment-legacy-kVyVXEzW.js","./livequery-legacy-GqvLyVpq.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./helpers-legacy-X82L35U6.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,l){"use strict";var t,a,s,i,n,u,c,r,o,d,v,f,_,g,y,p,m,h,j,b,k,V,q,x,T,w,A;return{setters:[e=>{t=e.d,a=e.e,s=e.G,i=e.u,n=e.o,u=e.c,c=e.w,r=e.b,o=e.f,d=e.ae,v=e.i,f=e.j,_=e.af,g=e.t,y=e.ag,p=e.l,m=e.r,h=e.g,j=e.m,b=e.n,k=e.p,V=e.q,q=e.F},e=>{x=e._},e=>{T=e.u},e=>{w=e.l},e=>{A=e.T},null,null,null],execute:function(){e("default",t({__name:"RAEditTechnicians",setup(e){const l=T(),t=a((()=>w.table("technicians").isReady().value?l.technicians.map((e=>w.table("technicians").get(e))):[])),C=s("selected");return["selected","available"].includes(i().query.segment)&&(C.value=i().query.segment),(e,a)=>(n(),u(A,null,{default:c((()=>[r(o(_),{value:C.value,onIonChange:a[0]||(a[0]=l=>{C.value=l.detail.value,e.$router.replace({query:{segment:l.detail.value}})})},{default:c((()=>[r(o(d),{value:"selected"},{default:c((()=>[r(o(v),null,{default:c((()=>[f("Ausgewählt")])),_:1})])),_:1}),r(o(d),{value:"available"},{default:c((()=>[r(o(v),null,{default:c((()=>[f("Verfügbar")])),_:1})])),_:1})])),_:1},8,["value"]),"selected"===C.value?(n(),u(x,{key:0,entries:t.value,modelValue:o(l).technicians,"onUpdate:modelValue":a[1]||(a[1]=e=>o(l).technicians=e),inverted:"","forbid-deletion":""},{default:c((e=>[r(o(m),null,{default:c((()=>[r(o(v),null,{default:c((()=>[f(g(e.object.name),1)])),_:2},1024),e.object.fisat?(n(),u(o(y),{key:0,slot:"end",color:3===e.object.fisat.level?"tertiary":"medium",onClick:t=>function(e){if(void 0===e.id)return void console.warn("Technician ID is undefined");if(!e.fisat||3!==e.fisat.level)return;const t=l.supervisors.indexOf(e.id);console.log(t),-1!==t?l.supervisors.splice(t,1):l.supervisors.push(e.id)}(e.object)},{default:c((()=>[f(" Level "+g(e.object.fisat.level),1)])),_:2},1032,["color","onClick"])):p("",!0),o(l).supervisors.includes(e.object.id)?(n(),u(o(y),{key:1,slot:"start"},{default:c((()=>[f("Supervisor")])),_:1})):p("",!0)])),_:2},1024)])),_:1},8,["entries","modelValue"])):(n(),h(q,{key:1},[r(o(V),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:c((()=>[r(o(j),{"router-link":"/technicians/new"},{default:c((()=>[r(o(b),{icon:o(k)},null,8,["icon"])])),_:1})])),_:1}),r(x,{modelValue:o(l).technicians,"onUpdate:modelValue":a[2]||(a[2]=e=>o(l).technicians=e)},null,8,["modelValue"])],64))])),_:1}))}}))}}})); diff --git a/ra/assets/RiskAssessmentExport-kRQ2n3ND.js b/ra/assets/RiskAssessmentExport-kRQ2n3ND.js new file mode 100644 index 0000000..4b20014 --- /dev/null +++ b/ra/assets/RiskAssessmentExport-kRQ2n3ND.js @@ -0,0 +1 @@ +import{d as E,G as H,o as t,c as L,w as g,b as k,j as d,f as l,k as M,R as v,a as e,t as o,g as s,l as _,V as h,F as u,O as x,a9 as I,aa as w,_ as D}from"./index-DYrAM6VV.js";import{u as R,b as B}from"./riskassessment-gvIk_m2h.js";import{S as m}from"./helpers-ZGJup-tE.js";import{T as C}from"./TemplateRiskAssessmentPage-8r-vP2g1.js";import"./livequery-N-IbBJej.js";import"./liveriskstree-S1mQ308m.js";const r=f=>(I("data-v-d8fcfe30"),f=f(),w(),f),V={id:"print"},z=r(()=>e("h1",null,"Einsatzplanung",-1)),G=r(()=>e("p",null," Es wird grundsätzlich nach den geltenden Regeln und Vroschriften der DGUV, dem Arbeitsschutzgesetz, der BetrSichV, den TRBS und der FISAT FSR-SZP gearbeitet. ",-1)),N=r(()=>e("strong",null,"Ausführende Firma:",-1)),S=r(()=>e("strong",null,"Einsatzdatum:",-1)),F=r(()=>e("strong",null,"Einsatzort:",-1)),j=r(()=>e("strong",null,"Durchzuführende Arbeiten:",-1)),P=r(()=>e("br",null,null,-1)),$={key:0},Z=r(()=>e("strong",null,"Aufsichtsführende Höhenarbeiter:",-1)),q=r(()=>e("p",null,[e("strong",null,"Höhenarbeiter:")],-1)),O=r(()=>e("thead",null,[e("tr",null,[e("th",null,"Name"),e("th",null,"FISAT-Nr"),e("th",null,"Level")])],-1)),U=r(()=>e("strong",null,"Ausrüstung:",-1)),W=r(()=>e("h2",null,"Zugangsverfahren",-1)),J={key:0},K=r(()=>e("strong",null,"Einstieg:",-1)),Q=["innerHTML"],X={key:1},Y=r(()=>e("strong",null,"Ausstieg:",-1)),ee=["innerHTML"],ne={key:2},te=r(()=>e("strong",null,"Anschlagpunkte:",-1)),se=["innerHTML"],le=["innerHTML"],re=r(()=>e("h2",null,"Notfall- und Rettungsplan",-1)),oe=["innerHTML"],ue=r(()=>e("h1",null,"Gefährdungsermittlung",-1)),ie={key:0},ae={key:1},de={key:2},ce=r(()=>e("thead",null,[e("tr",null,[e("th",null,"Gefährdung"),e("th",null,"Maßnahme")])],-1)),he={colspan:"2"},_e={class:"factor"},pe={key:0},me=E({__name:"RiskAssessmentExport",setup(f){R();const i=B();H("");function A(b){const c=window.open("","print","");if(!c)return;c.open(),c.document.write('\n \n \n \n '.concat(b.outerHTML,"\n \n ")),c.document.close();const n=c.document.createElement("script");n.setAttribute("src","/ra/print.js"),c.document.head.appendChild(n)}async function y(){A(document.getElementById("print"))}return(b,c)=>(t(),L(C,null,{default:g(()=>[k(l(M),{onClick:c[0]||(c[0]=n=>y())},{default:g(()=>[d("Drucken")]),_:1}),k(l(x),null,{default:g(()=>[k(l(v),null,{default:g(()=>[e("div",V,[z,G,e("p",null,[N,d(" "+o(l(i).company),1)]),e("p",null,[S,d(" "+o(l(i).startDate)+" "+o(l(i).endDate?l(i).endDate:""),1)]),e("p",null,[F,d(" "+o(l(i).address),1)]),e("p",null,[j,P,d(" "+o(l(i).jobDescr),1)]),l(i).supervisors?(t(),s("p",$,[Z,d(" "+o(l(i).supervisors.map(n=>n.name).join(", ")),1)])):_("",!0),q,e("table",null,[O,(t(!0),s(u,null,h(l(i).technicians,n=>{var p,a;return t(),s("tr",null,[e("td",null,o(n.name),1),e("td",null,o((p=n.fisat)==null?void 0:p.id),1),e("td",null,o((a=n.fisat)==null?void 0:a.level),1)])}),256))]),e("p",null,[U,e("ul",null,[(t(!0),s(u,null,h(l(i).equipment,n=>(t(),s("li",null,o(n.descr),1))),256))])]),W,(t(!0),s(u,null,h(l(i).access,n=>(t(),s(u,null,[e("p",null,[e("strong",null,o(n.title),1)]),n.access?(t(),s("p",J,[K,d(),e("span",{innerHTML:n.access},null,8,Q)])):_("",!0),n.exit?(t(),s("p",X,[Y,d(),e("span",{innerHTML:n.exit},null,8,ee)])):_("",!0),n.anchorPoints?(t(),s("p",ne,[te,d(),e("span",{innerHTML:n.anchorPoints},null,8,se)])):_("",!0),n.comment?(t(),s("p",{key:3,innerHTML:n.comment},null,8,le)):_("",!0)],64))),256)),re,(t(!0),s(u,null,h(l(i).access,n=>(t(),s(u,null,[e("p",null,[e("strong",null,o(n.title),1)]),e("p",{innerHTML:n.rescue},null,8,oe)],64))),256)),ue,(t(!0),s(u,null,h([l(m).Access,l(m).Environment,l(m).Work],n=>(t(),s(u,null,[n===l(m).Access?(t(),s("h3",ie,"Gefahren durch die ausgewählten Zugangstechniken")):n===l(m).Environment?(t(),s("h3",ae,"Gefahren durch die Arbeitsumgebung")):(t(),s("h3",de,"Gefahren durch die Arbeit")),e("table",null,[ce,e("tbody",null,[(t(!0),s(u,null,h(l(i).categories,p=>(t(),s(u,null,[p.risks.filter(a=>a.risk.sector===n).length?(t(),s(u,{key:0},[e("tr",null,[e("th",he,o(p.descr),1)]),(t(!0),s(u,null,h(p.risks.filter(a=>a.risk.sector===n),a=>(t(),s("tr",null,[e("td",null,[e("span",_e,o(a.risk.factor.descr),1),d(" "+o(a.risk.descr),1)]),e("td",null,[a.measures.length>1?(t(),s("ul",pe,[(t(!0),s(u,null,h(a.measures,T=>(t(),s("li",null,o(T.descr),1))),256))])):a.measures.length===1?(t(),s(u,{key:1},[d(o(a.measures[0].descr),1)],64)):_("",!0)])]))),256))],64)):_("",!0)],64))),256))])])],64))),256))])]),_:1})]),_:1})]),_:1}))}}),Te=D(me,[["__scopeId","data-v-d8fcfe30"]]);export{Te as default}; diff --git a/ra/assets/RiskAssessmentExport-legacy-KtTUVEJi.js b/ra/assets/RiskAssessmentExport-legacy-KtTUVEJi.js new file mode 100644 index 0000000..bc642de --- /dev/null +++ b/ra/assets/RiskAssessmentExport-legacy-KtTUVEJi.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./helpers-legacy-X82L35U6.js","./TemplateRiskAssessmentPage-legacy-kcjQW-hP.js","./livequery-legacy-GqvLyVpq.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(n,e){"use strict";var l,t,s,r,u,a,i,d,c,o,h,g,p,m,f,k,y,v,b,A,T,H,L,M;return{setters:[n=>{l=n.d,t=n.G,s=n.o,r=n.c,u=n.w,a=n.b,i=n.j,d=n.f,c=n.k,o=n.R,h=n.a,g=n.t,p=n.g,m=n.l,f=n.V,k=n.F,y=n.O,v=n.a9,b=n.aa,A=n._},n=>{T=n.u,H=n.b},n=>{L=n.S},n=>{M=n.T},null,null],execute:function(){var e=document.createElement("style");e.textContent="#print[data-v-d8fcfe30]{margin:20px;padding:20px}\n",document.head.appendChild(e);const E=n=>(v("data-v-d8fcfe30"),n=n(),b(),n),j={id:"print"},x=E((()=>h("h1",null,"Einsatzplanung",-1))),_=E((()=>h("p",null," Es wird grundsätzlich nach den geltenden Regeln und Vroschriften der DGUV, dem Arbeitsschutzgesetz, der BetrSichV, den TRBS und der FISAT FSR-SZP gearbeitet. ",-1))),z=E((()=>h("strong",null,"Ausführende Firma:",-1))),S=E((()=>h("strong",null,"Einsatzdatum:",-1))),D=E((()=>h("strong",null,"Einsatzort:",-1))),G=E((()=>h("strong",null,"Durchzuführende Arbeiten:",-1))),R=E((()=>h("br",null,null,-1))),w={key:0},F=E((()=>h("strong",null,"Aufsichtsführende Höhenarbeiter:",-1))),I=E((()=>h("p",null,[h("strong",null,"Höhenarbeiter:")],-1))),C=E((()=>h("thead",null,[h("tr",null,[h("th",null,"Name"),h("th",null,"FISAT-Nr"),h("th",null,"Level")])],-1))),P=E((()=>h("strong",null,"Ausrüstung:",-1))),V=E((()=>h("h2",null,"Zugangsverfahren",-1))),B={key:0},N=E((()=>h("strong",null,"Einstieg:",-1))),Z=["innerHTML"],q={key:1},O=E((()=>h("strong",null,"Ausstieg:",-1))),U=["innerHTML"],W={key:2},$=E((()=>h("strong",null,"Anschlagpunkte:",-1))),J=["innerHTML"],K=["innerHTML"],Q=E((()=>h("h2",null,"Notfall- und Rettungsplan",-1))),X=["innerHTML"],Y=E((()=>h("h1",null,"Gefährdungsermittlung",-1))),nn={key:0},en={key:1},ln={key:2},tn=E((()=>h("thead",null,[h("tr",null,[h("th",null,"Gefährdung"),h("th",null,"Maßnahme")])],-1))),sn={colspan:"2"},rn={class:"factor"},un={key:0};n("default",A(l({__name:"RiskAssessmentExport",setup(n){T();const e=H();async function l(){!function(n){const e=window.open("","print","");if(!e)return;e.open(),e.document.write(`\n \n \n \n ${n.outerHTML}\n \n `),e.document.close();const l=e.document.createElement("script");l.setAttribute("src","/ra/print.js"),e.document.head.appendChild(l)}(document.getElementById("print"))}return t(""),(n,t)=>(s(),r(M,null,{default:u((()=>[a(d(c),{onClick:t[0]||(t[0]=n=>l())},{default:u((()=>[i("Drucken")])),_:1}),a(d(y),null,{default:u((()=>[a(d(o),null,{default:u((()=>[h("div",j,[x,_,h("p",null,[z,i(" "+g(d(e).company),1)]),h("p",null,[S,i(" "+g(d(e).startDate)+" "+g(d(e).endDate?d(e).endDate:""),1)]),h("p",null,[D,i(" "+g(d(e).address),1)]),h("p",null,[G,R,i(" "+g(d(e).jobDescr),1)]),d(e).supervisors?(s(),p("p",w,[F,i(" "+g(d(e).supervisors.map((n=>n.name)).join(", ")),1)])):m("",!0),I,h("table",null,[C,(s(!0),p(k,null,f(d(e).technicians,(n=>{var e,l;return s(),p("tr",null,[h("td",null,g(n.name),1),h("td",null,g(null===(e=n.fisat)||void 0===e?void 0:e.id),1),h("td",null,g(null===(l=n.fisat)||void 0===l?void 0:l.level),1)])})),256))]),h("p",null,[P,h("ul",null,[(s(!0),p(k,null,f(d(e).equipment,(n=>(s(),p("li",null,g(n.descr),1)))),256))])]),V,(s(!0),p(k,null,f(d(e).access,(n=>(s(),p(k,null,[h("p",null,[h("strong",null,g(n.title),1)]),n.access?(s(),p("p",B,[N,i(),h("span",{innerHTML:n.access},null,8,Z)])):m("",!0),n.exit?(s(),p("p",q,[O,i(),h("span",{innerHTML:n.exit},null,8,U)])):m("",!0),n.anchorPoints?(s(),p("p",W,[$,i(),h("span",{innerHTML:n.anchorPoints},null,8,J)])):m("",!0),n.comment?(s(),p("p",{key:3,innerHTML:n.comment},null,8,K)):m("",!0)],64)))),256)),Q,(s(!0),p(k,null,f(d(e).access,(n=>(s(),p(k,null,[h("p",null,[h("strong",null,g(n.title),1)]),h("p",{innerHTML:n.rescue},null,8,X)],64)))),256)),Y,(s(!0),p(k,null,f([d(L).Access,d(L).Environment,d(L).Work],(n=>(s(),p(k,null,[n===d(L).Access?(s(),p("h3",nn,"Gefahren durch die ausgewählten Zugangstechniken")):n===d(L).Environment?(s(),p("h3",en,"Gefahren durch die Arbeitsumgebung")):(s(),p("h3",ln,"Gefahren durch die Arbeit")),h("table",null,[tn,h("tbody",null,[(s(!0),p(k,null,f(d(e).categories,(e=>(s(),p(k,null,[e.risks.filter((e=>e.risk.sector===n)).length?(s(),p(k,{key:0},[h("tr",null,[h("th",sn,g(e.descr),1)]),(s(!0),p(k,null,f(e.risks.filter((e=>e.risk.sector===n)),(n=>(s(),p("tr",null,[h("td",null,[h("span",rn,g(n.risk.factor.descr),1),i(" "+g(n.risk.descr),1)]),h("td",null,[n.measures.length>1?(s(),p("ul",un,[(s(!0),p(k,null,f(n.measures,(n=>(s(),p("li",null,g(n.descr),1)))),256))])):1===n.measures.length?(s(),p(k,{key:1},[i(g(n.measures[0].descr),1)],64)):m("",!0)])])))),256))],64)):m("",!0)],64)))),256))])])],64)))),256))])])),_:1})])),_:1})])),_:1}))}}),[["__scopeId","data-v-d8fcfe30"]]))}}})); diff --git a/ra/assets/RiskAssessmentExport-tj9T0tA_.css b/ra/assets/RiskAssessmentExport-tj9T0tA_.css new file mode 100644 index 0000000..6284795 --- /dev/null +++ b/ra/assets/RiskAssessmentExport-tj9T0tA_.css @@ -0,0 +1 @@ +#print[data-v-d8fcfe30]{margin:20px;padding:20px} diff --git a/ra/assets/RiskAssessmentListPage-RxhsctLC.js b/ra/assets/RiskAssessmentListPage-RxhsctLC.js new file mode 100644 index 0000000..6f12639 --- /dev/null +++ b/ra/assets/RiskAssessmentListPage-RxhsctLC.js @@ -0,0 +1 @@ +import{d as w,U as x,o,c as d,w as t,b as n,f as e,m as z,n as A,p as v,q as I,g as R,V as B,F as D,O as F,P as L,Q as S,t as c,j as i,W as $,R as E,k as u,l as N,X as V,Y as y}from"./index-DYrAM6VV.js";import{d as f,a as k}from"./helpers-ZGJup-tE.js";import{u as P,d as Q}from"./riskassessment-gvIk_m2h.js";import{l as m}from"./livequery-N-IbBJej.js";import{_ as T}from"./TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js";import"./liveriskstree-S1mQ308m.js";const X=w({__name:"RiskAssessmentListPage",setup(j){const p=x(),g=m.table("riskassessmentsmeta").entries(),r=P();function h(){f.riskassessments.add({...Q}).then(s=>{const l=Math.floor(Date.now()/1e3);f.riskassessmentsmeta.add({id:s,descr:"Neue Gefährdungsbeurteilung "+s,created:l,lastChange:l}).then(()=>{})})}function _(s){r.id===s&&p.push("/riskassessment/"+s),r.id!==void 0&&s!==r.id&&r.modified()?k("In der geöffneten Einsatzplanung gibt es noch ungespeicherte Änderungen. Diese gehen verloren wenn eine andere geöffnet wird. Soll die Einsatzplanung trotzdem geöffnet werden?",{text:"Öffnen",role:"submit",icon:V,handler:()=>{r.loadFromDb(s)}}):r.loadFromDb(s)}function C(s){k("Soll der Einsatzplan wirklich unwideruflich gelöscht werden?",{text:"Löschen",icon:y,handler:()=>{m.table("riskassessments").delete(s),m.table("riskassessmentsmeta").delete(s)}})}return(s,l)=>(o(),d(T,null,{default:t(()=>[n(e(I),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:t(()=>[n(e(z),{onClick:l[0]||(l[0]=a=>h())},{default:t(()=>[n(e(A),{icon:e(v)},null,8,["icon"])]),_:1})]),_:1}),(o(!0),R(D,null,B(e(g),a=>(o(),d(e(F),null,{default:t(()=>[n(e(L),{onClick:b=>_(a.id)},{default:t(()=>[n(e(S),null,{default:t(()=>[i(c(a.descr),1)]),_:2},1024),n(e($),null,{default:t(()=>[i("Zuletzt geändert: "+c(new Date(a.lastChange*1e3).toLocaleString("de")),1)]),_:2},1024)]),_:2},1032,["onClick"]),a.id===e(r).id?(o(),d(e(E),{key:0},{default:t(()=>[n(e(u),{size:"small",fill:"clear",color:"danger",onClick:b=>C(a.id)},{default:t(()=>[i("Löschen")]),_:2},1032,["onClick"]),n(e(u),{size:"small",fill:"clear","router-link":"/riskassessment/".concat(a.id,"/export")},{default:t(()=>[i("Export")]),_:2},1032,["router-link"]),n(e(u),{size:"small",fill:"clear","router-link":"/riskassessment/".concat(a.id)},{default:t(()=>[i("Bearbeiten")]),_:2},1032,["router-link"])]),_:2},1024)):N("",!0)]),_:2},1024))),256))]),_:1}))}});export{X as default}; diff --git a/ra/assets/RiskAssessmentListPage-legacy-vXQdEblg.js b/ra/assets/RiskAssessmentListPage-legacy-vXQdEblg.js new file mode 100644 index 0000000..383f4f6 --- /dev/null +++ b/ra/assets/RiskAssessmentListPage-legacy-vXQdEblg.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./helpers-legacy-X82L35U6.js","./riskassessment-legacy-kVyVXEzW.js","./livequery-legacy-GqvLyVpq.js","./TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,s){"use strict";var t,l,n,i,a,r,d,u,o,c,f,g,m,k,_,h,p,v,b,y,z,w,x,j,C,D,E,L,S,F,P;return{setters:[e=>{t=e.d,l=e.U,n=e.o,i=e.c,a=e.w,r=e.b,d=e.f,u=e.m,o=e.n,c=e.p,f=e.q,g=e.g,m=e.V,k=e.F,_=e.O,h=e.P,p=e.Q,v=e.t,b=e.j,y=e.W,z=e.R,w=e.k,x=e.l,j=e.X,C=e.Y},e=>{D=e.d,E=e.a},e=>{L=e.u,S=e.d},e=>{F=e.l},e=>{P=e._},null],execute:function(){e("default",t({__name:"RiskAssessmentListPage",setup(e){const s=l(),t=F.table("riskassessmentsmeta").entries(),q=L();return(e,l)=>(n(),i(P,null,{default:a((()=>[r(d(f),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:a((()=>[r(d(u),{onClick:l[0]||(l[0]=e=>{D.riskassessments.add({...S}).then((e=>{const s=Math.floor(Date.now()/1e3);D.riskassessmentsmeta.add({id:e,descr:"Neue Gefährdungsbeurteilung "+e,created:s,lastChange:s}).then((()=>{}))}))})},{default:a((()=>[r(d(o),{icon:d(c)},null,8,["icon"])])),_:1})])),_:1}),(n(!0),g(k,null,m(d(t),(e=>(n(),i(d(_),null,{default:a((()=>[r(d(h),{onClick:t=>{return l=e.id,q.id===l&&s.push("/riskassessment/"+l),void(void 0!==q.id&&l!==q.id&&q.modified()?E("In der geöffneten Einsatzplanung gibt es noch ungespeicherte Änderungen. Diese gehen verloren wenn eine andere geöffnet wird. Soll die Einsatzplanung trotzdem geöffnet werden?",{text:"Öffnen",role:"submit",icon:j,handler:()=>{q.loadFromDb(l)}}):q.loadFromDb(l));var l}},{default:a((()=>[r(d(p),null,{default:a((()=>[b(v(e.descr),1)])),_:2},1024),r(d(y),null,{default:a((()=>[b("Zuletzt geändert: "+v(new Date(1e3*e.lastChange).toLocaleString("de")),1)])),_:2},1024)])),_:2},1032,["onClick"]),e.id===d(q).id?(n(),i(d(z),{key:0},{default:a((()=>[r(d(w),{size:"small",fill:"clear",color:"danger",onClick:s=>{return t=e.id,void E("Soll der Einsatzplan wirklich unwideruflich gelöscht werden?",{text:"Löschen",icon:C,handler:()=>{F.table("riskassessments").delete(t),F.table("riskassessmentsmeta").delete(t)}});var t}},{default:a((()=>[b("Löschen")])),_:2},1032,["onClick"]),r(d(w),{size:"small",fill:"clear","router-link":`/riskassessment/${e.id}/export`},{default:a((()=>[b("Export")])),_:2},1032,["router-link"]),r(d(w),{size:"small",fill:"clear","router-link":`/riskassessment/${e.id}`},{default:a((()=>[b("Bearbeiten")])),_:2},1032,["router-link"])])),_:2},1024)):x("",!0)])),_:2},1024)))),256))])),_:1}))}}))}}})); diff --git a/ra/assets/RiskCatalog.vue_vue_type_script_setup_true_lang-legacy-HueAlsRD.js b/ra/assets/RiskCatalog.vue_vue_type_script_setup_true_lang-legacy-HueAlsRD.js new file mode 100644 index 0000000..76be005 --- /dev/null +++ b/ra/assets/RiskCatalog.vue_vue_type_script_setup_true_lang-legacy-HueAlsRD.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./helpers-legacy-X82L35U6.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(e,n){"use strict";var t,l,i,a,r,o,s,u,d,c,h,f,g,k,v,p,m,y,b,_,w,x,C,V,A,S,B,G,D,F,j,E,I,U,$,q,z,N,Z,H,L,O,R,T,W,Y,J,K,M,P,Q;return{setters:[e=>{t=e._,l=e.t,i=e.d,a=e.G,r=e.e,o=e.o,s=e.g,u=e.b,d=e.f,c=e.am,h=e.c,f=e.w,g=e.F,k=e.V,v=e.an,p=e.l,m=e.ao,y=e.r,b=e.n,_=e.ap,w=e.i,x=e.j,C=e.I,V=e.aq,A=e.ar,S=e.as,B=e.at,G=e.aj,D=e.au,F=e.av,j=e.p,E=e.aw,I=e.Y,U=e.z,$=e.ax,q=e.ay,z=e.az,N=e.aA,Z=e.aB,H=e.aC,L=e.aD,O=e.aE,R=e.aF,T=e.aG,W=e.aH},e=>{Y=e.S,J=e.d,K=e.R,M=e.a,P=e.p},e=>{Q=e.l}],execute:function(){const n={props:{sector:{type:String,required:!0},short:Boolean},computed:{asString(){return this.sector===Y.Access?this.short?"Z":"Zugang":this.sector===Y.Environment?this.short?"U":"Umgebung":this.sector===Y.Work?this.short?"A":"Arbeit":(console.warn("Unknown sector"),this.short?"?":"???")}}},X=t(n,[["render",function(e,n,t,i,a,r){return l(r.asString)}]]);e("_",i({__name:"RiskCatalog",props:{sector:String,modelValue:Array,exclude:Array,inverted:Boolean,linkToFunction:{type:Function,default:e=>`/risks/${e.id}`}},emits:["update:modelValue"],setup(e,{emit:n}){const t=e,i=n,ee={},ne=[{text:"Abbrechen",role:"cancel"},{text:"Speichern",role:"submit"}],te=Q,le=a(),ie=r((()=>{if(void 0!==le.value)return te.get(le.value)})),ae=r((()=>ie.value?ie.value.descr:"")),re={1:$,2:q,3:z,4:N,5:Z,6:H,7:L,8:O,9:R,10:T,11:_};async function oe(e){if(void 0===e.id)return;const n={text:"Löschen",role:"destructive",icon:I,handler:(t=e.id,()=>{!async function(e){J.risks.where("id").equals(e).delete().then((()=>{P("Gefährdung wurde aus der Datenbank gelöscht","success")})).catch((e=>{console.log(e)}))}(t)})};var t;null!==ee[e.id]&&ee[e.id].$el.close(),await M(`'${e.descr}' wirklich aus der Datenbank löschen?`,n)}function se(e){void 0!==e&&void 0!==t.modelValue&&(t.modelValue.includes(e)?i("update:modelValue",t.modelValue.filter((n=>n!==e))):i("update:modelValue",[...t.modelValue,e]))}async function ue(e){void 0!==le.value&&(ee[le.value].$el.close(),"submit"==e.detail.role?(async function(e,n){""!==n?J.risks.update(e,{descr:n}).then((()=>{P("Änderungen gespeichert","success")})).catch((()=>{P("Beim Speichern ist ein Fehler aufgetreten","danger")})):P("Die Beschreibung darf nicht leer sein!","danger")}(le.value,e.detail.data.values[0]),le.value=void 0):le.value=void 0)}return(n,i)=>(o(),s(g,null,[u(d(c),{isOpen:void 0!==le.value,header:"Beschreibung eingeben",buttons:ne,inputs:[{placeholder:"Beschreibung",value:ae.value}],"backdrop-dismiss":!0,onDidDismiss:ue},null,8,["isOpen","inputs"]),d(te)?(o(),h(d(v),{key:0},{default:f((()=>[(o(!0),s(g,null,k(d(te).categories,(n=>(o(),h(d(m),{key:n.id},{default:f((()=>[u(d(y),{slot:"header"},{default:f((()=>[u(d(b),{slot:"start",icon:n.id?re[n.id]:d(_)},null,8,["icon"]),u(d(w),null,{default:f((()=>[x(l(n.descr),1)])),_:2},1024)])),_:2},1024),u(d(C),{slot:"content"},{default:f((()=>[(o(!0),s(g,null,k(n.factors,(n=>(o(),h(d(V),{key:n.id},{default:f((()=>[u(d(A),null,{default:f((()=>[u(d(w),null,{default:f((()=>[x(l(n.descr),1)])),_:2},1024),n.id?(o(),h(d(b),{key:0,slot:"end",icon:d(S),color:"primary",onClick:e=>async function(e){if(void 0!==t.sector){const n=t.sector;return J.risks.add(new K("Neue Gefährdung",n,e))}(async()=>{const n=await W.create({header:"Neue Gefährdung",message:"In welchem Sektor besteht die Gefährung?",inputs:[{type:"radio",label:"Zugang",value:Y.Access},{type:"radio",label:"Umgebung",value:Y.Environment},{type:"radio",label:"Arbeit",value:Y.Work}],buttons:[{text:"Abbrechen",role:"cancel"},{text:"Hinzufügen",role:"submit",handler:n=>J.risks.add(new K("Neue Gefährdung",n,e))}]});await n.present()})()}(n.id)},null,8,["icon","onClick"])):p("",!0)])),_:2},1024),(o(!0),s(g,null,k(n.risks,(n=>(o(),s(g,{key:n.id},[void 0!==e.exclude&&e.exclude.includes(n.id)||void 0!==e.modelValue&&e.modelValue.includes(n.id)!==e.inverted||e.sector&&n.sector!==e.sector?p("",!0):(o(),h(d(B),{key:0,ref_for:!0,ref:e=>ee[n.id]=e},{default:f((()=>[u(d(y),{"router-link":e.linkToFunction(n)},{default:f((()=>[u(d(w),null,{default:f((()=>[x(l(n.descr),1)])),_:2},1024),e.sector?p("",!0):(o(),h(d(G),{key:0,slot:"end"},{default:f((()=>[u(X,{sector:n.sector},null,8,["sector"])])),_:2},1024))])),_:2},1032,["router-link"]),void 0!==e.modelValue?(o(),h(d(D),{key:0,side:"start",onIonSwipe:e=>se(n.id)},{default:f((()=>[e.inverted?(o(),h(d(F),{key:1,color:"warning",onClick:e=>se(n.id),expandable:""},{default:f((()=>[u(d(b),{icon:d(E),slot:"start"},null,8,["icon"]),x(" Enfernen ")])),_:2},1032,["onClick"])):(o(),h(d(F),{key:0,color:"success",onClick:e=>se(n.id),expandable:""},{default:f((()=>[u(d(b),{icon:d(j),slot:"start"},null,8,["icon"]),x(" Auswählen ")])),_:2},1032,["onClick"]))])),_:2},1032,["onIonSwipe"])):p("",!0),u(d(D),{side:"end"},{default:f((()=>[u(d(F),{color:"danger",onClick:e=>oe(n)},{default:f((()=>[u(d(b),{icon:d(I),slot:"end"},null,8,["icon"]),x(" Löschen ")])),_:2},1032,["onClick"]),u(d(F),{onClick:e=>le.value=n.id},{default:f((()=>[u(d(b),{icon:d(U),slot:"end"},null,8,["icon"]),x(" Bearbeiten ")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1536))],64)))),128))])),_:2},1024)))),128))])),_:2},1024)])),_:2},1024)))),128))])),_:1})):p("",!0)],64))}}))}}})); diff --git a/ra/assets/RiskCatalog.vue_vue_type_script_setup_true_lang-t3Akc4GU.js b/ra/assets/RiskCatalog.vue_vue_type_script_setup_true_lang-t3Akc4GU.js new file mode 100644 index 0000000..dedebe8 --- /dev/null +++ b/ra/assets/RiskCatalog.vue_vue_type_script_setup_true_lang-t3Akc4GU.js @@ -0,0 +1 @@ +import{_ as Y,t as A,d as J,G as K,e as R,o as l,g as p,b as a,f as e,am as M,c as u,w as n,F as k,V as $,an as P,l as y,ao as Q,r as F,n as v,ap as N,i as B,j as f,I as X,aq as ee,ar as te,as as ne,at as ae,aj as se,au as T,av as I,p as oe,aw as le,Y as E,z as re,ax as ie,ay as ue,az as ce,aA as de,aB as fe,aC as me,aD as he,aE as ve,aF as ge,aG as be,aH as pe}from"./index-DYrAM6VV.js";import{S as g,d as w,R as L,a as ke,p as C}from"./helpers-ZGJup-tE.js";import{l as ye}from"./liveriskstree-S1mQ308m.js";const Ie={props:{sector:{type:String,required:!0},short:Boolean},computed:{asString(){return this.sector===g.Access?this.short?"Z":"Zugang":this.sector===g.Environment?this.short?"U":"Umgebung":this.sector===g.Work?this.short?"A":"Arbeit":(console.warn("Unknown sector"),this.short?"?":"???")}}};function we(s,_,c,S,b,x){return A(x.asString)}const Ce=Y(Ie,[["render",we]]),Ve=J({__name:"RiskCatalog",props:{sector:String,modelValue:Array,exclude:Array,inverted:Boolean,linkToFunction:{type:Function,default:s=>"/risks/".concat(s.id)}},emits:["update:modelValue"],setup(s,{emit:_}){const c=s,S=_,b={},x=[{text:"Abbrechen",role:"cancel"},{text:"Speichern",role:"submit"}],V=ye,i=K(),G=R(()=>{if(i.value!==void 0)return V.get(i.value)}),O=R(()=>G.value?G.value.descr:""),U={1:ie,2:ue,3:ce,4:de,5:fe,6:me,7:he,8:ve,9:ge,10:be,11:N};async function j(t){if(c.sector===void 0)(async()=>{await(await pe.create({header:"Neue Gefährdung",message:"In welchem Sektor besteht die Gefährung?",inputs:[{type:"radio",label:"Zugang",value:g.Access},{type:"radio",label:"Umgebung",value:g.Environment},{type:"radio",label:"Arbeit",value:g.Work}],buttons:[{text:"Abbrechen",role:"cancel"},{text:"Hinzufügen",role:"submit",handler:d=>w.risks.add(new L("Neue Gefährdung",d,t))}]})).present()})();else{const r=c.sector;return w.risks.add(new L("Neue Gefährdung",r,t))}}async function q(t){w.risks.where("id").equals(t).delete().then(()=>{C("Gefährdung wurde aus der Datenbank gelöscht","success")}).catch(r=>{console.log(r)})}async function z(t){if(t.id===void 0)return;const r={text:"Löschen",role:"destructive",icon:E,handler:Z(t.id)};b[t.id]!==null&&b[t.id].$el.close(),await ke("'".concat(t.descr,"' wirklich aus der Datenbank löschen?"),r)}function Z(t){return()=>{q(t)}}function D(t){t===void 0||c.modelValue===void 0||(c.modelValue.includes(t)?S("update:modelValue",c.modelValue.filter(r=>r!==t)):S("update:modelValue",[...c.modelValue,t]))}async function H(t,r){if(r===""){C("Die Beschreibung darf nicht leer sein!","danger");return}w.risks.update(t,{descr:r}).then(()=>{C("Änderungen gespeichert","success")}).catch(()=>{C("Beim Speichern ist ein Fehler aufgetreten","danger")})}async function W(t){if(i.value!==void 0){if(b[i.value].$el.close(),t.detail.role!="submit"){i.value=void 0;return}H(i.value,t.detail.data.values[0]),i.value=void 0}}return(t,r)=>(l(),p(k,null,[a(e(M),{isOpen:i.value!==void 0,header:"Beschreibung eingeben",buttons:x,inputs:[{placeholder:"Beschreibung",value:O.value}],"backdrop-dismiss":!0,onDidDismiss:W},null,8,["isOpen","inputs"]),e(V)?(l(),u(e(P),{key:0},{default:n(()=>[(l(!0),p(k,null,$(e(V).categories,m=>(l(),u(e(Q),{key:m.id},{default:n(()=>[a(e(F),{slot:"header"},{default:n(()=>[a(e(v),{slot:"start",icon:m.id?U[m.id]:e(N)},null,8,["icon"]),a(e(B),null,{default:n(()=>[f(A(m.descr),1)]),_:2},1024)]),_:2},1024),a(e(X),{slot:"content"},{default:n(()=>[(l(!0),p(k,null,$(m.factors,d=>(l(),u(e(ee),{key:d.id},{default:n(()=>[a(e(te),null,{default:n(()=>[a(e(B),null,{default:n(()=>[f(A(d.descr),1)]),_:2},1024),d.id?(l(),u(e(v),{key:0,slot:"end",icon:e(ne),color:"primary",onClick:o=>j(d.id)},null,8,["icon","onClick"])):y("",!0)]),_:2},1024),(l(!0),p(k,null,$(d.risks,o=>(l(),p(k,{key:o.id},[(s.exclude===void 0||!s.exclude.includes(o.id))&&(s.modelValue===void 0||s.modelValue.includes(o.id)===s.inverted)&&(!s.sector||o.sector===s.sector)?(l(),u(e(ae),{key:0,ref_for:!0,ref:h=>b[o.id]=h},{default:n(()=>[a(e(F),{"router-link":s.linkToFunction(o)},{default:n(()=>[a(e(B),null,{default:n(()=>[f(A(o.descr),1)]),_:2},1024),s.sector?y("",!0):(l(),u(e(se),{key:0,slot:"end"},{default:n(()=>[a(Ce,{sector:o.sector},null,8,["sector"])]),_:2},1024))]),_:2},1032,["router-link"]),s.modelValue!==void 0?(l(),u(e(T),{key:0,side:"start",onIonSwipe:h=>D(o.id)},{default:n(()=>[s.inverted?(l(),u(e(I),{key:1,color:"warning",onClick:h=>D(o.id),expandable:""},{default:n(()=>[a(e(v),{icon:e(le),slot:"start"},null,8,["icon"]),f(" Enfernen ")]),_:2},1032,["onClick"])):(l(),u(e(I),{key:0,color:"success",onClick:h=>D(o.id),expandable:""},{default:n(()=>[a(e(v),{icon:e(oe),slot:"start"},null,8,["icon"]),f(" Auswählen ")]),_:2},1032,["onClick"]))]),_:2},1032,["onIonSwipe"])):y("",!0),a(e(T),{side:"end"},{default:n(()=>[a(e(I),{color:"danger",onClick:h=>z(o)},{default:n(()=>[a(e(v),{icon:e(E),slot:"end"},null,8,["icon"]),f(" Löschen ")]),_:2},1032,["onClick"]),a(e(I),{onClick:h=>i.value=o.id},{default:n(()=>[a(e(v),{icon:e(re),slot:"end"},null,8,["icon"]),f(" Bearbeiten ")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1536)):y("",!0)],64))),128))]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1})):y("",!0)],64))}});export{Ve as _}; diff --git a/ra/assets/RiskCatalogPage-jm6FPomx.js b/ra/assets/RiskCatalogPage-jm6FPomx.js new file mode 100644 index 0000000..29b0e7e --- /dev/null +++ b/ra/assets/RiskCatalogPage-jm6FPomx.js @@ -0,0 +1 @@ +import{_ as a}from"./RiskCatalog.vue_vue_type_script_setup_true_lang-t3Akc4GU.js";import{_ as o}from"./TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js";import{d as t,o as e,c as r,w as s,b as _}from"./index-DYrAM6VV.js";import"./helpers-ZGJup-tE.js";import"./liveriskstree-S1mQ308m.js";import"./livequery-N-IbBJej.js";const k=t({__name:"RiskCatalogPage",setup(m){return(c,i)=>(e(),r(o,null,{default:s(()=>[_(a)]),_:1}))}});export{k as default}; diff --git a/ra/assets/RiskCatalogPage-legacy-LDsvAgGG.js b/ra/assets/RiskCatalogPage-legacy-LDsvAgGG.js new file mode 100644 index 0000000..49147af --- /dev/null +++ b/ra/assets/RiskCatalogPage-legacy-LDsvAgGG.js @@ -0,0 +1 @@ +System.register(["./RiskCatalog.vue_vue_type_script_setup_true_lang-legacy-HueAlsRD.js","./TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js","./index-legacy-l9aK7RKf.js","./helpers-legacy-X82L35U6.js","./liveriskstree-legacy-dlv-ajCr.js","./livequery-legacy-GqvLyVpq.js"],(function(e,t){"use strict";var l,s,u,a,_,r,n;return{setters:[e=>{l=e._},e=>{s=e._},e=>{u=e.d,a=e.o,_=e.c,r=e.w,n=e.b},null,null,null],execute:function(){e("default",u({__name:"RiskCatalogPage",setup:e=>(e,t)=>(a(),_(s,null,{default:r((()=>[n(l)])),_:1}))}))}}})); diff --git a/ra/assets/RiskDetailsPage-hImwSlZO.js b/ra/assets/RiskDetailsPage-hImwSlZO.js new file mode 100644 index 0000000..b5e7c35 --- /dev/null +++ b/ra/assets/RiskDetailsPage-hImwSlZO.js @@ -0,0 +1 @@ +import{d,u as f,e as p,o,c,w as s,f as e,g as k,b as t,I as _,h as v,i as b,j as l,k as g,F as I,l as R}from"./index-DYrAM6VV.js";import{l as h}from"./liveriskstree-S1mQ308m.js";import{l as i}from"./livequery-N-IbBJej.js";import{_ as B}from"./MeasureCatalog.vue_vue_type_script_setup_true_lang-Z3tgqIYP.js";import{R as y}from"./RiskListItem-_kbE0JWc.js";import{T as C}from"./TemplateGenericEditPage-c3J_MoRf.js";import"./helpers-ZGJup-tE.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";const M=d({__name:"RiskDetailsPage",setup(L){const u=parseInt(f().params.id),a=h.getAsRef(u);i.table("measures").updated();const m=p(()=>a.value===void 0||!i.table("measures").isReady()?[]:i.table("measures").entries().filter(r=>r.solveRisks.includes(a.value.id)));return(r,n)=>(o(),c(C,{onShouldCancel:n[0]||(n[0]=T=>r.$router.back()),"hide-submit":""},{default:s(()=>[e(a)?(o(),k(I,{key:0},[t(e(_),{inset:""},{default:s(()=>[t(y,{risk:e(a)},null,8,["risk"])]),_:1}),t(B,{inset:"",entries:m.value},{header:s(()=>[t(e(v),null,{default:s(()=>[t(e(b),null,{default:s(()=>[l("Verfügbare Maßnahmen")]),_:1}),t(e(g),{"router-link":"/measures/new?for=".concat(e(a).id)},{default:s(()=>[l("Hinzufügen")]),_:1},8,["router-link"])]),_:1})]),_:1},8,["entries"])],64)):R("",!0)]),_:1}))}});export{M as default}; diff --git a/ra/assets/RiskDetailsPage-legacy-R8b2Xjm5.js b/ra/assets/RiskDetailsPage-legacy-R8b2Xjm5.js new file mode 100644 index 0000000..de73a38 --- /dev/null +++ b/ra/assets/RiskDetailsPage-legacy-R8b2Xjm5.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./liveriskstree-legacy-dlv-ajCr.js","./livequery-legacy-GqvLyVpq.js","./MeasureCatalog.vue_vue_type_script_setup_true_lang-legacy-SWGuYKdX.js","./RiskListItem-legacy--OFZLq8T.js","./TemplateGenericEditPage-legacy-PPT4N-QR.js","./helpers-legacy-X82L35U6.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js"],(function(e,s){"use strict";var t,l,a,u,r,i,n,c,_,d,g,y,f,o,p,v,k,m,j,b,h;return{setters:[e=>{t=e.d,l=e.u,a=e.e,u=e.o,r=e.c,i=e.w,n=e.f,c=e.g,_=e.b,d=e.I,g=e.h,y=e.i,f=e.j,o=e.k,p=e.F,v=e.l},e=>{k=e.l},e=>{m=e.l},e=>{j=e._},e=>{b=e.R},e=>{h=e.T},null,null],execute:function(){e("default",t({__name:"RiskDetailsPage",setup(e){const s=parseInt(l().params.id),t=k.getAsRef(s);m.table("measures").updated();const R=a((()=>void 0!==t.value&&m.table("measures").isReady()?m.table("measures").entries().filter((e=>e.solveRisks.includes(t.value.id))):[]));return(e,s)=>(u(),r(h,{onShouldCancel:s[0]||(s[0]=s=>e.$router.back()),"hide-submit":""},{default:i((()=>[n(t)?(u(),c(p,{key:0},[_(n(d),{inset:""},{default:i((()=>[_(b,{risk:n(t)},null,8,["risk"])])),_:1}),_(j,{inset:"",entries:R.value},{header:i((()=>[_(n(g),null,{default:i((()=>[_(n(y),null,{default:i((()=>[f("Verfügbare Maßnahmen")])),_:1}),_(n(o),{"router-link":`/measures/new?for=${n(t).id}`},{default:i((()=>[f("Hinzufügen")])),_:1},8,["router-link"])])),_:1})])),_:1},8,["entries"])],64)):v("",!0)])),_:1}))}}))}}})); diff --git a/ra/assets/RiskList.vue_vue_type_script_setup_true_lang-RlQXPtnM.js b/ra/assets/RiskList.vue_vue_type_script_setup_true_lang-RlQXPtnM.js new file mode 100644 index 0000000..73ffd70 --- /dev/null +++ b/ra/assets/RiskList.vue_vue_type_script_setup_true_lang-RlQXPtnM.js @@ -0,0 +1 @@ +import{R as o}from"./RiskListItem-_kbE0JWc.js";import{_ as i}from"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import{l as a}from"./liveriskstree-S1mQ308m.js";import{d as n,o as c,c as f,w as t,ah as m,b as l,f as u}from"./index-DYrAM6VV.js";const R=n({__name:"RiskList",props:{sector:String},setup(r){return(s,p)=>(c(),f(i,{entries:u(a).entries(),filter:e=>r.sector?e.sector===r.sector:!0},{header:t(()=>[m(s.$slots,"header")]),default:t(e=>[l(o,{risk:e.object},null,8,["risk"])]),_:3},8,["entries","filter"]))}});export{R as _}; diff --git a/ra/assets/RiskList.vue_vue_type_script_setup_true_lang-legacy-Gt6J-dTZ.js b/ra/assets/RiskList.vue_vue_type_script_setup_true_lang-legacy-Gt6J-dTZ.js new file mode 100644 index 0000000..1fd2b1f --- /dev/null +++ b/ra/assets/RiskList.vue_vue_type_script_setup_true_lang-legacy-Gt6J-dTZ.js @@ -0,0 +1 @@ +System.register(["./RiskListItem-legacy--OFZLq8T.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./liveriskstree-legacy-dlv-ajCr.js","./index-legacy-l9aK7RKf.js"],(function(e,t){"use strict";var s,r,i,c,n,l,u,a,_,o;return{setters:[e=>{s=e.R},e=>{r=e._},e=>{i=e.l},e=>{c=e.d,n=e.o,l=e.c,u=e.w,a=e.ah,_=e.b,o=e.f}],execute:function(){e("_",c({__name:"RiskList",props:{sector:String},setup:e=>(t,c)=>(n(),l(r,{entries:o(i).entries(),filter:t=>!e.sector||t.sector===e.sector},{header:u((()=>[a(t.$slots,"header")])),default:u((e=>[_(s,{risk:e.object},null,8,["risk"])])),_:3},8,["entries","filter"]))}))}}})); diff --git a/ra/assets/RiskListItem-_kbE0JWc.js b/ra/assets/RiskListItem-_kbE0JWc.js new file mode 100644 index 0000000..49a6f5e --- /dev/null +++ b/ra/assets/RiskListItem-_kbE0JWc.js @@ -0,0 +1 @@ +import{r as _,i as l,aj as m,aI as d,_ as f,E as s,o as a,c as n,w as r,t,j as k,l as p,a as u}from"./index-DYrAM6VV.js";import{R as I}from"./helpers-ZGJup-tE.js";const x={components:{IonItem:_,IonLabel:l,IonNote:m,IonText:d},props:{risk:{type:I,required:!0}}};function y(N,R,e,b,B,C){const c=s("ion-label"),i=s("ion-item");return a(),n(i,null,{default:r(()=>[e.risk.factor?(a(),n(c,{key:0,position:"stacked"},{default:r(()=>{var o;return[k(t((o=e.risk.factor.category)==null?void 0:o.descr)+" ➤ "+t(e.risk.factor.descr),1)]}),_:1})):p("",!0),u("p",null,t(e.risk.descr),1)]),_:1})}const h=f(x,[["render",y]]);export{h as R}; diff --git a/ra/assets/RiskListItem-legacy--OFZLq8T.js b/ra/assets/RiskListItem-legacy--OFZLq8T.js new file mode 100644 index 0000000..6fa2b68 --- /dev/null +++ b/ra/assets/RiskListItem-legacy--OFZLq8T.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./helpers-legacy-X82L35U6.js"],(function(e,r){"use strict";var t,n,o,s,i,c,a,l,u,d,f,k,p,y;return{setters:[e=>{t=e.r,n=e.i,o=e.aj,s=e.aI,i=e._,c=e.E,a=e.o,l=e.c,u=e.w,d=e.t,f=e.j,k=e.l,p=e.a},e=>{y=e.R}],execute:function(){e("R",i({components:{IonItem:t,IonLabel:n,IonNote:o,IonText:s},props:{risk:{type:y,required:!0}}},[["render",function(e,r,t,n,o,s){const i=c("ion-label"),y=c("ion-item");return a(),l(y,null,{default:u((()=>[t.risk.factor?(a(),l(i,{key:0,position:"stacked"},{default:u((()=>{var e;return[f(d(null===(e=t.risk.factor.category)||void 0===e?void 0:e.descr)+" ➤ "+d(t.risk.factor.descr),1)]})),_:1})):k("",!0),p("p",null,d(t.risk.descr),1)])),_:1})}]]))}}})); diff --git a/ra/assets/TechnicianCatalogPage-f5XFi-9w.js b/ra/assets/TechnicianCatalogPage-f5XFi-9w.js new file mode 100644 index 0000000..bd64601 --- /dev/null +++ b/ra/assets/TechnicianCatalogPage-f5XFi-9w.js @@ -0,0 +1 @@ +import{d as s,G as r,o as c,c as m,w as t,b as n,f as o,m as f,n as l,p,q as _}from"./index-DYrAM6VV.js";import{_ as u}from"./TechniciansList.vue_vue_type_script_setup_true_lang-6ejC1Akr.js";import{_ as d}from"./TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js";import"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import"./helpers-ZGJup-tE.js";import"./livequery-N-IbBJej.js";const B=s({__name:"TechnicianCatalogPage",setup(h){const e=r();return(i,a)=>(c(),m(d,null,{default:t(()=>[n(o(_),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:t(()=>[n(o(f),{onClick:a[0]||(a[0]=C=>i.$router.push("/technicians/new"))},{default:t(()=>[n(o(l),{icon:o(p)},null,8,["icon"])]),_:1})]),_:1}),n(u,{ref_key:"technicianListComp",ref:e},null,512)]),_:1}))}});export{B as default}; diff --git a/ra/assets/TechnicianCatalogPage-legacy-G1BAdEsm.js b/ra/assets/TechnicianCatalogPage-legacy-G1BAdEsm.js new file mode 100644 index 0000000..240aca6 --- /dev/null +++ b/ra/assets/TechnicianCatalogPage-legacy-G1BAdEsm.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./TechniciansList.vue_vue_type_script_setup_true_lang-legacy-Efqsdd0r.js","./TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js"],(function(e,t){"use strict";var n,l,u,c,i,s,a,_,r,o,p,g,y;return{setters:[e=>{n=e.d,l=e.G,u=e.o,c=e.c,i=e.w,s=e.b,a=e.f,_=e.m,r=e.n,o=e.p,p=e.q},e=>{g=e._},e=>{y=e._},null,null,null],execute:function(){e("default",n({__name:"TechnicianCatalogPage",setup(e){const t=l();return(e,n)=>(u(),c(y,null,{default:i((()=>[s(a(p),{slot:"fixed",vertical:"bottom",horizontal:"end"},{default:i((()=>[s(a(_),{onClick:n[0]||(n[0]=t=>e.$router.push("/technicians/new"))},{default:i((()=>[s(a(r),{icon:a(o)},null,8,["icon"])])),_:1})])),_:1}),s(g,{ref_key:"technicianListComp",ref:t},null,512)])),_:1}))}}))}}})); diff --git a/ra/assets/TechnicianEditPage-MxOvfvuk.js b/ra/assets/TechnicianEditPage-MxOvfvuk.js new file mode 100644 index 0000000..f7672f3 --- /dev/null +++ b/ra/assets/TechnicianEditPage-MxOvfvuk.js @@ -0,0 +1 @@ +import{v,D as C,H as E,J as $,K as k,L as B,M as D,N as x,k as g,O as y,P as A,Q as P,R as H,_ as b,E as a,o as w,g as M,b as n,w as o,F as U,j as c,t as G,A as z,s as K,y as O,r as R,B as j,T as q,c as J}from"./index-DYrAM6VV.js";import{T as Q}from"./TemplateGenericEditPage-c3J_MoRf.js";import{d as f,p as l}from"./helpers-ZGJup-tE.js";const W={components:{IonButtons:v,IonInput:C,IonGrid:E,IonRow:$,IonCol:k,IonSelect:B,IonSelectOption:D,IonTextarea:x,IonButton:g,IonCard:y,IonCardHeader:A,IonCardTitle:P,IonCardContent:H},emits:["hasSaved","hasAdded"],props:{technicianId:Number,createNew:Boolean},data(){return{name:"",fisatId:"",comment:"",fisatLevel:"",modified:!1,technicianData:void 0}},methods:{loadFromDb(t){t!==void 0&&f.technicians.get(t).then(e=>{if(e===void 0){l("Es exisitert kein Mitarbeiter mit der ID ".concat(t," in der Datenbank"),"danger");return}this.technicianData=e,this.resetForm(e)}).catch(e=>{console.log(e)})},resetForm(t=void 0){if(t===void 0){this.name="",this.fisatId="",this.fisatLevel="1",this.comment="";return}this.name=t.name,t.fisat?(this.fisatId=t.fisat.id,this.fisatLevel=""+t.fisat.level):(this.fisatId="",this.fisatLevel="1"),this.comment=t.comment?t.comment:""},async saveToDb(){if(this.technicianId===void 0&&!this.createNew)return;let t={name:this.name};if(this.name==="")return l("Es muss ein Name angegeben werden","danger"),!1;if(this.fisatId!==""){let e=parseInt(this.fisatLevel);if(![1,2,3].includes(e))return l("Ungültiges FISAT Level: "+e,"danger"),!1;t.fisat={id:this.fisatId,level:e}}this.comment!==""&&(t.comment=this.comment),this.createNew?f.technicians.add(t).then(e=>(this.modified=!1,l("Angestellter hinzugefügt","success"),this.$emit("hasAdded",{id:e,...t}),!0)).catch(e=>{throw l("Beim Speichern ist ein Fehler aufgetreten","danger"),e}):f.technicians.update(this.technicianId,t).then(()=>(this.modified=!1,l("Änderungen gespeichert","success"),this.$emit("hasSaved",{id:this.technicianId,...t}),!0)).catch(e=>{throw l("Beim Speichern ist ein Fehler aufgetreten","danger"),e})}},mounted(){this.createNew?this.resetForm():this.loadFromDb(this.technicianId)},watch:{createNew(t){t&&this.resetForm()},technicianId(t){this.createNew||this.loadFromDb(t)}}};function X(t,e,T,N,i,h){const m=a("ion-card-title"),d=a("ion-card-header"),r=a("ion-input"),p=a("ion-col"),u=a("ion-select-option"),V=a("ion-select"),F=a("ion-row"),L=a("ion-grid"),I=a("ion-card-content"),_=a("ion-card"),S=a("ion-textarea");return w(),M(U,null,[n(_,null,{default:o(()=>[n(d,null,{default:o(()=>[n(d,null,{default:o(()=>[n(m,null,{default:o(()=>[c(G(i.technicianData?i.technicianData.name:"Neuer Mitarbeiter"),1)]),_:1})]),_:1})]),_:1}),n(I,null,{default:o(()=>[n(r,{onIonInput:e[0]||(e[0]=s=>i.modified=!0),label:"Name","label-placement":"floating",placeholder:"Name des Mitarbeiters",modelValue:i.name,"onUpdate:modelValue":e[1]||(e[1]=s=>i.name=s),required:""},null,8,["modelValue"]),n(L,{style:{padding:"0"}},{default:o(()=>[n(F,null,{default:o(()=>[n(p,{style:{padding:"0"}},{default:o(()=>[n(r,{onIonInput:e[2]||(e[2]=s=>i.modified=!0),label:"FISAT-Nr.","label-placement":"floating",modelValue:i.fisatId,"onUpdate:modelValue":e[3]||(e[3]=s=>i.fisatId=s)},null,8,["modelValue"])]),_:1}),n(p,{size:"auto",style:{padding:"0"}},{default:o(()=>[n(V,{onIonInput:e[4]||(e[4]=s=>i.modified=!0),style:{width:"100px"},modelValue:i.fisatLevel,"onUpdate:modelValue":e[5]||(e[5]=s=>i.fisatLevel=s),label:"Level","label-placement":"floating"},{default:o(()=>[n(u,{value:"1"},{default:o(()=>[c("Level 1")]),_:1}),n(u,{value:"2"},{default:o(()=>[c("Level 2")]),_:1}),n(u,{value:"3"},{default:o(()=>[c("Level 3")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),n(_,null,{default:o(()=>[n(I,null,{default:o(()=>[n(S,{onIonInput:e[6]||(e[6]=s=>i.modified=!0),label:"Kommentar","label-placement":"floating",rows:5,modelValue:i.comment,"onUpdate:modelValue":e[7]||(e[7]=s=>i.comment=s)},null,8,["modelValue"])]),_:1})]),_:1})],64)}const Y=b(W,[["render",X]]),Z={components:{IonHeader:z,IonToolbar:K,IonButtons:v,IonTitle:O,IonItem:R,IonContent:j,IonButton:g,IonModal:q,TemplateGenericEditPage:Q,TechnicianEditor:Y},emits:["shouldSave","shouldCancel","willPresent"],props:{},data(){return{technicianId:void 0,createNew:!1}},methods:{saveToDb(){this.$refs.editor.saveToDb()}},mounted(){this.$route.path==="/technicians/new"?(this.technicianId=void 0,this.createNew=!0):(this.technicianId=parseInt(this.$route.params.id),this.createNew=!1)}};function ee(t,e,T,N,i,h){const m=a("TechnicianEditor"),d=a("TemplateGenericEditPage");return w(),J(d,{onSubmit:e[2]||(e[2]=r=>h.saveToDb()),onShouldCancel:e[3]||(e[3]=r=>t.$router.back())},{default:o(()=>[n(m,{ref:"editor","technician-id":i.technicianId,"create-new":i.createNew,onHasSaved:e[0]||(e[0]=r=>t.$router.back()),onHasAdded:e[1]||(e[1]=r=>t.$router.back())},null,8,["technician-id","create-new"])]),_:1})}const oe=b(Z,[["render",ee]]);export{oe as default}; diff --git a/ra/assets/TechnicianEditPage-legacy-BOVFQi38.js b/ra/assets/TechnicianEditPage-legacy-BOVFQi38.js new file mode 100644 index 0000000..8bec5db --- /dev/null +++ b/ra/assets/TechnicianEditPage-legacy-BOVFQi38.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./TemplateGenericEditPage-legacy-PPT4N-QR.js","./helpers-legacy-X82L35U6.js"],(function(e,t){"use strict";var n,i,a,o,l,d,s,r,c,h,u,m,f,I,p,v,g,b,w,N,T,_,D,L,S,F,V,y,C,$,B,E;return{setters:[e=>{n=e.v,i=e.D,a=e.H,o=e.J,l=e.K,d=e.L,s=e.M,r=e.N,c=e.k,h=e.O,u=e.P,m=e.Q,f=e.R,I=e._,p=e.E,v=e.o,g=e.g,b=e.b,w=e.w,N=e.F,T=e.j,_=e.t,D=e.A,L=e.s,S=e.y,F=e.r,V=e.B,y=e.T,C=e.c},e=>{$=e.T},e=>{B=e.d,E=e.p}],execute:function(){const t={components:{IonButtons:n,IonInput:i,IonGrid:a,IonRow:o,IonCol:l,IonSelect:d,IonSelectOption:s,IonTextarea:r,IonButton:c,IonCard:h,IonCardHeader:u,IonCardTitle:m,IonCardContent:f},emits:["hasSaved","hasAdded"],props:{technicianId:Number,createNew:Boolean},data:()=>({name:"",fisatId:"",comment:"",fisatLevel:"",modified:!1,technicianData:void 0}),methods:{loadFromDb(e){void 0!==e&&B.technicians.get(e).then((t=>{void 0!==t?(this.technicianData=t,this.resetForm(t)):E(`Es exisitert kein Mitarbeiter mit der ID ${e} in der Datenbank`,"danger")})).catch((e=>{console.log(e)}))},resetForm(e=void 0){if(void 0===e)return this.name="",this.fisatId="",this.fisatLevel="1",void(this.comment="");this.name=e.name,e.fisat?(this.fisatId=e.fisat.id,this.fisatLevel=""+e.fisat.level):(this.fisatId="",this.fisatLevel="1"),this.comment=e.comment?e.comment:""},async saveToDb(){if(void 0===this.technicianId&&!this.createNew)return;let e={name:this.name};if(""===this.name)return E("Es muss ein Name angegeben werden","danger"),!1;if(""!==this.fisatId){let t=parseInt(this.fisatLevel);if(![1,2,3].includes(t))return E("Ungültiges FISAT Level: "+t,"danger"),!1;e.fisat={id:this.fisatId,level:t}}""!==this.comment&&(e.comment=this.comment),this.createNew?B.technicians.add(e).then((t=>(this.modified=!1,E("Angestellter hinzugefügt","success"),this.$emit("hasAdded",{id:t,...e}),!0))).catch((e=>{throw E("Beim Speichern ist ein Fehler aufgetreten","danger"),e})):B.technicians.update(this.technicianId,e).then((()=>(this.modified=!1,E("Änderungen gespeichert","success"),this.$emit("hasSaved",{id:this.technicianId,...e}),!0))).catch((e=>{throw E("Beim Speichern ist ein Fehler aufgetreten","danger"),e}))}},mounted(){this.createNew?this.resetForm():this.loadFromDb(this.technicianId)},watch:{createNew(e){e&&this.resetForm()},technicianId(e){this.createNew||this.loadFromDb(e)}}};e("default",I({components:{IonHeader:D,IonToolbar:L,IonButtons:n,IonTitle:S,IonItem:F,IonContent:V,IonButton:c,IonModal:y,TemplateGenericEditPage:$,TechnicianEditor:I(t,[["render",function(e,t,n,i,a,o){const l=p("ion-card-title"),d=p("ion-card-header"),s=p("ion-input"),r=p("ion-col"),c=p("ion-select-option"),h=p("ion-select"),u=p("ion-row"),m=p("ion-grid"),f=p("ion-card-content"),I=p("ion-card"),D=p("ion-textarea");return v(),g(N,null,[b(I,null,{default:w((()=>[b(d,null,{default:w((()=>[b(d,null,{default:w((()=>[b(l,null,{default:w((()=>[T(_(a.technicianData?a.technicianData.name:"Neuer Mitarbeiter"),1)])),_:1})])),_:1})])),_:1}),b(f,null,{default:w((()=>[b(s,{onIonInput:t[0]||(t[0]=e=>a.modified=!0),label:"Name","label-placement":"floating",placeholder:"Name des Mitarbeiters",modelValue:a.name,"onUpdate:modelValue":t[1]||(t[1]=e=>a.name=e),required:""},null,8,["modelValue"]),b(m,{style:{padding:"0"}},{default:w((()=>[b(u,null,{default:w((()=>[b(r,{style:{padding:"0"}},{default:w((()=>[b(s,{onIonInput:t[2]||(t[2]=e=>a.modified=!0),label:"FISAT-Nr.","label-placement":"floating",modelValue:a.fisatId,"onUpdate:modelValue":t[3]||(t[3]=e=>a.fisatId=e)},null,8,["modelValue"])])),_:1}),b(r,{size:"auto",style:{padding:"0"}},{default:w((()=>[b(h,{onIonInput:t[4]||(t[4]=e=>a.modified=!0),style:{width:"100px"},modelValue:a.fisatLevel,"onUpdate:modelValue":t[5]||(t[5]=e=>a.fisatLevel=e),label:"Level","label-placement":"floating"},{default:w((()=>[b(c,{value:"1"},{default:w((()=>[T("Level 1")])),_:1}),b(c,{value:"2"},{default:w((()=>[T("Level 2")])),_:1}),b(c,{value:"3"},{default:w((()=>[T("Level 3")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),b(I,null,{default:w((()=>[b(f,null,{default:w((()=>[b(D,{onIonInput:t[6]||(t[6]=e=>a.modified=!0),label:"Kommentar","label-placement":"floating",rows:5,modelValue:a.comment,"onUpdate:modelValue":t[7]||(t[7]=e=>a.comment=e)},null,8,["modelValue"])])),_:1})])),_:1})],64)}]])},emits:["shouldSave","shouldCancel","willPresent"],props:{},data:()=>({technicianId:void 0,createNew:!1}),methods:{saveToDb(){this.$refs.editor.saveToDb()}},mounted(){"/technicians/new"===this.$route.path?(this.technicianId=void 0,this.createNew=!0):(this.technicianId=parseInt(this.$route.params.id),this.createNew=!1)}},[["render",function(e,t,n,i,a,o){const l=p("TechnicianEditor"),d=p("TemplateGenericEditPage");return v(),C(d,{onSubmit:t[2]||(t[2]=e=>o.saveToDb()),onShouldCancel:t[3]||(t[3]=t=>e.$router.back())},{default:w((()=>[b(l,{ref:"editor","technician-id":a.technicianId,"create-new":a.createNew,onHasSaved:t[0]||(t[0]=t=>e.$router.back()),onHasAdded:t[1]||(t[1]=t=>e.$router.back())},null,8,["technician-id","create-new"])])),_:1})}]]))}}})); diff --git a/ra/assets/TechniciansList.vue_vue_type_script_setup_true_lang-6ejC1Akr.js b/ra/assets/TechniciansList.vue_vue_type_script_setup_true_lang-6ejC1Akr.js new file mode 100644 index 0000000..4b7d2fd --- /dev/null +++ b/ra/assets/TechniciansList.vue_vue_type_script_setup_true_lang-6ejC1Akr.js @@ -0,0 +1 @@ +import{d as c,o as s,c as d,w as t,f as a,ah as f,r as b,i as p,t as n,j as i,b as m,ag as v,l as y}from"./index-DYrAM6VV.js";import{_ as g}from"./GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js";import{l as u}from"./livequery-N-IbBJej.js";const $=c({__name:"TechniciansList",props:{modelValue:{type:Array,default:void 0},entries:{type:Array,default:u.table("technicians").entries()},inverted:Boolean},emits:["update:modelValue"],setup(l,{emit:j}){return(o,r)=>(s(),d(g,{entries:l.entries,"delete-function":e=>a(u).table("technicians").delete(e),"model-value":l.modelValue,"onUpdate:modelValue":r[0]||(r[0]=e=>o.$emit("update:modelValue",e)),"messag-really-delete":e=>"".concat(e.name," wirklich löschen?"),"message-delete-success":"Löschen erfolgreich.",inverted:l.inverted},{default:t(e=>[f(o.$slots,"default",{object:e.object},()=>[m(a(b),{"router-link":"/technicians/edit/".concat(e.object.id)},{default:t(()=>[m(a(p),null,{default:t(()=>[i(n(e.object.name),1)]),_:2},1024),e.object.fisat?(s(),d(a(v),{key:0,slot:"end",color:e.object.fisat.level===3?"tertiary":"medium"},{default:t(()=>[i("Level "+n(e.object.fisat.level),1)]),_:2},1032,["color"])):y("",!0)]),_:2},1032,["router-link"])])]),_:3},8,["entries","delete-function","model-value","messag-really-delete","inverted"]))}});export{$ as _}; diff --git a/ra/assets/TechniciansList.vue_vue_type_script_setup_true_lang-legacy-Efqsdd0r.js b/ra/assets/TechniciansList.vue_vue_type_script_setup_true_lang-legacy-Efqsdd0r.js new file mode 100644 index 0000000..f0c3d16 --- /dev/null +++ b/ra/assets/TechniciansList.vue_vue_type_script_setup_true_lang-legacy-Efqsdd0r.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js","./livequery-legacy-GqvLyVpq.js"],(function(e,t){"use strict";var l,i,a,s,n,r,c,d,u,o,m,f,v,y,_;return{setters:[e=>{l=e.d,i=e.o,a=e.c,s=e.w,n=e.f,r=e.ah,c=e.r,d=e.i,u=e.t,o=e.j,m=e.b,f=e.ag,v=e.l},e=>{y=e._},e=>{_=e.l}],execute:function(){e("_",l({__name:"TechniciansList",props:{modelValue:{type:Array,default:void 0},entries:{type:Array,default:_.table("technicians").entries()},inverted:Boolean},emits:["update:modelValue"],setup:(e,{emit:t})=>(t,l)=>(i(),a(y,{entries:e.entries,"delete-function":e=>n(_).table("technicians").delete(e),"model-value":e.modelValue,"onUpdate:modelValue":l[0]||(l[0]=e=>t.$emit("update:modelValue",e)),"messag-really-delete":e=>`${e.name} wirklich löschen?`,"message-delete-success":"Löschen erfolgreich.",inverted:e.inverted},{default:s((e=>[r(t.$slots,"default",{object:e.object},(()=>[m(n(c),{"router-link":`/technicians/edit/${e.object.id}`},{default:s((()=>[m(n(d),null,{default:s((()=>[o(u(e.object.name),1)])),_:2},1024),e.object.fisat?(i(),a(n(f),{key:0,slot:"end",color:3===e.object.fisat.level?"tertiary":"medium"},{default:s((()=>[o("Level "+u(e.object.fisat.level),1)])),_:2},1032,["color"])):v("",!0)])),_:2},1032,["router-link"])]))])),_:3},8,["entries","delete-function","model-value","messag-really-delete","inverted"]))}))}}})); diff --git a/ra/assets/TemplateGenericEditPage-c3J_MoRf.js b/ra/assets/TemplateGenericEditPage-c3J_MoRf.js new file mode 100644 index 0000000..710f64e --- /dev/null +++ b/ra/assets/TemplateGenericEditPage-c3J_MoRf.js @@ -0,0 +1 @@ +import{A as S,s as g,v as I,y as k,r as y,B,k as T,T as v,C as w,n as x,ak as N,x as V,_ as E,E as e,o as c,c as s,w as t,b as n,j as a,t as l,l as b,ah as P}from"./index-DYrAM6VV.js";const j={components:{IonHeader:S,IonToolbar:g,IonButtons:I,IonTitle:k,IonItem:y,IonContent:B,IonButton:T,IonModal:v,IonPage:w,IonIcon:x},emits:["submit","shouldCancel"],props:{captionSubmit:{type:String,default:void 0},iconSubmit:{type:String,default:N},hideSubmit:Boolean,captionCancel:{type:String,default:void 0},iconCancel:{type:String,default:V},hideCancel:Boolean},methods:{shouldCancel(){this.$emit("shouldCancel")},submit(){this.$emit("submit")}}};function z(i,A,o,D,G,u){const d=e("ion-icon"),_=e("ion-button"),r=e("ion-buttons"),m=e("ion-title"),f=e("ion-toolbar"),C=e("ion-header"),h=e("ion-content"),p=e("ion-page");return c(),s(p,null,{default:t(()=>[n(C,null,{default:t(()=>[n(f,null,{default:t(()=>[o.hideCancel?b("",!0):(c(),s(r,{key:0,slot:"start"},{default:t(()=>[n(_,{onClick:u.shouldCancel},{default:t(()=>[n(d,{icon:o.iconCancel,slot:o.captionCancel?"start":"icon-only"},null,8,["icon","slot"]),a(" "+l(o.captionCancel),1)]),_:1},8,["onClick"])]),_:1})),n(m,null,{default:t(()=>[a(l(i.$route.meta.title),1)]),_:1}),o.hideSubmit?b("",!0):(c(),s(r,{key:1,slot:"end"},{default:t(()=>[n(_,{strong:!0,onClick:u.submit},{default:t(()=>[n(d,{icon:o.iconSubmit,slot:o.captionSubmit?"end":"icon-only"},null,8,["icon","slot"]),a(" "+l(o.captionSubmit),1)]),_:1},8,["onClick"])]),_:1}))]),_:1})]),_:1}),n(h,{color:"light"},{default:t(()=>[n(C,{collapse:"condense"},{default:t(()=>[n(f,null,{default:t(()=>[n(m,{size:"large"},{default:t(()=>[a(l(i.$route.meta.title),1)]),_:1})]),_:1})]),_:1}),P(i.$slots,"default")]),_:3})]),_:3})}const M=E(j,[["render",z]]);export{M as T}; diff --git a/ra/assets/TemplateGenericEditPage-legacy-PPT4N-QR.js b/ra/assets/TemplateGenericEditPage-legacy-PPT4N-QR.js new file mode 100644 index 0000000..bd8d57a --- /dev/null +++ b/ra/assets/TemplateGenericEditPage-legacy-PPT4N-QR.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js"],(function(t,n){"use strict";var o,e,l,i,a,u,c,s,d,r,f,m,C,b,p,h,_,I,S,g,y,k;return{setters:[t=>{o=t.A,e=t.s,l=t.v,i=t.y,a=t.r,u=t.B,c=t.k,s=t.T,d=t.C,r=t.n,f=t.ak,m=t.x,C=t._,b=t.E,p=t.o,h=t.c,_=t.w,I=t.b,S=t.j,g=t.t,y=t.l,k=t.ah}],execute:function(){const n={components:{IonHeader:o,IonToolbar:e,IonButtons:l,IonTitle:i,IonItem:a,IonContent:u,IonButton:c,IonModal:s,IonPage:d,IonIcon:r},emits:["submit","shouldCancel"],props:{captionSubmit:{type:String,default:void 0},iconSubmit:{type:String,default:f},hideSubmit:Boolean,captionCancel:{type:String,default:void 0},iconCancel:{type:String,default:m},hideCancel:Boolean},methods:{shouldCancel(){this.$emit("shouldCancel")},submit(){this.$emit("submit")}}};t("T",C(n,[["render",function(t,n,o,e,l,i){const a=b("ion-icon"),u=b("ion-button"),c=b("ion-buttons"),s=b("ion-title"),d=b("ion-toolbar"),r=b("ion-header"),f=b("ion-content"),m=b("ion-page");return p(),h(m,null,{default:_((()=>[I(r,null,{default:_((()=>[I(d,null,{default:_((()=>[o.hideCancel?y("",!0):(p(),h(c,{key:0,slot:"start"},{default:_((()=>[I(u,{onClick:i.shouldCancel},{default:_((()=>[I(a,{icon:o.iconCancel,slot:o.captionCancel?"start":"icon-only"},null,8,["icon","slot"]),S(" "+g(o.captionCancel),1)])),_:1},8,["onClick"])])),_:1})),I(s,null,{default:_((()=>[S(g(t.$route.meta.title),1)])),_:1}),o.hideSubmit?y("",!0):(p(),h(c,{key:1,slot:"end"},{default:_((()=>[I(u,{strong:!0,onClick:i.submit},{default:_((()=>[I(a,{icon:o.iconSubmit,slot:o.captionSubmit?"end":"icon-only"},null,8,["icon","slot"]),S(" "+g(o.captionSubmit),1)])),_:1},8,["onClick"])])),_:1}))])),_:1})])),_:1}),I(f,{color:"light"},{default:_((()=>[I(r,{collapse:"condense"},{default:_((()=>[I(d,null,{default:_((()=>[I(s,{size:"large"},{default:_((()=>[S(g(t.$route.meta.title),1)])),_:1})])),_:1})])),_:1}),k(t.$slots,"default")])),_:3})])),_:3})}]]))}}})); diff --git a/ra/assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js b/ra/assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js new file mode 100644 index 0000000..cfb56ab --- /dev/null +++ b/ra/assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js @@ -0,0 +1 @@ +import{d,o as f,c as _,w as a,b as t,f as e,s as o,v as c,al as i,y as n,j as s,t as r,A as u,ah as p,B as m,C as I}from"./index-DYrAM6VV.js";const T=d({__name:"TemplateMainPage",setup(B){return(l,g)=>(f(),_(e(I),null,{default:a(()=>[t(e(u),{translucent:!0},{default:a(()=>[t(e(o),null,{default:a(()=>[t(e(c),{slot:"start"},{default:a(()=>[t(e(i),{color:"primary"})]),_:1}),t(e(n),null,{default:a(()=>[s(r(l.$route.meta.title),1)]),_:1})]),_:1})]),_:1}),t(e(m),{fullscreen:!0},{default:a(()=>[t(e(u),{collapse:"condense"},{default:a(()=>[t(e(o),null,{default:a(()=>[t(e(n),{size:"large"},{default:a(()=>[s(r(l.$route.meta.title),1)]),_:1})]),_:1})]),_:1}),p(l.$slots,"default")]),_:3})]),_:3}))}});export{T as _}; diff --git a/ra/assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js b/ra/assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js new file mode 100644 index 0000000..72b4168 --- /dev/null +++ b/ra/assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js"],(function(e,t){"use strict";var l,a,u,s,n,r,f,d,_,c,o,i,m,g,p,y;return{setters:[e=>{l=e.d,a=e.o,u=e.c,s=e.w,n=e.b,r=e.f,f=e.s,d=e.v,_=e.al,c=e.y,o=e.j,i=e.t,m=e.A,g=e.ah,p=e.B,y=e.C}],execute:function(){e("_",l({__name:"TemplateMainPage",setup:e=>(e,t)=>(a(),u(r(y),null,{default:s((()=>[n(r(m),{translucent:!0},{default:s((()=>[n(r(f),null,{default:s((()=>[n(r(d),{slot:"start"},{default:s((()=>[n(r(_),{color:"primary"})])),_:1}),n(r(c),null,{default:s((()=>[o(i(e.$route.meta.title),1)])),_:1})])),_:1})])),_:1}),n(r(p),{fullscreen:!0},{default:s((()=>[n(r(m),{collapse:"condense"},{default:s((()=>[n(r(f),null,{default:s((()=>[n(r(c),{size:"large"},{default:s((()=>[o(i(e.$route.meta.title),1)])),_:1})])),_:1})])),_:1}),g(e.$slots,"default")])),_:3})])),_:3}))}))}}})); diff --git a/ra/assets/TemplateRiskAssessmentPage-8r-vP2g1.js b/ra/assets/TemplateRiskAssessmentPage-8r-vP2g1.js new file mode 100644 index 0000000..e65116e --- /dev/null +++ b/ra/assets/TemplateRiskAssessmentPage-8r-vP2g1.js @@ -0,0 +1 @@ +import{A as S,s as I,v as y,y as B,r as T,B as A,k as v,T as w,C as N,n as V,ak as z,x as E,_ as P,E as o,o as a,c as i,w as t,b as e,t as l,j as c,ah as r,l as d}from"./index-DYrAM6VV.js";import{u as R}from"./riskassessment-gvIk_m2h.js";import{p as k}from"./helpers-ZGJup-tE.js";const j={components:{IonHeader:S,IonToolbar:I,IonButtons:y,IonTitle:B,IonItem:T,IonContent:A,IonButton:v,IonModal:w,IonPage:N,IonIcon:V},emits:["submit","shouldCancel"],props:{captionSubmit:{type:String,default:void 0},iconSubmit:{type:String,default:z},hideSubmit:Boolean,captionCancel:{type:String,default:void 0},iconCancel:{type:String,default:E},hideCancel:Boolean},setup(){return{riskAssessment:R()}},computed:{modified(){return this.riskAssessment,this.riskAssessment.modified()}},methods:{shouldCancel(){this.$router.back()},submit(){this.riskAssessment.save().then(()=>{k("Einsatzplan gespeichert","success")}).catch(s=>{throw k("Beim Speichern ist ein Fehler aufgetreten.","danger"),s})}}};function x(s,D,n,F,H,u){const m=o("ion-icon"),_=o("ion-button"),f=o("ion-buttons"),p=o("ion-title"),h=o("ion-toolbar"),b=o("ion-header"),C=o("ion-content"),g=o("ion-page");return a(),i(g,null,{default:t(()=>[e(b,null,{default:t(()=>[e(h,null,{default:t(()=>[n.hideCancel?d("",!0):(a(),i(f,{key:0,slot:"start"},{default:t(()=>[r(s.$slots,"cancelButton",{},()=>[e(_,{onClick:u.shouldCancel},{default:t(()=>[e(m,{icon:n.iconCancel,slot:n.captionCancel?"start":"icon-only"},null,8,["icon","slot"]),c(" "+l(n.captionCancel),1)]),_:1},8,["onClick"])])]),_:3})),e(p,null,{default:t(()=>[c(l(s.$route.meta.sectionTitle),1)]),_:1}),n.hideSubmit?d("",!0):(a(),i(f,{key:1,slot:"end"},{default:t(()=>[r(s.$slots,"submitButton",{},()=>[u.modified?(a(),i(_,{key:0,strong:!0,onClick:u.submit},{default:t(()=>[e(m,{icon:n.iconSubmit,slot:n.captionSubmit?"end":"icon-only"},null,8,["icon","slot"]),c(" "+l(n.captionSubmit),1)]),_:1},8,["onClick"])):d("",!0)])]),_:3}))]),_:3})]),_:3}),e(C,{color:"light"},{default:t(()=>[e(b,{collapse:"condense"},{default:t(()=>[e(h,null,{default:t(()=>[e(p,{size:"large"},{default:t(()=>[c(l(s.$route.meta.sectionTitle),1)]),_:1})]),_:1})]),_:1}),r(s.$slots,"default")]),_:3})]),_:3})}const J=P(j,[["render",x]]);export{J as T}; diff --git a/ra/assets/TemplateRiskAssessmentPage-legacy-kcjQW-hP.js b/ra/assets/TemplateRiskAssessmentPage-legacy-kcjQW-hP.js new file mode 100644 index 0000000..29c8465 --- /dev/null +++ b/ra/assets/TemplateRiskAssessmentPage-legacy-kcjQW-hP.js @@ -0,0 +1 @@ +System.register(["./index-legacy-l9aK7RKf.js","./riskassessment-legacy-kVyVXEzW.js","./helpers-legacy-X82L35U6.js"],(function(t,e){"use strict";var n,o,i,s,l,a,c,u,r,d,m,f,h,p,b,g,C,k,y,S,_,I,B,T;return{setters:[t=>{n=t.A,o=t.s,i=t.v,s=t.y,l=t.r,a=t.B,c=t.k,u=t.T,r=t.C,d=t.n,m=t.ak,f=t.x,h=t._,p=t.E,b=t.o,g=t.c,C=t.w,k=t.b,y=t.t,S=t.j,_=t.ah,I=t.l},t=>{B=t.u},t=>{T=t.p}],execute:function(){const e={components:{IonHeader:n,IonToolbar:o,IonButtons:i,IonTitle:s,IonItem:l,IonContent:a,IonButton:c,IonModal:u,IonPage:r,IonIcon:d},emits:["submit","shouldCancel"],props:{captionSubmit:{type:String,default:void 0},iconSubmit:{type:String,default:m},hideSubmit:Boolean,captionCancel:{type:String,default:void 0},iconCancel:{type:String,default:f},hideCancel:Boolean},setup:()=>({riskAssessment:B()}),computed:{modified(){return this.riskAssessment,this.riskAssessment.modified()}},methods:{shouldCancel(){this.$router.back()},submit(){this.riskAssessment.save().then((()=>{T("Einsatzplan gespeichert","success")})).catch((t=>{throw T("Beim Speichern ist ein Fehler aufgetreten.","danger"),t}))}}};t("T",h(e,[["render",function(t,e,n,o,i,s){const l=p("ion-icon"),a=p("ion-button"),c=p("ion-buttons"),u=p("ion-title"),r=p("ion-toolbar"),d=p("ion-header"),m=p("ion-content"),f=p("ion-page");return b(),g(f,null,{default:C((()=>[k(d,null,{default:C((()=>[k(r,null,{default:C((()=>[n.hideCancel?I("",!0):(b(),g(c,{key:0,slot:"start"},{default:C((()=>[_(t.$slots,"cancelButton",{},(()=>[k(a,{onClick:s.shouldCancel},{default:C((()=>[k(l,{icon:n.iconCancel,slot:n.captionCancel?"start":"icon-only"},null,8,["icon","slot"]),S(" "+y(n.captionCancel),1)])),_:1},8,["onClick"])]))])),_:3})),k(u,null,{default:C((()=>[S(y(t.$route.meta.sectionTitle),1)])),_:1}),n.hideSubmit?I("",!0):(b(),g(c,{key:1,slot:"end"},{default:C((()=>[_(t.$slots,"submitButton",{},(()=>[s.modified?(b(),g(a,{key:0,strong:!0,onClick:s.submit},{default:C((()=>[k(l,{icon:n.iconSubmit,slot:n.captionSubmit?"end":"icon-only"},null,8,["icon","slot"]),S(" "+y(n.captionSubmit),1)])),_:1},8,["onClick"])):I("",!0)]))])),_:3}))])),_:3})])),_:3}),k(m,{color:"light"},{default:C((()=>[k(d,{collapse:"condense"},{default:C((()=>[k(r,null,{default:C((()=>[k(u,{size:"large"},{default:C((()=>[S(y(t.$route.meta.sectionTitle),1)])),_:1})])),_:1})])),_:1}),_(t.$slots,"default")])),_:3})])),_:3})}]]))}}})); diff --git a/ra/assets/helpers-ZGJup-tE.js b/ra/assets/helpers-ZGJup-tE.js new file mode 100644 index 0000000..5936571 --- /dev/null +++ b/ra/assets/helpers-ZGJup-tE.js @@ -0,0 +1 @@ +var nn=Object.defineProperty;var sn=(t,e,r)=>e in t?nn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var B=(t,e,r)=>(sn(t,typeof e!="symbol"?e+"":e,r),r);import{Z as Xt,aK as on,aL as an,aM as cn}from"./index-DYrAM6VV.js";const R=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,j=Object.keys,U=Array.isArray;function Z(t,e){return typeof e!="object"||j(e).forEach(function(r){t[r]=e[r]}),t}typeof Promise>"u"||R.Promise||(R.Promise=Promise);const ze=Object.getPrototypeOf,un={}.hasOwnProperty;function G(t,e){return un.call(t,e)}function Ee(t,e){typeof e=="function"&&(e=e(ze(t))),(typeof Reflect>"u"?j:Reflect.ownKeys)(e).forEach(r=>{ee(t,r,e[r])})}const xr=Object.defineProperty;function ee(t,e,r,n){xr(t,e,Z(r&&G(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function Ae(t){return{from:function(e){return t.prototype=Object.create(e.prototype),ee(t.prototype,"constructor",t),{extend:Ee.bind(null,t.prototype)}}}}const ln=Object.getOwnPropertyDescriptor;function Jt(t,e){let r;return ln(t,e)||(r=ze(t))&&Jt(r,e)}const dn=[].slice;function ut(t,e,r){return dn.call(t,e,r)}function Sr(t,e){return e(t)}function Be(t){if(!t)throw new Error("Assertion Failed")}function Er(t){R.setImmediate?setImmediate(t):setTimeout(t,0)}function Kr(t,e){return t.reduce((r,n,s)=>{var i=e(n,s);return i&&(r[i[0]]=i[1]),r},{})}function te(t,e){if(G(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var r=[],n=0,s=e.length;n["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>R[t]),fn=Rr.map(t=>R[t]);Kr(Rr,t=>[t,!0]);let se=null;function Ge(t){se=typeof WeakMap<"u"&&new WeakMap;const e=Et(t);return se=null,e}function Et(t){if(!t||typeof t!="object")return t;let e=se&&se.get(t);if(e)return e;if(U(t)){e=[],se&&se.set(t,e);for(var r=0,n=t.length;r=0)e=t;else{const i=ze(t);for(var s in e=i===Object.prototype?{}:Object.create(i),se&&se.set(t,e),t)G(t,s)&&(e[s]=Et(t[s]))}return e}const{toString:pn}={};function Kt(t){return pn.call(t).slice(8,-1)}const Pt=typeof Symbol<"u"?Symbol.iterator:"@@iterator",gn=typeof Pt=="symbol"?function(t){var e;return t!=null&&(e=t[Pt])&&e.apply(t)}:function(){return null},Ie={};function X(t){var e,r,n,s;if(arguments.length===1){if(U(t))return t.slice();if(this===Ie&&typeof t=="string")return[t];if(s=gn(t)){for(r=[];!(n=s.next()).done;)r.push(n.value);return r}if(t==null)return[t];if(typeof(e=t.length)=="number"){for(r=new Array(e);e--;)r[e]=t[e];return r}return[t]}for(e=arguments.length,r=new Array(e);e--;)r[e]=arguments[e];return r}const er=typeof Symbol<"u"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1;var H=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Br(t,e){H=t,Cr=e}var Cr=()=>!0;const yn=!new Error("").stack;function me(){if(yn)try{throw me.arguments,new Error}catch(t){return t}return new Error}function Ot(t,e){var r=t.stack;return r?(e=e||0,r.indexOf(t.name)===0&&(e+=(t.name+t.message).split("\n").length),r.split("\n").slice(e).filter(Cr).map(n=>"\n"+n).join("")):""}var Tr=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],tr=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Tr),mn={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function xe(t,e){this._e=me(),this.name=t,this.message=e}function Dr(t,e){return t+". Errors: "+Object.keys(e).map(r=>e[r].toString()).filter((r,n,s)=>s.indexOf(r)===n).join("\n")}function lt(t,e,r,n){this._e=me(),this.failures=e,this.failedKeys=n,this.successCount=r,this.message=Dr(t,e)}function Te(t,e){this._e=me(),this.name="BulkError",this.failures=Object.keys(e).map(r=>e[r]),this.failuresByPos=e,this.message=Dr(t,e)}Ae(xe).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Ot(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Ae(lt).from(xe),Ae(Te).from(xe);var rr=tr.reduce((t,e)=>(t[e]=e+"Error",t),{});const bn=xe;var E=tr.reduce((t,e)=>{var r=e+"Error";function n(s,i){this._e=me(),this.name=r,s?typeof s=="string"?(this.message="".concat(s).concat(i?"\n "+i:""),this.inner=i||null):typeof s=="object"&&(this.message="".concat(s.name," ").concat(s.message),this.inner=s):(this.message=mn[e]||r,this.inner=null)}return Ae(n).from(bn),t[e]=n,t},{});E.Syntax=SyntaxError,E.Type=TypeError,E.Range=RangeError;var dr=Tr.reduce((t,e)=>(t[e+"Error"]=E[e],t),{}),rt=tr.reduce((t,e)=>(["Syntax","Type","Range"].indexOf(e)===-1&&(t[e+"Error"]=E[e]),t),{});function O(){}function Ue(t){return t}function vn(t,e){return t==null||t===Ue?e:function(r){return e(t(r))}}function ge(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function wn(t,e){return t===O?e:function(){var r=t.apply(this,arguments);r!==void 0&&(arguments[0]=r);var n=this.onsuccess,s=this.onerror;this.onsuccess=null,this.onerror=null;var i=e.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?ge(n,this.onsuccess):n),s&&(this.onerror=this.onerror?ge(s,this.onerror):s),i!==void 0?i:r}}function _n(t,e){return t===O?e:function(){t.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?ge(r,this.onsuccess):r),n&&(this.onerror=this.onerror?ge(n,this.onerror):n)}}function kn(t,e){return t===O?e:function(r){var n=t.apply(this,arguments);Z(r,n);var s=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=e.apply(this,arguments);return s&&(this.onsuccess=this.onsuccess?ge(s,this.onsuccess):s),i&&(this.onerror=this.onerror?ge(i,this.onerror):i),n===void 0?o===void 0?void 0:o:Z(n,o)}}function In(t,e){return t===O?e:function(){return e.apply(this,arguments)!==!1&&t.apply(this,arguments)}}function nr(t,e){return t===O?e:function(){var r=t.apply(this,arguments);if(r&&typeof r.then=="function"){for(var n=this,s=arguments.length,i=new Array(s);s--;)i[s]=arguments[s];return r.then(function(){return e.apply(n,i)})}return e.apply(this,arguments)}}rt.ModifyError=lt,rt.DexieError=xe,rt.BulkError=Te;var Ne={};const jr=100,[Rt,dt,Bt]=typeof Promise>"u"?[]:(()=>{let t=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[t,ze(t),t];const e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,ze(e),t]})(),Fr=dt&&dt.then,nt=Rt&&Rt.constructor,sr=!!Bt;var Ct=!1,An=Bt?()=>{Bt.then(He)}:R.setImmediate?setImmediate.bind(null,He):R.MutationObserver?()=>{var t=document.createElement("div");new MutationObserver(()=>{He(),t=null}).observe(t,{attributes:!0}),t.setAttribute("i","1")}:()=>{setTimeout(He,0)},De=function(t,e){Ce.push([t,e]),ht&&(An(),ht=!1)},Tt=!0,ht=!0,he=[],st=[],Dt=null,jt=Ue,Se={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:pr,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(t=>{try{pr(t[0],t[1])}catch(e){}})}},S=Se,Ce=[],fe=0,it=[];function A(t){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=O,this._lib=!1;var e=this._PSD=S;if(H&&(this._stackHolder=me(),this._prev=null,this._numPrev=0),typeof t!="function"){if(t!==Ne)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&Mt(this,this._value))}this._state=null,this._value=null,++e.ref,zr(this,t)}const Ft={get:function(){var t=S,e=ft;function r(n,s){var i=!t.global&&(t!==S||e!==ft);const o=i&&!re();var c=new A((a,h)=>{ir(this,new Mr(pt(n,t,i,o),pt(s,t,i,o),a,h,t))});return H&&qr(c,this),c}return r.prototype=Ne,r},set:function(t){ee(this,"then",t&&t.prototype===Ne?Ft:{get:function(){return t},set:Ft.set})}};function Mr(t,e,r,n,s){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof e=="function"?e:null,this.resolve=r,this.reject=n,this.psd=s}function zr(t,e){try{e(r=>{if(t._state===null){if(r===t)throw new TypeError("A promise cannot be resolved with itself.");var n=t._lib&&Ve();r&&typeof r.then=="function"?zr(t,(s,i)=>{r instanceof A?r._then(s,i):r.then(s,i)}):(t._state=!0,t._value=r,Ur(t)),n&&We()}},Mt.bind(null,t))}catch(r){Mt(t,r)}}function Mt(t,e){if(st.push(e),t._state===null){var r=t._lib&&Ve();e=jt(e),t._state=!1,t._value=e,H&&e!==null&&typeof e=="object"&&!e._promise&&function(n,s,i){try{n.apply(null,i)}catch(o){s&&s(o)}}(()=>{var n=Jt(e,"stack");e._promise=t,ee(e,"stack",{get:()=>Ct?n&&(n.get?n.get.apply(e):n.value):t.stack})}),function(n){he.some(s=>s._value===n._value)||he.push(n)}(t),Ur(t),r&&We()}}function Ur(t){var e=t._listeners;t._listeners=[];for(var r=0,n=e.length;r{--fe==0&&or()},[]))}function ir(t,e){if(t._state!==null){var r=t._state?e.onFulfilled:e.onRejected;if(r===null)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++fe,De(xn,[r,t,e])}else t._listeners.push(e)}function xn(t,e,r){try{Dt=e;var n,s=e._value;e._state?n=t(s):(st.length&&(st=[]),n=t(s),st.indexOf(s)===-1&&function(i){for(var o=he.length;o;)if(he[--o]._value===i._value)return void he.splice(o,1)}(e)),r.resolve(n)}catch(i){r.reject(i)}finally{Dt=null,--fe==0&&or(),--r.psd.ref||r.psd.finalize()}}function Nr(t,e,r){if(e.length===r)return e;var n="";if(t._state===!1){var s,i,o=t._value;o!=null?(s=o.name||"Error",i=o.message||o,n=Ot(o,0)):(s=o,i=""),e.push(s+(i?": "+i:"")+n)}return H&&((n=Ot(t._stackHolder,2))&&e.indexOf(n)===-1&&e.push(n),t._prev&&Nr(t._prev,e,r)),e}function qr(t,e){var r=e?e._numPrev+1:0;r<100&&(t._prev=e,t._numPrev=r)}function He(){Ve()&&We()}function Ve(){var t=Tt;return Tt=!1,ht=!1,t}function We(){var t,e,r;do for(;Ce.length>0;)for(t=Ce,Ce=[],r=t.length,e=0;e0);Tt=!0,ht=!0}function or(){var t=he;he=[],t.forEach(n=>{n._PSD.onunhandled.call(null,n._value,n)});for(var e=it.slice(0),r=e.length;r;)e[--r]()}function Ye(t){return new A(Ne,!1,t)}function C(t,e){var r=S;return function(){var n=Ve(),s=S;try{return ae(r,!0),t.apply(this,arguments)}catch(i){e&&e(i)}finally{ae(s,!1),n&&We()}}}Ee(A.prototype,{then:Ft,_then:function(t,e){ir(this,new Mr(null,null,t,e,S))},catch:function(t){if(arguments.length===1)return this.then(null,t);var e=arguments[0],r=arguments[1];return typeof e=="function"?this.then(null,n=>n instanceof e?r(n):Ye(n)):this.then(null,n=>n&&n.name===e?r(n):Ye(n))},finally:function(t){return this.then(e=>(t(),e),e=>(t(),Ye(e)))},stack:{get:function(){if(this._stack)return this._stack;try{Ct=!0;var t=Nr(this,[],20).join("\nFrom previous: ");return this._state!==null&&(this._stack=t),t}finally{Ct=!1}}},timeout:function(t,e){return t<1/0?new A((r,n)=>{var s=setTimeout(()=>n(new E.Timeout(e)),t);this.then(r,n).finally(clearTimeout.bind(null,s))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&ee(A.prototype,Symbol.toStringTag,"Dexie.Promise"),Se.env=Zr(),Ee(A,{all:function(){var t=X.apply(null,arguments).map(Qe);return new A(function(e,r){t.length===0&&e([]);var n=t.length;t.forEach((s,i)=>A.resolve(s).then(o=>{t[i]=o,--n||e(t)},r))})},resolve:t=>{if(t instanceof A)return t;if(t&&typeof t.then=="function")return new A((r,n)=>{t.then(r,n)});var e=new A(Ne,!0,t);return qr(e,Dt),e},reject:Ye,race:function(){var t=X.apply(null,arguments).map(Qe);return new A((e,r)=>{t.map(n=>A.resolve(n).then(e,r))})},PSD:{get:()=>S,set:t=>S=t},totalEchoes:{get:()=>ft},newPSD:oe,usePSD:Pe,scheduler:{get:()=>De,set:t=>{De=t}},rejectionMapper:{get:()=>jt,set:t=>{jt=t}},follow:(t,e)=>new A((r,n)=>oe((s,i)=>{var o=S;o.unhandleds=[],o.onunhandled=i,o.finalize=ge(function(){(function(c){function a(){c(),it.splice(it.indexOf(a),1)}it.push(a),++fe,De(()=>{--fe==0&&or()},[])})(()=>{this.unhandleds.length===0?s():i(this.unhandleds[0])})},o.finalize),t()},e,r,n))}),nt&&(nt.allSettled&&ee(A,"allSettled",function(){const t=X.apply(null,arguments).map(Qe);return new A(e=>{t.length===0&&e([]);let r=t.length;const n=new Array(r);t.forEach((s,i)=>A.resolve(s).then(o=>n[i]={status:"fulfilled",value:o},o=>n[i]={status:"rejected",reason:o}).then(()=>--r||e(n)))})}),nt.any&&typeof AggregateError<"u"&&ee(A,"any",function(){const t=X.apply(null,arguments).map(Qe);return new A((e,r)=>{t.length===0&&r(new AggregateError([]));let n=t.length;const s=new Array(n);t.forEach((i,o)=>A.resolve(i).then(c=>e(c),c=>{s[o]=c,--n||r(new AggregateError(s))}))})}));const z={awaits:0,echoes:0,id:0};var Sn=0,ot=[],wt=0,ft=0,En=0;function oe(t,e,r,n){var s=S,i=Object.create(s);i.parent=s,i.ref=0,i.global=!1,i.id=++En;var o=Se.env;i.env=sr?{Promise:A,PromiseProp:{value:A,configurable:!0,writable:!0},all:A.all,race:A.race,allSettled:A.allSettled,any:A.any,resolve:A.resolve,reject:A.reject,nthen:hr(o.nthen,i),gthen:hr(o.gthen,i)}:{},e&&Z(i,e),++s.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var c=Pe(i,t,r,n);return i.ref===0&&i.finalize(),c}function Ke(){return z.id||(z.id=++Sn),++z.awaits,z.echoes+=jr,z.id}function re(){return!!z.awaits&&(--z.awaits==0&&(z.id=0),z.echoes=z.awaits*jr,!0)}function Qe(t){return z.echoes&&t&&t.constructor===nt?(Ke(),t.then(e=>(re(),e),e=>(re(),F(e)))):t}function Kn(t){++ft,z.echoes&&--z.echoes!=0||(z.echoes=z.id=0),ot.push(S),ae(t,!0)}function Pn(){var t=ot[ot.length-1];ot.pop(),ae(t,!1)}function ae(t,e){var r=S;if((e?!z.echoes||wt++&&t===S:!wt||--wt&&t===S)||Lr(e?Kn.bind(null,t):Pn),t!==S&&(S=t,r===Se&&(Se.env=Zr()),sr)){var n=Se.env.Promise,s=t.env;dt.then=s.nthen,n.prototype.then=s.gthen,(r.global||t.global)&&(Object.defineProperty(R,"Promise",s.PromiseProp),n.all=s.all,n.race=s.race,n.resolve=s.resolve,n.reject=s.reject,s.allSettled&&(n.allSettled=s.allSettled),s.any&&(n.any=s.any))}}function Zr(){var t=R.Promise;return sr?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(R,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:dt.then,gthen:t.prototype.then}:{}}function Pe(t,e,r,n,s){var i=S;try{return ae(t,!0),e(r,n,s)}finally{ae(i,!1)}}function Lr(t){Fr.call(Rt,t)}function pt(t,e,r,n){return typeof t!="function"?t:function(){var s=S;r&&Ke(),ae(e,!0);try{return t.apply(this,arguments)}finally{ae(s,!1),n&&Lr(re)}}}function hr(t,e){return function(r,n){return t.call(this,pt(r,e),pt(n,e))}}(""+Fr).indexOf("[native code]")===-1&&(Ke=re=O);const fr="unhandledrejection";function pr(t,e){var r;try{r=e.onuncatched(t)}catch(i){}if(r!==!1)try{var n,s={promise:e,reason:t};if(R.document&&document.createEvent?((n=document.createEvent("Event")).initEvent(fr,!0,!0),Z(n,s)):R.CustomEvent&&Z(n=new CustomEvent(fr,{detail:s}),s),n&&R.dispatchEvent&&(dispatchEvent(n),!R.PromiseRejectionEvent&&R.onunhandledrejection))try{R.onunhandledrejection(n)}catch(i){}H&&n&&!n.defaultPrevented&&console.warn("Unhandled rejection: ".concat(t.stack||t))}catch(i){}}var F=A.reject;function zt(t,e,r,n){if(t.idbdb&&(t._state.openComplete||S.letThrough||t._vip)){var s=t._createTransaction(e,r,t._dbSchema);try{s.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===rr.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>zt(t,e,r,n))):F(i)}return s._promise(e,(i,o)=>oe(()=>(S.trans=s,n(i,o,s)))).then(i=>s._completion.then(()=>i))}if(t._state.openComplete)return F(new E.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return F(new E.DatabaseClosed);t.open().catch(O)}return t._state.dbReadyPromise.then(()=>zt(t,e,r,n))}const gr="3.2.4",de="￿",Ut=-1/0,Y="Invalid key provided. Keys must be of type string, number, Date or Array.",$r="String expected.",je=[],mt=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),On=mt,Rn=mt,Gr=t=>!/(dexie\.js|dexie\.min\.js)/.test(t),bt="__dbnames",_t="readonly",kt="readwrite";function ye(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}const Vr={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Xe(t){return typeof t!="string"||/\./.test(t)?e=>e:e=>(e[t]===void 0&&t in e&&delete(e=Ge(e))[t],e)}class Bn{_trans(e,r,n){const s=this._tx||S.trans,i=this.name;function o(a,h,u){if(!u.schema[i])throw new E.NotFound("Table "+i+" not part of transaction");return r(u.idbtrans,u)}const c=Ve();try{return s&&s.db===this.db?s===S.trans?s._promise(e,o,n):oe(()=>s._promise(e,o,n),{trans:s,transless:S.transless||S}):zt(this.db,e,[this.name],o)}finally{c&&We()}}get(e,r){return e&&e.constructor===Object?this.where(e).first(r):this._trans("readonly",n=>this.core.get({trans:n,key:e}).then(s=>this.hook.reading.fire(s))).then(r)}where(e){if(typeof e=="string")return new this.db.WhereClause(this,e);if(U(e))return new this.db.WhereClause(this,"[".concat(e.join("+"),"]"));const r=j(e);if(r.length===1)return this.where(r[0]).equals(e[r[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter(h=>h.compound&&r.every(u=>h.keyPath.indexOf(u)>=0)&&h.keyPath.every(u=>r.indexOf(u)>=0))[0];if(n&&this.db._maxKey!==de)return this.where(n.name).equals(n.keyPath.map(h=>e[h]));!n&&H&&console.warn("The query ".concat(JSON.stringify(e)," on ").concat(this.name," would benefit of a compound index [").concat(r.join("+"),"]"));const{idxByName:s}=this.schema,i=this.db._deps.indexedDB;function o(h,u){try{return i.cmp(h,u)===0}catch(d){return!1}}const[c,a]=r.reduce(([h,u],d)=>{const l=s[d],g=e[d];return[h||l,h||!l?ye(u,l&&l.multi?m=>{const p=te(m,d);return U(p)&&p.some(b=>o(g,b))}:m=>o(g,te(m,d))):u]},[null,null]);return c?this.where(c.name).equals(e[c.keyPath]).filter(a):n?this.filter(a):this.where(r).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,U(e)?"[".concat(e.join("+"),"]"):e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const r=n=>{if(!n)return n;const s=Object.create(e.prototype);for(var i in n)if(G(n,i))try{s[i]=n[i]}catch(o){}return s};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),e}defineClass(){return this.mapToClass(function(e){Z(this,e)})}add(e,r){const{auto:n,keyPath:s}=this.schema.primKey;let i=e;return s&&n&&(i=Xe(s)(e)),this._trans("readwrite",o=>this.core.mutate({trans:o,type:"add",keys:r!=null?[r]:null,values:[i]})).then(o=>o.numFailures?A.reject(o.failures[0]):o.lastResult).then(o=>{if(s)try{V(e,s,o)}catch(c){}return o})}update(e,r){if(typeof e!="object"||U(e))return this.where(":id").equals(e).modify(r);{const n=te(e,this.schema.primKey.keyPath);if(n===void 0)return F(new E.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?j(r).forEach(s=>{V(e,s,r[s])}):r(e,{value:e,primKey:n})}catch(s){}return this.where(":id").equals(n).modify(r)}}put(e,r){const{auto:n,keyPath:s}=this.schema.primKey;let i=e;return s&&n&&(i=Xe(s)(e)),this._trans("readwrite",o=>this.core.mutate({trans:o,type:"put",values:[i],keys:r!=null?[r]:null})).then(o=>o.numFailures?A.reject(o.failures[0]):o.lastResult).then(o=>{if(s)try{V(e,s,o)}catch(c){}return o})}delete(e){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[e]})).then(r=>r.numFailures?A.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:Vr})).then(e=>e.numFailures?A.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",r=>this.core.getMany({keys:e,trans:r}).then(n=>n.map(s=>this.hook.reading.fire(s))))}bulkAdd(e,r,n){const s=Array.isArray(r)?r:void 0,i=(n=n||(s?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",o=>{const{auto:c,keyPath:a}=this.schema.primKey;if(a&&s)throw new E.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(s&&s.length!==e.length)throw new E.InvalidArgument("Arguments objects and keys must have the same length");const h=e.length;let u=a&&c?e.map(Xe(a)):e;return this.core.mutate({trans:o,type:"add",keys:s,values:u,wantResults:i}).then(({numFailures:d,results:l,lastResult:g,failures:m})=>{if(d===0)return i?l:g;throw new Te("".concat(this.name,".bulkAdd(): ").concat(d," of ").concat(h," operations failed"),m)})})}bulkPut(e,r,n){const s=Array.isArray(r)?r:void 0,i=(n=n||(s?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",o=>{const{auto:c,keyPath:a}=this.schema.primKey;if(a&&s)throw new E.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(s&&s.length!==e.length)throw new E.InvalidArgument("Arguments objects and keys must have the same length");const h=e.length;let u=a&&c?e.map(Xe(a)):e;return this.core.mutate({trans:o,type:"put",keys:s,values:u,wantResults:i}).then(({numFailures:d,results:l,lastResult:g,failures:m})=>{if(d===0)return i?l:g;throw new Te("".concat(this.name,".bulkPut(): ").concat(d," of ").concat(h," operations failed"),m)})})}bulkDelete(e){const r=e.length;return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:e})).then(({numFailures:n,lastResult:s,failures:i})=>{if(n===0)return s;throw new Te("".concat(this.name,".bulkDelete(): ").concat(n," of ").concat(r," operations failed"),i)})}}function Fe(t){var e={},r=function(o,c){if(c){for(var a=arguments.length,h=new Array(a-1);--a;)h[a-1]=arguments[a];return e[o].subscribe.apply(null,h),t}if(typeof o=="string")return e[o]};r.addEventType=i;for(var n=1,s=arguments.length;nye(n(),e()):e,t.justLimit=r&&!n}function at(t,e){if(t.isPrimKey)return e.primaryKey;const r=e.getIndexByKeyPath(t.index);if(!r)throw new E.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return r}function yr(t,e,r){const n=at(t,e.schema);return e.openCursor({trans:r,values:!t.keysOnly,reverse:t.dir==="prev",unique:!!t.unique,query:{index:n,range:t.range}})}function Je(t,e,r,n){const s=t.replayFilter?ye(t.filter,t.replayFilter()):t.filter;if(t.or){const i={},o=(c,a,h)=>{if(!s||s(a,h,l=>a.stop(l),l=>a.fail(l))){var u=a.primaryKey,d=""+u;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(u)),G(i,d)||(i[d]=!0,e(c,a,h))}};return Promise.all([t.or._iterate(o,r),mr(yr(t,n,r),t.algorithm,o,!t.keysOnly&&t.valueMapper)])}return mr(yr(t,n,r),ye(t.algorithm,s),e,!t.keysOnly&&t.valueMapper)}function mr(t,e,r,n){var s=C(n?(i,o,c)=>r(n(i),o,c):r);return t.then(i=>{if(i)return i.start(()=>{var o=()=>i.continue();e&&!e(i,c=>o=c,c=>{i.stop(c),o=O},c=>{i.fail(c),o=O})||s(i.value,i,c=>o=c),o()})})}function q(t,e){try{const r=br(t),n=br(e);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return t>e?1:tJe(r,e,n,r.table.core))}count(e){return this._read(r=>{const n=this._ctx,s=n.table.core;if(we(n,!0))return s.count({trans:r,query:{index:at(n,s.schema),range:n.range}}).then(o=>Math.min(o,n.limit));var i=0;return Je(n,()=>(++i,!1),r,s).then(()=>i)}).then(e)}sortBy(e,r){const n=e.split(".").reverse(),s=n[0],i=n.length-1;function o(h,u){return u?o(h[n[u]],u-1):h[s]}var c=this._ctx.dir==="next"?1:-1;function a(h,u){var d=o(h,i),l=o(u,i);return dl?c:0}return this.toArray(function(h){return h.sort(a)}).then(r)}toArray(e){return this._read(r=>{var n=this._ctx;if(n.dir==="next"&&we(n,!0)&&n.limit>0){const{valueMapper:s}=n,i=at(n,n.table.core.schema);return n.table.core.query({trans:r,limit:n.limit,values:!0,query:{index:i,range:n.range}}).then(({result:o})=>s?o.map(s):o)}{const s=[];return Je(n,i=>s.push(i),r,n.table.core).then(()=>s)}},e)}offset(e){var r=this._ctx;return e<=0||(r.offset+=e,we(r)?At(r,()=>{var n=e;return(s,i)=>n===0||(n===1?(--n,!1):(i(()=>{s.advance(n),n=0}),!1))}):At(r,()=>{var n=e;return()=>--n<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),At(this._ctx,()=>{var r=e;return function(n,s,i){return--r<=0&&s(i),r>=0}},!0),this}until(e,r){return It(this._ctx,function(n,s,i){return!e(n.value)||(s(i),r)}),this}first(e){return this.limit(1).toArray(function(r){return r[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var r,n;return It(this._ctx,function(s){return e(s.value)}),r=this._ctx,n=e,r.isMatch=ye(r.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,s){e(s.key,s)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,s){e(s.primaryKey,s)})}keys(e){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(s,i){n.push(i.key)}).then(function(){return n}).then(e)}primaryKeys(e){var r=this._ctx;if(r.dir==="next"&&we(r,!0)&&r.limit>0)return this._read(s=>{var i=at(r,r.table.core.schema);return r.table.core.query({trans:s,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:s})=>s).then(e);r.keysOnly=!r.isMatch;var n=[];return this.each(function(s,i){n.push(i.primaryKey)}).then(function(){return n}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(r){return r[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,r=e.index&&e.table.schema.idxByName[e.index];if(!r||!r.multi)return this;var n={};return It(this._ctx,function(s){var i=s.primaryKey.toString(),o=G(n,i);return n[i]=!0,!o}),this}modify(e){var r=this._ctx;return this._write(n=>{var s;if(typeof e=="function")s=e;else{var i=j(e),o=i.length;s=function(p){for(var b=!1,y=0;y{const{failures:y,numFailures:f}=b;l+=p-f;for(let w of j(y))d.push(y[w])};return this.clone().primaryKeys().then(p=>{const b=y=>{const f=Math.min(u,p.length-y);return c.getMany({trans:n,keys:p.slice(y,y+f),cache:"immutable"}).then(w=>{const x=[],I=[],k=a?[]:null,v=[];for(let _=0;_0&&c.mutate({trans:n,type:"add",values:x}).then(_=>{for(let T in _.failures)v.splice(parseInt(T),1);m(x.length,_)})).then(()=>(I.length>0||K&&typeof e=="object")&&c.mutate({trans:n,type:"put",keys:k,values:I,criteria:K,changeSpec:typeof e!="function"&&e}).then(_=>m(I.length,_))).then(()=>(v.length>0||K&&e===xt)&&c.mutate({trans:n,type:"delete",keys:v,criteria:K}).then(_=>m(v.length,_))).then(()=>p.length>y+f&&b(y+u))})};return b(0).then(()=>{if(d.length>0)throw new lt("Error modifying one or more objects",d,l,g);return p.length})})})}delete(){var e=this._ctx,r=e.range;return we(e)&&(e.isPrimKey&&!Rn||r.type===3)?this._write(n=>{const{primaryKey:s}=e.table.core.schema,i=r;return e.table.core.count({trans:n,query:{index:s,range:i}}).then(o=>e.table.core.mutate({trans:n,type:"deleteRange",range:i}).then(({failures:c,lastResult:a,results:h,numFailures:u})=>{if(u)throw new lt("Could not delete some values",Object.keys(c).map(d=>c[d]),o-u);return o-u}))}):this.modify(xt)}}const xt=(t,e)=>e.value=null;function Tn(t,e){return te?-1:t===e?0:1}function $(t,e,r){var n=t instanceof Hr?new t.Collection(t):t;return n._ctx.error=r?new r(e):new TypeError(e),n}function _e(t){return new t.Collection(t,()=>Wr("")).limit(0)}function jn(t,e,r,n,s,i){for(var o=Math.min(t.length,n.length),c=-1,a=0;a=0?t.substr(0,c)+e[c]+r.substr(c+1):null;s(t[a],h)<0&&(c=a)}return otypeof p=="string"))return $(t,$r);function l(p){s=function(y){return y==="next"?f=>f.toUpperCase():f=>f.toLowerCase()}(p),i=function(y){return y==="next"?f=>f.toLowerCase():f=>f.toUpperCase()}(p),o=p==="next"?Tn:Dn;var b=r.map(function(y){return{lower:i(y),upper:s(y)}}).sort(function(y,f){return o(y.lower,f.lower)});c=b.map(function(y){return y.upper}),a=b.map(function(y){return y.lower}),h=p,u=p==="next"?"":n}l("next");var g=new t.Collection(t,()=>ne(c[0],a[d-1]+n));g._ondirectionchange=function(p){l(p)};var m=0;return g._addAlgorithm(function(p,b,y){var f=p.key;if(typeof f!="string")return!1;var w=i(f);if(e(w,a,m))return!0;for(var x=null,I=m;I0)&&(x=k)}return b(x!==null?function(){p.continue(x+u)}:y),!1}),g}function ne(t,e,r,n){return{type:2,lower:t,upper:e,lowerOpen:r,upperOpen:n}}function Wr(t){return{type:1,lower:t,upper:t}}class Hr{get Collection(){return this._ctx.table.db.Collection}between(e,r,n,s){n=n!==!1,s=s===!0;try{return this._cmp(e,r)>0||this._cmp(e,r)===0&&(n||s)&&(!n||!s)?_e(this):new this.Collection(this,()=>ne(e,r,!n,!s))}catch(i){return $(this,Y)}}equals(e){return e==null?$(this,Y):new this.Collection(this,()=>Wr(e))}above(e){return e==null?$(this,Y):new this.Collection(this,()=>ne(e,void 0,!0))}aboveOrEqual(e){return e==null?$(this,Y):new this.Collection(this,()=>ne(e,void 0,!1))}below(e){return e==null?$(this,Y):new this.Collection(this,()=>ne(void 0,e,!1,!0))}belowOrEqual(e){return e==null?$(this,Y):new this.Collection(this,()=>ne(void 0,e))}startsWith(e){return typeof e!="string"?$(this,$r):this.between(e,e+de,!0,!0)}startsWithIgnoreCase(e){return e===""?this.startsWith(e):et(this,(r,n)=>r.indexOf(n[0])===0,[e],de)}equalsIgnoreCase(e){return et(this,(r,n)=>r===n[0],[e],"")}anyOfIgnoreCase(){var e=X.apply(Ie,arguments);return e.length===0?_e(this):et(this,(r,n)=>n.indexOf(r)!==-1,e,"")}startsWithAnyOfIgnoreCase(){var e=X.apply(Ie,arguments);return e.length===0?_e(this):et(this,(r,n)=>n.some(s=>r.indexOf(s)===0),e,de)}anyOf(){const e=X.apply(Ie,arguments);let r=this._cmp;try{e.sort(r)}catch(i){return $(this,Y)}if(e.length===0)return _e(this);const n=new this.Collection(this,()=>ne(e[0],e[e.length-1]));n._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,e.sort(r)};let s=0;return n._addAlgorithm((i,o,c)=>{const a=i.key;for(;r(a,e[s])>0;)if(++s,s===e.length)return o(c),!1;return r(a,e[s])===0||(o(()=>{i.continue(e[s])}),!1)}),n}notEqual(e){return this.inAnyRange([[Ut,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=X.apply(Ie,arguments);if(e.length===0)return new this.Collection(this);try{e.sort(this._ascending)}catch(n){return $(this,Y)}const r=e.reduce((n,s)=>n?n.concat([[n[n.length-1][1],s]]):[[Ut,s]],null);return r.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,r){const n=this._cmp,s=this._ascending,i=this._descending,o=this._min,c=this._max;if(e.length===0)return _e(this);if(!e.every(f=>f[0]!==void 0&&f[1]!==void 0&&s(f[0],f[1])<=0))return $(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",E.InvalidArgument);const a=!r||r.includeLowers!==!1,h=r&&r.includeUppers===!0;let u,d=s;function l(f,w){return d(f[0],w[0])}try{u=e.reduce(function(f,w){let x=0,I=f.length;for(;x0){k[0]=o(k[0],w[0]),k[1]=c(k[1],w[1]);break}}return x===I&&f.push(w),f},[]),u.sort(l)}catch(f){return $(this,Y)}let g=0;const m=h?f=>s(f,u[g][1])>0:f=>s(f,u[g][1])>=0,p=a?f=>i(f,u[g][0])>0:f=>i(f,u[g][0])>=0;let b=m;const y=new this.Collection(this,()=>ne(u[0][0],u[u.length-1][1],!a,!h));return y._ondirectionchange=f=>{f==="next"?(b=m,d=s):(b=p,d=i),u.sort(l)},y._addAlgorithm((f,w,x)=>{for(var I=f.key;b(I);)if(++g,g===u.length)return w(x),!1;return!!function(k){return!m(k)&&!p(k)}(I)||(this._cmp(I,u[g][1])===0||this._cmp(I,u[g][0])===0||w(()=>{d===s?f.continue(u[g][0]):f.continue(u[g][1])}),!1)}),y}startsWithAnyOf(){const e=X.apply(Ie,arguments);return e.every(r=>typeof r=="string")?e.length===0?_e(this):this.inAnyRange(e.map(r=>[r,r+de])):$(this,"startsWithAnyOf() only works with strings")}}function W(t){return C(function(e){return qe(e),t(e.target.error),!1})}function qe(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}const Ze="storagemutated",ie="x-storagemutated-1",ce=Fe(null,Ze);class Fn{_lock(){return Be(!S.global),++this._reculock,this._reculock!==1||S.global||(S.lockOwnerFor=this),this}_unlock(){if(Be(!S.global),--this._reculock==0)for(S.global||(S.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{Pe(e[1],e[0])}catch(r){}}return this}_locked(){return this._reculock&&S.lockOwnerFor!==this}create(e){if(!this.mode)return this;const r=this.db.idbdb,n=this.db._state.dbOpenError;if(Be(!this.idbtrans),!e&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new E.DatabaseClosed(n);case"MissingAPIError":throw new E.MissingAPI(n.message,n);default:throw new E.OpenFailed(n)}if(!this.active)throw new E.TransactionInactive;return Be(this._completion._state===null),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=C(s=>{qe(s),this._reject(e.error)}),e.onabort=C(s=>{qe(s),this.active&&this._reject(new E.Abort(e.error)),this.active=!1,this.on("abort").fire(s)}),e.oncomplete=C(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&ce.storagemutated.fire(e.mutatedParts)}),this}_promise(e,r,n){if(e==="readwrite"&&this.mode!=="readwrite")return F(new E.ReadOnly("Transaction is readonly"));if(!this.active)return F(new E.TransactionInactive);if(this._locked())return new A((i,o)=>{this._blockedFuncs.push([()=>{this._promise(e,r,n).then(i,o)},S])});if(n)return oe(()=>{var i=new A((o,c)=>{this._lock();const a=r(o,c,this);a&&a.then&&a.then(o,c)});return i.finally(()=>this._unlock()),i._lib=!0,i});var s=new A((i,o)=>{var c=r(i,o,this);c&&c.then&&c.then(i,o)});return s._lib=!0,s}_root(){return this.parent?this.parent._root():this}waitFor(e){var r=this._root();const n=A.resolve(e);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>n);else{r._waitingFor=n,r._waitingQueue=[];var s=r.idbtrans.objectStore(r.storeNames[0]);(function o(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(s.get(-1/0).onsuccess=o)})()}var i=r._waitingFor;return new A((o,c)=>{n.then(a=>r._waitingQueue.push(C(o.bind(null,a))),a=>r._waitingQueue.push(C(c.bind(null,a)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new E.Abort))}table(e){const r=this._memoizedTables||(this._memoizedTables={});if(G(r,e))return r[e];const n=this.schema[e];if(!n)throw new E.NotFound("Table "+e+" not part of transaction");const s=new this.db.Table(e,n,this);return s.core=this.db.core.table(e),r[e]=s,s}}function Nt(t,e,r,n,s,i,o){return{name:t,keyPath:e,unique:r,multi:n,auto:s,compound:i,src:(r&&!o?"&":"")+(n?"*":"")+(s?"++":"")+Yr(e)}}function Yr(t){return typeof t=="string"?t:t?"["+[].join.call(t,"+")+"]":""}function Qr(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:Kr(r,n=>[n.name,n])}}let Le=t=>{try{return t.only([[]]),Le=()=>[[]],[[]]}catch(e){return Le=()=>de,de}};function qt(t){return t==null?()=>{}:typeof t=="string"?function(e){return e.split(".").length===1?n=>n[e]:n=>te(n,e)}(t):e=>te(e,t)}function wr(t){return[].slice.call(t)}let Mn=0;function Me(t){return t==null?":id":typeof t=="string"?t:"[".concat(t.join("+"),"]")}function zn(t,e,r){function n(a){if(a.type===3)return null;if(a.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:h,upper:u,lowerOpen:d,upperOpen:l}=a;return h===void 0?u===void 0?null:e.upperBound(u,!!l):u===void 0?e.lowerBound(h,!!d):e.bound(h,u,!!d,!!l)}const{schema:s,hasGetAll:i}=function(a,h){const u=wr(a.objectStoreNames);return{schema:{name:a.name,tables:u.map(d=>h.objectStore(d)).map(d=>{const{keyPath:l,autoIncrement:g}=d,m=U(l),p=l==null,b={},y={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:p,compound:m,keyPath:l,autoIncrement:g,unique:!0,extractKey:qt(l)},indexes:wr(d.indexNames).map(f=>d.index(f)).map(f=>{const{name:w,unique:x,multiEntry:I,keyPath:k}=f,v={name:w,compound:U(k),keyPath:k,unique:x,multiEntry:I,extractKey:qt(k)};return b[Me(k)]=v,v}),getIndexByKeyPath:f=>b[Me(f)]};return b[":id"]=y.primaryKey,l!=null&&(b[Me(l)]=y.primaryKey),y})},hasGetAll:u.length>0&&"getAll"in h.objectStore(u[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(t,r),o=s.tables.map(a=>function(h){const u=h.name;return{name:u,schema:h,mutate:function({trans:d,type:l,keys:g,values:m,range:p}){return new Promise((b,y)=>{b=C(b);const f=d.objectStore(u),w=f.keyPath==null,x=l==="put"||l==="add";if(!x&&l!=="delete"&&l!=="deleteRange")throw new Error("Invalid operation type: "+l);const{length:I}=g||m||{length:1};if(g&&m&&g.length!==m.length)throw new Error("Given keys array must have same length as given values array.");if(I===0)return b({numFailures:0,failures:{},results:[],lastResult:void 0});let k;const v=[],K=[];let _=0;const T=N=>{++_,qe(N)};if(l==="deleteRange"){if(p.type===4)return b({numFailures:_,failures:K,results:[],lastResult:void 0});p.type===3?v.push(k=f.clear()):v.push(k=f.delete(n(p)))}else{const[N,M]=x?w?[m,g]:[m,null]:[g,null];if(x)for(let D=0;D{const M=N.target.result;v.forEach((D,be)=>D.error!=null&&(K[be]=D.error)),b({numFailures:_,failures:K,results:l==="delete"?g:v.map(D=>D.result),lastResult:M})};k.onerror=N=>{T(N),P(N)},k.onsuccess=P})},getMany:({trans:d,keys:l})=>new Promise((g,m)=>{g=C(g);const p=d.objectStore(u),b=l.length,y=new Array(b);let f,w=0,x=0;const I=v=>{const K=v.target;y[K._pos]=K.result,++x===w&&g(y)},k=W(m);for(let v=0;vnew Promise((g,m)=>{g=C(g);const p=d.objectStore(u).get(l);p.onsuccess=b=>g(b.target.result),p.onerror=W(m)}),query:function(d){return l=>new Promise((g,m)=>{g=C(g);const{trans:p,values:b,limit:y,query:f}=l,w=y===1/0?void 0:y,{index:x,range:I}=f,k=p.objectStore(u),v=x.isPrimaryKey?k:k.index(x.name),K=n(I);if(y===0)return g({result:[]});if(d){const _=b?v.getAll(K,w):v.getAllKeys(K,w);_.onsuccess=T=>g({result:T.target.result}),_.onerror=W(m)}else{let _=0;const T=b||!("openKeyCursor"in v)?v.openCursor(K):v.openKeyCursor(K),P=[];T.onsuccess=N=>{const M=T.result;return M?(P.push(b?M.value:M.primaryKey),++_===y?g({result:P}):void M.continue()):g({result:P})},T.onerror=W(m)}})}(i),openCursor:function({trans:d,values:l,query:g,reverse:m,unique:p}){return new Promise((b,y)=>{b=C(b);const{index:f,range:w}=g,x=d.objectStore(u),I=f.isPrimaryKey?x:x.index(f.name),k=m?p?"prevunique":"prev":p?"nextunique":"next",v=l||!("openKeyCursor"in I)?I.openCursor(n(w),k):I.openKeyCursor(n(w),k);v.onerror=W(y),v.onsuccess=C(K=>{const _=v.result;if(!_)return void b(null);_.___id=++Mn,_.done=!1;const T=_.continue.bind(_);let P=_.continuePrimaryKey;P&&(P=P.bind(_));const N=_.advance.bind(_),M=()=>{throw new Error("Cursor not stopped")};_.trans=d,_.stop=_.continue=_.continuePrimaryKey=_.advance=()=>{throw new Error("Cursor not started")},_.fail=C(y),_.next=function(){let D=1;return this.start(()=>D--?this.continue():this.stop()).then(()=>this)},_.start=D=>{const be=new Promise((L,ue)=>{L=C(L),v.onerror=W(ue),_.fail=ue,_.stop=Oe=>{_.stop=_.continue=_.continuePrimaryKey=_.advance=M,L(Oe)}}),ve=()=>{if(v.result)try{D()}catch(L){_.fail(L)}else _.done=!0,_.start=()=>{throw new Error("Cursor behind last entry")},_.stop()};return v.onsuccess=C(L=>{v.onsuccess=ve,ve()}),_.continue=T,_.continuePrimaryKey=P,_.advance=N,ve(),be},b(_)},y)})},count({query:d,trans:l}){const{index:g,range:m}=d;return new Promise((p,b)=>{const y=l.objectStore(u),f=g.isPrimaryKey?y:y.index(g.name),w=n(m),x=w?f.count(w):f.count();x.onsuccess=C(I=>p(I.target.result)),x.onerror=W(b)})}}}(a)),c={};return o.forEach(a=>c[a.name]=a),{stack:"dbcore",transaction:t.transaction.bind(t),table(a){if(!c[a])throw new Error("Table '".concat(a,"' not found"));return c[a]},MIN_KEY:-1/0,MAX_KEY:Le(e),schema:s}}function Zt({_novip:t},e){const r=e.db,n=function(s,i,{IDBKeyRange:o,indexedDB:c},a){return{dbcore:function(u,d){return d.reduce((l,{create:g})=>({...l,...g(l)}),u)}(zn(i,o,a),s.dbcore)}}(t._middlewares,r,t._deps,e);t.core=n.dbcore,t.tables.forEach(s=>{const i=s.name;t.core.schema.tables.some(o=>o.name===i)&&(s.core=t.core.table(i),t[i]instanceof t.Table&&(t[i].core=s.core))})}function gt({_novip:t},e,r,n){r.forEach(s=>{const i=n[s];e.forEach(o=>{const c=Jt(o,s);(!c||"value"in c&&c.value===void 0)&&(o===t.Transaction.prototype||o instanceof t.Transaction?ee(o,s,{get(){return this.table(s)},set(a){xr(this,s,{value:a,writable:!0,configurable:!0,enumerable:!0})}}):o[s]=new t.Table(s,i))})})}function Lt({_novip:t},e){e.forEach(r=>{for(let n in r)r[n]instanceof t.Table&&delete r[n]})}function Un(t,e){return t._cfg.version-e._cfg.version}function Nn(t,e,r,n){const s=t._dbSchema,i=t._createTransaction("readwrite",t._storeNames,s);i.create(r),i._completion.catch(n);const o=i._reject.bind(i),c=S.transless||S;oe(()=>{S.trans=i,S.transless=c,e===0?(j(s).forEach(a=>{St(r,a,s[a].primKey,s[a].indexes)}),Zt(t,r),A.follow(()=>t.on.populate.fire(i)).catch(o)):function({_novip:a},h,u,d){const l=[],g=a._versions;let m=a._dbSchema=Gt(a,a.idbdb,d),p=!1;const b=g.filter(f=>f._cfg.version>=h);function y(){return l.length?A.resolve(l.shift()(u.idbtrans)).then(y):A.resolve()}return b.forEach(f=>{l.push(()=>{const w=m,x=f._cfg.dbschema;Vt(a,w,d),Vt(a,x,d),m=a._dbSchema=x;const I=Xr(w,x);I.add.forEach(v=>{St(d,v[0],v[1].primKey,v[1].indexes)}),I.change.forEach(v=>{if(v.recreate)throw new E.Upgrade("Not yet support for changing primary key");{const K=d.objectStore(v.name);v.add.forEach(_=>$t(K,_)),v.change.forEach(_=>{K.deleteIndex(_.name),$t(K,_)}),v.del.forEach(_=>K.deleteIndex(_))}});const k=f._cfg.contentUpgrade;if(k&&f._cfg.version>h){Zt(a,d),u._memoizedTables={},p=!0;let v=Pr(x);I.del.forEach(P=>{v[P]=w[P]}),Lt(a,[a.Transaction.prototype]),gt(a,[a.Transaction.prototype],j(v),v),u.schema=v;const K=er(k);let _;K&&Ke();const T=A.follow(()=>{if(_=k(u),_&&K){var P=re.bind(null,null);_.then(P,P)}});return _&&typeof _.then=="function"?A.resolve(_):T.then(()=>_)}}),l.push(w=>{(!p||!On)&&function(x,I){[].slice.call(I.db.objectStoreNames).forEach(k=>x[k]==null&&I.db.deleteObjectStore(k))}(f._cfg.dbschema,w),Lt(a,[a.Transaction.prototype]),gt(a,[a.Transaction.prototype],a._storeNames,a._dbSchema),u.schema=a._dbSchema})}),y().then(()=>{var f,w;w=d,j(f=m).forEach(x=>{w.db.objectStoreNames.contains(x)||St(w,x,f[x].primKey,f[x].indexes)})})}(t,e,i,r).catch(o)})}function Xr(t,e){const r={del:[],add:[],change:[]};let n;for(n in t)e[n]||r.del.push(n);for(n in e){const s=t[n],i=e[n];if(s){const o={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(s.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||s.primKey.auto!==i.primKey.auto&&!mt)o.recreate=!0,r.change.push(o);else{const c=s.idxByName,a=i.idxByName;let h;for(h in c)a[h]||o.del.push(h);for(h in a){const u=c[h],d=a[h];u?u.src!==d.src&&o.change.push(d):o.add.push(d)}(o.del.length>0||o.add.length>0||o.change.length>0)&&r.change.push(o)}}else r.add.push([n,i])}return r}function St(t,e,r,n){const s=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>$t(s,i)),s}function $t(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function Gt(t,e,r){const n={};return ut(e.objectStoreNames,0).forEach(s=>{const i=r.objectStore(s);let o=i.keyPath;const c=Nt(Yr(o),o||"",!1,!1,!!i.autoIncrement,o&&typeof o!="string",!0),a=[];for(let u=0;u{if(e[n]!==null){var s=e[n].split(",").map((o,c)=>{const a=(o=o.trim()).replace(/([&*]|\+\+)/g,""),h=/^\[/.test(a)?a.match(/^\[(.*)\]$/)[1].split("+"):a;return Nt(a,h||null,/\&/.test(o),/\*/.test(o),/\+\+/.test(o),U(h),c===0)}),i=s.shift();if(i.multi)throw new E.Schema("Primary key cannot be multi-valued");s.forEach(o=>{if(o.auto)throw new E.Schema("Only primary key can be marked as autoIncrement (++)");if(!o.keyPath)throw new E.Schema("Index must have a name and cannot be an empty string")}),r[n]=Qr(n,i,s)}})}stores(e){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?Z(this._cfg.storesSource,e):e;const n=r._versions,s={};let i={};return n.forEach(o=>{Z(s,o._cfg.storesSource),i=o._cfg.dbschema={},o._parseStoresSpec(s,i)}),r._dbSchema=i,Lt(r,[r._allTables,r,r.Transaction.prototype]),gt(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],j(i),i),r._storeNames=j(i),this}upgrade(e){return this._cfg.contentUpgrade=nr(this._cfg.contentUpgrade||O,e),this}}function ar(t,e){let r=t._dbNamesDB;return r||(r=t._dbNamesDB=new pe(bt,{addons:[],indexedDB:t,IDBKeyRange:e}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function cr(t){return t&&typeof t.databases=="function"}function Wt(t){return oe(function(){return S.letThrough=!0,t()})}function Zn(){var t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var r=function(){return indexedDB.databases().finally(e)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)}):Promise.resolve()}function Ln(t){const e=t._state,{indexedDB:r}=t._deps;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then(()=>e.dbOpenError?F(e.dbOpenError):t);H&&(e.openCanceller._stackHolder=me()),e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;const n=e.openCanceller;function s(){if(e.openCanceller!==n)throw new E.DatabaseClosed("db.open() was cancelled")}let i=e.dbReadyResolve,o=null,c=!1;return A.race([n,(typeof navigator>"u"?A.resolve():Zn()).then(()=>new A((a,h)=>{if(s(),!r)throw new E.MissingAPI;const u=t.name,d=e.autoSchema?r.open(u):r.open(u,Math.round(10*t.verno));if(!d)throw new E.MissingAPI;d.onerror=W(h),d.onblocked=C(t._fireOnBlocked),d.onupgradeneeded=C(l=>{if(o=d.transaction,e.autoSchema&&!t._options.allowEmptyDB){d.onerror=qe,o.abort(),d.result.close();const m=r.deleteDatabase(u);m.onsuccess=m.onerror=C(()=>{h(new E.NoSuchDatabase("Database ".concat(u," doesnt exist")))})}else{o.onerror=W(h);var g=l.oldVersion>Math.pow(2,62)?0:l.oldVersion;c=g<1,t._novip.idbdb=d.result,Nn(t,g/10,o,h)}},h),d.onsuccess=C(()=>{o=null;const l=t._novip.idbdb=d.result,g=ut(l.objectStoreNames);if(g.length>0)try{const p=l.transaction((m=g).length===1?m[0]:m,"readonly");e.autoSchema?function({_novip:b},y,f){b.verno=y.version/10;const w=b._dbSchema=Gt(0,y,f);b._storeNames=ut(y.objectStoreNames,0),gt(b,[b._allTables],j(w),w)}(t,l,p):(Vt(t,t._dbSchema,p),function(b,y){const f=Xr(Gt(0,b.idbdb,y),b._dbSchema);return!(f.add.length||f.change.some(w=>w.add.length||w.change.length))}(t,p)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Zt(t,p)}catch(p){}var m;je.push(t),l.onversionchange=C(p=>{e.vcFired=!0,t.on("versionchange").fire(p)}),l.onclose=C(p=>{t.on("close").fire(p)}),c&&function({indexedDB:p,IDBKeyRange:b},y){!cr(p)&&y!==bt&&ar(p,b).put({name:y}).catch(O)}(t._deps,u),a()},h)}))]).then(()=>(s(),e.onReadyBeingFired=[],A.resolve(Wt(()=>t.on.ready.fire(t.vip))).then(function a(){if(e.onReadyBeingFired.length>0){let h=e.onReadyBeingFired.reduce(nr,O);return e.onReadyBeingFired=[],A.resolve(Wt(()=>h(t.vip))).then(a)}}))).finally(()=>{e.onReadyBeingFired=null,e.isBeingOpened=!1}).then(()=>t).catch(a=>{e.dbOpenError=a;try{o&&o.abort()}catch(h){}return n===e.openCanceller&&t._close(),F(a)}).finally(()=>{e.openComplete=!0,i()})}function Ht(t){var e=i=>t.next(i),r=s(e),n=s(i=>t.throw(i));function s(i){return o=>{var c=i(o),a=c.value;return c.done?a:a&&typeof a.then=="function"?a.then(r,n):U(a)?Promise.all(a).then(r,n):r(a)}}return s(e)()}function $n(t,e,r){var n=arguments.length;if(n<2)throw new E.InvalidArgument("Too few arguments");for(var s=new Array(n-1);--n;)s[n-1]=arguments[n];return r=s.pop(),[t,Or(s),r]}function Jr(t,e,r,n,s){return A.resolve().then(()=>{const i=S.transless||S,o=t._createTransaction(e,r,t._dbSchema,n),c={trans:o,transless:i};if(n)o.idbtrans=n.idbtrans;else try{o.create(),t._state.PR1398_maxLoop=3}catch(d){return d.name===rr.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>Jr(t,e,r,null,s))):F(d)}const a=er(s);let h;a&&Ke();const u=A.follow(()=>{if(h=s.call(o,o),h)if(a){var d=re.bind(null,null);h.then(d,d)}else typeof h.next=="function"&&typeof h.throw=="function"&&(h=Ht(h))},c);return(h&&typeof h.then=="function"?A.resolve(h).then(d=>o.active?d:F(new E.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):u.then(()=>h)).then(d=>(n&&o._resolve(),o._completion.then(()=>d))).catch(d=>(o._reject(d),F(d)))})}function tt(t,e,r){const n=U(t)?t.slice():[t];for(let s=0;s0,y={...l,isVirtual:b,keyTail:d,keyLength:p,extractKey:qt(u),unique:!b&&l.unique};return m.push(y),y.isPrimaryKey||i.push(y),p>1&&o(p===2?u[0]:u.slice(0,p-1),d+1,l),m.sort((f,w)=>f.keyTail-w.keyTail),y}const c=o(n.primaryKey.keyPath,0,n.primaryKey);s[":id"]=[c];for(const u of n.indexes)o(u.keyPath,0,u);function a(u){const d=u.query.index;return d.isVirtual?{...u,query:{index:d,range:(l=u.query.range,g=d.keyTail,{type:l.type===1?2:l.type,lower:tt(l.lower,l.lowerOpen?t.MAX_KEY:t.MIN_KEY,g),lowerOpen:!0,upper:tt(l.upper,l.upperOpen?t.MIN_KEY:t.MAX_KEY,g),upperOpen:!0})}}:u;var l,g}return{...r,schema:{...n,primaryKey:c,indexes:i,getIndexByKeyPath:function(u){const d=s[Me(u)];return d&&d[0]}},count:u=>r.count(a(u)),query:u=>r.query(a(u)),openCursor(u){const{keyTail:d,isVirtual:l,keyLength:g}=u.query.index;return l?r.openCursor(a(u)).then(m=>m&&function(p){return Object.create(p,{continue:{value:function(y){y!=null?p.continue(tt(y,u.reverse?t.MAX_KEY:t.MIN_KEY,d)):u.unique?p.continue(p.key.slice(0,g).concat(u.reverse?t.MIN_KEY:t.MAX_KEY,d)):p.continue()}},continuePrimaryKey:{value(y,f){p.continuePrimaryKey(tt(y,t.MAX_KEY,d),f)}},primaryKey:{get:()=>p.primaryKey},key:{get(){const y=p.key;return g===1?y[0]:y.slice(0,g)}},value:{get:()=>p.value}})}(m)):r.openCursor(u)}}}}}};function ur(t,e,r,n){return r=r||{},n=n||"",j(t).forEach(s=>{if(G(e,s)){var i=t[s],o=e[s];if(typeof i=="object"&&typeof o=="object"&&i&&o){const c=Kt(i);c!==Kt(o)?r[n+s]=e[s]:c==="Object"?ur(i,o,r,n+s+"."):i!==o&&(r[n+s]=e[s])}else i!==o&&(r[n+s]=e[s])}else r[n+s]=void 0}),j(e).forEach(s=>{G(t,s)||(r[n+s]=e[s])}),r}const Vn={stack:"dbcore",name:"HooksMiddleware",level:2,create:t=>({...t,table(e){const r=t.table(e),{primaryKey:n}=r.schema;return{...r,mutate(i){const o=S.trans,{deleting:c,creating:a,updating:h}=o.table(e).hook;switch(i.type){case"add":if(a.fire===O)break;return o._promise("readwrite",()=>u(i),!0);case"put":if(a.fire===O&&h.fire===O)break;return o._promise("readwrite",()=>u(i),!0);case"delete":if(c.fire===O)break;return o._promise("readwrite",()=>u(i),!0);case"deleteRange":if(c.fire===O)break;return o._promise("readwrite",()=>function(l){return d(l.trans,l.range,1e4)}(i),!0)}return r.mutate(i);function u(l){const g=S.trans,m=l.keys||function(p,b){return b.type==="delete"?b.keys:b.keys||b.values.map(p.extractKey)}(n,l);if(!m)throw new Error("Keys missing");return(l=l.type==="add"||l.type==="put"?{...l,keys:m}:{...l}).type!=="delete"&&(l.values=[...l.values]),l.keys&&(l.keys=[...l.keys]),function(p,b,y){return b.type==="add"?Promise.resolve([]):p.getMany({trans:b.trans,keys:y,cache:"immutable"})}(r,l,m).then(p=>{const b=m.map((y,f)=>{const w=p[f],x={onerror:null,onsuccess:null};if(l.type==="delete")c.fire.call(x,y,w,g);else if(l.type==="add"||w===void 0){const I=a.fire.call(x,y,l.values[f],g);y==null&&I!=null&&(y=I,l.keys[f]=y,n.outbound||V(l.values[f],n.keyPath,y))}else{const I=ur(w,l.values[f]),k=h.fire.call(x,I,y,w,g);if(k){const v=l.values[f];Object.keys(k).forEach(K=>{G(v,K)?v[K]=k[K]:V(v,K,k[K])})}}return x});return r.mutate(l).then(({failures:y,results:f,numFailures:w,lastResult:x})=>{for(let I=0;I(b.forEach(f=>f.onerror&&f.onerror(y)),Promise.reject(y)))})}function d(l,g,m){return r.query({trans:l,values:!1,query:{index:n,range:g},limit:m}).then(({result:p})=>u({type:"delete",keys:p,trans:l}).then(b=>b.numFailures>0?Promise.reject(b.failures[0]):p.length({table:e=>{const r=t.table(e);return{...r,getMany:n=>{if(!n.cache)return r.getMany(n);const s=en(n.keys,n.trans._cache,n.cache==="clone");return s?A.resolve(s):r.getMany(n).then(i=>(n.trans._cache={keys:n.keys,values:n.cache==="clone"?Ge(i):i},i))},mutate:n=>(n.type!=="add"&&(n.trans._cache=null),r.mutate(n))}}})};function lr(t){return!("from"in t)}const Q=function(t,e){if(!this){const r=new Q;return t&&"d"in t&&Z(r,t),r}Z(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0})};function $e(t,e,r){const n=q(e,r);if(isNaN(n))return;if(n>0)throw RangeError();if(lr(t))return Z(t,{from:e,to:r,d:1});const s=t.l,i=t.r;if(q(r,t.from)<0)return s?$e(s,e,r):t.l={from:e,to:r,d:1,l:null,r:null},_r(t);if(q(e,t.to)>0)return i?$e(i,e,r):t.r={from:e,to:r,d:1,l:null,r:null},_r(t);q(e,t.from)<0&&(t.from=e,t.l=null,t.d=i?i.d+1:1),q(r,t.to)>0&&(t.to=r,t.r=null,t.d=t.l?t.l.d+1:1);const o=!t.r;s&&!t.l&&yt(t,s),i&&o&&yt(t,i)}function yt(t,e){lr(e)||function r(n,{from:s,to:i,l:o,r:c}){$e(n,s,i),o&&r(n,o),c&&r(n,c)}(t,e)}function Hn(t,e){const r=Yt(e);let n=r.next();if(n.done)return!1;let s=n.value;const i=Yt(t);let o=i.next(s.from),c=o.value;for(;!n.done&&!o.done;){if(q(c.from,s.to)<=0&&q(c.to,s.from)>=0)return!0;q(s.from,c.from)<0?s=(n=r.next(c.from)).value:c=(o=i.next(s.from)).value}return!1}function Yt(t){let e=lr(t)?null:{s:0,n:t};return{next(r){const n=arguments.length>0;for(;e;)switch(e.s){case 0:if(e.s=1,n)for(;e.n.l&&q(r,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!n||q(r,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function _r(t){var e,r;const n=(((e=t.r)===null||e===void 0?void 0:e.d)||0)-(((r=t.l)===null||r===void 0?void 0:r.d)||0),s=n>1?"r":n<-1?"l":"";if(s){const i=s==="r"?"l":"r",o={...t},c=t[s];t.from=c.from,t.to=c.to,t[s]=c[s],o[s]=c[i],t[i]=o,o.d=kr(o)}t.d=kr(t)}function kr({r:t,l:e}){return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}Ee(Q.prototype,{add(t){return yt(this,t),this},addKey(t){return $e(this,t,t),this},addKeys(t){return t.forEach(e=>$e(this,e,e)),this},[Pt](){return Yt(this)}});const Yn={stack:"dbcore",level:0,create:t=>{const e=t.schema.name,r=new Q(t.MIN_KEY,t.MAX_KEY);return{...t,table:n=>{const s=t.table(n),{schema:i}=s,{primaryKey:o}=i,{extractKey:c,outbound:a}=o,h={...s,mutate:l=>{const g=l.trans,m=g.mutatedParts||(g.mutatedParts={}),p=k=>{const v="idb://".concat(e,"/").concat(n,"/").concat(k);return m[v]||(m[v]=new Q)},b=p(""),y=p(":dels"),{type:f}=l;let[w,x]=l.type==="deleteRange"?[l.range]:l.type==="delete"?[l.keys]:l.values.length<50?[[],l.values]:[];const I=l.trans._cache;return s.mutate(l).then(k=>{if(U(w)){f!=="delete"&&(w=k.results),b.addKeys(w);const v=en(w,I);v||f==="add"||y.addKeys(w),(v||x)&&function(K,_,T,P){function N(M){const D=K(M.name||"");function be(L){return L!=null?M.extractKey(L):null}const ve=L=>M.multiEntry&&U(L)?L.forEach(ue=>D.addKey(ue)):D.addKey(L);(T||P).forEach((L,ue)=>{const Oe=T&&be(T[ue]),vt=P&&be(P[ue]);q(Oe,vt)!==0&&(Oe!=null&&ve(Oe),vt!=null&&ve(vt))})}_.indexes.forEach(N)}(p,i,v,x)}else if(w){const v={from:w.lower,to:w.upper};y.add(v),b.add(v)}else b.add(r),y.add(r),i.indexes.forEach(v=>p(v.name).add(r));return k})}},u=({query:{index:l,range:g}})=>{var m,p;return[l,new Q((m=g.lower)!==null&&m!==void 0?m:t.MIN_KEY,(p=g.upper)!==null&&p!==void 0?p:t.MAX_KEY)]},d={get:l=>[o,new Q(l.key)],getMany:l=>[o,new Q().addKeys(l.keys)],count:u,query:u,openCursor:u};return j(d).forEach(l=>{h[l]=function(g){const{subscr:m}=S;if(m){const p=x=>{const I="idb://".concat(e,"/").concat(n,"/").concat(x);return m[I]||(m[I]=new Q)},b=p(""),y=p(":dels"),[f,w]=d[l](g);if(p(f.name||"").add(w),!f.isPrimaryKey){if(l!=="count"){const x=l==="query"&&a&&g.values&&s.query({...g,values:!1});return s[l].apply(this,arguments).then(I=>{if(l==="query"){if(a&&g.values)return x.then(({result:v})=>(b.addKeys(v),I));const k=g.values?I.result.map(c):I.result;g.values?b.addKeys(k):y.addKeys(k)}else if(l==="openCursor"){const k=I,v=g.values;return k&&Object.create(k,{key:{get:()=>(y.addKey(k.primaryKey),k.key)},primaryKey:{get(){const K=k.primaryKey;return y.addKey(K),K}},value:{get:()=>(v&&b.addKey(k.primaryKey),k.value)}})}return I})}y.add(r)}}return s[l].apply(this,arguments)}}),h}}}};class pe{constructor(e,r){this._middlewares={},this.verno=0;const n=pe.dependencies;this._options=r={addons:pe.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:s}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:O,dbReadyPromise:null,cancelOpen:O,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var o;i.dbReadyPromise=new A(c=>{i.dbReadyResolve=c}),i.openCanceller=new A((c,a)=>{i.cancelOpen=a}),this._state=i,this.name=e,this.on=Fe(this,"populate","blocked","versionchange","close",{ready:[nr,O]}),this.on.ready.subscribe=Sr(this.on.ready.subscribe,c=>(a,h)=>{pe.vip(()=>{const u=this._state;if(u.openComplete)u.dbOpenError||A.resolve().then(a),h&&c(a);else if(u.onReadyBeingFired)u.onReadyBeingFired.push(a),h&&c(a);else{c(a);const d=this;h||c(function l(){d.on.ready.unsubscribe(a),d.on.ready.unsubscribe(l)})}})}),this.Collection=(o=this,Re(Cn.prototype,function(c,a){this.db=o;let h=Vr,u=null;if(a)try{h=a()}catch(m){u=m}const d=c._ctx,l=d.table,g=l.hook.reading.fire;this._ctx={table:l,index:d.index,isPrimKey:!d.index||l.schema.primKey.keyPath&&d.index===l.schema.primKey.name,range:h,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:u,or:d.or,valueMapper:g!==Ue?g:null}})),this.Table=function(c){return Re(Bn.prototype,function(a,h,u){this.db=c,this._tx=u,this.name=a,this.schema=h,this.hook=c._allTables[a]?c._allTables[a].hook:Fe(null,{creating:[wn,O],reading:[vn,Ue],updating:[kn,O],deleting:[_n,O]})})}(this),this.Transaction=function(c){return Re(Fn.prototype,function(a,h,u,d,l){this.db=c,this.mode=a,this.storeNames=h,this.schema=u,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=Fe(this,"complete","error","abort"),this.parent=l||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new A((g,m)=>{this._resolve=g,this._reject=m}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},g=>{var m=this.active;return this.active=!1,this.on.error.fire(g),this.parent?this.parent._reject(g):m&&this.idbtrans&&this.idbtrans.abort(),F(g)})})}(this),this.Version=function(c){return Re(qn.prototype,function(a){this.db=c,this._cfg={version:a,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(c){return Re(Hr.prototype,function(a,h,u){this.db=c,this._ctx={table:a,index:h===":id"?null:h,or:u};const d=c._deps.indexedDB;if(!d)throw new E.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(l,g)=>d.cmp(g,l),this._max=(l,g)=>d.cmp(l,g)>0?l:g,this._min=(l,g)=>d.cmp(l,g)<0?l:g,this._IDBKeyRange=c._deps.IDBKeyRange})}(this),this.on("versionchange",c=>{c.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(this.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(this.name,"'. Closing db now to resume the delete request.")),this.close()}),this.on("blocked",c=>{!c.newVersion||c.newVersionnew this.Transaction(c,a,h,this._options.chromeTransactionDurability,u),this._fireOnBlocked=c=>{this.on("blocked").fire(c),je.filter(a=>a.name===this.name&&a!==this&&!a._state.vcFired).map(a=>a.on("versionchange").fire(c))},this.use(Gn),this.use(Vn),this.use(Yn),this.use(Wn),this.vip=Object.create(this,{_vip:{value:!0}}),s.forEach(c=>c(this))}version(e){if(isNaN(e)||e<.1)throw new E.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new E.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const r=this._versions;var n=r.filter(s=>s._cfg.version===e)[0];return n||(n=new this.Version(e),r.push(n),r.sort(Un),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||S.letThrough||this._vip)?e():new A((r,n)=>{if(this._state.openComplete)return n(new E.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void n(new E.DatabaseClosed);this.open().catch(O)}this._state.dbReadyPromise.then(r,n)}).then(e)}use({stack:e,create:r,level:n,name:s}){s&&this.unuse({stack:e,name:s});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:r,level:n==null?10:n,name:s}),i.sort((o,c)=>o.level-c.level),this}unuse({stack:e,name:r,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(s=>n?s.create!==n:!!r&&s.name!==r)),this}open(){return Ln(this)}_close(){const e=this._state,r=je.indexOf(this);if(r>=0&&je.splice(r,1),this.idbdb){try{this.idbdb.close()}catch(n){}this._novip.idbdb=null}e.dbReadyPromise=new A(n=>{e.dbReadyResolve=n}),e.openCanceller=new A((n,s)=>{e.cancelOpen=s})}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new E.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,r=this._state;return new A((n,s)=>{const i=()=>{this.close();var o=this._deps.indexedDB.deleteDatabase(this.name);o.onsuccess=C(()=>{(function({indexedDB:c,IDBKeyRange:a},h){!cr(c)&&h!==bt&&ar(c,a).delete(h).catch(O)})(this._deps,this.name),n()}),o.onerror=W(s),o.onblocked=this._fireOnBlocked};if(e)throw new E.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const e=this._state.dbOpenError;return e&&e.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return j(this._allTables).map(e=>this._allTables[e])}transaction(){const e=$n.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,r,n){let s=S.trans;s&&s.db===this&&e.indexOf("!")===-1||(s=null);const i=e.indexOf("?")!==-1;let o,c;e=e.replace("!","").replace("?","");try{if(c=r.map(h=>{var u=h instanceof this.Table?h.name:h;if(typeof u!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return u}),e=="r"||e===_t)o=_t;else{if(e!="rw"&&e!=kt)throw new E.InvalidArgument("Invalid transaction mode: "+e);o=kt}if(s){if(s.mode===_t&&o===kt){if(!i)throw new E.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");s=null}s&&c.forEach(h=>{if(s&&s.storeNames.indexOf(h)===-1){if(!i)throw new E.SubTransaction("Table "+h+" not included in parent transaction.");s=null}}),i&&s&&!s.active&&(s=null)}}catch(h){return s?s._promise(null,(u,d)=>{d(h)}):F(h)}const a=Jr.bind(null,this,o,c,s,n);return s?s._promise(o,a,"lock"):S.trans?Pe(S.transless,()=>this._whenReady(a)):this._whenReady(a)}table(e){if(!G(this._allTables,e))throw new E.InvalidTable("Table ".concat(e," does not exist"));return this._allTables[e]}}const Qn=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class Xn{constructor(e){this._subscribe=e}subscribe(e,r,n){return this._subscribe(e&&typeof e!="function"?e:{next:e,error:r,complete:n})}[Qn](){return this}}function tn(t,e){return j(e).forEach(r=>{yt(t[r]||(t[r]=new Q),e[r])}),t}function Jn(t){let e,r=!1;const n=new Xn(s=>{const i=er(t);let o=!1,c={},a={};const h={get closed(){return o},unsubscribe:()=>{o=!0,ce.storagemutated.unsubscribe(g)}};s.start&&s.start(h);let u=!1,d=!1;function l(){return j(a).some(p=>c[p]&&Hn(c[p],a[p]))}const g=p=>{tn(c,p),l()&&m()},m=()=>{if(u||o)return;c={};const p={},b=function(y){i&&Ke();const f=()=>oe(t,{subscr:y,trans:null}),w=S.trans?Pe(S.transless,f):f();return i&&w.then(re,re),w}(p);d||(ce(Ze,g),d=!0),u=!0,Promise.resolve(b).then(y=>{r=!0,e=y,u=!1,o||(l()?m():(c={},a=p,s.next&&s.next(y)))},y=>{u=!1,r=!1,s.error&&s.error(y),h.unsubscribe()})};return m(),h});return n.hasValue=()=>r,n.getValue=()=>e,n}let Qt;try{Qt={indexedDB:R.indexedDB||R.mozIndexedDB||R.webkitIndexedDB||R.msIndexedDB,IDBKeyRange:R.IDBKeyRange||R.webkitIDBKeyRange}}catch(t){Qt={indexedDB:null,IDBKeyRange:null}}const le=pe;function ct(t){let e=J;try{J=!0,ce.storagemutated.fire(t)}finally{J=e}}Ee(le,{...rt,delete:t=>new le(t,{addons:[]}).delete(),exists:t=>new le(t,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(t){try{return function({indexedDB:e,IDBKeyRange:r}){return cr(e)?Promise.resolve(e.databases()).then(n=>n.map(s=>s.name).filter(s=>s!==bt)):ar(e,r).toCollection().primaryKeys()}(le.dependencies).then(t)}catch(e){return F(new E.MissingAPI)}},defineClass:()=>function(t){Z(this,t)},ignoreTransaction:t=>S.trans?Pe(S.transless,t):t(),vip:Wt,async:function(t){return function(){try{var e=Ht(t.apply(this,arguments));return e&&typeof e.then=="function"?e:A.resolve(e)}catch(r){return F(r)}}},spawn:function(t,e,r){try{var n=Ht(t.apply(r,e||[]));return n&&typeof n.then=="function"?n:A.resolve(n)}catch(s){return F(s)}},currentTransaction:{get:()=>S.trans||null},waitFor:function(t,e){const r=A.resolve(typeof t=="function"?le.ignoreTransaction(t):t).timeout(e||6e4);return S.trans?S.trans.waitFor(r):r},Promise:A,debug:{get:()=>H,set:t=>{Br(t,t==="dexie"?()=>!0:Gr)}},derive:Ae,extend:Z,props:Ee,override:Sr,Events:Fe,on:ce,liveQuery:Jn,extendObservabilitySet:tn,getByKeyPath:te,setByKeyPath:V,delByKeyPath:function(t,e){typeof e=="string"?V(t,e,void 0):"length"in e&&[].map.call(e,function(r){V(t,r,void 0)})},shallowClone:Pr,deepClone:Ge,getObjectDiff:ur,cmp:q,asap:Er,minKey:Ut,addons:[],connections:je,errnames:rr,dependencies:Qt,semVer:gr,version:gr.split(".").map(t=>parseInt(t)).reduce((t,e,r)=>t+e/Math.pow(10,2*r))}),le.maxKey=Le(le.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(ce(Ze,t=>{if(!J){let e;mt?(e=document.createEvent("CustomEvent"),e.initCustomEvent(ie,!0,!0,t)):e=new CustomEvent(ie,{detail:t}),J=!0,dispatchEvent(e),J=!1}}),addEventListener(ie,({detail:t})=>{J||ct(t)}));let J=!1;if(typeof BroadcastChannel<"u"){const t=new BroadcastChannel(ie);typeof t.unref=="function"&&t.unref(),ce(Ze,e=>{J||t.postMessage(e)}),t.onmessage=e=>{e.data&&ct(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){ce(Ze,e=>{try{J||(typeof localStorage<"u"&&localStorage.setItem(ie,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:ie,changedParts:e})))}catch(r){}}),typeof addEventListener<"u"&&addEventListener("storage",e=>{if(e.key===ie){const r=JSON.parse(e.newValue);r&&ct(r.changedParts)}});const t=self.document&&navigator.serviceWorker;t&&t.addEventListener("message",function({data:e}){e&&e.type===ie&&ct(e.changedParts)})}A.rejectionMapper=function(t,e){if(!t||t instanceof xe||t instanceof TypeError||t instanceof SyntaxError||!t.name||!dr[t.name])return t;var r=new dr[t.name](e||t.message,t);return"stack"in t&&ee(r,"stack",{get:function(){return this.inner.stack}}),r},Br(H,Gr);const ke={risks:{categories:[{id:1,descr:"Mechanische Gefährdung"},{id:2,descr:"Elektrische Gefährdung"},{id:3,descr:"Gefahrstoffe"},{id:4,descr:"Biologische Arbeitsstoffe"},{id:5,descr:"Brand- und Explosionsgefährdungen"},{id:6,descr:"Thermische Gefährdung"},{id:7,descr:"Gefährdung durch spezielle physikalische Einwirkungen"},{id:8,descr:"Gefährdung duch Arbeitsplatzbedingungen"},{id:9,descr:"Physische Belastung/Arbeitsschwere"},{id:10,descr:"Psychische Faktoren"},{id:11,descr:"Sonstige Gefährdungen"}],factors:[{id:1,categoryId:1,descr:"ungeschütze bewegte Maschinenteile"},{id:2,categoryId:1,descr:"Teile mit gefährlicher Oberfläche"},{id:3,categoryId:1,descr:"bewegte Transportmittel"},{id:4,categoryId:1,descr:"unkontrolliert bewegte Teile"},{id:5,categoryId:1,descr:"Sturz, Ausruthschen, Stolpern, Umknicken"},{id:6,categoryId:1,descr:"Absturz"},{id:7,categoryId:2,descr:"Elektischer Schlag"},{id:8,categoryId:2,descr:"Lichtbögen"},{id:9,categoryId:2,descr:"Elektrostatische Aufladung"},{id:10,categoryId:3,descr:"Gase"},{id:11,categoryId:3,descr:"Dämpfe"},{id:12,categoryId:3,descr:"Aerosole"},{id:13,categoryId:3,descr:"Flüssigkeiten"},{id:14,categoryId:4,descr:"Infektionsgefährdung durch pathogene Mikroorganismen (z.B. Bakterien, Viren, Pilze)"},{id:15,categoryId:4,descr:"sensibilisierende und toxische Wirkungen von Mikroorganismen"},{id:16,categoryId:5,descr:"brennbare Feststoffe, Flüssigkeiten, Gase"},{id:17,categoryId:5,descr:"explosionsfähige Atmosphäre"},{id:18,categoryId:5,descr:"Explosivstoffe"},{id:19,categoryId:6,descr:"heiße Medien/Oberflächen"},{id:20,categoryId:6,descr:"kalte Medien/Oberflächen"},{id:21,categoryId:7,descr:"Lärm"},{id:22,categoryId:7,descr:"Ultrafschall, Infraschall"},{id:23,categoryId:7,descr:"Ganzkörpervibrationen"},{id:24,categoryId:7,descr:"Hand-Arm-Vibrationen"},{id:25,categoryId:7,descr:"optische Strahlung"},{id:26,categoryId:7,descr:"ionisierende Strahlung"},{id:27,categoryId:7,descr:"Elektromagnetische Felder"},{id:28,categoryId:7,descr:"Unterdruck/Überdruck"},{id:29,categoryId:8,descr:"Klima (z.B. Hitze, Kälte, unzureichende Belüftung)"},{id:30,categoryId:8,descr:"Beleuchtung, Licht"},{id:31,categoryId:8,descr:"Ersticken (z.B. durch sauerstoffreduzierte Atmosphäre), Ertrinken"},{id:32,categoryId:8,descr:"Weite Verkehrswege und weit voneinander entfernte Arbeitsplätze"},{id:33,categoryId:8,descr:"Nicht funktionierende Grundrettungsvarianten"},{id:34,categoryId:9,descr:"schwere dynamische Arbeit (z.B. manuelle Handhabung von Lasten)"},{id:35,categoryId:9,descr:"einseitige dynamische Arbeit, Körperbewegungen (z.B. häufig wiederholte Bewegungen)"},{id:36,categoryId:9,descr:"Haltungsarbeit (Zwangshaltung), Haltearbeit"},{id:37,categoryId:9,descr:"Kombination aus statischer und dynamischer Arbeit"},{id:38,categoryId:10,descr:"ungenügen gestaltete Arbeitsaufgabe (z.B. überwiegende Routineaufgaben, Unter-/Überforderung)"},{id:39,categoryId:10,descr:"Ungenügend gestaltete Arbeitsorganisation (z.B. Arbeiten unter hohem Zeitdruck, wechselnde und/oder lange Arbeitszeiten, häufige Nachtarbei, kein durchdachter Arbeitsablauf)"},{id:40,categoryId:10,descr:"Ungenügend gestaltete soziale Bedingungen (z.B. fehlende soziale Kontakte, ungünstiges Führungsverhalten, Konflikte)"},{id:41,categoryId:10,descr:"Ungenügend gestaltete Arbeitsplatz- und Arbeitsumgebungsbedingungen (z.B. unzureichende Wahrnehmung von Signalen und Prozessmerkmalen, Lärm, Klima, räumliche Enge, unzureichende Softwaregestaltung)"},{id:42,categoryId:10,descr:"Neue Arbeitsformen"},{id:43,categoryId:11,descr:"durch Menschen (z.B. Überfall)"},{id:44,categoryId:11,descr:"durch Tiere (z.B. gebissen werden)"},{id:45,categoryId:11,descr:"durch Pflanzen und pflanzliche Produkte (z.B. sensibilisierende und toxische Wirkung)"},{id:46,categoryId:1,descr:"Pendelsturz"},{id:47,categoryId:3,descr:"Sauerstoffkonzentration < 21%"},{id:48,categoryId:3,descr:"Feststoffe"},{id:49,categoryId:9,descr:"Hängetraume als Folge des Handlungsunfähigen Hängens"}],risks:[{id:1,factorId:1,sector:"Z",descr:"Windenbenutzung"},{id:2,factorId:1,sector:"U",descr:"Maschinenwellen"},{id:3,factorId:1,sector:"A",descr:"Flex"},{id:4,factorId:2,sector:"U",descr:"Ecken, Spitzen"},{id:5,factorId:2,sector:"A",descr:"Messerklingen"},{id:6,factorId:3,sector:"U",descr:"Krane & ähnliches"},{id:7,factorId:4,sector:"Z",descr:"Fallende PSA und Ausrüstungsgegenstände"},{id:8,factorId:4,sector:"U",descr:"Fallende Gebäudeteile"},{id:9,factorId:4,sector:"A",descr:"Fallendes Werkzeug/Material"},{id:10,factorId:5,sector:"Z",descr:"Stolpern über Seile"},{id:11,factorId:5,sector:"U",descr:"stark geneigte oder glatte Flächen"},{id:12,factorId:5,sector:"A",descr:"Kabel, Material"},{id:13,factorId:6,sector:"Z",descr:"versagende PSA"},{id:14,factorId:6,sector:"Z",descr:"Seile trennen durch Kanten"},{id:15,factorId:6,sector:"Z",descr:"Seile trennen durch Maschinen"},{id:16,factorId:6,sector:"A",descr:"Seile durchtrennen"},{id:17,factorId:46,sector:"Z",descr:"Arbeitsplätze nicht lotgerecht unter Anschlagpunkt"},{id:18,factorId:7,sector:"U",descr:"Elektrische Installation"},{id:19,factorId:7,sector:"A",descr:"Elektrische Werkzeuge"},{id:20,factorId:8,sector:"U",descr:"Lichtbögen bei WEA"},{id:21,factorId:9,sector:"Z",descr:"Helikoptermontagen"},{id:22,factorId:10,sector:"U",descr:"Behälter ungelüftet"},{id:23,factorId:10,sector:"A",descr:"Im Behälter schweißen"},{id:24,factorId:11,sector:"U",descr:"Behälter ungelüftet"},{id:25,factorId:11,sector:"A",descr:"flüchtige Lösungsmittel"},{id:26,factorId:12,sector:"U",descr:"Stäube"},{id:27,factorId:12,sector:"A",descr:"Sprühverfahren"},{id:28,factorId:13,sector:"U",descr:"Chemische Behälter"},{id:29,factorId:13,sector:"A",descr:"scharfe Reiniger"},{id:30,factorId:48,sector:"U",descr:"Chemie Behälter"},{id:31,factorId:48,sector:"A",descr:"scharfe Reiniger"},{id:32,factorId:47,sector:"U",descr:"Behälter ungelüftet"},{id:33,factorId:14,sector:"U",descr:"Schimmel"},{id:34,factorId:12,sector:"A",descr:"Schleifstäube"},{id:35,factorId:14,sector:"U",descr:"Abfälle"},{id:36,factorId:14,sector:"U",descr:"Taubenkot"},{id:37,factorId:14,sector:"A",descr:"Taubenkot entfernen"},{id:38,factorId:15,sector:"U",descr:"Schimmel"},{id:39,factorId:15,sector:"U",descr:"Abfälle"},{id:40,factorId:15,sector:"U",descr:"Taubenkot"},{id:41,factorId:15,sector:"A",descr:"Taubenkot entfernen"},{id:42,factorId:16,sector:"U",descr:"Holzstrukturen"},{id:43,factorId:16,sector:"U",descr:"Chemie"},{id:44,factorId:16,sector:"A",descr:"Treibstoff"},{id:45,factorId:16,sector:"A",descr:"Lösungsmittel"},{id:46,factorId:17,sector:"Z",descr:"Funkenbildung Alukarabiner"},{id:47,factorId:17,sector:"U",descr:"Ex-Bereiche"},{id:48,factorId:17,sector:"A",descr:"Chemie"},{id:49,factorId:17,sector:"A",descr:"dichter Staub"},{id:50,factorId:19,sector:"Z",descr:"Abseilgeräte"},{id:51,factorId:19,sector:"U",descr:"Heißdampf"},{id:52,factorId:19,sector:"U",descr:"Rohrleitung"},{id:53,factorId:19,sector:"A",descr:"offene Flamme"},{id:54,factorId:20,sector:"Z",descr:"vereiste Seile"},{id:55,factorId:20,sector:"U",descr:"vereiste Verkehrswege"},{id:56,factorId:20,sector:"A",descr:"Flüssigstickstoff"},{id:57,factorId:21,sector:"Z",descr:"Benzinwinde"},{id:58,factorId:21,sector:"U",descr:"Kirchenglocken"},{id:59,factorId:21,sector:"A",descr:"laute Werkzeuge"},{id:60,factorId:22,sector:"U",descr:"technische Anlagen"},{id:61,factorId:22,sector:"A",descr:"Messgeräte"},{id:62,factorId:24,sector:"A",descr:"handgehaltene Maschinen"},{id:63,factorId:25,sector:"U",descr:"Sonne"},{id:64,factorId:25,sector:"A",descr:"Schweißen"},{id:65,factorId:26,sector:"U",descr:"Radioaktive Bereiche"},{id:66,factorId:26,sector:"A",descr:"Materialprüfung mit Röntgen"},{id:67,factorId:27,sector:"U",descr:"Sendeantennen"},{id:68,factorId:27,sector:"A",descr:"Magnetprüfung"},{id:69,factorId:28,sector:"U",descr:"> 2500m"},{id:70,factorId:28,sector:"A",descr:"> 2500m"},{id:71,factorId:29,sector:"U",descr:"gefahrbringendes Wetter"},{id:72,factorId:30,sector:"U",descr:"Nachtarbeit"},{id:73,factorId:30,sector:"U",descr:"Behälter"},{id:74,factorId:31,sector:"U",descr:"Arbeitsplatz über Klärbecken"},{id:75,factorId:31,sector:"U",descr:"Arbeitsplatz über Gewässer"},{id:76,factorId:31,sector:"Z",descr:"Arbeitsplatz über Klärbecken"},{id:77,factorId:31,sector:"Z",descr:"Arbeitsplatz über Gewässer"},{id:78,factorId:31,sector:"A",descr:"Arbeiten über Gewässer"},{id:79,factorId:31,sector:"A",descr:"Arbeiten über Behältern mit Mehl"},{id:80,factorId:32,sector:"Z",descr:"ungenügende Kommunikation"},{id:81,factorId:32,sector:"Z",descr:"fehlende Sicht"},{id:82,factorId:33,sector:"Z",descr:"sehr komplexe Zugangstechniken"},{id:83,factorId:33,sector:"Z",descr:"Engstellen"},{id:84,factorId:33,sector:"Z",descr:"beengte Räume"},{id:85,factorId:33,sector:"Z",descr:"stark exponierte Räume"},{id:86,factorId:34,sector:"Z",descr:"große Aufstiege"},{id:87,factorId:34,sector:"A",descr:"Stemmarbeiten"},{id:88,factorId:34,sector:"A",descr:"Materialtransport"},{id:89,factorId:35,sector:"A",descr:"Betätigen einer Schere"},{id:90,factorId:36,sector:"Z",descr:"Zwangshaltungen"},{id:91,factorId:36,sector:"U",descr:"Beengte Räume"},{id:92,factorId:36,sector:"A",descr:"Horizontale Glasreinigung"},{id:93,factorId:36,sector:"A",descr:"Arbeiten über Kopf"},{id:94,factorId:37,sector:"A",descr:"Im Seil hängend Lasten heben"},{id:95,factorId:49,sector:"Z",descr:"fehlendes Sitzbrett"},{id:96,factorId:49,sector:"Z",descr:"fehlende Beinbelastung"},{id:97,factorId:38,sector:"Z",descr:"nicht ausreichende Erfahrung"},{id:98,factorId:38,sector:"U",descr:"zu komplex"},{id:99,factorId:38,sector:"U",descr:"zu hoch"},{id:100,factorId:38,sector:"A",descr:"zu komplex"},{id:101,factorId:39,sector:"Z",descr:"nicht geregelte Kompetenzen"},{id:102,factorId:39,sector:"U",descr:"Koordination Gewerke"},{id:103,factorId:39,sector:"A",descr:"Regelarbeitszeit"},{id:104,factorId:39,sector:"A",descr:"Pausen"},{id:105,factorId:40,sector:"Z",descr:"Teamführung"},{id:106,factorId:40,sector:"Z",descr:"Verhältnis Level 3/Team"},{id:107,factorId:40,sector:"U",descr:"Kommunikation Gewerke"},{id:108,factorId:40,sector:"A",descr:"isolierte Arbeit"},{id:109,factorId:41,sector:"Z",descr:"fehlende Getränke"},{id:110,factorId:43,sector:"Z",descr:"Fähigkeiten Teamkollege"},{id:111,factorId:43,sector:"U",descr:"Drittgewerke"},{id:112,factorId:43,sector:"U",descr:"Anwohner"},{id:113,factorId:44,sector:"U",descr:"Wespennest"},{id:114,factorId:44,sector:"U",descr:"Allergien"},{id:115,factorId:44,sector:"A",descr:"Nest entfernen"},{id:116,factorId:45,sector:"U",descr:"Soja Silo"},{id:117,factorId:45,sector:"U",descr:"Allergie"},{id:118,factorId:45,sector:"A",descr:"Stemmarbeiten Soja"}]},measures:[{id:1,solveRisks:[13],causeRisks:[],descr:"Nur zertifizierte und geprüfte PSA verwenden"},{id:2,solveRisks:[6],causeRisks:[],descr:"Deaktivieren + Arretieren, gegen Wiedereinschalten sichern"},{id:3,solveRisks:[4],causeRisks:[],descr:"Handschuhe benutzen"},{id:4,solveRisks:[7],causeRisks:[],descr:"gegen Herabfallen sichern"},{id:5,solveRisks:[10,12],causeRisks:[],descr:"Umsichtig bewegen"},{id:6,solveRisks:[12],causeRisks:[],descr:"Verkehrswege freihalten"},{id:7,solveRisks:[14],causeRisks:[],descr:"Seil-/Kantenschutz nutzen"},{id:8,solveRisks:[14],causeRisks:[],descr:"Kanten mit Stahlseilen überbrücken"},{id:9,solveRisks:[17],causeRisks:[],descr:"Anschlagpunkte mit geringem Abstand zu einander nutzen"},{id:10,solveRisks:[17],causeRisks:[],descr:"Jede Seilstrecke redundant aufbauen"}],equipment:[{id:1,descr:"Grundausrüstung PSAgA gemäß DGUV 112-198",tags:["psa"],causeRisks:[]},{id:2,descr:"Grundausrüstung SZP gemäß FISAT FSR-SZP und TRBS 2121-3",tags:["szp"],causeRisks:[]},{id:3,descr:"Winkelschleifer",tags:["werkzeug"],causeRisks:[3]},{descr:"Halbstatische Seile nach EN 1891 Typ A in ausreichender Länge",id:4,tags:["szp"],causeRisks:[]},{descr:"Anschlagmittel nach EN 795 (Schlingen, Trägerklemmen, etc.)",id:5,tags:["szp"],causeRisks:[]}],technicians:[{id:1,name:"Supervisor Dummy",fisat:{id:"27319",level:3}},{id:2,name:"Fisat Dummy",fisat:{id:"12345",level:1}},{id:3,name:"Dummy"}],textblocks:{categories:[{id:1,descr:"Zugang"},{id:2,descr:"Rettung"}],blocks:[{id:1,categoryId:1,category:"zugang",text:"Anwendung von PSAgA gemäß DGUV Regel 112-198"},{id:2,categoryId:1,category:"zugang",text:"zugelassene und geprüfte vorhandene Anschlagpunkte"},{id:3,categoryId:1,category:"zugang",text:"Frei zugänglich, keine Sicherung erforderlich"},{id:4,categoryId:2,category:"rettung",text:"Zugang für den Rettungsdienst gewährleistet; Übergabe an RK an Ort und Stelle"},{id:5,categoryId:2,category:"rettung",text:"Standardrettung aktiv FISAT Level 1"},{id:6,categoryId:1,category:"zugang",text:"Die Anwendung von SZP erfolgt gemäß der TRBS 2121 Teil 3, der FISAT-FSR und der DGUV Information 212-001"}]}};function es(t){t.table("risks").bulkAdd(ke.risks.risks),t.table("factors").bulkAdd(ke.risks.factors),t.table("categories").bulkAdd(ke.risks.categories),t.table("measures").bulkAdd(ke.measures),t.table("technicians").bulkAdd(ke.technicians),t.table("equipment").bulkAdd(ke.equipment)}class ts{constructor(){B(this,"categories");B(this,"risksById");this.categories=[],this.risksById={}}clear(){this.categories.forEach(e=>{var r;(r=e.factors)==null||r.forEach(n=>{n.risks&&(n.risks.length=0)})});for(const e in this.risksById)delete this.risksById[e]}}Xt(new ts);class rs{constructor(e,r,n,s){B(this,"id");B(this,"factorId");B(this,"sector");B(this,"descr");B(this,"factor");this.descr=e,this.sector=r,this.factorId=n,s!==void 0&&(this.id=s)}setup(e,r){if(this.factor!==void 0)return this;if(this.factor=e(this.factorId),this.factor===void 0)throw Error("There is no factor with ID ".concat(this.factorId," in the live tables. Maybe call setupLiveTable() first?"));return this.factor.setup(r),this.factor.risks?this.factor.risks.push(this):console.warn("AAAARGH"),this}}class ns{constructor(){B(this,"id");B(this,"categoryId");B(this,"descr");B(this,"category");B(this,"risks")}setup(e){if(this.risks===void 0){if(this.risks=Xt([]),this.category=e(this.categoryId),this.category===void 0)throw Error("setupLiveTable() need to be called before setting up factor object. Or category does not exit in database.");this.category.setup(),this.category.factors&&this.category.factors.push(this)}}}class ss{constructor(){B(this,"id");B(this,"descr");B(this,"factors")}setup(){this.factors===void 0&&(this.factors=Xt([]))}}const is="risk-assessment";class os extends pe{constructor(){super(is);B(this,"equipment");B(this,"technicians");B(this,"risks");B(this,"factors");B(this,"categories");B(this,"measures");B(this,"riskassessments");B(this,"riskassessmentsmeta");this.version(1).stores({equipment:"++id, descr, *causeRisks",technicians:"++id, name",risks:"++id, factorId, sector, descr",factors:"++id, categoryId, descr",categories:"++id, descr",measures:"++id, descr, *solveRisks, *causeRisks",riskassessments:"++id, descr, company, adress, startDate, endDate, address, jobDescr, *equipment, *technicians, *supervisors, *access, *risks, measures, meta",riskassessmentsmeta:"&id, descr, created, lastChange"}),this.on("populate",r=>es(r)),this.on("ready",()=>{this.risks.mapToClass(rs),this.factors.mapToClass(ns),this.categories.mapToClass(ss)})}}const ds=new os;var as=(t=>(t.Access="Z",t.Environment="U",t.Work="A",t))(as||{});function rn(t,e){for(let r in e){if(typeof e[r]!="object"){t[r]=e[r];continue}if(Array.isArray(e[r])){t[r]=[...e[r]];continue}if(t[r]===void 0&&(t[r]={}),typeof t[r]!="object")throw Error("can't merge incompatible objects");rn(t[r],e[r])}}function hs(t,e){return console.log(t),rn(t,e),t}function Ir(t,e){if(typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>Ir(s));if(t==null)return t;let r=Object.keys(t);e!==void 0&&(r=e);const n={};return r.forEach(s=>{n[s]=Ir(t[s])}),n}function Ar(t,e){if(typeof t!=typeof e)return!1;if(typeof t!="object")return t===e;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r{n=e.Z,s=e.aK,i=e.aL,o=e.aM}],execute:function(){t({a:async function(e,t,r){const n={header:e,subheader:r,buttons:[t,{text:"Abbrechen",role:"cancel",icon:o,data:{action:"cancel"}}]};return await async function(e){const t=await i.create(e);return await t.present()}(n)},b:function e(t,r){if("object"!=typeof t)return t;if(Array.isArray(t))return t.map((t=>e(t)));if(null==t)return t;let n=Object.keys(t);void 0!==r&&(n=r);const s={};return n.forEach((r=>{s[r]=e(t[r])})),s},c:function(e,t){const r={};for(let n in t)r[n]=e[n];return r},e:function e(t,r){if(typeof t!=typeof r)return!1;if("object"!=typeof t)return t===r;if(Array.isArray(t)){if(!Array.isArray(r))return!1;if(t.length!==r.length)return!1;for(let n=0;n{y(e,r,t[r])}))}const p=Object.defineProperty;function y(e,t,r,n){p(e,t,u(r&&h(r,"get")&&"function"==typeof r.get?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function m(e){return{from:function(t){return e.prototype=Object.create(t.prototype),y(e.prototype,"constructor",e),{extend:f.bind(null,e.prototype)}}}}const g=Object.getOwnPropertyDescriptor;function b(e,t){let r;return g(e,t)||(r=l(e))&&b(r,t)}const v=[].slice;function w(e,t,r){return v.call(e,t,r)}function _(e,t){return t(e)}function k(e){if(!e)throw new Error("Assertion Failed")}function I(e){r.setImmediate?setImmediate(e):setTimeout(e,0)}function A(e,t){return e.reduce(((e,r,n)=>{var s=t(r,n);return s&&(e[s[0]]=s[1]),e}),{})}function x(e,t){if(h(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var r=[],n=0,s=t.length;n["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>r[e])),B=O.map((e=>r[e]));A(O,(e=>[e,!0]));let R=null;function j(e){R="undefined"!=typeof WeakMap&&new WeakMap;const t=C(e);return R=null,t}function C(e){if(!e||"object"!=typeof e)return e;let t=R&&R.get(e);if(t)return t;if(c(e)){t=[],R&&R.set(e,t);for(var r=0,n=e.length;r=0)t=e;else{const r=l(e);for(var s in t=r===Object.prototype?{}:Object.create(r),R&&R.set(e,t),e)h(e,s)&&(t[s]=C(e[s]))}return t}const{toString:T}={};function D(e){return T.call(e).slice(8,-1)}const F="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",M="symbol"==typeof F?function(e){var t;return null!=e&&(t=e[F])&&t.apply(e)}:function(){return null},U={};function z(e){var t,r,n,s;if(1===arguments.length){if(c(e))return e.slice();if(this===U&&"string"==typeof e)return[e];if(s=M(e)){for(r=[];!(n=s.next()).done;)r.push(n.value);return r}if(null==e)return[e];if("number"==typeof(t=e.length)){for(r=new Array(t);t--;)r[t]=e[t];return r}return[e]}for(t=arguments.length,r=new Array(t);t--;)r[t]=arguments[t];return r}const N="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var q="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Z(e,t){q=e,L=t}var L=()=>!0;const $=!new Error("").stack;function G(){if($)try{throw G.arguments,new Error}catch(r){return r}return new Error}function W(e,t){var r=e.stack;return r?(t=t||0,0===r.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),r.split("\n").slice(t).filter(L).map((e=>"\n"+e)).join("")):""}var V=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],H=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(V),Y={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Q(e,t){this._e=G(),this.name=e,this.message=t}function X(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,r)=>r.indexOf(e)===t)).join("\n")}function J(e,t,r,n){this._e=G(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=X(e,t)}function ee(e,t){this._e=G(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=X(e,t)}m(Q).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+W(this._e,2))}},toString:function(){return this.name+": "+this.message}}),m(J).from(Q),m(ee).from(Q);var te=H.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const re=Q;var ne=H.reduce(((e,t)=>{var r=t+"Error";function n(e,n){this._e=G(),this.name=r,e?"string"==typeof e?(this.message=`${e}${n?"\n "+n:""}`,this.inner=n||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=Y[t]||r,this.inner=null)}return m(n).from(re),e[t]=n,e}),{});ne.Syntax=SyntaxError,ne.Type=TypeError,ne.Range=RangeError;var se=V.reduce(((e,t)=>(e[t+"Error"]=ne[t],e)),{}),ie=H.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ne[t]),e)),{});function oe(){}function ae(e){return e}function ce(e,t){return null==e||e===ae?t:function(r){return t(e(r))}}function ue(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function le(e,t){return e===oe?t:function(){var r=e.apply(this,arguments);void 0!==r&&(arguments[0]=r);var n=this.onsuccess,s=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?ue(n,this.onsuccess):n),s&&(this.onerror=this.onerror?ue(s,this.onerror):s),void 0!==i?i:r}}function de(e,t){return e===oe?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?ue(r,this.onsuccess):r),n&&(this.onerror=this.onerror?ue(n,this.onerror):n)}}function he(e,t){return e===oe?t:function(r){var n=e.apply(this,arguments);u(r,n);var s=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return s&&(this.onsuccess=this.onsuccess?ue(s,this.onsuccess):s),i&&(this.onerror=this.onerror?ue(i,this.onerror):i),void 0===n?void 0===o?void 0:o:u(n,o)}}function fe(e,t){return e===oe?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function pe(e,t){return e===oe?t:function(){var r=e.apply(this,arguments);if(r&&"function"==typeof r.then){for(var n=this,s=arguments.length,i=new Array(s);s--;)i[s]=arguments[s];return r.then((function(){return t.apply(n,i)}))}return t.apply(this,arguments)}}ie.ModifyError=J,ie.DexieError=Q,ie.BulkError=ee;var ye={};const me=100,[ge,be,ve]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,l(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,l(t),e]})(),we=be&&be.then,_e=ge&&ge.constructor,ke=!!ve;var Ie=!1,Ae=ve?()=>{ve.then(We)}:r.setImmediate?setImmediate.bind(null,We):r.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{We(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(We,0)},xe=function(e,t){Ce.push([e,t]),Se&&(Ae(),Se=!1)},Ee=!0,Se=!0,Ke=[],Pe=[],Oe=null,Be=ae,Re={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:bt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{bt(e[0],e[1])}catch(e){}}))}},je=Re,Ce=[],Te=0,De=[];function Fe(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=oe,this._lib=!1;var t=this._PSD=je;if(q&&(this._stackHolder=G(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==ye)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ne(this,this._value))}this._state=null,this._value=null,++t.ref,ze(this,e)}const Me={get:function(){var e=je,t=nt;function r(r,n){var s=!e.global&&(e!==je||t!==nt);const i=s&&!at();var o=new Fe(((t,o)=>{Ze(this,new Ue(yt(r,e,s,i),yt(n,e,s,i),t,o,e))}));return q&&Ge(o,this),o}return r.prototype=ye,r},set:function(e){y(this,"then",e&&e.prototype===ye?Me:{get:function(){return e},set:Me.set})}};function Ue(e,t,r,n,s){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=r,this.reject=n,this.psd=s}function ze(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var r=e._lib&&Ve();t&&"function"==typeof t.then?ze(e,((e,r)=>{t instanceof Fe?t._then(e,r):t.then(e,r)})):(e._state=!0,e._value=t,qe(e)),r&&He()}}),Ne.bind(null,e))}catch(t){Ne(e,t)}}function Ne(e,t){if(Pe.push(t),null===e._state){var r=e._lib&&Ve();t=Be(t),e._state=!1,e._value=t,q&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,r){try{e.apply(null,void 0)}catch(e){}}((()=>{var r=b(t,"stack");t._promise=e,y(t,"stack",{get:()=>Ie?r&&(r.get?r.get.apply(t):r.value):e.stack})})),function(e){Ke.some((t=>t._value===e._value))||Ke.push(e)}(e),qe(e),r&&He()}}function qe(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r{0==--Te&&Ye()}),[]))}function Ze(e,t){if(null!==e._state){var r=e._state?t.onFulfilled:t.onRejected;if(null===r)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Te,xe(Le,[r,e,t])}else e._listeners.push(t)}function Le(e,t,r){try{Oe=t;var n,s=t._value;t._state?n=e(s):(Pe.length&&(Pe=[]),n=e(s),-1===Pe.indexOf(s)&&function(e){for(var t=Ke.length;t;)if(Ke[--t]._value===e._value)return void Ke.splice(t,1)}(t)),r.resolve(n)}catch(e){r.reject(e)}finally{Oe=null,0==--Te&&Ye(),--r.psd.ref||r.psd.finalize()}}function $e(e,t,r){if(t.length===r)return t;var n="";if(!1===e._state){var s,i,o=e._value;null!=o?(s=o.name||"Error",i=o.message||o,n=W(o,0)):(s=o,i=""),t.push(s+(i?": "+i:"")+n)}return q&&((n=W(e._stackHolder,2))&&-1===t.indexOf(n)&&t.push(n),e._prev&&$e(e._prev,t,r)),t}function Ge(e,t){var r=t?t._numPrev+1:0;r<100&&(e._prev=t,e._numPrev=r)}function We(){Ve()&&He()}function Ve(){var e=Ee;return Ee=!1,Se=!1,e}function He(){var e,t,r;do{for(;Ce.length>0;)for(e=Ce,Ce=[],r=e.length,t=0;t0);Ee=!0,Se=!0}function Ye(){var e=Ke;Ke=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=De.slice(0),r=t.length;r;)t[--r]()}function Qe(e){return new Fe(ye,!1,e)}function Xe(e,t){var r=je;return function(){var n=Ve(),s=je;try{return dt(r,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{dt(s,!1),n&&He()}}}f(Fe.prototype,{then:Me,_then:function(e,t){Ze(this,new Ue(null,null,e,t,je))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],r=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?r(e):Qe(e))):this.then(null,(e=>e&&e.name===t?r(e):Qe(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),Qe(t))))},stack:{get:function(){if(this._stack)return this._stack;try{Ie=!0;var e=$e(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Ie=!1}}},timeout:function(e,t){return e<1/0?new Fe(((r,n)=>{var s=setTimeout((()=>n(new ne.Timeout(t))),e);this.then(r,n).finally(clearTimeout.bind(null,s))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&y(Fe.prototype,Symbol.toStringTag,"Dexie.Promise"),Re.env=ht(),f(Fe,{all:function(){var e=z.apply(null,arguments).map(ct);return new Fe((function(t,r){0===e.length&&t([]);var n=e.length;e.forEach(((s,i)=>Fe.resolve(s).then((r=>{e[i]=r,--n||t(e)}),r)))}))},resolve:e=>{if(e instanceof Fe)return e;if(e&&"function"==typeof e.then)return new Fe(((t,r)=>{e.then(t,r)}));var t=new Fe(ye,!0,e);return Ge(t,Oe),t},reject:Qe,race:function(){var e=z.apply(null,arguments).map(ct);return new Fe(((t,r)=>{e.map((e=>Fe.resolve(e).then(t,r)))}))},PSD:{get:()=>je,set:e=>je=e},totalEchoes:{get:()=>nt},newPSD:it,usePSD:ft,scheduler:{get:()=>xe,set:e=>{xe=e}},rejectionMapper:{get:()=>Be,set:e=>{Be=e}},follow:(e,t)=>new Fe(((r,n)=>it(((t,r)=>{var n=je;n.unhandleds=[],n.onunhandled=r,n.finalize=ue((function(){!function(e){De.push((function t(){e(),De.splice(De.indexOf(t),1)})),++Te,xe((()=>{0==--Te&&Ye()}),[])}((()=>{0===this.unhandleds.length?t():r(this.unhandleds[0])}))}),n.finalize),e()}),t,r,n)))}),_e&&(_e.allSettled&&y(Fe,"allSettled",(function(){const e=z.apply(null,arguments).map(ct);return new Fe((t=>{0===e.length&&t([]);let r=e.length;const n=new Array(r);e.forEach(((e,s)=>Fe.resolve(e).then((e=>n[s]={status:"fulfilled",value:e}),(e=>n[s]={status:"rejected",reason:e})).then((()=>--r||t(n)))))}))})),_e.any&&"undefined"!=typeof AggregateError&&y(Fe,"any",(function(){const e=z.apply(null,arguments).map(ct);return new Fe(((t,r)=>{0===e.length&&r(new AggregateError([]));let n=e.length;const s=new Array(n);e.forEach(((e,i)=>Fe.resolve(e).then((e=>t(e)),(e=>{s[i]=e,--n||r(new AggregateError(s))}))))}))})));const Je={awaits:0,echoes:0,id:0};var et=0,tt=[],rt=0,nt=0,st=0;function it(e,t,r,n){var s=je,i=Object.create(s);i.parent=s,i.ref=0,i.global=!1,i.id=++st;var o=Re.env;i.env=ke?{Promise:Fe,PromiseProp:{value:Fe,configurable:!0,writable:!0},all:Fe.all,race:Fe.race,allSettled:Fe.allSettled,any:Fe.any,resolve:Fe.resolve,reject:Fe.reject,nthen:mt(o.nthen,i),gthen:mt(o.gthen,i)}:{},t&&u(i,t),++s.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=ft(i,e,r,n);return 0===i.ref&&i.finalize(),a}function ot(){return Je.id||(Je.id=++et),++Je.awaits,Je.echoes+=me,Je.id}function at(){return!!Je.awaits&&(0==--Je.awaits&&(Je.id=0),Je.echoes=Je.awaits*me,!0)}function ct(e){return Je.echoes&&e&&e.constructor===_e?(ot(),e.then((e=>(at(),e)),(e=>(at(),vt(e))))):e}function ut(e){++nt,Je.echoes&&0!=--Je.echoes||(Je.echoes=Je.id=0),tt.push(je),dt(e,!0)}function lt(){var e=tt[tt.length-1];tt.pop(),dt(e,!1)}function dt(e,t){var n=je;if((t?!Je.echoes||rt++&&e===je:!rt||--rt&&e===je)||pt(t?ut.bind(null,e):lt),e!==je&&(je=e,n===Re&&(Re.env=ht()),ke)){var s=Re.env.Promise,i=e.env;be.then=i.nthen,s.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(r,"Promise",i.PromiseProp),s.all=i.all,s.race=i.race,s.resolve=i.resolve,s.reject=i.reject,i.allSettled&&(s.allSettled=i.allSettled),i.any&&(s.any=i.any))}}function ht(){var e=r.Promise;return ke?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(r,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:be.then,gthen:e.prototype.then}:{}}function ft(e,t,r,n,s){var i=je;try{return dt(e,!0),t(r,n,s)}finally{dt(i,!1)}}function pt(e){we.call(ge,e)}function yt(e,t,r,n){return"function"!=typeof e?e:function(){var s=je;r&&ot(),dt(t,!0);try{return e.apply(this,arguments)}finally{dt(s,!1),n&&pt(at)}}}function mt(e,t){return function(r,n){return e.call(this,yt(r,t),yt(n,t))}}-1===(""+we).indexOf("[native code]")&&(ot=at=oe);const gt="unhandledrejection";function bt(e,t){var n;try{n=t.onuncatched(e)}catch(r){}if(!1!==n)try{var s,i={promise:t,reason:e};if(r.document&&document.createEvent?((s=document.createEvent("Event")).initEvent(gt,!0,!0),u(s,i)):r.CustomEvent&&u(s=new CustomEvent(gt,{detail:i}),i),s&&r.dispatchEvent&&(dispatchEvent(s),!r.PromiseRejectionEvent&&r.onunhandledrejection))try{r.onunhandledrejection(s)}catch(r){}q&&s&&!s.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(r){}}var vt=Fe.reject;function wt(e,t,r,n){if(e.idbdb&&(e._state.openComplete||je.letThrough||e._vip)){var s=e._createTransaction(t,r,e._dbSchema);try{s.create(),e._state.PR1398_maxLoop=3}catch(s){return s.name===te.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>wt(e,t,r,n)))):vt(s)}return s._promise(t,((e,t)=>it((()=>(je.trans=s,n(e,t,s)))))).then((e=>s._completion.then((()=>e))))}if(e._state.openComplete)return vt(new ne.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return vt(new ne.DatabaseClosed);e.open().catch(oe)}return e._state.dbReadyPromise.then((()=>wt(e,t,r,n)))}const _t="3.2.4",kt=String.fromCharCode(65535),It=-1/0,At="Invalid key provided. Keys must be of type string, number, Date or Array.",xt="String expected.",Et=[],St="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Kt=St,Pt=St,Ot=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),Bt="__dbnames",Rt="readonly",jt="readwrite";function Ct(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const Tt={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Dt(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=j(t))[e],t)}class Ft{_trans(e,t,r){const n=this._tx||je.trans,s=this.name;function i(e,r,n){if(!n.schema[s])throw new ne.NotFound("Table "+s+" not part of transaction");return t(n.idbtrans,n)}const o=Ve();try{return n&&n.db===this.db?n===je.trans?n._promise(e,i,r):it((()=>n._promise(e,i,r)),{trans:n,transless:je.transless||je}):wt(this.db,e,[this.name],i)}finally{o&&He()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(c(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=a(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const r=this.schema.indexes.concat(this.schema.primKey).filter((e=>e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))&&e.keyPath.every((e=>t.indexOf(e)>=0))))[0];if(r&&this.db._maxKey!==kt)return this.where(r.name).equals(r.keyPath.map((t=>e[t])));!r&&q&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:n}=this.schema,s=this.db._deps.indexedDB;function i(e,t){try{return 0===s.cmp(e,t)}catch(e){return!1}}const[o,u]=t.reduce((([t,r],s)=>{const o=n[s],a=e[s];return[t||o,t||!o?Ct(r,o&&o.multi?e=>{const t=x(e,s);return c(t)&&t.some((e=>i(a,e)))}:e=>i(a,x(e,s))):r]}),[null,null]);return o?this.where(o.name).equals(e[o.keyPath]).filter(u):r?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,c(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const r=Object.create(e.prototype);for(var n in t)if(h(t,n))try{r[n]=t[n]}catch(e){}return r};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){u(this,e)}))}add(e,t){const{auto:r,keyPath:n}=this.schema.primKey;let s=e;return n&&r&&(s=Dt(n)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[s]}))).then((e=>e.numFailures?Fe.reject(e.failures[0]):e.lastResult)).then((t=>{if(n)try{E(e,n,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||c(e))return this.where(":id").equals(e).modify(t);{const r=x(e,this.schema.primKey.keyPath);if(void 0===r)return vt(new ne.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?a(t).forEach((r=>{E(e,r,t[r])})):t(e,{value:e,primKey:r})}catch(e){}return this.where(":id").equals(r).modify(t)}}put(e,t){const{auto:r,keyPath:n}=this.schema.primKey;let s=e;return n&&r&&(s=Dt(n)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[s],keys:null!=t?[t]:null}))).then((e=>e.numFailures?Fe.reject(e.failures[0]):e.lastResult)).then((t=>{if(n)try{E(e,n,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?Fe.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:Tt}))).then((e=>e.numFailures?Fe.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,r){const n=Array.isArray(t)?t:void 0,s=(r=r||(n?void 0:t))?r.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:r,keyPath:i}=this.schema.primKey;if(i&&n)throw new ne.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new ne.InvalidArgument("Arguments objects and keys must have the same length");const o=e.length;let a=i&&r?e.map(Dt(i)):e;return this.core.mutate({trans:t,type:"add",keys:n,values:a,wantResults:s}).then((({numFailures:e,results:t,lastResult:r,failures:n})=>{if(0===e)return s?t:r;throw new ee(`${this.name}.bulkAdd(): ${e} of ${o} operations failed`,n)}))}))}bulkPut(e,t,r){const n=Array.isArray(t)?t:void 0,s=(r=r||(n?void 0:t))?r.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:r,keyPath:i}=this.schema.primKey;if(i&&n)throw new ne.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new ne.InvalidArgument("Arguments objects and keys must have the same length");const o=e.length;let a=i&&r?e.map(Dt(i)):e;return this.core.mutate({trans:t,type:"put",keys:n,values:a,wantResults:s}).then((({numFailures:e,results:t,lastResult:r,failures:n})=>{if(0===e)return s?t:r;throw new ee(`${this.name}.bulkPut(): ${e} of ${o} operations failed`,n)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:r,failures:n})=>{if(0===e)return r;throw new ee(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,n)}))}}function Mt(e){var t={},r=function(r,n){if(n){for(var s=arguments.length,i=new Array(s-1);--s;)i[s-1]=arguments[s];return t[r].subscribe.apply(null,i),e}if("string"==typeof r)return t[r]};r.addEventType=i;for(var n=1,s=arguments.length;nCt(n(),t()):t,e.justLimit=r&&!n}function Zt(e,t){if(e.isPrimKey)return t.primaryKey;const r=t.getIndexByKeyPath(e.index);if(!r)throw new ne.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function Lt(e,t,r){const n=Zt(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:n,range:e.range}})}function $t(e,t,r,n){const s=e.replayFilter?Ct(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},o=(e,r,n)=>{if(!s||s(r,n,(e=>r.stop(e)),(e=>r.fail(e)))){var o=r.primaryKey,a=""+o;"[object ArrayBuffer]"===a&&(a=""+new Uint8Array(o)),h(i,a)||(i[a]=!0,t(e,r,n))}};return Promise.all([e.or._iterate(o,r),Gt(Lt(e,n,r),e.algorithm,o,!e.keysOnly&&e.valueMapper)])}return Gt(Lt(e,n,r),Ct(e.algorithm,s),t,!e.keysOnly&&e.valueMapper)}function Gt(e,t,r,n){var s=Xe(n?(e,t,s)=>r(n(e),t,s):r);return e.then((e=>{if(e)return e.start((()=>{var r=()=>e.continue();t&&!t(e,(e=>r=e),(t=>{e.stop(t),r=oe}),(t=>{e.fail(t),r=oe}))||s(e.value,e,(e=>r=e)),r()}))}))}function Wt(e,t){try{const r=Vt(e),n=Vt(t);if(r!==n)return"Array"===r?1:"Array"===n?-1:"binary"===r?1:"binary"===n?-1:"string"===r?1:"string"===n?-1:"Date"===r?1:"Date"!==n?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e$t(t,e,r,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,r=t.table.core;if(zt(t,!0))return r.count({trans:e,query:{index:Zt(t,r.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var n=0;return $t(t,(()=>(++n,!1)),e,r).then((()=>n))})).then(e)}sortBy(e,t){const r=e.split(".").reverse(),n=r[0],s=r.length-1;function i(e,t){return t?i(e[r[t]],t-1):e[n]}var o="next"===this._ctx.dir?1:-1;function a(e,t){var r=i(e,s),n=i(t,s);return rn?o:0}return this.toArray((function(e){return e.sort(a)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&zt(t,!0)&&t.limit>0){const{valueMapper:r}=t,n=Zt(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:n,range:t.range}}).then((({result:e})=>r?e.map(r):e))}{const r=[];return $t(t,(e=>r.push(e)),e,t.table.core).then((()=>r))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,zt(t)?qt(t,(()=>{var t=e;return(e,r)=>0===t||(1===t?(--t,!1):(r((()=>{e.advance(t),t=0})),!1))})):qt(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),qt(this._ctx,(()=>{var t=e;return function(e,r,n){return--t<=0&&r(n),t>=0}}),!0),this}until(e,t){return Nt(this._ctx,(function(r,n,s){return!e(r.value)||(n(s),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,r;return Nt(this._ctx,(function(t){return e(t.value)})),t=this._ctx,r=e,t.isMatch=Ct(t.isMatch,r),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,r){e(r.key,r)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,r){e(r.primaryKey,r)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var r=[];return this.each((function(e,t){r.push(t.key)})).then((function(){return r})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&zt(t,!0)&&t.limit>0)return this._read((e=>{var r=Zt(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:r,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var r=[];return this.each((function(e,t){r.push(t.primaryKey)})).then((function(){return r})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var r={};return Nt(this._ctx,(function(e){var t=e.primaryKey.toString(),n=h(r,t);return r[t]=!0,!n})),this}modify(e){var t=this._ctx;return this._write((r=>{var n;if("function"==typeof e)n=e;else{var s=a(e),i=s.length;n=function(t){for(var r=!1,n=0;n{const{failures:r,numFailures:n}=t;h+=e-n;for(let s of a(r))d.push(r[s])};return this.clone().primaryKeys().then((s=>{const i=a=>{const d=Math.min(l,s.length-a);return o.getMany({trans:r,keys:s.slice(a,a+d),cache:"immutable"}).then((h=>{const f=[],y=[],m=c?[]:null,g=[];for(let e=0;e0&&o.mutate({trans:r,type:"add",values:f}).then((e=>{for(let t in e.failures)g.splice(parseInt(t),1);p(f.length,e)}))).then((()=>(y.length>0||b&&"object"==typeof e)&&o.mutate({trans:r,type:"put",keys:m,values:y,criteria:b,changeSpec:"function"!=typeof e&&e}).then((e=>p(y.length,e))))).then((()=>(g.length>0||b&&e===Qt)&&o.mutate({trans:r,type:"delete",keys:g,criteria:b}).then((e=>p(g.length,e))))).then((()=>s.length>a+d&&i(a+l)))}))};return i(0).then((()=>{if(d.length>0)throw new J("Error modifying one or more objects",d,h,f);return s.length}))}))}))}delete(){var e=this._ctx,t=e.range;return zt(e)&&(e.isPrimKey&&!Pt||3===t.type)?this._write((r=>{const{primaryKey:n}=e.table.core.schema,s=t;return e.table.core.count({trans:r,query:{index:n,range:s}}).then((t=>e.table.core.mutate({trans:r,type:"deleteRange",range:s}).then((({failures:e,lastResult:r,results:n,numFailures:s})=>{if(s)throw new J("Could not delete some values",Object.keys(e).map((t=>e[t])),t-s);return t-s}))))})):this.modify(Qt)}}const Qt=(e,t)=>t.value=null;function Xt(e,t){return et?-1:e===t?0:1}function er(e,t,r){var n=e instanceof or?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function tr(e){return new e.Collection(e,(()=>ir(""))).limit(0)}function rr(e,t,r,n,s,i){for(var o=Math.min(e.length,n.length),a=-1,c=0;c=0?e.substr(0,a)+t[a]+r.substr(a+1):null;s(e[c],u)<0&&(a=c)}return o"string"==typeof e)))return er(e,xt);function h(e){s=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),i=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),o="next"===e?Xt:Jt;var t=r.map((function(e){return{lower:i(e),upper:s(e)}})).sort((function(e,t){return o(e.lower,t.lower)}));a=t.map((function(e){return e.upper})),c=t.map((function(e){return e.lower})),u=e,l="next"===e?"":n}h("next");var f=new e.Collection(e,(()=>sr(a[0],c[d-1]+n)));f._ondirectionchange=function(e){h(e)};var p=0;return f._addAlgorithm((function(e,r,n){var s=e.key;if("string"!=typeof s)return!1;var h=i(s);if(t(h,c,p))return!0;for(var f=null,y=p;y0)&&(f=m)}return r(null!==f?function(){e.continue(f+l)}:n),!1})),f}function sr(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function ir(e){return{type:1,lower:e,upper:e}}class or{get Collection(){return this._ctx.table.db.Collection}between(e,t,r,n){r=!1!==r,n=!0===n;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(r||n)&&(!r||!n)?tr(this):new this.Collection(this,(()=>sr(e,t,!r,!n)))}catch(e){return er(this,At)}}equals(e){return null==e?er(this,At):new this.Collection(this,(()=>ir(e)))}above(e){return null==e?er(this,At):new this.Collection(this,(()=>sr(e,void 0,!0)))}aboveOrEqual(e){return null==e?er(this,At):new this.Collection(this,(()=>sr(e,void 0,!1)))}below(e){return null==e?er(this,At):new this.Collection(this,(()=>sr(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?er(this,At):new this.Collection(this,(()=>sr(void 0,e)))}startsWith(e){return"string"!=typeof e?er(this,xt):this.between(e,e+kt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):nr(this,((e,t)=>0===e.indexOf(t[0])),[e],kt)}equalsIgnoreCase(e){return nr(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=z.apply(U,arguments);return 0===e.length?tr(this):nr(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=z.apply(U,arguments);return 0===e.length?tr(this):nr(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,kt)}anyOf(){const e=z.apply(U,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return er(this,At)}if(0===e.length)return tr(this);const r=new this.Collection(this,(()=>sr(e[0],e[e.length-1])));r._ondirectionchange=r=>{t="next"===r?this._ascending:this._descending,e.sort(t)};let n=0;return r._addAlgorithm(((r,s,i)=>{const o=r.key;for(;t(o,e[n])>0;)if(++n,n===e.length)return s(i),!1;return 0===t(o,e[n])||(s((()=>{r.continue(e[n])})),!1)})),r}notEqual(e){return this.inAnyRange([[It,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=z.apply(U,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return er(this,At)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[It,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const r=this._cmp,n=this._ascending,s=this._descending,i=this._min,o=this._max;if(0===e.length)return tr(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&n(e[0],e[1])<=0)))return er(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ne.InvalidArgument);const a=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers;let u,l=n;function d(e,t){return l(e[0],t[0])}try{u=e.reduce((function(e,t){let n=0,s=e.length;for(;n0){s[0]=i(s[0],t[0]),s[1]=o(s[1],t[1]);break}}return n===s&&e.push(t),e}),[]),u.sort(d)}catch(e){return er(this,At)}let h=0;const f=c?e=>n(e,u[h][1])>0:e=>n(e,u[h][1])>=0,p=a?e=>s(e,u[h][0])>0:e=>s(e,u[h][0])>=0;let y=f;const m=new this.Collection(this,(()=>sr(u[0][0],u[u.length-1][1],!a,!c)));return m._ondirectionchange=e=>{"next"===e?(y=f,l=n):(y=p,l=s),u.sort(d)},m._addAlgorithm(((e,t,r)=>{for(var s=e.key;y(s);)if(++h,h===u.length)return t(r),!1;return!!function(e){return!f(e)&&!p(e)}(s)||(0===this._cmp(s,u[h][1])||0===this._cmp(s,u[h][0])||t((()=>{l===n?e.continue(u[h][0]):e.continue(u[h][1])})),!1)})),m}startsWithAnyOf(){const e=z.apply(U,arguments);return e.every((e=>"string"==typeof e))?0===e.length?tr(this):this.inAnyRange(e.map((e=>[e,e+kt]))):er(this,"startsWithAnyOf() only works with strings")}}function ar(e){return Xe((function(t){return cr(t),e(t.target.error),!1}))}function cr(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const ur="storagemutated",lr="x-storagemutated-1",dr=Mt(null,ur);class hr{_lock(){return k(!je.global),++this._reculock,1!==this._reculock||je.global||(je.lockOwnerFor=this),this}_unlock(){if(k(!je.global),0==--this._reculock)for(je.global||(je.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{ft(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&je.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,r=this.db._state.dbOpenError;if(k(!this.idbtrans),!e&&!t)switch(r&&r.name){case"DatabaseClosedError":throw new ne.DatabaseClosed(r);case"MissingAPIError":throw new ne.MissingAPI(r.message,r);default:throw new ne.OpenFailed(r)}if(!this.active)throw new ne.TransactionInactive;return k(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Xe((t=>{cr(t),this._reject(e.error)})),e.onabort=Xe((t=>{cr(t),this.active&&this._reject(new ne.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=Xe((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&dr.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,r){if("readwrite"===e&&"readwrite"!==this.mode)return vt(new ne.ReadOnly("Transaction is readonly"));if(!this.active)return vt(new ne.TransactionInactive);if(this._locked())return new Fe(((n,s)=>{this._blockedFuncs.push([()=>{this._promise(e,t,r).then(n,s)},je])}));if(r)return it((()=>{var e=new Fe(((e,r)=>{this._lock();const n=t(e,r,this);n&&n.then&&n.then(e,r)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var n=new Fe(((e,r)=>{var n=t(e,r,this);n&&n.then&&n.then(e,r)}));return n._lib=!0,n}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const r=Fe.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>r));else{t._waitingFor=r,t._waitingQueue=[];var n=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(n.get(-1/0).onsuccess=e)}()}var s=t._waitingFor;return new Fe(((e,n)=>{r.then((r=>t._waitingQueue.push(Xe(e.bind(null,r)))),(e=>t._waitingQueue.push(Xe(n.bind(null,e))))).finally((()=>{t._waitingFor===s&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ne.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(h(t,e))return t[e];const r=this.schema[e];if(!r)throw new ne.NotFound("Table "+e+" not part of transaction");const n=new this.db.Table(e,r,this);return n.core=this.db.core.table(e),t[e]=n,n}}function fr(e,t,r,n,s,i,o){return{name:e,keyPath:t,unique:r,multi:n,auto:s,compound:i,src:(r&&!o?"&":"")+(n?"*":"")+(s?"++":"")+pr(t)}}function pr(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function yr(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:A(r,(e=>[e.name,e]))}}let mr=e=>{try{return e.only([[]]),mr=()=>[[]],[[]]}catch(e){return mr=()=>kt,kt}};function gr(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>x(t,e)}(e):t=>x(t,e)}function br(e){return[].slice.call(e)}let vr=0;function wr(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function _r(e,t,r){function n(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:r,upper:n,lowerOpen:s,upperOpen:i}=e;return void 0===r?void 0===n?null:t.upperBound(n,!!i):void 0===n?t.lowerBound(r,!!s):t.bound(r,n,!!s,!!i)}const{schema:s,hasGetAll:i}=function(e,t){const r=br(e.objectStoreNames);return{schema:{name:e.name,tables:r.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:r}=e,n=c(t),s=null==t,i={},o={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:s,compound:n,keyPath:t,autoIncrement:r,unique:!0,extractKey:gr(t)},indexes:br(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:r,multiEntry:n,keyPath:s}=e,o={name:t,compound:c(s),keyPath:s,unique:r,multiEntry:n,extractKey:gr(s)};return i[wr(s)]=o,o})),getIndexByKeyPath:e=>i[wr(e)]};return i[":id"]=o.primaryKey,null!=t&&(i[wr(t)]=o.primaryKey),o}))},hasGetAll:r.length>0&&"getAll"in t.objectStore(r[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,r),o=s.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:r,keys:s,values:i,range:o}){return new Promise(((a,c)=>{a=Xe(a);const u=e.objectStore(t),l=null==u.keyPath,d="put"===r||"add"===r;if(!d&&"delete"!==r&&"deleteRange"!==r)throw new Error("Invalid operation type: "+r);const{length:h}=s||i||{length:1};if(s&&i&&s.length!==i.length)throw new Error("Given keys array must have same length as given values array.");if(0===h)return a({numFailures:0,failures:{},results:[],lastResult:void 0});let f;const p=[],y=[];let m=0;const g=e=>{++m,cr(e)};if("deleteRange"===r){if(4===o.type)return a({numFailures:m,failures:y,results:[],lastResult:void 0});3===o.type?p.push(f=u.clear()):p.push(f=u.delete(n(o)))}else{const[e,t]=d?l?[i,s]:[i,null]:[s,null];if(d)for(let n=0;n{const t=e.target.result;p.forEach(((e,t)=>null!=e.error&&(y[t]=e.error))),a({numFailures:m,failures:y,results:"delete"===r?s:p.map((e=>e.result)),lastResult:t})};f.onerror=e=>{g(e),b(e)},f.onsuccess=b}))},getMany:({trans:e,keys:r})=>new Promise(((n,s)=>{n=Xe(n);const i=e.objectStore(t),o=r.length,a=new Array(o);let c,u=0,l=0;const d=e=>{const t=e.target;a[t._pos]=t.result,++l===u&&n(a)},h=ar(s);for(let e=0;enew Promise(((n,s)=>{n=Xe(n);const i=e.objectStore(t).get(r);i.onsuccess=e=>n(e.target.result),i.onerror=ar(s)})),query:function(e){return r=>new Promise(((s,i)=>{s=Xe(s);const{trans:o,values:a,limit:c,query:u}=r,l=c===1/0?void 0:c,{index:d,range:h}=u,f=o.objectStore(t),p=d.isPrimaryKey?f:f.index(d.name),y=n(h);if(0===c)return s({result:[]});if(e){const e=a?p.getAll(y,l):p.getAllKeys(y,l);e.onsuccess=e=>s({result:e.target.result}),e.onerror=ar(i)}else{let e=0;const t=a||!("openKeyCursor"in p)?p.openCursor(y):p.openKeyCursor(y),r=[];t.onsuccess=n=>{const i=t.result;return i?(r.push(a?i.value:i.primaryKey),++e===c?s({result:r}):void i.continue()):s({result:r})},t.onerror=ar(i)}}))}(i),openCursor:function({trans:e,values:r,query:s,reverse:i,unique:o}){return new Promise(((a,c)=>{a=Xe(a);const{index:u,range:l}=s,d=e.objectStore(t),h=u.isPrimaryKey?d:d.index(u.name),f=i?o?"prevunique":"prev":o?"nextunique":"next",p=r||!("openKeyCursor"in h)?h.openCursor(n(l),f):h.openKeyCursor(n(l),f);p.onerror=ar(c),p.onsuccess=Xe((t=>{const r=p.result;if(!r)return void a(null);r.___id=++vr,r.done=!1;const n=r.continue.bind(r);let s=r.continuePrimaryKey;s&&(s=s.bind(r));const i=r.advance.bind(r),o=()=>{throw new Error("Cursor not stopped")};r.trans=e,r.stop=r.continue=r.continuePrimaryKey=r.advance=()=>{throw new Error("Cursor not started")},r.fail=Xe(c),r.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},r.start=e=>{const t=new Promise(((e,t)=>{e=Xe(e),p.onerror=ar(t),r.fail=t,r.stop=t=>{r.stop=r.continue=r.continuePrimaryKey=r.advance=o,e(t)}})),a=()=>{if(p.result)try{e()}catch(e){r.fail(e)}else r.done=!0,r.start=()=>{throw new Error("Cursor behind last entry")},r.stop()};return p.onsuccess=Xe((e=>{p.onsuccess=a,a()})),r.continue=n,r.continuePrimaryKey=s,r.advance=i,a(),t},a(r)}),c)}))},count({query:e,trans:r}){const{index:s,range:i}=e;return new Promise(((e,o)=>{const a=r.objectStore(t),c=s.isPrimaryKey?a:a.index(s.name),u=n(i),l=u?c.count(u):c.count();l.onsuccess=Xe((t=>e(t.target.result))),l.onerror=ar(o)}))}}}(e))),a={};return o.forEach((e=>a[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!a[e])throw new Error(`Table '${e}' not found`);return a[e]},MIN_KEY:-1/0,MAX_KEY:mr(t),schema:s}}function kr({_novip:e},t){const r=t.db,n=function(e,t,{IDBKeyRange:r,indexedDB:n},s){const i=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(_r(t,r,s),e.dbcore);return{dbcore:i}}(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach((t=>{const r=t.name;e.core.schema.tables.some((e=>e.name===r))&&(t.core=e.core.table(r),e[r]instanceof e.Table&&(e[r].core=t.core))}))}function Ir({_novip:e},t,r,n){r.forEach((r=>{const s=n[r];t.forEach((t=>{const n=b(t,r);(!n||"value"in n&&void 0===n.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?y(t,r,{get(){return this.table(r)},set(e){p(this,r,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[r]=new e.Table(r,s))}))}))}function Ar({_novip:e},t){t.forEach((t=>{for(let r in t)t[r]instanceof e.Table&&delete t[r]}))}function xr(e,t){return e._cfg.version-t._cfg.version}function Er(e,t,r,n){const s=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,s);i.create(r),i._completion.catch(n);const o=i._reject.bind(i),c=je.transless||je;it((()=>{je.trans=i,je.transless=c,0===t?(a(s).forEach((e=>{Kr(r,e,s[e].primKey,s[e].indexes)})),kr(e,r),Fe.follow((()=>e.on.populate.fire(i))).catch(o)):function({_novip:e},t,r,n){const s=[],i=e._versions;let o=e._dbSchema=Or(e,e.idbdb,n),c=!1;const u=i.filter((e=>e._cfg.version>=t));return u.forEach((i=>{s.push((()=>{const s=o,u=i._cfg.dbschema;Br(e,s,n),Br(e,u,n),o=e._dbSchema=u;const l=Sr(s,u);l.add.forEach((e=>{Kr(n,e[0],e[1].primKey,e[1].indexes)})),l.change.forEach((e=>{if(e.recreate)throw new ne.Upgrade("Not yet support for changing primary key");{const t=n.objectStore(e.name);e.add.forEach((e=>Pr(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),Pr(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const d=i._cfg.contentUpgrade;if(d&&i._cfg.version>t){kr(e,n),r._memoizedTables={},c=!0;let t=S(u);l.del.forEach((e=>{t[e]=s[e]})),Ar(e,[e.Transaction.prototype]),Ir(e,[e.Transaction.prototype],a(t),t),r.schema=t;const i=N(d);let o;i&&ot();const h=Fe.follow((()=>{if(o=d(r),o&&i){var e=at.bind(null,null);o.then(e,e)}}));return o&&"function"==typeof o.then?Fe.resolve(o):h.then((()=>o))}})),s.push((t=>{c&&Kt||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((r=>null==e[r]&&t.db.deleteObjectStore(r)))}(i._cfg.dbschema,t),Ar(e,[e.Transaction.prototype]),Ir(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),r.schema=e._dbSchema}))})),function e(){return s.length?Fe.resolve(s.shift()(r.idbtrans)).then(e):Fe.resolve()}().then((()=>{var e,t;t=n,a(e=o).forEach((r=>{t.db.objectStoreNames.contains(r)||Kr(t,r,e[r].primKey,e[r].indexes)}))}))}(e,t,i,r).catch(o)}))}function Sr(e,t){const r={del:[],add:[],change:[]};let n;for(n in e)t[n]||r.del.push(n);for(n in t){const s=e[n],i=t[n];if(s){const e={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(s.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||s.primKey.auto!==i.primKey.auto&&!St)e.recreate=!0,r.change.push(e);else{const t=s.idxByName,n=i.idxByName;let o;for(o in t)n[o]||e.del.push(o);for(o in n){const r=t[o],s=n[o];r?r.src!==s.src&&e.change.push(s):e.add.push(s)}(e.del.length>0||e.add.length>0||e.change.length>0)&&r.change.push(e)}}else r.add.push([n,i])}return r}function Kr(e,t,r,n){const s=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach((e=>Pr(s,e))),s}function Pr(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Or(e,t,r){const n={};return w(t.objectStoreNames,0).forEach((e=>{const t=r.objectStore(e);let s=t.keyPath;const i=fr(pr(s),s||"",!1,!1,!!t.autoIncrement,s&&"string"!=typeof s,!0),o=[];for(let r=0;r{if(null!==e[r]){var n=e[r].split(",").map(((e,t)=>{const r=(e=e.trim()).replace(/([&*]|\+\+)/g,""),n=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return fr(r,n||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),c(n),0===t)})),s=n.shift();if(s.multi)throw new ne.Schema("Primary key cannot be multi-valued");n.forEach((e=>{if(e.auto)throw new ne.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new ne.Schema("Index must have a name and cannot be an empty string")})),t[r]=yr(r,s,n)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?u(this._cfg.storesSource,e):e;const r=t._versions,n={};let s={};return r.forEach((e=>{u(n,e._cfg.storesSource),s=e._cfg.dbschema={},e._parseStoresSpec(n,s)})),t._dbSchema=s,Ar(t,[t._allTables,t,t.Transaction.prototype]),Ir(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],a(s),s),t._storeNames=a(s),this}upgrade(e){return this._cfg.contentUpgrade=pe(this._cfg.contentUpgrade||oe,e),this}}function jr(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new en(Bt,{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function Cr(e){return e&&"function"==typeof e.databases}function Tr(e){return it((function(){return je.letThrough=!0,e()}))}function Dr(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var r=function(){return indexedDB.databases().finally(t)};e=setInterval(r,100),r()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function Fr(e){var t=t=>e.next(t),r=s(t),n=s((t=>e.throw(t)));function s(e){return t=>{var s=e(t),i=s.value;return s.done?i:i&&"function"==typeof i.then?i.then(r,n):c(i)?Promise.all(i).then(r,n):r(i)}}return s(t)()}function Mr(e,t,r){var n=arguments.length;if(n<2)throw new ne.InvalidArgument("Too few arguments");for(var s=new Array(n-1);--n;)s[n-1]=arguments[n];return r=s.pop(),[e,P(s),r]}function Ur(e,t,r,n,s){return Fe.resolve().then((()=>{const i=je.transless||je,o=e._createTransaction(t,r,e._dbSchema,n),a={trans:o,transless:i};if(n)o.idbtrans=n.idbtrans;else try{o.create(),e._state.PR1398_maxLoop=3}catch(n){return n.name===te.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Ur(e,t,r,null,s)))):vt(n)}const c=N(s);let u;c&&ot();const l=Fe.follow((()=>{if(u=s.call(o,o),u)if(c){var e=at.bind(null,null);u.then(e,e)}else"function"==typeof u.next&&"function"==typeof u.throw&&(u=Fr(u))}),a);return(u&&"function"==typeof u.then?Fe.resolve(u).then((e=>o.active?e:vt(new ne.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):l.then((()=>u))).then((e=>(n&&o._resolve(),o._completion.then((()=>e))))).catch((e=>(o._reject(e),vt(e))))}))}function zr(e,t,r){const n=c(e)?e.slice():[e];for(let s=0;s0,l={...r,isVirtual:u,keyTail:t,keyLength:c,extractKey:gr(e),unique:!u&&r.unique};return a.push(l),l.isPrimaryKey||i.push(l),c>1&&o(2===c?e[0]:e.slice(0,c-1),t+1,r),a.sort(((e,t)=>e.keyTail-t.keyTail)),l}const a=o(n.primaryKey.keyPath,0,n.primaryKey);s[":id"]=[a];for(const e of n.indexes)o(e.keyPath,0,e);function c(t){const r=t.query.index;return r.isVirtual?{...t,query:{index:r,range:(n=t.query.range,s=r.keyTail,{type:1===n.type?2:n.type,lower:zr(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,s),lowerOpen:!0,upper:zr(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,s),upperOpen:!0})}}:t;var n,s}const u={...r,schema:{...n,primaryKey:a,indexes:i,getIndexByKeyPath:function(e){const t=s[wr(e)];return t&&t[0]}},count:e=>r.count(c(e)),query:e=>r.query(c(e)),openCursor(t){const{keyTail:n,isVirtual:s,keyLength:i}=t.query.index;return s?r.openCursor(c(t)).then((r=>r&&function(r){const s=Object.create(r,{continue:{value:function(s){null!=s?r.continue(zr(s,t.reverse?e.MAX_KEY:e.MIN_KEY,n)):t.unique?r.continue(r.key.slice(0,i).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,n)):r.continue()}},continuePrimaryKey:{value(t,s){r.continuePrimaryKey(zr(t,e.MAX_KEY,n),s)}},primaryKey:{get:()=>r.primaryKey},key:{get(){const e=r.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:()=>r.value}});return s}(r))):r.openCursor(t)}};return u}}}};function qr(e,t,r,n){return r=r||{},n=n||"",a(e).forEach((s=>{if(h(t,s)){var i=e[s],o=t[s];if("object"==typeof i&&"object"==typeof o&&i&&o){const e=D(i);e!==D(o)?r[n+s]=t[s]:"Object"===e?qr(i,o,r,n+s+"."):i!==o&&(r[n+s]=t[s])}else i!==o&&(r[n+s]=t[s])}else r[n+s]=void 0})),a(t).forEach((s=>{h(e,s)||(r[n+s]=t[s])})),r}const Zr={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const r=e.table(t),{primaryKey:n}=r.schema,s={...r,mutate(e){const s=je.trans,{deleting:i,creating:o,updating:a}=s.table(t).hook;switch(e.type){case"add":if(o.fire===oe)break;return s._promise("readwrite",(()=>c(e)),!0);case"put":if(o.fire===oe&&a.fire===oe)break;return s._promise("readwrite",(()=>c(e)),!0);case"delete":if(i.fire===oe)break;return s._promise("readwrite",(()=>c(e)),!0);case"deleteRange":if(i.fire===oe)break;return s._promise("readwrite",(()=>function(e){return u(e.trans,e.range,1e4)}(e)),!0)}return r.mutate(e);function c(e){const t=je.trans,s=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(n,e);if(!s)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:s}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,r){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:r,cache:"immutable"})}(r,e,s).then((c=>{const u=s.map(((r,s)=>{const u=c[s],l={onerror:null,onsuccess:null};if("delete"===e.type)i.fire.call(l,r,u,t);else if("add"===e.type||void 0===u){const i=o.fire.call(l,r,e.values[s],t);null==r&&null!=i&&(r=i,e.keys[s]=r,n.outbound||E(e.values[s],n.keyPath,r))}else{const n=qr(u,e.values[s]),i=a.fire.call(l,n,r,u,t);if(i){const t=e.values[s];Object.keys(i).forEach((e=>{h(t,e)?t[e]=i[e]:E(t,e,i[e])}))}}return l}));return r.mutate(e).then((({failures:t,results:r,numFailures:n,lastResult:i})=>{for(let o=0;o(u.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function u(e,t,s){return r.query({trans:e,values:!1,query:{index:n,range:t},limit:s}).then((({result:r})=>c({type:"delete",keys:r,trans:e}).then((n=>n.numFailures>0?Promise.reject(n.failures[0]):r.length({table:t=>{const r=e.table(t);return{...r,getMany:e=>{if(!e.cache)return r.getMany(e);const t=Lr(e.keys,e.trans._cache,"clone"===e.cache);return t?Fe.resolve(t):r.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?j(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),r.mutate(e))}}})};function Gr(e){return!("from"in e)}const Wr=function(e,t){if(!this){const t=new Wr;return e&&"d"in e&&u(t,e),t}u(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function Vr(e,t,r){const n=Wt(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(Gr(e))return u(e,{from:t,to:r,d:1});const s=e.l,i=e.r;if(Wt(r,e.from)<0)return s?Vr(s,t,r):e.l={from:t,to:r,d:1,l:null,r:null},Qr(e);if(Wt(t,e.to)>0)return i?Vr(i,t,r):e.r={from:t,to:r,d:1,l:null,r:null},Qr(e);Wt(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Wt(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);const o=!e.r;s&&!e.l&&Hr(e,s),i&&o&&Hr(e,i)}function Hr(e,t){Gr(t)||function e(t,{from:r,to:n,l:s,r:i}){Vr(t,r,n),s&&e(t,s),i&&e(t,i)}(e,t)}function Yr(e){let t=Gr(e)?null:{s:0,n:e};return{next(e){const r=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,r)for(;t.n.l&&Wt(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!r||Wt(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Qr(e){var t,r;const n=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(r=e.l)||void 0===r?void 0:r.d)||0),s=n>1?"r":n<-1?"l":"";if(s){const t="r"===s?"l":"r",r={...e},n=e[s];e.from=n.from,e.to=n.to,e[s]=n[s],r[s]=n[t],e[t]=r,r.d=Xr(r)}e.d=Xr(e)}function Xr({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}f(Wr.prototype,{add(e){return Hr(this,e),this},addKey(e){return Vr(this,e,e),this},addKeys(e){return e.forEach((e=>Vr(this,e,e))),this},[F](){return Yr(this)}});const Jr={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,r=new Wr(e.MIN_KEY,e.MAX_KEY);return{...e,table:n=>{const s=e.table(n),{schema:i}=s,{primaryKey:o}=i,{extractKey:u,outbound:l}=o,d={...s,mutate:e=>{const o=e.trans,a=o.mutatedParts||(o.mutatedParts={}),u=e=>{const r=`idb://${t}/${n}/${e}`;return a[r]||(a[r]=new Wr)},l=u(""),d=u(":dels"),{type:h}=e;let[f,p]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const y=e.trans._cache;return s.mutate(e).then((e=>{if(c(f)){"delete"!==h&&(f=e.results),l.addKeys(f);const t=Lr(f,y);t||"add"===h||d.addKeys(f),(t||p)&&function(e,t,r,n){t.indexes.forEach((function(t){const s=e(t.name||"");function i(e){return null!=e?t.extractKey(e):null}const o=e=>t.multiEntry&&c(e)?e.forEach((e=>s.addKey(e))):s.addKey(e);(r||n).forEach(((e,t)=>{const s=r&&i(r[t]),a=n&&i(n[t]);0!==Wt(s,a)&&(null!=s&&o(s),null!=a&&o(a))}))}))}(u,i,t,p)}else if(f){const e={from:f.lower,to:f.upper};d.add(e),l.add(e)}else l.add(r),d.add(r),i.indexes.forEach((e=>u(e.name).add(r)));return e}))}},h=({query:{index:t,range:r}})=>{var n,s;return[t,new Wr(null!==(n=r.lower)&&void 0!==n?n:e.MIN_KEY,null!==(s=r.upper)&&void 0!==s?s:e.MAX_KEY)]},f={get:e=>[o,new Wr(e.key)],getMany:e=>[o,(new Wr).addKeys(e.keys)],count:h,query:h,openCursor:h};return a(f).forEach((e=>{d[e]=function(i){const{subscr:o}=je;if(o){const a=e=>{const r=`idb://${t}/${n}/${e}`;return o[r]||(o[r]=new Wr)},c=a(""),d=a(":dels"),[h,p]=f[e](i);if(a(h.name||"").add(p),!h.isPrimaryKey){if("count"!==e){const t="query"===e&&l&&i.values&&s.query({...i,values:!1});return s[e].apply(this,arguments).then((r=>{if("query"===e){if(l&&i.values)return t.then((({result:e})=>(c.addKeys(e),r)));const e=i.values?r.result.map(u):r.result;i.values?c.addKeys(e):d.addKeys(e)}else if("openCursor"===e){const e=r,t=i.values;return e&&Object.create(e,{key:{get:()=>(d.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return d.addKey(t),t}},value:{get:()=>(t&&c.addKey(e.primaryKey),e.value)}})}return r}))}d.add(r)}}return s[e].apply(this,arguments)}})),d}}}};class en{constructor(e,t){this._middlewares={},this.verno=0;const r=en.dependencies;this._options=t={addons:en.addons,autoOpen:!0,indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:n}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const s={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:oe,dbReadyPromise:null,cancelOpen:oe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var i;s.dbReadyPromise=new Fe((e=>{s.dbReadyResolve=e})),s.openCanceller=new Fe(((e,t)=>{s.cancelOpen=t})),this._state=s,this.name=e,this.on=Mt(this,"populate","blocked","versionchange","close",{ready:[pe,oe]}),this.on.ready.subscribe=_(this.on.ready.subscribe,(e=>(t,r)=>{en.vip((()=>{const n=this._state;if(n.openComplete)n.dbOpenError||Fe.resolve().then(t),r&&e(t);else if(n.onReadyBeingFired)n.onReadyBeingFired.push(t),r&&e(t);else{e(t);const n=this;r||e((function e(){n.on.ready.unsubscribe(t),n.on.ready.unsubscribe(e)}))}}))})),this.Collection=(i=this,Ut(Yt.prototype,(function(e,t){this.db=i;let r=Tt,n=null;if(t)try{r=t()}catch(e){n=e}const s=e._ctx,o=s.table,a=o.hook.reading.fire;this._ctx={table:o,index:s.index,isPrimKey:!s.index||o.schema.primKey.keyPath&&s.index===o.schema.primKey.name,range:r,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:n,or:s.or,valueMapper:a!==ae?a:null}}))),this.Table=function(e){return Ut(Ft.prototype,(function(t,r,n){this.db=e,this._tx=n,this.name=t,this.schema=r,this.hook=e._allTables[t]?e._allTables[t].hook:Mt(null,{creating:[le,oe],reading:[ce,ae],updating:[he,oe],deleting:[de,oe]})}))}(this),this.Transaction=function(e){return Ut(hr.prototype,(function(t,r,n,s,i){this.db=e,this.mode=t,this.storeNames=r,this.schema=n,this.chromeTransactionDurability=s,this.idbtrans=null,this.on=Mt(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Fe(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),vt(e)}))}))}(this),this.Version=function(e){return Ut(Rr.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Ut(or.prototype,(function(t,r,n){this.db=e,this._ctx={table:t,index:":id"===r?null:r,or:n};const s=e._deps.indexedDB;if(!s)throw new ne.MissingAPI;this._cmp=this._ascending=s.cmp.bind(s),this._descending=(e,t)=>s.cmp(t,e),this._max=(e,t)=>s.cmp(e,t)>0?e:t,this._min=(e,t)=>s.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersionnew this.Transaction(e,t,r,this._options.chromeTransactionDurability,n),this._fireOnBlocked=e=>{this.on("blocked").fire(e),Et.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(Nr),this.use(Zr),this.use(Jr),this.use($r),this.vip=Object.create(this,{_vip:{value:!0}}),n.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new ne.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new ne.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var r=t.filter((t=>t._cfg.version===e))[0];return r||(r=new this.Version(e),t.push(r),t.sort(xr),r.stores({}),this._state.autoSchema=!1,r)}_whenReady(e){return this.idbdb&&(this._state.openComplete||je.letThrough||this._vip)?e():new Fe(((e,t)=>{if(this._state.openComplete)return t(new ne.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new ne.DatabaseClosed);this.open().catch(oe)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:r,name:n}){n&&this.unuse({stack:e,name:n});const s=this._middlewares[e]||(this._middlewares[e]=[]);return s.push({stack:e,create:t,level:null==r?10:r,name:n}),s.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:r}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>r?e.create!==r:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:r}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?vt(t.dbOpenError):e));q&&(t.openCanceller._stackHolder=G()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const n=t.openCanceller;function s(){if(t.openCanceller!==n)throw new ne.DatabaseClosed("db.open() was cancelled")}let i=t.dbReadyResolve,o=null,c=!1;return Fe.race([n,("undefined"==typeof navigator?Fe.resolve():Dr()).then((()=>new Fe(((n,i)=>{if(s(),!r)throw new ne.MissingAPI;const u=e.name,l=t.autoSchema?r.open(u):r.open(u,Math.round(10*e.verno));if(!l)throw new ne.MissingAPI;l.onerror=ar(i),l.onblocked=Xe(e._fireOnBlocked),l.onupgradeneeded=Xe((n=>{if(o=l.transaction,t.autoSchema&&!e._options.allowEmptyDB){l.onerror=cr,o.abort(),l.result.close();const e=r.deleteDatabase(u);e.onsuccess=e.onerror=Xe((()=>{i(new ne.NoSuchDatabase(`Database ${u} doesnt exist`))}))}else{o.onerror=ar(i);var s=n.oldVersion>Math.pow(2,62)?0:n.oldVersion;c=s<1,e._novip.idbdb=l.result,Er(e,s/10,o,i)}}),i),l.onsuccess=Xe((()=>{o=null;const r=e._novip.idbdb=l.result,s=w(r.objectStoreNames);if(s.length>0)try{const n=r.transaction(1===(i=s).length?i[0]:i,"readonly");t.autoSchema?function({_novip:e},t,r){e.verno=t.version/10;const n=e._dbSchema=Or(0,t,r);e._storeNames=w(t.objectStoreNames,0),Ir(e,[e._allTables],a(n),n)}(e,r,n):(Br(e,e._dbSchema,n),function(e,t){const r=Sr(Or(0,e.idbdb,t),e._dbSchema);return!(r.add.length||r.change.some((e=>e.add.length||e.change.length)))}(e,n)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),kr(e,n)}catch(e){}var i;Et.push(e),r.onversionchange=Xe((r=>{t.vcFired=!0,e.on("versionchange").fire(r)})),r.onclose=Xe((t=>{e.on("close").fire(t)})),c&&function({indexedDB:e,IDBKeyRange:t},r){!Cr(e)&&r!==Bt&&jr(e,t).put({name:r}).catch(oe)}(e._deps,u),n()}),i)}))))]).then((()=>(s(),t.onReadyBeingFired=[],Fe.resolve(Tr((()=>e.on.ready.fire(e.vip)))).then((function r(){if(t.onReadyBeingFired.length>0){let n=t.onReadyBeingFired.reduce(pe,oe);return t.onReadyBeingFired=[],Fe.resolve(Tr((()=>n(e.vip)))).then(r)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((r=>{t.dbOpenError=r;try{o&&o.abort()}catch(e){}return n===t.openCanceller&&e._close(),vt(r)})).finally((()=>{t.openComplete=!0,i()}))}(this)}_close(){const e=this._state,t=Et.indexOf(this);if(t>=0&&Et.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new Fe((t=>{e.dbReadyResolve=t})),e.openCanceller=new Fe(((t,r)=>{e.cancelOpen=r}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new ne.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new Fe(((r,n)=>{const s=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=Xe((()=>{!function({indexedDB:e,IDBKeyRange:t},r){!Cr(e)&&r!==Bt&&jr(e,t).delete(r).catch(oe)}(this._deps,this.name),r()})),e.onerror=ar(n),e.onblocked=this._fireOnBlocked};if(e)throw new ne.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(s):s()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return a(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=Mr.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,r){let n=je.trans;n&&n.db===this&&-1===e.indexOf("!")||(n=null);const s=-1!==e.indexOf("?");let i,o;e=e.replace("!","").replace("?","");try{if(o=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||e===Rt)i=Rt;else{if("rw"!=e&&e!=jt)throw new ne.InvalidArgument("Invalid transaction mode: "+e);i=jt}if(n){if(n.mode===Rt&&i===jt){if(!s)throw new ne.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");n=null}n&&o.forEach((e=>{if(n&&-1===n.storeNames.indexOf(e)){if(!s)throw new ne.SubTransaction("Table "+e+" not included in parent transaction.");n=null}})),s&&n&&!n.active&&(n=null)}}catch(e){return n?n._promise(null,((t,r)=>{r(e)})):vt(e)}const a=Ur.bind(null,this,i,o,n,r);return n?n._promise(i,a,"lock"):je.trans?ft(je.transless,(()=>this._whenReady(a))):this._whenReady(a)}table(e){if(!h(this._allTables,e))throw new ne.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const tn="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class rn{constructor(e){this._subscribe=e}subscribe(e,t,r){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:r})}[tn](){return this}}function nn(e,t){return a(t).forEach((r=>{Hr(e[r]||(e[r]=new Wr),t[r])})),e}let sn;try{sn={indexedDB:r.indexedDB||r.mozIndexedDB||r.webkitIndexedDB||r.msIndexedDB,IDBKeyRange:r.IDBKeyRange||r.webkitIDBKeyRange}}catch(r){sn={indexedDB:null,IDBKeyRange:null}}const on=en;function an(e){let t=cn;try{cn=!0,dr.storagemutated.fire(e)}finally{cn=t}}f(on,{...ie,delete:e=>new on(e,{addons:[]}).delete(),exists:e=>new on(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return Cr(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>e!==Bt)))):jr(e,t).toCollection().primaryKeys()}(on.dependencies).then(e)}catch(e){return vt(new ne.MissingAPI)}},defineClass:()=>function(e){u(this,e)},ignoreTransaction:e=>je.trans?ft(je.transless,e):e(),vip:Tr,async:function(e){return function(){try{var t=Fr(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Fe.resolve(t)}catch(e){return vt(e)}}},spawn:function(e,t,r){try{var n=Fr(e.apply(r,t||[]));return n&&"function"==typeof n.then?n:Fe.resolve(n)}catch(e){return vt(e)}},currentTransaction:{get:()=>je.trans||null},waitFor:function(e,t){const r=Fe.resolve("function"==typeof e?on.ignoreTransaction(e):e).timeout(t||6e4);return je.trans?je.trans.waitFor(r):r},Promise:Fe,debug:{get:()=>q,set:e=>{Z(e,"dexie"===e?()=>!0:Ot)}},derive:m,extend:u,props:f,override:_,Events:Mt,on:dr,liveQuery:function(e){let t,r=!1;const n=new rn((n=>{const s=N(e);let i=!1,o={},c={};const u={get closed(){return i},unsubscribe:()=>{i=!0,dr.storagemutated.unsubscribe(f)}};n.start&&n.start(u);let l=!1,d=!1;function h(){return a(c).some((e=>o[e]&&function(e,t){const r=Yr(t);let n=r.next();if(n.done)return!1;let s=n.value;const i=Yr(e);let o=i.next(s.from),a=o.value;for(;!n.done&&!o.done;){if(Wt(a.from,s.to)<=0&&Wt(a.to,s.from)>=0)return!0;Wt(s.from,a.from)<0?s=(n=r.next(a.from)).value:a=(o=i.next(s.from)).value}return!1}(o[e],c[e])))}const f=e=>{nn(o,e),h()&&p()},p=()=>{if(l||i)return;o={};const a={},y=function(t){s&&ot();const r=()=>it(e,{subscr:t,trans:null}),n=je.trans?ft(je.transless,r):r();return s&&n.then(at,at),n}(a);d||(dr(ur,f),d=!0),l=!0,Promise.resolve(y).then((e=>{r=!0,t=e,l=!1,i||(h()?p():(o={},c=a,n.next&&n.next(e)))}),(e=>{l=!1,r=!1,n.error&&n.error(e),u.unsubscribe()}))};return p(),u}));return n.hasValue=()=>r,n.getValue=()=>t,n},extendObservabilitySet:nn,getByKeyPath:x,setByKeyPath:E,delByKeyPath:function(e,t){"string"==typeof t?E(e,t,void 0):"length"in t&&[].map.call(t,(function(t){E(e,t,void 0)}))},shallowClone:S,deepClone:j,getObjectDiff:qr,cmp:Wt,asap:I,minKey:It,addons:[],connections:Et,errnames:te,dependencies:sn,semVer:_t,version:_t.split(".").map((e=>parseInt(e))).reduce(((e,t,r)=>e+t/Math.pow(10,2*r)))}),on.maxKey=mr(on.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(dr(ur,(e=>{if(!cn){let t;St?(t=document.createEvent("CustomEvent"),t.initCustomEvent(lr,!0,!0,e)):t=new CustomEvent(lr,{detail:e}),cn=!0,dispatchEvent(t),cn=!1}})),addEventListener(lr,(({detail:e})=>{cn||an(e)})));let cn=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel(lr);"function"==typeof e.unref&&e.unref(),dr(ur,(t=>{cn||e.postMessage(t)})),e.onmessage=e=>{e.data&&an(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){dr(ur,(e=>{try{cn||("undefined"!=typeof localStorage&&localStorage.setItem(lr,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:lr,changedParts:e}))))}catch(e){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(e=>{if(e.key===lr){const t=JSON.parse(e.newValue);t&&an(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&e.type===lr&&an(e.changedParts)}))}Fe.rejectionMapper=function(e,t){if(!e||e instanceof Q||e instanceof TypeError||e instanceof SyntaxError||!e.name||!se[e.name])return e;var r=new se[e.name](t||e.message,e);return"stack"in e&&y(r,"stack",{get:function(){return this.inner.stack}}),r},Z(q,Ot);const un={categories:[{id:1,descr:"Mechanische Gefährdung"},{id:2,descr:"Elektrische Gefährdung"},{id:3,descr:"Gefahrstoffe"},{id:4,descr:"Biologische Arbeitsstoffe"},{id:5,descr:"Brand- und Explosionsgefährdungen"},{id:6,descr:"Thermische Gefährdung"},{id:7,descr:"Gefährdung durch spezielle physikalische Einwirkungen"},{id:8,descr:"Gefährdung duch Arbeitsplatzbedingungen"},{id:9,descr:"Physische Belastung/Arbeitsschwere"},{id:10,descr:"Psychische Faktoren"},{id:11,descr:"Sonstige Gefährdungen"}],factors:[{id:1,categoryId:1,descr:"ungeschütze bewegte Maschinenteile"},{id:2,categoryId:1,descr:"Teile mit gefährlicher Oberfläche"},{id:3,categoryId:1,descr:"bewegte Transportmittel"},{id:4,categoryId:1,descr:"unkontrolliert bewegte Teile"},{id:5,categoryId:1,descr:"Sturz, Ausruthschen, Stolpern, Umknicken"},{id:6,categoryId:1,descr:"Absturz"},{id:7,categoryId:2,descr:"Elektischer Schlag"},{id:8,categoryId:2,descr:"Lichtbögen"},{id:9,categoryId:2,descr:"Elektrostatische Aufladung"},{id:10,categoryId:3,descr:"Gase"},{id:11,categoryId:3,descr:"Dämpfe"},{id:12,categoryId:3,descr:"Aerosole"},{id:13,categoryId:3,descr:"Flüssigkeiten"},{id:14,categoryId:4,descr:"Infektionsgefährdung durch pathogene Mikroorganismen (z.B. Bakterien, Viren, Pilze)"},{id:15,categoryId:4,descr:"sensibilisierende und toxische Wirkungen von Mikroorganismen"},{id:16,categoryId:5,descr:"brennbare Feststoffe, Flüssigkeiten, Gase"},{id:17,categoryId:5,descr:"explosionsfähige Atmosphäre"},{id:18,categoryId:5,descr:"Explosivstoffe"},{id:19,categoryId:6,descr:"heiße Medien/Oberflächen"},{id:20,categoryId:6,descr:"kalte Medien/Oberflächen"},{id:21,categoryId:7,descr:"Lärm"},{id:22,categoryId:7,descr:"Ultrafschall, Infraschall"},{id:23,categoryId:7,descr:"Ganzkörpervibrationen"},{id:24,categoryId:7,descr:"Hand-Arm-Vibrationen"},{id:25,categoryId:7,descr:"optische Strahlung"},{id:26,categoryId:7,descr:"ionisierende Strahlung"},{id:27,categoryId:7,descr:"Elektromagnetische Felder"},{id:28,categoryId:7,descr:"Unterdruck/Überdruck"},{id:29,categoryId:8,descr:"Klima (z.B. Hitze, Kälte, unzureichende Belüftung)"},{id:30,categoryId:8,descr:"Beleuchtung, Licht"},{id:31,categoryId:8,descr:"Ersticken (z.B. durch sauerstoffreduzierte Atmosphäre), Ertrinken"},{id:32,categoryId:8,descr:"Weite Verkehrswege und weit voneinander entfernte Arbeitsplätze"},{id:33,categoryId:8,descr:"Nicht funktionierende Grundrettungsvarianten"},{id:34,categoryId:9,descr:"schwere dynamische Arbeit (z.B. manuelle Handhabung von Lasten)"},{id:35,categoryId:9,descr:"einseitige dynamische Arbeit, Körperbewegungen (z.B. häufig wiederholte Bewegungen)"},{id:36,categoryId:9,descr:"Haltungsarbeit (Zwangshaltung), Haltearbeit"},{id:37,categoryId:9,descr:"Kombination aus statischer und dynamischer Arbeit"},{id:38,categoryId:10,descr:"ungenügen gestaltete Arbeitsaufgabe (z.B. überwiegende Routineaufgaben, Unter-/Überforderung)"},{id:39,categoryId:10,descr:"Ungenügend gestaltete Arbeitsorganisation (z.B. Arbeiten unter hohem Zeitdruck, wechselnde und/oder lange Arbeitszeiten, häufige Nachtarbei, kein durchdachter Arbeitsablauf)"},{id:40,categoryId:10,descr:"Ungenügend gestaltete soziale Bedingungen (z.B. fehlende soziale Kontakte, ungünstiges Führungsverhalten, Konflikte)"},{id:41,categoryId:10,descr:"Ungenügend gestaltete Arbeitsplatz- und Arbeitsumgebungsbedingungen (z.B. unzureichende Wahrnehmung von Signalen und Prozessmerkmalen, Lärm, Klima, räumliche Enge, unzureichende Softwaregestaltung)"},{id:42,categoryId:10,descr:"Neue Arbeitsformen"},{id:43,categoryId:11,descr:"durch Menschen (z.B. Überfall)"},{id:44,categoryId:11,descr:"durch Tiere (z.B. gebissen werden)"},{id:45,categoryId:11,descr:"durch Pflanzen und pflanzliche Produkte (z.B. sensibilisierende und toxische Wirkung)"},{id:46,categoryId:1,descr:"Pendelsturz"},{id:47,categoryId:3,descr:"Sauerstoffkonzentration < 21%"},{id:48,categoryId:3,descr:"Feststoffe"},{id:49,categoryId:9,descr:"Hängetraume als Folge des Handlungsunfähigen Hängens"}],risks:[{id:1,factorId:1,sector:"Z",descr:"Windenbenutzung"},{id:2,factorId:1,sector:"U",descr:"Maschinenwellen"},{id:3,factorId:1,sector:"A",descr:"Flex"},{id:4,factorId:2,sector:"U",descr:"Ecken, Spitzen"},{id:5,factorId:2,sector:"A",descr:"Messerklingen"},{id:6,factorId:3,sector:"U",descr:"Krane & ähnliches"},{id:7,factorId:4,sector:"Z",descr:"Fallende PSA und Ausrüstungsgegenstände"},{id:8,factorId:4,sector:"U",descr:"Fallende Gebäudeteile"},{id:9,factorId:4,sector:"A",descr:"Fallendes Werkzeug/Material"},{id:10,factorId:5,sector:"Z",descr:"Stolpern über Seile"},{id:11,factorId:5,sector:"U",descr:"stark geneigte oder glatte Flächen"},{id:12,factorId:5,sector:"A",descr:"Kabel, Material"},{id:13,factorId:6,sector:"Z",descr:"versagende PSA"},{id:14,factorId:6,sector:"Z",descr:"Seile trennen durch Kanten"},{id:15,factorId:6,sector:"Z",descr:"Seile trennen durch Maschinen"},{id:16,factorId:6,sector:"A",descr:"Seile durchtrennen"},{id:17,factorId:46,sector:"Z",descr:"Arbeitsplätze nicht lotgerecht unter Anschlagpunkt"},{id:18,factorId:7,sector:"U",descr:"Elektrische Installation"},{id:19,factorId:7,sector:"A",descr:"Elektrische Werkzeuge"},{id:20,factorId:8,sector:"U",descr:"Lichtbögen bei WEA"},{id:21,factorId:9,sector:"Z",descr:"Helikoptermontagen"},{id:22,factorId:10,sector:"U",descr:"Behälter ungelüftet"},{id:23,factorId:10,sector:"A",descr:"Im Behälter schweißen"},{id:24,factorId:11,sector:"U",descr:"Behälter ungelüftet"},{id:25,factorId:11,sector:"A",descr:"flüchtige Lösungsmittel"},{id:26,factorId:12,sector:"U",descr:"Stäube"},{id:27,factorId:12,sector:"A",descr:"Sprühverfahren"},{id:28,factorId:13,sector:"U",descr:"Chemische Behälter"},{id:29,factorId:13,sector:"A",descr:"scharfe Reiniger"},{id:30,factorId:48,sector:"U",descr:"Chemie Behälter"},{id:31,factorId:48,sector:"A",descr:"scharfe Reiniger"},{id:32,factorId:47,sector:"U",descr:"Behälter ungelüftet"},{id:33,factorId:14,sector:"U",descr:"Schimmel"},{id:34,factorId:12,sector:"A",descr:"Schleifstäube"},{id:35,factorId:14,sector:"U",descr:"Abfälle"},{id:36,factorId:14,sector:"U",descr:"Taubenkot"},{id:37,factorId:14,sector:"A",descr:"Taubenkot entfernen"},{id:38,factorId:15,sector:"U",descr:"Schimmel"},{id:39,factorId:15,sector:"U",descr:"Abfälle"},{id:40,factorId:15,sector:"U",descr:"Taubenkot"},{id:41,factorId:15,sector:"A",descr:"Taubenkot entfernen"},{id:42,factorId:16,sector:"U",descr:"Holzstrukturen"},{id:43,factorId:16,sector:"U",descr:"Chemie"},{id:44,factorId:16,sector:"A",descr:"Treibstoff"},{id:45,factorId:16,sector:"A",descr:"Lösungsmittel"},{id:46,factorId:17,sector:"Z",descr:"Funkenbildung Alukarabiner"},{id:47,factorId:17,sector:"U",descr:"Ex-Bereiche"},{id:48,factorId:17,sector:"A",descr:"Chemie"},{id:49,factorId:17,sector:"A",descr:"dichter Staub"},{id:50,factorId:19,sector:"Z",descr:"Abseilgeräte"},{id:51,factorId:19,sector:"U",descr:"Heißdampf"},{id:52,factorId:19,sector:"U",descr:"Rohrleitung"},{id:53,factorId:19,sector:"A",descr:"offene Flamme"},{id:54,factorId:20,sector:"Z",descr:"vereiste Seile"},{id:55,factorId:20,sector:"U",descr:"vereiste Verkehrswege"},{id:56,factorId:20,sector:"A",descr:"Flüssigstickstoff"},{id:57,factorId:21,sector:"Z",descr:"Benzinwinde"},{id:58,factorId:21,sector:"U",descr:"Kirchenglocken"},{id:59,factorId:21,sector:"A",descr:"laute Werkzeuge"},{id:60,factorId:22,sector:"U",descr:"technische Anlagen"},{id:61,factorId:22,sector:"A",descr:"Messgeräte"},{id:62,factorId:24,sector:"A",descr:"handgehaltene Maschinen"},{id:63,factorId:25,sector:"U",descr:"Sonne"},{id:64,factorId:25,sector:"A",descr:"Schweißen"},{id:65,factorId:26,sector:"U",descr:"Radioaktive Bereiche"},{id:66,factorId:26,sector:"A",descr:"Materialprüfung mit Röntgen"},{id:67,factorId:27,sector:"U",descr:"Sendeantennen"},{id:68,factorId:27,sector:"A",descr:"Magnetprüfung"},{id:69,factorId:28,sector:"U",descr:"> 2500m"},{id:70,factorId:28,sector:"A",descr:"> 2500m"},{id:71,factorId:29,sector:"U",descr:"gefahrbringendes Wetter"},{id:72,factorId:30,sector:"U",descr:"Nachtarbeit"},{id:73,factorId:30,sector:"U",descr:"Behälter"},{id:74,factorId:31,sector:"U",descr:"Arbeitsplatz über Klärbecken"},{id:75,factorId:31,sector:"U",descr:"Arbeitsplatz über Gewässer"},{id:76,factorId:31,sector:"Z",descr:"Arbeitsplatz über Klärbecken"},{id:77,factorId:31,sector:"Z",descr:"Arbeitsplatz über Gewässer"},{id:78,factorId:31,sector:"A",descr:"Arbeiten über Gewässer"},{id:79,factorId:31,sector:"A",descr:"Arbeiten über Behältern mit Mehl"},{id:80,factorId:32,sector:"Z",descr:"ungenügende Kommunikation"},{id:81,factorId:32,sector:"Z",descr:"fehlende Sicht"},{id:82,factorId:33,sector:"Z",descr:"sehr komplexe Zugangstechniken"},{id:83,factorId:33,sector:"Z",descr:"Engstellen"},{id:84,factorId:33,sector:"Z",descr:"beengte Räume"},{id:85,factorId:33,sector:"Z",descr:"stark exponierte Räume"},{id:86,factorId:34,sector:"Z",descr:"große Aufstiege"},{id:87,factorId:34,sector:"A",descr:"Stemmarbeiten"},{id:88,factorId:34,sector:"A",descr:"Materialtransport"},{id:89,factorId:35,sector:"A",descr:"Betätigen einer Schere"},{id:90,factorId:36,sector:"Z",descr:"Zwangshaltungen"},{id:91,factorId:36,sector:"U",descr:"Beengte Räume"},{id:92,factorId:36,sector:"A",descr:"Horizontale Glasreinigung"},{id:93,factorId:36,sector:"A",descr:"Arbeiten über Kopf"},{id:94,factorId:37,sector:"A",descr:"Im Seil hängend Lasten heben"},{id:95,factorId:49,sector:"Z",descr:"fehlendes Sitzbrett"},{id:96,factorId:49,sector:"Z",descr:"fehlende Beinbelastung"},{id:97,factorId:38,sector:"Z",descr:"nicht ausreichende Erfahrung"},{id:98,factorId:38,sector:"U",descr:"zu komplex"},{id:99,factorId:38,sector:"U",descr:"zu hoch"},{id:100,factorId:38,sector:"A",descr:"zu komplex"},{id:101,factorId:39,sector:"Z",descr:"nicht geregelte Kompetenzen"},{id:102,factorId:39,sector:"U",descr:"Koordination Gewerke"},{id:103,factorId:39,sector:"A",descr:"Regelarbeitszeit"},{id:104,factorId:39,sector:"A",descr:"Pausen"},{id:105,factorId:40,sector:"Z",descr:"Teamführung"},{id:106,factorId:40,sector:"Z",descr:"Verhältnis Level 3/Team"},{id:107,factorId:40,sector:"U",descr:"Kommunikation Gewerke"},{id:108,factorId:40,sector:"A",descr:"isolierte Arbeit"},{id:109,factorId:41,sector:"Z",descr:"fehlende Getränke"},{id:110,factorId:43,sector:"Z",descr:"Fähigkeiten Teamkollege"},{id:111,factorId:43,sector:"U",descr:"Drittgewerke"},{id:112,factorId:43,sector:"U",descr:"Anwohner"},{id:113,factorId:44,sector:"U",descr:"Wespennest"},{id:114,factorId:44,sector:"U",descr:"Allergien"},{id:115,factorId:44,sector:"A",descr:"Nest entfernen"},{id:116,factorId:45,sector:"U",descr:"Soja Silo"},{id:117,factorId:45,sector:"U",descr:"Allergie"},{id:118,factorId:45,sector:"A",descr:"Stemmarbeiten Soja"}]},ln=[{id:1,solveRisks:[13],causeRisks:[],descr:"Nur zertifizierte und geprüfte PSA verwenden"},{id:2,solveRisks:[6],causeRisks:[],descr:"Deaktivieren + Arretieren, gegen Wiedereinschalten sichern"},{id:3,solveRisks:[4],causeRisks:[],descr:"Handschuhe benutzen"},{id:4,solveRisks:[7],causeRisks:[],descr:"gegen Herabfallen sichern"},{id:5,solveRisks:[10,12],causeRisks:[],descr:"Umsichtig bewegen"},{id:6,solveRisks:[12],causeRisks:[],descr:"Verkehrswege freihalten"},{id:7,solveRisks:[14],causeRisks:[],descr:"Seil-/Kantenschutz nutzen"},{id:8,solveRisks:[14],causeRisks:[],descr:"Kanten mit Stahlseilen überbrücken"},{id:9,solveRisks:[17],causeRisks:[],descr:"Anschlagpunkte mit geringem Abstand zu einander nutzen"},{id:10,solveRisks:[17],causeRisks:[],descr:"Jede Seilstrecke redundant aufbauen"}],dn=[{id:1,descr:"Grundausrüstung PSAgA gemäß DGUV 112-198",tags:["psa"],causeRisks:[]},{id:2,descr:"Grundausrüstung SZP gemäß FISAT FSR-SZP und TRBS 2121-3",tags:["szp"],causeRisks:[]},{id:3,descr:"Winkelschleifer",tags:["werkzeug"],causeRisks:[3]},{descr:"Halbstatische Seile nach EN 1891 Typ A in ausreichender Länge",id:4,tags:["szp"],causeRisks:[]},{descr:"Anschlagmittel nach EN 795 (Schlingen, Trägerklemmen, etc.)",id:5,tags:["szp"],causeRisks:[]}],hn=[{id:1,name:"Supervisor Dummy",fisat:{id:"27319",level:3}},{id:2,name:"Fisat Dummy",fisat:{id:"12345",level:1}},{id:3,name:"Dummy"}];n(new class{constructor(){e(this,"categories",void 0),e(this,"risksById",void 0),this.categories=[],this.risksById={}}clear(){this.categories.forEach((e=>{var t;null===(t=e.factors)||void 0===t||t.forEach((e=>{e.risks&&(e.risks.length=0)}))}));for(const e in this.risksById)delete this.risksById[e]}});class fn{constructor(t,r,n,s){e(this,"id",void 0),e(this,"factorId",void 0),e(this,"sector",void 0),e(this,"descr",void 0),e(this,"factor",void 0),this.descr=t,this.sector=r,this.factorId=n,void 0!==s&&(this.id=s)}setup(e,t){if(void 0!==this.factor)return this;if(this.factor=e(this.factorId),void 0===this.factor)throw Error(`There is no factor with ID ${this.factorId} in the live tables. Maybe call setupLiveTable() first?`);return this.factor.setup(t),this.factor.risks?this.factor.risks.push(this):console.warn("AAAARGH"),this}}t("R",fn);class pn{constructor(){e(this,"id",void 0),e(this,"categoryId",void 0),e(this,"descr",void 0),e(this,"category",void 0),e(this,"risks",void 0)}setup(e){if(void 0===this.risks){if(this.risks=n([]),this.category=e(this.categoryId),void 0===this.category)throw Error("setupLiveTable() need to be called before setting up factor object. Or category does not exit in database.");this.category.setup(),this.category.factors&&this.category.factors.push(this)}}}class yn{constructor(){e(this,"id",void 0),e(this,"descr",void 0),e(this,"factors",void 0)}setup(){void 0===this.factors&&(this.factors=n([]))}}t("d",new class extends en{constructor(){super("risk-assessment"),e(this,"equipment",void 0),e(this,"technicians",void 0),e(this,"risks",void 0),e(this,"factors",void 0),e(this,"categories",void 0),e(this,"measures",void 0),e(this,"riskassessments",void 0),e(this,"riskassessmentsmeta",void 0),this.version(1).stores({equipment:"++id, descr, *causeRisks",technicians:"++id, name",risks:"++id, factorId, sector, descr",factors:"++id, categoryId, descr",categories:"++id, descr",measures:"++id, descr, *solveRisks, *causeRisks",riskassessments:"++id, descr, company, adress, startDate, endDate, address, jobDescr, *equipment, *technicians, *supervisors, *access, *risks, measures, meta",riskassessmentsmeta:"&id, descr, created, lastChange"}),this.on("populate",(e=>function(e){e.table("risks").bulkAdd(un.risks),e.table("factors").bulkAdd(un.factors),e.table("categories").bulkAdd(un.categories),e.table("measures").bulkAdd(ln),e.table("technicians").bulkAdd(hn),e.table("equipment").bulkAdd(dn)}(e))),this.on("ready",(()=>{this.risks.mapToClass(fn),this.factors.mapToClass(pn),this.categories.mapToClass(yn)}))}});var mn=t("S",(e=>(e.Access="Z",e.Environment="U",e.Work="A",e))(mn||{}));function gn(e,t){for(let r in t)if("object"==typeof t[r])if(Array.isArray(t[r]))e[r]=[...t[r]];else{if(void 0===e[r]&&(e[r]={}),"object"!=typeof e[r])throw Error("can't merge incompatible objects");gn(e[r],t[r])}else e[r]=t[r]}}}}))}(); diff --git a/ra/assets/index-DYrAM6VV.js b/ra/assets/index-DYrAM6VV.js new file mode 100644 index 0000000..bb07247 --- /dev/null +++ b/ra/assets/index-DYrAM6VV.js @@ -0,0 +1,197 @@ +function z5(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function i(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(o){if(o.ep)return;o.ep=!0;const r=i(o);fetch(o.href,r)}})();function Wa(e,t){const i=Object.create(null),n=e.split(",");for(let o=0;o!!i[o.toLowerCase()]:o=>!!i[o]}const $t={},Vi=[],Pe=()=>{},Tp=()=>!1,Jo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qa=e=>e.startsWith("onUpdate:"),Kt=Object.assign,Ya=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},Op=Object.prototype.hasOwnProperty,bt=(e,t)=>Op.call(e,t),st=Array.isArray,Wi=e=>tr(e)==="[object Map]",Kc=e=>tr(e)==="[object Set]",ct=e=>typeof e=="function",jt=e=>typeof e=="string",mn=e=>typeof e=="symbol",Pt=e=>e!==null&&typeof e=="object",Zc=e=>(Pt(e)||ct(e))&&ct(e.then)&&ct(e.catch),Qc=Object.prototype.toString,tr=e=>Qc.call(e),$p=e=>tr(e).slice(8,-1),Jc=e=>tr(e)==="[object Object]",Na=e=>jt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zo=Wa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),er=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},Lp=/-(\w)/g,Me=er(e=>e.replace(Lp,(t,i)=>i?i.toUpperCase():"")),Dp=/\B([A-Z])/g,fn=er(e=>e.replace(Dp,"-$1").toLowerCase()),ir=er(e=>e.charAt(0).toUpperCase()+e.slice(1)),_r=er(e=>e?"on".concat(ir(e)):""),Ci=(e,t)=>!Object.is(e,t),Tr=(e,t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})},Pp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mp=e=>{const t=jt(e)?Number(e):NaN;return isNaN(t)?e:t};let Gs;const ea=()=>Gs||(Gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ua(e){if(st(e)){const t={};for(let i=0;i{if(i){const n=i.split(Rp);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function nr(e){let t="";if(jt(e))t=e;else if(st(e))for(let i=0;ijt(e)?e:e==null?"":st(e)||Pt(e)&&(e.toString===Qc||!ct(e.toString))?JSON.stringify(e,ed,2):String(e),ed=(e,t)=>t&&t.__v_isRef?ed(e,t.value):Wi(t)?{["Map(".concat(t.size,")")]:[...t.entries()].reduce((i,[n,o],r)=>(i[Or(n,r)+" =>"]=o,i),{})}:Kc(t)?{["Set(".concat(t.size,")")]:[...t.values()].map(i=>Or(i))}:mn(t)?Or(t):Pt(t)&&!st(t)&&!Jc(t)?String(t):t,Or=(e,t="")=>{var i;return mn(e)?"Symbol(".concat((i=e.description)!=null?i:t,")"):e};let ke;class qp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ke,!t&&ke&&(this.index=(ke.scopes||(ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=ke;try{return ke=this,t()}finally{ke=i}}}on(){ke=this}off(){ke=this.parent}stop(t){if(this._active){let i,n;for(i=0,n=this.effects.length;i{const t=new Set(e);return t.w=0,t.n=0,t},id=e=>(e.w&li)>0,nd=e=>(e.n&li)>0,Up=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let i=0;for(let n=0;n{(d==="length"||!mn(d)&&d>=l)&&s.push(c)})}else switch(i!==void 0&&s.push(a.get(i)),t){case"add":st(e)?Na(i)&&s.push(a.get("length")):(s.push(a.get(yi)),Wi(e)&&s.push(a.get(oa)));break;case"delete":st(e)||(s.push(a.get(yi)),Wi(e)&&s.push(a.get(oa)));break;case"set":Wi(e)&&s.push(a.get(yi));break}if(s.length===1)s[0]&&ra(s[0]);else{const l=[];for(const c of s)c&&l.push(...c);ra(Ga(l))}}function ra(e,t){const i=st(e)?e:[...e];for(const n of i)n.computed&&Ks(n);for(const n of i)n.computed||Ks(n)}function Ks(e,t){(e!==Se||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Xp=Wa("__proto__,__v_isRef,__isVue"),ad=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mn)),Zs=Kp();function Kp(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const n=yt(this);for(let r=0,a=this.length;r{e[t]=function(...i){gn();const n=yt(this)[t].apply(this,i);return bn(),n}}),e}function Zp(e){const t=yt(this);return oe(t,"has",e),t.hasOwnProperty(e)}class sd{constructor(t=!1,i=!1){this._isReadonly=t,this._shallow=i}get(t,i,n){const o=this._isReadonly,r=this._shallow;if(i==="__v_isReactive")return!o;if(i==="__v_isReadonly")return o;if(i==="__v_isShallow")return r;if(i==="__v_raw")return n===(o?r?dm:hd:r?dd:cd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=st(t);if(!o){if(a&&bt(Zs,i))return Reflect.get(Zs,i,n);if(i==="hasOwnProperty")return Zp}const s=Reflect.get(t,i,n);return(mn(i)?ad.has(i):Xp(i))||(o||oe(t,"get",i),r)?s:re(s)?a&&Na(i)?s:s.value:Pt(s)?o?pd(s):rr(s):s}}class ld extends sd{constructor(t=!1){super(!1,t)}set(t,i,n,o){let r=t[i];if(!this._shallow){const l=tn(r);if(!Do(n)&&!tn(n)&&(r=yt(r),n=yt(n)),!st(t)&&re(r)&&!re(n))return l?!1:(r.value=n,!0)}const a=st(t)&&Na(i)?Number(i)e,or=e=>Reflect.getPrototypeOf(e);function uo(e,t,i=!1,n=!1){e=e.__v_raw;const o=yt(e),r=yt(t);i||(Ci(t,r)&&oe(o,"get",t),oe(o,"get",r));const{has:a}=or(o),s=n?Ka:i?Ja:Ln;if(a.call(o,t))return s(e.get(t));if(a.call(o,r))return s(e.get(r));e!==o&&e.get(t)}function po(e,t=!1){const i=this.__v_raw,n=yt(i),o=yt(e);return t||(Ci(e,o)&&oe(n,"has",e),oe(n,"has",o)),e===o?i.has(e):i.has(e)||i.has(o)}function mo(e,t=!1){return e=e.__v_raw,!t&&oe(yt(e),"iterate",yi),Reflect.get(e,"size",e)}function Qs(e){e=yt(e);const t=yt(this);return or(t).has.call(t,e)||(t.add(e),Ue(t,"add",e,e)),this}function Js(e,t){t=yt(t);const i=yt(this),{has:n,get:o}=or(i);let r=n.call(i,e);r||(e=yt(e),r=n.call(i,e));const a=o.call(i,e);return i.set(e,t),r?Ci(t,a)&&Ue(i,"set",e,t):Ue(i,"add",e,t),this}function tl(e){const t=yt(this),{has:i,get:n}=or(t);let o=i.call(t,e);o||(e=yt(e),o=i.call(t,e)),n&&n.call(t,e);const r=t.delete(e);return o&&Ue(t,"delete",e,void 0),r}function el(){const e=yt(this),t=e.size!==0,i=e.clear();return t&&Ue(e,"clear",void 0,void 0),i}function fo(e,t){return function(n,o){const r=this,a=r.__v_raw,s=yt(a),l=t?Ka:e?Ja:Ln;return!e&&oe(s,"iterate",yi),a.forEach((c,d)=>n.call(o,l(c),l(d),r))}}function go(e,t,i){return function(...n){const o=this.__v_raw,r=yt(o),a=Wi(r),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=o[e](...n),d=i?Ka:t?Ja:Ln;return!t&&oe(r,"iterate",l?oa:yi),{next(){const{value:h,done:u}=c.next();return u?{value:h,done:u}:{value:s?[d(h[0]),d(h[1])]:d(h),done:u}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function im(){const e={get(r){return uo(this,r)},get size(){return mo(this)},has:po,add:Qs,set:Js,delete:tl,clear:el,forEach:fo(!1,!1)},t={get(r){return uo(this,r,!1,!0)},get size(){return mo(this)},has:po,add:Qs,set:Js,delete:tl,clear:el,forEach:fo(!1,!0)},i={get(r){return uo(this,r,!0)},get size(){return mo(this,!0)},has(r){return po.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:fo(!0,!1)},n={get(r){return uo(this,r,!0,!0)},get size(){return mo(this,!0)},has(r){return po.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:fo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=go(r,!1,!1),i[r]=go(r,!0,!1),t[r]=go(r,!1,!0),n[r]=go(r,!0,!0)}),[e,i,t,n]}const[nm,om,rm,am]=im();function Za(e,t){const i=t?e?am:rm:e?om:nm;return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(bt(i,o)&&o in n?i:n,o,r)}const sm={get:Za(!1,!1)},lm={get:Za(!1,!0)},cm={get:Za(!0,!1)},cd=new WeakMap,dd=new WeakMap,hd=new WeakMap,dm=new WeakMap;function hm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function um(e){return e.__v_skip||!Object.isExtensible(e)?0:hm($p(e))}function rr(e){return tn(e)?e:Qa(e,!1,Jp,sm,cd)}function ud(e){return Qa(e,!1,em,lm,dd)}function pd(e){return Qa(e,!0,tm,cm,hd)}function Qa(e,t,i,n,o){if(!Pt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const a=um(e);if(a===0)return e;const s=new Proxy(e,a===2?n:i);return o.set(e,s),s}function qi(e){return tn(e)?qi(e.__v_raw):!!(e&&e.__v_isReactive)}function tn(e){return!!(e&&e.__v_isReadonly)}function Do(e){return!!(e&&e.__v_isShallow)}function md(e){return qi(e)||tn(e)}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}function fd(e){return Lo(e,"__v_skip",!0),e}const Ln=e=>Pt(e)?rr(e):e,Ja=e=>Pt(e)?pd(e):e;function gd(e){ai&&Se&&(e=yt(e),rd(e.dep||(e.dep=Ga())))}function bd(e,t){e=yt(e);const i=e.dep;i&&ra(i)}function re(e){return!!(e&&e.__v_isRef===!0)}function Yi(e){return xd(e,!1)}function Kn(e){return xd(e,!0)}function xd(e,t){return re(e)?e:new pm(e,t)}class pm{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:yt(t),this._value=i?t:Ln(t)}get value(){return gd(this),this._value}set value(t){const i=this.__v_isShallow||Do(t)||tn(t);t=i?t:yt(t),Ci(t,this._rawValue)&&(this._rawValue=t,this._value=i?t:Ln(t),bd(this))}}function Vt(e){return re(e)?e.value:e}const mm={get:(e,t,i)=>Vt(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const o=e[t];return re(o)&&!re(i)?(o.value=i,!0):Reflect.set(e,t,i,n)}};function vd(e){return qi(e)?e:new Proxy(e,mm)}class fm{constructor(t,i,n,o){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Xa(t,()=>{this._dirty||(this._dirty=!0,bd(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=yt(this);return gd(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function gm(e,t,i=!1){let n,o;const r=ct(e);return r?(n=e,o=Pe):(n=e.get,o=e.set),new fm(n,o,r||!o,i)}function si(e,t,i,n){let o;try{o=n?e(...n):e()}catch(r){Zn(r,t,i)}return o}function Ae(e,t,i,n){if(ct(e)){const r=si(e,t,i,n);return r&&Zc(r)&&r.catch(a=>{Zn(a,t,i)}),r}const o=[];for(let r=0;r>>1,o=Zt[n],r=Pn(o);rOe&&Zt.splice(t,1)}function sa(e){st(e)?Ni.push(...e):(!qe||!qe.includes(e,e.allowRecurse?mi+1:mi))&&Ni.push(e),kd()}function il(e,t,i=Dn?Oe+1:0){for(;iPn(i)-Pn(n)),mi=0;mie.id==null?1/0:e.id,wm=(e,t)=>{const i=Pn(e)-Pn(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function Ed(e){aa=!1,Dn=!0,Zt.sort(wm);try{for(Oe=0;Oejt(m)?m.trim():m)),h&&(o=i.map(Pp))}let s,l=n[s=_r(t)]||n[s=_r(Me(t))];!l&&r&&(l=n[s=_r(fn(t))]),l&&Ae(l,e,6,o);const c=n[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ae(c,e,6,o)}}function Sd(e,t,i=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let a={},s=!1;if(!ct(e)){const l=c=>{const d=Sd(c,t,!0);d&&(s=!0,Kt(a,d))};!i&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!s?(Pt(e)&&n.set(e,null),null):(st(r)?r.forEach(l=>a[l]=null):Kt(a,r),Pt(e)&&n.set(e,a),a)}function ar(e,t){return!e||!Jo(t)?!1:(t=t.slice(2).replace(/Once$/,""),bt(e,t[0].toLowerCase()+t.slice(1))||bt(e,fn(t))||bt(e,t))}let Gt=null,sr=null;function Po(e){const t=Gt;return Gt=e,sr=e&&e.type.__scopeId||null,t}function _5(e){sr=e}function T5(){sr=null}function Ce(e,t=Gt,i){if(!t||e._n)return e;const n=(...o)=>{n._d&&fl(-1);const r=Po(t);let a;try{a=e(...o)}finally{Po(r),n._d&&fl(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function $r(e){const{type:t,vnode:i,proxy:n,withProxy:o,props:r,propsOptions:[a],slots:s,attrs:l,emit:c,render:d,renderCache:h,data:u,setupState:m,ctx:g,inheritAttrs:f}=e;let k,x;const C=Po(e);try{if(i.shapeFlag&4){const v=o||n,S=v;k=Ee(d.call(S,v,h,r,m,u,g)),x=l}else{const v=t;k=Ee(v.length>1?v(r,{attrs:l,slots:s,emit:c}):v(r,null)),x=t.props?l:Cm(l)}}catch(v){_n.length=0,Zn(v,e,1),k=Tt(Be)}let I=k;if(x&&f!==!1){const v=Object.keys(x),{shapeFlag:S}=I;v.length&&S&7&&(a&&v.some(qa)&&(x=Em(x,a)),I=on(I,x))}return i.dirs&&(I=on(I),I.dirs=I.dirs?I.dirs.concat(i.dirs):i.dirs),i.transition&&(I.transition=i.transition),k=I,Po(C),k}function km(e){let t;for(let i=0;i{let t;for(const i in e)(i==="class"||i==="style"||Jo(i))&&((t||(t={}))[i]=e[i]);return t},Em=(e,t)=>{const i={};for(const n in e)(!qa(n)||!(n.slice(9)in t))&&(i[n]=e[n]);return i};function Sm(e,t,i){const{props:n,children:o,component:r}=e,{props:a,children:s,patchFlag:l}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return n?nl(n,a,c):!!a;if(l&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense,_m={name:"Suspense",__isSuspense:!0,process(e,t,i,n,o,r,a,s,l,c){e==null?Tm(t,i,n,o,r,a,s,l,c):Om(e,t,i,n,o,a,s,l,c)},hydrate:$m,create:ns,normalize:Lm},$5=_m;function Mn(e,t){const i=e.props&&e.props[t];ct(i)&&i()}function Tm(e,t,i,n,o,r,a,s,l){const{p:c,o:{createElement:d}}=l,h=d("div"),u=e.suspense=ns(e,o,n,t,h,i,r,a,s,l);c(null,u.pendingBranch=e.ssContent,h,null,n,u,r,a),u.deps>0?(Mn(e,"onPending"),Mn(e,"onFallback"),c(null,e.ssFallback,t,i,n,null,r,a),Ui(u,e.ssFallback)):u.resolve(!1,!0)}function Om(e,t,i,n,o,r,a,s,{p:l,um:c,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const u=t.ssContent,m=t.ssFallback,{activeBranch:g,pendingBranch:f,isInFallback:k,isHydrating:x}=h;if(f)h.pendingBranch=u,oi(u,f)?(l(f,u,h.hiddenContainer,null,o,h,r,a,s),h.deps<=0?h.resolve():k&&(l(g,m,i,n,o,null,r,a,s),Ui(h,m))):(h.pendingId++,x?(h.isHydrating=!1,h.activeBranch=f):c(f,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),k?(l(null,u,h.hiddenContainer,null,o,h,r,a,s),h.deps<=0?h.resolve():(l(g,m,i,n,o,null,r,a,s),Ui(h,m))):g&&oi(u,g)?(l(g,u,i,n,o,h,r,a,s),h.resolve(!0)):(l(null,u,h.hiddenContainer,null,o,h,r,a,s),h.deps<=0&&h.resolve()));else if(g&&oi(u,g))l(g,u,i,n,o,h,r,a,s),Ui(h,u);else if(Mn(t,"onPending"),h.pendingBranch=u,h.pendingId++,l(null,u,h.hiddenContainer,null,o,h,r,a,s),h.deps<=0)h.resolve();else{const{timeout:C,pendingId:I}=h;C>0?setTimeout(()=>{h.pendingId===I&&h.fallback(m)},C):C===0&&h.fallback(m)}}function ns(e,t,i,n,o,r,a,s,l,c,d=!1){const{p:h,m:u,um:m,n:g,o:{parentNode:f,remove:k}}=c;let x;const C=Pm(e);C&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const I=e.props?Mp(e.props.timeout):void 0,v={vnode:e,parent:t,parentComponent:i,isSVG:a,container:n,hiddenContainer:o,anchor:r,deps:0,pendingId:0,timeout:typeof I=="number"?I:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(S=!1,E=!1){const{vnode:y,activeBranch:A,pendingBranch:$,pendingId:M,effects:T,parentComponent:U,container:j}=v;let ht=!1;if(v.isHydrating)v.isHydrating=!1;else if(!S){ht=A&&$.transition&&$.transition.mode==="out-in",ht&&(A.transition.afterLeave=()=>{M===v.pendingId&&(u($,j,g(A),0),sa(T))});let{anchor:X}=v;A&&(X=g(A),m(A,U,v,!0)),ht||u($,j,X,0)}Ui(v,$),v.pendingBranch=null,v.isInFallback=!1;let at=v.parent,rt=!1;for(;at;){if(at.pendingBranch){at.effects.push(...T),rt=!0;break}at=at.parent}!rt&&!ht&&sa(T),v.effects=[],C&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Mn(y,"onResolve")},fallback(S){if(!v.pendingBranch)return;const{vnode:E,activeBranch:y,parentComponent:A,container:$,isSVG:M}=v;Mn(E,"onFallback");const T=g(y),U=()=>{v.isInFallback&&(h(null,S,$,T,A,null,M,s,l),Ui(v,S))},j=S.transition&&S.transition.mode==="out-in";j&&(y.transition.afterLeave=U),v.isInFallback=!0,m(y,A,null,!0),j||U()},move(S,E,y){v.activeBranch&&u(v.activeBranch,S,E,y),v.container=S},next(){return v.activeBranch&&g(v.activeBranch)},registerDep(S,E){const y=!!v.pendingBranch;y&&v.deps++;const A=S.vnode.el;S.asyncDep.catch($=>{Zn($,S,0)}).then($=>{if(S.isUnmounted||v.isUnmounted||v.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;ma(S,$,!1),A&&(M.el=A);const T=!A&&S.subTree.el;E(S,M,f(A||S.subTree.el),A?null:g(S.subTree),v,a,l),T&&k(T),is(S,M.el),y&&--v.deps===0&&v.resolve()})},unmount(S,E){v.isUnmounted=!0,v.activeBranch&&m(v.activeBranch,i,S,E),v.pendingBranch&&m(v.pendingBranch,i,S,E)}};return v}function $m(e,t,i,n,o,r,a,s,l){const c=t.suspense=ns(t,n,i,e.parentNode,document.createElement("div"),null,o,r,a,s,!0),d=l(e,c.pendingBranch=t.ssContent,i,c,r,a);return c.deps===0&&c.resolve(!1,!0),d}function Lm(e){const{shapeFlag:t,children:i}=e,n=t&32;e.ssContent=rl(n?i.default:i),e.ssFallback=n?rl(i.fallback):Tt(Be)}function rl(e){let t;if(ct(e)){const i=nn&&e._c;i&&(e._d=!1,en()),e=e(),i&&(e._d=!0,t=be,Hd())}return st(e)&&(e=km(e)),e=Ee(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function Dm(e,t){t&&t.pendingBranch?st(e)?t.effects.push(...e):t.effects.push(e):sa(e)}function Ui(e,t){e.activeBranch=t;const{vnode:i,parentComponent:n}=e,o=i.el=t.el;n&&n.subTree===i&&(n.vnode.el=o,is(n,o))}function Pm(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const bo={};function Gi(e,t,i){return Id(e,t,i)}function Id(e,t,{immediate:i,deep:n,flush:o,onTrack:r,onTrigger:a}=$t){var s;const l=Np()===((s=qt)==null?void 0:s.scope)?qt:null;let c,d=!1,h=!1;if(re(e)?(c=()=>e.value,d=Do(e)):qi(e)?(c=()=>e,n=!0):st(e)?(h=!0,d=e.some(v=>qi(v)||Do(v)),c=()=>e.map(v=>{if(re(v))return v.value;if(qi(v))return bi(v);if(ct(v))return si(v,l,2)})):ct(e)?t?c=()=>si(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return u&&u(),Ae(e,l,3,[m])}:c=Pe,t&&n){const v=c;c=()=>bi(v())}let u,m=v=>{u=C.onStop=()=>{si(v,l,4),u=C.onStop=void 0}},g;if(Rn)if(m=Pe,t?i&&Ae(t,l,3,[c(),h?[]:void 0,m]):c(),o==="sync"){const v=$f();g=v.__watcherHandles||(v.__watcherHandles=[])}else return Pe;let f=h?new Array(e.length).fill(bo):bo;const k=()=>{if(C.active)if(t){const v=C.run();(n||d||(h?v.some((S,E)=>Ci(S,f[E])):Ci(v,f)))&&(u&&u(),Ae(t,l,3,[v,f===bo?void 0:h&&f[0]===bo?[]:f,m]),f=v)}else C.run()};k.allowRecurse=!!t;let x;o==="sync"?x=k:o==="post"?x=()=>ie(k,l&&l.suspense):(k.pre=!0,l&&(k.id=l.uid),x=()=>es(k));const C=new Xa(c,x);t?i?k():f=C.run():o==="post"?ie(C.run.bind(C),l&&l.suspense):C.run();const I=()=>{C.stop(),l&&l.scope&&Ya(l.scope.effects,C)};return g&&g.push(I),I}function Mm(e,t,i){const n=this.proxy,o=jt(e)?e.includes(".")?zd(n,e):()=>n[e]:e.bind(n,n);let r;ct(t)?r=t:(r=t.handler,i=t);const a=qt;rn(this);const s=Id(o,r.bind(n),i);return a?rn(a):ki(),s}function zd(e,t){const i=t.split(".");return()=>{let n=e;for(let o=0;o{bi(i,t)});else if(Jc(e))for(const i in e)bi(e[i],t);return e}function Bm(e,t){const i=Gt;if(i===null)return e;const n=ur(i)||i.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r!!e.type.__asyncLoader,_d=e=>e.type.__isKeepAlive;function Rm(e,t){Td(e,"a",t)}function Fm(e,t){Td(e,"da",t)}function Td(e,t,i=qt){const n=e.__wdc||(e.__wdc=()=>{let o=i;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(lr(t,n,i),i){let o=i.parent;for(;o&&o.parent;)_d(o.parent.vnode)&&jm(n,t,i,o),o=o.parent}}function jm(e,t,i,n){const o=lr(t,e,n,!0);os(()=>{Ya(n[t],o)},i)}function lr(e,t,i=qt,n=!1){if(i){const o=i[e]||(i[e]=[]),r=t.__weh||(t.__weh=(...a)=>{if(i.isUnmounted)return;gn(),rn(i);const s=Ae(t,i,e,a);return ki(),bn(),s});return n?o.unshift(r):o.push(r),r}}const Ke=e=>(t,i=qt)=>(!Rn||e==="sp")&&lr(e,(...n)=>t(...n),i),Hm=Ke("bm"),Od=Ke("m"),Vm=Ke("bu"),Wm=Ke("u"),qm=Ke("bum"),os=Ke("um"),Ym=Ke("sp"),Nm=Ke("rtg"),Um=Ke("rtc");function Gm(e,t=qt){lr("ec",e,t)}function Xm(e,t,i,n){let o;const r=i&&i[n];if(st(e)||jt(e)){o=new Array(e.length);for(let a=0,s=e.length;at(a,s,void 0,r&&r[s]));else{const a=Object.keys(e);o=new Array(a.length);for(let s=0,l=a.length;sBn(t)?!(t.type===Be||t.type===ge&&!$d(t.children)):!0)?e:null}const la=e=>e?Nd(e)?ur(e)||e.proxy:la(e.parent):null,In=Kt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>la(e.parent),$root:e=>la(e.root),$emit:e=>e.emit,$options:e=>rs(e),$forceUpdate:e=>e.f||(e.f=()=>es(e.update)),$nextTick:e=>e.n||(e.n=yd.bind(e.proxy)),$watch:e=>Mm.bind(e)}),Lr=(e,t)=>e!==$t&&!e.__isScriptSetup&&bt(e,t),Km={get({_:e},t){const{ctx:i,setupState:n,data:o,props:r,accessCache:a,type:s,appContext:l}=e;let c;if(t[0]!=="$"){const m=a[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return o[t];case 4:return i[t];case 3:return r[t]}else{if(Lr(n,t))return a[t]=1,n[t];if(o!==$t&&bt(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&bt(c,t))return a[t]=3,r[t];if(i!==$t&&bt(i,t))return a[t]=4,i[t];ca&&(a[t]=0)}}const d=In[t];let h,u;if(d)return t==="$attrs"&&oe(e,"get",t),d(e);if((h=s.__cssModules)&&(h=h[t]))return h;if(i!==$t&&bt(i,t))return a[t]=4,i[t];if(u=l.config.globalProperties,bt(u,t))return u[t]},set({_:e},t,i){const{data:n,setupState:o,ctx:r}=e;return Lr(o,t)?(o[t]=i,!0):n!==$t&&bt(n,t)?(n[t]=i,!0):bt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:o,propsOptions:r}},a){let s;return!!i[a]||e!==$t&&bt(e,a)||Lr(t,a)||(s=r[0])&&bt(s,a)||bt(n,a)||bt(In,a)||bt(o.config.globalProperties,a)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:bt(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};function al(e){return st(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}let ca=!0;function Zm(e){const t=rs(e),i=e.proxy,n=e.ctx;ca=!1,t.beforeCreate&&sl(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:a,watch:s,provide:l,inject:c,created:d,beforeMount:h,mounted:u,beforeUpdate:m,updated:g,activated:f,deactivated:k,beforeDestroy:x,beforeUnmount:C,destroyed:I,unmounted:v,render:S,renderTracked:E,renderTriggered:y,errorCaptured:A,serverPrefetch:$,expose:M,inheritAttrs:T,components:U,directives:j,filters:ht}=t;if(c&&Qm(c,n,null),a)for(const X in a){const H=a[X];ct(H)&&(n[X]=H.bind(i))}if(o){const X=o.call(i,i);Pt(X)&&(e.data=rr(X))}if(ca=!0,r)for(const X in r){const H=r[X],It=ct(H)?H.bind(i,i):ct(H.get)?H.get.bind(i,i):Pe,Ot=!ct(H)&&ct(H.set)?H.set.bind(i):Pe,At=de({get:It,set:Ot});Object.defineProperty(n,X,{enumerable:!0,configurable:!0,get:()=>At.value,set:Mt=>At.value=Mt})}if(s)for(const X in s)Ld(s[X],n,i,X);if(l){const X=ct(l)?l.call(i):l;Reflect.ownKeys(X).forEach(H=>{Xi(H,X[H])})}d&&sl(d,e,"c");function rt(X,H){st(H)?H.forEach(It=>X(It.bind(i))):H&&X(H.bind(i))}if(rt(Hm,h),rt(Od,u),rt(Vm,m),rt(Wm,g),rt(Rm,f),rt(Fm,k),rt(Gm,A),rt(Um,E),rt(Nm,y),rt(qm,C),rt(os,v),rt(Ym,$),st(M))if(M.length){const X=e.exposed||(e.exposed={});M.forEach(H=>{Object.defineProperty(X,H,{get:()=>i[H],set:It=>i[H]=It})})}else e.exposed||(e.exposed={});S&&e.render===Pe&&(e.render=S),T!=null&&(e.inheritAttrs=T),U&&(e.components=U),j&&(e.directives=j)}function Qm(e,t,i=Pe){st(e)&&(e=da(e));for(const n in e){const o=e[n];let r;Pt(o)?"default"in o?r=Xt(o.from||n,o.default,!0):r=Xt(o.from||n):r=Xt(o),re(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):t[n]=r}}function sl(e,t,i){Ae(st(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,i)}function Ld(e,t,i,n){const o=n.includes(".")?zd(i,n):()=>i[n];if(jt(e)){const r=t[e];ct(r)&&Gi(o,r)}else if(ct(e))Gi(o,e.bind(i));else if(Pt(e))if(st(e))e.forEach(r=>Ld(r,t,i,n));else{const r=ct(e.handler)?e.handler.bind(i):t[e.handler];ct(r)&&Gi(o,r,e)}}function rs(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,s=r.get(t);let l;return s?l=s:!o.length&&!i&&!n?l=t:(l={},o.length&&o.forEach(c=>Mo(l,c,a,!0)),Mo(l,t,a)),Pt(t)&&r.set(t,l),l}function Mo(e,t,i,n=!1){const{mixins:o,extends:r}=t;r&&Mo(e,r,i,!0),o&&o.forEach(a=>Mo(e,a,i,!0));for(const a in t)if(!(n&&a==="expose")){const s=Jm[a]||i&&i[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const Jm={data:ll,props:cl,emits:cl,methods:En,computed:En,beforeCreate:Jt,created:Jt,beforeMount:Jt,mounted:Jt,beforeUpdate:Jt,updated:Jt,beforeDestroy:Jt,beforeUnmount:Jt,destroyed:Jt,unmounted:Jt,activated:Jt,deactivated:Jt,errorCaptured:Jt,serverPrefetch:Jt,components:En,directives:En,watch:ef,provide:ll,inject:tf};function ll(e,t){return t?e?function(){return Kt(ct(e)?e.call(this,this):e,ct(t)?t.call(this,this):t)}:t:e}function tf(e,t){return En(da(e),da(t))}function da(e){if(st(e)){const t={};for(let i=0;i1)return i&&ct(t)?t.call(n&&n.proxy):t}}function rf(e,t,i,n=!1){const o={},r={};Lo(r,hr,1),e.propsDefaults=Object.create(null),Pd(e,t,o,r);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);i?e.props=n?o:ud(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function af(e,t,i,n){const{props:o,attrs:r,vnode:{patchFlag:a}}=e,s=yt(o),[l]=e.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let h=0;h{l=!0;const[u,m]=Md(h,t,!0);Kt(a,u),m&&s.push(...m)};!i&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!l)return Pt(e)&&n.set(e,Vi),Vi;if(st(r))for(let d=0;d-1,m[1]=f<0||g-1||bt(m,"default"))&&s.push(h)}}}const c=[a,s];return Pt(e)&&n.set(e,c),c}function dl(e){return e[0]!=="$"}function hl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ul(e,t){return hl(e)===hl(t)}function pl(e,t){return st(t)?t.findIndex(i=>ul(i,e)):ct(t)&&ul(t,e)?0:-1}const Bd=e=>e[0]==="_"||e==="$stable",as=e=>st(e)?e.map(Ee):[Ee(e)],sf=(e,t,i)=>{if(t._n)return t;const n=Ce((...o)=>as(t(...o)),i);return n._c=!1,n},Rd=(e,t,i)=>{const n=e._ctx;for(const o in e){if(Bd(o))continue;const r=e[o];if(ct(r))t[o]=sf(o,r,n);else if(r!=null){const a=as(r);t[o]=()=>a}}},Fd=(e,t)=>{const i=as(t);e.slots.default=()=>i},lf=(e,t)=>{if(e.vnode.shapeFlag&32){const i=t._;i?(e.slots=yt(t),Lo(t,"_",i)):Rd(t,e.slots={})}else e.slots={},t&&Fd(e,t);Lo(e.slots,hr,1)},cf=(e,t,i)=>{const{vnode:n,slots:o}=e;let r=!0,a=$t;if(n.shapeFlag&32){const s=t._;s?i&&s===1?r=!1:(Kt(o,t),!i&&s===1&&delete o._):(r=!t.$stable,Rd(t,o)),a=t}else t&&(Fd(e,t),a={default:1});if(r)for(const s in o)!Bd(s)&&a[s]==null&&delete o[s]};function ua(e,t,i,n,o=!1){if(st(e)){e.forEach((u,m)=>ua(u,t&&(st(t)?t[m]:t),i,n,o));return}if(An(n)&&!o)return;const r=n.shapeFlag&4?ur(n.component)||n.component.proxy:n.el,a=o?null:r,{i:s,r:l}=e,c=t&&t.r,d=s.refs===$t?s.refs={}:s.refs,h=s.setupState;if(c!=null&&c!==l&&(jt(c)?(d[c]=null,bt(h,c)&&(h[c]=null)):re(c)&&(c.value=null)),ct(l))si(l,s,12,[a,d]);else{const u=jt(l),m=re(l);if(u||m){const g=()=>{if(e.f){const f=u?bt(h,l)?h[l]:d[l]:l.value;o?st(f)&&Ya(f,r):st(f)?f.includes(r)||f.push(r):u?(d[l]=[r],bt(h,l)&&(h[l]=d[l])):(l.value=[r],e.k&&(d[e.k]=l.value))}else u?(d[l]=a,bt(h,l)&&(h[l]=a)):m&&(l.value=a,e.k&&(d[e.k]=a))};a?(g.id=-1,ie(g,i)):g()}}}const ie=Dm;function df(e){return hf(e)}function hf(e,t){const i=ea();i.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:a,createText:s,createComment:l,setText:c,setElementText:d,parentNode:h,nextSibling:u,setScopeId:m=Pe,insertStaticContent:g}=e,f=(b,w,z,O=null,P=null,B=null,G=!1,V=null,q=!!w.dynamicChildren)=>{if(b===w)return;b&&!oi(b,w)&&(O=D(b),Mt(b,P,B,!0),b=null),w.patchFlag===-2&&(q=!1,w.dynamicChildren=null);const{type:R,ref:nt,shapeFlag:J}=w;switch(R){case cr:k(b,w,z,O);break;case Be:x(b,w,z,O);break;case Dr:b==null&&C(w,z,O,G);break;case ge:U(b,w,z,O,P,B,G,V,q);break;default:J&1?S(b,w,z,O,P,B,G,V,q):J&6?j(b,w,z,O,P,B,G,V,q):(J&64||J&128)&&R.process(b,w,z,O,P,B,G,V,q,Y)}nt!=null&&P&&ua(nt,b&&b.ref,B,w||b,!w)},k=(b,w,z,O)=>{if(b==null)n(w.el=s(w.children),z,O);else{const P=w.el=b.el;w.children!==b.children&&c(P,w.children)}},x=(b,w,z,O)=>{b==null?n(w.el=l(w.children||""),z,O):w.el=b.el},C=(b,w,z,O)=>{[b.el,b.anchor]=g(b.children,w,z,O,b.el,b.anchor)},I=({el:b,anchor:w},z,O)=>{let P;for(;b&&b!==w;)P=u(b),n(b,z,O),b=P;n(w,z,O)},v=({el:b,anchor:w})=>{let z;for(;b&&b!==w;)z=u(b),o(b),b=z;o(w)},S=(b,w,z,O,P,B,G,V,q)=>{G=G||w.type==="svg",b==null?E(w,z,O,P,B,G,V,q):$(b,w,P,B,G,V,q)},E=(b,w,z,O,P,B,G,V)=>{let q,R;const{type:nt,props:J,shapeFlag:ot,transition:lt,dirs:mt}=b;if(q=b.el=a(b.type,B,J&&J.is,J),ot&8?d(q,b.children):ot&16&&A(b.children,q,null,O,P,B&&nt!=="foreignObject",G,V),mt&&hi(b,null,O,"created"),y(q,b,b.scopeId,G,O),J){for(const kt in J)kt!=="value"&&!zo(kt)&&r(q,kt,null,J[kt],B,b.children,O,P,Ct);"value"in J&&r(q,"value",null,J.value),(R=J.onVnodeBeforeMount)&&_e(R,O,b)}mt&&hi(b,null,O,"beforeMount");const St=uf(P,lt);St&<.beforeEnter(q),n(q,w,z),((R=J&&J.onVnodeMounted)||St||mt)&&ie(()=>{R&&_e(R,O,b),St&<.enter(q),mt&&hi(b,null,O,"mounted")},P)},y=(b,w,z,O,P)=>{if(z&&m(b,z),O)for(let B=0;B{for(let R=q;R{const V=w.el=b.el;let{patchFlag:q,dynamicChildren:R,dirs:nt}=w;q|=b.patchFlag&16;const J=b.props||$t,ot=w.props||$t;let lt;z&&ui(z,!1),(lt=ot.onVnodeBeforeUpdate)&&_e(lt,z,w,b),nt&&hi(w,b,z,"beforeUpdate"),z&&ui(z,!0);const mt=P&&w.type!=="foreignObject";if(R?M(b.dynamicChildren,R,V,z,O,mt,B):G||H(b,w,V,null,z,O,mt,B,!1),q>0){if(q&16)T(V,w,J,ot,z,O,P);else if(q&2&&J.class!==ot.class&&r(V,"class",null,ot.class,P),q&4&&r(V,"style",J.style,ot.style,P),q&8){const St=w.dynamicProps;for(let kt=0;kt{lt&&_e(lt,z,w,b),nt&&hi(w,b,z,"updated")},O)},M=(b,w,z,O,P,B,G)=>{for(let V=0;V{if(z!==O){if(z!==$t)for(const V in z)!zo(V)&&!(V in O)&&r(b,V,z[V],null,G,w.children,P,B,Ct);for(const V in O){if(zo(V))continue;const q=O[V],R=z[V];q!==R&&V!=="value"&&r(b,V,R,q,G,w.children,P,B,Ct)}"value"in O&&r(b,"value",z.value,O.value)}},U=(b,w,z,O,P,B,G,V,q)=>{const R=w.el=b?b.el:s(""),nt=w.anchor=b?b.anchor:s("");let{patchFlag:J,dynamicChildren:ot,slotScopeIds:lt}=w;lt&&(V=V?V.concat(lt):lt),b==null?(n(R,z,O),n(nt,z,O),A(w.children,z,nt,P,B,G,V,q)):J>0&&J&64&&ot&&b.dynamicChildren?(M(b.dynamicChildren,ot,z,P,B,G,V),(w.key!=null||P&&w===P.subTree)&&ss(b,w,!0)):H(b,w,z,nt,P,B,G,V,q)},j=(b,w,z,O,P,B,G,V,q)=>{w.slotScopeIds=V,b==null?w.shapeFlag&512?P.ctx.activate(w,z,O,G,q):ht(w,z,O,P,B,G,q):at(b,w,q)},ht=(b,w,z,O,P,B,G)=>{const V=b.component=Ef(b,O,P);if(_d(b)&&(V.ctx.renderer=Y),Sf(V),V.asyncDep){if(P&&P.registerDep(V,rt),!b.el){const q=V.subTree=Tt(Be);x(null,q,w,z)}return}rt(V,b,w,z,P,B,G)},at=(b,w,z)=>{const O=w.component=b.component;if(Sm(b,w,z))if(O.asyncDep&&!O.asyncResolved){X(O,w,z);return}else O.next=w,vm(O.update),O.update();else w.el=b.el,O.vnode=w},rt=(b,w,z,O,P,B,G)=>{const V=()=>{if(b.isMounted){let{next:nt,bu:J,u:ot,parent:lt,vnode:mt}=b,St=nt,kt;ui(b,!1),nt?(nt.el=mt.el,X(b,nt,G)):nt=mt,J&&Tr(J),(kt=nt.props&&nt.props.onVnodeBeforeUpdate)&&_e(kt,lt,nt,mt),ui(b,!0);const Rt=$r(b),le=b.subTree;b.subTree=Rt,f(le,Rt,h(le.el),D(le),b,P,B),nt.el=Rt.el,St===null&&is(b,Rt.el),ot&&ie(ot,P),(kt=nt.props&&nt.props.onVnodeUpdated)&&ie(()=>_e(kt,lt,nt,mt),P)}else{let nt;const{el:J,props:ot}=w,{bm:lt,m:mt,parent:St}=b,kt=An(w);if(ui(b,!1),lt&&Tr(lt),!kt&&(nt=ot&&ot.onVnodeBeforeMount)&&_e(nt,St,w),ui(b,!0),J&&vt){const Rt=()=>{b.subTree=$r(b),vt(J,b.subTree,b,P,null)};kt?w.type.__asyncLoader().then(()=>!b.isUnmounted&&Rt()):Rt()}else{const Rt=b.subTree=$r(b);f(null,Rt,z,O,b,P,B),w.el=Rt.el}if(mt&&ie(mt,P),!kt&&(nt=ot&&ot.onVnodeMounted)){const Rt=w;ie(()=>_e(nt,St,Rt),P)}(w.shapeFlag&256||St&&An(St.vnode)&&St.vnode.shapeFlag&256)&&b.a&&ie(b.a,P),b.isMounted=!0,w=z=O=null}},q=b.effect=new Xa(V,()=>es(R),b.scope),R=b.update=()=>q.run();R.id=b.uid,ui(b,!0),R()},X=(b,w,z)=>{w.component=b;const O=b.vnode.props;b.vnode=w,b.next=null,af(b,w.props,O,z),cf(b,w.children,z),gn(),il(b),bn()},H=(b,w,z,O,P,B,G,V,q=!1)=>{const R=b&&b.children,nt=b?b.shapeFlag:0,J=w.children,{patchFlag:ot,shapeFlag:lt}=w;if(ot>0){if(ot&128){Ot(R,J,z,O,P,B,G,V,q);return}else if(ot&256){It(R,J,z,O,P,B,G,V,q);return}}lt&8?(nt&16&&Ct(R,P,B),J!==R&&d(z,J)):nt&16?lt&16?Ot(R,J,z,O,P,B,G,V,q):Ct(R,P,B,!0):(nt&8&&d(z,""),lt&16&&A(J,z,O,P,B,G,V,q))},It=(b,w,z,O,P,B,G,V,q)=>{b=b||Vi,w=w||Vi;const R=b.length,nt=w.length,J=Math.min(R,nt);let ot;for(ot=0;otnt?Ct(b,P,B,!0,!1,J):A(w,z,O,P,B,G,V,q,J)},Ot=(b,w,z,O,P,B,G,V,q)=>{let R=0;const nt=w.length;let J=b.length-1,ot=nt-1;for(;R<=J&&R<=ot;){const lt=b[R],mt=w[R]=q?ei(w[R]):Ee(w[R]);if(oi(lt,mt))f(lt,mt,z,null,P,B,G,V,q);else break;R++}for(;R<=J&&R<=ot;){const lt=b[J],mt=w[ot]=q?ei(w[ot]):Ee(w[ot]);if(oi(lt,mt))f(lt,mt,z,null,P,B,G,V,q);else break;J--,ot--}if(R>J){if(R<=ot){const lt=ot+1,mt=ltot)for(;R<=J;)Mt(b[R],P,B,!0),R++;else{const lt=R,mt=R,St=new Map;for(R=mt;R<=ot;R++){const Ft=w[R]=q?ei(w[R]):Ee(w[R]);Ft.key!=null&&St.set(Ft.key,R)}let kt,Rt=0;const le=ot-mt+1;let pe=!1,He=0;const we=new Array(le);for(R=0;R=le){Mt(Ft,P,B,!0);continue}let Ut;if(Ft.key!=null)Ut=St.get(Ft.key);else for(kt=mt;kt<=ot;kt++)if(we[kt-mt]===0&&oi(Ft,w[kt])){Ut=kt;break}Ut===void 0?Mt(Ft,P,B,!0):(we[Ut-mt]=R+1,Ut>=He?He=Ut:pe=!0,f(Ft,w[Ut],z,null,P,B,G,V,q),Rt++)}const ee=pe?pf(we):Vi;for(kt=ee.length-1,R=le-1;R>=0;R--){const Ft=mt+R,Ut=w[Ft],ho=Ft+1{const{el:B,type:G,transition:V,children:q,shapeFlag:R}=b;if(R&6){At(b.component.subTree,w,z,O);return}if(R&128){b.suspense.move(w,z,O);return}if(R&64){G.move(b,w,z,Y);return}if(G===ge){n(B,w,z);for(let J=0;JV.enter(B),P);else{const{leave:J,delayLeave:ot,afterLeave:lt}=V,mt=()=>n(B,w,z),St=()=>{J(B,()=>{mt(),lt&<()})};ot?ot(B,mt,St):St()}else n(B,w,z)},Mt=(b,w,z,O=!1,P=!1)=>{const{type:B,props:G,ref:V,children:q,dynamicChildren:R,shapeFlag:nt,patchFlag:J,dirs:ot}=b;if(V!=null&&ua(V,null,z,b,!0),nt&256){w.ctx.deactivate(b);return}const lt=nt&1&&ot,mt=!An(b);let St;if(mt&&(St=G&&G.onVnodeBeforeUnmount)&&_e(St,w,b),nt&6)Qe(b.component,z,O);else{if(nt&128){b.suspense.unmount(z,O);return}lt&&hi(b,null,w,"beforeUnmount"),nt&64?b.type.remove(b,w,z,P,Y,O):R&&(B!==ge||J>0&&J&64)?Ct(R,w,z,!1,!0):(B===ge&&J&384||!P&&nt&16)&&Ct(q,w,z),O&&Qt(b)}(mt&&(St=G&&G.onVnodeUnmounted)||lt)&&ie(()=>{St&&_e(St,w,b),lt&&hi(b,null,w,"unmounted")},z)},Qt=b=>{const{type:w,el:z,anchor:O,transition:P}=b;if(w===ge){Bt(z,O);return}if(w===Dr){v(b);return}const B=()=>{o(z),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(b.shapeFlag&1&&P&&!P.persisted){const{leave:G,delayLeave:V}=P,q=()=>G(z,B);V?V(b.el,B,q):q()}else B()},Bt=(b,w)=>{let z;for(;b!==w;)z=u(b),o(b),b=z;o(w)},Qe=(b,w,z)=>{const{bum:O,scope:P,update:B,subTree:G,um:V}=b;O&&Tr(O),P.stop(),B&&(B.active=!1,Mt(G,b,w,z)),V&&ie(V,w),ie(()=>{b.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve())},Ct=(b,w,z,O=!1,P=!1,B=0)=>{for(let G=B;Gb.shapeFlag&6?D(b.component.subTree):b.shapeFlag&128?b.suspense.next():u(b.anchor||b.el),K=(b,w,z)=>{b==null?w._vnode&&Mt(w._vnode,null,null,!0):f(w._vnode||null,b,w,null,null,null,z),il(),Cd(),w._vnode=b},Y={p:f,um:Mt,m:At,r:Qt,mt:ht,mc:A,pc:H,pbc:M,n:D,o:e};let it,vt;return t&&([it,vt]=t(Y)),{render:K,hydrate:it,createApp:of(K,it)}}function ui({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function uf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ss(e,t,i=!1){const n=e.children,o=t.children;if(st(n)&&st(o))for(let r=0;r>1,e[i[s]]0&&(t[n]=i[r-1]),i[r]=n)}}for(r=i.length,a=i[r-1];r-- >0;)i[r]=a,a=t[a];return i}const mf=e=>e.__isTeleport,zn=e=>e&&(e.disabled||e.disabled===""),ml=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pa=(e,t)=>{const i=e&&e.to;return jt(i)?t?t(i):null:i},ff={name:"Teleport",__isTeleport:!0,process(e,t,i,n,o,r,a,s,l,c){const{mc:d,pc:h,pbc:u,o:{insert:m,querySelector:g,createText:f,createComment:k}}=c,x=zn(t.props);let{shapeFlag:C,children:I,dynamicChildren:v}=t;if(e==null){const S=t.el=f(""),E=t.anchor=f("");m(S,i,n),m(E,i,n);const y=t.target=pa(t.props,g),A=t.targetAnchor=f("");y&&(m(A,y),a=a||ml(y));const $=(M,T)=>{C&16&&d(I,M,T,o,r,a,s,l)};x?$(i,E):y&&$(y,A)}else{t.el=e.el;const S=t.anchor=e.anchor,E=t.target=e.target,y=t.targetAnchor=e.targetAnchor,A=zn(e.props),$=A?i:E,M=A?S:y;if(a=a||ml(E),v?(u(e.dynamicChildren,v,$,o,r,a,s),ss(e,t,!0)):l||h(e,t,$,M,o,r,a,s,!1),x)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):xo(t,i,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=pa(t.props,g);T&&xo(t,T,null,c,0)}else A&&xo(t,E,y,c,1)}jd(t)},remove(e,t,i,n,{um:o,o:{remove:r}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:d,target:h,props:u}=e;if(h&&r(d),a&&r(c),s&16){const m=a||!zn(u);for(let g=0;g0?be||Vi:null,Hd(),nn>0&&be&&be.push(e),e}function xf(e,t,i,n,o,r){return Vd(qd(e,t,i,n,o,r,!0))}function dr(e,t,i,n,o){return Vd(Tt(e,t,i,n,o,!0))}function Bn(e){return e?e.__v_isVNode===!0:!1}function oi(e,t){return e.type===t.type&&e.key===t.key}const hr="__vInternal",Wd=({key:e})=>e!=null?e:null,_o=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?jt(e)||re(e)||ct(e)?{i:Gt,r:e,k:t,f:!!i}:e:null);function qd(e,t=null,i=null,n=0,o=null,r=e===ge?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wd(t),ref:t&&_o(t),scopeId:sr,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Gt};return s?(ls(l,i),r&128&&e.normalize(l)):i&&(l.shapeFlag|=jt(i)?8:16),nn>0&&!a&&be&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&be.push(l),l}const Tt=vf;function vf(e,t=null,i=null,n=0,o=null,r=!1){if((!e||e===Am)&&(e=Be),Bn(e)){const s=on(e,t,!0);return i&&ls(s,i),nn>0&&!r&&be&&(s.shapeFlag&6?be[be.indexOf(e)]=s:be.push(s)),s.patchFlag|=-2,s}if(Tf(e)&&(e=e.__vccOpts),t){t=wf(t);let{class:s,style:l}=t;s&&!jt(s)&&(t.class=nr(s)),Pt(l)&&(md(l)&&!st(l)&&(l=Kt({},l)),t.style=Ua(l))}const a=jt(e)?1:zm(e)?128:mf(e)?64:Pt(e)?4:ct(e)?2:0;return qd(e,t,i,n,o,a,r,!0)}function wf(e){return e?md(e)||hr in e?Kt({},e):e:null}function on(e,t,i=!1){const{props:n,ref:o,patchFlag:r,children:a}=e,s=t?yf(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Wd(s),ref:t&&t.ref?i&&o?st(o)?o.concat(_o(t)):[o,_o(t)]:_o(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&on(e.ssContent),ssFallback:e.ssFallback&&on(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function To(e=" ",t=0){return Tt(cr,null,e,t)}function D5(e="",t=!1){return t?(en(),dr(Be,null,e)):Tt(Be,null,e)}function Ee(e){return e==null||typeof e=="boolean"?Tt(Be):st(e)?Tt(ge,null,e.slice()):typeof e=="object"?ei(e):Tt(cr,null,String(e))}function ei(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:on(e)}function ls(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(st(t))i=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),ls(e,o()),o._c&&(o._d=!0));return}else{i=32;const o=t._;!o&&!(hr in t)?t._ctx=Gt:o===3&&Gt&&(Gt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ct(t)?(t={default:t,_ctx:Gt},i=32):(t=String(t),n&64?(i=16,t=[To(t)]):i=8);e.children=t,e.shapeFlag|=i}function yf(...e){const t={};for(let i=0;iqt||Gt;let cs,Pi,gl="__VUE_INSTANCE_SETTERS__";(Pi=ea()[gl])||(Pi=ea()[gl]=[]),Pi.push(e=>qt=e),cs=e=>{Pi.length>1?Pi.forEach(t=>t(e)):Pi[0](e)};const rn=e=>{cs(e),e.scope.on()},ki=()=>{qt&&qt.scope.off(),cs(null)};function Nd(e){return e.vnode.shapeFlag&4}let Rn=!1;function Sf(e,t=!1){Rn=t;const{props:i,children:n}=e.vnode,o=Nd(e);rf(e,i,o,t),lf(e,n);const r=o?Af(e,t):void 0;return Rn=!1,r}function Af(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=fd(new Proxy(e.ctx,Km));const{setup:n}=i;if(n){const o=e.setupContext=n.length>1?zf(e):null;rn(e),gn();const r=si(n,e,0,[e.props,o]);if(bn(),ki(),Zc(r)){if(r.then(ki,ki),t)return r.then(a=>{ma(e,a,t)}).catch(a=>{Zn(a,e,0)});e.asyncDep=r}else ma(e,r,t)}else Ud(e,t)}function ma(e,t,i){ct(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pt(t)&&(e.setupState=vd(t)),Ud(e,i)}let bl;function Ud(e,t,i){const n=e.type;if(!e.render){if(!t&&bl&&!n.render){const o=n.template||rs(e).template;if(o){const{isCustomElement:r,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,c=Kt(Kt({isCustomElement:r,delimiters:s},a),l);n.render=bl(o,c)}}e.render=n.render||Pe}{rn(e),gn();try{Zm(e)}finally{bn(),ki()}}}function If(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,i){return oe(e,"get","$attrs"),t[i]}}))}function zf(e){const t=i=>{e.exposed=i||{}};return{get attrs(){return If(e)},slots:e.slots,emit:e.emit,expose:t}}function ur(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vd(fd(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in In)return In[i](e)},has(t,i){return i in t||i in In}}))}function _f(e,t=!0){return ct(e)?e.displayName||e.name:e.name||t&&e.__name}function Tf(e){return ct(e)&&"__vccOpts"in e}const de=(e,t)=>gm(e,t,Rn);function te(e,t,i){const n=arguments.length;return n===2?Pt(t)&&!st(t)?Bn(t)?Tt(e,null,[t]):Tt(e,t):Tt(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&Bn(i)&&(i=[i]),Tt(e,t,i))}const Of=Symbol.for("v-scx"),$f=()=>Xt(Of),Lf="3.3.13",Df="http://www.w3.org/2000/svg",fi=typeof document<"u"?document:null,xl=fi&&fi.createElement("template"),Pf={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,n)=>{const o=t?fi.createElementNS(Df,e):fi.createElement(e,i?{is:i}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>fi.createTextNode(e),createComment:e=>fi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,n,o,r){const a=i?i.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),i),!(o===r||!(o=o.nextSibling)););else{xl.innerHTML=n?"".concat(e,""):e;const s=xl.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,i)}return[a?a.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},Mf=Symbol("_vtc");function Bf(e,t,i){const n=e[Mf];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const Rf=Symbol("_vod"),Ff=Symbol("");function jf(e,t,i){const n=e.style,o=jt(i);if(i&&!o){if(t&&!jt(t))for(const r in t)i[r]==null&&fa(n,r,"");for(const r in i)fa(n,r,i[r])}else{const r=n.display;if(o){if(t!==i){const a=n[Ff];a&&(i+=";"+a),n.cssText=i}}else t&&e.removeAttribute("style");Rf in e&&(n.display=r)}}const vl=/\s*!important$/;function fa(e,t,i){if(st(i))i.forEach(n=>fa(e,t,n));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const n=Hf(e,t);vl.test(i)?e.setProperty(fn(n),i.replace(vl,""),"important"):e[n]=i}}const wl=["Webkit","Moz","ms"],Pr={};function Hf(e,t){const i=Pr[t];if(i)return i;let n=Me(t);if(n!=="filter"&&n in e)return Pr[t]=n;n=ir(n);for(let o=0;oMr||(Gf.then(()=>Mr=0),Mr=Date.now());function Kf(e,t){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;Ae(Zf(n,i.value),t,5,[n])};return i.value=e,i.attached=Xf(),i}function Zf(e,t){if(st(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const El=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qf=(e,t,i,n,o=!1,r,a,s,l)=>{t==="class"?Bf(e,n,o):t==="style"?jf(e,i,n):Jo(t)?qa(t)||Nf(e,t,i,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jf(e,t,n,o))?Wf(e,t,n,r,a,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Vf(e,t,n,o))};function Jf(e,t,i,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&El(t)&&ct(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return El(t)&&jt(i)?!1:t in e}const tg=Kt({patchProp:Qf},Pf);let Sl;function eg(){return Sl||(Sl=df(tg))}const ig=(...e)=>{const t=eg().createApp(...e),{mount:i}=t;return t.mount=n=>{const o=ng(n);if(!o)return;const r=t._component;!ct(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const a=i(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function ng(e){return jt(e)?document.querySelector(e):e}/*! + * vue-router v4.2.5 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const Bi=typeof window<"u";function og(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Et=Object.assign;function Br(e,t){const i={};for(const n in t){const o=t[n];i[n]=ze(o)?o.map(e):e(o)}return i}const Tn=()=>{},ze=Array.isArray,rg=/\/$/,ag=e=>e.replace(rg,"");function Rr(e,t,i="/"){let n,o={},r="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),r=t.slice(l+1,s>-1?s:t.length),o=e(r)),s>-1&&(n=n||t.slice(0,s),a=t.slice(s,t.length)),n=dg(n!=null?n:t,i),{fullPath:n+(r&&"?")+r+a,path:n,query:o,hash:a}}function sg(e,t){const i=t.query?e(t.query):"";return t.path+(i&&"?")+i+(t.hash||"")}function Al(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lg(e,t,i){const n=t.matched.length-1,o=i.matched.length-1;return n>-1&&n===o&&an(t.matched[n],i.matched[o])&&Gd(t.params,i.params)&&e(t.query)===e(i.query)&&t.hash===i.hash}function an(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!cg(e[i],t[i]))return!1;return!0}function cg(e,t){return ze(e)?Il(e,t):ze(t)?Il(t,e):e===t}function Il(e,t){return ze(t)?e.length===t.length&&e.every((i,n)=>i===t[n]):e.length===1&&e[0]===t}function dg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const i=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let r=i.length-1,a,s;for(a=0;a1&&r--;else break;return i.slice(0,r).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var Fn;(function(e){e.pop="pop",e.push="push"})(Fn||(Fn={}));var On;(function(e){e.back="back",e.forward="forward",e.unknown=""})(On||(On={}));function hg(e){if(!e)if(Bi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ag(e)}const ug=/^[^#]+#/;function pg(e,t){return e.replace(ug,"#")+t}function mg(e,t){const i=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-i.left-(t.left||0),top:n.top-i.top-(t.top||0)}}const pr=()=>({left:window.pageXOffset,top:window.pageYOffset});function fg(e){let t;if("el"in e){const i=e.el,n=typeof i=="string"&&i.startsWith("#"),o=typeof i=="string"?n?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!o)return;t=mg(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function zl(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function gg(e,t){ga.set(e,t)}function bg(e){const t=ga.get(e);return ga.delete(e),t}let xg=()=>location.protocol+"//"+location.host;function Xd(e,t){const{pathname:i,search:n,hash:o}=t,r=e.indexOf("#");if(r>-1){let s=o.includes(e.slice(r))?e.slice(r).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),Al(l,"")}return Al(i,e)+n+o}function vg(e,t,i,n){let o=[],r=[],a=null;const s=({state:u})=>{const m=Xd(e,location),g=i.value,f=t.value;let k=0;if(u){if(i.value=m,t.value=u,a&&a===g){a=null;return}k=f?u.position-f.position:0}else n(m);o.forEach(x=>{x(i.value,g,{delta:k,type:Fn.pop,direction:k?k>0?On.forward:On.back:On.unknown})})};function l(){a=i.value}function c(u){o.push(u);const m=()=>{const g=o.indexOf(u);g>-1&&o.splice(g,1)};return r.push(m),m}function d(){const{history:u}=window;u.state&&u.replaceState(Et({},u.state,{scroll:pr()}),"")}function h(){for(const u of r)u();r=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:h}}function _l(e,t,i,n=!1,o=!1){return{back:e,current:t,forward:i,replaced:n,position:window.history.length,scroll:o?pr():null}}function wg(e){const{history:t,location:i}=window,n={value:Xd(e,i)},o={value:t.state};o.value||r(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(l,c,d){const h=e.indexOf("#"),u=h>-1?(i.host&&document.querySelector("base")?e:e.slice(h))+l:xg()+e+l;try{t[d?"replaceState":"pushState"](c,"",u),o.value=c}catch(m){console.error(m),i[d?"replace":"assign"](u)}}function a(l,c){const d=Et({},t.state,_l(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});r(l,d,!0),n.value=l}function s(l,c){const d=Et({},o.value,t.state,{forward:l,scroll:pr()});r(d.current,d,!0);const h=Et({},_l(n.value,l,null),{position:d.position+1},c);r(l,h,!1),n.value=l}return{location:n,state:o,push:s,replace:a}}function yg(e){e=hg(e);const t=wg(e),i=vg(e,t.state,t.location,t.replace);function n(r,a=!0){a||i.pauseListeners(),history.go(r)}const o=Et({location:"",base:e,go:n,createHref:pg.bind(null,e)},t,i);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function kg(e){return typeof e=="string"||e&&typeof e=="object"}function Kd(e){return typeof e=="string"||typeof e=="symbol"}const ti={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Zd=Symbol("");var Tl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Tl||(Tl={}));function sn(e,t){return Et(new Error,{type:e,[Zd]:!0},t)}function Ve(e,t){return e instanceof Error&&Zd in e&&(t==null||!!(e.type&t))}const Ol="[^/]+?",Cg={sensitive:!1,strict:!1,start:!0,end:!0},Eg=/[.+*?^${}()[\]/\\]/g;function Sg(e,t){const i=Et({},Cg,t),n=[];let o=i.start?"^":"";const r=[];for(const c of e){const d=c.length?[]:[90];i.strict&&!c.length&&(o+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function Ig(e,t){let i=0;const n=e.score,o=t.score;for(;i0&&t[t.length-1]<0}const zg={type:0,value:""},_g=/[a-zA-Z0-9_]/;function Tg(e){if(!e)return[[]];if(e==="/")return[[zg]];if(!e.startsWith("/"))throw new Error('Invalid path "'.concat(e,'"'));function t(m){throw new Error("ERR (".concat(i,')/"').concat(c,'": ').concat(m))}let i=0,n=i;const o=[];let r;function a(){r&&o.push(r),r=[]}let s=0,l,c="",d="";function h(){c&&(i===0?r.push({type:0,value:c}):i===1||i===2||i===3?(r.length>1&&(l==="*"||l==="+")&&t("A repeatable param (".concat(c,") must be alone in its segment. eg: '/:ids+.")),r.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function u(){c+=l}for(;s{a(C)}:Tn}function a(d){if(Kd(d)){const h=n.get(d);h&&(n.delete(d),i.splice(i.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=i.indexOf(d);h>-1&&(i.splice(h,1),d.record.name&&n.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function s(){return i}function l(d){let h=0;for(;h=0&&(d.record.path!==i[h].record.path||!Qd(d,i[h]));)h++;i.splice(h,0,d),d.record.name&&!Dl(d)&&n.set(d.record.name,d)}function c(d,h){let u,m={},g,f;if("name"in d&&d.name){if(u=n.get(d.name),!u)throw sn(1,{location:d});f=u.record.name,m=Et(Ll(h.params,u.keys.filter(C=>!C.optional).map(C=>C.name)),d.params&&Ll(d.params,u.keys.map(C=>C.name))),g=u.stringify(m)}else if("path"in d)g=d.path,u=i.find(C=>C.re.test(g)),u&&(m=u.parse(g),f=u.record.name);else{if(u=h.name?n.get(h.name):i.find(C=>C.re.test(h.path)),!u)throw sn(1,{location:d,currentLocation:h});f=u.record.name,m=Et({},h.params,d.params),g=u.stringify(m)}const k=[];let x=u;for(;x;)k.unshift(x.record),x=x.parent;return{name:f,path:g,params:m,matched:k,meta:Pg(k)}}return e.forEach(d=>r(d)),{addRoute:r,resolve:c,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function Ll(e,t){const i={};for(const n of t)n in e&&(i[n]=e[n]);return i}function Lg(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Dg(e){const t={},i=e.props||!1;if("component"in e)t.default=i;else for(const n in e.components)t[n]=typeof i=="object"?i[n]:i;return t}function Dl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pg(e){return e.reduce((t,i)=>Et(t,i.meta),{})}function Pl(e,t){const i={};for(const n in e)i[n]=n in t?t[n]:e[n];return i}function Qd(e,t){return t.children.some(i=>i===e||Qd(e,i))}const Jd=/#/g,Mg=/&/g,Bg=/\//g,Rg=/=/g,Fg=/\?/g,th=/\+/g,jg=/%5B/g,Hg=/%5D/g,eh=/%5E/g,Vg=/%60/g,ih=/%7B/g,Wg=/%7C/g,nh=/%7D/g,qg=/%20/g;function ds(e){return encodeURI(""+e).replace(Wg,"|").replace(jg,"[").replace(Hg,"]")}function Yg(e){return ds(e).replace(ih,"{").replace(nh,"}").replace(eh,"^")}function ba(e){return ds(e).replace(th,"%2B").replace(qg,"+").replace(Jd,"%23").replace(Mg,"%26").replace(Vg,"`").replace(ih,"{").replace(nh,"}").replace(eh,"^")}function Ng(e){return ba(e).replace(Rg,"%3D")}function Ug(e){return ds(e).replace(Jd,"%23").replace(Fg,"%3F")}function Gg(e){return e==null?"":Ug(e).replace(Bg,"%2F")}function Ro(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function xa(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;or&&ba(r)):[n&&ba(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+i,r!=null&&(t+="="+r))})}return t}function Xg(e){const t={};for(const i in e){const n=e[i];n!==void 0&&(t[i]=ze(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const oh=Symbol(""),Bl=Symbol(""),mr=Symbol(""),fr=Symbol(""),va=Symbol("");function yn(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function i(){e=[]}return{add:t,list:()=>e.slice(),reset:i}}function ii(e,t,i,n,o){const r=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((a,s)=>{const l=h=>{h===!1?s(sn(4,{from:i,to:t})):h instanceof Error?s(h):kg(h)?s(sn(2,{from:t,to:h})):(r&&n.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),a())},c=e.call(n&&n.instances[o],t,i,l);let d=Promise.resolve(c);e.length<3&&(d=d.then(l)),d.catch(h=>s(h))})}function Fr(e,t,i,n){const o=[];for(const r of e)for(const a in r.components){let s=r.components[a];if(!(t!=="beforeRouteEnter"&&!r.instances[a]))if(Kg(s)){const c=(s.__vccOpts||s)[t];c&&o.push(ii(c,i,n,r,a))}else{let l=s();o.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error("Couldn't resolve component \"".concat(a,'" at "').concat(r.path,'"')));const d=og(c)?c.default:c;r.components[a]=d;const u=(d.__vccOpts||d)[t];return u&&ii(u,i,n,r,a)()}))}}return o}function Kg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Rl(e){const t=Xt(mr),i=Xt(fr),n=de(()=>t.resolve(Vt(e.to))),o=de(()=>{const{matched:l}=n.value,{length:c}=l,d=l[c-1],h=i.matched;if(!d||!h.length)return-1;const u=h.findIndex(an.bind(null,d));if(u>-1)return u;const m=Fl(l[c-2]);return c>1&&Fl(d)===m&&h[h.length-1].path!==m?h.findIndex(an.bind(null,l[c-2])):u}),r=de(()=>o.value>-1&&tb(i.params,n.value.params)),a=de(()=>o.value>-1&&o.value===i.matched.length-1&&Gd(i.params,n.value.params));function s(l={}){return Jg(l)?t[Vt(e.replace)?"replace":"push"](Vt(e.to)).catch(Tn):Promise.resolve()}return{route:n,href:de(()=>n.value.href),isActive:r,isExactActive:a,navigate:s}}const Zg=he({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Rl,setup(e,{slots:t}){const i=rr(Rl(e)),{options:n}=Xt(mr),o=de(()=>({[jl(e.activeClass,n.linkActiveClass,"router-link-active")]:i.isActive,[jl(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const r=t.default&&t.default(i);return e.custom?r:te("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:o.value},r)}}}),Qg=Zg;function Jg(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function tb(e,t){for(const i in t){const n=t[i],o=e[i];if(typeof n=="string"){if(n!==o)return!1}else if(!ze(o)||o.length!==n.length||n.some((r,a)=>r!==o[a]))return!1}return!0}function Fl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const jl=(e,t,i)=>e!=null?e:t!=null?t:i,eb=he({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:i}){const n=Xt(va),o=de(()=>e.route||n.value),r=Xt(Bl,0),a=de(()=>{let c=Vt(r);const{matched:d}=o.value;let h;for(;(h=d[c])&&!h.components;)c++;return c}),s=de(()=>o.value.matched[a.value]);Xi(Bl,de(()=>a.value+1)),Xi(oh,s),Xi(va,o);const l=Yi();return Gi(()=>[l.value,s.value,e.name],([c,d,h],[u,m,g])=>{d&&(d.instances[h]=c,m&&m!==d&&c&&c===u&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),c&&d&&(!m||!an(d,m)||!u)&&(d.enterCallbacks[h]||[]).forEach(f=>f(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,h=s.value,u=h&&h.components[d];if(!u)return Hl(i.default,{Component:u,route:c});const m=h.props[d],g=m?m===!0?c.params:typeof m=="function"?m(c):m:null,k=te(u,Et({},g,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(h.instances[d]=null)},ref:l}));return Hl(i.default,{Component:k,route:c})||k}}});function Hl(e,t){if(!e)return null;const i=e(t);return i.length===1?i[0]:i}const rh=eb;function ib(e){const t=$g(e.routes,e),i=e.parseQuery||xa,n=e.stringifyQuery||Ml,o=e.history,r=yn(),a=yn(),s=yn(),l=Kn(ti);let c=ti;Bi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Br.bind(null,D=>""+D),h=Br.bind(null,Gg),u=Br.bind(null,Ro);function m(D,K){let Y,it;return Kd(D)?(Y=t.getRecordMatcher(D),it=K):it=D,t.addRoute(it,Y)}function g(D){const K=t.getRecordMatcher(D);K&&t.removeRoute(K)}function f(){return t.getRoutes().map(D=>D.record)}function k(D){return!!t.getRecordMatcher(D)}function x(D,K){if(K=Et({},K||l.value),typeof D=="string"){const z=Rr(i,D,K.path),O=t.resolve({path:z.path},K),P=o.createHref(z.fullPath);return Et(z,O,{params:u(O.params),hash:Ro(z.hash),redirectedFrom:void 0,href:P})}let Y;if("path"in D)Y=Et({},D,{path:Rr(i,D.path,K.path).path});else{const z=Et({},D.params);for(const O in z)z[O]==null&&delete z[O];Y=Et({},D,{params:h(z)}),K.params=h(K.params)}const it=t.resolve(Y,K),vt=D.hash||"";it.params=d(u(it.params));const b=sg(n,Et({},D,{hash:Yg(vt),path:it.path})),w=o.createHref(b);return Et({fullPath:b,hash:vt,query:n===Ml?Xg(D.query):D.query||{}},it,{redirectedFrom:void 0,href:w})}function C(D){return typeof D=="string"?Rr(i,D,l.value.path):Et({},D)}function I(D,K){if(c!==D)return sn(8,{from:K,to:D})}function v(D){return y(D)}function S(D){return v(Et(C(D),{replace:!0}))}function E(D){const K=D.matched[D.matched.length-1];if(K&&K.redirect){const{redirect:Y}=K;let it=typeof Y=="function"?Y(D):Y;return typeof it=="string"&&(it=it.includes("?")||it.includes("#")?it=C(it):{path:it},it.params={}),Et({query:D.query,hash:D.hash,params:"path"in it?{}:D.params},it)}}function y(D,K){const Y=c=x(D),it=l.value,vt=D.state,b=D.force,w=D.replace===!0,z=E(Y);if(z)return y(Et(C(z),{state:typeof z=="object"?Et({},vt,z.state):vt,force:b,replace:w}),K||Y);const O=Y;O.redirectedFrom=K;let P;return!b&&lg(n,it,Y)&&(P=sn(16,{to:O,from:it}),At(it,it,!0,!1)),(P?Promise.resolve(P):M(O,it)).catch(B=>Ve(B)?Ve(B,2)?B:Ot(B):H(B,O,it)).then(B=>{if(B){if(Ve(B,2))return y(Et({replace:w},C(B.to),{state:typeof B.to=="object"?Et({},vt,B.to.state):vt,force:b}),K||O)}else B=U(O,it,!0,w,vt);return T(O,it,B),B})}function A(D,K){const Y=I(D,K);return Y?Promise.reject(Y):Promise.resolve()}function $(D){const K=Bt.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(D):D()}function M(D,K){let Y;const[it,vt,b]=nb(D,K);Y=Fr(it.reverse(),"beforeRouteLeave",D,K);for(const z of it)z.leaveGuards.forEach(O=>{Y.push(ii(O,D,K))});const w=A.bind(null,D,K);return Y.push(w),Ct(Y).then(()=>{Y=[];for(const z of r.list())Y.push(ii(z,D,K));return Y.push(w),Ct(Y)}).then(()=>{Y=Fr(vt,"beforeRouteUpdate",D,K);for(const z of vt)z.updateGuards.forEach(O=>{Y.push(ii(O,D,K))});return Y.push(w),Ct(Y)}).then(()=>{Y=[];for(const z of b)if(z.beforeEnter)if(ze(z.beforeEnter))for(const O of z.beforeEnter)Y.push(ii(O,D,K));else Y.push(ii(z.beforeEnter,D,K));return Y.push(w),Ct(Y)}).then(()=>(D.matched.forEach(z=>z.enterCallbacks={}),Y=Fr(b,"beforeRouteEnter",D,K),Y.push(w),Ct(Y))).then(()=>{Y=[];for(const z of a.list())Y.push(ii(z,D,K));return Y.push(w),Ct(Y)}).catch(z=>Ve(z,8)?z:Promise.reject(z))}function T(D,K,Y){s.list().forEach(it=>$(()=>it(D,K,Y)))}function U(D,K,Y,it,vt){const b=I(D,K);if(b)return b;const w=K===ti,z=Bi?history.state:{};Y&&(it||w?o.replace(D.fullPath,Et({scroll:w&&z&&z.scroll},vt)):o.push(D.fullPath,vt)),l.value=D,At(D,K,Y,w),Ot()}let j;function ht(){j||(j=o.listen((D,K,Y)=>{if(!Qe.listening)return;const it=x(D),vt=E(it);if(vt){y(Et(vt,{replace:!0}),it).catch(Tn);return}c=it;const b=l.value;Bi&&gg(zl(b.fullPath,Y.delta),pr()),M(it,b).catch(w=>Ve(w,12)?w:Ve(w,2)?(y(w.to,it).then(z=>{Ve(z,20)&&!Y.delta&&Y.type===Fn.pop&&o.go(-1,!1)}).catch(Tn),Promise.reject()):(Y.delta&&o.go(-Y.delta,!1),H(w,it,b))).then(w=>{w=w||U(it,b,!1),w&&(Y.delta&&!Ve(w,8)?o.go(-Y.delta,!1):Y.type===Fn.pop&&Ve(w,20)&&o.go(-1,!1)),T(it,b,w)}).catch(Tn)}))}let at=yn(),rt=yn(),X;function H(D,K,Y){Ot(D);const it=rt.list();return it.length?it.forEach(vt=>vt(D,K,Y)):console.error(D),Promise.reject(D)}function It(){return X&&l.value!==ti?Promise.resolve():new Promise((D,K)=>{at.add([D,K])})}function Ot(D){return X||(X=!D,ht(),at.list().forEach(([K,Y])=>D?Y(D):K()),at.reset()),D}function At(D,K,Y,it){const{scrollBehavior:vt}=e;if(!Bi||!vt)return Promise.resolve();const b=!Y&&bg(zl(D.fullPath,0))||(it||!Y)&&history.state&&history.state.scroll||null;return yd().then(()=>vt(D,K,b)).then(w=>w&&fg(w)).catch(w=>H(w,D,K))}const Mt=D=>o.go(D);let Qt;const Bt=new Set,Qe={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,hasRoute:k,getRoutes:f,resolve:x,options:e,push:v,replace:S,go:Mt,back:()=>Mt(-1),forward:()=>Mt(1),beforeEach:r.add,beforeResolve:a.add,afterEach:s.add,onError:rt.add,isReady:It,install(D){const K=this;D.component("RouterLink",Qg),D.component("RouterView",rh),D.config.globalProperties.$router=K,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>Vt(l)}),Bi&&!Qt&&l.value===ti&&(Qt=!0,v(o.location).catch(vt=>{}));const Y={};for(const vt in ti)Object.defineProperty(Y,vt,{get:()=>l.value[vt],enumerable:!0});D.provide(mr,K),D.provide(fr,ud(Y)),D.provide(va,l);const it=D.unmount;Bt.add(D),D.unmount=function(){Bt.delete(D),Bt.size<1&&(c=ti,j&&j(),j=null,l.value=ti,Qt=!1,X=!1),it()}}};function Ct(D){return D.reduce((K,Y)=>K.then(()=>$(Y)),Promise.resolve())}return Qe}function nb(e,t){const i=[],n=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let a=0;aan(c,s))?n.push(s):i.push(s));const l=e.matched[a];l&&(t.matched.find(c=>an(c,l))||o.push(l))}return[i,n,o]}function P5(){return Xt(mr)}function ah(){return Xt(fr)}const ob="modulepreload",rb=function(e){return"/ra/"+e},Vl={},ut=function(t,i,n){let o=Promise.resolve();if(i&&i.length>0){const r=document.getElementsByTagName("link");o=Promise.all(i.map(a=>{if(a=rb(a),a in Vl)return;Vl[a]=!0;const s=a.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!n)for(let h=r.length-1;h>=0;h--){const u=r[h];if(u.href===a&&(!s||u.rel==="stylesheet"))return}else if(document.querySelector('link[href="'.concat(a,'"]').concat(l)))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":ob,s||(d.as="script",d.crossOrigin=""),d.href=a,document.head.appendChild(d),s)return new Promise((h,u)=>{d.addEventListener("load",h),d.addEventListener("error",()=>u(new Error("Unable to preload CSS for ".concat(a))))})}))}return o.then(()=>t()).catch(r=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r})},gi={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};let Ri,sh,gr,lh=!1,Fo=!1,hs=!1,ce=!1,Wl=null,wa=!1;const ab={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},ch=e=>{const t=new URL(e,Nt.$resourcesUrl$);return t.origin!==Jn.location.origin?t.href:t.pathname},Ei=(e,t="")=>()=>{},sb="slot-fb{display:contents}slot-fb[hidden]{display:none}",ql="http://www.w3.org/1999/xlink",Yl={},lb="http://www.w3.org/2000/svg",cb="http://www.w3.org/1999/xhtml",db=e=>e!=null,us=e=>(e=typeof e,e==="object"||e==="function");function hb(e){var t,i,n;return(n=(i=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||i===void 0?void 0:i.getAttribute("content"))!==null&&n!==void 0?n:void 0}const p=(e,t,...i)=>{let n=null,o=null,r=null,a=!1,s=!1;const l=[],c=h=>{for(let u=0;uh[u]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,pb);const d=jo(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=o,d.$name$=r,d},jo=(e,t)=>{const i={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return i.$attrs$=null,i.$key$=null,i.$name$=null,i},Q={},ub=e=>e&&e.$tag$===Q,pb={forEach:(e,t)=>e.map(Nl).forEach(t),map:(e,t)=>e.map(Nl).map(t).map(mb)},Nl=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),mb=e=>{if(typeof e.vtag=="function"){const i=Object.assign({},e.vattrs);return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),p(e.vtag,i,...e.vchildren||[])}const t=jo(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},fb=e=>yh.map(t=>t(e)).find(t=>!!t),gb=e=>yh.push(e),bb=e=>Oi(e).$modeName$,xb=(e,t)=>e!=null&&!us(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,vb=e=>e,L=(e,t,i)=>{const n=vb(e);return{emit:o=>wb(n,t,{bubbles:!!(i&4),composed:!!(i&2),cancelable:!!(i&1),detail:o})}},wb=(e,t,i)=>{const n=Nt.ce(t,i);return e.dispatchEvent(n),n},Ul=new WeakMap,yb=(e,t,i)=>{let n=Vo.get(e);Gb&&i?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,Vo.set(e,n)},kb=(e,t,i)=>{var n;const o=dh(t,i),r=Vo.get(o);if(e=e.nodeType===11?e:Ie,r)if(typeof r=="string"){e=e.head||e;let a=Ul.get(e),s;if(a||Ul.set(e,a=new Set),!a.has(o)){{s=Ie.createElement("style"),s.innerHTML=r;const l=(n=Nt.$nonce$)!==null&&n!==void 0?n:hb(Ie);l!=null&&s.setAttribute("nonce",l),e.insertBefore(s,e.querySelector("link"))}t.$flags$&4&&(s.innerHTML+=sb),a&&a.add(o)}}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return o},Cb=e=>{const t=e.$cmpMeta$,i=e.$hostElement$,n=t.$flags$,o=Ei("attachStyles",t.$tagName$),r=kb(i.shadowRoot?i.shadowRoot:i.getRootNode(),t,e.$modeName$);n&10&&(i["s-sc"]=r,i.classList.add(r+"-h"),n&2&&i.classList.add(r+"-s")),o()},dh=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Gl=(e,t,i,n,o,r)=>{if(i!==n){let a=Jl(e,t),s=t.toLowerCase();if(t==="class"){const l=e.classList,c=Xl(i),d=Xl(n);l.remove(...c.filter(h=>h&&!d.includes(h))),l.add(...d.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in i)(!n||n[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in n)(!i||n[l]!==i[l])&&(l.includes("-")?e.style.setProperty(l,n[l]):e.style[l]=n[l])}else if(t!=="key")if(t==="ref")n&&n(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):Jl(Jn,s)?t=s.slice(2):t=s[2]+t.slice(3),i||n){const l=t.endsWith(hh);t=t.replace(Sb,""),i&&Nt.rel(e,t,i,l),n&&Nt.ael(e,t,n,l)}}else{const l=us(n);if((a||l&&n!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=n;else{const d=n==null?"":n;t==="list"?a=!1:(i==null||e[t]!=d)&&(e[t]=d)}}catch(d){}let c=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,c=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(ql,t):e.removeAttribute(t)):(!a||r&4||o)&&!l&&(n=n===!0?"":n,c?e.setAttributeNS(ql,t,n):e.setAttribute(t,n))}}},Eb=/\s/,Xl=e=>e?e.split(Eb):[],hh="Capture",Sb=new RegExp(hh+"$"),uh=(e,t,i,n)=>{const o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||Yl,a=t.$attrs$||Yl;for(n in r)n in a||Gl(o,n,r[n],void 0,i,t.$flags$);for(n in a)Gl(o,n,r[n],a[n],i,t.$flags$)},Ho=(e,t,i,n)=>{var o;const r=t.$children$[i];let a=0,s,l,c;if(lh||(hs=!0,r.$tag$==="slot"&&(Ri&&n.classList.add(Ri+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)s=r.$elm$=Ie.createTextNode(r.$text$);else if(r.$flags$&1)s=r.$elm$=Ie.createTextNode("");else{if(ce||(ce=r.$tag$==="svg"),s=r.$elm$=Ie.createElementNS(ce?lb:cb,r.$flags$&2?"slot-fb":r.$tag$),ce&&r.$tag$==="foreignObject"&&(ce=!1),uh(null,r,ce),db(Ri)&&s["s-si"]!==Ri&&s.classList.add(s["s-si"]=Ri),r.$children$)for(a=0;a{var i;Nt.$flags$|=1;const n=e.childNodes;for(let o=n.length-1;o>=0;o--){const r=n[o];r["s-hn"]!==gr&&r["s-ol"]&&(fh(r).insertBefore(r,ps(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,r.nodeType===1&&r.setAttribute("slot",(i=r["s-sn"])!==null&&i!==void 0?i:""),hs=!0),t&&jn(r,t)}Nt.$flags$&=-2},ph=(e,t,i,n,o,r)=>{let a=e["s-cr"]&&e["s-cr"].parentNode||e,s;for(a.shadowRoot&&a.tagName===gr&&(a=a.shadowRoot);o<=r;++o)n[o]&&(s=Ho(null,i,o,e),s&&(n[o].$elm$=s,a.insertBefore(s,ps(t))))},mh=(e,t,i)=>{for(let n=t;n<=i;++n){const o=e[n];if(o){const r=o.$elm$;xh(o),r&&(Fo=!0,r["s-ol"]?r["s-ol"].remove():jn(r,!0),r.remove())}}},Ab=(e,t,i,n,o=!1)=>{let r=0,a=0,s=0,l=0,c=t.length-1,d=t[0],h=t[c],u=n.length-1,m=n[0],g=n[u],f,k;for(;r<=c&&a<=u;)if(d==null)d=t[++r];else if(h==null)h=t[--c];else if(m==null)m=n[++a];else if(g==null)g=n[--u];else if(vo(d,m,o))Fi(d,m,o),d=t[++r],m=n[++a];else if(vo(h,g,o))Fi(h,g,o),h=t[--c],g=n[--u];else if(vo(d,g,o))(d.$tag$==="slot"||g.$tag$==="slot")&&jn(d.$elm$.parentNode,!1),Fi(d,g,o),e.insertBefore(d.$elm$,h.$elm$.nextSibling),d=t[++r],g=n[--u];else if(vo(h,m,o))(d.$tag$==="slot"||g.$tag$==="slot")&&jn(h.$elm$.parentNode,!1),Fi(h,m,o),e.insertBefore(h.$elm$,d.$elm$),h=t[--c],m=n[++a];else{for(s=-1,l=r;l<=c;++l)if(t[l]&&t[l].$key$!==null&&t[l].$key$===m.$key$){s=l;break}s>=0?(k=t[s],k.$tag$!==m.$tag$?f=Ho(t&&t[a],i,s,e):(Fi(k,m,o),t[s]=void 0,f=k.$elm$),m=n[++a]):(f=Ho(t&&t[a],i,a,e),m=n[++a]),f&&fh(d.$elm$).insertBefore(f,ps(d.$elm$))}r>c?ph(e,n[u+1]==null?null:n[u+1].$elm$,i,n,a,u):a>u&&mh(t,r,c)},vo=(e,t,i=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:i?!0:e.$key$===t.$key$:!1,ps=e=>e&&e["s-ol"]||e,fh=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Fi=(e,t,i=!1)=>{const n=t.$elm$=e.$elm$,o=e.$children$,r=t.$children$,a=t.$tag$,s=t.$text$;let l;s===null?(ce=a==="svg"?!0:a==="foreignObject"?!1:ce,a==="slot"||uh(e,t,ce),o!==null&&r!==null?Ab(n,o,t,r,i):r!==null?(e.$text$!==null&&(n.textContent=""),ph(n,null,t,r,0,r.length-1)):o!==null&&mh(o,0,o.length-1),ce&&a==="svg"&&(ce=!1)):(l=n["s-cr"])?l.parentNode.textContent=s:e.$text$!==s&&(n.data=s)},gh=e=>{const t=e.childNodes;for(const i of t)if(i.nodeType===1){if(i["s-sr"]){const n=i["s-sn"];i.hidden=!1;for(const o of t)if(o!==i){if(o["s-hn"]!==i["s-hn"]||n!==""){if(o.nodeType===1&&(n===o.getAttribute("slot")||n===o["s-sn"])){i.hidden=!0;break}}else if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=!0;break}}}gh(i)}},Ye=[],bh=e=>{let t,i,n;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.childNodes;const r=o["s-sn"];for(n=i.length-1;n>=0;n--)if(t=i[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"]&&!gi.experimentalSlotFixes)if(Kl(t,r)){let a=Ye.find(s=>s.$nodeToRelocate$===t);Fo=!0,t["s-sn"]=t["s-sn"]||r,a?(a.$nodeToRelocate$["s-sh"]=o["s-hn"],a.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],Ye.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&Ye.map(s=>{Kl(s.$nodeToRelocate$,t["s-sn"])&&(a=Ye.find(l=>l.$nodeToRelocate$===t),a&&!s.$slotRefNode$&&(s.$slotRefNode$=a.$slotRefNode$))})}else Ye.some(a=>a.$nodeToRelocate$===t)||Ye.push({$nodeToRelocate$:t})}o.nodeType===1&&bh(o)}},Kl=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",xh=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(xh)},Ib=(e,t,i=!1)=>{var n,o,r,a;const s=e.$hostElement$,l=e.$cmpMeta$,c=e.$vnode$||jo(null,null),d=ub(t)?t:p(null,null,t);if(gr=s.tagName,l.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},l.$attrsToReflect$.map(([h,u])=>d.$attrs$[u]=s[h])),i&&d.$attrs$)for(const h of Object.keys(d.$attrs$))s.hasAttribute(h)&&!["key","ref","style","class"].includes(h)&&(d.$attrs$[h]=s[h]);d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=c.$elm$=s.shadowRoot||s,Ri=s["s-sc"],sh=s["s-cr"],lh=(l.$flags$&1)!==0,Fo=!1,Fi(c,d,i);{if(Nt.$flags$|=1,hs){bh(d.$elm$);for(const h of Ye){const u=h.$nodeToRelocate$;if(!u["s-ol"]){const m=Ie.createTextNode("");m["s-nr"]=u,u.parentNode.insertBefore(u["s-ol"]=m,u)}}for(const h of Ye){const u=h.$nodeToRelocate$,m=h.$slotRefNode$;if(m){const g=m.parentNode;let f=m.nextSibling;{let k=(n=u["s-ol"])===null||n===void 0?void 0:n.previousSibling;for(;k;){let x=(o=k["s-nr"])!==null&&o!==void 0?o:null;if(x&&x["s-sn"]===u["s-sn"]&&g===x.parentNode&&(x=x.nextSibling,!x||!x["s-nr"])){f=x;break}k=k.previousSibling}}(!f&&g!==u.parentNode||u.nextSibling!==f)&&u!==f&&(!u["s-hn"]&&u["s-ol"]&&(u["s-hn"]=u["s-ol"].parentNode.nodeName),g.insertBefore(u,f),u.nodeType===1&&(u.hidden=(r=u["s-ih"])!==null&&r!==void 0?r:!1))}else u.nodeType===1&&(i&&(u["s-ih"]=(a=u.hidden)!==null&&a!==void 0?a:!1),u.hidden=!0)}}Fo&&gh(d.$elm$),Nt.$flags$&=-2,Ye.length=0}},zb=(e,t)=>{},ms=(e,t)=>(e.$flags$|=16,zb(e,e.$ancestorComponent$),Yt(()=>_b(e,t))),_b=(e,t)=>{const i=e.$hostElement$,n=Ei("scheduleUpdate",e.$cmpMeta$.$tagName$),o=i;let r;return t?r=Ki(o,"componentWillLoad"):r=Ki(o,"componentWillUpdate"),r=Zl(r,()=>Ki(o,"componentWillRender")),n(),Zl(r,()=>Ob(e,o,t))},Zl=(e,t)=>Tb(e)?e.then(t):t(),Tb=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ob=async(e,t,i)=>{const n=e.$hostElement$,o=Ei("update",e.$cmpMeta$.$tagName$);n["s-rc"],i&&Cb(e);const r=Ei("render",e.$cmpMeta$.$tagName$);$b(e,t,n,i),r(),o(),Lb(e)},$b=(e,t,i,n)=>{try{Wl=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(gi.hasRenderFn||gi.reflect)&&(gi.vdomRender||gi.reflect)&&(gi.hydrateServerSide||Ib(e,t,n))}catch(l){Qn(l,e.$hostElement$)}return Wl=null,null},Lb=e=>{const t=e.$cmpMeta$.$tagName$,i=e.$hostElement$,n=Ei("postUpdate",t),o=i;e.$ancestorComponent$,Ki(o,"componentDidRender"),e.$flags$&64?(Ki(o,"componentDidUpdate"),n()):(e.$flags$|=64,Ki(o,"componentDidLoad"),n())},ue=e=>{{const t=Oi(e),i=t.$hostElement$.isConnected;return i&&(t.$flags$&18)===2&&ms(t,!1),i}},Ki=(e,t,i)=>{if(e&&e[t])try{return e[t](i)}catch(n){Qn(n)}},Db=(e,t)=>Oi(e).$instanceValues$.get(t),Pb=(e,t,i,n)=>{const o=Oi(e),r=e,a=o.$instanceValues$.get(t),s=o.$flags$,l=r;i=xb(i,n.$members$[t][0]);const c=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!c){o.$instanceValues$.set(t,i);{if(n.$watchers$&&s&128){const h=n.$watchers$[t];h&&h.map(u=>{try{l[u](i,a,t)}catch(m){Qn(m,r)}})}if((s&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(i,a,t)===!1)return;ms(o,!1)}}}},Mb=(e,t,i)=>{var n;const o=e.prototype;if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$);r.map(([a,[s]])=>{(s&31||s&32)&&Object.defineProperty(o,a,{get(){return Db(this,a)},set(l){Pb(this,a,l,t)},configurable:!0,enumerable:!0})});{const a=new Map;o.attributeChangedCallback=function(s,l,c){Nt.jmp(()=>{var d;const h=a.get(s);if(this.hasOwnProperty(h))c=this[h],delete this[h];else{if(o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==c)return;if(h==null){const u=Oi(this),m=u==null?void 0:u.$flags$;if(m&&!(m&8)&&m&128&&c!==l){const f=this,k=(d=t.$watchers$)===null||d===void 0?void 0:d[s];k==null||k.forEach(x=>{f[x]!=null&&f[x].call(f,c,l,s)})}return}}this[h]=c===null&&typeof this[h]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!==null&&n!==void 0?n:{}),...r.filter(([s,l])=>l[0]&15).map(([s,l])=>{var c;const d=l[1]||s;return a.set(d,s),l[0]&512&&((c=t.$attrsToReflect$)===null||c===void 0||c.push([s,d])),d})]))}}return e},Bb=async(e,t,i,n)=>{let o;if(!(t.$flags$&32)&&(t.$flags$|=32,o=e.constructor,customElements.whenDefined(i.$tagName$).then(()=>t.$flags$|=128),o.style)){let a=o.style;typeof a!="string"&&(a=a[t.$modeName$=fb(e)]);const s=dh(i,t.$modeName$);if(!Vo.has(s)){const l=Ei("registerStyles",i.$tagName$);yb(s,a,!!(i.$flags$&1)),l()}}t.$ancestorComponent$,ms(t,!0)},Ql=e=>{},Rb=e=>{if(!(Nt.$flags$&1)){const t=Oi(e),i=t.$cmpMeta$,n=Ei("connectedCallback",i.$tagName$);t.$flags$&1?(vh(e,t,i.$listeners$),t!=null&&t.$lazyInstance$?Ql(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ql(t.$lazyInstance$))):(t.$flags$|=1,i.$flags$&12&&Fb(e),i.$members$&&Object.entries(i.$members$).map(([o,[r]])=>{if(r&31&&e.hasOwnProperty(o)){const a=e[o];delete e[o],e[o]=a}}),Bb(e,t,i)),n()}},Fb=e=>{const t=e["s-cr"]=Ie.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},jb=async e=>{if(!(Nt.$flags$&1)){const t=Oi(e);t.$rmListeners$&&(t.$rmListeners$.map(i=>i()),t.$rmListeners$=void 0)}},et=(e,t)=>{const i={$flags$:t[0],$tagName$:t[1]};i.$members$=t[2],i.$listeners$=t[3],i.$watchers$=e.$watchers$,i.$attrsToReflect$=[];const n=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){qb(this,i)},connectedCallback(){Rb(this),n&&n.call(this)},disconnectedCallback(){jb(this),o&&o.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(i.$flags$&16)})}}),e.is=i.$tagName$,Mb(e,i)},vh=(e,t,i,n)=>{i&&i.map(([o,r,a])=>{const s=Vb(e,o),l=Hb(t,a),c=Wb(o);Nt.ael(s,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Nt.rel(s,r,l,c))})},Hb=(e,t)=>i=>{try{gi.lazyLoad||e.$hostElement$[t](i)}catch(n){Qn(n)}},Vb=(e,t)=>t&4?Ie:t&8?Jn:t&16?Ie.body:e,Wb=e=>Nb?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,wh=new WeakMap,Oi=e=>wh.get(e),qb=(e,t)=>{const i={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return vh(e,i,t.$listeners$),wh.set(e,i)},Jl=(e,t)=>t in e,Qn=(e,t)=>(0,console.error)(e,t),Vo=new Map,yh=[],Jn=typeof window<"u"?window:{},Ie=Jn.document||{head:{}},tt=Jn.HTMLElement||class{},Nt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,n)=>e.addEventListener(t,i,n),rel:(e,t,i,n)=>e.removeEventListener(t,i,n),ce:(e,t)=>new CustomEvent(e,t)},Yb=e=>{Object.assign(Nt,e)},Nb=(()=>{let e=!1;try{Ie.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),Ub=e=>Promise.resolve(e),Gb=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),ya=[],kh=[],Ch=(e,t)=>i=>{e.push(i),wa||(wa=!0,t&&Nt.$flags$&4?Xb(ka):Nt.raf(ka))},tc=e=>{for(let t=0;t{tc(ya),tc(kh),(wa=ya.length>0)&&Nt.raf(ka)},Xb=e=>Ub().then(e),ln=Ch(ya,!1),Yt=Ch(kh,!0);/*! + * (C) Ionic http://ionicframework.com - MIT License + */const ec=(e,t=0)=>new Promise(i=>{Kb(e,t,i)}),Kb=(e,t=0,i)=>{let n,o;const r={passive:!0},a=500,s=()=>{n&&n()},l=c=>{(c===void 0||e===c.target)&&(s(),i(c))};return e&&(e.addEventListener("webkitTransitionEnd",l,r),e.addEventListener("transitionend",l,r),o=setTimeout(l,t+a),n=()=>{o&&(clearTimeout(o),o=void 0),e.removeEventListener("webkitTransitionEnd",l,r),e.removeEventListener("transitionend",l,r)}),s},Re=(e,t)=>{e.componentOnReady?e.componentOnReady().then(i=>t(i)):gt(()=>t(e))},Hn=e=>e.componentOnReady!==void 0,ci=(e,t=[])=>{const i={};return t.forEach(n=>{e.hasAttribute(n)&&(e.getAttribute(n)!==null&&(i[n]=e.getAttribute(n)),e.removeAttribute(n))}),i},Zb=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],Ze=(e,t)=>{let i=Zb;return t&&t.length>0&&(i=i.filter(n=>!t.includes(n))),ci(e,i)},cn=(e,t,i,n)=>{var o;if(typeof window<"u"){const r=window,a=(o=r==null?void 0:r.Ionic)===null||o===void 0?void 0:o.config;if(a){const s=a.get("_ael");if(s)return s(e,t,i,n);if(a._ael)return a._ael(e,t,i,n)}}return e.addEventListener(t,i,n)},Vn=(e,t,i,n)=>{var o;if(typeof window<"u"){const r=window,a=(o=r==null?void 0:r.Ionic)===null||o===void 0?void 0:o.config;if(a){const s=a.get("_rel");if(s)return s(e,t,i,n);if(a._rel)return a._rel(e,t,i,n)}}return e.removeEventListener(t,i,n)},Lt=(e,t=e)=>e.shadowRoot||t,gt=e=>typeof __zone_symbol__requestAnimationFrame=="function"?__zone_symbol__requestAnimationFrame(e):typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(e),Eh=e=>!!e.shadowRoot&&!!e.attachShadow,to=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},Ca=e=>{if(e.focus(),e.classList.contains("ion-focusable")){const t=e.closest("ion-app");t&&t.setFocus([e])}},Wo=(e,t)=>{let i;const n=e.getAttribute("aria-labelledby"),o=e.id;let r=n!==null&&n.trim()!==""?n:t+"-lbl",a=n!==null&&n.trim()!==""?document.getElementById(n):to(e);return a?(n===null&&(a.id=r),i=a.textContent,a.setAttribute("aria-hidden","true")):o.trim()!==""&&(a=document.querySelector('label[for="'.concat(o,'"]')),a&&(a.id!==""?r=a.id:a.id=r="".concat(o,"-lbl"),i=a.textContent)),{label:a,labelId:r,labelText:i}},dn=(e,t,i,n,o)=>{if(e||Eh(t)){let r=t.querySelector("input.aux-input");r||(r=t.ownerDocument.createElement("input"),r.type="hidden",r.classList.add("aux-input"),t.appendChild(r)),r.disabled=o,r.name=i,r.value=n||""}},Si=(e,t,i)=>Math.max(e,Math.min(t,i)),Wt=(e,t)=>{if(!e){const i="ASSERT: "+t;console.error(i);debugger;throw new Error(i)}},M5=e=>e.timeStamp||Date.now(),B5=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const i=t[0];return{x:i.clientX,y:i.clientY}}if(e.pageX!==void 0)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},Wn=e=>{const t=document.dir==="rtl";switch(e){case"start":return t;case"end":return!t;default:throw new Error('"'.concat(e,'" is not a valid value for [side]. Use "start" or "end" instead.'))}},fs=(e,t)=>{const i=e._original||e;return{_original:e,emit:Qb(i.emit.bind(i),t)}},Qb=(e,t=0)=>{let i;return(...n)=>{clearTimeout(i),i=setTimeout(e,t,...n)}},Sh=(e,t)=>{if(e!=null||(e={}),t!=null||(t={}),e===t)return!0;const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(const n of i)if(!(n in t)||e[n]!==t[n])return!1;return!0};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ah="data:image/svg+xml;utf8,",Ih="data:image/svg+xml;utf8,",Jb="data:image/svg+xml;utf8,",zh="data:image/svg+xml;utf8,",_h="data:image/svg+xml;utf8,",t0="data:image/svg+xml;utf8,",qo="data:image/svg+xml;utf8,",e0="data:image/svg+xml;utf8,",Ea="data:image/svg+xml;utf8,",Sa="data:image/svg+xml;utf8,",i0="data:image/svg+xml;utf8,",n0="data:image/svg+xml;utf8,",o0="data:image/svg+xml;utf8,",r0="data:image/svg+xml;utf8,";/*! + * (C) Ionic http://ionicframework.com - MIT License + */class a0{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,i){const n=this.m.get(t);return n!==void 0?n:i}getBoolean(t,i=!1){const n=this.m.get(t);return n===void 0?i:typeof n=="string"?n==="true":!!n}getNumber(t,i){const n=parseFloat(this.m.get(t));return isNaN(n)?i!==void 0?i:NaN:n}set(t,i){this.m.set(t,i)}}const pt=new a0,s0=e=>{try{const t=e.sessionStorage.getItem(Th);return t!==null?JSON.parse(t):{}}catch(t){return{}}},l0=(e,t)=>{try{e.sessionStorage.setItem(Th,JSON.stringify(t))}catch(i){return}},c0=e=>{const t={};return e.location.search.slice(1).split("&").map(i=>i.split("=")).map(([i,n])=>[decodeURIComponent(i),decodeURIComponent(n)]).filter(([i])=>d0(i,ic)).map(([i,n])=>[i.slice(ic.length),n]).forEach(([i,n])=>{t[i]=n}),t},d0=(e,t)=>e.substr(0,t.length)===t,ic="ionic:",Th="ionic-persist-config",h0=e=>Oh(e),$e=(e,t)=>(typeof e=="string"&&(t=e,e=void 0),h0(e).includes(t)),Oh=(e=window)=>{if(typeof e>"u")return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return t==null&&(t=e.Ionic.platforms=u0(e),t.forEach(i=>e.document.documentElement.classList.add("plt-".concat(i)))),t},u0=e=>{const t=pt.get("platform");return Object.keys(nc).filter(i=>{const n=t==null?void 0:t[i];return typeof n=="function"?n(e):nc[i](e)})},p0=e=>br(e)&&!Lh(e),gs=e=>!!(Ai(e,/iPad/i)||Ai(e,/Macintosh/i)&&br(e)),m0=e=>Ai(e,/iPhone/i),f0=e=>Ai(e,/iPhone|iPod/i)||gs(e),$h=e=>Ai(e,/android|sink/i),g0=e=>$h(e)&&!Ai(e,/mobile/i),b0=e=>{const t=e.innerWidth,i=e.innerHeight,n=Math.min(t,i),o=Math.max(t,i);return n>390&&n<520&&o>620&&o<800},x0=e=>{const t=e.innerWidth,i=e.innerHeight,n=Math.min(t,i),o=Math.max(t,i);return gs(e)||g0(e)||n>460&&n<820&&o>780&&o<1400},br=e=>k0(e,"(any-pointer:coarse)"),v0=e=>!br(e),Lh=e=>Dh(e)||Ph(e),Dh=e=>!!(e.cordova||e.phonegap||e.PhoneGap),Ph=e=>{const t=e.Capacitor;return!!(t!=null&&t.isNative)},w0=e=>Ai(e,/electron/i),y0=e=>{var t;return!!(!((t=e.matchMedia)===null||t===void 0)&&t.call(e,"(display-mode: standalone)").matches||e.navigator.standalone)},Ai=(e,t)=>t.test(e.navigator.userAgent),k0=(e,t)=>{var i;return(i=e.matchMedia)===null||i===void 0?void 0:i.call(e,t).matches},nc={ipad:gs,iphone:m0,ios:f0,android:$h,phablet:b0,tablet:x0,cordova:Dh,capacitor:Ph,electron:w0,pwa:y0,mobile:br,mobileweb:p0,desktop:v0,hybrid:Lh};let ji;const F=e=>e&&bb(e)||ji,C0=(e={})=>{if(typeof window>"u")return;const t=window.document,i=window,n=i.Ionic=i.Ionic||{},o={};e._ael&&(o.ael=e._ael),e._rel&&(o.rel=e._rel),e._ce&&(o.ce=e._ce),Yb(o);const r=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s0(i)),{persistConfig:!1}),n.config),c0(i)),e);pt.reset(r),pt.getBoolean("persistConfig")&&l0(i,r),Oh(i),n.config=pt,n.mode=ji=pt.get("mode",t.documentElement.getAttribute("mode")||($e(i,"ios")?"ios":"md")),pt.set("mode",ji),t.documentElement.setAttribute("mode",ji),t.documentElement.classList.add(ji),pt.getBoolean("_testing")&&pt.set("animated",!1);const a=l=>{var c;return(c=l.tagName)===null||c===void 0?void 0:c.startsWith("ION-")},s=l=>["ios","md"].includes(l);gb(l=>{for(;l;){const c=l.mode||l.getAttribute("mode");if(c){if(s(c))return c;a(l)&&console.warn('Invalid ionic mode: "'+c+'", expected: "ios" or "md"')}l=l.parentElement}return ji})};/*! + * (C) Ionic http://ionicframework.com - MIT License + */let jr;const E0=()=>{if(typeof window>"u")return new Map;if(!jr){const e=window;e.Ionicons=e.Ionicons||{},jr=e.Ionicons.map=e.Ionicons.map||new Map}return jr},S0=e=>{let t=Hr(e.src);return t||(t=Mh(e.name,e.icon,e.mode,e.ios,e.md),t?A0(t):e.icon&&(t=Hr(e.icon),t||(t=Hr(e.icon[e.mode]),t))?t:null)},A0=e=>{const t=E0().get(e);return t||ch("svg/".concat(e,".svg"))},Mh=(e,t,i,n,o)=>(i=(i&&wo(i))==="ios"?"ios":"md",n&&i==="ios"?e=wo(n):o&&i==="md"?e=wo(o):(!e&&t&&!Bh(t)&&(e=t),Yo(e)&&(e=wo(e))),!Yo(e)||e.trim()===""||e.replace(/[a-z]|-|\d/gi,"")!==""?null:e),Hr=e=>Yo(e)&&(e=e.trim(),Bh(e))?e:null,Bh=e=>e.length>0&&/(\/|\.)/.test(e),Yo=e=>typeof e=="string",wo=e=>e.toLowerCase(),I0=(e,t=[])=>{const i={};return t.forEach(n=>{e.hasAttribute(n)&&(e.getAttribute(n)!==null&&(i[n]=e.getAttribute(n)),e.removeAttribute(n))}),i},z0=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",_0=e=>{const t=document.createElement("div");t.innerHTML=e;for(let n=t.childNodes.length-1;n>=0;n--)t.childNodes[n].nodeName.toLowerCase()!=="svg"&&t.removeChild(t.childNodes[n]);const i=t.firstElementChild;if(i&&i.nodeName.toLowerCase()==="svg"){const n=i.getAttribute("class")||"";if(i.setAttribute("class",(n+" s-ion-icon").trim()),Rh(i))return t.innerHTML}return""},Rh=e=>{if(e.nodeType===1){if(e.nodeName.toLowerCase()==="script")return!1;for(let t=0;te.startsWith("data:image/svg+xml"),O0=e=>e.indexOf(";utf8,")!==-1,xi=new Map,oc=new Map;let Vr;const $0=(e,t)=>{let i=oc.get(e);if(!i)if(typeof fetch<"u"&&typeof document<"u")if(T0(e)&&O0(e)){Vr||(Vr=new DOMParser);const o=Vr.parseFromString(e,"text/html").querySelector("svg");return o&&xi.set(e,o.outerHTML),Promise.resolve()}else i=fetch(e).then(n=>{if(n.ok)return n.text().then(o=>{o&&t!==!1&&(o=_0(o)),xi.set(e,o||"")});xi.set(e,"")}),oc.set(e,i);else return xi.set(e,""),Promise.resolve();return i},L0=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",D0=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=P0(),this.color=void 0,this.ios=void 0,this.md=void 0,this.flipRtl=void 0,this.name=void 0,this.src=void 0,this.icon=void 0,this.size=void 0,this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=I0(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,i,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const o=this.io=new window.IntersectionObserver(r=>{r[0].isIntersecting&&(o.disconnect(),this.io=void 0,n())},{rootMargin:i});o.observe(t)}else n()}loadIcon(){if(this.isVisible){const t=S0(this);t&&(xi.has(t)?this.svgContent=xi.get(t):$0(t,this.sanitize).then(()=>this.svgContent=xi.get(t)),this.didLoadIcon=!0)}this.iconName=Mh(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:i,inheritedAttributes:n,el:o}=this,r=this.mode||"md",a=i?(i.includes("arrow")||i.includes("chevron"))&&t!==!1:!1,s=t||a;return p(Q,Object.assign({role:"img",class:Object.assign(Object.assign({[r]:!0},M0(this.color)),{["icon-".concat(this.size)]:!!this.size,"flip-rtl":s,"icon-rtl":s&&z0(o)})},n),this.svgContent?p("div",{class:"icon-inner",innerHTML:this.svgContent}):p("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return L0}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]},void 0,{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}]),P0=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",M0=e=>e?{"ion-color":!0,["ion-color-".concat(e)]:!0}:null;function ve(){if(typeof customElements>"u")return;["ion-icon"].forEach(t=>{switch(t){case"ion-icon":customElements.get(t)||customElements.define(t,D0);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const B0=":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}",R0=":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}",F0=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.updateListener=()=>this.updateState(!1),this.setItemDefaults=()=>{const t=this.getSlottedHeaderIonItem();t&&(t.button=!0,t.detail=!1,t.lines===void 0&&(t.lines="full"))},this.getSlottedHeaderIonItem=()=>{const{headerEl:t}=this;if(!t)return;const i=t.querySelector("slot");if(i&&i.assignedElements!==void 0)return i.assignedElements().find(n=>n.tagName==="ION-ITEM")},this.setAria=(t=!1)=>{const i=this.getSlottedHeaderIonItem();if(!i)return;const o=Lt(i).querySelector("button");o&&o.setAttribute("aria-expanded","".concat(t))},this.slotToggleIcon=()=>{const t=this.getSlottedHeaderIonItem();if(!t)return;const{toggleIconSlot:i,toggleIcon:n}=this;if(t.querySelector(".ion-accordion-toggle-icon"))return;const r=document.createElement("ion-icon");r.slot=i,r.lazy=!1,r.classList.add("ion-accordion-toggle-icon"),r.icon=n,r.setAttribute("aria-hidden","true"),t.appendChild(r)},this.expandAccordion=(t=!1)=>{const{contentEl:i,contentElWrapper:n}=this;if(t||i===void 0||n===void 0){this.state=4;return}this.state!==4&&(this.currentRaf!==void 0&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?gt(()=>{this.state=8,this.currentRaf=gt(async()=>{const o=n.offsetHeight,r=ec(i,2e3);i.style.setProperty("max-height","".concat(o,"px")),await r,this.state=4,i.style.removeProperty("max-height")})}):this.state=4)},this.collapseAccordion=(t=!1)=>{const{contentEl:i}=this;if(t||i===void 0){this.state=1;return}this.state!==1&&(this.currentRaf!==void 0&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?this.currentRaf=gt(async()=>{const n=i.offsetHeight;i.style.setProperty("max-height","".concat(n,"px")),gt(async()=>{const o=ec(i,2e3);this.state=2,await o,this.state=1,i.style.removeProperty("max-height")})}):this.state=1)},this.shouldAnimate=()=>!(typeof window>"u"||matchMedia("(prefers-reduced-motion: reduce)").matches||!pt.get("animated",!0)||this.accordionGroupEl&&!this.accordionGroupEl.animated),this.updateState=async(t=!1)=>{const i=this.accordionGroupEl,n=this.value;if(!i)return;const o=i.value;if(Array.isArray(o)?o.includes(n):o===n)this.expandAccordion(t),this.isNext=this.isPrevious=!1;else{this.collapseAccordion(t);const a=this.getNextSibling(),s=a==null?void 0:a.value;s!==void 0&&(this.isPrevious=Array.isArray(o)?o.includes(s):o===s);const l=this.getPreviousSibling(),c=l==null?void 0:l.value;c!==void 0&&(this.isNext=Array.isArray(o)?o.includes(c):o===c)}},this.getNextSibling=()=>{if(!this.el)return;const t=this.el.nextElementSibling;if((t==null?void 0:t.tagName)==="ION-ACCORDION")return t},this.getPreviousSibling=()=>{if(!this.el)return;const t=this.el.previousElementSibling;if((t==null?void 0:t.tagName)==="ION-ACCORDION")return t},this.state=1,this.isNext=!1,this.isPrevious=!1,this.value="ion-accordion-".concat(j0++),this.disabled=!1,this.readonly=!1,this.toggleIcon=_h,this.toggleIconSlot="end"}valueChanged(){this.updateState()}connectedCallback(){var t;const i=this.accordionGroupEl=(t=this.el)===null||t===void 0?void 0:t.closest("ion-accordion-group");i&&(this.updateState(!0),cn(i,"ionValueChange",this.updateListener))}disconnectedCallback(){const t=this.accordionGroupEl;t&&Vn(t,"ionValueChange",this.updateListener)}componentDidLoad(){this.setItemDefaults(),this.slotToggleIcon(),gt(()=>{const t=this.state===4||this.state===8;this.setAria(t)})}toggleExpanded(){const{accordionGroupEl:t,value:i,state:n}=this;if(t){const o=n===1||n===2;t.requestAccordionToggle(i,o)}}render(){const{disabled:t,readonly:i}=this,n=F(this),o=this.state===4||this.state===8,r=o?"header expanded":"header",a=o?"content expanded":"content";return this.setAria(o),p(Q,{class:{[n]:!0,"accordion-expanding":this.state===8,"accordion-expanded":this.state===4,"accordion-collapsing":this.state===2,"accordion-collapsed":this.state===1,"accordion-next":this.isNext,"accordion-previous":this.isPrevious,"accordion-disabled":t,"accordion-readonly":i,"accordion-animated":this.shouldAnimate()}},p("div",{onClick:()=>this.toggleExpanded(),id:"header",part:r,"aria-controls":"content",ref:s=>this.headerEl=s},p("slot",{name:"header"})),p("div",{id:"content",part:a,role:"region","aria-labelledby":"header",ref:s=>this.contentEl=s},p("div",{id:"content-wrapper",ref:s=>this.contentElWrapper=s},p("slot",{name:"content"}))))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{value:["valueChanged"]}}static get style(){return{ios:B0,md:R0}}},[49,"ion-accordion",{value:[1],disabled:[4],readonly:[4],toggleIcon:[1,"toggle-icon"],toggleIconSlot:[1,"toggle-icon-slot"],state:[32],isNext:[32],isPrevious:[32]},void 0,{value:["valueChanged"]}]);let j0=0;function H0(){if(typeof customElements>"u")return;["ion-accordion","ion-icon"].forEach(t=>{switch(t){case"ion-accordion":customElements.get(t)||customElements.define(t,F0);break;case"ion-icon":customElements.get(t)||ve();break}})}const V0=H0;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const ft=(e,...t)=>console.warn("[Ionic Warning]: ".concat(e),...t),vi=(e,...t)=>console.error("[Ionic Error]: ".concat(e),...t),W0=(e,...t)=>console.error("<".concat(e.tagName.toLowerCase(),"> must be used inside ").concat(t.join(" or "),"."));/*! + * (C) Ionic http://ionicframework.com - MIT License + */const q0=":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}",Y0=":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion){-webkit-box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;border-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}:host-context([dir=rtl]):host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous),:host-context([dir=rtl]).accordion-group-expand-inset ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}@supports selector(:dir(rtl)){:host(.accordion-group-expand-inset:dir(rtl)) ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}:host-context([dir=rtl]):host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next),:host-context([dir=rtl]).accordion-group-expand-inset ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}@supports selector(:dir(rtl)){:host(.accordion-group-expand-inset:dir(rtl)) ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}}:host(.accordion-group-expand-inset) ::slotted(ion-accordion):first-of-type{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",N0=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=L(this,"ionChange",7),this.ionValueChange=L(this,"ionValueChange",7),this.animated=!0,this.multiple=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.expand="compact"}valueChanged(){const{value:t,multiple:i}=this;!i&&Array.isArray(t)&&ft('ion-accordion-group was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: ['.concat(t.map(n=>"'".concat(n,"'")).join(", "),"]\n"),this.el),this.ionValueChange.emit({value:this.value})}async disabledChanged(){const{disabled:t}=this,i=await this.getAccordions();for(const n of i)n.disabled=t}async readonlyChanged(){const{readonly:t}=this,i=await this.getAccordions();for(const n of i)n.readonly=t}async onKeydown(t){const i=document.activeElement;if(!i||!i.closest('ion-accordion [slot="header"]'))return;const o=i.tagName==="ION-ACCORDION"?i:i.closest("ion-accordion");if(!o||o.closest("ion-accordion-group")!==this.el)return;const a=await this.getAccordions(),s=a.findIndex(c=>c===o);if(s===-1)return;let l;t.key==="ArrowDown"?l=this.findNextAccordion(a,s):t.key==="ArrowUp"?l=this.findPreviousAccordion(a,s):t.key==="Home"?l=a[0]:t.key==="End"&&(l=a[a.length-1]),l!==void 0&&l!==i&&l.focus()}async componentDidLoad(){this.disabled&&this.disabledChanged(),this.readonly&&this.readonlyChanged(),this.valueChanged()}setValue(t){const i=this.value=t;this.ionChange.emit({value:i})}async requestAccordionToggle(t,i){const{multiple:n,value:o,readonly:r,disabled:a}=this;if(!(r||a))if(i)if(n){const s=o!=null?o:[],l=Array.isArray(s)?s:[s];l.find(d=>d===t)===void 0&&t!==void 0&&this.setValue([...l,t])}else this.setValue(t);else if(n){const s=o!=null?o:[],l=Array.isArray(s)?s:[s];this.setValue(l.filter(c=>c!==t))}else this.setValue(void 0)}findNextAccordion(t,i){const n=t[i+1];return n===void 0?t[0]:n}findPreviousAccordion(t,i){const n=t[i-1];return n===void 0?t[t.length-1]:n}async getAccordions(){return Array.from(this.el.querySelectorAll(":scope > ion-accordion"))}render(){const{disabled:t,readonly:i,expand:n}=this,o=F(this);return p(Q,{class:{[o]:!0,"accordion-group-disabled":t,"accordion-group-readonly":i,["accordion-group-expand-".concat(n)]:!0},role:"presentation"},p("slot",null))}get el(){return this}static get watchers(){return{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}}static get style(){return{ios:q0,md:Y0}}},[33,"ion-accordion-group",{animated:[4],multiple:[4],value:[1025],disabled:[4],readonly:[4],expand:[1],requestAccordionToggle:[64],getAccordions:[64]},[[0,"keydown","onKeydown"]],{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}]);function U0(){if(typeof customElements>"u")return;["ion-accordion-group"].forEach(t=>{switch(t){case"ion-accordion-group":customElements.get(t)||customElements.define(t,N0);break}})}const G0=U0;/*! + * (C) Ionic http://ionicframework.com - MIT License + */class X0{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(t){var i;return new K0(this,this.newID(),t.name,(i=t.priority)!==null&&i!==void 0?i:0,!!t.disableScroll)}createBlocker(t={}){return new Z0(this,this.newID(),t.disable,!!t.disableScroll)}start(t,i,n){return this.canStart(t)?(this.requestedStart.set(i,n),!0):(this.requestedStart.delete(i),!1)}capture(t,i,n){if(!this.start(t,i,n))return!1;const o=this.requestedStart;let r=-1e4;if(o.forEach(a=>{r=Math.max(r,a)}),r===n){this.capturedId=i,o.clear();const a=new CustomEvent("ionGestureCaptured",{detail:{gestureName:t}});return document.dispatchEvent(a),!0}return o.delete(i),!1}release(t){this.requestedStart.delete(t),this.capturedId===t&&(this.capturedId=void 0)}disableGesture(t,i){let n=this.disabledGestures.get(t);n===void 0&&(n=new Set,this.disabledGestures.set(t,n)),n.add(i)}enableGesture(t,i){const n=this.disabledGestures.get(t);n!==void 0&&n.delete(i)}disableScroll(t){this.disabledScroll.add(t),this.disabledScroll.size===1&&document.body.classList.add(rc)}enableScroll(t){this.disabledScroll.delete(t),this.disabledScroll.size===0&&document.body.classList.remove(rc)}canStart(t){return!(this.capturedId!==void 0||this.isDisabled(t))}isCaptured(){return this.capturedId!==void 0}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(t){const i=this.disabledGestures.get(t);return!!(i&&i.size>0)}newID(){return this.gestureId++,this.gestureId}}class K0{constructor(t,i,n,o,r){this.id=i,this.name=n,this.disableScroll=r,this.priority=o*1e6+i,this.ctrl=t}canStart(){return this.ctrl?this.ctrl.canStart(this.name):!1}start(){return this.ctrl?this.ctrl.start(this.name,this.id,this.priority):!1}capture(){if(!this.ctrl)return!1;const t=this.ctrl.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.ctrl.disableScroll(this.id),t}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Z0{constructor(t,i,n,o){this.id=i,this.disable=n,this.disableScroll=o,this.ctrl=t}block(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.disableGesture(t,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.enableGesture(t,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const rc="backdrop-no-scroll",xr=new X0;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Q0=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",J0=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",tx=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionBackdropTap=L(this,"ionBackdropTap",7),this.blocker=xr.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(t){this.emitTap(t)}emitTap(t){this.stopPropagation&&(t.preventDefault(),t.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const t=F(this);return p(Q,{tabindex:"-1","aria-hidden":"true",class:{[t]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}static get style(){return{ios:Q0,md:J0}}},[33,"ion-backdrop",{visible:[4],tappable:[4],stopPropagation:[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]);function $i(){if(typeof customElements>"u")return;["ion-backdrop"].forEach(t=>{switch(t){case"ion-backdrop":customElements.get(t)||customElements.define(t,tx);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const wt=(e,t)=>t.closest(e)!==null,xt=(e,t)=>typeof e=="string"&&e.length>0?Object.assign({"ion-color":!0,["ion-color-".concat(e)]:!0},t):t,ex=e=>e!==void 0?(Array.isArray(e)?e:e.split(" ")).filter(i=>i!=null).map(i=>i.trim()).filter(i=>i!==""):[],ne=e=>{const t={};return ex(e).forEach(i=>t[i]=!0),t},ix=/^[a-z][a-z0-9+\-.]*:/,eo=async(e,t,i,n)=>{if(e!=null&&e[0]!=="#"&&!ix.test(e)){const o=document.querySelector("ion-router");if(o)return t!=null&&t.preventDefault(),o.push(e,i,n)}return!1};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const nx=":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{border-radius:10px;font-size:max(13px, 0.8125rem)}",ox=":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{--padding-top:3px;--padding-end:4px;--padding-bottom:4px;--padding-start:4px;border-radius:4px}",rx=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=F(this);return p(Q,{class:xt(this.color,{[t]:!0})},p("slot",null))}static get style(){return{ios:nx,md:ox}}},[33,"ion-badge",{color:[513]}]);function ax(){if(typeof customElements>"u")return;["ion-badge"].forEach(t=>{switch(t){case"ion-badge":customElements.get(t)||customElements.define(t,rx);break}})}const sx=ax;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const lx=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}",cx=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="bounded"}async addRipple(t,i){return new Promise(n=>{ln(()=>{const o=this.el.getBoundingClientRect(),r=o.width,a=o.height,s=Math.sqrt(r*r+a*a),l=Math.max(a,r),c=this.unbounded?l:s+hx,d=Math.floor(l*ux),h=c/d;let u=t-o.left,m=i-o.top;this.unbounded&&(u=r*.5,m=a*.5);const g=u-d*.5,f=m-d*.5,k=r*.5-u,x=a*.5-m;Yt(()=>{const C=document.createElement("div");C.classList.add("ripple-effect");const I=C.style;I.top=f+"px",I.left=g+"px",I.width=I.height=d+"px",I.setProperty("--final-scale","".concat(h)),I.setProperty("--translate-end","".concat(k,"px, ").concat(x,"px")),(this.el.shadowRoot||this.el).appendChild(C),setTimeout(()=>{n(()=>{dx(C)})},325)})})})}get unbounded(){return this.type==="unbounded"}render(){const t=F(this);return p(Q,{role:"presentation",class:{[t]:!0,unbounded:this.unbounded}})}get el(){return this}static get style(){return lx}},[1,"ion-ripple-effect",{type:[1],addRipple:[64]}]),dx=e=>{e.classList.add("fade-out"),setTimeout(()=>{e.remove()},200)},hx=10,ux=.5;function se(){if(typeof customElements>"u")return;["ion-ripple-effect"].forEach(t=>{switch(t){case"ion-ripple-effect":customElements.get(t)||customElements.define(t,cx);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const px=':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}',mx=':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:4px;--padding-top:8px;--padding-bottom:8px;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),\n background-color 15ms linear,\n color 15ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:36px;font-size:0.875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:14px;--padding-start:1em;--padding-end:1em;--padding-bottom:14px;min-height:2.8em;font-size:1.25rem}:host(.button-small){--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:0.8125rem}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}',fx=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=L(this,"ionFocus",7),this.ionBlur=L(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.formButtonEl=null,this.formEl=null,this.inheritedAttributes={},this.handleClick=t=>{const{el:i}=this;this.type==="button"?eo(this.href,t,this.routerDirection,this.routerAnimation):Eh(i)&&this.submitForm(t)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.color=void 0,this.buttonType="button",this.disabled=!1,this.expand=void 0,this.fill=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.download=void 0,this.href=void 0,this.rel=void 0,this.shape=void 0,this.size=void 0,this.strong=!1,this.target=void 0,this.type="button",this.form=void 0}disabledChanged(){const{disabled:t}=this;this.formButtonEl&&(this.formButtonEl.disabled=t)}renderHiddenButton(){const t=this.formEl=this.findForm();if(t){const{formButtonEl:i}=this;if(i!==null&&t.contains(i))return;const n=this.formButtonEl=document.createElement("button");n.type=this.type,n.style.display="none",n.disabled=this.disabled,t.appendChild(n)}}componentWillLoad(){this.inToolbar=!!this.el.closest("ion-buttons"),this.inListHeader=!!this.el.closest("ion-list-header"),this.inItem=!!this.el.closest("ion-item")||!!this.el.closest("ion-item-divider"),this.inheritedAttributes=Ze(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){return(this.fill===void 0||this.fill==="clear")&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}findForm(){const{form:t}=this;if(t instanceof HTMLFormElement)return t;if(typeof t=="string"){const i=document.getElementById(t);return i?i instanceof HTMLFormElement?i:(ft('Form with selector: "#'.concat(t,'" could not be found. Verify that the id is attached to a
element.'),this.el),null):(ft('Form with selector: "#'.concat(t,'" could not be found. Verify that the id is correct and the form is rendered in the DOM.'),this.el),null)}return t!==void 0?(ft('The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',this.el),null):this.el.closest("form")}submitForm(t){this.formEl&&this.formButtonEl&&(t.preventDefault(),this.formButtonEl.click())}render(){const t=F(this),{buttonType:i,type:n,disabled:o,rel:r,target:a,size:s,href:l,color:c,expand:d,hasIconOnly:h,shape:u,strong:m,inheritedAttributes:g}=this,f=s===void 0&&this.inItem?"small":s,k=l===void 0?"button":"a",x=k==="button"?{type:n}:{download:this.download,href:l,rel:r,target:a};let C=this.fill;return C==null&&(C=this.inToolbar||this.inListHeader?"clear":"solid"),n!=="button"&&this.renderHiddenButton(),p(Q,{onClick:this.handleClick,"aria-disabled":o?"true":null,class:xt(c,{[t]:!0,[i]:!0,["".concat(i,"-").concat(d)]:d!==void 0,["".concat(i,"-").concat(f)]:f!==void 0,["".concat(i,"-").concat(u)]:u!==void 0,["".concat(i,"-").concat(C)]:!0,["".concat(i,"-strong")]:m,"in-toolbar":wt("ion-toolbar",this.el),"in-toolbar-color":wt("ion-toolbar[color]",this.el),"in-buttons":wt("ion-buttons",this.el),"button-has-icon-only":h,"button-disabled":o,"ion-activatable":!0,"ion-focusable":!0})},p(k,Object.assign({},x,{class:"button-native",part:"native",disabled:o,onFocus:this.onFocus,onBlur:this.onBlur},g),p("span",{class:"button-inner"},p("slot",{name:"icon-only"}),p("slot",{name:"start"}),p("slot",null),p("slot",{name:"end"})),t==="md"&&p("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return{ios:px,md:mx}}},[33,"ion-button",{color:[513],buttonType:[1025,"button-type"],disabled:[516],expand:[513],fill:[1537],routerDirection:[1,"router-direction"],routerAnimation:[16],download:[1],href:[1],rel:[1],shape:[513],size:[513],strong:[4],target:[1],type:[1],form:[1]},void 0,{disabled:["disabledChanged"]}]);function Fh(){if(typeof customElements>"u")return;["ion-button","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-button":customElements.get(t)||customElements.define(t,fx);break;case"ion-ripple-effect":customElements.get(t)||se();break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const gx=Fh;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const bx=".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-ios-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.65em;line-height:0.67}",xx=".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:8px;--padding-end:8px;--box-shadow:none;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-md-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:3rem;height:3rem}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}",vx=et(class extends tt{constructor(){super(),this.__registerHost(),this.collapse=!1}render(){const t=F(this);return p(Q,{class:{[t]:!0,"buttons-collapse":this.collapse}})}static get style(){return{ios:bx,md:xx}}},[34,"ion-buttons",{collapse:[4]}]);function jh(){if(typeof customElements>"u")return;["ion-buttons"].forEach(t=>{switch(t){case"ion-buttons":customElements.get(t)||customElements.define(t,vx);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const wx=jh;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const yx=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1), -webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:0.875rem;-webkit-box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}:host(.ion-activated){-webkit-transform:scale3d(0.97, 0.97, 1);transform:scale3d(0.97, 0.97, 1)}",kx=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:0.875rem;-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}",Cx=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAriaAttributes={},this.color=void 0,this.button=!1,this.type="button",this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}componentWillLoad(){this.inheritedAriaAttributes=ci(this.el,["aria-label"])}isClickable(){return this.href!==void 0||this.button}renderCard(t){const i=this.isClickable();if(!i)return[p("slot",null)];const{href:n,routerAnimation:o,routerDirection:r,inheritedAriaAttributes:a}=this,s=i?n===void 0?"button":"a":"div",l=s==="button"?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target};return p(s,Object.assign({},l,a,{class:"card-native",part:"native",disabled:this.disabled,onClick:c=>eo(n,c,r,o)}),p("slot",null),i&&t==="md"&&p("ion-ripple-effect",null))}render(){const t=F(this);return p(Q,{class:xt(this.color,{[t]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(t))}get el(){return this}static get style(){return{ios:yx,md:kx}}},[33,"ion-card",{color:[513],button:[4],type:[1],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1]}]);function Ex(){if(typeof customElements>"u")return;["ion-card","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-card":customElements.get(t)||customElements.define(t,Cx);break;case"ion-ripple-effect":customElements.get(t)||se();break}})}const Sx=Ex;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ax="ion-card-content{display:block;position:relative}.card-content-ios{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;font-size:1rem;line-height:1.4}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem}ion-card-header+.card-content-ios{padding-top:0}",Ix="ion-card-content{display:block;position:relative}.card-content-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:13px;padding-bottom:13px;font-size:0.875rem;line-height:1.5}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}",zx=et(class extends tt{constructor(){super(),this.__registerHost()}render(){const t=F(this);return p(Q,{class:{[t]:!0,["card-content-".concat(t)]:!0}})}static get style(){return{ios:Ax,md:Ix}}},[32,"ion-card-content"]);function _x(){if(typeof customElements>"u")return;["ion-card-content"].forEach(t=>{switch(t){case"ion-card-content":customElements.get(t)||customElements.define(t,zx);break}})}const Tx=_x;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ox=":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:16px;-ms-flex-direction:column-reverse;flex-direction:column-reverse}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}",$x=":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}",Lx=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.translucent=!1}render(){const t=F(this);return p(Q,{class:xt(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":!0,[t]:!0})},p("slot",null))}static get style(){return{ios:Ox,md:$x}}},[33,"ion-card-header",{color:[513],translucent:[4]}]);function Dx(){if(typeof customElements>"u")return;["ion-card-header"].forEach(t=>{switch(t){case"ion-card-header":customElements.get(t)||customElements.define(t,Lx);break}})}const Px=Dx;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Mx=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);margin-left:0;margin-right:0;margin-top:0;margin-bottom:4px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.75rem;font-weight:700;letter-spacing:0.4px;text-transform:uppercase}",Bx=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-550, #737373);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.875rem;font-weight:500}",Rx=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=F(this);return p(Q,{role:"heading","aria-level":"3",class:xt(this.color,{"ion-inherit-color":!0,[t]:!0})},p("slot",null))}static get style(){return{ios:Mx,md:Bx}}},[33,"ion-card-subtitle",{color:[513]}]);function Fx(){if(typeof customElements>"u")return;["ion-card-subtitle"].forEach(t=>{switch(t){case"ion-card-subtitle":customElements.get(t)||customElements.define(t,Rx);break}})}const jx=Fx;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Hx=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.75rem;font-weight:700;line-height:1.2}",Vx=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, #262626);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;line-height:1.2}",Wx=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=F(this);return p(Q,{role:"heading","aria-level":"2",class:xt(this.color,{"ion-inherit-color":!0,[t]:!0})},p("slot",null))}static get style(){return{ios:Hx,md:Vx}}},[33,"ion-card-title",{color:[513]}]);function qx(){if(typeof customElements>"u")return;["ion-card-title"].forEach(t=>{switch(t){case"ion-card-title":customElements.get(t)||customElements.define(t,Wx);break}})}const Yx=qx;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const io=e=>{const t=e;let i;return{hasLegacyControl:()=>{if(i===void 0){const o=t.label!==void 0||Nx(t),r=t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")&&t.shadowRoot===null,a=to(t);i=t.legacy===!0||!o&&!r&&a!==null}return i}}},Nx=e=>!!(Ux.includes(e.tagName)&&e.querySelector('[slot="label"]')!==null||Gx.includes(e.tagName)&&e.textContent!==""),Ux=["ION-INPUT","ION-TEXTAREA","ION-SELECT","ION-RANGE"],Gx=["ION-TOGGLE","ION-CHECKBOX","ION-RADIO"];/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Xx=":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.0625rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.625rem, 65.988px)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item.legacy-checkbox){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:8px;margin-bottom:8px}",Kx=":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.legacy-checkbox.checkbox-disabled),:host(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}:host(.in-item.legacy-checkbox){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:18px;margin-bottom:18px}",Zx=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=L(this,"ionChange",7),this.ionFocus=L(this,"ionFocus",7),this.ionBlur=L(this,"ionBlur",7),this.ionStyle=L(this,"ionStyle",7),this.inputId="ion-cb-".concat(Qx++),this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.setChecked=t=>{const i=this.checked=t;this.ionChange.emit({checked:i,value:this.value})},this.toggleChecked=t=>{t.preventDefault(),this.setFocus(),this.setChecked(!this.checked),this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=t=>{this.disabled||this.toggleChecked(t)},this.color=void 0,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.labelPlacement="start",this.justify="space-between",this.alignment="center",this.legacy=void 0}connectedCallback(){this.legacyFormController=io(this.el)}componentWillLoad(){this.emitStyle(),this.legacyFormController.hasLegacyControl()||(this.inheritedAttributes=Object.assign({},Ze(this.el)))}styleChanged(){this.emitStyle()}emitStyle(){const t={"interactive-disabled":this.disabled,legacy:!!this.legacy};this.legacyFormController.hasLegacyControl()&&(t["checkbox-checked"]=this.checked),this.ionStyle.emit(t)}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyCheckbox():this.renderCheckbox()}renderCheckbox(){const{color:t,checked:i,disabled:n,el:o,getSVGPath:r,indeterminate:a,inheritedAttributes:s,inputId:l,justify:c,labelPlacement:d,name:h,value:u,alignment:m}=this,g=F(this),f=r(g,a);return dn(!0,o,h,i?u:"",n),p(Q,{class:xt(t,{[g]:!0,"in-item":wt("ion-item",o),"checkbox-checked":i,"checkbox-disabled":n,"checkbox-indeterminate":a,interactive:!0,["checkbox-justify-".concat(c)]:!0,["checkbox-alignment-".concat(m)]:!0,["checkbox-label-placement-".concat(d)]:!0}),onClick:this.onClick},p("label",{class:"checkbox-wrapper"},p("input",Object.assign({type:"checkbox",checked:i?!0:void 0,disabled:n,id:l,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:k=>this.focusEl=k},s)),p("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":o.textContent===""},part:"label"},p("slot",null)),p("div",{class:"native-wrapper"},p("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},f))))}renderLegacyCheckbox(){this.hasLoggedDeprecationWarning||(ft('ion-checkbox now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Label\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&ft('ion-checkbox is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new checkbox syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{color:t,checked:i,disabled:n,el:o,getSVGPath:r,indeterminate:a,inputId:s,name:l,value:c}=this,d=F(this),{label:h,labelId:u,labelText:m}=Wo(o,s),g=r(d,a);return dn(!0,o,l,i?c:"",n),p(Q,{"aria-labelledby":h?u:null,"aria-checked":"".concat(i),"aria-hidden":n?"true":null,role:"checkbox",class:xt(t,{[d]:!0,"in-item":wt("ion-item",o),"checkbox-checked":i,"checkbox-disabled":n,"checkbox-indeterminate":a,"legacy-checkbox":!0,interactive:!0}),onClick:this.onClick},p("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},g),p("label",{htmlFor:s},m),p("input",{type:"checkbox","aria-checked":"".concat(i),disabled:n,id:s,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:f=>this.focusEl=f}))}getSVGPath(t,i){let n=i?p("path",{d:"M6 12L18 12",part:"mark"}):p("path",{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return t==="md"&&(n=i?p("path",{d:"M2 12H22",part:"mark"}):p("path",{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),n}get el(){return this}static get watchers(){return{checked:["styleChanged"],disabled:["styleChanged"]}}static get style(){return{ios:Xx,md:Kx}}},[33,"ion-checkbox",{color:[513],name:[1],checked:[1028],indeterminate:[1028],disabled:[4],value:[8],labelPlacement:[1,"label-placement"],justify:[1],alignment:[1],legacy:[4]},void 0,{checked:["styleChanged"],disabled:["styleChanged"]}]);let Qx=0;function Hh(){if(typeof customElements>"u")return;["ion-checkbox"].forEach(t=>{switch(t){case"ion-checkbox":customElements.get(t)||customElements.define(t,Zx);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Jx={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},tv=e=>{if(e===void 0||e==="")return!0;if(window.matchMedia){const t=Jx[e];return window.matchMedia(t).matches}return!1},ev=":host{-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}",yo=typeof window<"u"?window:void 0,ac=yo&&!!(yo.CSS&&yo.CSS.supports&&yo.CSS.supports("--a: 0")),iv=["","xs","sm","md","lg","xl"],nv=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.offset=void 0,this.offsetXs=void 0,this.offsetSm=void 0,this.offsetMd=void 0,this.offsetLg=void 0,this.offsetXl=void 0,this.pull=void 0,this.pullXs=void 0,this.pullSm=void 0,this.pullMd=void 0,this.pullLg=void 0,this.pullXl=void 0,this.push=void 0,this.pushXs=void 0,this.pushSm=void 0,this.pushMd=void 0,this.pushLg=void 0,this.pushXl=void 0,this.size=void 0,this.sizeXs=void 0,this.sizeSm=void 0,this.sizeMd=void 0,this.sizeLg=void 0,this.sizeXl=void 0}onResize(){ue(this)}getColumns(t){let i;for(const n of iv){const o=tv(n),r=this[t+n.charAt(0).toUpperCase()+n.slice(1)];o&&r!==void 0&&(i=r)}return i}calculateSize(){const t=this.getColumns("size");if(!t||t==="")return;const i=t==="auto"?"auto":ac?"calc(calc(".concat(t," / var(--ion-grid-columns, 12)) * 100%)"):t/12*100+"%";return{flex:"0 0 ".concat(i),width:"".concat(i),"max-width":"".concat(i)}}calculatePosition(t,i){const n=this.getColumns(t);if(!n)return;const o=ac?"calc(calc(".concat(n," / var(--ion-grid-columns, 12)) * 100%)"):n>0&&n<12?n/12*100+"%":"auto";return{[i]:o}}calculateOffset(t){return this.calculatePosition("offset",t?"margin-right":"margin-left")}calculatePull(t){return this.calculatePosition("pull",t?"left":"right")}calculatePush(t){return this.calculatePosition("push",t?"right":"left")}render(){const t=document.dir==="rtl",i=F(this);return p(Q,{class:{[i]:!0},style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(t)),this.calculatePull(t)),this.calculatePush(t)),this.calculateSize())},p("slot",null))}static get style(){return ev}},[1,"ion-col",{offset:[1],offsetXs:[1,"offset-xs"],offsetSm:[1,"offset-sm"],offsetMd:[1,"offset-md"],offsetLg:[1,"offset-lg"],offsetXl:[1,"offset-xl"],pull:[1],pullXs:[1,"pull-xs"],pullSm:[1,"pull-sm"],pullMd:[1,"pull-md"],pullLg:[1,"pull-lg"],pullXl:[1,"pull-xl"],push:[1],pushXs:[1,"push-xs"],pushSm:[1,"push-sm"],pushMd:[1,"push-md"],pushLg:[1,"push-lg"],pushXl:[1,"push-xl"],size:[1],sizeXs:[1,"size-xs"],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]},[[9,"resize","onResize"]]]);function ov(){if(typeof customElements>"u")return;["ion-col"].forEach(t=>{switch(t){case"ion-col":customElements.get(t)||customElements.define(t,nv);break}})}const rv=ov;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Le=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl";/*! + * (C) Ionic http://ionicframework.com - MIT License + */const av=':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}',sv=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionScrollStart=L(this,"ionScrollStart",7),this.ionScroll=L(this,"ionScroll",7),this.ionScrollEnd=L(this,"ionScrollEnd",7),this.watchDog=null,this.isScrolling=!1,this.lastScroll=0,this.queued=!1,this.cTop=-1,this.cBottom=-1,this.isMainContent=!0,this.resizeTimeout=null,this.tabsElement=null,this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:void 0,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:void 0,isScrolling:!0},this.color=void 0,this.fullscreen=!1,this.forceOverscroll=void 0,this.scrollX=!1,this.scrollY=!0,this.scrollEvents=!1}connectedCallback(){if(this.isMainContent=this.el.closest("ion-menu, ion-popover, ion-modal")===null,Hn(this.el)){const t=this.tabsElement=this.el.closest("ion-tabs");t!==null&&(this.tabsLoadCallback=()=>this.resize(),t.addEventListener("ionTabBarLoaded",this.tabsLoadCallback))}}disconnectedCallback(){if(this.onScrollEnd(),Hn(this.el)){const{tabsElement:t,tabsLoadCallback:i}=this;t!==null&&i!==void 0&&t.removeEventListener("ionTabBarLoaded",i),this.tabsElement=null,this.tabsLoadCallback=void 0}}onResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.resizeTimeout=setTimeout(()=>{this.el.offsetParent!==null&&this.resize()},100)}shouldForceOverscroll(){const{forceOverscroll:t}=this,i=F(this);return t===void 0?i==="ios"&&$e("ios"):t}resize(){this.fullscreen?ln(()=>this.readDimensions()):(this.cTop!==0||this.cBottom!==0)&&(this.cTop=this.cBottom=0,ue(this))}readDimensions(){const t=cv(this.el),i=Math.max(this.el.offsetTop,0),n=Math.max(t.offsetHeight-i-this.el.offsetHeight,0);(i!==this.cTop||n!==this.cBottom)&&(this.cTop=i,this.cBottom=n,ue(this))}onScroll(t){const i=Date.now(),n=!this.isScrolling;this.lastScroll=i,n&&this.onScrollStart(),!this.queued&&this.scrollEvents&&(this.queued=!0,ln(o=>{this.queued=!1,this.detail.event=t,dv(this.detail,this.scrollEl,o,n),this.ionScroll.emit(this.detail)}))}async getScrollElement(){return this.scrollEl||await new Promise(t=>Re(this.el,t)),Promise.resolve(this.scrollEl)}async getBackgroundElement(){return this.backgroundContentEl||await new Promise(t=>Re(this.el,t)),Promise.resolve(this.backgroundContentEl)}scrollToTop(t=0){return this.scrollToPoint(void 0,0,t)}async scrollToBottom(t=0){const i=await this.getScrollElement(),n=i.scrollHeight-i.clientHeight;return this.scrollToPoint(void 0,n,t)}async scrollByPoint(t,i,n){const o=await this.getScrollElement();return this.scrollToPoint(t+o.scrollLeft,i+o.scrollTop,n)}async scrollToPoint(t,i,n=0){const o=await this.getScrollElement();if(n<32){i!=null&&(o.scrollTop=i),t!=null&&(o.scrollLeft=t);return}let r,a=0;const s=new Promise(m=>r=m),l=o.scrollTop,c=o.scrollLeft,d=i!=null?i-l:0,h=t!=null?t-c:0,u=m=>{const g=Math.min(1,(m-a)/n)-1,f=Math.pow(g,3)+1;d!==0&&(o.scrollTop=Math.floor(f*d+l)),h!==0&&(o.scrollLeft=Math.floor(f*h+c)),f<1?requestAnimationFrame(u):r()};return requestAnimationFrame(m=>{a=m,u(m)}),s}onScrollStart(){this.isScrolling=!0,this.ionScrollStart.emit({isScrolling:!0}),this.watchDog&&clearInterval(this.watchDog),this.watchDog=setInterval(()=>{this.lastScrollthis.backgroundContentEl=d,id:"background-content",part:"background"}),p(c,{class:{"inner-scroll":!0,"scroll-x":i,"scroll-y":n,overscroll:(i||n)&&s},ref:d=>this.scrollEl=d,onScroll:this.scrollEvents?d=>this.onScroll(d):void 0,part:"scroll"},p("slot",null)),l?p("div",{class:"transition-effect"},p("div",{class:"transition-cover"}),p("div",{class:"transition-shadow"})):null,p("slot",{name:"fixed"}))}get el(){return this}static get style(){return av}},[1,"ion-content",{color:[513],fullscreen:[4],forceOverscroll:[1028,"force-overscroll"],scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],scrollEvents:[4,"scroll-events"],getScrollElement:[64],getBackgroundElement:[64],scrollToTop:[64],scrollToBottom:[64],scrollByPoint:[64],scrollToPoint:[64]},[[9,"resize","onResize"]]]),lv=e=>{var t;return e.parentElement?e.parentElement:!((t=e.parentNode)===null||t===void 0)&&t.host?e.parentNode.host:null},cv=e=>{const t=e.closest("ion-tabs");if(t)return t;const i=e.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content");return i||lv(e)},dv=(e,t,i,n)=>{const o=e.currentX,r=e.currentY,a=e.currentTime,s=t.scrollLeft,l=t.scrollTop,c=i-a;if(n&&(e.startTime=i,e.startX=s,e.startY=l,e.velocityX=e.velocityY=0),e.currentTime=i,e.currentX=e.scrollLeft=s,e.currentY=e.scrollTop=l,e.deltaX=s-e.startX,e.deltaY=l-e.startY,c>0&&c<100){const d=(s-o)/c,h=(l-r)/c;e.velocityX=d*.7+e.velocityX*.3,e.velocityY=h*.7+e.velocityY*.3}};function hv(){if(typeof customElements>"u")return;["ion-content"].forEach(t=>{switch(t){case"ion-content":customElements.get(t)||customElements.define(t,sv);break}})}const uv=hv;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const sc="ion-focused",pv="ion-focusable",mv=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],Vh=e=>{let t=[],i=!0;const n=e?e.shadowRoot:document,o=e||document.body,r=h=>{t.forEach(u=>u.classList.remove(sc)),h.forEach(u=>u.classList.add(sc)),t=h},a=()=>{i=!1,r([])},s=h=>{i=mv.includes(h.key),i||r([])},l=h=>{if(i&&h.composedPath!==void 0){const u=h.composedPath().filter(m=>m.classList?m.classList.contains(pv):!1);r(u)}},c=()=>{n.activeElement===o&&r([])};return n.addEventListener("keydown",s),n.addEventListener("focusin",l),n.addEventListener("focusout",c),n.addEventListener("touchstart",a,{passive:!0}),n.addEventListener("mousedown",a),{destroy:()=>{n.removeEventListener("keydown",s),n.removeEventListener("focusin",l),n.removeEventListener("focusout",c),n.removeEventListener("touchstart",a),n.removeEventListener("mousedown",a)},setFocus:r}},fv=Object.freeze(Object.defineProperty({__proto__:null,startFocusVisible:Vh},Symbol.toStringTag,{value:"Module"}));/*! + * (C) Ionic http://ionicframework.com - MIT License + */const xe=(e,t)=>e.month===t.month&&e.day===t.day&&e.year===t.year,Xe=(e,t)=>e.yeare.year>t.year||e.year===t.year&&e.month>t.month||e.year===t.year&&e.month===t.month&&e.day!==null&&e.day>t.day,gv=(e,t,i)=>{const n=Array.isArray(e)?e:[e];for(const o of n)if(t!==void 0&&Xe(o,t)||i!==void 0&&Li(o,i)){ft("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(t),"\n")+"Max: ".concat(JSON.stringify(i),"\n")+"Value: ".concat(JSON.stringify(e)));break}},bv=e=>e%4===0&&e%100!==0||e%400===0,bs=(e,t)=>{if(t!==void 0)return t;const i=new Intl.DateTimeFormat(e,{hour:"numeric"}),n=i.resolvedOptions();if(n.hourCycle!==void 0)return n.hourCycle;const o=new Date("5/18/2021 00:00"),a=i.formatToParts(o).find(s=>s.type==="hour");if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error('Invalid hour cycle "'.concat(t,'"'))}},xs=e=>e==="h23"||e==="h24",je=(e,t)=>e===4||e===6||e===9||e===11?30:e===2?bv(t)?29:28:31,lc=(e,t={month:"numeric",year:"numeric"})=>new Intl.DateTimeFormat(e,t).formatToParts(new Date)[0].type==="month",xv=e=>new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type==="dayPeriod",vv=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,wv=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,Te=e=>{if(e===void 0)return;let t=e;typeof e=="string"&&(t=e.replace(/\[|\]|\s/g,"").split(","));let i;return Array.isArray(t)?i=t.map(n=>parseInt(n,10)).filter(isFinite):i=[t],i},yv=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function qn(e){if(Array.isArray(e)){const i=[];for(const n of e){const o=qn(n);if(!o)return;i.push(o)}return i}let t=null;if(e!=null&&e!==""&&(t=wv.exec(e),t?(t.unshift(void 0,void 0),t[2]=t[3]=void 0):t=vv.exec(e)),t===null){ft("Unable to parse date string: ".concat(e,". Please provide a valid ISO 8601 datetime string."));return}for(let i=1;i<8;i++)t[i]=t[i]!==void 0?parseInt(t[i],10):void 0;return{year:t[1],month:t[2],day:t[3],hour:t[4],minute:t[5],ampm:t[4]<12?"am":"pm"}}const Wh=(e,t,i)=>t&&Xe(e,t)?t:i&&Li(e,i)?i:e,qh=e=>e>=12?"pm":"am",kv=(e,t)=>{const i=qn(e);if(i===void 0)return;const{month:n,day:o,year:r,hour:a,minute:s}=i,l=r!=null?r:t.year,c=n!=null?n:12;return{month:c,day:o!=null?o:je(c,l),year:l,hour:a!=null?a:23,minute:s!=null?s:59}},Cv=(e,t)=>{const i=qn(e);if(i===void 0)return;const{month:n,day:o,year:r,hour:a,minute:s}=i;return{month:n!=null?n:1,day:o!=null?o:1,year:r!=null?r:t.year,hour:a!=null?a:0,minute:s!=null?s:0}},Mi=e=>("0"+(e!==void 0?Math.abs(e):"0")).slice(-2),Ev=e=>("000"+(e!==void 0?Math.abs(e):"0")).slice(-4);function ni(e){if(Array.isArray(e))return e.map(i=>ni(i));let t="";return e.year!==void 0?(t=Ev(e.year),e.month!==void 0&&(t+="-"+Mi(e.month),e.day!==void 0&&(t+="-"+Mi(e.day),e.hour!==void 0&&(t+="T".concat(Mi(e.hour),":").concat(Mi(e.minute),":00"))))):e.hour!==void 0&&(t=Mi(e.hour)+":"+Mi(e.minute)),t}const Yh=(e,t)=>t===void 0?e:t==="am"?e===12?0:e:e===12?12:e+12,Sv=e=>{const{dayOfWeek:t}=e;if(t==null)throw new Error("No day of week provided");return vs(e,t)},Av=e=>{const{dayOfWeek:t}=e;if(t==null)throw new Error("No day of week provided");return ws(e,6-t)},Iv=e=>ws(e,1),zv=e=>vs(e,1),_v=e=>vs(e,7),Tv=e=>ws(e,7),vs=(e,t)=>{const{month:i,day:n,year:o}=e;if(n===null)throw new Error("No day provided");const r={month:i,day:n,year:o};if(r.day=n-t,r.day<1&&(r.month-=1),r.month<1&&(r.month=12,r.year-=1),r.day<1){const a=je(r.month,r.year);r.day=a+r.day}return r},ws=(e,t)=>{const{month:i,day:n,year:o}=e;if(n===null)throw new Error("No day provided");const r={month:i,day:n,year:o},a=je(i,o);return r.day=n+t,r.day>a&&(r.day-=a,r.month+=1),r.month>12&&(r.month=1,r.year+=1),r},Yn=e=>{const t=e.month===1?12:e.month-1,i=e.month===1?e.year-1:e.year,n=je(t,i),o=n{const t=e.month===12?1:e.month+1,i=e.month===12?e.year+1:e.year,n=je(t,i),o=n{const i=e.month,n=e.year+t,o=je(i,n),r=oNh(e,-1),$v=e=>Nh(e,1),Lv=(e,t,i)=>t?e:Yh(e,i),Dv=(e,t)=>{const{ampm:i,hour:n}=e;let o=n;return i==="am"&&t==="pm"?o=Yh(o,"pm"):i==="pm"&&t==="am"&&(o=Math.abs(o-12)),o},Pv=(e,t,i)=>{const{month:n,day:o,year:r}=e,a=Wh(Object.assign({},e),t,i),s=je(n,r);return o!==null&&si.hour?(a.hour=i.hour,a.minute=i.minute):a.hour===i.hour&&a.minute!==void 0&&i.minute!==void 0&&a.minute>i.minute&&(a.minute=i.minute)),a},Mv=({refParts:e,monthValues:t,dayValues:i,yearValues:n,hourValues:o,minuteValues:r,minParts:a,maxParts:s})=>{const{hour:l,minute:c,day:d,month:h,year:u}=e,m=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(n!==void 0){const g=n.filter(f=>!(a!==void 0&&fs.year));m.year=kn(u,g)}if(t!==void 0){const g=t.filter(f=>!(a!==void 0&&m.year===a.year&&fs.month));m.month=kn(h,g)}if(d!==null&&i!==void 0){const g=i.filter(f=>!(a!==void 0&&Xe(Object.assign(Object.assign({},m),{day:f}),a)||s!==void 0&&Li(Object.assign(Object.assign({},m),{day:f}),s)));m.day=kn(d,g)}if(l!==void 0&&o!==void 0){const g=o.filter(f=>!((a==null?void 0:a.hour)!==void 0&&xe(m,a)&&fs.hour));m.hour=kn(l,g),m.ampm=qh(m.hour)}if(c!==void 0&&r!==void 0){const g=r.filter(f=>!((a==null?void 0:a.minute)!==void 0&&xe(m,a)&&m.hour===a.hour&&fs.minute));m.minute=kn(c,g)}return m},kn=(e,t)=>{let i=t[0],n=Math.abs(i-e);for(let o=1;oe===void 0?"":e.toUpperCase(),Rv=(e,t,i)=>{const n={hour:t.hour,minute:t.minute};return n.hour===void 0||n.minute===void 0?"Invalid Time":new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric",timeZone:"UTC",hourCycle:i}).format(new Date(ni(Object.assign({year:2023,day:1,month:1},n))+"Z"))},Uh=e=>{const t=e.toString();return t.length>1?t:"0".concat(t)},Fv=(e,t)=>{if(e===0)switch(t){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error('Invalid hour cycle "'.concat(t,'"'))}return xs(t)?Uh(e):e.toString()},jv=(e,t,i)=>{if(i.day===null)return null;const n=no(i),o=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(n);return t?"Today, ".concat(o):o},Hv=(e,t)=>{const i=no(t);return new Intl.DateTimeFormat(e,{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}).format(i)},Vv=(e,t)=>{const i=no(t);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(i)},Wv=(e,t)=>Nv(e,t,{day:"numeric"}).find(i=>i.type==="day").value,qv=(e,t)=>Yv(e,t,{year:"numeric"}),no=e=>{var t,i,n;const o=e.hour!==void 0&&e.minute!==void 0?" ".concat(e.hour,":").concat(e.minute):"";return new Date("".concat((t=e.month)!==null&&t!==void 0?t:1,"/").concat((i=e.day)!==null&&i!==void 0?i:1,"/").concat((n=e.year)!==null&&n!==void 0?n:2023).concat(o," GMT+0000"))},Yv=(e,t,i)=>{const n=no(t);return Gh(e,i).format(n)},Nv=(e,t,i)=>{const n=no(t);return Gh(e,i).formatToParts(n)},Gh=(e,t)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},t),{timeZone:"UTC"})),Uv=e=>{if("RelativeTimeFormat"in Intl){const t=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return t.charAt(0).toUpperCase()+t.slice(1)}else return"Today"},ys=e=>{const t=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-t),e},Gv=ys(new Date("2022T01:00")),Xv=ys(new Date("2022T13:00")),cc=(e,t)=>{const i=t==="am"?Gv:Xv,n=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(i).find(o=>o.type==="dayPeriod");return n?n.value:Bv(t)},Kv=e=>Array.isArray(e)?e.join(","):e,Zv=()=>ys(new Date).toISOString(),Qv=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],Jv=[0,1,2,3,4,5,6,7,8,9,10,11],t1=[0,1,2,3,4,5,6,7,8,9,10,11],e1=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],i1=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],n1=(e,t,i=0)=>{const n=t==="ios"?"short":"narrow",o=new Intl.DateTimeFormat(e,{weekday:n}),r=new Date("11/01/2020"),a=[];for(let s=i;s{const n=je(e,t),o=new Date("".concat(e,"/1/").concat(t)).getDay(),r=o>=i?o-(i+1):6-(i-o);let a=[];for(let s=1;s<=n;s++)a.push({day:s,dayOfWeek:(r+s)%7});for(let s=0;s<=r;s++)a=[{day:null,dayOfWeek:null},...a];return a},r1=e=>{switch(e){case"h11":return Jv;case"h12":return t1;case"h23":return e1;case"h24":return i1;default:throw new Error('Invalid hour cycle "'.concat(e,'"'))}},a1=(e,t,i="h12",n,o,r,a)=>{const s=bs(e,i),l=xs(s);let c=r1(s),d=Qv,h=!0,u=!0;if(r&&(c=c.filter(m=>r.includes(m))),a&&(d=d.filter(m=>a.includes(m))),n)if(xe(t,n)){if(n.hour!==void 0&&(c=c.filter(m=>{const g=t.ampm==="pm"?(m+12)%24:m;return(l?m:g)>=n.hour}),h=n.hour<13),n.minute!==void 0){let m=!1;n.hour!==void 0&&t.hour!==void 0&&t.hour>n.hour&&(m=!0),d=d.filter(g=>m?!0:g>=n.minute)}}else Xe(t,n)&&(c=[],d=[],h=u=!1);return o&&(xe(t,o)?(o.hour!==void 0&&(c=c.filter(m=>{const g=t.ampm==="pm"?(m+12)%24:m;return(l?m:g)<=o.hour}),u=o.hour>=12),o.minute!==void 0&&t.hour===o.hour&&(d=d.filter(m=>m<=o.minute))):Li(t,o)&&(c=[],d=[],h=u=!1)),{hours:c,minutes:d,am:h,pm:u}},dc=(e,t)=>{const i={month:e.month,year:e.year,day:e.day};if(t!==void 0&&(e.month!==t.month||e.year!==t.year)){const n={month:t.month,year:t.year,day:t.day};return Xe(n,i)?[n,i,hn(e)]:[Yn(e),i,n]}return[Yn(e),i,hn(e)]},s1=(e,t,i,n,o,r={month:"long"})=>{const{year:a}=t,s=[];if(o!==void 0){let l=o;(n==null?void 0:n.month)!==void 0&&(l=l.filter(c=>c<=n.month)),(i==null?void 0:i.month)!==void 0&&(l=l.filter(c=>c>=i.month)),l.forEach(c=>{const d=new Date("".concat(c,"/1/").concat(a," GMT+0000")),h=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},r),{timeZone:"UTC"})).format(d);s.push({text:h,value:c})})}else{const l=n&&n.year===a?n.month:12,c=i&&i.year===a?i.month:1;for(let d=c;d<=l;d++){const h=new Date("".concat(d,"/1/").concat(a," GMT+0000")),u=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},r),{timeZone:"UTC"})).format(h);s.push({text:u,value:d})}}return s},Xh=(e,t,i,n,o,r={day:"numeric"})=>{const{month:a,year:s}=t,l=[],c=je(a,s),d=(n==null?void 0:n.day)!==null&&(n==null?void 0:n.day)!==void 0&&n.year===s&&n.month===a?n.day:c,h=(i==null?void 0:i.day)!==null&&(i==null?void 0:i.day)!==void 0&&i.year===s&&i.month===a?i.day:1;if(o!==void 0){let u=o;u=u.filter(m=>m>=h&&m<=d),u.forEach(m=>{const g=new Date("".concat(a,"/").concat(m,"/").concat(s," GMT+0000")),f=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},r),{timeZone:"UTC"})).format(g);l.push({text:f,value:m})})}else for(let u=h;u<=d;u++){const m=new Date("".concat(a,"/").concat(u,"/").concat(s," GMT+0000")),g=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},r),{timeZone:"UTC"})).format(m);l.push({text:g,value:u})}return l},l1=(e,t,i,n,o)=>{var r,a;let s=[];if(o!==void 0)s=o,(n==null?void 0:n.year)!==void 0&&(s=s.filter(l=>l<=n.year)),(i==null?void 0:i.year)!==void 0&&(s=s.filter(l=>l>=i.year));else{const{year:l}=t,c=(r=n==null?void 0:n.year)!==null&&r!==void 0?r:l,d=(a=i==null?void 0:i.year)!==null&&a!==void 0?a:l-100;for(let h=d;h<=c;h++)s.push(h)}return s.map(l=>({text:qv(e,{year:l,month:t.month,day:t.day}),value:l}))},Kh=(e,t)=>e.month===t.month&&e.year===t.year?[e]:[e,...Kh(hn(e),t)],c1=(e,t,i,n,o,r)=>{let a=[],s=[],l=Kh(i,n);return r&&(l=l.filter(({month:c})=>r.includes(c))),l.forEach(c=>{const d={month:c.month,day:null,year:c.year},h=Xh(e,d,i,n,o,{month:"short",day:"numeric",weekday:"short"}),u=[],m=[];h.forEach(g=>{const f=xe(Object.assign(Object.assign({},d),{day:g.value}),t);m.push({text:f?Uv(e):g.text,value:"".concat(d.year,"-").concat(d.month,"-").concat(g.value)}),u.push({month:d.month,year:d.year,day:g.value})}),s=[...s,...u],a=[...a,...m]}),{parts:s,items:a}},d1=(e,t,i,n,o,r,a)=>{const s=bs(e,i),l=xs(s),{hours:c,minutes:d,am:h,pm:u}=a1(e,t,s,n,o,r,a),m=c.map(k=>({text:Fv(k,s),value:Lv(k,l,t.ampm)})),g=d.map(k=>({text:Uh(k),value:k})),f=[];return h&&!l&&f.push({text:cc(e,"am"),value:"am"}),u&&!l&&f.push({text:cc(e,"pm"),value:"pm"}),{minutesData:g,hoursData:m,dayPeriodData:f}};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const h1=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6);font-size:max(14px, 1rem)}",u1=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:0.875rem}",p1=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=F(this);return p(Q,{class:xt(this.color,{[t]:!0})},p("slot",null))}static get style(){return{ios:h1,md:u1}}},[33,"ion-note",{color:[513]}]);function oo(){if(typeof customElements>"u")return;["ion-note"].forEach(t=>{switch(t){case"ion-note":customElements.get(t)||customElements.define(t,p1);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const m1=':host{--inner-min-width:4rem;--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.item-legacy) .item-native{-ms-flex-wrap:unset;flex-wrap:unset}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-width:var(--inner-min-width);max-width:100%;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}:host(.item-legacy) .item-inner{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1;width:-webkit-min-content;width:-moz-min-content;width:min-content;max-width:100%}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;max-width:100%;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-legacy) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:var(--ion-text-color, #000);--background-focused:var(--ion-text-color, #000);--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:1rem}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:2px;margin-bottom:2px}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:1px;--padding-bottom:1px;--padding-start:.5em;--padding-end:.5em;min-height:24px;font-size:0.8125rem}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){-webkit-margin-start:0px;margin-inline-start:0px}::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',f1=':host{--inner-min-width:4rem;--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.item-legacy) .item-native{-ms-flex-wrap:unset;flex-wrap:unset}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-width:var(--inner-min-width);max-width:100%;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}:host(.item-legacy) .item-inner{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1;width:-webkit-min-content;width:-moz-min-content;width:min-content;max-width:100%}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;max-width:100%;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-legacy) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:1rem;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));-webkit-transition:none;transition:none}@supports (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{inset-inline-start:var(--position-offset)}}@supports not (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{left:var(--position-offset)}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}@supports selector(:dir(rtl)){:host(.item-fill-outline:dir(rtl)) .item-highlight{left:unset;right:unset;right:var(--position-offset)}}}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;-ms-flex-item-align:start;align-self:flex-start}::slotted([slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted([slot=end]){-webkit-margin-start:32px;margin-inline-start:32px}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.5em}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted(ion-icon[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:0.6875rem}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){-webkit-padding-end:16px;padding-inline-end:16px}::slotted(ion-note[slot=end]){-webkit-padding-start:16px;padding-inline-start:16px}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0}::slotted(.button-small){--padding-top:2px;--padding-bottom:2px;--padding-start:.6em;--padding-end:.6em;min-height:25px;font-size:0.75rem}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid:dir(rtl)){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid.item-shape-round:dir(rtl)){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{-webkit-padding-start:32px;padding-inline-start:32px}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){-webkit-transform:translateY(-14px);transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}',g1=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.labelColorStyles={},this.itemStyles=new Map,this.inheritedAriaAttributes={},this.multipleInputs=!1,this.focusable=!0,this.color=void 0,this.button=!1,this.detail=void 0,this.detailIcon=qo,this.disabled=!1,this.download=void 0,this.fill=void 0,this.shape=void 0,this.href=void 0,this.rel=void 0,this.lines=void 0,this.counter=!1,this.routerAnimation=void 0,this.routerDirection="forward",this.target=void 0,this.type="button",this.counterFormatter=void 0,this.counterString=void 0}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonInput(t){this.counter&&t.target===this.getFirstInput()&&this.updateCounterOutput(t.target)}labelColorChanged(t){const{color:i}=this;i===void 0&&(this.labelColorStyles=t.detail)}itemStyle(t){t.stopPropagation();const i=t.target.tagName,n=t.detail,o={},r=this.itemStyles.get(i)||{};let a=!1;Object.keys(n).forEach(s=>{if(n[s]){const l="item-".concat(s);r[l]||(a=!0),o[l]=!0}}),!a&&Object.keys(o).length!==Object.keys(r).length&&(a=!0),a&&(this.itemStyles.set(i,o),ue(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentWillLoad(){this.inheritedAriaAttributes=ci(this.el,["aria-label"])}componentDidLoad(){const{el:t,counter:i,counterFormatter:n,fill:o,shape:r}=this;t.querySelector('[slot="helper"]')!==null&&ft('The "helper" slot has been deprecated in favor of using the "helperText" property on ion-input or ion-textarea.',t),t.querySelector('[slot="error"]')!==null&&ft('The "error" slot has been deprecated in favor of using the "errorText" property on ion-input or ion-textarea.',t),i===!0&&ft('The "counter" property has been deprecated in favor of using the "counter" property on ion-input or ion-textarea.',t),n!==void 0&&ft('The "counterFormatter" property has been deprecated in favor of using the "counterFormatter" property on ion-input or ion-textarea.',t),o!==void 0&&ft('The "fill" property has been deprecated in favor of using the "fill" property on ion-input or ion-textarea.',t),r!==void 0&&ft('The "shape" property has been deprecated in favor of using the "shape" property on ion-input or ion-textarea.',t),gt(()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()})}setMultipleInputs(){const t=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),i=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),n=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=t.length+i.length>1||t.length+n.length>1||t.length>0&&this.isClickable()}hasCover(){return this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length===1&&!this.multipleInputs}isClickable(){return this.href!==void 0||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const t=this.el.querySelector(".ion-focusable");return this.canActivate()||t!==null}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}updateCounterOutput(t){var i,n;const{counter:o,counterFormatter:r,defaultCounterFormatter:a}=this;if(o&&!this.multipleInputs&&(t==null?void 0:t.maxlength)!==void 0){const s=(n=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i.toString().length)!==null&&n!==void 0?n:0;if(r===void 0)this.counterString=a(s,t.maxlength);else try{this.counterString=r(s,t.maxlength)}catch(l){vi("Exception in provided `counterFormatter`.",l),this.counterString=a(s,t.maxlength)}}}defaultCounterFormatter(t,i){return"".concat(t," / ").concat(i)}hasStartEl(){this.el.querySelector('[slot="start"]')!==null&&this.el.classList.add("item-has-start-slot")}getFirstInteractive(){return this.el.querySelectorAll("ion-toggle:not([disabled]), ion-checkbox:not([disabled]), ion-radio:not([disabled]), ion-select:not([disabled])")[0]}render(){const{counterString:t,detail:i,detailIcon:n,download:o,fill:r,labelColorStyles:a,lines:s,disabled:l,href:c,rel:d,shape:h,target:u,routerAnimation:m,routerDirection:g,inheritedAriaAttributes:f,multipleInputs:k}=this,x={},C=F(this),I=this.isClickable(),v=this.canActivate(),S=I?c===void 0?"button":"a":"div",E=S==="button"?{type:this.type}:{download:o,href:c,rel:d,target:u};let y={};const A=this.getFirstInteractive();(I||A!==void 0&&!k)&&(y={onClick:j=>{if(I&&eo(c,j,g,m),A!==void 0&&!k){const at=j.composedPath()[0];j.isTrusted&&this.el.shadowRoot.contains(at)&&A.click()}}});const $=i!==void 0?i:C==="ios"&&I;this.itemStyles.forEach(j=>{Object.assign(x,j)});const M=l||x["item-interactive-disabled"]?"true":null,T=r||"none",U=wt("ion-list",this.el)&&!wt("ion-radio-group",this.el);return p(Q,{"aria-disabled":M,class:Object.assign(Object.assign(Object.assign({},x),a),xt(this.color,{item:!0,[C]:!0,"item-lines-default":s===void 0,["item-lines-".concat(s)]:s!==void 0,["item-fill-".concat(T)]:!0,["item-shape-".concat(h)]:h!==void 0,"item-has-interactive-control":A!==void 0,"item-disabled":l,"in-list":U,"item-multiple-inputs":this.multipleInputs,"ion-activatable":v,"ion-focusable":this.focusable,"item-rtl":document.dir==="rtl"})),role:U?"listitem":null},p(S,Object.assign({},E,f,{class:"item-native",part:"native",disabled:l},y),p("slot",{name:"start"}),p("div",{class:"item-inner"},p("div",{class:"input-wrapper"},p("slot",null)),p("slot",{name:"end"}),$&&p("ion-icon",{icon:n,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":n===qo}),p("div",{class:"item-inner-highlight"})),v&&C==="md"&&p("ion-ripple-effect",null),p("div",{class:"item-highlight"})),p("div",{class:"item-bottom"},p("slot",{name:"error"}),p("slot",{name:"helper"}),t&&p("ion-note",{class:"item-counter"},t)))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}static get style(){return{ios:m1,md:f1}}},[49,"ion-item",{color:[513],button:[4],detail:[4],detailIcon:[1,"detail-icon"],disabled:[4],download:[1],fill:[1],shape:[1],href:[1],rel:[1],lines:[1],counter:[4],routerAnimation:[16],routerDirection:[1,"router-direction"],target:[1],type:[1],counterFormatter:[16],multipleInputs:[32],focusable:[32],counterString:[32]},[[0,"ionInput","handleIonInput"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{counterFormatter:["counterFormatterChanged"]}]);function vr(){if(typeof customElements>"u")return;["ion-item","ion-icon","ion-note","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-item":customElements.get(t)||customElements.define(t,g1);break;case"ion-icon":customElements.get(t)||ve();break;case"ion-note":customElements.get(t)||oo();break;case"ion-ripple-effect":customElements.get(t)||se();break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const b1=".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.item-legacy.sc-ion-label-ios-h,.item-legacy .sc-ion-label-ios-h{white-space:nowrap;overflow:hidden}.item.sc-ion-label-ios-h:not(.item-input):not(.item-legacy),.item:not(.item-input):not(.item-legacy) .sc-ion-label-ios-h{-ms-flex-positive:1;flex-grow:1}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-ios-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-ios-h,.item-skeleton-text .sc-ion-label-ios-h{overflow:hidden}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h{font-size:0.875rem;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:0.875rem}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.label-floating.sc-ion-label-ios-h:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:1.375rem;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.0625rem;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",x1='.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.item-legacy.sc-ion-label-md-h,.item-legacy .sc-ion-label-md-h{white-space:nowrap;overflow:hidden}.item.sc-ion-label-md-h:not(.item-input):not(.item-legacy),.item:not(.item-input):not(.item-legacy) .sc-ion-label-md-h{-ms-flex-positive:1;flex-grow:1}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-md-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-md-h,.item-skeleton-text .sc-ion-label-md-h{overflow:hidden}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:1.25rem;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}',v1=et(class extends tt{constructor(){super(),this.__registerHost(),this.ionColor=L(this,"ionColor",7),this.ionStyle=L(this,"ionStyle",7),this.inRange=!1,this.color=void 0,this.position=void 0,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate=this.position==="floating",this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout(()=>{this.noAnimate=!1},1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:t}=this;this.ionColor.emit({"item-label-color":t!==void 0,["ion-color-".concat(t)]:t!==void 0})}emitStyle(){const{inRange:t,position:i}=this;t||this.ionStyle.emit({label:!0,["label-".concat(i)]:i!==void 0})}render(){const t=this.position,i=F(this);return p(Q,{class:xt(this.color,{[i]:!0,"in-item-color":wt("ion-item.ion-color",this.el),["label-".concat(t)]:t!==void 0,"label-no-animate":this.noAnimate,"label-rtl":document.dir==="rtl"})})}get el(){return this}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}static get style(){return{ios:b1,md:x1}}},[34,"ion-label",{color:[513],position:[1],noAnimate:[32]},void 0,{color:["colorChanged"],position:["positionChanged"]}]);function wr(){if(typeof customElements>"u")return;["ion-label"].forEach(t=>{switch(t){case"ion-label":customElements.get(t)||customElements.define(t,v1);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const ae=typeof window<"u"?window:void 0,$n=typeof document<"u"?document:void 0;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Zi=()=>{if(ae!==void 0)return ae.Capacitor};/*! + * (C) Ionic http://ionicframework.com - MIT License + */var Aa;(function(e){e.Heavy="HEAVY",e.Medium="MEDIUM",e.Light="LIGHT"})(Aa||(Aa={}));var hc;(function(e){e.Success="SUCCESS",e.Warning="WARNING",e.Error="ERROR"})(hc||(hc={}));const yr={getEngine(){const e=window.TapticEngine;if(e)return e;const t=Zi();if(t!=null&&t.isPluginAvailable("Haptics"))return t.Plugins.Haptics},available(){if(!this.getEngine())return!1;const t=Zi();return(t==null?void 0:t.getPlatform())==="web"?typeof navigator<"u"&&navigator.vibrate!==void 0:!0},isCordova(){return window.TapticEngine!==void 0},isCapacitor(){return Zi()!==void 0},impact(e){const t=this.getEngine();if(!t)return;const i=this.isCapacitor()?e.style:e.style.toLowerCase();t.impact({style:i})},notification(e){const t=this.getEngine();if(!t)return;const i=this.isCapacitor()?e.type:e.type.toLowerCase();t.notification({type:i})},selection(){const e=this.isCapacitor()?Aa.Light:"light";this.impact({style:e})},selectionStart(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionStart():e.gestureSelectionStart())},selectionChanged(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionChanged():e.gestureSelectionChanged())},selectionEnd(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionEnd():e.gestureSelectionEnd())}},ks=()=>yr.available(),Zh=()=>{ks()&&yr.selectionStart()},Qh=()=>{ks()&&yr.selectionChanged()},Jh=()=>{ks()&&yr.selectionEnd()};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const w1=":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item[disabled]{cursor:default}:host .picker-item-empty,:host(:not([disabled])) .picker-item[disabled]{scroll-snap-align:none}:host([disabled]){overflow-y:hidden}:host .picker-item[disabled]{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}",y1=":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item[disabled]{cursor:default}:host .picker-item-empty,:host(:not([disabled])) .picker-item[disabled]{scroll-snap-align:none}:host([disabled]){overflow-y:hidden}:host .picker-item[disabled]{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}:host .picker-item-active{color:var(--ion-color-base)}",k1=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=L(this,"ionChange",7),this.isScrolling=!1,this.isColumnVisible=!1,this.canExitInputMode=!0,this.centerPickerItemInView=(t,i=!0,n=!0)=>{const{el:o,isColumnVisible:r}=this;if(r){const a=t.offsetTop-3*t.clientHeight+t.clientHeight/2;o.scrollTop!==a&&(this.canExitInputMode=n,o.scroll({top:a,left:0,behavior:i?"smooth":void 0}))}},this.setPickerItemActiveState=(t,i)=>{i?(t.classList.add(Wr),t.part.add(qr)):(t.classList.remove(Wr),t.part.remove(qr))},this.inputModeChange=t=>{if(!this.numericInput)return;const{useInputMode:i,inputModeColumn:n}=t.detail,o=n===void 0||n===this.el;if(!i||!o){this.setInputModeActive(!1);return}this.setInputModeActive(!0)},this.setInputModeActive=t=>{if(this.isScrolling){this.scrollEndCallback=()=>{this.isActive=t};return}this.isActive=t},this.initializeScrollListener=()=>{const t=$e("ios"),{el:i}=this;let n,o=this.activeItem;const r=()=>{gt(()=>{n&&(clearTimeout(n),n=void 0),this.isScrolling||(t&&Zh(),this.isScrolling=!0);const a=i.getBoundingClientRect(),s=a.x+a.width/2,l=a.y+a.height/2,c=i.shadowRoot.elementFromPoint(s,l);o!==null&&this.setPickerItemActiveState(o,!1),!(c===null||c.disabled)&&(c!==o&&(t&&Qh(),this.canExitInputMode&&this.exitInputMode()),o=c,this.setPickerItemActiveState(c,!0),n=setTimeout(()=>{this.isScrolling=!1,t&&Jh();const{scrollEndCallback:d}=this;d&&(d(),this.scrollEndCallback=void 0),this.canExitInputMode=!0;const h=c.getAttribute("data-index");if(h===null)return;const u=parseInt(h,10),m=this.items[u];m.value!==this.value&&this.setValue(m.value)},250))})};gt(()=>{i.addEventListener("scroll",r),this.destroyScrollListener=()=>{i.removeEventListener("scroll",r)}})},this.exitInputMode=()=>{const{parentEl:t}=this;t!=null&&(t.exitInputMode(),this.el.classList.remove("picker-column-active"))},this.isActive=!1,this.disabled=!1,this.items=[],this.value=void 0,this.color="primary",this.numericInput=!1}valueChange(){this.isColumnVisible&&this.scrollActiveItemIntoView()}componentWillLoad(){const t=n=>{if(n[0].isIntersecting){const{activeItem:r,el:a}=this;this.isColumnVisible=!0;const s=Lt(a).querySelector(".".concat(Wr));s&&this.setPickerItemActiveState(s,!1),this.scrollActiveItemIntoView(),r&&this.setPickerItemActiveState(r,!0),this.initializeScrollListener()}else this.isColumnVisible=!1,this.destroyScrollListener&&(this.destroyScrollListener(),this.destroyScrollListener=void 0)};new IntersectionObserver(t,{threshold:.001}).observe(this.el);const i=this.parentEl=this.el.closest("ion-picker-internal");i!==null&&i.addEventListener("ionInputModeChange",n=>this.inputModeChange(n))}componentDidRender(){var t;const{activeItem:i,items:n,isColumnVisible:o,value:r}=this;o&&(i?this.scrollActiveItemIntoView():((t=n[0])===null||t===void 0?void 0:t.value)!==r&&this.setValue(n[0].value))}async scrollActiveItemIntoView(){const t=this.activeItem;t&&this.centerPickerItemInView(t,!1,!1)}async setValue(t){const{items:i}=this;this.value=t;const n=i.find(o=>o.value===t&&o.disabled!==!0);n&&this.ionChange.emit(n)}get activeItem(){const t='.picker-item[data-value="'.concat(this.value,'"]').concat(this.disabled?"":":not([disabled])");return Lt(this.el).querySelector(t)}render(){const{items:t,color:i,disabled:n,isActive:o,numericInput:r}=this,a=F(this);return p(Q,{exportparts:"".concat(uc,", ").concat(qr),disabled:n,tabindex:n?null:0,class:xt(i,{[a]:!0,"picker-column-active":o,"picker-column-numeric-input":r})},p("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),p("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),p("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),t.map((s,l)=>{const c=n||s.disabled||!1;return p("button",{tabindex:"-1",class:{"picker-item":!0},"data-value":s.value,"data-index":l,onClick:d=>{this.centerPickerItemInView(d.target,!0)},disabled:c,part:uc},s.text)}),p("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),p("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),p("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "))}get el(){return this}static get watchers(){return{value:["valueChange"]}}static get style(){return{ios:w1,md:y1}}},[33,"ion-picker-column-internal",{disabled:[4],items:[16],value:[1032],color:[513],numericInput:[4,"numeric-input"],isActive:[32],scrollActiveItemIntoView:[64],setValue:[64]},void 0,{value:["valueChange"]}]),Wr="picker-item-active",uc="wheel-item",qr="active";function C1(){if(typeof customElements>"u")return;["ion-picker-column-internal"].forEach(t=>{switch(t){case"ion-picker-column-internal":customElements.get(t)||customElements.define(t,k1);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const E1=":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}@supports (inset-inline-start: 0){:host .picker-before{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-before{left:0}:host-context([dir=rtl]) .picker-before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-before{left:unset;right:unset;right:0}}}:host .picker-after{top:116px;height:84px}@supports (inset-inline-start: 0){:host .picker-after{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-after{left:0}:host-context([dir=rtl]) .picker-after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-after{left:unset;right:unset;right:0}}}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--wheel-highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-highlight{background:var(--wheel-highlight-background, var(--ion-color-step-150, #eeeeef))}",S1=":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}@supports (inset-inline-start: 0){:host .picker-before{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-before{left:0}:host-context([dir=rtl]) .picker-before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-before{left:unset;right:unset;right:0}}}:host .picker-after{top:116px;height:84px}@supports (inset-inline-start: 0){:host .picker-after{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-after{left:0}:host-context([dir=rtl]) .picker-after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-after{left:unset;right:unset;right:0}}}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--wheel-highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 30%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}",A1=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionInputModeChange=L(this,"ionInputModeChange",7),this.useInputMode=!1,this.isInHighlightBounds=t=>{const{highlightEl:i}=this;if(!i)return!1;const n=i.getBoundingClientRect(),o=t.clientXn.right,r=t.clientYn.bottom;return!(o||r)},this.onFocusOut=t=>{const{relatedTarget:i}=t;(!i||i.tagName!=="ION-PICKER-COLUMN-INTERNAL"&&i!==this.inputEl)&&this.exitInputMode()},this.onFocusIn=t=>{const{target:i}=t;if(i.tagName==="ION-PICKER-COLUMN-INTERNAL"&&!this.actionOnClick){const n=i;n.numericInput?this.enterInputMode(n,!1):this.exitInputMode()}},this.onClick=()=>{const{actionOnClick:t}=this;t&&(t(),this.actionOnClick=void 0)},this.onPointerDown=t=>{const{useInputMode:i,inputModeColumn:n,el:o}=this;if(this.isInHighlightBounds(t)){if(i)t.target.tagName==="ION-PICKER-COLUMN-INTERNAL"?n&&n===t.target?this.actionOnClick=()=>{this.enterInputMode()}:this.actionOnClick=()=>{this.enterInputMode(t.target)}:this.actionOnClick=()=>{this.exitInputMode()};else{const a=o.querySelectorAll("ion-picker-column-internal.picker-column-numeric-input").length===1?t.target:void 0;this.actionOnClick=()=>{this.enterInputMode(a)}}return}this.actionOnClick=()=>{this.exitInputMode()}},this.enterInputMode=(t,i=!0)=>{const{inputEl:n,el:o}=this;!n||!o.querySelector("ion-picker-column-internal.picker-column-numeric-input")||(this.useInputMode=!0,this.inputModeColumn=t,i?(this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),n.focus()):(o.addEventListener("keypress",this.onKeyPress),this.destroyKeypressListener=()=>{o.removeEventListener("keypress",this.onKeyPress)}),this.emitInputModeChange())},this.onKeyPress=t=>{const{inputEl:i}=this;if(!i)return;const n=parseInt(t.key,10);Number.isNaN(n)||(i.value+=t.key,this.onInputChange())},this.selectSingleColumn=()=>{const{inputEl:t,inputModeColumn:i,singleColumnSearchTimeout:n}=this;if(!t||!i)return;const o=i.items.filter(a=>a.disabled!==!0);if(n&&clearTimeout(n),this.singleColumnSearchTimeout=setTimeout(()=>{t.value="",this.singleColumnSearchTimeout=void 0},1e3),t.value.length>=3){const a=t.value.length-2,s=t.value.substring(a);t.value=s,this.selectSingleColumn();return}const r=o.find(({text:a})=>a.replace(/^0+(?=[1-9])|0+(?=0$)/,"")===t.value);if(r){i.setValue(r.value);return}if(t.value.length===2){const a=t.value.substring(t.value.length-1);t.value=a,this.selectSingleColumn()}},this.searchColumn=(t,i,n="start")=>{const o=n==="start"?/^0+/:/0$/,r=t.items.find(({text:a,disabled:s})=>s!==!0&&a.replace(o,"")===i);r&&t.setValue(r.value)},this.selectMultiColumn=()=>{const{inputEl:t,el:i}=this;if(!t)return;const n=Array.from(i.querySelectorAll("ion-picker-column-internal")).filter(l=>l.numericInput),o=n[0],r=n[1];let a=t.value,s;switch(a.length){case 1:this.searchColumn(o,a);break;case 2:const l=t.value.substring(0,1);a=l==="0"||l==="1"?t.value:l,this.searchColumn(o,a),a.length===1&&(s=t.value.substring(t.value.length-1),this.searchColumn(r,s,"end"));break;case 3:const c=t.value.substring(0,1);a=c==="0"||c==="1"?t.value.substring(0,2):c,this.searchColumn(o,a),s=a.length===1?t.value.substring(1):t.value.substring(2),this.searchColumn(r,s,"end");break;case 4:const d=t.value.substring(0,1);a=d==="0"||d==="1"?t.value.substring(0,2):d,this.searchColumn(o,a);const h=a.length===1?t.value.substring(1,t.value.length):t.value.substring(2,t.value.length);this.searchColumn(r,h,"end");break;default:const u=t.value.length-4,m=t.value.substring(u);t.value=m,this.selectMultiColumn();break}},this.onInputChange=()=>{const{useInputMode:t,inputEl:i,inputModeColumn:n}=this;!t||!i||(n?this.selectSingleColumn():this.selectMultiColumn())},this.emitInputModeChange=()=>{const{useInputMode:t,inputModeColumn:i}=this;this.ionInputModeChange.emit({useInputMode:t,inputModeColumn:i})}}preventTouchStartPropagation(t){t.stopPropagation()}componentWillLoad(){Lt(this.el).addEventListener("focusin",this.onFocusIn),Lt(this.el).addEventListener("focusout",this.onFocusOut)}async exitInputMode(){const{inputEl:t,useInputMode:i}=this;!i||!t||(this.useInputMode=!1,this.inputModeColumn=void 0,t.blur(),t.value="",this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),this.emitInputModeChange())}render(){return p(Q,{onPointerDown:t=>this.onPointerDown(t),onClick:()=>this.onClick()},p("input",{"aria-hidden":"true",tabindex:-1,inputmode:"numeric",type:"number",ref:t=>this.inputEl=t,onInput:()=>this.onInputChange(),onBlur:()=>this.exitInputMode()}),p("div",{class:"picker-before"}),p("div",{class:"picker-after"}),p("div",{class:"picker-highlight",ref:t=>this.highlightEl=t}),p("slot",null))}get el(){return this}static get style(){return{ios:E1,md:S1}}},[33,"ion-picker-internal",{exitInputMode:[64]},[[1,"touchstart","preventTouchStartPropagation"]]]);function I1(){if(typeof customElements>"u")return;["ion-picker-internal"].forEach(t=>{switch(t){case"ion-picker-internal":customElements.get(t)||customElements.define(t,A1);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const kr=async(e,t,i,n,o,r)=>{var a;if(e)return e.attachViewToDom(t,i,o,n);if(!r&&typeof i!="string"&&!(i instanceof HTMLElement))throw new Error("framework delegate is missing");const s=typeof i=="string"?(a=t.ownerDocument)===null||a===void 0?void 0:a.createElement(i):i;return n&&n.forEach(l=>s.classList.add(l)),o&&Object.assign(s,o),t.appendChild(s),await new Promise(l=>Re(s,l)),s},Cs=(e,t)=>{if(t){if(e){const i=t.parentElement;return e.removeViewFromDom(i,t)}t.remove()}return Promise.resolve()},Es=()=>{let e,t;return{attachViewToDom:async(o,r,a={},s=[])=>{var l,c;e=o;let d;if(r){const u=typeof r=="string"?(l=e.ownerDocument)===null||l===void 0?void 0:l.createElement(r):r;s.forEach(m=>u.classList.add(m)),Object.assign(u,a),e.appendChild(u),d=u,await new Promise(m=>Re(u,m))}else if(e.children.length>0&&(e.tagName==="ION-MODAL"||e.tagName==="ION-POPOVER")&&!(d=e.children[0]).classList.contains("ion-delegate-host")){const m=(c=e.ownerDocument)===null||c===void 0?void 0:c.createElement("div");m.classList.add("ion-delegate-host"),s.forEach(g=>m.classList.add(g)),m.append(...e.children),e.appendChild(m),d=m}const h=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),e.parentNode.insertBefore(t,e),h.appendChild(e),d!=null?d:e},removeViewFromDom:()=>(e&&t&&(t.parentNode.insertBefore(e,t),t.remove()),Promise.resolve())}};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const xn=()=>{let e;return{lock:async()=>{const i=e;let n;return e=new Promise(o=>n=o),i!==void 0&&await i,n}}};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const z1=()=>{document.addEventListener("backbutton",()=>{})},_1=()=>{const e=document;let t=!1;e.addEventListener("backbutton",()=>{if(t)return;let i=0,n=[];const o=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(s,l){n.push({priority:s,handler:l,id:i++})}}});e.dispatchEvent(o);const r=async s=>{try{if(s!=null&&s.handler){const l=s.handler(a);l!=null&&await l}}catch(l){console.error(l)}},a=()=>{if(n.length>0){let s={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};n.forEach(l=>{l.priority>=s.priority&&(s=l)}),t=!0,n=n.filter(l=>l.id!==s.id),r(s).then(()=>t=!1)}};a()})},tu=100,eu=99,T1=Object.freeze(Object.defineProperty({__proto__:null,MENU_BACK_BUTTON_PRIORITY:eu,OVERLAY_BACK_BUTTON_PRIORITY:tu,blockHardwareBackButton:z1,startHardwareBackButton:_1},Symbol.toStringTag,{value:"Module"}));/*! + * (C) Ionic http://ionicframework.com - MIT License + */let Ia=0,O1=0;const No=new WeakMap,Cr=e=>({create(t){return D1(e,t)},dismiss(t,i,n){return R1(document,t,i,e,n)},async getTop(){return un(document,e)}}),iu=Cr("ion-alert"),nu=Cr("ion-action-sheet"),$1=Cr("ion-popover"),L1=Cr("ion-toast"),ro=e=>{typeof document<"u"&&B1(document);const t=Ia++;e.overlayIndex=t},ao=e=>(e.hasAttribute("id")||(e.id="ion-overlay-".concat(++O1)),e.id),D1=(e,t)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(e).then(()=>{const i=document.createElement(e);return i.classList.add("overlay-hidden"),Object.assign(i,Object.assign(Object.assign({},t),{hasController:!0})),au(document).appendChild(i),new Promise(n=>Re(i,n))}):Promise.resolve(),Nn='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',za=(e,t)=>{let i=e.querySelector(Nn);const n=i==null?void 0:i.shadowRoot;n&&(i=n.querySelector(Nn)||i),i?Ca(i):t.focus()},P1=e=>e.classList.contains("overlay-hidden"),pc=(e,t)=>{const i=Array.from(e.querySelectorAll(Nn));let n=i.length>0?i[i.length-1]:null;const o=n==null?void 0:n.shadowRoot;o&&(n=o.querySelector(Nn)||n),n?n.focus():t.focus()},M1=(e,t)=>{const i=un(t,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),n=e.target;if(!i||!n||i.classList.contains("ion-disable-focus-trap"))return;const o=()=>{if(i===n)i.lastFocus=void 0;else{const a=Lt(i);if(!a.contains(n))return;const s=a.querySelector(".ion-overlay-wrapper");if(!s)return;if(s.contains(n)||n===a.querySelector("ion-backdrop"))i.lastFocus=n;else{const l=i.lastFocus;za(s,i),l===t.activeElement&&pc(s,i),i.lastFocus=t.activeElement}}},r=()=>{if(i.contains(n))i.lastFocus=n;else{const a=i.lastFocus;za(i,i),a===t.activeElement&&pc(i,i),i.lastFocus=t.activeElement}};i.shadowRoot?r():o()},B1=e=>{Ia===0&&(Ia=1,e.addEventListener("focus",t=>{M1(t,e)},!0),e.addEventListener("ionBackButton",t=>{const i=un(e);i!=null&&i.backdropDismiss&&t.detail.register(tu,()=>i.dismiss(void 0,zi))}),e.addEventListener("keydown",t=>{if(t.key==="Escape"){const i=un(e);i!=null&&i.backdropDismiss&&i.dismiss(void 0,zi)}}))},R1=(e,t,i,n,o)=>{const r=un(e,n,o);return r?r.dismiss(t,i):Promise.reject("overlay does not exist")},F1=(e,t)=>(t===void 0&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(i=>i.overlayIndex>0)),ou=(e,t)=>F1(e,t).filter(i=>!P1(i)),un=(e,t,i)=>{const n=ou(e,t);return i===void 0?n[n.length-1]:n.find(o=>o.id===i)},ru=(e=!1)=>{const i=au(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");i&&(e?i.setAttribute("aria-hidden","true"):i.removeAttribute("aria-hidden"))},so=async(e,t,i,n,o)=>{var r,a;if(e.presented)return;ru(!0),e.presented=!0,e.willPresent.emit(),(r=e.willPresentShorthand)===null||r===void 0||r.emit();const s=F(e),l=e.enterAnimation?e.enterAnimation:pt.get(t,s==="ios"?i:n);await su(e,l,e.el,o)&&(e.didPresent.emit(),(a=e.didPresentShorthand)===null||a===void 0||a.emit()),e.el.tagName!=="ION-TOAST"&&j1(e.el),e.keyboardClose&&(document.activeElement===null||!e.el.contains(document.activeElement))&&e.el.focus()},j1=async e=>{let t=document.activeElement;if(!t)return;const i=t==null?void 0:t.shadowRoot;i&&(t=i.querySelector(Nn)||t),await e.onDidDismiss(),t.focus()},lo=async(e,t,i,n,o,r,a)=>{var s,l;if(!e.presented)return!1;$n!==void 0&&ou($n).length===1&&ru(!1),e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:i}),(s=e.willDismissShorthand)===null||s===void 0||s.emit({data:t,role:i});const c=F(e),d=e.leaveAnimation?e.leaveAnimation:pt.get(n,c==="ios"?o:r);i!==Ji&&await su(e,d,e.el,a),e.didDismiss.emit({data:t,role:i}),(l=e.didDismissShorthand)===null||l===void 0||l.emit({data:t,role:i}),No.delete(e),e.el.classList.add("overlay-hidden"),e.el.style.removeProperty("pointer-events"),e.el.lastFocus!==void 0&&(e.el.lastFocus=void 0)}catch(c){console.error(c)}return e.el.remove(),!0},au=e=>e.querySelector("ion-app")||e.body,su=async(e,t,i,n)=>{i.classList.remove("overlay-hidden");const o=e.el,r=t(o,n);(!e.animated||!pt.getBoolean("animated",!0))&&r.duration(0),e.keyboardClose&&r.beforeAddWrite(()=>{const s=i.ownerDocument.activeElement;s!=null&&s.matches("input,ion-input, ion-textarea")&&s.blur()});const a=No.get(e)||[];return No.set(e,[...a,r]),await r.play(),!0},Fe=(e,t)=>{let i;const n=new Promise(o=>i=o);return H1(e,t,o=>{i(o.detail)}),n},H1=(e,t,i)=>{const n=o=>{Vn(e,t,n),i(o)};cn(e,t,n)},Ii=e=>e==="cancel"||e===zi,V1=e=>e(),Qi=(e,t)=>{if(typeof e=="function")return pt.get("_zoneGate",V1)(()=>{try{return e(t)}catch(n){throw n}})},zi="backdrop",Ji="gesture",lu=39,Ss=e=>{let t=!1,i;const n=Es(),o=(s=!1)=>{if(i&&!s)return{delegate:i,inline:t};const{el:l,hasController:c,delegate:d}=e;return t=l.parentNode!==null&&!c,i=t?d||n:d,{inline:t,delegate:i}};return{attachViewToDom:async s=>{const{delegate:l}=o(!0);if(l)return await l.attachViewToDom(e.el,s);const{hasController:c}=e;if(c&&s!==void 0)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:s}=o();s&&e.el!==void 0&&s.removeViewFromDom(e.el.parentElement,e.el)}}},Er=()=>{let e;const t=()=>{e&&(e(),e=void 0)};return{addClickListener:(n,o)=>{t();const r=o!==void 0?document.getElementById(o):null;if(!r){ft('A trigger element with the ID "'.concat(o,'" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.'),n);return}e=((s,l)=>{const c=()=>{l.present()};return s.addEventListener("click",c),()=>{s.removeEventListener("click",c)}})(r,n)},removeClickListener:t}},As="ionViewWillEnter",Is="ionViewDidEnter",Sr="ionViewWillLeave",Ar="ionViewDidLeave",Yr="ionViewWillUnload",W1=()=>ut(()=>import("./ios.transition-dQ8GtZqh.js"),__vite__mapDeps([])),q1=()=>ut(()=>import("./md.transition-0XUdQA4P.js"),__vite__mapDeps([])),cu=e=>new Promise((t,i)=>{Yt(()=>{Y1(e),N1(e).then(n=>{n.animation&&n.animation.destroy(),mc(e),t(n)},n=>{mc(e),i(n)})})}),Y1=e=>{const t=e.enteringEl,i=e.leavingEl;Q1(t,i,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),_a(t,!1),t.style.setProperty("pointer-events","none"),i&&(_a(i,!1),i.style.setProperty("pointer-events","none"))},N1=async e=>{const t=await U1(e);return t&&ab.isBrowser?G1(t,e):X1(e)},mc=e=>{const t=e.enteringEl,i=e.leavingEl;t.classList.remove("ion-page-invisible"),t.style.removeProperty("pointer-events"),i!==void 0&&(i.classList.remove("ion-page-invisible"),i.style.removeProperty("pointer-events"))},U1=async e=>!e.leavingEl||!e.animated||e.duration===0?void 0:e.animationBuilder?e.animationBuilder:e.mode==="ios"?(await W1()).iosTransitionAnimation:(await q1()).mdTransitionAnimation,G1=async(e,t)=>{await du(t,!0);const i=e(t.baseEl,t);hu(t.enteringEl,t.leavingEl);const n=await Z1(i,t);return t.progressCallback&&t.progressCallback(void 0),n&&uu(t.enteringEl,t.leavingEl),{hasCompleted:n,animation:i}},X1=async e=>{const t=e.enteringEl,i=e.leavingEl;return await du(e,!1),hu(t,i),uu(t,i),{hasCompleted:!0}},du=async(e,t)=>{(e.deepWait!==void 0?e.deepWait:t)&&await Promise.all([Un(e.enteringEl),Un(e.leavingEl)]),await K1(e.viewIsReady,e.enteringEl)},K1=async(e,t)=>{e&&await e(t)},Z1=(e,t)=>{const i=t.progressCallback,n=new Promise(o=>{e.onFinish(r=>o(r===1))});return i?(e.progressStart(!0),i(e)):e.play(),n},hu=(e,t)=>{Ne(t,Sr),Ne(e,As)},uu=(e,t)=>{Ne(e,Is),Ne(t,Ar)},Ne=(e,t)=>{if(e){const i=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(i)}},pu=()=>new Promise(e=>gt(()=>gt(()=>e()))),Un=async e=>{const t=e;if(t){if(t.componentOnReady!=null){if(await t.componentOnReady()!=null)return}else if(t.__registerHost!=null){await new Promise(n=>gt(n));return}await Promise.all(Array.from(t.children).map(Un))}},_a=(e,t)=>{t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},Q1=(e,t,i)=>{e!==void 0&&(e.style.zIndex=i==="back"?"99":"101"),t!==void 0&&(t.style.zIndex="100")},r3=e=>{if(e.classList.contains("ion-page"))return e;const t=e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return t||e};/*! + * (C) Ionic http://ionicframework.com - MIT License + */let Nr;const J1=e=>(e.forEach(t=>{for(const i in t)if(t.hasOwnProperty(i)){const n=t[i];if(i==="easing"){const o="animation-timing-function";t[o]=n,delete t[i]}else{const o=tw(i);o!==i&&(t[o]=n,delete t[i])}}}),e),tw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zs=e=>{if(Nr===void 0){const t=e.style.animationName!==void 0,i=e.style.webkitAnimationName!==void 0;Nr=!t&&i?"-webkit-":""}return Nr},Dt=(e,t,i)=>{const n=t.startsWith("animation")?zs(e):"";e.style.setProperty(n+t,i)},ye=(e,t)=>{const i=t.startsWith("animation")?zs(e):"";e.style.removeProperty(i+t)},ew=(e,t)=>{let i;const n={passive:!0},o=()=>{i&&i()},r=a=>{e===a.target&&(o(),t(a))};return e&&(e.addEventListener("webkitAnimationEnd",r,n),e.addEventListener("animationend",r,n),i=()=>{e.removeEventListener("webkitAnimationEnd",r,n),e.removeEventListener("animationend",r,n)}),o},iw=(e=[])=>e.map(t=>{const i=t.offset,n=[];for(const o in t)t.hasOwnProperty(o)&&o!=="offset"&&n.push("".concat(o,": ").concat(t[o],";"));return"".concat(i*100,"% { ").concat(n.join(" ")," }")}).join(" "),fc=[],nw=e=>{let t=fc.indexOf(e);return t<0&&(t=fc.push(e)-1),"ion-animation-".concat(t)},ow=e=>{const t=e.getRootNode!==void 0?e.getRootNode():e;return t.head||t},rw=(e,t,i)=>{var n;const o=ow(i),r=zs(i),a=o.querySelector("#"+e);if(a)return a;const s=((n=i.ownerDocument)!==null&&n!==void 0?n:document).createElement("style");return s.id=e,s.textContent="@".concat(r,"keyframes ").concat(e," { ").concat(t," } @").concat(r,"keyframes ").concat(e,"-alt { ").concat(t," }"),o.appendChild(s),s},ko=(e=[],t)=>{if(t!==void 0){const i=Array.isArray(t)?t:[t];return[...e,...i]}return e},N=e=>{let t,i,n,o,r,a,s=[],l=[],c=[],d=!1,h,u={},m=[],g=[],f={},k=0,x=!1,C=!1,I,v,S,E,y=!0,A=!1,$=!0,M,T,U=!1;const j=e,ht=[],at=[],rt=[],X=[],H=[],It=[],Ot=[],At=[],Mt=[],Qt=[],Bt=[],Qe=typeof AnimationEffect=="function"||ae!==void 0&&typeof ae.AnimationEffect=="function",Ct=typeof Element=="function"&&typeof Element.prototype.animate=="function"&&Qe,D=100,K=()=>Bt,Y=_=>(H.forEach(W=>{W.destroy(_)}),it(_),X.length=0,H.length=0,s.length=0,P(),d=!1,$=!0,T),it=_=>{B(),_&&G()},vt=()=>{x=!1,C=!1,$=!0,v=void 0,S=void 0,E=void 0,k=0,A=!1,y=!0,U=!1},b=()=>k!==0&&!U,w=(_,W)=>{const Z=W.findIndex(zt=>zt.c===_);Z>-1&&W.splice(Z,1)},z=(_,W)=>(rt.push({c:_,o:W}),T),O=(_,W)=>((W!=null&&W.oneTimeCallback?at:ht).push({c:_,o:W}),T),P=()=>(ht.length=0,at.length=0,T),B=()=>{if(Ct)Bt.forEach(_=>{_.cancel()}),Bt.length=0;else{const _=X.slice();gt(()=>{_.forEach(W=>{ye(W,"animation-name"),ye(W,"animation-duration"),ye(W,"animation-timing-function"),ye(W,"animation-iteration-count"),ye(W,"animation-delay"),ye(W,"animation-play-state"),ye(W,"animation-fill-mode"),ye(W,"animation-direction")})})}},G=()=>{It.forEach(_=>{_!=null&&_.parentNode&&_.parentNode.removeChild(_)}),It.length=0},V=_=>(Ot.push(_),T),q=_=>(At.push(_),T),R=_=>(Mt.push(_),T),nt=_=>(Qt.push(_),T),J=_=>(l=ko(l,_),T),ot=_=>(c=ko(c,_),T),lt=(_={})=>(u=_,T),mt=(_=[])=>{for(const W of _)u[W]="";return T},St=_=>(m=ko(m,_),T),kt=_=>(g=ko(g,_),T),Rt=(_={})=>(f=_,T),le=(_=[])=>{for(const W of _)f[W]="";return T},pe=()=>r!==void 0?r:h?h.getFill():"both",He=()=>v!==void 0?v:a!==void 0?a:h?h.getDirection():"normal",we=()=>x?"linear":n!==void 0?n:h?h.getEasing():"linear",ee=()=>C?0:S!==void 0?S:i!==void 0?i:h?h.getDuration():0,Ft=()=>o!==void 0?o:h?h.getIterations():1,Ut=()=>E!==void 0?E:t!==void 0?t:h?h.getDelay():0,ho=()=>s,ap=_=>(a=_,me(!0),T),sp=_=>(r=_,me(!0),T),lp=_=>(t=_,me(!0),T),cp=_=>(n=_,me(!0),T),dp=_=>(!Ct&&_===0&&(_=1),i=_,me(!0),T),hp=_=>(o=_,me(!0),T),up=_=>(h=_,T),pp=_=>{if(_!=null)if(_.nodeType===1)X.push(_);else if(_.length>=0)for(let W=0;W<_.length;W++)X.push(_[W]);else console.error("Invalid addElement value");return T},mp=_=>{if(_!=null)if(Array.isArray(_))for(const W of _)W.parent(T),H.push(W);else _.parent(T),H.push(_);return T},fp=_=>{const W=s!==_;return s=_,W&&gp(s),T},gp=_=>{Ct?K().forEach(W=>{const Z=W.effect;if(Z.setKeyframes)Z.setKeyframes(_);else{const zt=new KeyframeEffect(Z.target,_,Z.getTiming());W.effect=zt}}):Hs()},bp=()=>{Ot.forEach(zt=>zt()),At.forEach(zt=>zt());const _=l,W=c,Z=u;X.forEach(zt=>{const Ht=zt.classList;_.forEach(fe=>Ht.add(fe)),W.forEach(fe=>Ht.remove(fe));for(const fe in Z)Z.hasOwnProperty(fe)&&Dt(zt,fe,Z[fe])})},xp=()=>{zr(),Mt.forEach(Ht=>Ht()),Qt.forEach(Ht=>Ht());const _=y?1:0,W=m,Z=g,zt=f;X.forEach(Ht=>{const fe=Ht.classList;W.forEach(di=>fe.add(di)),Z.forEach(di=>fe.remove(di));for(const di in zt)zt.hasOwnProperty(di)&&Dt(Ht,di,zt[di])}),S=void 0,v=void 0,E=void 0,ht.forEach(Ht=>Ht.c(_,T)),at.forEach(Ht=>Ht.c(_,T)),at.length=0,$=!0,y&&(A=!0),y=!0},Di=()=>{k!==0&&(k--,k===0&&(xp(),h&&h.animationFinish()))},Hs=(_=!0)=>{G();const W=J1(s);X.forEach(Z=>{if(W.length>0){const zt=iw(W);M=e!==void 0?e:nw(zt);const Ht=rw(M,zt,Z);It.push(Ht),Dt(Z,"animation-duration","".concat(ee(),"ms")),Dt(Z,"animation-timing-function",we()),Dt(Z,"animation-delay","".concat(Ut(),"ms")),Dt(Z,"animation-fill-mode",pe()),Dt(Z,"animation-direction",He());const fe=Ft()===1/0?"infinite":Ft().toString();Dt(Z,"animation-iteration-count",fe),Dt(Z,"animation-play-state","paused"),_&&Dt(Z,"animation-name","".concat(Ht.id,"-alt")),gt(()=>{Dt(Z,"animation-name",Ht.id||null)})}})},vp=()=>{X.forEach(_=>{const W=_.animate(s,{id:j,delay:Ut(),duration:ee(),easing:we(),iterations:Ft(),fill:pe(),direction:He()});W.pause(),Bt.push(W)}),Bt.length>0&&(Bt[0].onfinish=()=>{Di()})},Vs=(_=!0)=>{bp(),s.length>0&&(Ct?vp():Hs(_)),d=!0},wn=_=>{if(_=Math.min(Math.max(_,0),.9999),Ct)Bt.forEach(W=>{W.currentTime=W.effect.getComputedTiming().delay+ee()*_,W.pause()});else{const W="-".concat(ee()*_,"ms");X.forEach(Z=>{s.length>0&&(Dt(Z,"animation-delay",W),Dt(Z,"animation-play-state","paused"))})}},Ws=_=>{Bt.forEach(W=>{W.effect.updateTiming({delay:Ut(),duration:ee(),easing:we(),iterations:Ft(),fill:pe(),direction:He()})}),_!==void 0&&wn(_)},qs=(_=!0,W)=>{gt(()=>{X.forEach(Z=>{Dt(Z,"animation-name",M||null),Dt(Z,"animation-duration","".concat(ee(),"ms")),Dt(Z,"animation-timing-function",we()),Dt(Z,"animation-delay",W!==void 0?"-".concat(W*ee(),"ms"):"".concat(Ut(),"ms")),Dt(Z,"animation-fill-mode",pe()||null),Dt(Z,"animation-direction",He()||null);const zt=Ft()===1/0?"infinite":Ft().toString();Dt(Z,"animation-iteration-count",zt),_&&Dt(Z,"animation-name","".concat(M,"-alt")),gt(()=>{Dt(Z,"animation-name",M||null)})})})},me=(_=!1,W=!0,Z)=>(_&&H.forEach(zt=>{zt.update(_,W,Z)}),Ct?Ws(Z):qs(W,Z),T),wp=(_=!1,W)=>(H.forEach(Z=>{Z.progressStart(_,W)}),Ys(),x=_,d||Vs(),me(!1,!0,W),T),yp=_=>(H.forEach(W=>{W.progressStep(_)}),wn(_),T),kp=(_,W,Z)=>(x=!1,H.forEach(zt=>{zt.progressEnd(_,W,Z)}),Z!==void 0&&(S=Z),A=!1,y=!0,_===0?(v=He()==="reverse"?"normal":"reverse",v==="reverse"&&(y=!1),Ct?(me(),wn(1-W)):(E=(1-W)*ee()*-1,me(!1,!1))):_===1&&(Ct?(me(),wn(W)):(E=W*ee()*-1,me(!1,!1))),_!==void 0&&!h&&Ns(),T),Ys=()=>{d&&(Ct?Bt.forEach(_=>{_.pause()}):X.forEach(_=>{Dt(_,"animation-play-state","paused")}),U=!0)},Cp=()=>(H.forEach(_=>{_.pause()}),Ys(),T),Ep=()=>{I=void 0,Di()},zr=()=>{I&&clearTimeout(I)},Sp=()=>{if(zr(),gt(()=>{X.forEach(_=>{s.length>0&&Dt(_,"animation-play-state","running")})}),s.length===0||X.length===0)Di();else{const _=Ut()||0,W=ee()||0,Z=Ft()||1;isFinite(Z)&&(I=setTimeout(Ep,_+W*Z+D)),ew(X[0],()=>{zr(),gt(()=>{Ap(),gt(Di)})})}},Ap=()=>{X.forEach(_=>{ye(_,"animation-duration"),ye(_,"animation-delay"),ye(_,"animation-play-state")})},Ip=()=>{Bt.forEach(_=>{_.play()}),(s.length===0||X.length===0)&&Di()},zp=()=>{Ct?(wn(0),Ws()):qs()},Ns=_=>new Promise(W=>{_!=null&&_.sync&&(C=!0,O(()=>C=!1,{oneTimeCallback:!0})),d||Vs(),A&&(zp(),A=!1),$&&(k=H.length+1,$=!1);const Z=()=>{w(zt,at),W()},zt=()=>{w(Z,rt),W()};O(zt,{oneTimeCallback:!0}),z(Z,{oneTimeCallback:!0}),H.forEach(Ht=>{Ht.play()}),Ct?Ip():Sp(),U=!1}),_p=()=>{H.forEach(_=>{_.stop()}),d&&(B(),d=!1),vt(),rt.forEach(_=>_.c(0,T)),rt.length=0},Us=(_,W)=>{const Z=s[0];return Z!==void 0&&(Z.offset===void 0||Z.offset===0)?Z[_]=W:s=[{offset:0,[_]:W},...s],T};return T={parentAnimation:h,elements:X,childAnimations:H,id:j,animationFinish:Di,from:Us,to:(_,W)=>{const Z=s[s.length-1];return Z!==void 0&&(Z.offset===void 0||Z.offset===1)?Z[_]=W:s=[...s,{offset:1,[_]:W}],T},fromTo:(_,W,Z)=>Us(_,W).to(_,Z),parent:up,play:Ns,pause:Cp,stop:_p,destroy:Y,keyframes:fp,addAnimation:mp,addElement:pp,update:me,fill:sp,direction:ap,iterations:hp,duration:dp,easing:cp,delay:lp,getWebAnimations:K,getKeyframes:ho,getFill:pe,getDirection:He,getDelay:Ut,getIterations:Ft,getEasing:we,getDuration:ee,afterAddRead:R,afterAddWrite:nt,afterClearStyles:le,afterStyles:Rt,afterRemoveClass:kt,afterAddClass:St,beforeAddRead:V,beforeAddWrite:q,beforeClearStyles:mt,beforeStyles:lt,beforeRemoveClass:ot,beforeAddClass:J,onFinish:O,isRunning:b,progressStart:wp,progressStep:yp,progressEnd:kp}};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const aw=e=>{if(!e)return{arrowWidth:0,arrowHeight:0};const{width:t,height:i}=e.getBoundingClientRect();return{arrowWidth:t,arrowHeight:i}},mu=(e,t,i)=>{const n=t.getBoundingClientRect(),o=n.height;let r=n.width;return e==="cover"&&i&&(r=i.getBoundingClientRect().width),{contentWidth:r,contentHeight:o}},sw=(e,t,i,n)=>{let o=[];const a=Lt(n).querySelector(".popover-content");switch(t){case"hover":o=[{eventName:"mouseenter",callback:s=>{document.elementFromPoint(s.clientX,s.clientY)!==e&&i.dismiss(void 0,void 0,!1)}}];break;case"context-menu":case"click":default:o=[{eventName:"click",callback:s=>{if(s.target.closest("[data-ion-popover-trigger]")===e){s.stopPropagation();return}i.dismiss(void 0,void 0,!1)}}];break}return o.forEach(({eventName:s,callback:l})=>a.addEventListener(s,l)),()=>{o.forEach(({eventName:s,callback:l})=>a.removeEventListener(s,l))}},lw=(e,t,i)=>{let n=[];switch(t){case"hover":let o;n=[{eventName:"mouseenter",callback:async r=>{r.stopPropagation(),o&&clearTimeout(o),o=setTimeout(()=>{gt(()=>{i.presentFromTrigger(r),o=void 0})},100)}},{eventName:"mouseleave",callback:r=>{o&&clearTimeout(o);const a=r.relatedTarget;a&&a.closest("ion-popover")!==i&&i.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>i.presentFromTrigger(r,!0)}];break;case"context-menu":n=[{eventName:"contextmenu",callback:r=>{r.preventDefault(),i.presentFromTrigger(r)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>i.presentFromTrigger(r,!0)}];break;case"click":default:n=[{eventName:"click",callback:r=>i.presentFromTrigger(r)},{eventName:"ionPopoverActivateTrigger",callback:r=>i.presentFromTrigger(r,!0)}];break}return n.forEach(({eventName:o,callback:r})=>e.addEventListener(o,r)),e.setAttribute("data-ion-popover-trigger","true"),()=>{n.forEach(({eventName:o,callback:r})=>e.removeEventListener(o,r)),e.removeAttribute("data-ion-popover-trigger")}},fu=(e,t)=>!t||t.tagName!=="ION-ITEM"?-1:e.findIndex(i=>i===t),cw=(e,t)=>{const i=fu(e,t);return e[i+1]},dw=(e,t)=>{const i=fu(e,t);return e[i-1]},Co=e=>{const i=Lt(e).querySelector("button");i&>(()=>i.focus())},hw=e=>e.hasAttribute("data-ion-popover-trigger"),uw=e=>{const t=async i=>{var n;const o=document.activeElement;let r=[];const a=(n=i.target)===null||n===void 0?void 0:n.tagName;if(!(a!=="ION-POPOVER"&&a!=="ION-ITEM")){try{r=Array.from(e.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch(s){}switch(i.key){case"ArrowLeft":await e.getParentPopover()&&e.dismiss(void 0,void 0,!1);break;case"ArrowDown":i.preventDefault();const l=cw(r,o);l!==void 0&&Co(l);break;case"ArrowUp":i.preventDefault();const c=dw(r,o);c!==void 0&&Co(c);break;case"Home":i.preventDefault();const d=r[0];d!==void 0&&Co(d);break;case"End":i.preventDefault();const h=r[r.length-1];h!==void 0&&Co(h);break;case"ArrowRight":case" ":case"Enter":if(o&&hw(o)){const u=new CustomEvent("ionPopoverActivateTrigger");o.dispatchEvent(u)}break}}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},gu=(e,t,i,n,o,r,a,s,l,c,d)=>{var h;let u={top:0,left:0,width:0,height:0};switch(r){case"event":if(!d)return l;const S=d;u={top:S.clientY,left:S.clientX,width:1,height:1};break;case"trigger":default:const E=d,y=c||((h=E==null?void 0:E.detail)===null||h===void 0?void 0:h.ionShadowTarget)||(E==null?void 0:E.target);if(!y)return l;const A=y.getBoundingClientRect();u={top:A.top,left:A.left,width:A.width,height:A.height};break}const m=fw(a,u,t,i,n,o,e),g=gw(s,a,u,t,i),f=m.top+g.top,k=m.left+g.left,{arrowTop:x,arrowLeft:C}=mw(a,n,o,f,k,t,i,e),{originX:I,originY:v}=pw(a,s,e);return{top:f,left:k,referenceCoordinates:u,arrowTop:x,arrowLeft:C,originX:I,originY:v}},pw=(e,t,i)=>{switch(e){case"top":return{originX:gc(t),originY:"bottom"};case"bottom":return{originX:gc(t),originY:"top"};case"left":return{originX:"right",originY:Eo(t)};case"right":return{originX:"left",originY:Eo(t)};case"start":return{originX:i?"left":"right",originY:Eo(t)};case"end":return{originX:i?"right":"left",originY:Eo(t)}}},gc=e=>{switch(e){case"start":return"left";case"center":return"center";case"end":return"right"}},Eo=e=>{switch(e){case"start":return"top";case"center":return"center";case"end":return"bottom"}},mw=(e,t,i,n,o,r,a,s)=>{const l={arrowTop:n+a/2-t/2,arrowLeft:o+r-t/2},c={arrowTop:n+a/2-t/2,arrowLeft:o-t*1.5};switch(e){case"top":return{arrowTop:n+a,arrowLeft:o+r/2-t/2};case"bottom":return{arrowTop:n-i,arrowLeft:o+r/2-t/2};case"left":return l;case"right":return c;case"start":return s?c:l;case"end":return s?l:c;default:return{arrowTop:0,arrowLeft:0}}},fw=(e,t,i,n,o,r,a)=>{const s={top:t.top,left:t.left-i-o},l={top:t.top,left:t.left+t.width+o};switch(e){case"top":return{top:t.top-n-r,left:t.left};case"right":return l;case"bottom":return{top:t.top+t.height+r,left:t.left};case"left":return s;case"start":return a?l:s;case"end":return a?s:l}},gw=(e,t,i,n,o)=>{switch(e){case"center":return xw(t,i,n,o);case"end":return bw(t,i,n,o);case"start":default:return{top:0,left:0}}},bw=(e,t,i,n)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(n-t.height),left:0};case"top":case"bottom":default:return{top:0,left:-(i-t.width)}}},xw=(e,t,i,n)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(n/2-t.height/2),left:0};case"top":case"bottom":default:return{top:0,left:-(i/2-t.width/2)}}},bu=(e,t,i,n,o,r,a,s,l,c,d,h,u=0,m=0,g=0)=>{let f=u;const k=m;let x=i,C=t,I,v=c,S=d,E=!1,y=!1;const A=h?h.top+h.height:r/2-s/2,$=h?h.height:0;let M=!1;return xo&&(y=!0,x=o-a-n,v="right"),A+$+s>r&&(e==="top"||e==="bottom")&&(A-s>0?(C=Math.max(12,A-s-$-(g-1)),f=C+s,S="bottom",M=!0):I=n),{top:C,left:x,bottom:I,originX:v,originY:S,checkSafeAreaLeft:E,checkSafeAreaRight:y,arrowTop:f,arrowLeft:k,addPopoverBottomClass:M}},vw=(e,t=!1,i,n)=>!(!i&&!n||e!=="top"&&e!=="bottom"&&t),ww=5,yw=(e,t)=>{var i;const{event:n,size:o,trigger:r,reference:a,side:s,align:l}=t,c=e.ownerDocument,d=c.dir==="rtl",h=c.defaultView.innerWidth,u=c.defaultView.innerHeight,m=Lt(e),g=m.querySelector(".popover-content"),f=m.querySelector(".popover-arrow"),k=r||((i=n==null?void 0:n.detail)===null||i===void 0?void 0:i.ionShadowTarget)||(n==null?void 0:n.target),{contentWidth:x,contentHeight:C}=mu(o,g,k),{arrowWidth:I,arrowHeight:v}=aw(f),S={top:u/2-C/2,left:h/2-x/2,originX:d?"right":"left",originY:"top"},E=gu(d,x,C,I,v,a,s,l,S,r,n),y=o==="cover"?0:ww,A=o==="cover"?0:25,{originX:$,originY:M,top:T,left:U,bottom:j,checkSafeAreaLeft:ht,checkSafeAreaRight:at,arrowTop:rt,arrowLeft:X,addPopoverBottomClass:H}=bu(s,E.top,E.left,y,h,u,x,C,A,E.originX,E.originY,E.referenceCoordinates,E.arrowTop,E.arrowLeft,v),It=N(),Ot=N(),At=N();return Ot.addElement(m.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),At.addElement(m.querySelector(".popover-arrow")).addElement(m.querySelector(".popover-content")).fromTo("opacity",.01,1),It.easing("ease").duration(100).beforeAddWrite(()=>{o==="cover"&&e.style.setProperty("--width","".concat(x,"px")),H&&e.classList.add("popover-bottom"),j!==void 0&&g.style.setProperty("bottom","".concat(j,"px"));const Mt=" + var(--ion-safe-area-left, 0)",Qt=" - var(--ion-safe-area-right, 0)";let Bt="".concat(U,"px");if(ht&&(Bt="".concat(U,"px").concat(Mt)),at&&(Bt="".concat(U,"px").concat(Qt)),g.style.setProperty("top","calc(".concat(T,"px + var(--offset-y, 0))")),g.style.setProperty("left","calc(".concat(Bt," + var(--offset-x, 0))")),g.style.setProperty("transform-origin","".concat(M," ").concat($)),f!==null){const Qe=E.top!==T||E.left!==U;vw(s,Qe,n,r)?(f.style.setProperty("top","calc(".concat(rt,"px + var(--offset-y, 0))")),f.style.setProperty("left","calc(".concat(X,"px + var(--offset-x, 0))"))):f.style.setProperty("display","none")}}).addAnimation([Ot,At])},kw=e=>{const t=Lt(e),i=t.querySelector(".popover-content"),n=t.querySelector(".popover-arrow"),o=N(),r=N(),a=N();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(t.querySelector(".popover-arrow")).addElement(t.querySelector(".popover-content")).fromTo("opacity",.99,0),o.easing("ease").afterAddWrite(()=>{e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),i.style.removeProperty("top"),i.style.removeProperty("left"),i.style.removeProperty("bottom"),i.style.removeProperty("transform-origin"),n&&(n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("display"))}).duration(300).addAnimation([r,a])},Cw=12,Ew=(e,t)=>{var i;const{event:n,size:o,trigger:r,reference:a,side:s,align:l}=t,c=e.ownerDocument,d=c.dir==="rtl",h=c.defaultView.innerWidth,u=c.defaultView.innerHeight,m=Lt(e),g=m.querySelector(".popover-content"),f=r||((i=n==null?void 0:n.detail)===null||i===void 0?void 0:i.ionShadowTarget)||(n==null?void 0:n.target),{contentWidth:k,contentHeight:x}=mu(o,g,f),C={top:u/2-x/2,left:h/2-k/2,originX:d?"right":"left",originY:"top"},I=gu(d,k,x,0,0,a,s,l,C,r,n),v=o==="cover"?0:Cw,{originX:S,originY:E,top:y,left:A,bottom:$}=bu(s,I.top,I.left,v,h,u,k,x,0,I.originX,I.originY,I.referenceCoordinates),M=N(),T=N(),U=N(),j=N(),ht=N();return T.addElement(m.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),U.addElement(m.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),j.addElement(g).beforeStyles({top:"calc(".concat(y,"px + var(--offset-y, 0px))"),left:"calc(".concat(A,"px + var(--offset-x, 0px))"),"transform-origin":"".concat(E," ").concat(S)}).beforeAddWrite(()=>{$!==void 0&&g.style.setProperty("bottom","".concat($,"px"))}).fromTo("transform","scale(0.8)","scale(1)"),ht.addElement(m.querySelector(".popover-viewport")).fromTo("opacity",.01,1),M.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{o==="cover"&&e.style.setProperty("--width","".concat(k,"px")),E==="bottom"&&e.classList.add("popover-bottom")}).addAnimation([T,U,j,ht])},Sw=e=>{const t=Lt(e),i=t.querySelector(".popover-content"),n=N(),o=N(),r=N();return o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(t.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),n.easing("ease").afterAddWrite(()=>{e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),i.style.removeProperty("top"),i.style.removeProperty("left"),i.style.removeProperty("bottom"),i.style.removeProperty("transform-origin")}).duration(150).addAnimation([o,r])},Aw=':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}@supports (inset-inline-start: 0){.popover-arrow::after{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.popover-arrow::after{left:3px}:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}[dir=rtl] .popover-arrow::after{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.popover-arrow::after:dir(rtl){left:unset;right:unset;right:3px}}}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}@supports selector(:dir(rtl)){:host(.popover-side-start:dir(rtl)) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports selector(:dir(rtl)){:host(.popover-side-end:dir(rtl)) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.popover-arrow,.popover-content{opacity:0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',Iw=":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}.popover-wrapper{opacity:0}",zw=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=L(this,"ionPopoverDidPresent",7),this.willPresent=L(this,"ionPopoverWillPresent",7),this.willDismiss=L(this,"ionPopoverWillDismiss",7),this.didDismiss=L(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=L(this,"didPresent",7),this.willPresentShorthand=L(this,"willPresent",7),this.willDismissShorthand=L(this,"willDismiss",7),this.didDismissShorthand=L(this,"didDismiss",7),this.ionMount=L(this,"ionMount",7),this.parentPopover=null,this.coreDelegate=Es(),this.lockController=xn(),this.inline=!1,this.focusDescendantOnPresent=!1,this.onBackdropTap=()=>{this.dismiss(void 0,zi)},this.onLifecycle=t=>{const i=this.usersElement,n=_w[t.type];if(i&&n){const o=new CustomEvent(n,{bubbles:!1,cancelable:!1,detail:t.detail});i.dispatchEvent(o)}},this.configureTriggerInteraction=()=>{const{trigger:t,triggerAction:i,el:n,destroyTriggerInteraction:o}=this;if(o&&o(),t===void 0)return;const r=this.triggerEl=t!==void 0?document.getElementById(t):null;if(!r){ft('A trigger element with the ID "'.concat(t,'" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.'),this.el);return}this.destroyTriggerInteraction=lw(r,i,n)},this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:t,el:i}=this;t&&t(),this.destroyKeyboardInteraction=uw(i)},this.configureDismissInteraction=()=>{const{destroyDismissInteraction:t,parentPopover:i,triggerAction:n,triggerEl:o,el:r}=this;!i||!o||(t&&t(),this.destroyDismissInteraction=sw(o,n,r,i))},this.presented=!1,this.hasController=!1,this.delegate=void 0,this.overlayIndex=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.component=void 0,this.componentProps=void 0,this.keyboardClose=!0,this.cssClass=void 0,this.backdropDismiss=!0,this.event=void 0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.triggerAction="click",this.trigger=void 0,this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.alignment=void 0,this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(t,i){t===!0&&i===!1?this.present():t===!1&&i===!0&&this.dismiss()}connectedCallback(){const{configureTriggerInteraction:t,el:i}=this;ro(i),t()}disconnectedCallback(){const{destroyTriggerInteraction:t}=this;t&&t()}componentWillLoad(){const{el:t}=this,i=ao(t);this.parentPopover=t.closest("ion-popover:not(#".concat(i,")")),this.alignment===void 0&&(this.alignment=F(this)==="ios"?"center":"start")}componentDidLoad(){const{parentPopover:t,isOpen:i}=this;i===!0&>(()=>this.present()),t&&cn(t,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)}),this.configureTriggerInteraction()}async presentFromTrigger(t,i=!1){this.focusDescendantOnPresent=i,await this.present(t),this.focusDescendantOnPresent=!1}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const i=this.el.parentNode,n=this.inline=i!==null&&!this.hasController,o=this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate;return{inline:n,delegate:o}}async present(t){const i=await this.lockController.lock();if(this.presented){i();return}const{el:n}=this,{inline:o,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await kr(r,n,this.component,["popover-viewport"],this.componentProps,o),this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),Hn(n)?await Un(this.usersElement):this.keepContentsMounted||await pu(),await so(this,"popoverEnter",yw,Ew,{event:t||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment}),this.focusDescendantOnPresent&&za(this.el,this.el),i()}async dismiss(t,i,n=!0){const o=await this.lockController.lock(),{destroyKeyboardInteraction:r,destroyDismissInteraction:a}=this;n&&this.parentPopover&&this.parentPopover.dismiss(t,i,n);const s=await lo(this,t,i,"popoverLeave",kw,Sw,this.event);if(s){r&&(r(),this.destroyKeyboardInteraction=void 0),a&&(a(),this.destroyDismissInteraction=void 0);const{delegate:l}=this.getDelegate();await Cs(l,this.usersElement)}return o(),s}async getParentPopover(){return this.parentPopover}onDidDismiss(){return Fe(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return Fe(this.el,"ionPopoverWillDismiss")}render(){const t=F(this),{onLifecycle:i,parentPopover:n,dismissOnSelect:o,side:r,arrow:a,htmlAttributes:s}=this,l=$e("desktop"),c=a&&!n;return p(Q,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},s,{style:{zIndex:"".concat(2e4+this.overlayIndex)},class:Object.assign(Object.assign({},ne(this.cssClass)),{[t]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":l,["popover-side-".concat(r)]:!0,"popover-nested":!!n}),onIonPopoverDidPresent:i,onIonPopoverWillPresent:i,onIonPopoverWillDismiss:i,onIonPopoverDidDismiss:i,onIonBackdropTap:this.onBackdropTap}),!n&&p("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),p("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:o?()=>this.dismiss():void 0},c&&p("div",{class:"popover-arrow",part:"arrow"}),p("div",{class:"popover-content",part:"content"},p("slot",null))))}get el(){return this}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}static get style(){return{ios:Aw,md:Iw}}},[33,"ion-popover",{hasController:[4,"has-controller"],delegate:[16],overlayIndex:[2,"overlay-index"],enterAnimation:[16],leaveAnimation:[16],component:[1],componentProps:[16],keyboardClose:[4,"keyboard-close"],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],event:[8],showBackdrop:[4,"show-backdrop"],translucent:[4],animated:[4],htmlAttributes:[16],triggerAction:[1,"trigger-action"],trigger:[1],size:[1],dismissOnSelect:[4,"dismiss-on-select"],reference:[1],side:[1],alignment:[1025],arrow:[4],isOpen:[4,"is-open"],keyboardEvents:[4,"keyboard-events"],keepContentsMounted:[4,"keep-contents-mounted"],presented:[32],presentFromTrigger:[64],present:[64],dismiss:[64],getParentPopover:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}]),_w={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};function xu(){if(typeof customElements>"u")return;["ion-popover","ion-backdrop"].forEach(t=>{switch(t){case"ion-popover":customElements.get(t)||customElements.define(t,zw);break;case"ion-backdrop":customElements.get(t)||$i();break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Tw=(e,t,i)=>!!(t&&t.year>e||i&&i.year!!(e.day===null||n!==void 0&&!n.includes(e.day)||t&&Xe(e,t)||i&&Li(e,i)),Ow=(e,t,i,n,o,r,a)=>{const l=(Array.isArray(i)?i:[i]).find(h=>xe(t,h))!==void 0,c=xe(t,n);return{disabled:vu(t,o,r,a),isActive:l,isToday:c,ariaSelected:l?"true":null,ariaLabel:jv(e,c,t),text:t.day!=null?Wv(e,t):null}},Uo=(e,{minParts:t,maxParts:i})=>!!(Tw(e.year,t,i)||t&&Xe(e,t)||i&&Li(e,i)),$w=(e,t,i)=>{const n=Object.assign(Object.assign({},Yn(e)),{day:null});return Uo(n,{minParts:t,maxParts:i})},Lw=(e,t)=>{const i=Object.assign(Object.assign({},hn(e)),{day:null});return Uo(i,{maxParts:t})},Dw=(e,t,i)=>{if(Array.isArray(e)){const n=t.split("T")[0],o=e.find(r=>r.date===n);if(o)return{textColor:o.textColor,backgroundColor:o.backgroundColor}}else try{return e(t)}catch(n){vi("Exception thrown from provided `highlightedDates` callback. Please check your function and try again.",i,n)}},Pw=":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc);font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}:host .calendar-action-buttons ion-item{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:min(1rem, 25.6px);font-weight:600}:host .calendar-action-buttons ion-item ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}",Mw=":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-step-100, #ffffff);--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .datetime-calendar .calendar-action-buttons ion-item{--padding-start:20px}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, #595959)}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, gray);font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, #595959)}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}",Bw=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionCancel=L(this,"ionCancel",7),this.ionChange=L(this,"ionChange",7),this.ionValueChange=L(this,"ionValueChange",7),this.ionFocus=L(this,"ionFocus",7),this.ionBlur=L(this,"ionBlur",7),this.ionStyle=L(this,"ionStyle",7),this.ionRender=L(this,"ionRender",7),this.inputId="ion-dt-".concat(Rw++),this.prevPresentation=null,this.warnIfIncorrectValueUsage=()=>{const{multiple:t,value:i}=this;!t&&Array.isArray(i)&&ft('ion-datetime was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: ['.concat(i.map(n=>"'".concat(n,"'")).join(", "),"]\n"),this.el)},this.setValue=t=>{this.value=t,this.ionChange.emit({value:t})},this.getActivePartsWithFallback=()=>{var t;const{defaultParts:i}=this;return(t=this.getActivePart())!==null&&t!==void 0?t:i},this.getActivePart=()=>{const{activeParts:t}=this;return Array.isArray(t)?t[0]:t},this.closeParentOverlay=()=>{const t=this.el.closest("ion-modal, ion-popover");t&&t.dismiss()},this.setWorkingParts=t=>{this.workingParts=Object.assign({},t)},this.setActiveParts=(t,i=!1)=>{if(this.readonly)return;const{multiple:n,minParts:o,maxParts:r,activeParts:a}=this,s=Pv(t,o,r);if(this.setWorkingParts(s),n){const c=Array.isArray(a)?a:[a];i?this.activeParts=c.filter(d=>!xe(d,s)):this.activeParts=[...c,s]}else this.activeParts=Object.assign({},s);this.el.querySelector('[slot="buttons"]')!==null||this.showDefaultButtons||this.confirm()},this.initializeKeyboardListeners=()=>{const t=this.calendarBodyRef;if(!t)return;const i=this.el.shadowRoot,n=t.querySelector(".calendar-month:nth-of-type(2)"),o=a=>{var s;!((s=a[0].oldValue)===null||s===void 0)&&s.includes("ion-focused")||!t.classList.contains("ion-focused")||this.focusWorkingDay(n)},r=new MutationObserver(o);r.observe(t,{attributeFilter:["class"],attributeOldValue:!0}),this.destroyKeyboardMO=()=>{r==null||r.disconnect()},t.addEventListener("keydown",a=>{const s=i.activeElement;if(!s||!s.classList.contains("calendar-day"))return;const l=yv(s);let c;switch(a.key){case"ArrowDown":a.preventDefault(),c=Tv(l);break;case"ArrowUp":a.preventDefault(),c=_v(l);break;case"ArrowRight":a.preventDefault(),c=Iv(l);break;case"ArrowLeft":a.preventDefault(),c=zv(l);break;case"Home":a.preventDefault(),c=Sv(l);break;case"End":a.preventDefault(),c=Av(l);break;case"PageUp":a.preventDefault(),c=a.shiftKey?Ov(l):Yn(l);break;case"PageDown":a.preventDefault(),c=a.shiftKey?$v(l):hn(l);break;default:return}vu(c,this.minParts,this.maxParts)||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),c)),requestAnimationFrame(()=>this.focusWorkingDay(n)))})},this.focusWorkingDay=t=>{const i=t.querySelectorAll(".calendar-day-padding"),{day:n}=this.workingParts;if(n===null)return;const o=t.querySelector(".calendar-day-wrapper:nth-of-type(".concat(i.length+n,") .calendar-day"));o&&o.focus()},this.processMinParts=()=>{const{min:t,defaultParts:i}=this;if(t===void 0){this.minParts=void 0;return}this.minParts=Cv(t,i)},this.processMaxParts=()=>{const{max:t,defaultParts:i}=this;if(t===void 0){this.maxParts=void 0;return}this.maxParts=kv(t,i)},this.initializeCalendarListener=()=>{const t=this.calendarBodyRef;if(!t)return;const i=t.querySelectorAll(".calendar-month"),n=i[0],o=i[1],r=i[2],s=F(this)==="ios"&&typeof navigator<"u"&&navigator.maxTouchPoints>1;Yt(()=>{t.scrollLeft=n.clientWidth*(Le(this.el)?-1:1);const l=m=>{const g=t.getBoundingClientRect(),f=t.scrollLeft<=2?n:r,k=f.getBoundingClientRect();if(Math.abs(k.x-g.x)>2)return;const{forceRenderDate:x}=this;return x!==void 0?{month:x.month,year:x.year,day:x.day}:f===n?Yn(m):f===r?hn(m):void 0},c=()=>{s&&(t.style.removeProperty("pointer-events"),h=!1);const m=l(this.workingParts);if(!m)return;const{month:g,day:f,year:k}=m;Uo({month:g,year:k,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})})||(t.style.setProperty("overflow","hidden"),Yt(()=>{this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:g,day:f,year:k})),t.scrollLeft=o.clientWidth*(Le(this.el)?-1:1),t.style.removeProperty("overflow"),this.resolveForceDateScrolling&&this.resolveForceDateScrolling()}))};let d,h=!1;const u=()=>{d&&clearTimeout(d),!h&&s&&(t.style.setProperty("pointer-events","none"),h=!0),d=setTimeout(c,50)};t.addEventListener("scroll",u),this.destroyCalendarListener=()=>{t.removeEventListener("scroll",u)}})},this.destroyInteractionListeners=()=>{const{destroyCalendarListener:t,destroyKeyboardMO:i}=this;t!==void 0&&t(),i!==void 0&&i()},this.processValue=t=>{const i=t!=null&&(!Array.isArray(t)||t.length>0),n=i?qn(t):this.defaultParts,{minParts:o,maxParts:r,workingParts:a,el:s}=this;if(this.warnIfIncorrectValueUsage(),!n)return;i&&gv(n,o,r);const l=Array.isArray(n)?n[0]:n,c=Wh(l,o,r),{month:d,day:h,year:u,hour:m,minute:g}=c,f=qh(m);i?Array.isArray(n)?this.activeParts=[...n]:this.activeParts={month:d,day:h,year:u,hour:m,minute:g,ampm:f}:this.activeParts=[];const k=d!==void 0&&d!==a.month||u!==void 0&&u!==a.year,x=s.classList.contains("datetime-ready"),{isGridStyle:C,showMonthAndYear:I}=this;C&&k&&x&&!I?this.animateToDate(c):this.setWorkingParts({month:d,day:h,year:u,hour:m,minute:g,ampm:f})},this.animateToDate=async t=>{const{workingParts:i}=this;this.forceRenderDate=t;const n=new Promise(r=>{this.resolveForceDateScrolling=r});Xe(t,i)?this.prevMonth():this.nextMonth(),await n,this.resolveForceDateScrolling=void 0,this.forceRenderDate=void 0},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.hasValue=()=>this.value!=null,this.nextMonth=()=>{const t=this.calendarBodyRef;if(!t)return;const i=t.querySelector(".calendar-month:last-of-type");if(!i)return;const n=i.offsetWidth*2;t.scrollTo({top:0,left:n*(Le(this.el)?-1:1),behavior:"smooth"})},this.prevMonth=()=>{const t=this.calendarBodyRef;!t||!t.querySelector(".calendar-month:first-of-type")||t.scrollTo({top:0,left:0,behavior:"smooth"})},this.toggleMonthAndYearView=()=>{this.showMonthAndYear=!this.showMonthAndYear},this.showMonthAndYear=!1,this.activeParts=[],this.workingParts={month:5,day:28,year:2021,hour:13,minute:52,ampm:"pm"},this.isTimePopoverOpen=!1,this.forceRenderDate=void 0,this.color="primary",this.name=this.inputId,this.disabled=!1,this.readonly=!1,this.isDateEnabled=void 0,this.min=void 0,this.max=void 0,this.presentation="date-time",this.cancelText="Cancel",this.doneText="Done",this.clearText="Clear",this.yearValues=void 0,this.monthValues=void 0,this.dayValues=void 0,this.hourValues=void 0,this.minuteValues=void 0,this.locale="default",this.firstDayOfWeek=0,this.titleSelectedDatesFormatter=void 0,this.multiple=!1,this.highlightedDates=void 0,this.value=void 0,this.showDefaultTitle=!1,this.showDefaultButtons=!1,this.showClearButton=!1,this.showDefaultTimeLabel=!0,this.hourCycle=void 0,this.size="fixed",this.preferWheel=!1}disabledChanged(){this.emitStyle()}minChanged(){this.processMinParts()}maxChanged(){this.processMaxParts()}get isGridStyle(){const{presentation:t,preferWheel:i}=this;return(t==="date"||t==="date-time"||t==="time-date")&&!i}yearValuesChanged(){this.parsedYearValues=Te(this.yearValues)}monthValuesChanged(){this.parsedMonthValues=Te(this.monthValues)}dayValuesChanged(){this.parsedDayValues=Te(this.dayValues)}hourValuesChanged(){this.parsedHourValues=Te(this.hourValues)}minuteValuesChanged(){this.parsedMinuteValues=Te(this.minuteValues)}async valueChanged(){const{value:t}=this;this.hasValue()&&this.processValue(t),this.emitStyle(),this.ionValueChange.emit({value:t})}async confirm(t=!1){const{isCalendarPicker:i,activeParts:n,preferWheel:o,workingParts:r}=this;(n!==void 0||!i)&&(Array.isArray(n)&&n.length===0?o?this.setValue(ni(r)):this.setValue(void 0):this.setValue(ni(n))),t&&this.closeParentOverlay()}async reset(t){this.processValue(t)}async cancel(t=!1){this.ionCancel.emit(),t&&this.closeParentOverlay()}get isCalendarPicker(){const{presentation:t}=this;return t==="date"||t==="date-time"||t==="time-date"}connectedCallback(){this.clearFocusVisible=Vh(this.el).destroy}disconnectedCallback(){this.clearFocusVisible&&(this.clearFocusVisible(),this.clearFocusVisible=void 0)}initializeListeners(){this.initializeCalendarListener(),this.initializeKeyboardListeners()}componentDidLoad(){const t=a=>{a[0].isIntersecting&&(this.initializeListeners(),Yt(()=>{this.el.classList.add("datetime-ready")}))},i=new IntersectionObserver(t,{threshold:.01});gt(()=>i==null?void 0:i.observe(this.el));const n=a=>{a[0].isIntersecting||(this.destroyInteractionListeners(),this.showMonthAndYear=!1,Yt(()=>{this.el.classList.remove("datetime-ready")}))},o=new IntersectionObserver(n,{threshold:0});gt(()=>o==null?void 0:o.observe(this.el));const r=Lt(this.el);r.addEventListener("ionFocus",a=>a.stopPropagation()),r.addEventListener("ionBlur",a=>a.stopPropagation())}componentDidRender(){const{presentation:t,prevPresentation:i,calendarBodyRef:n,minParts:o,preferWheel:r,forceRenderDate:a}=this,s=!r&&["date-time","time-date","date"].includes(t);if(o!==void 0&&s&&n){const l=n.querySelector(".calendar-month:nth-of-type(1)");l&&a===void 0&&(n.scrollLeft=l.clientWidth*(Le(this.el)?-1:1))}if(i===null){this.prevPresentation=t;return}t!==i&&(this.prevPresentation=t,this.destroyInteractionListeners(),this.initializeListeners(),this.showMonthAndYear=!1,gt(()=>{this.ionRender.emit()}))}componentWillLoad(){const{el:t,highlightedDates:i,multiple:n,presentation:o,preferWheel:r}=this;n&&(o!=="date"&&ft('Multiple date selection is only supported for presentation="date".',t),r&&ft('Multiple date selection is not supported with preferWheel="true".',t)),i!==void 0&&(o!=="date"&&o!=="date-time"&&o!=="time-date"&&ft("The highlightedDates property is only supported with the date, date-time, and time-date presentations.",t),r&&ft('The highlightedDates property is not supported with preferWheel="true".',t));const a=this.parsedHourValues=Te(this.hourValues),s=this.parsedMinuteValues=Te(this.minuteValues),l=this.parsedMonthValues=Te(this.monthValues),c=this.parsedYearValues=Te(this.yearValues),d=this.parsedDayValues=Te(this.dayValues),h=this.todayParts=qn(Zv());this.processMinParts(),this.processMaxParts(),this.defaultParts=Mv({refParts:h,monthValues:l,dayValues:d,yearValues:c,hourValues:a,minuteValues:s,minParts:this.minParts,maxParts:this.maxParts}),this.processValue(this.value),this.emitStyle()}emitStyle(){this.ionStyle.emit({interactive:!0,datetime:!0,"interactive-disabled":this.disabled})}renderFooter(){const{disabled:t,readonly:i,showDefaultButtons:n,showClearButton:o}=this,r=t||i;if(!(this.el.querySelector('[slot="buttons"]')!==null)&&!n&&!o)return;const s=()=>{this.reset(),this.setValue(void 0)};return p("div",{class:"datetime-footer"},p("div",{class:"datetime-buttons"},p("div",{class:{"datetime-action-buttons":!0,"has-clear-button":this.showClearButton}},p("slot",{name:"buttons"},p("ion-buttons",null,n&&p("ion-button",{id:"cancel-button",color:this.color,onClick:()=>this.cancel(!0),disabled:r},this.cancelText),p("div",{class:"datetime-action-buttons-container"},o&&p("ion-button",{id:"clear-button",color:this.color,onClick:()=>s(),disabled:r},this.clearText),n&&p("ion-button",{id:"confirm-button",color:this.color,onClick:()=>this.confirm(!0),disabled:r},this.doneText)))))))}renderWheelPicker(t=this.presentation){const i=t==="time-date"?[this.renderTimePickerColumns(t),this.renderDatePickerColumns(t)]:[this.renderDatePickerColumns(t),this.renderTimePickerColumns(t)];return p("ion-picker-internal",null,i)}renderDatePickerColumns(t){return t==="date-time"||t==="time-date"?this.renderCombinedDatePickerColumn():this.renderIndividualDatePickerColumns(t)}renderCombinedDatePickerColumn(){const{defaultParts:t,disabled:i,workingParts:n,locale:o,minParts:r,maxParts:a,todayParts:s,isDateEnabled:l}=this,c=this.getActivePartsWithFallback(),d=dc(n),h=d[d.length-1];d[0].day=1,h.day=je(h.month,h.year);const u=r!==void 0&&Li(r,d[0])?r:d[0],m=a!==void 0&&Xe(a,h)?a:h,g=c1(o,s,u,m,this.parsedDayValues,this.parsedMonthValues);let f=g.items;const k=g.parts;l&&(f=f.map((C,I)=>{const v=k[I];let S;try{S=!l(ni(v))}catch(E){vi("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",E)}return Object.assign(Object.assign({},C),{disabled:S})}));const x=n.day!==null?"".concat(n.year,"-").concat(n.month,"-").concat(n.day):"".concat(t.year,"-").concat(t.month,"-").concat(t.day);return p("ion-picker-column-internal",{class:"date-column",color:this.color,disabled:i,items:f,value:x,onIonChange:C=>{this.destroyCalendarListener&&this.destroyCalendarListener();const{value:I}=C.detail,v=k.find(({month:S,day:E,year:y})=>I==="".concat(y,"-").concat(S,"-").concat(E));this.setWorkingParts(Object.assign(Object.assign({},n),v)),this.setActiveParts(Object.assign(Object.assign({},c),v)),this.initializeCalendarListener(),C.stopPropagation()}})}renderIndividualDatePickerColumns(t){const{workingParts:i,isDateEnabled:n}=this,r=t!=="year"&&t!=="time"?s1(this.locale,i,this.minParts,this.maxParts,this.parsedMonthValues):[];let s=t==="date"?Xh(this.locale,i,this.minParts,this.maxParts,this.parsedDayValues):[];n&&(s=s.map(u=>{const{value:m}=u,g=typeof m=="string"?parseInt(m):m,f={month:i.month,day:g,year:i.year};let k;try{k=!n(ni(f))}catch(x){vi("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",x)}return Object.assign(Object.assign({},u),{disabled:k})}));const c=t!=="month"&&t!=="time"?l1(this.locale,this.defaultParts,this.minParts,this.maxParts,this.parsedYearValues):[],d=lc(this.locale,{month:"numeric",day:"numeric"});let h=[];return d?h=[this.renderMonthPickerColumn(r),this.renderDayPickerColumn(s),this.renderYearPickerColumn(c)]:h=[this.renderDayPickerColumn(s),this.renderMonthPickerColumn(r),this.renderYearPickerColumn(c)],h}renderDayPickerColumn(t){var i;if(t.length===0)return[];const{disabled:n,workingParts:o}=this,r=this.getActivePartsWithFallback();return p("ion-picker-column-internal",{class:"day-column",color:this.color,disabled:n,items:t,value:(i=o.day!==null?o.day:this.defaultParts.day)!==null&&i!==void 0?i:void 0,onIonChange:a=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},o),{day:a.detail.value})),this.setActiveParts(Object.assign(Object.assign({},r),{day:a.detail.value})),this.initializeCalendarListener(),a.stopPropagation()}})}renderMonthPickerColumn(t){if(t.length===0)return[];const{disabled:i,workingParts:n}=this,o=this.getActivePartsWithFallback();return p("ion-picker-column-internal",{class:"month-column",color:this.color,disabled:i,items:t,value:n.month,onIonChange:r=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},n),{month:r.detail.value})),this.setActiveParts(Object.assign(Object.assign({},o),{month:r.detail.value})),this.initializeCalendarListener(),r.stopPropagation()}})}renderYearPickerColumn(t){if(t.length===0)return[];const{disabled:i,workingParts:n}=this,o=this.getActivePartsWithFallback();return p("ion-picker-column-internal",{class:"year-column",color:this.color,disabled:i,items:t,value:n.year,onIonChange:r=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},n),{year:r.detail.value})),this.setActiveParts(Object.assign(Object.assign({},o),{year:r.detail.value})),this.initializeCalendarListener(),r.stopPropagation()}})}renderTimePickerColumns(t){if(["date","month","month-year","year"].includes(t))return[];const n=this.getActivePart()!==void 0,{hoursData:o,minutesData:r,dayPeriodData:a}=d1(this.locale,this.workingParts,this.hourCycle,n?this.minParts:void 0,n?this.maxParts:void 0,this.parsedHourValues,this.parsedMinuteValues);return[this.renderHourPickerColumn(o),this.renderMinutePickerColumn(r),this.renderDayPeriodPickerColumn(a)]}renderHourPickerColumn(t){const{disabled:i,workingParts:n}=this;if(t.length===0)return[];const o=this.getActivePartsWithFallback();return p("ion-picker-column-internal",{color:this.color,disabled:i,value:o.hour,items:t,numericInput:!0,onIonChange:r=>{this.setWorkingParts(Object.assign(Object.assign({},n),{hour:r.detail.value})),this.setActiveParts(Object.assign(Object.assign({},o),{hour:r.detail.value})),r.stopPropagation()}})}renderMinutePickerColumn(t){const{disabled:i,workingParts:n}=this;if(t.length===0)return[];const o=this.getActivePartsWithFallback();return p("ion-picker-column-internal",{color:this.color,disabled:i,value:o.minute,items:t,numericInput:!0,onIonChange:r=>{this.setWorkingParts(Object.assign(Object.assign({},n),{minute:r.detail.value})),this.setActiveParts(Object.assign(Object.assign({},o),{minute:r.detail.value})),r.stopPropagation()}})}renderDayPeriodPickerColumn(t){const{disabled:i,workingParts:n}=this;if(t.length===0)return[];const o=this.getActivePartsWithFallback(),r=xv(this.locale);return p("ion-picker-column-internal",{style:r?{order:"-1"}:{},color:this.color,disabled:i,value:o.ampm,items:t,onIonChange:a=>{const s=Dv(n,a.detail.value);this.setWorkingParts(Object.assign(Object.assign({},n),{ampm:a.detail.value,hour:s})),this.setActiveParts(Object.assign(Object.assign({},o),{ampm:a.detail.value,hour:s})),a.stopPropagation()}})}renderWheelView(t){const{locale:i}=this,o=lc(i)?"month-first":"year-first";return p("div",{class:{["wheel-order-".concat(o)]:!0}},this.renderWheelPicker(t))}renderCalendarHeader(t){const{disabled:i}=this,n=t==="ios"?_h:Jb,o=t==="ios"?qo:Ih,r=i||$w(this.workingParts,this.minParts,this.maxParts),a=i||Lw(this.workingParts,this.maxParts),s=this.el.getAttribute("dir")||void 0;return p("div",{class:"calendar-header"},p("div",{class:"calendar-action-buttons"},p("div",{class:"calendar-month-year"},p("ion-item",{part:"month-year-button",ref:l=>this.monthYearToggleItemRef=l,button:!0,"aria-label":"Show year picker",detail:!1,lines:"none",disabled:i,onClick:()=>{var l;this.toggleMonthAndYearView();const{monthYearToggleItemRef:c}=this;if(c){const d=(l=c.shadowRoot)===null||l===void 0?void 0:l.querySelector(".item-native");if(d){const h=this.showMonthAndYear?"Hide year picker":"Show year picker";d.setAttribute("aria-label",h)}}}},p("ion-label",null,Vv(this.locale,this.workingParts),p("ion-icon",{"aria-hidden":"true",icon:this.showMonthAndYear?n:o,lazy:!1,flipRtl:!0})))),p("div",{class:"calendar-next-prev"},p("ion-buttons",null,p("ion-button",{"aria-label":"Previous month",disabled:r,onClick:()=>this.prevMonth()},p("ion-icon",{dir:s,"aria-hidden":"true",slot:"icon-only",icon:zh,lazy:!1,flipRtl:!0})),p("ion-button",{"aria-label":"Next month",disabled:a,onClick:()=>this.nextMonth()},p("ion-icon",{dir:s,"aria-hidden":"true",slot:"icon-only",icon:qo,lazy:!1,flipRtl:!0}))))),p("div",{class:"calendar-days-of-week","aria-hidden":"true"},n1(this.locale,t,this.firstDayOfWeek%7).map(l=>p("div",{class:"day-of-week"},l))))}renderMonth(t,i){const{disabled:n,readonly:o}=this,r=this.parsedYearValues===void 0||this.parsedYearValues.includes(i),a=this.parsedMonthValues===void 0||this.parsedMonthValues.includes(t),s=!r||!a,l=n||o,c=n||Uo({month:t,year:i,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})}),d=this.workingParts.month===t&&this.workingParts.year===i,h=this.getActivePartsWithFallback();return p("div",{"aria-hidden":d?null:"true",class:{"calendar-month":!0,"calendar-month-disabled":!d&&c}},p("div",{class:"calendar-month-grid"},o1(t,i,this.firstDayOfWeek%7).map((u,m)=>{const{day:g,dayOfWeek:f}=u,{el:k,highlightedDates:x,isDateEnabled:C,multiple:I}=this,v={month:t,day:g,year:i},S=g===null,{isActive:E,isToday:y,ariaLabel:A,ariaSelected:$,disabled:M,text:T}=Ow(this.locale,v,this.activeParts,this.todayParts,this.minParts,this.maxParts,this.parsedDayValues),U=ni(v);let j=s||M;if(!j&&C!==void 0)try{j=!C(U)}catch(H){vi("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",k,H)}const ht=j&&l,at=j||l;let rt;x!==void 0&&!E&&g!==null&&(rt=Dw(x,U,k));let X;return S||(X="calendar-day".concat(E?" active":"").concat(y?" today":"").concat(j?" disabled":"")),p("div",{class:"calendar-day-wrapper"},p("button",{ref:H=>{H&&(H.style.setProperty("color","".concat(rt?rt.textColor:""),"important"),H.style.setProperty("background-color","".concat(rt?rt.backgroundColor:""),"important"))},tabindex:"-1","data-day":g,"data-month":t,"data-year":i,"data-index":m,"data-day-of-week":f,disabled:at,class:{"calendar-day-padding":S,"calendar-day":!0,"calendar-day-active":E,"calendar-day-constrained":ht,"calendar-day-today":y},part:X,"aria-hidden":S?"true":null,"aria-selected":$,"aria-label":A,onClick:()=>{S||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:t,day:g,year:i})),I?this.setActiveParts({month:t,day:g,year:i},E):this.setActiveParts(Object.assign(Object.assign({},h),{month:t,day:g,year:i})))}},T))})))}renderCalendarBody(){return p("div",{class:"calendar-body ion-focusable",ref:t=>this.calendarBodyRef=t,tabindex:"0"},dc(this.workingParts,this.forceRenderDate).map(({month:t,year:i})=>this.renderMonth(t,i)))}renderCalendar(t){return p("div",{class:"datetime-calendar",key:"datetime-calendar"},this.renderCalendarHeader(t),this.renderCalendarBody())}renderTimeLabel(){if(!(!(this.el.querySelector('[slot="time-label"]')!==null)&&!this.showDefaultTimeLabel))return p("slot",{name:"time-label"},"Time")}renderTimeOverlay(){const{disabled:t,hourCycle:i,isTimePopoverOpen:n,locale:o}=this,r=bs(o,i),a=this.getActivePartsWithFallback();return[p("div",{class:"time-header"},this.renderTimeLabel()),p("button",{class:{"time-body":!0,"time-body-active":n},part:"time-button".concat(n?" active":""),"aria-expanded":"false","aria-haspopup":"true",disabled:t,onClick:async s=>{const{popoverRef:l}=this;l&&(this.isTimePopoverOpen=!0,l.present(new CustomEvent("ionShadowTarget",{detail:{ionShadowTarget:s.target}})),await l.onWillDismiss(),this.isTimePopoverOpen=!1)}},Rv(o,a,r)),p("ion-popover",{alignment:"center",translucent:!0,overlayIndex:1,arrow:!1,onWillPresent:s=>{s.target.querySelectorAll("ion-picker-column-internal").forEach(c=>c.scrollActiveItemIntoView())},style:{"--offset-y":"-10px","--min-width":"fit-content"},keyboardEvents:!0,ref:s=>this.popoverRef=s},this.renderWheelPicker("time"))]}getHeaderSelectedDateText(){const{activeParts:t,multiple:i,titleSelectedDatesFormatter:n}=this,o=Array.isArray(t);let r;if(i&&o&&t.length!==1){if(r="".concat(t.length," days"),n!==void 0)try{r=n(ni(t))}catch(a){vi("Exception in provided `titleSelectedDatesFormatter`: ",a)}}else r=Hv(this.locale,this.getActivePartsWithFallback());return r}renderHeader(t=!0){if(!(!(this.el.querySelector('[slot="title"]')!==null)&&!this.showDefaultTitle))return p("div",{class:"datetime-header"},p("div",{class:"datetime-title"},p("slot",{name:"title"},"Select Date")),t&&p("div",{class:"datetime-selected-date"},this.getHeaderSelectedDateText()))}renderTime(){const{presentation:t}=this;return p("div",{class:"datetime-time"},t==="time"?this.renderWheelPicker():this.renderTimeOverlay())}renderCalendarViewMonthYearPicker(){return p("div",{class:"datetime-year"},this.renderWheelView("month-year"))}renderDatetime(t){const{presentation:i,preferWheel:n}=this;if(n&&(i==="date"||i==="date-time"||i==="time-date"))return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];switch(i){case"date-time":return[this.renderHeader(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderTime(),this.renderFooter()];case"time-date":return[this.renderHeader(),this.renderTime(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderFooter()];case"time":return[this.renderHeader(!1),this.renderTime(),this.renderFooter()];case"month":case"month-year":case"year":return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];default:return[this.renderHeader(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderFooter()]}}render(){const{name:t,value:i,disabled:n,el:o,color:r,readonly:a,showMonthAndYear:s,preferWheel:l,presentation:c,size:d,isGridStyle:h}=this,u=F(this),m=c==="year"||c==="month"||c==="month-year",g=s||m,f=s&&!m,x=(c==="date"||c==="date-time"||c==="time-date")&&l;return dn(!0,o,t,Kv(i),n),p(Q,{"aria-disabled":n?"true":null,onFocus:this.onFocus,onBlur:this.onBlur,class:Object.assign({},xt(r,{[u]:!0,"datetime-readonly":a,"datetime-disabled":n,"show-month-and-year":g,"month-year-picker-open":f,["datetime-presentation-".concat(c)]:!0,["datetime-size-".concat(d)]:!0,"datetime-prefer-wheel":x,"datetime-grid":h}))},this.renderDatetime(u))}get el(){return this}static get watchers(){return{disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],value:["valueChanged"]}}static get style(){return{ios:Pw,md:Mw}}},[33,"ion-datetime",{color:[1],name:[1],disabled:[4],readonly:[4],isDateEnabled:[16],min:[1025],max:[1025],presentation:[1],cancelText:[1,"cancel-text"],doneText:[1,"done-text"],clearText:[1,"clear-text"],yearValues:[8,"year-values"],monthValues:[8,"month-values"],dayValues:[8,"day-values"],hourValues:[8,"hour-values"],minuteValues:[8,"minute-values"],locale:[1],firstDayOfWeek:[2,"first-day-of-week"],titleSelectedDatesFormatter:[16],multiple:[4],highlightedDates:[16],value:[1025],showDefaultTitle:[4,"show-default-title"],showDefaultButtons:[4,"show-default-buttons"],showClearButton:[4,"show-clear-button"],showDefaultTimeLabel:[4,"show-default-time-label"],hourCycle:[1,"hour-cycle"],size:[1],preferWheel:[4,"prefer-wheel"],showMonthAndYear:[32],activeParts:[32],workingParts:[32],isTimePopoverOpen:[32],forceRenderDate:[32],confirm:[64],reset:[64],cancel:[64]},void 0,{disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],value:["valueChanged"]}]);let Rw=0;function Fw(){if(typeof customElements>"u")return;["ion-datetime","ion-backdrop","ion-button","ion-buttons","ion-icon","ion-item","ion-label","ion-note","ion-picker-column-internal","ion-picker-internal","ion-popover","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-datetime":customElements.get(t)||customElements.define(t,Bw);break;case"ion-backdrop":customElements.get(t)||$i();break;case"ion-button":customElements.get(t)||Fh();break;case"ion-buttons":customElements.get(t)||jh();break;case"ion-icon":customElements.get(t)||ve();break;case"ion-item":customElements.get(t)||vr();break;case"ion-label":customElements.get(t)||wr();break;case"ion-note":customElements.get(t)||oo();break;case"ion-picker-column-internal":customElements.get(t)||C1();break;case"ion-picker-internal":customElements.get(t)||I1();break;case"ion-popover":customElements.get(t)||xu();break;case"ion-ripple-effect":customElements.get(t)||se();break}})}const jw=Fw;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Hw=":host{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;z-index:999}:host(.fab-horizontal-center){left:0px;right:0px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}:host(.fab-horizontal-start){left:calc(10px + var(--ion-safe-area-left, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-start),:host-context([dir=rtl]).fab-horizontal-start{right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-start:dir(rtl)){right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}}:host(.fab-horizontal-end){right:calc(10px + var(--ion-safe-area-right, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-end),:host-context([dir=rtl]).fab-horizontal-end{left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-end:dir(rtl)){left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:0}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-top:calc((-100% + 16px) / 2)}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-top:calc(50% + 10px)}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:0}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-bottom:calc((-100% + 16px) / 2)}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-bottom:calc(50% + 10px)}:host(.fab-vertical-center){top:0px;bottom:0px;margin-top:auto;margin-bottom:auto}",Vw=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.horizontal=void 0,this.vertical=void 0,this.edge=!1,this.activated=!1}activatedChanged(){const t=this.activated,i=this.getFab();i&&(i.activated=t),Array.from(this.el.querySelectorAll("ion-fab-list")).forEach(n=>{n.activated=t})}componentDidLoad(){this.activated&&this.activatedChanged()}async close(){this.activated=!1}getFab(){return this.el.querySelector("ion-fab-button")}async toggle(){!!this.el.querySelector("ion-fab-list")&&(this.activated=!this.activated)}render(){const{horizontal:t,vertical:i,edge:n}=this,o=F(this);return p(Q,{class:{[o]:!0,["fab-horizontal-".concat(t)]:t!==void 0,["fab-vertical-".concat(i)]:i!==void 0,"fab-edge":n}},p("slot",null))}get el(){return this}static get watchers(){return{activated:["activatedChanged"]}}static get style(){return Hw}},[1,"ion-fab",{horizontal:[1],vertical:[1],edge:[4],activated:[1028],close:[64],toggle:[64]},void 0,{activated:["activatedChanged"]}]);function Ww(){if(typeof customElements>"u")return;["ion-fab"].forEach(t=>{switch(t){case"ion-fab":customElements.get(t)||customElements.define(t,Vw);break}})}const qw=Ww;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Yw=':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59);--close-icon-font-size:28px}:host(.ion-activated){--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transform:scale(1.1);--transition:0.2s transform ease-out}::slotted(ion-icon){font-size:28px}:host(.fab-button-in-list){--background:var(--ion-color-light, #f4f5f8);--background-activated:var(--ion-color-light-shade, #d7d8da);--background-focused:var(--background-activated);--background-hover:var(--ion-color-light-tint, #f5f6f9);--color:var(--ion-color-light-contrast, #000);--color-activated:var(--ion-color-light-contrast, #000);--color-focused:var(--color-activated);--transition:transform 200ms ease 10ms, opacity 200ms ease 10ms}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}:host(.ion-color.ion-focused) .button-native,:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after,:host(.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent){--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.9);--background-hover:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.8);--background-focused:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.82);--backdrop-filter:saturate(180%) blur(20px)}:host(.fab-button-translucent-in-list){--background:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.9);--background-hover:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.8);--background-focused:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.82)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){@media (any-hover: hover){:host(.fab-button-translucent.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb), 0.8)}}:host(.ion-color.fab-button-translucent) .button-native{background:rgba(var(--ion-color-base-rgb), 0.9)}:host(.ion-color.ion-focused.fab-button-translucent) .button-native,:host(.ion-color.ion-activated.fab-button-translucent) .button-native{background:var(--ion-color-base)}}',Nw=':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, 0.2, 1) 0ms;--close-icon-font-size:24px}:host(.ion-activated){--box-shadow:0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12)}::slotted(ion-icon){font-size:24px}:host(.fab-button-in-list){--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-activated:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-focused:var(--color-activated);--background:var(--ion-color-light, #f4f5f8);--background-activated:transparent;--background-focused:var(--ion-color-light-shade, #d7d8da);--background-hover:var(--ion-color-light-tint, #f5f6f9)}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native::after{background:transparent}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}}',Uw=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=L(this,"ionFocus",7),this.ionBlur=L(this,"ionBlur",7),this.fab=null,this.inheritedAttributes={},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=()=>{const{fab:t}=this;t&&t.toggle()},this.color=void 0,this.activated=!1,this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0,this.show=!1,this.translucent=!1,this.type="button",this.size=void 0,this.closeIcon=e0}connectedCallback(){this.fab=this.el.closest("ion-fab")}componentWillLoad(){this.inheritedAttributes=Ze(this.el)}render(){const{el:t,disabled:i,color:n,href:o,activated:r,show:a,translucent:s,size:l,inheritedAttributes:c}=this,d=wt("ion-fab-list",t),h=F(this),u=o===void 0?"button":"a",m=u==="button"?{type:this.type}:{download:this.download,href:o,rel:this.rel,target:this.target};return p(Q,{onClick:this.onClick,"aria-disabled":i?"true":null,class:xt(n,{[h]:!0,"fab-button-in-list":d,"fab-button-translucent-in-list":d&&s,"fab-button-close-active":r,"fab-button-show":a,"fab-button-disabled":i,"fab-button-translucent":s,"ion-activatable":!0,"ion-focusable":!0,["fab-button-".concat(l)]:l!==void 0})},p(u,Object.assign({},m,{class:"button-native",part:"native",disabled:i,onFocus:this.onFocus,onBlur:this.onBlur,onClick:g=>eo(o,g,this.routerDirection,this.routerAnimation)},c),p("ion-icon",{"aria-hidden":"true",icon:this.closeIcon,part:"close-icon",class:"close-icon",lazy:!1}),p("span",{class:"button-inner"},p("slot",null)),h==="md"&&p("ion-ripple-effect",null)))}get el(){return this}static get style(){return{ios:Yw,md:Nw}}},[33,"ion-fab-button",{color:[513],activated:[4],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1],show:[4],translucent:[4],type:[1],size:[1],closeIcon:[1,"close-icon"]}]);function Gw(){if(typeof customElements>"u")return;["ion-fab-button","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-fab-button":customElements.get(t)||customElements.define(t,Uw);break;case"ion-icon":customElements.get(t)||ve();break;case"ion-ripple-effect":customElements.get(t)||se();break}})}const Xw=Gw;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Kw="ION-CONTENT",wu="ion-content",yu=".ion-content-scroll-host",ku="".concat(wu,", ").concat(yu),_i=e=>e.tagName===Kw,bc=async e=>_i(e)?(await new Promise(t=>Re(e,t)),e.getScrollElement()):e,Ta=e=>{const t=e.querySelector(yu);return t||e.querySelector(ku)},Cu=e=>e.closest(ku),d3=(e,t)=>_i(e)?e.scrollToTop(t):Promise.resolve(e.scrollTo({top:0,left:0,behavior:t>0?"smooth":"auto"})),h3=(e,t,i,n)=>_i(e)?e.scrollByPoint(t,i,n):Promise.resolve(e.scrollBy({top:i,left:t,behavior:n>0?"smooth":"auto"})),Oa=e=>W0(e,wu),$a=e=>{if(_i(e)){const t=e,i=t.scrollY;return t.scrollY=!1,i}else return e.style.setProperty("overflow","hidden"),!0},Eu=(e,t)=>{_i(e)?e.scrollY=t:e.style.removeProperty("overflow")};/*! + * (C) Ionic http://ionicframework.com - MIT License + */var La;(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(La||(La={}));var xc;(function(e){e.Body="body",e.Ionic="ionic",e.Native="native",e.None="none"})(xc||(xc={}));const Zw={getEngine(){const e=Zi();if(e!=null&&e.isPluginAvailable("Keyboard"))return e.Plugins.Keyboard},getResizeMode(){const e=this.getEngine();return e!=null&&e.getResizeMode?e.getResizeMode().catch(t=>{if(t.code!==La.Unimplemented)throw t}):Promise.resolve(void 0)}};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Qw=":host{-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;display:block;-ms-flex:1;flex:1}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}",Jw=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.fixed=!1}render(){const t=F(this);return p(Q,{class:{[t]:!0,"grid-fixed":this.fixed}},p("slot",null))}static get style(){return Qw}},[1,"ion-grid",{fixed:[4]}]);function ty(){if(typeof customElements>"u")return;["ion-grid"].forEach(t=>{switch(t){case"ion-grid":customElements.get(t)||customElements.define(t,Jw);break}})}const ey=ty;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const iy="all 0.2s ease-in-out",vc=e=>{const t=document.querySelector("".concat(e,".ion-cloned-element"));if(t!==null)return t;const i=document.createElement(e);return i.classList.add("ion-cloned-element"),i.style.setProperty("display","none"),document.body.appendChild(i),i},wc=e=>{if(!e)return;const t=e.querySelectorAll("ion-toolbar");return{el:e,toolbars:Array.from(t).map(i=>{const n=i.querySelector("ion-title");return{el:i,background:i.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:n,innerTitleEl:n?n.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(i.querySelectorAll("ion-buttons"))}})}},ny=(e,t,i)=>{ln(()=>{const n=e.scrollTop,o=Si(1,1+-n/500,1.1);i.querySelector("ion-refresher.refresher-native")===null&&Yt(()=>{ay(t.toolbars,o)})})},_s=(e,t)=>{e.collapse!=="fade"&&(t===void 0?e.style.removeProperty("--opacity-scale"):e.style.setProperty("--opacity-scale",t.toString()))},oy=(e,t,i)=>{if(!e[0].isIntersecting)return;const n=e[0].intersectionRatio>.9||i<=0?0:(1-e[0].intersectionRatio)*100/75;_s(t.el,n===1?void 0:n)},ry=(e,t,i,n)=>{Yt(()=>{const o=n.scrollTop;oy(e,t,o);const r=e[0],a=r.intersectionRect,s=a.width*a.height,l=r.rootBounds.width*r.rootBounds.height,c=s===0&&l===0,d=Math.abs(a.left-r.boundingClientRect.left),h=Math.abs(a.right-r.boundingClientRect.right),u=s>0&&(d>=5||h>=5);c||u||(r.isIntersecting?(Sn(t,!1),Sn(i)):(a.x===0&&a.y===0||a.width!==0&&a.height!==0)&&o>0&&(Sn(t),Sn(i,!1),_s(t.el)))})},Sn=(e,t=!0)=>{const i=e.el;t?(i.classList.remove("header-collapse-condense-inactive"),i.removeAttribute("aria-hidden")):(i.classList.add("header-collapse-condense-inactive"),i.setAttribute("aria-hidden","true"))},ay=(e=[],t=1,i=!1)=>{e.forEach(n=>{const o=n.ionTitleEl,r=n.innerTitleEl;!o||o.size!=="large"||(r.style.transition=i?iy:"",r.style.transform="scale3d(".concat(t,", ").concat(t,", 1)"))})},yc=(e,t,i)=>{ln(()=>{const n=e.scrollTop,o=t.clientHeight,r=i?i.clientHeight:0;if(i!==null&&n{e.style.removeProperty("clip-path"),t.style.setProperty("--opacity-scale",l.toString())})})},sy="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:0px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}ion-header:not(.header-collapse-main):has(~ion-content ion-header[collapse=condense],~ion-content ion-header.header-collapse-condense){opacity:0}",ly="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.header-collapse-condense{display:none}.header-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}",cy=et(class extends tt{constructor(){super(),this.__registerHost(),this.inheritedAttributes={},this.setupFadeHeader=async(t,i)=>{const n=this.scrollEl=await bc(t);this.contentScrollCallback=()=>{yc(this.scrollEl,this.el,i)},n.addEventListener("scroll",this.contentScrollCallback),yc(this.scrollEl,this.el,i)},this.collapse=void 0,this.translucent=!1}componentWillLoad(){this.inheritedAttributes=Ze(this.el)}componentDidLoad(){this.checkCollapsibleHeader()}componentDidUpdate(){this.checkCollapsibleHeader()}disconnectedCallback(){this.destroyCollapsibleHeader()}async checkCollapsibleHeader(){if(F(this)!=="ios")return;const{collapse:i}=this,n=i==="condense",o=i==="fade";if(this.destroyCollapsibleHeader(),n){const r=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),a=r?Ta(r):null;Yt(()=>{const s=vc("ion-title");s.size="large",vc("ion-back-button")}),await this.setupCondenseHeader(a,r)}else if(o){const r=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),a=r?Ta(r):null;if(!a){Oa(this.el);return}const s=a.querySelector('ion-header[collapse="condense"]');await this.setupFadeHeader(a,s)}}destroyCollapsibleHeader(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0),this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0),this.collapsibleMainHeader&&(this.collapsibleMainHeader.classList.remove("header-collapse-main"),this.collapsibleMainHeader=void 0)}async setupCondenseHeader(t,i){if(!t||!i){Oa(this.el);return}if(typeof IntersectionObserver>"u")return;this.scrollEl=await bc(t);const n=i.querySelectorAll("ion-header");if(this.collapsibleMainHeader=Array.from(n).find(s=>s.collapse!=="condense"),!this.collapsibleMainHeader)return;const o=wc(this.collapsibleMainHeader),r=wc(this.el);if(!o||!r)return;Sn(o,!1),_s(o.el,0);const a=s=>{ry(s,o,r,this.scrollEl)};this.intersectionObserver=new IntersectionObserver(a,{root:t,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]}),this.intersectionObserver.observe(r.toolbars[r.toolbars.length-1].el),this.contentScrollCallback=()=>{ny(this.scrollEl,r,t)},this.scrollEl.addEventListener("scroll",this.contentScrollCallback),Yt(()=>{this.collapsibleMainHeader!==void 0&&this.collapsibleMainHeader.classList.add("header-collapse-main")})}render(){const{translucent:t,inheritedAttributes:i}=this,n=F(this),o=this.collapse||"none",r=wt("ion-menu",this.el)?"none":"banner";return p(Q,Object.assign({role:r,class:{[n]:!0,["header-".concat(n)]:!0,"header-translucent":this.translucent,["header-collapse-".concat(o)]:!0,["header-translucent-".concat(n)]:this.translucent}},i),n==="ios"&&t&&p("div",{class:"header-background"}),p("slot",null))}get el(){return this}static get style(){return{ios:sy,md:ly}}},[36,"ion-header",{collapse:[1],translucent:[4]}]);function dy(){if(typeof customElements>"u")return;["ion-header"].forEach(t=>{switch(t){case"ion-header":customElements.get(t)||customElements.define(t,cy);break}})}const hy=dy;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Su=e=>{try{if(e instanceof fy)return e.value;if(!uy()||typeof e!="string"||e==="")return e;if(e.includes("onload="))return"";const t=document.createDocumentFragment(),i=document.createElement("div");t.appendChild(i),i.innerHTML=e,my.forEach(a=>{const s=t.querySelectorAll(a);for(let l=s.length-1;l>=0;l--){const c=s[l];c.parentNode?c.parentNode.removeChild(c):t.removeChild(c);const d=Pa(c);for(let h=0;h{if(e.nodeType&&e.nodeType!==1)return;if(typeof NamedNodeMap<"u"&&!(e.attributes instanceof NamedNodeMap)){e.remove();return}for(let i=e.attributes.length-1;i>=0;i--){const n=e.attributes.item(i),o=n.name;if(!py.includes(o.toLowerCase())){e.removeAttribute(o);continue}const r=n.value,a=e[o];(r!=null&&r.toLowerCase().includes("javascript:")||a!=null&&a.toLowerCase().includes("javascript:"))&&e.removeAttribute(o)}const t=Pa(e);for(let i=0;ie.children!=null?e.children:e.childNodes,uy=()=>{var e;const t=window,i=(e=t==null?void 0:t.Ionic)===null||e===void 0?void 0:e.config;return i?i.get?i.get("sanitizerEnabled",!0):i.sanitizerEnabled===!0||i.sanitizerEnabled===void 0:!0},py=["class","id","href","src","name","slot"],my=["script","style","iframe","meta","link","object","embed"];class fy{constructor(t){this.value=t}}const Au=!1;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ts=(e,t,i)=>{let n;const o=()=>!(t()===void 0||e.label!==void 0||i()===null),r=()=>{o()&>(()=>{a()})},a=()=>{const l=t();if(l===void 0)return;if(!o()){l.style.removeProperty("width");return}const c=i().scrollWidth;if(c===0&&l.offsetParent===null&&ae!==void 0&&"IntersectionObserver"in ae){if(n!==void 0)return;const d=n=new IntersectionObserver(h=>{h[0].intersectionRatio===1&&(a(),d.disconnect(),n=void 0)},{threshold:.01,root:e});d.observe(l);return}l.style.setProperty("width","".concat(c*.75,"px"))};return{calculateNotchWidth:r,destroy:()=>{n&&(n.disconnect(),n=void 0)}}};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Iu=(e,t,i)=>{let n,o;if(ae!==void 0&&"MutationObserver"in ae){const l=Array.isArray(t)?t:[t];n=new MutationObserver(c=>{for(const d of c)for(const h of d.addedNodes)if(h.nodeType===Node.ELEMENT_NODE&&l.includes(h.slot)){i(),gt(()=>r(h));return}}),n.observe(e,{childList:!0})}const r=l=>{var c;o&&(o.disconnect(),o=void 0),o=new MutationObserver(d=>{i();for(const h of d)for(const u of h.removedNodes)u.nodeType===Node.ELEMENT_NODE&&u.slot===t&&s()}),o.observe((c=l.parentElement)!==null&&c!==void 0?c:l,{subtree:!0,childList:!0})},a=()=>{n&&(n.disconnect(),n=void 0),s()},s=()=>{o&&(o.disconnect(),o=void 0)};return{destroy:a}},zu=(e,t,i)=>{const n=e==null?0:e.toString().length,o=gy(n,t);if(i===void 0)return o;try{return i(n,t)}catch(r){return vi("Exception in provided `counterFormatter`.",r),o}},gy=(e,t)=>"".concat(e," / ").concat(t);/*! + * (C) Ionic http://ionicframework.com - MIT License + */const by=".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}.legacy-input.sc-ion-input-ios-h{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;background:var(--background)}.legacy-input.sc-ion-input-ios-h .native-input.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}ion-item.sc-ion-input-ios-h:not(.item-label):not(.item-has-modern-input),ion-item:not(.item-label):not(.item-has-modern-input) .sc-ion-input-ios-h{--padding-start:0}ion-item[slot=start].sc-ion-input-ios-h,ion-item [slot=start].sc-ion-input-ios-h,ion-item[slot=end].sc-ion-input-ios-h,ion-item [slot=end].sc-ion-input-ios-h{width:auto}.legacy-input.ion-color.sc-ion-input-ios-h{color:var(--ion-color-base)}.ion-color.sc-ion-input-ios-h{--highlight-color-focused:var(--ion-color-base)}.sc-ion-input-ios-h:not(.legacy-input){min-height:44px}.input-label-placement-floating.sc-ion-input-ios-h,.input-label-placement-stacked.sc-ion-input-ios-h{min-height:56px}.native-input.sc-ion-input-ios{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.cloned-input.sc-ion-input-ios{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-input-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-input-ios{left:0}[dir=rtl].sc-ion-input-ios-h .cloned-input.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-ios .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-input-ios:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-input-ios:disabled{opacity:1}.legacy-input.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.input-clear-icon.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{color:inherit}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.has-focus.sc-ion-input-ios-h{pointer-events:none}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h a.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h button.sc-ion-input-ios{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.input-wrapper.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;width:100%}.ion-touched.ion-invalid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-ios-h,.ion-touched.ion-invalid.sc-ion-input-ios-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:block}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:none}.input-bottom.sc-ion-input-ios .counter.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-input-ios,.sc-ion-input-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-ios,.input-outline-notch-hidden.sc-ion-input-ios{display:none}.input-wrapper.sc-ion-input-ios input.sc-ion-input-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text.sc-ion-input-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-ios-h input.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios,.has-value.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:1}.label-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-input-ios-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-input-ios-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.sc-ion-input-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));font-size:inherit}.legacy-input.sc-ion-input-ios-h{--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:0}.item-label-stacked.sc-ion-input-ios-h,.item-label-stacked .sc-ion-input-ios-h,.item-label-floating.sc-ion-input-ios-h,.item-label-floating .sc-ion-input-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.input-clear-icon.sc-ion-input-ios ion-icon.sc-ion-input-ios{width:18px;height:18px}.legacy-input.sc-ion-input-ios-h .native-input[disabled].sc-ion-input-ios,.input-disabled.sc-ion-input-ios-h{opacity:0.3}.sc-ion-input-ios-s>ion-button[slot=start].button-has-icon-only,.sc-ion-input-ios-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}",xy=".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}.legacy-input.sc-ion-input-md-h{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;background:var(--background)}.legacy-input.sc-ion-input-md-h .native-input.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}ion-item.sc-ion-input-md-h:not(.item-label):not(.item-has-modern-input),ion-item:not(.item-label):not(.item-has-modern-input) .sc-ion-input-md-h{--padding-start:0}ion-item[slot=start].sc-ion-input-md-h,ion-item [slot=start].sc-ion-input-md-h,ion-item[slot=end].sc-ion-input-md-h,ion-item [slot=end].sc-ion-input-md-h{width:auto}.legacy-input.ion-color.sc-ion-input-md-h{color:var(--ion-color-base)}.ion-color.sc-ion-input-md-h{--highlight-color-focused:var(--ion-color-base)}.sc-ion-input-md-h:not(.legacy-input){min-height:44px}.input-label-placement-floating.sc-ion-input-md-h,.input-label-placement-stacked.sc-ion-input-md-h{min-height:56px}.native-input.sc-ion-input-md{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.cloned-input.sc-ion-input-md{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h .cloned-input.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-md .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-input-md:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-input-md:disabled{opacity:1}.legacy-input.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.input-clear-icon.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{color:inherit}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.has-focus.sc-ion-input-md-h{pointer-events:none}.has-focus.sc-ion-input-md-h input.sc-ion-input-md,.has-focus.sc-ion-input-md-h a.sc-ion-input-md,.has-focus.sc-ion-input-md-h button.sc-ion-input-md{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.input-wrapper.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;width:100%}.ion-touched.ion-invalid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:block}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:none}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-md-h input.sc-ion-input-md{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-input-md,.sc-ion-input-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-md,.input-outline-notch-hidden.sc-ion-input-md{display:none}.input-wrapper.sc-ion-input-md input.sc-ion-input-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text.sc-ion-input-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md,.has-value.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:1}.label-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-input-md-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-input-md-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.input-fill-solid.sc-ion-input-md-h{--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.input-fill-solid.ion-valid.sc-ion-input-md-h,.input-fill-solid.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-fill-solid.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}@media (any-hover: hover){.input-fill-solid.sc-ion-input-md-h:hover{--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}.input-fill-solid.has-focus.sc-ion-input-md-h{--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl].input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.input-fill-solid.sc-ion-input-md-h:dir(rtl) .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}.label-floating.input-fill-solid.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{max-width:calc(100% / 0.75)}.input-fill-outline.sc-ion-input-md-h{--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-outline.input-shape-round.sc-ion-input-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.input-fill-outline.ion-valid.sc-ion-input-md-h,.input-fill-outline.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.input-fill-outline.sc-ion-input-md-h:hover{--border-color:var(--ion-color-step-750, #404040)}}.input-fill-outline.has-focus.sc-ion-input-md-h{--border-width:2px;--border-color:var(--highlight-color)}.input-fill-outline.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}.input-fill-outline.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:none}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-fill-outline.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{position:relative}.label-floating.input-fill-outline.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc((100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75)}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}.input-fill-outline.sc-ion-input-md-h .input-outline-container.sc-ion-input-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{pointer-events:none}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.input-fill-outline.sc-ion-input-md-h .notch-spacer.sc-ion-input-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl].input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl] .input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.input-fill-outline.sc-ion-input-md-h:dir(rtl) .input-outline-start.sc-ion-input-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}}.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px;-ms-flex-positive:1;flex-grow:1}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl].input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl] .input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}@supports selector(:dir(rtl)){.input-fill-outline.sc-ion-input-md-h:dir(rtl) .input-outline-end.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}}.label-floating.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{border-top:none}.sc-ion-input-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));font-size:inherit}.legacy-input.sc-ion-input-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:8px}.item-label-stacked.sc-ion-input-md-h,.item-label-stacked .sc-ion-input-md-h,.item-label-floating.sc-ion-input-md-h,.item-label-floating .sc-ion-input-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.input-clear-icon.sc-ion-input-md ion-icon.sc-ion-input-md{width:22px;height:22px}.legacy-input.sc-ion-input-md-h .native-input[disabled].sc-ion-input-md,.input-disabled.sc-ion-input-md-h{opacity:0.38}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{letter-spacing:0.0333333333em}.input-label-placement-floating.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.has-focus.input-label-placement-floating.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-focus.input-label-placement-stacked.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.input-highlight.sc-ion-input-md{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.input-highlight.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.input-highlight.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-md .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.input-highlight.sc-ion-input-md:dir(rtl){left:unset;right:unset;right:0}}}.has-focus.sc-ion-input-md-h .input-highlight.sc-ion-input-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{bottom:0}@supports (inset-inline-start: 0){.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h -no-combinator.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl].in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.in-item.sc-ion-input-md-h:dir(rtl) .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}}}.input-shape-round.sc-ion-input-md-h{--border-radius:16px}.sc-ion-input-md-s>ion-button[slot=start].button-has-icon-only,.sc-ion-input-md-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}",vy=et(class extends tt{constructor(){super(),this.__registerHost(),this.ionInput=L(this,"ionInput",7),this.ionChange=L(this,"ionChange",7),this.ionBlur=L(this,"ionBlur",7),this.ionFocus=L(this,"ionFocus",7),this.ionStyle=L(this,"ionStyle",7),this.inputId="ion-input-".concat(wy++),this.inheritedAttributes={},this.isComposing=!1,this.hasLoggedDeprecationWarning=!1,this.didInputClearOnEdit=!1,this.onInput=t=>{const i=t.target;i&&(this.value=i.value||""),this.emitInputChange(t)},this.onChange=t=>{this.emitValueChange(t)},this.onBlur=t=>{this.hasFocus=!1,this.emitStyle(),this.focusedValue!==this.value&&this.emitValueChange(t),this.didInputClearOnEdit=!1,this.ionBlur.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusedValue=this.value,this.emitStyle(),this.ionFocus.emit(t)},this.onKeydown=t=>{this.checkClearOnEdit(t)},this.onCompositionStart=()=>{this.isComposing=!0},this.onCompositionEnd=()=>{this.isComposing=!1},this.clearTextInput=t=>{this.clearInput&&!this.readonly&&!this.disabled&&t&&(t.preventDefault(),t.stopPropagation(),this.setFocus()),this.value="",this.emitInputChange(t)},this.hasFocus=!1,this.color=void 0,this.accept=void 0,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.autofocus=!1,this.clearInput=!1,this.clearOnEdit=void 0,this.counter=!1,this.counterFormatter=void 0,this.debounce=void 0,this.disabled=!1,this.enterkeyhint=void 0,this.errorText=void 0,this.fill=void 0,this.inputmode=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.multiple=void 0,this.name=this.inputId,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.shape=void 0,this.spellcheck=!1,this.step=void 0,this.size=void 0,this.type="text",this.value=""}debounceChanged(){const{ionInput:t,debounce:i,originalIonInput:n}=this;this.ionInput=i===void 0?n!=null?n:t:fs(t,i)}disabledChanged(){this.emitStyle()}placeholderChanged(){this.emitStyle()}valueChanged(){const t=this.nativeInput,i=this.getValue();t&&t.value!==i&&!this.isComposing&&(t.value=i),this.emitStyle()}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},Ze(this.el)),ci(this.el,["tabindex","title","data-form-type"]))}connectedCallback(){const{el:t}=this;this.legacyFormController=io(t),this.slotMutationController=Iu(t,["label","start","end"],()=>ue(this)),this.notchController=Ts(t,()=>this.notchSpacerEl,()=>this.labelSlot),this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}componentDidLoad(){this.originalIonInput=this.ionInput}componentDidRender(){var t;(t=this.notchController)===null||t===void 0||t.calculateNotchWidth()}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async getInputElement(){return this.nativeInput||await new Promise(t=>Re(this.el,t)),Promise.resolve(this.nativeInput)}emitValueChange(t){const{value:i}=this,n=i==null?i:i.toString();this.focusedValue=n,this.ionChange.emit({value:n,event:t})}emitInputChange(t){const{value:i}=this,n=i==null?i:i.toString();this.ionInput.emit({value:n,event:t})}shouldClearOnEdit(){const{type:t,clearOnEdit:i}=this;return i===void 0?t==="password":i}getValue(){return typeof this.value=="number"?this.value.toString():(this.value||"").toString()}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({interactive:!0,input:!0,"has-placeholder":this.placeholder!==void 0,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled,legacy:!!this.legacy})}checkClearOnEdit(t){if(!this.shouldClearOnEdit())return;const n=["Enter","Tab","Shift","Meta","Alt","Control"].includes(t.key);!this.didInputClearOnEdit&&this.hasValue()&&!n&&(this.value="",this.emitInputChange(t)),n||(this.didInputClearOnEdit=!0)}hasValue(){return this.getValue().length>0}renderHintText(){const{helperText:t,errorText:i}=this;return[p("div",{class:"helper-text"},t),p("div",{class:"error-text"},i)]}renderCounter(){const{counter:t,maxlength:i,counterFormatter:n,value:o}=this;if(!(t!==!0||i===void 0))return p("div",{class:"counter"},zu(o,i,n))}renderBottomContent(){const{counter:t,helperText:i,errorText:n,maxlength:o}=this;if(!(!(i||n)&&!(t===!0&&o!==void 0)))return p("div",{class:"input-bottom"},this.renderHintText(),this.renderCounter())}renderLabel(){const{label:t}=this;return p("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},t===void 0?p("slot",{name:"label"}):p("div",{class:"label-text"},t))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return this.label!==void 0||this.labelSlot!==null}renderLabelContainer(){return F(this)==="md"&&this.fill==="outline"?[p("div",{class:"input-outline-container"},p("div",{class:"input-outline-start"}),p("div",{class:{"input-outline-notch":!0,"input-outline-notch-hidden":!this.hasLabel}},p("div",{class:"notch-spacer","aria-hidden":"true",ref:n=>this.notchSpacerEl=n},this.label)),p("div",{class:"input-outline-end"})),this.renderLabel()]:this.renderLabel()}renderInput(){const{disabled:t,fill:i,readonly:n,shape:o,inputId:r,labelPlacement:a,el:s,hasFocus:l}=this,c=F(this),d=this.getValue(),h=wt("ion-item",this.el),u=c==="md"&&i!=="outline"&&!h,m=this.hasValue(),g=s.querySelector('[slot="start"], [slot="end"]')!==null,f=a==="stacked"||a==="floating"&&(m||l||g);return p(Q,{class:xt(this.color,{[c]:!0,"has-value":m,"has-focus":l,"label-floating":f,["input-fill-".concat(i)]:i!==void 0,["input-shape-".concat(o)]:o!==void 0,["input-label-placement-".concat(a)]:!0,"in-item":h,"in-item-color":wt("ion-item.ion-color",this.el),"input-disabled":t})},p("label",{class:"input-wrapper",htmlFor:r},this.renderLabelContainer(),p("div",{class:"native-wrapper"},p("slot",{name:"start"}),p("input",Object.assign({class:"native-input",ref:k=>this.nativeInput=k,id:r,disabled:t,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:n,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:d,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown,onCompositionstart:this.onCompositionStart,onCompositionend:this.onCompositionEnd},this.inheritedAttributes)),this.clearInput&&!n&&!t&&p("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:k=>{k.preventDefault()},onClick:this.clearTextInput},p("ion-icon",{"aria-hidden":"true",icon:c==="ios"?Ea:Sa})),p("slot",{name:"end"})),u&&p("div",{class:"input-highlight"})),this.renderBottomContent())}renderLegacyInput(){this.hasLoggedDeprecationWarning||(ft('ion-input now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: \nExample with aria-label: \n\nFor inputs that do not render the label immediately next to the input, developers may continue to use "ion-label" but must manually associate the label with the input by using "aria-labelledby".\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&ft('ion-input is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new input syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const t=F(this),i=this.getValue(),n=this.inputId+"-lbl",o=to(this.el);return o&&(o.id=n),p(Q,{"aria-disabled":this.disabled?"true":null,class:xt(this.color,{[t]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus,"legacy-input":!0,"in-item-color":wt("ion-item.ion-color",this.el)})},p("input",Object.assign({class:"native-input",ref:r=>this.nativeInput=r,"aria-labelledby":o?o.id:null,disabled:this.disabled,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:i,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown},this.inheritedAttributes)),this.clearInput&&!this.readonly&&!this.disabled&&p("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:r=>{r.preventDefault()},onClick:this.clearTextInput},p("ion-icon",{"aria-hidden":"true",icon:t==="ios"?Ea:Sa})))}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyInput():this.renderInput()}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}}static get style(){return{ios:by,md:xy}}},[38,"ion-input",{color:[513],accept:[1],autocapitalize:[1],autocomplete:[1],autocorrect:[1],autofocus:[4],clearInput:[4,"clear-input"],clearOnEdit:[4,"clear-on-edit"],counter:[4],counterFormatter:[16],debounce:[2],disabled:[4],enterkeyhint:[1],errorText:[1,"error-text"],fill:[1],inputmode:[1],helperText:[1,"helper-text"],label:[1],labelPlacement:[1,"label-placement"],legacy:[4],max:[8],maxlength:[2],min:[8],minlength:[2],multiple:[4],name:[1],pattern:[1],placeholder:[1],readonly:[4],required:[4],shape:[1],spellcheck:[4],step:[1],size:[2],type:[1],value:[1032],hasFocus:[32],setFocus:[64],getInputElement:[64]},void 0,{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}]);let wy=0;function yy(){if(typeof customElements>"u")return;["ion-input","ion-icon"].forEach(t=>{switch(t){case"ion-input":customElements.get(t)||customElements.define(t,vy);break;case"ion-icon":customElements.get(t)||ve();break}})}const ky=yy;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Cy=vr;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ey=":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-color-step-100, #e6e6e6);--color:var(--ion-color-step-850, #262626);--padding-start:16px;--inner-padding-end:8px;border-radius:0;position:relative;min-height:28px;font-size:1.0625rem;font-weight:600}:host([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:2px;margin-bottom:2px}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4);font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}::slotted(h2:last-child) ::slotted(h3:last-child),::slotted(h4:last-child),::slotted(h5:last-child),::slotted(h6:last-child),::slotted(p:last-child){margin-bottom:0}",Sy=":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-background-color, #fff);--color:var(--ion-color-step-400, #999999);--padding-start:16px;--inner-padding-end:16px;min-height:30px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));font-size:0.875rem}::slotted([slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted([slot=end]){-webkit-margin-start:32px;margin-inline-start:32px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:13px;margin-bottom:10px}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.7142857143em}:host(.ion-color) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted(ion-icon[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:0.6875rem}::slotted(ion-note[slot]){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){-webkit-padding-end:16px;padding-inline-end:16px}::slotted(ion-note[slot=end]){-webkit-padding-start:16px;padding-inline-start:16px}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(h3,h4,h5,h6){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:var(--ion-color-step-600, #666666);font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}",Ay=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.sticky=!1}render(){const t=F(this);return p(Q,{class:xt(this.color,{[t]:!0,"item-divider-sticky":this.sticky,item:!0})},p("slot",{name:"start"}),p("div",{class:"item-divider-inner"},p("div",{class:"item-divider-wrapper"},p("slot",null)),p("slot",{name:"end"})))}get el(){return this}static get style(){return{ios:Ey,md:Sy}}},[33,"ion-item-divider",{color:[513],sticky:[4]}]);function Iy(){if(typeof customElements>"u")return;["ion-item-divider"].forEach(t=>{switch(t){case"ion-item-divider":customElements.get(t)||customElements.define(t,Ay);break}})}const zy=Iy;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const _y="ion-item-group{display:block}",Ty="ion-item-group{display:block}",Oy=et(class extends tt{constructor(){super(),this.__registerHost()}render(){const t=F(this);return p(Q,{role:"group",class:{[t]:!0,["item-group-".concat(t)]:!0,item:!0}})}static get style(){return{ios:_y,md:Ty}}},[32,"ion-item-group"]);function $y(){if(typeof customElements>"u")return;["ion-item-group"].forEach(t=>{switch(t){case"ion-item-group":customElements.get(t)||customElements.define(t,Oy);break}})}const Ly=$y;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Dy=":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:clamp(16px, 1rem, 35.2px)}:host(.ion-activated){background:var(--ion-color-primary-shade, #3171e0)}:host(.ion-color.ion-activated){background:var(--ion-color-shade)}",Py=":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:0.875rem;font-weight:500;text-transform:uppercase}",My=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onClick=t=>{t.target.closest("ion-item-option")&&t.preventDefault()},this.color=void 0,this.disabled=!1,this.download=void 0,this.expandable=!1,this.href=void 0,this.rel=void 0,this.target=void 0,this.type="button"}render(){const{disabled:t,expandable:i,href:n}=this,o=n===void 0?"button":"a",r=F(this),a=o==="button"?{type:this.type}:{download:this.download,href:this.href,target:this.target};return p(Q,{onClick:this.onClick,class:xt(this.color,{[r]:!0,"item-option-disabled":t,"item-option-expandable":i,"ion-activatable":!0})},p(o,Object.assign({},a,{class:"button-native",part:"native",disabled:t}),p("span",{class:"button-inner"},p("slot",{name:"top"}),p("div",{class:"horizontal-wrapper"},p("slot",{name:"start"}),p("slot",{name:"icon-only"}),p("slot",null),p("slot",{name:"end"})),p("slot",{name:"bottom"})),r==="md"&&p("ion-ripple-effect",null)))}get el(){return this}static get style(){return{ios:Dy,md:Py}}},[33,"ion-item-option",{color:[513],disabled:[4],download:[1],expandable:[4],href:[1],rel:[1],target:[1],type:[1]}]);function By(){if(typeof customElements>"u")return;["ion-item-option","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-item-option":customElements.get(t)||customElements.define(t,My);break;case"ion-ripple-effect":customElements.get(t)||se();break}})}const Ry=By;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Fy="ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-ios{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)))}.item-options-ios.item-options-end{border-bottom-width:0.55px}.list-ios-lines-none .item-options-ios{border-bottom-width:0}.list-ios-lines-full .item-options-ios,.list-ios-lines-inset .item-options-ios.item-options-end{border-bottom-width:0.55px}",jy="ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-md{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}.list-md-lines-none .item-options-md{border-bottom-width:0}.list-md-lines-full .item-options-md,.list-md-lines-inset .item-options-md.item-options-end{border-bottom-width:1px}",Hy=et(class extends tt{constructor(){super(),this.__registerHost(),this.ionSwipe=L(this,"ionSwipe",7),this.side="end"}async fireSwipeEvent(){this.ionSwipe.emit({side:this.side})}render(){const t=F(this),i=Wn(this.side);return p(Q,{class:{[t]:!0,["item-options-".concat(t)]:!0,"item-options-start":!i,"item-options-end":i}})}get el(){return this}static get style(){return{ios:Fy,md:jy}}},[32,"ion-item-options",{side:[1],fireSwipeEvent:[64]}]);function Vy(){if(typeof customElements>"u")return;["ion-item-options"].forEach(t=>{switch(t){case"ion-item-options":customElements.get(t)||customElements.define(t,Hy);break}})}const Wy=Vy;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const _u=(e,t,i)=>{if(typeof MutationObserver>"u")return;const n=new MutationObserver(o=>{i(qy(o,t))});return n.observe(e,{childList:!0,subtree:!0}),n},qy=(e,t)=>{let i;return e.forEach(n=>{for(let o=0;o{if(e.nodeType!==1)return;const i=e;return(i.tagName===t.toUpperCase()?[i]:Array.from(i.querySelectorAll(t))).find(o=>o.value===i.value)},Ny="ion-item-sliding{display:block;position:relative;width:100%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ion-item-sliding .item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.item-sliding-active-slide .item{position:relative;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1), -webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);opacity:1;z-index:2;pointer-events:none;will-change:transform}.item-sliding-closing ion-item-options{pointer-events:none}.item-sliding-active-swipe-end .item-options-end .item-option-expandable{padding-left:100%;-ms-flex-order:1;order:1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-left;transition-property:padding-left}:host-context([dir=rtl]) .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}[dir=rtl] .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-end .item-options-end .item-option-expandable:dir(rtl){-ms-flex-order:-1;order:-1}}.item-sliding-active-swipe-start .item-options-start .item-option-expandable{padding-right:100%;-ms-flex-order:-1;order:-1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-right;transition-property:padding-right}:host-context([dir=rtl]) .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}[dir=rtl] .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-start .item-options-start .item-option-expandable:dir(rtl){-ms-flex-order:1;order:1}}",kc=30,Cc=.55;let We;const Uy=et(class extends tt{constructor(){super(),this.__registerHost(),this.ionDrag=L(this,"ionDrag",7),this.item=null,this.openAmount=0,this.initialOpenAmount=0,this.optsWidthRightSide=0,this.optsWidthLeftSide=0,this.sides=0,this.optsDirty=!0,this.contentEl=null,this.initialContentScrollY=!0,this.state=2,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){const{el:t}=this;this.item=t.querySelector("ion-item"),this.contentEl=Cu(t),this.mutationObserver=_u(t,"ion-item-option",async()=>{await this.updateOptions()}),await this.updateOptions(),this.gesture=(await ut(()=>Promise.resolve().then(()=>Ds),void 0)).createGesture({el:t,gestureName:"item-swipe",gesturePriority:100,threshold:5,canStart:i=>this.canStart(i),onStart:()=>this.onStart(),onMove:i=>this.onMove(i),onEnd:i=>this.onEnd(i)}),this.disabledChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.item=null,this.leftOptions=this.rightOptions=void 0,We===this.el&&(We=void 0),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=void 0)}getOpenAmount(){return Promise.resolve(this.openAmount)}getSlidingRatio(){return Promise.resolve(this.getSlidingRatioSync())}async open(t){var i;if((this.item=(i=this.item)!==null&&i!==void 0?i:this.el.querySelector("ion-item"))===null)return;const o=this.getOptions(t);if(!o)return;t===void 0&&(t=o===this.leftOptions?"start":"end"),t=Wn(t)?"end":"start";const r=this.openAmount<0,a=this.openAmount>0;r&&o===this.leftOptions||a&&o===this.rightOptions||(this.closeOpened(),this.state=4,requestAnimationFrame(()=>{this.calculateOptsWidth();const s=t==="end"?this.optsWidthRightSide:-this.optsWidthLeftSide;We=this.el,this.setOpenAmount(s,!1),this.state=t==="end"?8:16}))}async close(){this.setOpenAmount(0,!0)}async closeOpened(){return We!==void 0?(We.close(),We=void 0,!0):!1}getOptions(t){return t===void 0?this.leftOptions||this.rightOptions:t==="start"?this.leftOptions:this.rightOptions}async updateOptions(){const t=this.el.querySelectorAll("ion-item-options");let i=0;this.leftOptions=this.rightOptions=void 0;for(let n=0;nthis.optsWidthRightSide?(n=this.optsWidthRightSide,i=n+(i-n)*Cc):i<-this.optsWidthLeftSide&&(n=-this.optsWidthLeftSide,i=n+(i-n)*Cc),this.setOpenAmount(i,!1)}onEnd(t){const{contentEl:i,initialContentScrollY:n}=this;i&&Eu(i,n);const o=t.velocityX;let r=this.openAmount>0?this.optsWidthRightSide:-this.optsWidthLeftSide;const a=this.openAmount>0==!(o<0),s=Math.abs(o)>.3,l=Math.abs(this.openAmount)0)this.state=t>=this.optsWidthRightSide+kc?40:8;else if(t<0)this.state=t<=-this.optsWidthLeftSide-kc?80:16;else{n.classList.add("item-sliding-closing"),this.gesture&&this.gesture.enable(!1),this.tmr=setTimeout(()=>{this.state=2,this.tmr=void 0,this.gesture&&this.gesture.enable(!this.disabled),n.classList.remove("item-sliding-closing")},600),We=void 0,o.transform="";return}o.transform="translate3d(".concat(-t,"px,0,0)"),this.ionDrag.emit({amount:t,ratio:this.getSlidingRatioSync()})}getSlidingRatioSync(){return this.openAmount>0?this.openAmount/this.optsWidthRightSide:this.openAmount<0?this.openAmount/this.optsWidthLeftSide:0}render(){const t=F(this);return p(Q,{class:{[t]:!0,"item-sliding-active-slide":this.state!==2,"item-sliding-active-options-end":(this.state&8)!==0,"item-sliding-active-options-start":(this.state&16)!==0,"item-sliding-active-swipe-end":(this.state&32)!==0,"item-sliding-active-swipe-start":(this.state&64)!==0}})}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return Ny}},[0,"ion-item-sliding",{disabled:[4],state:[32],getOpenAmount:[64],getSlidingRatio:[64],open:[64],close:[64],closeOpened:[64]},void 0,{disabled:["disabledChanged"]}]),Gy=(e,t,i)=>!t&&i||e&&t;function Xy(){if(typeof customElements>"u")return;["ion-item-sliding"].forEach(t=>{switch(t){case"ion-item-sliding":customElements.get(t)||customElements.define(t,Uy);break}})}const Ky=Xy;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Zy=wr;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Qy="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:only-child,.list-ios.list-inset ion-item:not(:only-of-type):last-of-type,.list-ios.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",Jy="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:not(:only-of-type):first-of-type,.list-md.list-inset ion-item-sliding:first-of-type ion-item{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:not(:only-of-type):last-of-type,.list-md.list-inset ion-item-sliding:last-of-type ion-item{--border-radius:0 0 2px 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset ion-item:only-child{--border-radius:2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",tk=et(class extends tt{constructor(){super(),this.__registerHost(),this.lines=void 0,this.inset=!1}async closeSlidingItems(){const t=this.el.querySelector("ion-item-sliding");return t!=null&&t.closeOpened?t.closeOpened():!1}render(){const t=F(this),{lines:i,inset:n}=this;return p(Q,{role:"list",class:{[t]:!0,["list-".concat(t)]:!0,"list-inset":n,["list-lines-".concat(i)]:i!==void 0,["list-".concat(t,"-lines-").concat(i)]:i!==void 0}})}get el(){return this}static get style(){return{ios:Qy,md:Jy}}},[32,"ion-list",{lines:[1],inset:[4],closeSlidingItems:[64]}]);function Os(){if(typeof customElements>"u")return;["ion-list"].forEach(t=>{switch(t){case"ion-list":customElements.get(t)||customElements.define(t,tk);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const ek=Os;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const ik=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);position:relative;-ms-flex-align:end;align-items:flex-end;font-size:min(1.375rem, 56.1px);font-weight:700;letter-spacing:0}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){--padding-top:0;--padding-bottom:0;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px;min-height:1.4em}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",nk=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);min-height:45px;font-size:0.875rem}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}",ok=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.lines=void 0}render(){const{lines:t}=this,i=F(this);return p(Q,{class:xt(this.color,{[i]:!0,["list-header-lines-".concat(t)]:t!==void 0})},p("div",{class:"list-header-inner"},p("slot",null)))}static get style(){return{ios:ik,md:nk}}},[33,"ion-list-header",{color:[513],lines:[1]}]);function $s(){if(typeof customElements>"u")return;["ion-list-header"].forEach(t=>{switch(t){case"ion-list-header":customElements.get(t)||customElements.define(t,ok);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const rk=$s;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ti=(e,t,i,n,o)=>sk(e[1],t[1],i[1],n[1],o).map(r=>ak(e[0],t[0],i[0],n[0],r)),ak=(e,t,i,n,o)=>{const r=3*t*Math.pow(o-1,2),a=-3*i*o+3*i+n*o,s=e*Math.pow(o-1,3);return o*(r+o*a)-s},sk=(e,t,i,n,o)=>(e-=o,t-=o,i-=o,n-=o,ck(n-3*i+3*t-e,3*i-6*t+3*e,3*t-3*e,e).filter(a=>a>=0&&a<=1)),lk=(e,t,i)=>{const n=t*t-4*e*i;return n<0?[]:[(-t+Math.sqrt(n))/(2*e),(-t-Math.sqrt(n))/(2*e)]},ck=(e,t,i,n)=>{if(e===0)return lk(t,i,n);t/=e,i/=e,n/=e;const o=(3*i-t*t)/3,r=(2*t*t*t-9*t*i+27*n)/27;if(o===0)return[Math.pow(-r,1/3)];if(r===0)return[Math.sqrt(-o),-Math.sqrt(-o)];const a=Math.pow(r/2,2)+Math.pow(o/3,3);if(a===0)return[Math.pow(r/2,1/2)-t/3];if(a>0)return[Math.pow(-(r/2)+Math.sqrt(a),1/3)-Math.pow(r/2+Math.sqrt(a),1/3)-t/3];const s=Math.sqrt(Math.pow(-(o/3),3)),l=Math.acos(-(r/(2*Math.sqrt(Math.pow(-(o/3),3))))),c=2*Math.pow(s,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ls=e=>N().duration(e?400:300),dk=e=>{let t,i;const n=e.width+8,o=N(),r=N();e.isEndSide?(t=n+"px",i="0px"):(t=-n+"px",i="0px"),o.addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(t,")"),"translateX(".concat(i,")"));const s=F(e)==="ios",l=s?.2:.25;return r.addElement(e.backdropEl).fromTo("opacity",.01,l),Ls(s).addAnimation([o,r])},hk=e=>{let t,i;const n=F(e),o=e.width;e.isEndSide?(t=-o+"px",i=o+"px"):(t=o+"px",i=-o+"px");const r=N().addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(i,")"),"translateX(0px)"),a=N().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(t,")")),s=N().addElement(e.backdropEl).fromTo("opacity",.01,.32);return Ls(n==="ios").addAnimation([r,a,s])},uk=e=>{const t=F(e),i=e.width*(e.isEndSide?-1:1)+"px",n=N().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(i,")"));return Ls(t==="ios").addAnimation(n)},pk=()=>{const e=new Map,t=[],i=async y=>{const A=await c(y,!0);return A?A.open():!1},n=async y=>{const A=await(y!==void 0?c(y,!0):d());return A!==void 0?A.close():!1},o=async y=>{const A=await c(y,!0);return A?A.toggle():!1},r=async(y,A)=>{const $=await c(A);return $&&($.disabled=!y),$},a=async(y,A)=>{const $=await c(A);return $&&($.swipeGesture=y),$},s=async y=>{if(y!=null){const A=await c(y);return A!==void 0&&A.isOpen()}else return await d()!==void 0},l=async y=>{const A=await c(y);return A?!A.disabled:!1},c=async(y,A=!1)=>{if(await E(),y==="start"||y==="end"){const M=t.filter(U=>U.side===y&&!U.disabled);if(M.length>=1)return M.length>1&&A&&ft('menuController queried for a menu on the "'.concat(y,'" side, but ').concat(M.length," menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side."),M.map(U=>U.el)),M[0].el;const T=t.filter(U=>U.side===y);if(T.length>=1)return T.length>1&&A&&ft('menuController queried for a menu on the "'.concat(y,'" side, but ').concat(T.length," menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side."),T.map(U=>U.el)),T[0].el}else if(y!=null)return S(M=>M.menuId===y);const $=S(M=>!M.disabled);return $||(t.length>0?t[0].el:void 0)},d=async()=>(await E(),C()),h=async()=>(await E(),I()),u=async()=>(await E(),v()),m=(y,A)=>{e.set(y,A)},g=y=>{t.indexOf(y)<0&&t.push(y)},f=y=>{const A=t.indexOf(y);A>-1&&t.splice(A,1)},k=async(y,A,$)=>{if(v())return!1;if(A){const M=await d();M&&y.el!==M&&await M.setOpen(!1,!1)}return y._setOpen(A,$)},x=(y,A)=>{const $=e.get(y);if(!$)throw new Error("animation not registered");return $(A)},C=()=>S(y=>y._isOpen),I=()=>t.map(y=>y.el),v=()=>t.some(y=>y.isAnimating),S=y=>{const A=t.find(y);if(A!==void 0)return A.el},E=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(y=>new Promise(A=>Re(y,A))));return m("reveal",uk),m("push",hk),m("overlay",dk),$n==null||$n.addEventListener("ionBackButton",y=>{const A=C();A&&y.detail.register(eu,()=>A.close())}),{registerAnimation:m,get:c,getMenus:h,getOpen:d,isEnabled:l,swipeGesture:a,isAnimating:u,isOpen:s,enable:r,toggle:o,close:n,open:i,_getOpenSync:C,_createAnimation:x,_register:g,_unregister:f,_setOpen:k}},ri=pk(),mk=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}",fk=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}",gk="cubic-bezier(0.32,0.72,0,1)",bk="cubic-bezier(0.0,0.0,0.2,1)",xk="cubic-bezier(1, 0, 0.68, 0.28)",vk="cubic-bezier(0.4, 0, 0.6, 1)",Ec='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',wk=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionWillOpen=L(this,"ionWillOpen",7),this.ionWillClose=L(this,"ionWillClose",7),this.ionDidOpen=L(this,"ionDidOpen",7),this.ionDidClose=L(this,"ionDidClose",7),this.ionMenuChange=L(this,"ionMenuChange",7),this.lastOnEnd=0,this.blocker=xr.createBlocker({disableScroll:!0}),this.didLoad=!1,this.operationCancelled=!1,this.isAnimating=!1,this._isOpen=!1,this.inheritedAttributes={},this.handleFocus=t=>{const i=un(document);i&&!i.contains(this.el)||this.trapKeyboardFocus(t,document)},this.isPaneVisible=!1,this.isEndSide=!1,this.contentId=void 0,this.menuId=void 0,this.type=void 0,this.disabled=!1,this.side="start",this.swipeGesture=!0,this.maxEdgeStart=50}typeChanged(t,i){const n=this.contentEl;n&&(i!==void 0&&n.classList.remove("menu-content-".concat(i)),n.classList.add("menu-content-".concat(t)),n.removeAttribute("style")),this.menuInnerEl&&this.menuInnerEl.removeAttribute("style"),this.animation=void 0}disabledChanged(){this.updateState(),this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}sideChanged(){this.isEndSide=Wn(this.side),this.animation=void 0}swipeGestureChanged(){this.updateState()}async connectedCallback(){typeof customElements<"u"&&customElements!=null&&await customElements.whenDefined("ion-menu"),this.type===void 0&&(this.type=pt.get("menuType","overlay"));const t=this.contentId!==void 0?document.getElementById(this.contentId):null;if(t===null){console.error('Menu: must have a "content" element to listen for drag events on.');return}this.el.contains(t)&&console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.'),this.contentEl=t,t.classList.add("menu-content"),this.typeChanged(this.type,void 0),this.sideChanged(),ri._register(this),this.menuChanged(),this.gesture=(await ut(()=>Promise.resolve().then(()=>Ds),void 0)).createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:!0,canStart:i=>this.canStart(i),onWillStart:()=>this.onWillStart(),onStart:()=>this.onStart(),onMove:i=>this.onMove(i),onEnd:i=>this.onEnd(i)}),this.updateState()}componentWillLoad(){this.inheritedAttributes=Ze(this.el)}async componentDidLoad(){this.didLoad=!0,this.menuChanged(),this.updateState()}menuChanged(){this.didLoad&&this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}async disconnectedCallback(){await this.close(!1),this.blocker.destroy(),ri._unregister(this),this.animation&&this.animation.destroy(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.animation=void 0,this.contentEl=void 0}onSplitPaneChanged(t){const{target:i}=t,n=this.el.closest("ion-split-pane");i===n&&(this.isPaneVisible=t.detail.isPane(this.el),this.updateState())}onBackdropClick(t){this._isOpen&&this.lastOnEnd0?i[i.length-1]:null;n?n.focus():t.focus()}trapKeyboardFocus(t,i){const n=t.target;n&&(this.el.contains(n)?this.lastFocus=n:(this.focusFirstDescendant(),this.lastFocus===i.activeElement&&this.focusLastDescendant()))}async _setOpen(t,i=!0){return!this._isActive()||this.isAnimating||t===this._isOpen?!1:(this.beforeAnimation(t),await this.loadAnimation(),await this.startAnimation(t,i),this.operationCancelled?(this.operationCancelled=!1,!1):(this.afterAnimation(t),!0))}async loadAnimation(){const t=this.menuInnerEl.offsetWidth,i=Wn(this.side);if(t===this.width&&this.animation!==void 0&&i===this.isEndSide)return;this.width=t,this.isEndSide=i,this.animation&&(this.animation.destroy(),this.animation=void 0);const n=this.animation=await ri._createAnimation(this.type,this);pt.getBoolean("animated",!0)||n.duration(0),n.fill("both")}async startAnimation(t,i){const n=!t,o=F(this),r=o==="ios"?gk:bk,a=o==="ios"?xk:vk,s=this.animation.direction(n?"reverse":"normal").easing(n?a:r);i?await s.play():s.play({sync:!0}),s.getDirection()==="reverse"&&s.direction("normal")}_isActive(){return!this.disabled&&!this.isPaneVisible}canSwipe(){return this.swipeGesture&&!this.isAnimating&&this._isActive()}canStart(t){return!!document.querySelector("ion-modal.show-modal")||!this.canSwipe()?!1:this._isOpen?!0:ri._getOpenSync()?!1:yk(window,t.currentX,this.isEndSide,this.maxEdgeStart)}onWillStart(){return this.beforeAnimation(!this._isOpen),this.loadAnimation()}onStart(){if(!this.isAnimating||!this.animation){Wt(!1,"isAnimating has to be true");return}this.animation.progressStart(!0,this._isOpen?1:0)}onMove(t){if(!this.isAnimating||!this.animation){Wt(!1,"isAnimating has to be true");return}const n=Sc(t.deltaX,this._isOpen,this.isEndSide)/this.width;this.animation.progressStep(this._isOpen?1-n:n)}onEnd(t){if(!this.isAnimating||!this.animation){Wt(!1,"isAnimating has to be true");return}const i=this._isOpen,n=this.isEndSide,o=Sc(t.deltaX,i,n),r=this.width,a=o/r,s=t.velocityX,l=r/2,c=s>=0&&(s>.2||t.deltaX>l),d=s<=0&&(s<-.2||t.deltaX<-l),h=i?n?c:d:n?d:c;let u=!i&&h;i&&!h&&(u=!0),this.lastOnEnd=t.currentTime;let m=h?.001:-.001;const g=a<0?.01:a;m+=Ti([0,0],[.4,0],[.6,1],[1,1],Si(0,g,.9999))[0]||0;const f=this._isOpen?!h:h;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish(()=>this.afterAnimation(u),{oneTimeCallback:!0}).progressEnd(f?1:0,this._isOpen?1-m:m,300)}beforeAnimation(t){Wt(!this.isAnimating,"_before() should not be called while animating"),this.el.classList.add(Ac),this.el.setAttribute("tabindex","0"),this.backdropEl&&this.backdropEl.classList.add(Ic),this.contentEl&&(this.contentEl.classList.add(zc),this.contentEl.setAttribute("aria-hidden","true")),this.blocker.block(),this.isAnimating=!0,t?this.ionWillOpen.emit():this.ionWillClose.emit()}afterAnimation(t){var i;this._isOpen=t,this.isAnimating=!1,this._isOpen||this.blocker.unblock(),t?(this.ionDidOpen.emit(),((i=document.activeElement)===null||i===void 0?void 0:i.closest("ion-menu"))!==this.el&&this.el.focus(),document.addEventListener("focus",this.handleFocus,!0)):(this.el.classList.remove(Ac),this.el.removeAttribute("tabindex"),this.contentEl&&(this.contentEl.classList.remove(zc),this.contentEl.removeAttribute("aria-hidden")),this.backdropEl&&this.backdropEl.classList.remove(Ic),this.animation&&this.animation.stop(),this.ionDidClose.emit(),document.removeEventListener("focus",this.handleFocus,!0))}updateState(){const t=this._isActive();this.gesture&&this.gesture.enable(t&&this.swipeGesture),t||(this.isAnimating&&(this.operationCancelled=!0),this.afterAnimation(!1))}render(){const{type:t,disabled:i,isPaneVisible:n,inheritedAttributes:o,side:r}=this,a=F(this);return p(Q,{role:"navigation","aria-label":o["aria-label"]||"menu",class:{[a]:!0,["menu-type-".concat(t)]:!0,"menu-enabled":!i,["menu-side-".concat(r)]:!0,"menu-pane-visible":n}},p("div",{class:"menu-inner",part:"container",ref:s=>this.menuInnerEl=s},p("slot",null)),p("ion-backdrop",{ref:s=>this.backdropEl=s,class:"menu-backdrop",tappable:!1,stopPropagation:!1,part:"backdrop"}))}get el(){return this}static get watchers(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}}static get style(){return{ios:mk,md:fk}}},[33,"ion-menu",{contentId:[513,"content-id"],menuId:[513,"menu-id"],type:[1025],disabled:[1028],side:[513],swipeGesture:[4,"swipe-gesture"],maxEdgeStart:[2,"max-edge-start"],isPaneVisible:[32],isEndSide:[32],isOpen:[64],isActive:[64],open:[64],close:[64],toggle:[64],setOpen:[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]],{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}]),Sc=(e,t,i)=>Math.max(0,t!==i?-e:e),yk=(e,t,i,n)=>i?t>=e.innerWidth-n:t<=n,Ac="show-menu",Ic="show-backdrop",zc="menu-content-open";function kk(){if(typeof customElements>"u")return;["ion-menu","ion-backdrop"].forEach(t=>{switch(t){case"ion-menu":customElements.get(t)||customElements.define(t,wk);break;case"ion-backdrop":customElements.get(t)||$i();break}})}const Ck=kk;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Tu=async e=>{const t=await ri.get(e);return!!(t&&await t.isActive())};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ek=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--padding-start:5px;--padding-end:5px;min-height:32px;font-size:clamp(31px, 1.9375rem, 38.13px)}:host(.ion-activated){opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',Sk=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:.04;--border-radius:50%;--color:initial;--padding-start:8px;--padding-end:8px;width:3rem;height:3rem;font-size:1.5rem}:host(.ion-color.ion-focused)::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}',Ak=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.onClick=async()=>ri.toggle(this.menu),this.visible=!1,this.color=void 0,this.disabled=!1,this.menu=void 0,this.autoHide=!0,this.type="button"}componentWillLoad(){this.inheritedAttributes=Ze(this.el)}componentDidLoad(){this.visibilityChanged()}async visibilityChanged(){this.visible=await Tu(this.menu)}render(){const{color:t,disabled:i,inheritedAttributes:n}=this,o=F(this),r=pt.get("menuIcon",o==="ios"?i0:n0),a=this.autoHide&&!this.visible,s={type:this.type},l=n["aria-label"]||"menu";return p(Q,{onClick:this.onClick,"aria-disabled":i?"true":null,"aria-hidden":a?"true":null,class:xt(t,{[o]:!0,button:!0,"menu-button-hidden":a,"menu-button-disabled":i,"in-toolbar":wt("ion-toolbar",this.el),"in-toolbar-color":wt("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0})},p("button",Object.assign({},s,{disabled:i,class:"button-native",part:"native","aria-label":l}),p("span",{class:"button-inner"},p("slot",null,p("ion-icon",{part:"icon",icon:r,mode:o,lazy:!1,"aria-hidden":"true"}))),o==="md"&&p("ion-ripple-effect",{type:"unbounded"})))}get el(){return this}static get style(){return{ios:Ek,md:Sk}}},[33,"ion-menu-button",{color:[513],disabled:[4],menu:[1],autoHide:[4,"auto-hide"],type:[1],visible:[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]);function Ik(){if(typeof customElements>"u")return;["ion-menu-button","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-menu-button":customElements.get(t)||customElements.define(t,Ak);break;case"ion-icon":customElements.get(t)||ve();break;case"ion-ripple-effect":customElements.get(t)||se();break}})}const zk=Ik;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const _k=":host(.menu-toggle-hidden){display:none}",Tk=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onClick=()=>ri.toggle(this.menu),this.visible=!1,this.menu=void 0,this.autoHide=!0}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await Tu(this.menu)}render(){const t=F(this),i=this.autoHide&&!this.visible;return p(Q,{onClick:this.onClick,"aria-hidden":i?"true":null,class:{[t]:!0,"menu-toggle-hidden":i}},p("slot",null))}static get style(){return _k}},[1,"ion-menu-toggle",{menu:[1],autoHide:[4,"auto-hide"],visible:[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]);function Ok(){if(typeof customElements>"u")return;["ion-menu-toggle"].forEach(t=>{switch(t){case"ion-menu-toggle":customElements.get(t)||customElements.define(t,Tk);break}})}const $k=Ok,Ou=1,$u=2,Go=3;class Ma{constructor(t,i){this.component=t,this.params=i,this.state=Ou}async init(t){if(this.state=$u,!this.element){const i=this.component;this.element=await kr(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)}}_destroy(){Wt(this.state!==Go,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=Go}}const _c=(e,t,i)=>!e||e.component!==t?!1:Sh(e.params,i),Tc=(e,t)=>e?e instanceof Ma?e:new Ma(e,t):null,Lk=e=>e.map(t=>t instanceof Ma?t:"component"in t?Tc(t.component,t.componentProps===null?void 0:t.componentProps):Tc(t,void 0)).filter(t=>t!==null),Dk=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}",Pk=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=L(this,"ionNavWillLoad",7),this.ionNavWillChange=L(this,"ionNavWillChange",3),this.ionNavDidChange=L(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(this.swipeGesture===!0)}rootChanged(){this.root!==void 0&&this.didLoad!==!1&&(this.useRouter||this.root!==void 0&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null,this.swipeGesture===void 0){const t=F(this);this.swipeGesture=pt.getBoolean("swipeBackEnabled",t==="ios")}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await ut(()=>import("./swipe-back-IWamMfvk.js"),__vite__mapDeps([]))).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)Ne(t.element,Yr),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,i,n,o){return this.insert(-1,t,i,n,o)}insert(t,i,n,o,r){return this.insertPages(t,[{component:i,componentProps:n}],o,r)}insertPages(t,i,n,o){return this.queueTrns({insertStart:t,insertViews:i,opts:n},o)}pop(t,i){return this.removeIndex(-1,1,t,i)}popTo(t,i,n){const o={removeStart:-1,removeCount:-1,opts:i};return typeof t=="object"&&t.component?(o.removeView=t,o.removeStart=1):typeof t=="number"&&(o.removeStart=t+1),this.queueTrns(o,n)}popToRoot(t,i){return this.removeIndex(1,-1,t,i)}removeIndex(t,i=1,n,o){return this.queueTrns({removeStart:t,removeCount:i,opts:n},o)}setRoot(t,i,n,o){return this.setPages([{component:t,componentProps:i}],n,o)}setPages(t,i,n){return i!=null||(i={}),i.animated!==!0&&(i.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},n)}setRouteId(t,i,n,o){const r=this.getActiveSync();if(_c(r,t,i))return Promise.resolve({changed:!1,element:r.element});let a;const s=new Promise(d=>a=d);let l;const c={updateURL:!1,viewIsReady:d=>{let h;const u=new Promise(m=>h=m);return a({changed:!0,element:d,markVisible:async()=>{h(),await l}}),u}};if(n==="root")l=this.setRoot(t,i,c);else{const d=this.views.find(h=>_c(h,t,i));d?l=this.popTo(d,Object.assign(Object.assign({},c),{direction:"back",animationBuilder:o})):n==="forward"?l=this.push(t,i,Object.assign(Object.assign({},c),{animationBuilder:o})):n==="back"&&(l=this.setRoot(t,i,Object.assign(Object.assign({},c),{direction:"back",animated:!0,animationBuilder:o})))}return s}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!!(t&&this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const i=this.views,n=i.indexOf(t);return n>0?i[n-1]:void 0}async queueTrns(t,i){var n,o;if(this.isTransitioning&&(!((n=t.opts)===null||n===void 0)&&n.skipIfBusy))return!1;const r=new Promise((a,s)=>{t.resolve=a,t.reject=s});if(t.done=i,t.opts&&t.opts.updateURL!==!1&&this.useRouter){const a=document.querySelector("ion-router");if(a){const s=await a.canTransition();if(s===!1)return!1;if(typeof s=="string")return a.push(s,t.opts.direction||"back"),!1}}return((o=t.insertViews)===null||o===void 0?void 0:o.length)===0&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),r}success(t,i){if(this.destroyed){this.fireError("nav controller was destroyed",i);return}if(i.done&&i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),i.resolve(t.hasCompleted),i.opts.updateURL!==!1&&this.useRouter){const n=document.querySelector("ion-router");if(n){const o=t.direction==="back"?"back":"forward";n.navChanged(o)}}}failed(t,i){if(this.destroyed){this.fireError("nav controller was destroyed",i);return}this.transInstr.length=0,this.fireError(t,i)}fireError(t,i){i.done&&i.done(!1,!1,t),i.reject&&!this.destroyed?i.reject(t):i.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return t?(this.runTransition(t),!0):!1}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const i=this.getActiveSync(),n=this.getEnteringView(t,i);if(!i&&!n)throw new Error("no views in the stack to be removed");n&&n.state===Ou&&await n.init(this.el),this.postViewInit(n,i,t);const o=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&n!==i;o&&t.opts&&i&&(t.opts.direction==="back"&&(t.opts.animationBuilder=t.opts.animationBuilder||(n==null?void 0:n.animationBuilder)),i.animationBuilder=t.opts.animationBuilder);let r;o?r=await this.transition(n,i,t):r={hasCompleted:!0,requiresTransition:!1},this.success(r,t),this.ionNavDidChange.emit()}catch(i){this.failed(i,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var i,n,o;const r=this.views.length;if((i=t.opts)!==null&&i!==void 0||(t.opts={}),(n=(o=t.opts).delegate)!==null&&n!==void 0||(o.delegate=this.delegate),t.removeView!==void 0){Wt(t.removeStart!==void 0,"removeView needs removeStart"),Wt(t.removeCount!==void 0,"removeView needs removeCount");const l=this.views.indexOf(t.removeView);if(l<0)throw new Error("removeView was not found");t.removeStart+=l}t.removeStart!==void 0&&(t.removeStart<0&&(t.removeStart=r-1),t.removeCount<0&&(t.removeCount=r-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===r),t.insertViews&&((t.insertStart<0||t.insertStart>r)&&(t.insertStart=r),t.enteringRequiresTransition=t.insertStart===r);const a=t.insertViews;if(!a)return;Wt(a.length>0,"length can not be zero");const s=Lk(a);if(s.length===0)throw new Error("invalid views to insert");for(const l of s){l.delegate=t.opts.delegate;const c=l.nav;if(c&&c!==this)throw new Error("inserted view was already inserted");if(l.state===Go)throw new Error("inserted view was already destroyed")}t.insertViews=s}getEnteringView(t,i){const n=t.insertViews;if(n!==void 0)return n[n.length-1];const o=t.removeStart;if(o!==void 0){const r=this.views,a=o+t.removeCount;for(let s=r.length-1;s>=0;s--){const l=r[s];if((s=a)&&l!==i)return l}}}postViewInit(t,i,n){var o,r,a;Wt(i||t,"Both leavingView and enteringView are null"),Wt(n.resolve,"resolve must be valid"),Wt(n.reject,"reject must be valid");const s=n.opts,{insertViews:l,removeStart:c,removeCount:d}=n;let h;if(c!==void 0&&d!==void 0){Wt(c>=0,"removeStart can not be negative"),Wt(d>=0,"removeCount can not be negative"),h=[];for(let m=c;m=0,"final balance can not be negative"),u===0)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(l){let m=n.insertStart;for(const g of l)this.insertViewAt(g,m),m++;n.enteringRequiresTransition&&((a=s.direction)!==null&&a!==void 0||(s.direction="forward"))}if(h&&h.length>0){for(const m of h)Ne(m.element,Sr),Ne(m.element,Ar),Ne(m.element,Yr);for(const m of h)this.destroyView(m)}}async transition(t,i,n){const o=n.opts,r=o.progressAnimation?h=>{h!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,h.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0}),h.progressEnd(0,0,0)):this.sbAni=h}:void 0,a=F(this),s=t.element,l=i&&i.element,c=Object.assign(Object.assign({mode:a,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:r,animated:this.animated&&pt.getBoolean("animated",!0),enteringEl:s,leavingEl:l},o),{animationBuilder:o.animationBuilder||this.animation||pt.get("navAnimation")}),{hasCompleted:d}=await cu(c);return this.transitionFinish(d,t,i,o)}transitionFinish(t,i,n,o){const r=t?i:n;return r&&this.unmountInactiveViews(r),{hasCompleted:t,requiresTransition:!0,enteringView:i,leavingView:n,direction:o.direction}}insertViewAt(t,i){const n=this.views,o=n.indexOf(t);o>-1?(Wt(t.nav===this,"view is not part of the nav"),n.splice(o,1),n.splice(i,0,t)):(Wt(!t.nav,"nav is used"),t.nav=this,n.splice(i,0,t))}removeView(t){Wt(t.state===$u||t.state===Go,"view state should be loaded or destroyed");const i=this.views,n=i.indexOf(t);Wt(n>-1,"view must be part of the stack"),n>=0&&i.splice(n,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const i=this.views,n=i.indexOf(t);for(let o=i.length-1;o>=0;o--){const r=i[o],a=r.element;a&&(o>n?(Ne(a,Yr),this.destroyView(r)):o{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0});let o=t?-.001:.001;t?o+=Ti([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),o+=Ti([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.sbAni.progressEnd(t?1:0,o,n)}else this.gestureOrAnimationInProgress=!1}render(){return p("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return Dk}},[1,"ion-nav",{delegate:[16],swipeGesture:[1028,"swipe-gesture"],animated:[4],animation:[16],rootParams:[16],root:[1],push:[64],insert:[64],insertPages:[64],pop:[64],popTo:[64],popToRoot:[64],removeIndex:[64],setRoot:[64],setPages:[64],setRouteId:[64],getRouteId:[64],getActive:[64],getByIndex:[64],canGoBack:[64],getPrevious:[64]},void 0,{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}]);function Mk(){if(typeof customElements>"u")return;["ion-nav"].forEach(t=>{switch(t){case"ion-nav":customElements.get(t)||customElements.define(t,Pk);break}})}const Bk=Mk;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Rk=oo;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ba=(e,t,i)=>typeof i=="function"?i(e,t):typeof i=="string"?e[i]===t[i]:Array.isArray(t)?t.includes(e):e===t,Oo=(e,t,i)=>e===void 0?!1:Array.isArray(e)?e.some(n=>Ba(n,t,i)):Ba(e,t,i),Fk=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color-checked:var(--ion-color-primary, #3880ff)}:host(.legacy-radio){width:0.9375rem;height:1.5rem}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{-webkit-margin-start:0;margin-inline-start:0}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.125rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}@supports (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{inset-inline-start:-9px}}@supports not (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{left:-9px}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}@supports selector(:dir(rtl)){:host(.ion-focused:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-9px}}}:host(.in-item.legacy-radio){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:11px;margin-inline-end:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px;margin-top:8px;margin-bottom:8px}.native-wrapper .radio-icon{width:0.9375rem;height:1.5rem}',jk=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--border-width:0.125rem;--border-style:solid;--border-radius:50%}:host(.legacy-radio){width:1.25rem;height:1.25rem}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}:host(.legacy-radio.radio-disabled),:host(.radio-disabled) .label-text-wrapper{opacity:0.38}:host(.radio-disabled) .native-wrapper{opacity:0.63}:host(.ion-focused.legacy-radio) .radio-icon::after{top:-12px}@supports (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{inset-inline-start:-12px}}@supports not (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{left:-12px}:host-context([dir=rtl]):host(.ion-focused.legacy-radio) .radio-icon::after,:host-context([dir=rtl]).ion-focused.legacy-radio .radio-icon::after{left:unset;right:unset;right:-12px}@supports selector(:dir(rtl)){:host(.ion-focused.legacy-radio:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-12px}}}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host(.in-item.legacy-radio){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:11px;margin-bottom:10px}.native-wrapper .radio-icon{width:1.25rem;height:1.25rem}',Hk=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=L(this,"ionStyle",7),this.ionFocus=L(this,"ionFocus",7),this.ionBlur=L(this,"ionBlur",7),this.inputId="ion-rb-".concat(Vk++),this.radioGroup=null,this.hasLoggedDeprecationWarning=!1,this.updateState=()=>{if(this.radioGroup){const{compareWith:t,value:i}=this.radioGroup;this.checked=Oo(i,this.value,t)}},this.onClick=()=>{const{radioGroup:t,checked:i,disabled:n}=this;if(!n){if(this.legacyFormController.hasLegacyControl()){this.checked=this.nativeInput.checked;return}i&&(t!=null&&t.allowEmptySelection)?this.checked=!1:this.checked=!0}},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.checked=!1,this.buttonTabindex=-1,this.color=void 0,this.name=this.inputId,this.disabled=!1,this.value=void 0,this.labelPlacement="start",this.legacy=void 0,this.justify="space-between",this.alignment="center"}valueChanged(){this.updateState()}async setFocus(t){t.stopPropagation(),t.preventDefault(),this.el.focus()}async setButtonTabindex(t){this.buttonTabindex=t}connectedCallback(){this.legacyFormController=io(this.el),this.value===void 0&&(this.value=this.inputId);const t=this.radioGroup=this.el.closest("ion-radio-group");t&&(this.updateState(),cn(t,"ionValueChange",this.updateState))}disconnectedCallback(){const t=this.radioGroup;t&&(Vn(t,"ionValueChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}styleChanged(){this.emitStyle()}emitStyle(){const t={"interactive-disabled":this.disabled,legacy:!!this.legacy};this.legacyFormController.hasLegacyControl()&&(t["radio-checked"]=this.checked),this.ionStyle.emit(t)}get hasLabel(){return this.el.textContent!==""}renderRadioControl(){return p("div",{class:"radio-icon",part:"container"},p("div",{class:"radio-inner",part:"mark"}),p("div",{class:"radio-ripple"}))}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyRadio():this.renderRadio()}renderRadio(){const{checked:t,disabled:i,color:n,el:o,justify:r,labelPlacement:a,hasLabel:s,buttonTabindex:l,alignment:c}=this,d=F(this),h=wt("ion-item",o);return p(Q,{onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:xt(n,{[d]:!0,"in-item":h,"radio-checked":t,"radio-disabled":i,["radio-justify-".concat(r)]:!0,["radio-alignment-".concat(c)]:!0,["radio-label-placement-".concat(a)]:!0,"ion-activatable":!h,"ion-focusable":!h}),role:"radio","aria-checked":t?"true":"false","aria-disabled":i?"true":null,tabindex:l},p("label",{class:"radio-wrapper"},p("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!s},part:"label"},p("slot",null)),p("div",{class:"native-wrapper"},this.renderRadioControl())))}renderLegacyRadio(){this.hasLoggedDeprecationWarning||(ft('ion-radio now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Option Label\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&ft('ion-radio is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new radio syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{inputId:t,disabled:i,checked:n,color:o,el:r,buttonTabindex:a}=this,s=F(this),{label:l,labelId:c,labelText:d}=Wo(r,t);return p(Q,{"aria-checked":"".concat(n),"aria-hidden":i?"true":null,"aria-labelledby":l?c:null,role:"radio",tabindex:a,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:xt(o,{[s]:!0,"in-item":wt("ion-item",r),interactive:!0,"radio-checked":n,"radio-disabled":i,"legacy-radio":!0})},this.renderRadioControl(),p("label",{htmlFor:t},d),p("input",{type:"radio",checked:n,disabled:i,tabindex:"-1",id:t,ref:h=>this.nativeInput=h}))}get el(){return this}static get watchers(){return{value:["valueChanged"],checked:["styleChanged"],color:["styleChanged"],disabled:["styleChanged"]}}static get style(){return{ios:Fk,md:jk}}},[33,"ion-radio",{color:[513],name:[1],disabled:[4],value:[8],labelPlacement:[1,"label-placement"],legacy:[4],justify:[1],alignment:[1],checked:[32],buttonTabindex:[32],setFocus:[64],setButtonTabindex:[64]},void 0,{value:["valueChanged"],checked:["styleChanged"],color:["styleChanged"],disabled:["styleChanged"]}]);let Vk=0;function Lu(){if(typeof customElements>"u")return;["ion-radio"].forEach(t=>{switch(t){case"ion-radio":customElements.get(t)||customElements.define(t,Hk);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Wk=et(class extends tt{constructor(){super(),this.__registerHost(),this.ionChange=L(this,"ionChange",7),this.ionValueChange=L(this,"ionValueChange",7),this.inputId="ion-rg-".concat(qk++),this.labelId="".concat(this.inputId,"-lbl"),this.setRadioTabindex=t=>{const i=this.getRadios(),n=i.find(a=>!a.disabled),o=i.find(a=>a.value===t&&!a.disabled);if(!n&&!o)return;const r=o||n;for(const a of i){const s=a===r?0:-1;a.setButtonTabindex(s)}},this.onClick=t=>{t.preventDefault();const i=t.target&&t.target.closest("ion-radio");if(i&&i.disabled===!1){const n=this.value,o=i.value;o!==n?(this.value=o,this.emitValueChange(t)):this.allowEmptySelection&&(this.value=void 0,this.emitValueChange(t))}},this.allowEmptySelection=!1,this.compareWith=void 0,this.name=this.inputId,this.value=void 0}valueChanged(t){this.setRadioTabindex(t),this.ionValueChange.emit({value:t})}componentDidLoad(){this.valueChanged(this.value)}async connectedCallback(){const t=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(t){const i=this.label=t.querySelector("ion-label");i&&(this.labelId=i.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}emitValueChange(t){const{value:i}=this;this.ionChange.emit({value:i,event:t})}onKeydown(t){const i=!!this.el.closest("ion-select-popover");if(t.target&&!this.el.contains(t.target))return;const n=this.getRadios().filter(o=>!o.disabled);if(t.target&&n.includes(t.target)){const o=n.findIndex(s=>s===t.target),r=n[o];let a;if(["ArrowDown","ArrowRight"].includes(t.key)&&(a=o===n.length-1?n[0]:n[o+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(a=o===0?n[n.length-1]:n[o-1]),a&&n.includes(a)&&(a.setFocus(t),i||(this.value=a.value,this.emitValueChange(t))),[" "].includes(t.key)){const s=this.value;this.value=this.allowEmptySelection&&this.value!==void 0?void 0:r.value,(s!==this.value||this.allowEmptySelection)&&this.emitValueChange(t),t.preventDefault()}}}render(){const{label:t,labelId:i,el:n,name:o,value:r}=this,a=F(this);return dn(!0,n,o,r,!1),p(Q,{role:"radiogroup","aria-labelledby":t?i:null,onClick:this.onClick,class:a})}get el(){return this}static get watchers(){return{value:["valueChanged"]}}},[0,"ion-radio-group",{allowEmptySelection:[4,"allow-empty-selection"],compareWith:[1,"compare-with"],name:[1],value:[1032]},[[4,"keydown","onKeydown"]],{value:["valueChanged"]}]);let qk=0;function Du(){if(typeof customElements>"u")return;["ion-radio-group"].forEach(t=>{switch(t){case"ion-radio-group":customElements.get(t)||customElements.define(t,Wk);break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Yk=":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}",Nk=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return p(Q,{class:F(this)},p("slot",null))}static get style(){return Yk}},[1,"ion-row"]);function Uk(){if(typeof customElements>"u")return;["ion-row"].forEach(t=>{switch(t){case"ion-row":customElements.get(t)||customElements.define(t,Nk);break}})}const Gk=Uk;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Xk=".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #3880ff);--clear-button-color:var(--ion-color-step-600, #666666);--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;min-height:60px;contain:content}.searchbar-input-container.sc-ion-searchbar-ios{min-height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px);top:0;position:absolute;width:1.375rem;height:100%;contain:strict}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{inset-inline-start:5px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{left:5px}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}[dir=rtl].sc-ion-searchbar-ios .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;right:5px}}}.searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:6px;padding-bottom:6px;height:100%;font-size:1.0625rem;font-weight:400;contain:strict}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem;-webkit-padding-end:1.75rem;padding-inline-end:1.75rem}.searchbar-clear-button.sc-ion-searchbar-ios{top:0;background-position:center;position:absolute;width:1.875rem;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{inset-inline-end:0}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{right:0}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}[dir=rtl].sc-ion-searchbar-ios .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;left:0}}}.searchbar-clear-icon.sc-ion-searchbar-ios{width:1.125rem;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0;background-color:transparent;font-size:16px}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:0;margin-inline-start:0}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.875rem;padding-inline-start:1.875rem}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-transition:all 300ms ease;transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-margin-end:-100%;margin-inline-end:-100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:all 300ms ease;transition:all 300ms ease;opacity:0;pointer-events:none}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-transition-duration:0ms;transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;min-height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}",Kk=".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, #1a1a1a);--clear-button-color:initial;--color:var(--ion-color-step-850, #262626);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;background:inherit}.searchbar-search-icon.sc-ion-searchbar-md{top:11px;width:1.3125rem;height:1.3125rem}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{inset-inline-start:16px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{left:16px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}[dir=rtl].sc-ion-searchbar-md .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:16px}}}.searchbar-cancel-button.sc-ion-searchbar-md{top:0;background-color:transparent;font-size:1.5em}@supports (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{inset-inline-start:9px}}@supports not (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{left:9px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}[dir=rtl].sc-ion-searchbar-md .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}@supports selector(:dir(rtl)){.searchbar-cancel-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:9px}}}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{-webkit-padding-start:3.4375rem;padding-inline-start:3.4375rem;-webkit-padding-end:3.4375rem;padding-inline-end:3.4375rem;padding-top:0.375rem;padding-bottom:0.375rem;background-position:left 8px center;height:auto;font-size:1rem;font-weight:400;line-height:30px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}@supports selector(:dir(rtl)){.searchbar-input.sc-ion-searchbar-md:dir(rtl){background-position:right 8px center}}.searchbar-clear-button.sc-ion-searchbar-md{top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{inset-inline-end:13px}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{right:13px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}[dir=rtl].sc-ion-searchbar-md .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;left:13px}}}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:1.375rem;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:3px;padding-bottom:3px}",Zk=et(class extends tt{constructor(){super(),this.__registerHost(),this.ionInput=L(this,"ionInput",7),this.ionChange=L(this,"ionChange",7),this.ionCancel=L(this,"ionCancel",7),this.ionClear=L(this,"ionClear",7),this.ionBlur=L(this,"ionBlur",7),this.ionFocus=L(this,"ionFocus",7),this.ionStyle=L(this,"ionStyle",7),this.isCancelVisible=!1,this.shouldAlignLeft=!0,this.inputId="ion-searchbar-".concat(Qk++),this.onClearInput=async t=>(this.ionClear.emit(),new Promise(i=>{setTimeout(()=>{const n=this.getValue();n!==""&&(this.value="",this.emitInputChange(),t&&!this.focused&&(this.setFocus(),this.focusedValue=n)),i()},16*4)})),this.onCancelSearchbar=async t=>{t&&(t.preventDefault(),t.stopPropagation()),this.ionCancel.emit();const i=this.getValue(),n=this.focused;await this.onClearInput(),i&&!n&&this.emitValueChange(t),this.nativeInput&&this.nativeInput.blur()},this.onInput=t=>{const i=t.target;i&&(this.value=i.value),this.emitInputChange(t)},this.onChange=t=>{this.emitValueChange(t)},this.onBlur=t=>{this.focused=!1,this.ionBlur.emit(),this.positionElements(),this.focusedValue!==this.value&&this.emitValueChange(t),this.focusedValue=void 0},this.onFocus=()=>{this.focused=!0,this.focusedValue=this.value,this.ionFocus.emit(),this.positionElements()},this.focused=!1,this.noAnimate=!0,this.color=void 0,this.animated=!1,this.autocomplete="off",this.autocorrect="off",this.cancelButtonIcon=pt.get("backButtonIcon",Ah),this.cancelButtonText="Cancel",this.clearIcon=void 0,this.debounce=void 0,this.disabled=!1,this.inputmode=void 0,this.enterkeyhint=void 0,this.name=this.inputId,this.placeholder="Search",this.searchIcon=void 0,this.showCancelButton="never",this.showClearButton="always",this.spellcheck=!1,this.type="search",this.value=""}debounceChanged(){const{ionInput:t,debounce:i,originalIonInput:n}=this;this.ionInput=i===void 0?n!=null?n:t:fs(t,i)}valueChanged(){const t=this.nativeInput,i=this.getValue();t&&t.value!==i&&(t.value=i)}showCancelButtonChanged(){requestAnimationFrame(()=>{this.positionElements(),ue(this)})}connectedCallback(){this.emitStyle()}componentDidLoad(){this.originalIonInput=this.ionInput,this.positionElements(),this.debounceChanged(),setTimeout(()=>{this.noAnimate=!1},300)}emitStyle(){this.ionStyle.emit({searchbar:!0})}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async getInputElement(){return this.nativeInput||await new Promise(t=>Re(this.el,t)),Promise.resolve(this.nativeInput)}emitValueChange(t){const{value:i}=this,n=i==null?i:i.toString();this.focusedValue=n,this.ionChange.emit({value:n,event:t})}emitInputChange(t){const{value:i}=this;this.ionInput.emit({value:i,event:t})}positionElements(){const t=this.getValue(),i=this.shouldAlignLeft,n=F(this),o=!this.animated||t.trim()!==""||!!this.focused;this.shouldAlignLeft=o,n==="ios"&&(i!==o&&this.positionPlaceholder(),this.animated&&this.positionCancelButton())}positionPlaceholder(){const t=this.nativeInput;if(!t)return;const i=Le(this.el),n=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft)t.removeAttribute("style"),n.removeAttribute("style");else{const o=document,r=o.createElement("span");r.innerText=this.placeholder||"",o.body.appendChild(r),gt(()=>{const a=r.offsetWidth;r.remove();const s="calc(50% - "+a/2+"px)",l="calc(50% - "+(a/2+n.clientWidth+8)+"px)";i?(t.style.paddingRight=s,n.style.marginRight=l):(t.style.paddingLeft=s,n.style.marginLeft=l)})}}positionCancelButton(){const t=Le(this.el),i=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button"),n=this.shouldShowCancelButton();if(i!==null&&n!==this.isCancelVisible){const o=i.style;if(this.isCancelVisible=n,n)t?o.marginLeft="0":o.marginRight="0";else{const r=i.offsetWidth;r>0&&(t?o.marginLeft=-r+"px":o.marginRight=-r+"px")}}}getValue(){return this.value||""}hasValue(){return this.getValue()!==""}shouldShowCancelButton(){return!(this.showCancelButton==="never"||this.showCancelButton==="focus"&&!this.focused)}shouldShowClearButton(){return!(this.showClearButton==="never"||this.showClearButton==="focus"&&!this.focused)}render(){const{cancelButtonText:t}=this,i=this.animated&&pt.getBoolean("animated",!0),n=F(this),o=this.clearIcon||(n==="ios"?Ea:Sa),r=this.searchIcon||(n==="ios"?o0:r0),a=this.shouldShowCancelButton(),s=this.showCancelButton!=="never"&&p("button",{"aria-label":t,"aria-hidden":a?void 0:"true",type:"button",tabIndex:n==="ios"&&!a?-1:void 0,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},p("div",{"aria-hidden":"true"},n==="md"?p("ion-icon",{"aria-hidden":"true",mode:n,icon:this.cancelButtonIcon,lazy:!1}):t));return p(Q,{role:"search","aria-disabled":this.disabled?"true":null,class:xt(this.color,{[n]:!0,"searchbar-animated":i,"searchbar-disabled":this.disabled,"searchbar-no-animate":i&&this.noAnimate,"searchbar-has-value":this.hasValue(),"searchbar-left-aligned":this.shouldAlignLeft,"searchbar-has-focus":this.focused,"searchbar-should-show-clear":this.shouldShowClearButton(),"searchbar-should-show-cancel":this.shouldShowCancelButton()})},p("div",{class:"searchbar-input-container"},p("input",{"aria-label":"search text",disabled:this.disabled,ref:l=>this.nativeInput=l,class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,name:this.name,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck}),n==="md"&&s,p("ion-icon",{"aria-hidden":"true",mode:n,icon:r,lazy:!1,class:"searchbar-search-icon"}),p("button",{"aria-label":"reset",type:"button","no-blur":!0,class:"searchbar-clear-button",onPointerDown:l=>{l.preventDefault()},onClick:()=>this.onClearInput(!0)},p("ion-icon",{"aria-hidden":"true",mode:n,icon:o,lazy:!1,class:"searchbar-clear-icon"}))),n==="ios"&&s)}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}}static get style(){return{ios:Xk,md:Kk}}},[34,"ion-searchbar",{color:[513],animated:[4],autocomplete:[1],autocorrect:[1],cancelButtonIcon:[1,"cancel-button-icon"],cancelButtonText:[1,"cancel-button-text"],clearIcon:[1,"clear-icon"],debounce:[2],disabled:[4],inputmode:[1],enterkeyhint:[1],name:[1],placeholder:[1],searchIcon:[1,"search-icon"],showCancelButton:[1,"show-cancel-button"],showClearButton:[1,"show-clear-button"],spellcheck:[4],type:[1],value:[1025],focused:[32],noAnimate:[32],setFocus:[64],getInputElement:[64]},void 0,{debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}]);let Qk=0;function Jk(){if(typeof customElements>"u")return;["ion-searchbar","ion-icon"].forEach(t=>{switch(t){case"ion-searchbar":customElements.get(t)||customElements.define(t,Zk);break;case"ion-icon":customElements.get(t)||ve();break}})}const t2=Jk,e2=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.065);border-radius:8px;overflow:hidden;z-index:0}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.065)}:host(.in-toolbar){-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:auto}:host(.in-toolbar:not(.ion-color)){background:var(--ion-toolbar-segment-background, var(--background))}:host(.in-toolbar-color:not(.ion-color)){background:rgba(var(--ion-color-contrast-rgb), 0.11)}",i2=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:transparent;grid-auto-columns:minmax(auto, 360px)}:host(.in-toolbar){min-height:var(--min-height)}:host(.segment-scrollable) ::slotted(ion-segment-button){min-width:auto}",n2=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=L(this,"ionChange",7),this.ionSelect=L(this,"ionSelect",7),this.ionStyle=L(this,"ionStyle",7),this.onClick=t=>{const i=t.target,n=this.checked;i.tagName!=="ION-SEGMENT"&&(this.value=i.value,i!==n&&this.emitValueChange(),(this.scrollable||!this.swipeGesture)&&(n?this.checkButton(n,i):this.setCheckedClasses()))},this.getSegmentButton=t=>{var i,n;const o=this.getButtons().filter(a=>!a.disabled),r=o.findIndex(a=>a===document.activeElement);switch(t){case"first":return o[0];case"last":return o[o.length-1];case"next":return(i=o[r+1])!==null&&i!==void 0?i:o[0];case"previous":return(n=o[r-1])!==null&&n!==void 0?n:o[o.length-1];default:return null}},this.activated=!1,this.color=void 0,this.disabled=!1,this.scrollable=!1,this.swipeGesture=!0,this.value=void 0,this.selectOnFocus=!1}colorChanged(t,i){(i===void 0&&t!==void 0||i!==void 0&&t===void 0)&&this.emitStyle()}swipeGestureChanged(){this.gestureChanged()}valueChanged(t){this.ionSelect.emit({value:t}),this.scrollActiveButtonIntoView()}disabledChanged(){this.gestureChanged();const t=this.getButtons();for(const i of t)i.disabled=this.disabled}gestureChanged(){this.gesture&&this.gesture.enable(!this.scrollable&&!this.disabled&&this.swipeGesture)}connectedCallback(){this.emitStyle()}componentWillLoad(){this.emitStyle()}async componentDidLoad(){this.setCheckedClasses(),gt(()=>{this.scrollActiveButtonIntoView(!1)}),this.gesture=(await ut(()=>Promise.resolve().then(()=>Ds),void 0)).createGesture({el:this.el,gestureName:"segment",gesturePriority:100,threshold:0,passive:!1,onStart:t=>this.onStart(t),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.gestureChanged(),this.disabled&&this.disabledChanged()}onStart(t){this.valueBeforeGesture=this.value,this.activate(t)}onMove(t){this.setNextIndex(t)}onEnd(t){this.setActivated(!1),this.setNextIndex(t,!0),t.event.stopImmediatePropagation();const i=this.value;i!==void 0&&this.valueBeforeGesture!==i&&this.emitValueChange(),this.valueBeforeGesture=void 0}emitValueChange(){const{value:t}=this;this.ionChange.emit({value:t})}getButtons(){return Array.from(this.el.querySelectorAll("ion-segment-button"))}get checked(){return this.getButtons().find(t=>t.value===this.value)}setActivated(t){this.getButtons().forEach(n=>{t?n.classList.add("segment-button-activated"):n.classList.remove("segment-button-activated")}),this.activated=t}activate(t){const i=t.event.target,o=this.getButtons().find(r=>r.value===this.value);i.tagName==="ION-SEGMENT-BUTTON"&&(o||(this.value=i.value,this.setCheckedClasses()),this.value===i.value&&this.setActivated(!0))}getIndicator(t){return(t.shadowRoot||t).querySelector(".segment-button-indicator")}checkButton(t,i){const n=this.getIndicator(t),o=this.getIndicator(i);if(n===null||o===null)return;const r=n.getBoundingClientRect(),a=o.getBoundingClientRect(),s=r.width/a.width,l=r.left-a.left,c="translate3d(".concat(l,"px, 0, 0) scaleX(").concat(s,")");Yt(()=>{o.classList.remove("segment-button-indicator-animated"),o.style.setProperty("transform",c),o.getBoundingClientRect(),o.classList.add("segment-button-indicator-animated"),o.style.setProperty("transform","")}),this.value=i.value,this.setCheckedClasses()}setCheckedClasses(){const t=this.getButtons(),n=t.findIndex(o=>o.value===this.value)+1;for(const o of t)o.classList.remove("segment-button-after-checked");ns.value===n);if(a!==void 0){const s=o.getBoundingClientRect(),l=a.getBoundingClientRect(),d=l.x-s.x-s.width/2+l.width/2;o.scrollBy({top:0,left:d,behavior:t?"smooth":"instant"})}}}setNextIndex(t,i=!1){const n=Le(this.el),o=this.activated,r=this.getButtons(),a=r.findIndex(I=>I.value===this.value),s=r[a];let l,c;if(a===-1)return;const d=s.getBoundingClientRect(),h=d.left,u=d.width,m=t.currentX,g=d.top+d.height/2,k=this.el.getRootNode().elementFromPoint(m,g),x=n?m>h+u:mh+u;if(o&&!i){if(x){const I=a-1;I>=0&&(c=I)}else if(C&&o&&!i){const I=a+1;I"u")return;["ion-segment"].forEach(t=>{switch(t){case"ion-segment":customElements.get(t)||customElements.define(t,n2);break}})}const r2=o2;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const a2=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;-ms-flex-direction:row;flex-direction:row;min-width:70px;min-height:28px;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;-webkit-transition:160ms opacity ease-in-out;transition:160ms opacity ease-in-out;-webkit-transition-delay:100ms;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}.segment-button-indicator{-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;left:0;right:0;top:0;bottom:0}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:var(--ion-color-contrast)}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}',s2=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}';let l2=0;const c2=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.segmentEl=null,this.inheritedAttributes={},this.updateStyle=()=>{ue(this)},this.updateState=()=>{const{segmentEl:t}=this;t&&(this.checked=t.value===this.value,t.disabled&&(this.disabled=!0))},this.checked=!1,this.disabled=!1,this.layout="icon-top",this.type="button",this.value="ion-sb-"+l2++}valueChanged(){this.updateState()}connectedCallback(){const t=this.segmentEl=this.el.closest("ion-segment");t&&(this.updateState(),cn(t,"ionSelect",this.updateState),cn(t,"ionStyle",this.updateStyle))}disconnectedCallback(){const t=this.segmentEl;t&&(Vn(t,"ionSelect",this.updateState),Vn(t,"ionStyle",this.updateStyle),this.segmentEl=null)}componentWillLoad(){this.inheritedAttributes=Object.assign({},ci(this.el,["aria-label"]))}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}async setFocus(){const{nativeEl:t}=this;t!==void 0&&t.focus()}render(){const{checked:t,type:i,disabled:n,hasIcon:o,hasLabel:r,layout:a,segmentEl:s}=this,l=F(this),c=()=>(s==null?void 0:s.color)!==void 0;return p(Q,{class:{[l]:!0,"in-toolbar":wt("ion-toolbar",this.el),"in-toolbar-color":wt("ion-toolbar[color]",this.el),"in-segment":wt("ion-segment",this.el),"in-segment-color":c(),"segment-button-has-label":r,"segment-button-has-icon":o,"segment-button-has-label-only":r&&!o,"segment-button-has-icon-only":o&&!r,"segment-button-disabled":n,"segment-button-checked":t,["segment-button-layout-".concat(a)]:!0,"ion-activatable":!0,"ion-activatable-instant":!0,"ion-focusable":!0}},p("button",Object.assign({"aria-selected":t?"true":"false",role:"tab",ref:d=>this.nativeEl=d,type:i,class:"button-native",part:"native",disabled:n},this.inheritedAttributes),p("span",{class:"button-inner"},p("slot",null)),l==="md"&&p("ion-ripple-effect",null)),p("div",{part:"indicator",class:{"segment-button-indicator":!0,"segment-button-indicator-animated":!0}},p("div",{part:"indicator-background",class:"segment-button-indicator-background"})))}get el(){return this}static get watchers(){return{value:["valueChanged"]}}static get style(){return{ios:a2,md:s2}}},[33,"ion-segment-button",{disabled:[1028],layout:[1],type:[1],value:[8],checked:[32],setFocus:[64]},void 0,{value:["valueChanged"]}]);function d2(){if(typeof customElements>"u")return;["ion-segment-button","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-segment-button":customElements.get(t)||customElements.define(t,c2);break;case"ion-ripple-effect":customElements.get(t)||se();break}})}const h2=d2;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const pi=(e,t,i,n)=>{const o=u2(e)?{capture:!!n.capture,passive:!!n.passive}:!!n.capture;let r,a;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(r="addEventListener",a="removeEventListener"),e[r](t,i,o),()=>{e[a](t,i,o)}},u2=e=>{if(So===void 0)try{const t=Object.defineProperty({},"passive",{get:()=>{So=!0}});e.addEventListener("optsTest",()=>{},t)}catch(t){So=!1}return!!So};let So;const p2=2e3,m2=(e,t,i,n,o)=>{let r,a,s,l,c,d,h,u=0;const m=E=>{u=Date.now()+p2,t(E)&&(!a&&i&&(a=pi(e,"touchmove",i,o)),s||(s=pi(E.target,"touchend",f,o)),l||(l=pi(E.target,"touchcancel",f,o)))},g=E=>{u>Date.now()||t(E)&&(!d&&i&&(d=pi(Oc(e),"mousemove",i,o)),h||(h=pi(Oc(e),"mouseup",k,o)))},f=E=>{x(),n&&n(E)},k=E=>{C(),n&&n(E)},x=()=>{a&&a(),s&&s(),l&&l(),a=s=l=void 0},C=()=>{d&&d(),h&&h(),d=h=void 0},I=()=>{x(),C()},v=(E=!0)=>{E?(r||(r=pi(e,"touchstart",m,o)),c||(c=pi(e,"mousedown",g,o))):(r&&r(),c&&c(),r=c=void 0,I())};return{enable:v,stop:I,destroy:()=>{v(!1),n=i=t=void 0}}},Oc=e=>e instanceof Document?e:e.ownerDocument,f2=(e,t,i)=>{const n=i*(Math.PI/180),o=e==="x",r=Math.cos(n),a=t*t;let s=0,l=0,c=!1,d=0;return{start(h,u){s=h,l=u,d=0,c=!0},detect(h,u){if(!c)return!1;const m=h-s,g=u-l,f=m*m+g*g;if(fr?d=1:x<-r?d=-1:d=0,c=!1,!0},isGesture(){return d!==0},getDirection(){return d}}},co=e=>{let t=!1,i=!1,n=!0,o=!1;const r=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),a=r.canStart,s=r.onWillStart,l=r.onStart,c=r.onEnd,d=r.notCaptured,h=r.onMove,u=r.threshold,m=r.passive,g=r.blurOnStart,f={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},k=f2(r.direction,r.threshold,r.maxAngle),x=xr.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),C=U=>{const j=Mu(U);return i||!n||(Pu(U,f),f.startX=f.currentX,f.startY=f.currentY,f.startTime=f.currentTime=j,f.velocityX=f.velocityY=f.deltaX=f.deltaY=0,f.event=U,a&&a(f)===!1)||(x.release(),!x.start())?!1:(i=!0,u===0?S():(k.start(f.startX,f.startY),!0))},I=U=>{if(t){!o&&n&&(o=!0,Ur(f,U),requestAnimationFrame(v));return}Ur(f,U),k.detect(f.currentX,f.currentY)&&(!k.isGesture()||!S())&&T()},v=()=>{t&&(o=!1,h&&h(f))},S=()=>x.capture()?(t=!0,n=!1,f.startX=f.currentX,f.startY=f.currentY,f.startTime=f.currentTime,s?s(f).then(y):y(),!0):!1,E=()=>{if(typeof document<"u"){const U=document.activeElement;U!=null&&U.blur&&U.blur()}},y=()=>{g&&E(),l&&l(f),n=!0},A=()=>{t=!1,i=!1,o=!1,n=!0,x.release()},$=U=>{const j=t,ht=n;if(A(),!!ht){if(Ur(f,U),j){c&&c(f);return}d&&d(f)}},M=m2(r.el,C,I,$,{capture:!1,passive:m}),T=()=>{A(),M.stop(),d&&d(f)};return{enable(U=!0){U||(t&&$(void 0),A()),M.enable(U)},destroy(){x.destroy(),M.destroy()}}},Ur=(e,t)=>{if(!t)return;const i=e.currentX,n=e.currentY,o=e.currentTime;Pu(t,e);const r=e.currentX,a=e.currentY,l=(e.currentTime=Mu(t))-o;if(l>0&&l<100){const c=(r-i)/l,d=(a-n)/l;e.velocityX=c*.7+e.velocityX*.3,e.velocityY=d*.7+e.velocityY*.3}e.deltaX=r-e.startX,e.deltaY=a-e.startY,e.event=t},Pu=(e,t)=>{let i=0,n=0;if(e){const o=e.changedTouches;if(o&&o.length>0){const r=o[0];i=r.clientX,n=r.clientY}else e.pageX!==void 0&&(i=e.pageX,n=e.pageY)}t.currentX=i,t.currentY=n},Mu=e=>e.timeStamp||Date.now(),Ds=Object.freeze(Object.defineProperty({__proto__:null,GESTURE_CONTROLLER:xr,createGesture:co},Symbol.toStringTag,{value:"Module"}));/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Bu=(e,t)=>{let i,n;const o=(s,l,c)=>{if(typeof document>"u")return;const d=document.elementFromPoint(s,l);if(!d||!t(d)){a();return}d!==i&&(a(),r(d,c))},r=(s,l)=>{i=s,n||(n=i);const c=i;Yt(()=>c.classList.add("ion-activated")),l()},a=(s=!1)=>{if(!i)return;const l=i;Yt(()=>l.classList.remove("ion-activated")),s&&n!==i&&i.click(),i=void 0};return co({el:e,gestureName:"buttonActiveDrag",threshold:0,onStart:s=>o(s.currentX,s.currentY,Zh),onMove:s=>o(s.currentX,s.currentY,Qh),onEnd:()=>{a(!0),Jh(),n=void 0}})};/*! + * (C) Ionic http://ionicframework.com - MIT License + */const g2=e=>{const t=N(),i=N(),n=N();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),n.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,n])},b2=e=>{const t=N(),i=N(),n=N();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),n.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([i,n])},x2=e=>{const t=N(),i=N(),n=N();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),n.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,n])},v2=e=>{const t=N(),i=N(),n=N();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),n.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([i,n])},w2='.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}.action-sheet-container.sc-ion-action-sheet-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:max(13px, 0.8125rem);font-weight:400;text-align:center}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:max(13px, 0.8125rem);font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:14px;padding-bottom:14px;min-height:56px;font-size:max(20px, 1.25rem);contain:content}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:max(28px, 1.75rem);pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',y2='.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}.action-sheet-title.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:1rem;text-align:start}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:0.875rem}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;position:relative;min-height:52px;font-size:1rem;text-align:start;contain:content;overflow:hidden}.action-sheet-icon.sc-ion-action-sheet-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:1.5rem}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}',k2=et(class extends tt{constructor(){super(),this.__registerHost(),this.didPresent=L(this,"ionActionSheetDidPresent",7),this.willPresent=L(this,"ionActionSheetWillPresent",7),this.willDismiss=L(this,"ionActionSheetWillDismiss",7),this.didDismiss=L(this,"ionActionSheetDidDismiss",7),this.didPresentShorthand=L(this,"didPresent",7),this.willPresentShorthand=L(this,"willPresent",7),this.willDismissShorthand=L(this,"willDismiss",7),this.didDismissShorthand=L(this,"didDismiss",7),this.delegateController=Ss(this),this.lockController=xn(),this.triggerController=Er(),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,zi)},this.dispatchCancelHandler=t=>{const i=t.detail.role;if(Ii(i)){const n=this.getButtons().find(o=>o.role==="cancel");this.callButtonHandler(n)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.buttons=[],this.cssClass=void 0,this.backdropDismiss=!0,this.header=void 0,this.subHeader=void 0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,i){t===!0&&i===!1?this.present():t===!1&&i===!0&&this.dismiss()}triggerChanged(){const{trigger:t,el:i,triggerController:n}=this;t&&n.addClickListener(i,t)}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom(),await so(this,"actionSheetEnter",g2,x2),t()}async dismiss(t,i){const n=await this.lockController.lock(),o=await lo(this,t,i,"actionSheetLeave",b2,v2);return o&&this.delegateController.removeViewFromDom(),n(),o}onDidDismiss(){return Fe(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return Fe(this.el,"ionActionSheetWillDismiss")}async buttonClick(t){const i=t.role;return Ii(i)?this.dismiss(t.data,i):await this.callButtonHandler(t)?this.dismiss(t.data,t.role):Promise.resolve()}async callButtonHandler(t){return!(t&&await Qi(t.handler)===!1)}getButtons(){return this.buttons.map(t=>typeof t=="string"?{text:t}:t)}connectedCallback(){ro(this.el),this.triggerChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.triggerController.removeClickListener()}componentWillLoad(){ao(this.el)}componentDidLoad(){const{groupEl:t,wrapperEl:i}=this;!this.gesture&&F(this)==="ios"&&i&&t&&ln(()=>{t.scrollHeight>t.clientHeight||(this.gesture=Bu(i,o=>o.classList.contains("action-sheet-button")),this.gesture.enable(!0))}),this.isOpen===!0&>(()=>this.present()),this.triggerChanged()}render(){const{header:t,htmlAttributes:i,overlayIndex:n}=this,o=F(this),r=this.getButtons(),a=r.find(c=>c.role==="cancel"),s=r.filter(c=>c.role!=="cancel"),l="action-sheet-".concat(n,"-header");return p(Q,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":t!==void 0?l:null,tabindex:"-1"},i,{style:{zIndex:"".concat(2e4+this.overlayIndex)},class:Object.assign(Object.assign({[o]:!0},ne(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),p("ion-backdrop",{tappable:this.backdropDismiss}),p("div",{tabindex:"0"}),p("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:c=>this.wrapperEl=c},p("div",{class:"action-sheet-container"},p("div",{class:"action-sheet-group",ref:c=>this.groupEl=c},t!==void 0&&p("div",{id:l,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":this.subHeader!==void 0}},t,this.subHeader&&p("div",{class:"action-sheet-sub-title"},this.subHeader)),s.map(c=>p("button",Object.assign({},c.htmlAttributes,{type:"button",id:c.id,class:$c(c),onClick:()=>this.buttonClick(c)}),p("span",{class:"action-sheet-button-inner"},c.icon&&p("ion-icon",{icon:c.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),c.text),o==="md"&&p("ion-ripple-effect",null)))),a&&p("div",{class:"action-sheet-group action-sheet-group-cancel"},p("button",Object.assign({},a.htmlAttributes,{type:"button",class:$c(a),onClick:()=>this.buttonClick(a)}),p("span",{class:"action-sheet-button-inner"},a.icon&&p("ion-icon",{icon:a.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),a.text),o==="md"&&p("ion-ripple-effect",null))))),p("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:w2,md:y2}}},[34,"ion-action-sheet",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],buttons:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],header:[1],subHeader:[1,"sub-header"],translucent:[4],animated:[4],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),$c=e=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,["action-sheet-".concat(e.role)]:e.role!==void 0},ne(e.cssClass));function Ru(){if(typeof customElements>"u")return;["ion-action-sheet","ion-backdrop","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-action-sheet":customElements.get(t)||customElements.define(t,k2);break;case"ion-backdrop":customElements.get(t)||$i();break;case"ion-icon":customElements.get(t)||ve();break;case"ion-ripple-effect":customElements.get(t)||se();break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const C2=e=>{const t=N(),i=N(),n=N();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),n.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([i,n])},E2=e=>{const t=N(),i=N(),n=N();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),n.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([i,n])},S2=e=>{const t=N(),i=N(),n=N();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),n.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(150).addAnimation([i,n])},A2=e=>{const t=N(),i=N(),n=N();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),n.addElement(e.querySelector(".alert-wrapper")).fromTo("opacity",.99,0),t.addElement(e).easing("ease-in-out").duration(150).addAnimation([i,n])},I2=".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-ios,.alert-radio-label.sc-ion-alert-ios{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:clamp(270px, 16.875rem, 324px);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:max(14px, 0.875rem)}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:7px;text-align:center}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:max(17px, 1.0625rem);font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:max(14px, 0.875rem)}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:max(13px, 0.8125rem);text-align:center}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-input.sc-ion-alert-ios::-webkit-date-and-time-value{height:18px}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{-ms-scroll-chaining:none;overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{min-height:44px}.alert-radio-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;-ms-flex-order:0;order:0;color:var(--ion-text-color, #000)}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;-ms-flex-order:1;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{top:-7px;position:absolute;width:6px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{inset-inline-start:7px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:7px}}}.alert-checkbox-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-text-color, #000)}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px;margin-top:10px;margin-bottom:10px;position:relative;width:min(1.5rem, 66px);height:min(1.5rem, 66px);border-width:0.0625rem;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{top:calc(min(1.5rem, 66px) / 6);position:absolute;width:calc(min(1.5rem, 66px) / 6 + 1px);height:calc(min(1.5rem, 66px) * 0.5);-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.0625rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{inset-inline-start:calc(min(1.5rem, 66px) / 3 + 1px)}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}}}.alert-button-group.sc-ion-alert-ios{-webkit-margin-end:-0.55px;margin-inline-end:-0.55px;-ms-flex-wrap:wrap;flex-wrap:wrap}.alert-button.sc-ion-alert-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;-ms-flex:1 1 auto;flex:1 1 auto;min-width:50%;height:max(44px, 2.75rem);border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:max(17px, 1.0625rem);overflow:hidden}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child{border-right:0}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:first-child:dir(rtl){border-right:0}}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:last-child:dir(rtl){border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}",z2=".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-md,.alert-radio-label.sc-ion-alert-md{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:0.875rem}.alert-wrapper.sc-ion-alert-md{border-radius:4px;-webkit-box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px;padding-top:20px;padding-bottom:15px;text-align:start}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1.25rem;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1rem}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}.alert-message.sc-ion-alert-md{font-size:1rem}@media screen and (max-width: 767px){.alert-message.sc-ion-alert-md{max-height:266px}}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}@media screen and (max-width: 767px){.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{max-height:266px}}.alert-tappable.sc-ion-alert-md{position:relative;min-height:48px}.alert-radio-label.sc-ion-alert-md{-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-radio-icon.sc-ion-alert-md{top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}@supports (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-radio-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}.alert-radio-inner.sc-ion-alert-md{top:3px;border-radius:50%;position:absolute;width:10px;height:10px;-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.alert-radio-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;width:calc(100% - 53px);color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-checkbox-icon.sc-ion-alert-md{top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}@supports (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-checkbox-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{top:0;position:absolute;width:6px;height:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}.alert-button-group.sc-ion-alert-md{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}.alert-button.sc-ion-alert-md{border-radius:2px;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:0;margin-bottom:0;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}.alert-button-inner.sc-ion-alert-md{-ms-flex-pack:end;justify-content:flex-end}@media screen and (min-width: 768px){.sc-ion-alert-md-h{--max-width:min(100vw - 96px, 560px);--max-height:min(100vh - 96px, 560px)}}",_2=et(class extends tt{constructor(){super(),this.__registerHost(),this.didPresent=L(this,"ionAlertDidPresent",7),this.willPresent=L(this,"ionAlertWillPresent",7),this.willDismiss=L(this,"ionAlertWillDismiss",7),this.didDismiss=L(this,"ionAlertDidDismiss",7),this.didPresentShorthand=L(this,"didPresent",7),this.willPresentShorthand=L(this,"willPresent",7),this.willDismissShorthand=L(this,"willDismiss",7),this.didDismissShorthand=L(this,"didDismiss",7),this.delegateController=Ss(this),this.lockController=xn(),this.triggerController=Er(),this.customHTMLEnabled=pt.get("innerHTMLTemplatesEnabled",Au),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,zi)},this.dispatchCancelHandler=t=>{const i=t.detail.role;if(Ii(i)){const n=this.processedButtons.find(o=>o.role==="cancel");this.callButtonHandler(n)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.header=void 0,this.subHeader=void 0,this.message=void 0,this.buttons=[],this.inputs=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,i){t===!0&&i===!1?this.present():t===!1&&i===!0&&this.dismiss()}triggerChanged(){const{trigger:t,el:i,triggerController:n}=this;t&&n.addClickListener(i,t)}onKeydown(t){const i=new Set(this.processedInputs.map(s=>s.type));if(i.has("checkbox")&&t.key==="Enter"){t.preventDefault();return}if(!i.has("radio")||t.target&&!this.el.contains(t.target)||t.target.classList.contains("alert-button"))return;const n=this.el.querySelectorAll(".alert-radio"),o=Array.from(n).filter(s=>!s.disabled),r=o.findIndex(s=>s.id===t.target.id);let a;if(["ArrowDown","ArrowRight"].includes(t.key)&&(a=r===o.length-1?o[0]:o[r+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(a=r===0?o[o.length-1]:o[r-1]),a&&o.includes(a)){const s=this.processedInputs.find(l=>l.id===(a==null?void 0:a.id));s&&(this.rbClick(s),a.focus())}}buttonsChanged(){const t=this.buttons;this.processedButtons=t.map(i=>typeof i=="string"?{text:i,role:i.toLowerCase()==="cancel"?"cancel":void 0}:i)}inputsChanged(){const t=this.inputs,i=t.find(a=>!a.disabled),o=t.find(a=>a.checked&&!a.disabled)||i,r=new Set(t.map(a=>a.type));r.has("checkbox")&&r.has("radio")&&console.warn("Alert cannot mix input types: ".concat(Array.from(r.values()).join("/"),". Please see alert docs for more info.")),this.inputType=r.values().next().value,this.processedInputs=t.map((a,s)=>{var l;return{type:a.type||"text",name:a.name||"".concat(s),placeholder:a.placeholder||"",value:a.value,label:a.label,checked:!!a.checked,disabled:!!a.disabled,id:a.id||"alert-input-".concat(this.overlayIndex,"-").concat(s),handler:a.handler,min:a.min,max:a.max,cssClass:(l=a.cssClass)!==null&&l!==void 0?l:"",attributes:a.attributes||{},tabindex:a.type==="radio"&&a!==o?-1:0}})}connectedCallback(){ro(this.el),this.triggerChanged()}componentWillLoad(){ao(this.el),this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.triggerController.removeClickListener(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){!this.gesture&&F(this)==="ios"&&this.wrapperEl&&(this.gesture=Bu(this.wrapperEl,t=>t.classList.contains("alert-button")),this.gesture.enable(!0)),this.isOpen===!0&>(()=>this.present()),this.triggerChanged()}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom(),await so(this,"alertEnter",C2,S2),t()}async dismiss(t,i){const n=await this.lockController.lock(),o=await lo(this,t,i,"alertLeave",E2,A2);return o&&this.delegateController.removeViewFromDom(),n(),o}onDidDismiss(){return Fe(this.el,"ionAlertDidDismiss")}onWillDismiss(){return Fe(this.el,"ionAlertWillDismiss")}rbClick(t){for(const i of this.processedInputs)i.checked=i===t,i.tabindex=i===t?0:-1;this.activeId=t.id,Qi(t.handler,t),ue(this)}cbClick(t){t.checked=!t.checked,Qi(t.handler,t),ue(this)}async buttonClick(t){const i=t.role,n=this.getValues();if(Ii(i))return this.dismiss({values:n},i);const o=await this.callButtonHandler(t,n);return o!==!1?this.dismiss(Object.assign({values:n},o),t.role):!1}async callButtonHandler(t,i){if(t!=null&&t.handler){const n=await Qi(t.handler,i);if(n===!1)return!1;if(typeof n=="object")return n}return{}}getValues(){if(this.processedInputs.length===0)return;if(this.inputType==="radio"){const i=this.processedInputs.find(n=>!!n.checked);return i?i.value:void 0}if(this.inputType==="checkbox")return this.processedInputs.filter(i=>i.checked).map(i=>i.value);const t={};return this.processedInputs.forEach(i=>{t[i.name]=i.value||""}),t}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const t=this.processedInputs,i=F(this);return t.length===0?null:p("div",{class:"alert-checkbox-group"},t.map(n=>p("button",{type:"button",onClick:()=>this.cbClick(n),"aria-checked":"".concat(n.checked),id:n.id,disabled:n.disabled,tabIndex:n.tabindex,role:"checkbox",class:Object.assign(Object.assign({},ne(n.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":n.disabled||!1})},p("div",{class:"alert-button-inner"},p("div",{class:"alert-checkbox-icon"},p("div",{class:"alert-checkbox-inner"})),p("div",{class:"alert-checkbox-label"},n.label)),i==="md"&&p("ion-ripple-effect",null))))}renderRadio(){const t=this.processedInputs;return t.length===0?null:p("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},t.map(i=>p("button",{type:"button",onClick:()=>this.rbClick(i),"aria-checked":"".concat(i.checked),disabled:i.disabled,id:i.id,tabIndex:i.tabindex,class:Object.assign(Object.assign({},ne(i.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":i.disabled||!1}),role:"radio"},p("div",{class:"alert-button-inner"},p("div",{class:"alert-radio-icon"},p("div",{class:"alert-radio-inner"})),p("div",{class:"alert-radio-label"},i.label)))))}renderInput(){const t=this.processedInputs;return t.length===0?null:p("div",{class:"alert-input-group"},t.map(i=>{var n,o,r,a;return i.type==="textarea"?p("div",{class:"alert-input-wrapper"},p("textarea",Object.assign({placeholder:i.placeholder,value:i.value,id:i.id,tabIndex:i.tabindex},i.attributes,{disabled:(o=(n=i.attributes)===null||n===void 0?void 0:n.disabled)!==null&&o!==void 0?o:i.disabled,class:Lc(i),onInput:s=>{var l;i.value=s.target.value,!((l=i.attributes)===null||l===void 0)&&l.onInput&&i.attributes.onInput(s)}}))):p("div",{class:"alert-input-wrapper"},p("input",Object.assign({placeholder:i.placeholder,type:i.type,min:i.min,max:i.max,value:i.value,id:i.id,tabIndex:i.tabindex},i.attributes,{disabled:(a=(r=i.attributes)===null||r===void 0?void 0:r.disabled)!==null&&a!==void 0?a:i.disabled,class:Lc(i),onInput:s=>{var l;i.value=s.target.value,!((l=i.attributes)===null||l===void 0)&&l.onInput&&i.attributes.onInput(s)}})))}))}renderAlertButtons(){const t=this.processedButtons,i=F(this),n={"alert-button-group":!0,"alert-button-group-vertical":t.length>2};return p("div",{class:n},t.map(o=>p("button",Object.assign({},o.htmlAttributes,{type:"button",id:o.id,class:T2(o),tabIndex:0,onClick:()=>this.buttonClick(o)}),p("span",{class:"alert-button-inner"},o.text),i==="md"&&p("ion-ripple-effect",null))))}renderAlertMessage(t){const{customHTMLEnabled:i,message:n}=this;return i?p("div",{id:t,class:"alert-message",innerHTML:Su(n)}):p("div",{id:t,class:"alert-message"},n)}render(){const{overlayIndex:t,header:i,subHeader:n,message:o,htmlAttributes:r}=this,a=F(this),s="alert-".concat(t,"-hdr"),l="alert-".concat(t,"-sub-hdr"),c="alert-".concat(t,"-msg"),d=this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert";return p(Q,Object.assign({role:d,"aria-modal":"true","aria-labelledby":i?s:n?l:null,"aria-describedby":o!==void 0?c:null,tabindex:"-1"},r,{style:{zIndex:"".concat(2e4+t)},class:Object.assign(Object.assign({},ne(this.cssClass)),{[a]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),p("ion-backdrop",{tappable:this.backdropDismiss}),p("div",{tabindex:"0"}),p("div",{class:"alert-wrapper ion-overlay-wrapper",ref:u=>this.wrapperEl=u},p("div",{class:"alert-head"},i&&p("h2",{id:s,class:"alert-title"},i),n&&p("h2",{id:l,class:"alert-sub-title"},n)),this.renderAlertMessage(c),this.renderAlertInputs(),this.renderAlertButtons()),p("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"],buttons:["buttonsChanged"],inputs:["inputsChanged"]}}static get style(){return{ios:I2,md:z2}}},[34,"ion-alert",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],header:[1],subHeader:[1,"sub-header"],message:[1],buttons:[16],inputs:[1040],backdropDismiss:[4,"backdrop-dismiss"],translucent:[4],animated:[4],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},[[4,"keydown","onKeydown"]],{isOpen:["onIsOpenChange"],trigger:["triggerChanged"],buttons:["buttonsChanged"],inputs:["inputsChanged"]}]),Lc=e=>{var t,i,n;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":((i=(t=e.attributes)===null||t===void 0?void 0:t.disabled)!==null&&i!==void 0?i:e.disabled)||!1},ne(e.cssClass)),ne(e.attributes?(n=e.attributes.class)===null||n===void 0?void 0:n.toString():""))},T2=e=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,["alert-button-role-".concat(e.role)]:e.role!==void 0},ne(e.cssClass));function Fu(){if(typeof customElements>"u")return;["ion-alert","ion-backdrop","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-alert":customElements.get(t)||customElements.define(t,_2);break;case"ion-backdrop":customElements.get(t)||$i();break;case"ion-ripple-effect":customElements.get(t)||se();break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const O2=".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",$2=".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(container){opacity:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08);--background-focused:var(--ion-color-primary, #3880ff);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #3880ff);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #3880ff)}",L2=et(class extends tt{constructor(){super(),this.__registerHost(),this.header=void 0,this.subHeader=void 0,this.message=void 0,this.multiple=void 0,this.options=[]}findOptionFromEvent(t){const{options:i}=this;return i.find(n=>n.value===t.target.value)}callOptionHandler(t){const i=this.findOptionFromEvent(t),n=this.getValues(t);i!=null&&i.handler&&Qi(i.handler,n)}dismissParentPopover(){const t=this.el.closest("ion-popover");t&&t.dismiss()}setChecked(t){const{multiple:i}=this,n=this.findOptionFromEvent(t);i&&n&&(n.checked=t.detail.checked)}getValues(t){const{multiple:i,options:n}=this;if(i)return n.filter(r=>r.checked).map(r=>r.value);const o=this.findOptionFromEvent(t);return o?o.value:void 0}renderOptions(t){const{multiple:i}=this;switch(i){case!0:return this.renderCheckboxOptions(t);default:return this.renderRadioOptions(t)}}renderCheckboxOptions(t){return t.map(i=>p("ion-item",{class:Object.assign({"item-checkbox-checked":i.checked},ne(i.cssClass))},p("ion-checkbox",{value:i.value,disabled:i.disabled,checked:i.checked,justify:"start",labelPlacement:"end",onIonChange:n=>{this.setChecked(n),this.callOptionHandler(n),ue(this)}},i.text)))}renderRadioOptions(t){const i=t.filter(n=>n.checked).map(n=>n.value)[0];return p("ion-radio-group",{value:i,onIonChange:n=>this.callOptionHandler(n)},t.map(n=>p("ion-item",{class:Object.assign({"item-radio-checked":n.value===i},ne(n.cssClass))},p("ion-radio",{value:n.value,disabled:n.disabled,onClick:()=>this.dismissParentPopover(),onKeyUp:o=>{o.key===" "&&this.dismissParentPopover()}},n.text))))}render(){const{header:t,message:i,options:n,subHeader:o}=this,r=o!==void 0||i!==void 0;return p(Q,{class:F(this)},p("ion-list",null,t!==void 0&&p("ion-list-header",null,t),r&&p("ion-item",null,p("ion-label",{class:"ion-text-wrap"},o!==void 0&&p("h3",null,o),i!==void 0&&p("p",null,i))),this.renderOptions(n)))}get el(){return this}static get style(){return{ios:O2,md:$2}}},[34,"ion-select-popover",{header:[1],subHeader:[1,"sub-header"],message:[1],multiple:[4],options:[16]}]);function D2(){if(typeof customElements>"u")return;["ion-select-popover","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-radio","ion-radio-group","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-select-popover":customElements.get(t)||customElements.define(t,L2);break;case"ion-checkbox":customElements.get(t)||Hh();break;case"ion-icon":customElements.get(t)||ve();break;case"ion-item":customElements.get(t)||vr();break;case"ion-label":customElements.get(t)||wr();break;case"ion-list":customElements.get(t)||Os();break;case"ion-list-header":customElements.get(t)||$s();break;case"ion-note":customElements.get(t)||oo();break;case"ion-radio":customElements.get(t)||Lu();break;case"ion-radio-group":customElements.get(t)||Du();break;case"ion-ripple-effect":customElements.get(t)||se();break}})}/*! + * (C) Ionic http://ionicframework.com - MIT License + */const P2=":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item:not(.legacy-select)){-ms-flex:1 1 0px;flex:1 1 0}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative;-ms-flex-negative:0;flex-shrink:0}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.select-wrapper-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{-ms-flex-positive:1;flex-grow:1}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating:not(.label-floating)) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.label-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.legacy-select){--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:16px}.select-icon{width:1.125rem;height:1.125rem;color:var(--ion-color-step-650, #595959)}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{width:calc(100% - 1.125rem - 4px)}:host(.select-disabled){opacity:0.3}::slotted(ion-button[slot=start].button-has-icon-only),::slotted(ion-button[slot=end].button-has-icon-only){--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}",M2=":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item:not(.legacy-select)){-ms-flex:1 1 0px;flex:1 1 0}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative;-ms-flex-negative:0;flex-shrink:0}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.select-wrapper-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{-ms-flex-positive:1;flex-grow:1}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating:not(.label-floating)) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.label-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.select-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-solid) .select-wrapper{border-bottom:var(--border-width) var(--border-style) var(--border-color)}:host(.has-focus.select-fill-solid.ion-valid),:host(.select-fill-solid.ion-touched.ion-invalid){--border-color:var(--highlight-color)}:host(.select-fill-solid) .select-bottom{border-top:none}@media (any-hover: hover){:host(.select-fill-solid:hover){--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-solid.select-expanded),:host(.select-fill-solid.ion-focused){--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}:host(.select-fill-solid) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}:host-context([dir=rtl]):host(.select-fill-solid) .select-wrapper,:host-context([dir=rtl]).select-fill-solid .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){:host(.select-fill-solid:dir(rtl)) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}:host(.label-floating.select-fill-solid) .label-text-wrapper{max-width:calc(100% / 0.75)}:host(.select-fill-outline){--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-outline.select-shape-round){--border-radius:28px;--padding-start:32px;--padding-end:32px}:host(.has-focus.select-fill-outline.ion-valid),:host(.select-fill-outline.ion-touched.ion-invalid){--border-color:var(--highlight-color)}@media (any-hover: hover){:host(.select-fill-outline:hover){--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-outline.select-expanded),:host(.select-fill-outline.ion-focused){--border-width:2px;--border-color:var(--highlight-color)}:host(.select-fill-outline) .select-bottom{border-top:none}:host(.select-fill-outline) .select-wrapper{border-bottom:none}:host(.select-ltr.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-fill-outline.select-label-placement-floating) .label-text-wrapper{position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .label-text-wrapper{position:relative;z-index:1}:host(.label-floating.select-fill-outline) .label-text-wrapper{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc((100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75)}:host(.select-fill-outline.select-label-placement-stacked) select,:host(.select-fill-outline.select-label-placement-floating) select{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}:host(.select-fill-outline) .select-outline-container{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-end{pointer-events:none}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-notch,:host(.select-fill-outline) .select-outline-end{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.select-fill-outline) .select-outline-notch{max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .notch-spacer{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none}:host(.select-fill-outline) .select-outline-start{-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-start{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-rtl.select-fill-outline) .select-outline-start{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-fill-outline) .select-outline-start{width:calc(var(--padding-start) - 4px)}:host(.select-fill-outline) .select-outline-end{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-end{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-rtl.select-fill-outline) .select-outline-end{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-fill-outline) .select-outline-end{-ms-flex-positive:1;flex-grow:1}:host(.label-floating.select-fill-outline) .select-outline-notch{border-top:none}:host{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}:host(.legacy-select){--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:0.8125rem;-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);color:var(--ion-color-step-500, gray)}:host(.select-label-placement-floating.select-expanded) .label-text-wrapper,:host(.select-label-placement-floating.ion-focused) .label-text-wrapper,:host(.select-label-placement-stacked.select-expanded) .label-text-wrapper,:host(.select-label-placement-stacked.ion-focused) .label-text-wrapper{color:var(--highlight-color)}:host(.has-focus.select-label-placement-floating.ion-valid) .label-text-wrapper,:host(.select-label-placement-floating.ion-touched.ion-invalid) .label-text-wrapper,:host(.has-focus.select-label-placement-stacked.ion-valid) .label-text-wrapper,:host(.select-label-placement-stacked.ion-touched.ion-invalid) .label-text-wrapper{color:var(--highlight-color)}.select-highlight{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){.select-highlight{left:0}:host-context([dir=rtl]) .select-highlight{left:unset;right:unset;right:0}[dir=rtl] .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.select-highlight:dir(rtl){left:unset;right:unset;right:0}}}:host(.select-expanded) .select-highlight,:host(.ion-focused) .select-highlight{-webkit-transform:scale(1);transform:scale(1)}:host(.in-item) .select-highlight{bottom:0}@supports (inset-inline-start: 0){:host(.in-item) .select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.in-item) .select-highlight{left:0}:host-context([dir=rtl]):host(.in-item) .select-highlight,:host-context([dir=rtl]).in-item .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.in-item:dir(rtl)) .select-highlight{left:unset;right:unset;right:0}}}:host(.select-expanded:not(.legacy-select):not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.select-expanded) .select-wrapper .select-icon,:host(.has-focus.ion-valid) .select-wrapper .select-icon,:host(.ion-touched.ion-invalid) .select-wrapper .select-icon,:host(.ion-focused) .select-wrapper .select-icon{color:var(--highlight-color)}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){-webkit-transform:translate3d(0, -9px, 0);transform:translate3d(0, -9px, 0)}:host-context(.item-has-focus):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked):host(:not(.has-expanded-icon)) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:translate3d(0, -9px, 0) rotate(180deg);transform:translate3d(0, -9px, 0) rotate(180deg)}:host(.select-shape-round){--border-radius:16px}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{width:calc(100% - 0.8125rem - 4px)}:host(.select-disabled){opacity:0.38}::slotted(ion-button[slot=start].button-has-icon-only),::slotted(ion-button[slot=end].button-has-icon-only){--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}",B2=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=L(this,"ionChange",7),this.ionCancel=L(this,"ionCancel",7),this.ionDismiss=L(this,"ionDismiss",7),this.ionFocus=L(this,"ionFocus",7),this.ionBlur=L(this,"ionBlur",7),this.ionStyle=L(this,"ionStyle",7),this.inputId="ion-sel-".concat(F2++),this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.onClick=t=>{const i=t.target,n=i.closest('[slot="start"], [slot="end"]');i===this.el||n===null?(this.setFocus(),this.open(t)):(t.stopPropagation(),t.preventDefault())},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.isExpanded=!1,this.cancelText="Cancel",this.color=void 0,this.compareWith=void 0,this.disabled=!1,this.fill=void 0,this.interface="alert",this.interfaceOptions={},this.justify="space-between",this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.multiple=!1,this.name=this.inputId,this.okText="OK",this.placeholder=void 0,this.selectedText=void 0,this.toggleIcon=void 0,this.expandedIcon=void 0,this.shape=void 0,this.value=void 0}styleChanged(){this.emitStyle()}setValue(t){this.value=t,this.ionChange.emit({value:t})}componentWillLoad(){this.inheritedAttributes=ci(this.el,["aria-label"])}async connectedCallback(){const{el:t}=this;this.legacyFormController=io(t),this.notchController=Ts(t,()=>this.notchSpacerEl,()=>this.labelSlot),this.updateOverlayOptions(),this.emitStyle(),this.mutationO=_u(this.el,"ion-select-option",async()=>{this.updateOverlayOptions(),ue(this)})}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}async open(t){if(this.disabled||this.isExpanded)return;this.isExpanded=!0;const i=this.overlay=await this.createOverlay(t);if(i.onDidDismiss().then(()=>{this.overlay=void 0,this.isExpanded=!1,this.ionDismiss.emit(),this.setFocus()}),await i.present(),this.interface==="popover"){const n=this.childOpts.map(o=>o.value).indexOf(this.value);if(n>-1){const o=i.querySelector(".select-interface-option:nth-child(".concat(n+1,")"));if(o){Ca(o);const r=o.querySelector("ion-radio, ion-checkbox");r&&r.focus()}}else{const o=i.querySelector("ion-radio:not(.radio-disabled), ion-checkbox:not(.checkbox-disabled)");o&&(Ca(o.closest("ion-item")),o.focus())}}return i}createOverlay(t){let i=this.interface;return i==="action-sheet"&&this.multiple&&(console.warn('Select interface cannot be "'.concat(i,'" with a multi-value select. Using the "alert" interface instead.')),i="alert"),i==="popover"&&!t&&(console.warn('Select interface cannot be a "'.concat(i,'" without passing an event. Using the "alert" interface instead.')),i="alert"),i==="action-sheet"?this.openActionSheet():i==="popover"?this.openPopover(t):this.openAlert()}updateOverlayOptions(){const t=this.overlay;if(!t)return;const i=this.childOpts,n=this.value;switch(this.interface){case"action-sheet":t.buttons=this.createActionSheetButtons(i,n);break;case"popover":const o=t.querySelector("ion-select-popover");o&&(o.options=this.createPopoverOptions(i,n));break;case"alert":const r=this.multiple?"checkbox":"radio";t.inputs=this.createAlertInputs(i,r,n);break}}createActionSheetButtons(t,i){const n=t.map(o=>{const r=$o(o),a=Array.from(o.classList).filter(l=>l!=="hydrated").join(" "),s="".concat(Gr," ").concat(a);return{role:Oo(i,r,this.compareWith)?"selected":"",text:o.textContent,cssClass:s,handler:()=>{this.setValue(r)}}});return n.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),n}createAlertInputs(t,i,n){return t.map(r=>{const a=$o(r),s=Array.from(r.classList).filter(c=>c!=="hydrated").join(" "),l="".concat(Gr," ").concat(s);return{type:i,cssClass:l,label:r.textContent||"",value:a,checked:Oo(n,a,this.compareWith),disabled:r.disabled}})}createPopoverOptions(t,i){return t.map(o=>{const r=$o(o),a=Array.from(o.classList).filter(l=>l!=="hydrated").join(" "),s="".concat(Gr," ").concat(a);return{text:o.textContent||"",cssClass:s,value:r,checked:Oo(i,r,this.compareWith),disabled:o.disabled,handler:l=>{this.setValue(l),this.multiple||this.close()}}})}async openPopover(t){const{fill:i,labelPlacement:n}=this,o=this.interfaceOptions,r=F(this),a=r!=="md",s=this.multiple,l=this.value;let c=t,d="auto";if(this.legacyFormController.hasLegacyControl()){const u=this.el.closest("ion-item");u&&(u.classList.contains("item-label-floating")||u.classList.contains("item-label-stacked"))&&(c=Object.assign(Object.assign({},t),{detail:{ionShadowTarget:u}}),d="cover")}else n==="floating"||n==="stacked"||r==="md"&&i!==void 0?d="cover":c=Object.assign(Object.assign({},t),{detail:{ionShadowTarget:this.nativeWrapperEl}});const h=Object.assign(Object.assign({mode:r,event:c,alignment:"center",size:d,showBackdrop:a},o),{component:"ion-select-popover",cssClass:["select-popover",o.cssClass],componentProps:{header:o.header,subHeader:o.subHeader,message:o.message,multiple:s,value:l,options:this.createPopoverOptions(this.childOpts,l)}});return $1.create(h)}async openActionSheet(){const t=F(this),i=this.interfaceOptions,n=Object.assign(Object.assign({mode:t},i),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",i.cssClass]});return nu.create(n)}async openAlert(){let t,i;this.legacyFormController.hasLegacyControl()?(t=this.getLabel(),i=t?t.textContent:null):i=this.labelText;const n=this.interfaceOptions,o=this.multiple?"checkbox":"radio",r=F(this),a=Object.assign(Object.assign({mode:r},n),{header:n.header?n.header:i,inputs:this.createAlertInputs(this.childOpts,o,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:s=>{this.setValue(s)}}],cssClass:["select-alert",n.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return iu.create(a)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return to(this.el)}hasValue(){return this.getText()!==""}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}get labelText(){const{label:t}=this;if(t!==void 0)return t;const{labelSlot:i}=this;if(i!==null)return i.textContent}getText(){const t=this.selectedText;return t!=null&&t!==""?t:R2(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){const{disabled:t}=this,i={"interactive-disabled":t};this.legacyFormController.hasLegacyControl()&&(i.interactive=!0,i.select=!0,i["select-disabled"]=t,i["has-placeholder"]=this.placeholder!==void 0,i["has-value"]=this.hasValue(),i["has-focus"]=this.isExpanded,i.legacy=!!this.legacy),this.ionStyle.emit(i)}renderLabel(){const{label:t}=this;return p("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel},part:"label"},t===void 0?p("slot",{name:"label"}):p("div",{class:"label-text"},t))}componentDidRender(){var t;(t=this.notchController)===null||t===void 0||t.calculateNotchWidth()}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return this.label!==void 0||this.labelSlot!==null}renderLabelContainer(){return F(this)==="md"&&this.fill==="outline"?[p("div",{class:"select-outline-container"},p("div",{class:"select-outline-start"}),p("div",{class:{"select-outline-notch":!0,"select-outline-notch-hidden":!this.hasLabel}},p("div",{class:"notch-spacer","aria-hidden":"true",ref:n=>this.notchSpacerEl=n},this.label)),p("div",{class:"select-outline-end"})),this.renderLabel()]:this.renderLabel()}renderSelect(){const{disabled:t,el:i,isExpanded:n,expandedIcon:o,labelPlacement:r,justify:a,placeholder:s,fill:l,shape:c,name:d,value:h}=this,u=F(this),m=r==="floating"||r==="stacked",g=!m,f=Le(i)?"rtl":"ltr",k=wt("ion-item",this.el),x=u==="md"&&l!=="outline"&&!k,C=this.hasValue(),I=i.querySelector('[slot="start"], [slot="end"]')!==null;dn(!0,i,d,Dc(h),t);const v=r==="stacked"||r==="floating"&&(C||n||I);return p(Q,{onClick:this.onClick,class:xt(this.color,{[u]:!0,"in-item":k,"in-item-color":wt("ion-item.ion-color",i),"select-disabled":t,"select-expanded":n,"has-expanded-icon":o!==void 0,"has-value":C,"label-floating":v,"has-placeholder":s!==void 0,"ion-focusable":!0,["select-".concat(f)]:!0,["select-fill-".concat(l)]:l!==void 0,["select-justify-".concat(a)]:g,["select-shape-".concat(c)]:c!==void 0,["select-label-placement-".concat(r)]:!0})},p("label",{class:"select-wrapper",id:"select-label"},this.renderLabelContainer(),p("div",{class:"select-wrapper-inner"},p("slot",{name:"start"}),p("div",{class:"native-wrapper",ref:S=>this.nativeWrapperEl=S,part:"container"},this.renderSelectText(),this.renderListbox()),p("slot",{name:"end"}),!m&&this.renderSelectIcon()),m&&this.renderSelectIcon(),x&&p("div",{class:"select-highlight"})))}renderLegacySelect(){this.hasLoggedDeprecationWarning||(ft('ion-select now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: ...\nExample with aria-label: ...\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&ft('ion-select is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n Developers can dismiss this warning by removing their usage of the "legacy" property and using the new select syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{disabled:t,el:i,inputId:n,isExpanded:o,expandedIcon:r,name:a,placeholder:s,value:l}=this,c=F(this),{labelText:d,labelId:h}=Wo(i,n);dn(!0,i,a,Dc(l),t);let m=this.getText();m===""&&s!==void 0&&(m=s);const g=d!==void 0?m!==""?"".concat(m,", ").concat(d):d:m;return p(Q,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":t?"true":null,"aria-label":g,class:{[c]:!0,"in-item":wt("ion-item",i),"in-item-color":wt("ion-item.ion-color",i),"select-disabled":t,"select-expanded":o,"has-expanded-icon":r!==void 0,"legacy-select":!0}},this.renderSelectText(),this.renderSelectIcon(),p("label",{id:h},g),this.renderListbox())}renderSelectText(){const{placeholder:t}=this,i=this.getText();let n=!1,o=i;return o===""&&t!==void 0&&(o=t,n=!0),p("div",{"aria-hidden":"true",class:{"select-text":!0,"select-placeholder":n},part:n?"placeholder":"text"},o)}renderSelectIcon(){const t=F(this),{isExpanded:i,toggleIcon:n,expandedIcon:o}=this;let r;if(i&&o!==void 0)r=o;else{const a=t==="ios"?t0:Ih;r=n!=null?n:a}return p("ion-icon",{class:"select-icon",part:"icon","aria-hidden":"true",icon:r})}get ariaLabel(){var t,i;const{placeholder:n,el:o,inputId:r,inheritedAttributes:a}=this,s=this.getText(),{labelText:l}=Wo(o,r),c=(i=(t=this.labelText)!==null&&t!==void 0?t:a["aria-label"])!==null&&i!==void 0?i:l;let d=s;return d===""&&n!==void 0&&(d=n),c!==void 0&&(d=d===""?c:"".concat(c,", ").concat(d)),d}renderListbox(){const{disabled:t,inputId:i,isExpanded:n}=this;return p("button",{disabled:t,id:i,"aria-label":this.ariaLabel,"aria-haspopup":"dialog","aria-expanded":"".concat(n),onFocus:this.onFocus,onBlur:this.onBlur,ref:o=>this.focusEl=o})}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacySelect():this.renderSelect()}get el(){return this}static get watchers(){return{disabled:["styleChanged"],isExpanded:["styleChanged"],placeholder:["styleChanged"],value:["styleChanged"]}}static get style(){return{ios:P2,md:M2}}},[33,"ion-select",{cancelText:[1,"cancel-text"],color:[513],compareWith:[1,"compare-with"],disabled:[4],fill:[1],interface:[1],interfaceOptions:[8,"interface-options"],justify:[1],label:[1],labelPlacement:[1,"label-placement"],legacy:[4],multiple:[4],name:[1],okText:[1,"ok-text"],placeholder:[1],selectedText:[1,"selected-text"],toggleIcon:[1,"toggle-icon"],expandedIcon:[1,"expanded-icon"],shape:[1],value:[1032],isExpanded:[32],open:[64]},void 0,{disabled:["styleChanged"],isExpanded:["styleChanged"],placeholder:["styleChanged"],value:["styleChanged"]}]),$o=e=>{const t=e.value;return t===void 0?e.textContent||"":t},Dc=e=>{if(e!=null)return Array.isArray(e)?e.join(","):e.toString()},R2=(e,t,i)=>t===void 0?"":Array.isArray(t)?t.map(n=>Pc(e,n,i)).filter(n=>n!==null).join(", "):Pc(e,t,i)||"",Pc=(e,t,i)=>{const n=e.find(o=>Ba(t,$o(o),i));return n?n.textContent:null};let F2=0;const Gr="select-interface-option";function j2(){if(typeof customElements>"u")return;["ion-select","ion-action-sheet","ion-alert","ion-backdrop","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-popover","ion-radio","ion-radio-group","ion-ripple-effect","ion-select-popover"].forEach(t=>{switch(t){case"ion-select":customElements.get(t)||customElements.define(t,B2);break;case"ion-action-sheet":customElements.get(t)||Ru();break;case"ion-alert":customElements.get(t)||Fu();break;case"ion-backdrop":customElements.get(t)||$i();break;case"ion-checkbox":customElements.get(t)||Hh();break;case"ion-icon":customElements.get(t)||ve();break;case"ion-item":customElements.get(t)||vr();break;case"ion-label":customElements.get(t)||wr();break;case"ion-list":customElements.get(t)||Os();break;case"ion-list-header":customElements.get(t)||$s();break;case"ion-note":customElements.get(t)||oo();break;case"ion-popover":customElements.get(t)||xu();break;case"ion-radio":customElements.get(t)||Lu();break;case"ion-radio-group":customElements.get(t)||Du();break;case"ion-ripple-effect":customElements.get(t)||se();break;case"ion-select-popover":customElements.get(t)||D2();break}})}const H2=j2;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const V2=":host{display:none}",W2=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inputId="ion-selopt-".concat(q2++),this.disabled=!1,this.value=void 0}render(){return p(Q,{role:"option",id:this.inputId,class:F(this)})}get el(){return this}static get style(){return V2}},[1,"ion-select-option",{disabled:[4],value:[8]}]);let q2=0;function Y2(){if(typeof customElements>"u")return;["ion-select-option"].forEach(t=>{switch(t){case"ion-select-option":customElements.get(t)||customElements.define(t,W2);break}})}const N2=Y2;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const U2=":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:0.55px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}",G2=":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}",Mc="split-pane-main",Ra="split-pane-side",Bc={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",never:""},X2=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionSplitPaneVisible=L(this,"ionSplitPaneVisible",7),this.visible=!1,this.contentId=void 0,this.disabled=!1,this.when=Bc.lg}visibleChanged(t){const i={visible:t,isPane:this.isPane.bind(this)};this.ionSplitPaneVisible.emit(i)}async connectedCallback(){typeof customElements<"u"&&customElements!=null&&await customElements.whenDefined("ion-split-pane"),this.styleChildren(),this.updateState()}disconnectedCallback(){this.rmL&&(this.rmL(),this.rmL=void 0)}updateState(){if(this.rmL&&(this.rmL(),this.rmL=void 0),this.disabled){this.visible=!1;return}const t=this.when;if(typeof t=="boolean"){this.visible=t;return}const i=Bc[t]||t;if(i.length===0){this.visible=!1;return}if(window.matchMedia){const n=r=>{this.visible=r.matches},o=window.matchMedia(i);o.addListener(n),this.rmL=()=>o.removeListener(n),this.visible=o.matches}}isPane(t){return this.visible?t.parentElement===this.el&&t.classList.contains(Ra):!1}styleChildren(){const t=this.contentId,i=this.el.children,n=this.el.childElementCount;let o=!1;for(let r=0;r{let i,n;t?(i=Mc,n=Ra):(i=Ra,n=Mc);const o=e.classList;o.add(i),o.remove(n)};function Z2(){if(typeof customElements>"u")return;["ion-split-pane"].forEach(t=>{switch(t){case"ion-split-pane":customElements.get(t)||customElements.define(t,X2);break}})}const Q2=Z2;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const J2=":host(.ion-color){color:var(--ion-color-base)}",t6=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=F(this);return p(Q,{class:xt(this.color,{[t]:!0})},p("slot",null))}static get style(){return J2}},[1,"ion-text",{color:[513]}]);function e6(){if(typeof customElements>"u")return;["ion-text"].forEach(t=>{switch(t){case"ion-text":customElements.get(t)||customElements.define(t,t6);break}})}const i6=e6;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const n6='.sc-ion-textarea-ios-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.sc-ion-textarea-ios-h:not(.legacy-textarea){min-height:44px}.textarea-label-placement-floating.sc-ion-textarea-ios-h,.textarea-label-placement-stacked.sc-ion-textarea-ios-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-ios-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.legacy-textarea.sc-ion-textarea-ios-h{-ms-flex:1;flex:1;background:var(--background);white-space:pre-wrap}.legacy-textarea.ion-color.sc-ion-textarea-ios-h{color:var(--ion-color-base)}.sc-ion-textarea-ios-h:not(.legacy-textarea){--padding-bottom:8px}.ion-color.sc-ion-textarea-ios-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-ios-h,ion-item .sc-ion-textarea-ios-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-ios-h{--padding-start:0}ion-item[slot=start].sc-ion-textarea-ios-h,ion-item [slot=start].sc-ion-textarea-ios-h,ion-item[slot=end].sc-ion-textarea-ios-h,ion-item [slot=end].sc-ion-textarea-ios-h{width:auto}.native-textarea.sc-ion-textarea-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-ios::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{white-space:inherit}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios,.legacy-textarea.sc-ion-textarea-ios-h .textarea-legacy-wrapper.sc-ion-textarea-ios::after{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}.native-textarea.sc-ion-textarea-ios{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.legacy-textarea.sc-ion-textarea-ios-h .textarea-legacy-wrapper.sc-ion-textarea-ios::after{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-ios{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-textarea-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-textarea-ios{left:0}[dir=rtl].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-ios .cloned-input.sc-ion-textarea-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-textarea-ios:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-textarea-ios:disabled{opacity:1}.legacy-textarea[auto-grow].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}[auto-grow].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{height:100%}[auto-grow].sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{overflow:hidden}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.textarea-wrapper.sc-ion-textarea-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-ios{position:relative;width:100%;height:100%}.has-focus.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-ios,.textarea-legacy-wrapper.sc-ion-textarea-ios{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-ios::after,.textarea-legacy-wrapper.sc-ion-textarea-ios::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-ios::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.textarea-wrapper-inner.sc-ion-textarea-ios{display:-ms-flexbox;display:flex;width:100%;min-height:inherit}.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-ios-h,.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:block}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:none}.textarea-bottom.sc-ion-textarea-ios .counter.sc-ion-textarea-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-textarea-ios,.sc-ion-textarea-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-ios,.textarea-outline-notch-hidden.sc-ion-textarea-ios{display:none}.textarea-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text.sc-ion-textarea-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.sc-ion-textarea-ios-h.textarea-label-placement-stacked.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-stacked .sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-stacked.sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-stacked .sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-floating.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-floating .sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-floating.sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-floating .sc-ion-textarea-ios-s>[slot=end]{margin-top:8px}.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.has-value.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:1}.label-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.start-slot-wrapper.sc-ion-textarea-ios,.end-slot-wrapper.sc-ion-textarea-ios{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:start}.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-s>[slot=end]{margin-top:0}.sc-ion-textarea-ios-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-textarea-ios-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.sc-ion-textarea-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--padding-top:10px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;font-size:inherit}.legacy-textarea.sc-ion-textarea-ios-h{--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:0}.item-label-stacked.sc-ion-textarea-ios-h,.item-label-stacked .sc-ion-textarea-ios-h,.item-label-floating.sc-ion-textarea-ios-h,.item-label-floating .sc-ion-textarea-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea[disabled].sc-ion-textarea-ios,.textarea-disabled.sc-ion-textarea-ios-h{opacity:0.3}.sc-ion-textarea-ios-s>ion-button[slot=start].button-has-icon-only,.sc-ion-textarea-ios-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}',o6='.sc-ion-textarea-md-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.sc-ion-textarea-md-h:not(.legacy-textarea){min-height:44px}.textarea-label-placement-floating.sc-ion-textarea-md-h,.textarea-label-placement-stacked.sc-ion-textarea-md-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-md-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.legacy-textarea.sc-ion-textarea-md-h{-ms-flex:1;flex:1;background:var(--background);white-space:pre-wrap}.legacy-textarea.ion-color.sc-ion-textarea-md-h{color:var(--ion-color-base)}.sc-ion-textarea-md-h:not(.legacy-textarea){--padding-bottom:8px}.ion-color.sc-ion-textarea-md-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-md-h,ion-item .sc-ion-textarea-md-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-md-h{--padding-start:0}ion-item[slot=start].sc-ion-textarea-md-h,ion-item [slot=start].sc-ion-textarea-md-h,ion-item[slot=end].sc-ion-textarea-md-h,ion-item [slot=end].sc-ion-textarea-md-h{width:auto}.native-textarea.sc-ion-textarea-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-md::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.legacy-textarea.sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{white-space:inherit}.legacy-textarea.sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md,.legacy-textarea.sc-ion-textarea-md-h .textarea-legacy-wrapper.sc-ion-textarea-md::after{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}.native-textarea.sc-ion-textarea-md{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.legacy-textarea.sc-ion-textarea-md-h .textarea-legacy-wrapper.sc-ion-textarea-md::after{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-md{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-md .cloned-input.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-textarea-md:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-textarea-md:disabled{opacity:1}.legacy-textarea[auto-grow].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}[auto-grow].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{height:100%}[auto-grow].sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{overflow:hidden}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.textarea-wrapper.sc-ion-textarea-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-md{position:relative;width:100%;height:100%}.has-focus.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-md,.textarea-legacy-wrapper.sc-ion-textarea-md{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-md::after,.textarea-legacy-wrapper.sc-ion-textarea-md::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-md::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.textarea-wrapper-inner.sc-ion-textarea-md{display:-ms-flexbox;display:flex;width:100%;min-height:inherit}.ion-touched.ion-invalid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-md-h,.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:block}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:none}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-textarea-md,.sc-ion-textarea-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-md,.textarea-outline-notch-hidden.sc-ion-textarea-md{display:none}.textarea-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text.sc-ion-textarea-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.sc-ion-textarea-md-h.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=end]{margin-top:8px}.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.has-value.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:1}.label-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.start-slot-wrapper.sc-ion-textarea-md,.end-slot-wrapper.sc-ion-textarea-md{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:start}.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-s>[slot=end]{margin-top:0}.sc-ion-textarea-md-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-textarea-md-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.textarea-fill-solid.sc-ion-textarea-md-h{--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.textarea-fill-solid.ion-valid.sc-ion-textarea-md-h,.textarea-fill-solid.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}@media (any-hover: hover){.textarea-fill-solid.sc-ion-textarea-md-h:hover{--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}.textarea-fill-solid.has-focus.sc-ion-textarea-md-h{--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.textarea-fill-solid.sc-ion-textarea-md-h:dir(rtl) .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}.label-floating.textarea-fill-solid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{max-width:calc(100% / 0.75)}.textarea-fill-outline.sc-ion-textarea-md-h{--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-outline.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.textarea-fill-outline.ion-valid.sc-ion-textarea-md-h,.textarea-fill-outline.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.textarea-fill-outline.sc-ion-textarea-md-h:hover{--border-color:var(--ion-color-step-750, #404040)}}.textarea-fill-outline.has-focus.sc-ion-textarea-md-h{--border-width:2px;--border-color:var(--highlight-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:none}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-fill-outline.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{position:relative}.label-floating.textarea-fill-outline.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc(\n (100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75\n )}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-fill-outline.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:12px;margin-bottom:0px}.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=end]{margin-top:12px}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-container.sc-ion-textarea-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{pointer-events:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.textarea-fill-outline.sc-ion-textarea-md-h .notch-spacer.sc-ion-textarea-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.textarea-fill-outline.sc-ion-textarea-md-h:dir(rtl) .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px;-ms-flex-positive:1;flex-grow:1}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}@supports selector(:dir(rtl)){.textarea-fill-outline.sc-ion-textarea-md-h:dir(rtl) .textarea-outline-end.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}}.label-floating.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{border-top:none}.sc-ion-textarea-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--padding-top:18px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;font-size:inherit}.legacy-textarea.sc-ion-textarea-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:11px;--padding-start:8px;margin-left:0;margin-right:0;margin-top:8px;margin-bottom:0}.item-label-stacked.sc-ion-textarea-md-h,.item-label-stacked .sc-ion-textarea-md-h,.item-label-floating.sc-ion-textarea-md-h,.item-label-floating .sc-ion-textarea-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{letter-spacing:0.0333333333em}.textarea-label-placement-floating.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.has-focus.textarea-label-placement-floating.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-focus.textarea-label-placement-stacked.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.legacy-textarea.sc-ion-textarea-md-h .native-textarea[disabled].sc-ion-textarea-md,.textarea-disabled.sc-ion-textarea-md-h{opacity:0.38}.textarea-highlight.sc-ion-textarea-md{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.textarea-highlight.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-md .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.textarea-highlight.sc-ion-textarea-md:dir(rtl){left:unset;right:unset;right:0}}}.has-focus.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{bottom:0}@supports (inset-inline-start: 0){.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h -no-combinator.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl].in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.in-item.sc-ion-textarea-md-h:dir(rtl) .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}}}.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:16px}.sc-ion-textarea-md-s>ion-button[slot=start].button-has-icon-only,.sc-ion-textarea-md-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}',r6=et(class extends tt{constructor(){super(),this.__registerHost(),this.ionChange=L(this,"ionChange",7),this.ionInput=L(this,"ionInput",7),this.ionStyle=L(this,"ionStyle",7),this.ionBlur=L(this,"ionBlur",7),this.ionFocus=L(this,"ionFocus",7),this.inputId="ion-textarea-".concat(a6++),this.didTextareaClearOnEdit=!1,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.onInput=t=>{const i=t.target;i&&(this.value=i.value||""),this.emitInputChange(t)},this.onChange=t=>{this.emitValueChange(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusedValue=this.value,this.focusChange(),this.ionFocus.emit(t)},this.onBlur=t=>{this.hasFocus=!1,this.focusChange(),this.focusedValue!==this.value&&this.emitValueChange(t),this.didTextareaClearOnEdit=!1,this.ionBlur.emit(t)},this.onKeyDown=t=>{this.checkClearOnEdit(t)},this.hasFocus=!1,this.color=void 0,this.autocapitalize="none",this.autofocus=!1,this.clearOnEdit=!1,this.debounce=void 0,this.disabled=!1,this.fill=void 0,this.inputmode=void 0,this.enterkeyhint=void 0,this.maxlength=void 0,this.minlength=void 0,this.name=this.inputId,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.cols=void 0,this.rows=void 0,this.wrap=void 0,this.autoGrow=!1,this.value="",this.counter=!1,this.counterFormatter=void 0,this.errorText=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.shape=void 0}debounceChanged(){const{ionInput:t,debounce:i,originalIonInput:n}=this;this.ionInput=i===void 0?n!=null?n:t:fs(t,i)}disabledChanged(){this.emitStyle()}valueChanged(){const t=this.nativeInput,i=this.getValue();t&&t.value!==i&&(t.value=i),this.runAutoGrow(),this.emitStyle()}connectedCallback(){const{el:t}=this;this.legacyFormController=io(t),this.slotMutationController=Iu(t,["label","start","end"],()=>ue(this)),this.notchController=Ts(t,()=>this.notchSpacerEl,()=>this.labelSlot),this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:t}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},Ze(this.el)),ci(this.el,["data-form-type","title","tabindex"]))}componentDidLoad(){this.originalIonInput=this.ionInput,this.runAutoGrow()}componentDidRender(){var t;(t=this.notchController)===null||t===void 0||t.calculateNotchWidth()}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async getInputElement(){return this.nativeInput||await new Promise(t=>Re(this.el,t)),Promise.resolve(this.nativeInput)}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({interactive:!0,textarea:!0,input:!0,"interactive-disabled":this.disabled,"has-placeholder":this.placeholder!==void 0,"has-value":this.hasValue(),"has-focus":this.hasFocus,legacy:!!this.legacy})}emitValueChange(t){const{value:i}=this,n=i==null?i:i.toString();this.focusedValue=n,this.ionChange.emit({value:n,event:t})}emitInputChange(t){const{value:i}=this;this.ionInput.emit({value:i,event:t})}runAutoGrow(){this.nativeInput&&this.autoGrow&&Yt(()=>{var t;this.textareaWrapper&&(this.textareaWrapper.dataset.replicatedValue=(t=this.value)!==null&&t!==void 0?t:"")})}checkClearOnEdit(t){if(!this.clearOnEdit)return;const n=["Tab","Shift","Meta","Alt","Control"].includes(t.key);!this.didTextareaClearOnEdit&&this.hasValue()&&!n&&(this.value="",this.emitInputChange(t)),n||(this.didTextareaClearOnEdit=!0)}focusChange(){this.emitStyle()}hasValue(){return this.getValue()!==""}getValue(){return this.value||""}renderLegacyTextarea(){this.hasLoggedDeprecationWarning||(ft('ion-textarea now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: \nExample with aria-label: \n\nFor textareas that do not render the label immediately next to the input, developers may continue to use "ion-label" but must manually associate the label with the textarea by using "aria-labelledby".\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.hasLoggedDeprecationWarning=!0);const t=F(this),i=this.getValue(),n=this.inputId+"-lbl",o=to(this.el);return o&&(o.id=n),p(Q,{"aria-disabled":this.disabled?"true":null,class:xt(this.color,{[t]:!0,"legacy-textarea":!0})},p("div",{class:"textarea-legacy-wrapper",ref:r=>this.textareaWrapper=r},p("textarea",Object.assign({class:"native-textarea","aria-labelledby":o?o.id:null,ref:r=>this.nativeInput=r,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),i)))}renderLabel(){const{label:t}=this;return p("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},t===void 0?p("slot",{name:"label"}):p("div",{class:"label-text"},t))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return this.label!==void 0||this.labelSlot!==null}renderLabelContainer(){return F(this)==="md"&&this.fill==="outline"?[p("div",{class:"textarea-outline-container"},p("div",{class:"textarea-outline-start"}),p("div",{class:{"textarea-outline-notch":!0,"textarea-outline-notch-hidden":!this.hasLabel}},p("div",{class:"notch-spacer","aria-hidden":"true",ref:n=>this.notchSpacerEl=n},this.label)),p("div",{class:"textarea-outline-end"})),this.renderLabel()]:this.renderLabel()}renderHintText(){const{helperText:t,errorText:i}=this;return[p("div",{class:"helper-text"},t),p("div",{class:"error-text"},i)]}renderCounter(){const{counter:t,maxlength:i,counterFormatter:n,value:o}=this;if(!(t!==!0||i===void 0))return p("div",{class:"counter"},zu(o,i,n))}renderBottomContent(){const{counter:t,helperText:i,errorText:n,maxlength:o}=this;if(!(!(i||n)&&!(t===!0&&o!==void 0)))return p("div",{class:"textarea-bottom"},this.renderHintText(),this.renderCounter())}renderTextarea(){const{inputId:t,disabled:i,fill:n,shape:o,labelPlacement:r,el:a,hasFocus:s}=this,l=F(this),c=this.getValue(),d=wt("ion-item",this.el),h=l==="md"&&n!=="outline"&&!d,u=this.hasValue(),m=a.querySelector('[slot="start"], [slot="end"]')!==null,g=r==="stacked"||r==="floating"&&(u||s||m);return p(Q,{class:xt(this.color,{[l]:!0,"has-value":u,"has-focus":s,"label-floating":g,["textarea-fill-".concat(n)]:n!==void 0,["textarea-shape-".concat(o)]:o!==void 0,["textarea-label-placement-".concat(r)]:!0,"textarea-disabled":i})},p("label",{class:"textarea-wrapper",htmlFor:t},this.renderLabelContainer(),p("div",{class:"textarea-wrapper-inner"},p("div",{class:"start-slot-wrapper"},p("slot",{name:"start"})),p("div",{class:"native-wrapper",ref:f=>this.textareaWrapper=f},p("textarea",Object.assign({class:"native-textarea",ref:f=>this.nativeInput=f,id:t,disabled:i,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,minLength:this.minlength,maxLength:this.maxlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),c)),p("div",{class:"end-slot-wrapper"},p("slot",{name:"end"}))),h&&p("div",{class:"textarea-highlight"})),this.renderBottomContent())}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyTextarea():this.renderTextarea()}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}static get style(){return{ios:n6,md:o6}}},[38,"ion-textarea",{color:[513],autocapitalize:[1],autofocus:[4],clearOnEdit:[4,"clear-on-edit"],debounce:[2],disabled:[4],fill:[1],inputmode:[1],enterkeyhint:[1],maxlength:[2],minlength:[2],name:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],cols:[514],rows:[2],wrap:[1],autoGrow:[516,"auto-grow"],value:[1025],counter:[4],counterFormatter:[16],errorText:[1,"error-text"],helperText:[1,"helper-text"],label:[1],labelPlacement:[1,"label-placement"],legacy:[4],shape:[1],hasFocus:[32],setFocus:[64],getInputElement:[64]},void 0,{debounce:["debounceChanged"],disabled:["disabledChanged"],value:["valueChanged"]}]);let a6=0;function s6(){if(typeof customElements>"u")return;["ion-textarea"].forEach(t=>{switch(t){case"ion-textarea":customElements.get(t)||customElements.define(t,r6);break}})}const l6=s6;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const c6=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{top:0;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:min(1.0625rem, 20.4px);font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.title-small){-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:min(0.8125rem, 23.4px);font-weight:normal}:host(.title-large){-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:2px;padding-bottom:4px;-webkit-transform-origin:left center;transform-origin:left center;position:static;-ms-flex-align:end;align-items:flex-end;min-width:100%;font-size:min(2.125rem, 61.2px);font-weight:700;text-align:start}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000);font-family:var(--ion-font-family)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit;width:auto}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}@supports selector(:dir(rtl)){:host(.title-large:dir(rtl)) .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}}",d6=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;letter-spacing:0.0125em}:host(.title-small){width:100%;height:100%;font-size:0.9375rem;font-weight:normal}",h6=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=L(this,"ionStyle",7),this.color=void 0,this.size=void 0}sizeChanged(){this.emitStyle()}connectedCallback(){this.emitStyle()}emitStyle(){const t=this.getSize();this.ionStyle.emit({["title-".concat(t)]:!0})}getSize(){return this.size!==void 0?this.size:"default"}render(){const t=F(this),i=this.getSize();return p(Q,{class:xt(this.color,{[t]:!0,["title-".concat(i)]:!0,"title-rtl":document.dir==="rtl"})},p("div",{class:"toolbar-title"},p("slot",null)))}get el(){return this}static get watchers(){return{size:["sizeChanged"]}}static get style(){return{ios:c6,md:d6}}},[33,"ion-title",{color:[513],size:[1]},void 0,{size:["sizeChanged"]}]);function u6(){if(typeof customElements>"u")return;["ion-title"].forEach(t=>{switch(t){case"ion-title":customElements.get(t)||customElements.define(t,h6);break}})}const p6=u6;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const m6=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}",f6=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){-webkit-margin-start:4px;margin-inline-start:4px}::slotted(.buttons-last-slot){-webkit-margin-end:4px;margin-inline-end:4px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}",g6=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.childrenStyles=new Map,this.color=void 0}componentWillLoad(){const t=Array.from(this.el.querySelectorAll("ion-buttons")),i=t.find(r=>r.slot==="start");i&&i.classList.add("buttons-first-slot");const n=t.reverse(),o=n.find(r=>r.slot==="end")||n.find(r=>r.slot==="primary")||n.find(r=>r.slot==="secondary");o&&o.classList.add("buttons-last-slot")}childrenStyle(t){t.stopPropagation();const i=t.target.tagName,n=t.detail,o={},r=this.childrenStyles.get(i)||{};let a=!1;Object.keys(n).forEach(s=>{const l="toolbar-".concat(s),c=n[s];c!==r[l]&&(a=!0),c&&(o[l]=!0)}),a&&(this.childrenStyles.set(i,o),ue(this))}render(){const t=F(this),i={};return this.childrenStyles.forEach(n=>{Object.assign(i,n)}),p(Q,{class:Object.assign(Object.assign({},i),xt(this.color,{[t]:!0,"in-toolbar":wt("ion-toolbar",this.el)}))},p("div",{class:"toolbar-background"}),p("div",{class:"toolbar-container"},p("slot",{name:"start"}),p("slot",{name:"secondary"}),p("div",{class:"toolbar-content"},p("slot",null)),p("slot",{name:"primary"}),p("slot",{name:"end"})))}get el(){return this}static get style(){return{ios:m6,md:f6}}},[33,"ion-toolbar",{color:[513]},[[0,"ionStyle","childrenStyle"]]]);function b6(){if(typeof customElements>"u")return;["ion-toolbar"].forEach(t=>{switch(t){case"ion-toolbar":customElements.get(t)||customElements.define(t,g6);break}})}const x6=b6;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const v6=':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:clamp(17px, 1.0625rem, 21.998px)}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',w6=':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:1.5rem;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:0.875rem;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;min-height:48px;aspect-ratio:1/1}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}',y6=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.onClick=async t=>{const i=this.el.closest("ion-nav");return t.preventDefault(),i&&await i.canGoBack()?i.pop({animationBuilder:this.routerAnimation,skipIfBusy:!0}):eo(this.defaultHref,t,"back",this.routerAnimation)},this.color=void 0,this.defaultHref=void 0,this.disabled=!1,this.icon=void 0,this.text=void 0,this.type="button",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=Ze(this.el),this.defaultHref===void 0&&(this.defaultHref=pt.get("backButtonDefaultHref"))}get backButtonIcon(){const t=this.icon;return t!=null?t:F(this)==="ios"?pt.get("backButtonIcon",zh):pt.get("backButtonIcon",Ah)}get backButtonText(){const t=F(this)==="ios"?"Back":null;return this.text!=null?this.text:pt.get("backButtonText",t)}get hasIconOnly(){return this.backButtonIcon&&!this.backButtonText}get rippleType(){return this.hasIconOnly?"unbounded":"bounded"}render(){const{color:t,defaultHref:i,disabled:n,type:o,hasIconOnly:r,backButtonIcon:a,backButtonText:s,icon:l,inheritedAttributes:c}=this,d=i!==void 0,h=F(this),u=c["aria-label"]||s||"back";return p(Q,{onClick:this.onClick,class:xt(t,{[h]:!0,button:!0,"back-button-disabled":n,"back-button-has-icon-only":r,"in-toolbar":wt("ion-toolbar",this.el),"in-toolbar-color":wt("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0,"show-back-button":d})},p("button",{type:o,disabled:n,class:"button-native",part:"native","aria-label":u},p("span",{class:"button-inner"},a&&p("ion-icon",{part:"icon",icon:a,"aria-hidden":"true",lazy:!1,"flip-rtl":l===void 0}),s&&p("span",{part:"text","aria-hidden":"true",class:"button-text"},s)),h==="md"&&p("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get style(){return{ios:v6,md:w6}}},[33,"ion-back-button",{color:[513],defaultHref:[1025,"default-href"],disabled:[516],icon:[1],text:[1],type:[1],routerAnimation:[16]}]);function k6(){if(typeof customElements>"u")return;["ion-back-button","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-back-button":customElements.get(t)||customElements.define(t,y6);break;case"ion-icon":customElements.get(t)||ve();break;case"ion-ripple-effect":customElements.get(t)||se();break}})}const C6=k6,E6=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}",S6=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=L(this,"ionNavWillLoad",7),this.ionNavWillChange=L(this,"ionNavWillChange",3),this.ionNavDidChange=L(this,"ionNavDidChange",3),this.lockController=xn(),this.gestureOrAnimationInProgress=!1,this.mode=F(this),this.delegate=void 0,this.animated=!0,this.animation=void 0,this.swipeHandler=void 0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(this.swipeHandler!==void 0)}async connectedCallback(){const t=()=>{this.gestureOrAnimationInProgress=!0,this.swipeHandler&&this.swipeHandler.onStart()};this.gesture=(await ut(()=>import("./swipe-back-IWamMfvk.js"),__vite__mapDeps([]))).createSwipeBackGesture(this.el,()=>!this.gestureOrAnimationInProgress&&!!this.swipeHandler&&this.swipeHandler.canStart(),()=>t(),i=>{var n;return(n=this.ani)===null||n===void 0?void 0:n.progressStep(i)},(i,n,o)=>{if(this.ani){this.ani.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(i)},{oneTimeCallback:!0});let r=i?-.001:.001;i?r+=Ti([0,0],[.32,.72],[0,1],[1,1],n)[0]:(this.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),r+=Ti([0,0],[1,0],[.68,.28],[1,1],n)[0]),this.ani.progressEnd(i?1:0,r,o)}else this.gestureOrAnimationInProgress=!1}),this.swipeHandlerChanged()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async commit(t,i,n){const o=await this.lockController.lock();let r=!1;try{r=await this.transition(t,i,n)}catch(a){console.error(a)}return o(),r}async setRouteId(t,i,n,o){return{changed:await this.setRoot(t,i,{duration:n==="root"?0:void 0,direction:n==="back"?"back":"forward",animationBuilder:o}),element:this.activeEl}}async getRouteId(){const t=this.activeEl;return t?{id:t.tagName,element:t,params:this.activeParams}:void 0}async setRoot(t,i,n){if(this.activeComponent===t&&Sh(i,this.activeParams))return!1;const o=this.activeEl,r=await kr(this.delegate,this.el,t,["ion-page","ion-page-invisible"],i);return this.activeComponent=t,this.activeEl=r,this.activeParams=i,await this.commit(r,o,n),await Cs(this.delegate,o),!0}async transition(t,i,n={}){if(i===t)return!1;this.ionNavWillChange.emit();const{el:o,mode:r}=this,a=this.animated&&pt.getBoolean("animated",!0),s=n.animationBuilder||this.animation||pt.get("navAnimation");return await cu(Object.assign(Object.assign({mode:r,animated:a,enteringEl:t,leavingEl:i,baseEl:o,deepWait:Hn(o),progressCallback:n.progressAnimation?l=>{l!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,l.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(!1)},{oneTimeCallback:!0}),l.progressEnd(0,0,0)):this.ani=l}:void 0},n),{animationBuilder:s})),this.ionNavDidChange.emit(),!0}render(){return p("slot",null)}get el(){return this}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}static get style(){return E6}},[1,"ion-router-outlet",{mode:[1025],delegate:[16],animated:[4],animation:[16],swipeHandler:[16],commit:[64],setRouteId:[64],getRouteId:[64]},void 0,{swipeHandler:["swipeHandlerChanged"]}]);function A6(){if(typeof customElements>"u")return;["ion-router-outlet"].forEach(t=>{switch(t){case"ion-router-outlet":customElements.get(t)||customElements.define(t,S6);break}})}const I6=A6,z6="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}",_6=et(class extends tt{constructor(){super(),this.__registerHost()}componentDidLoad(){O6(async()=>{const t=$e(window,"hybrid");if(pt.getBoolean("_testing")||ut(()=>import("./index9-iTfihG9Y.js"),__vite__mapDeps([])).then(n=>n.startTapClick(pt)),pt.getBoolean("statusTap",t)&&ut(()=>import("./status-tap-wU6Zh3B8.js"),__vite__mapDeps([])).then(n=>n.startStatusTap()),pt.getBoolean("inputShims",T6())){const n=$e(window,"ios")?"ios":"android";ut(()=>import("./input-shims-vG7GaNkX.js"),__vite__mapDeps([])).then(o=>o.startInputShims(pt,n))}const i=await ut(()=>Promise.resolve().then(()=>T1),void 0);pt.getBoolean("hardwareBackButton",t)?i.startHardwareBackButton():i.blockHardwareBackButton(),typeof window<"u"&&ut(()=>Promise.resolve().then(()=>g4),void 0).then(n=>n.startKeyboardAssist(window)),ut(()=>Promise.resolve().then(()=>fv),void 0).then(n=>this.focusVisible=n.startFocusVisible())})}async setFocus(t){this.focusVisible&&this.focusVisible.setFocus(t)}render(){const t=F(this);return p(Q,{class:{[t]:!0,"ion-page":!0,"force-statusbar-padding":pt.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return z6}},[0,"ion-app",{setFocus:[64]}]),T6=()=>!!($e(window,"ios")&&$e(window,"mobile")||$e(window,"android")&&$e(window,"mobileweb")),O6=e=>{"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,32)};function $6(){if(typeof customElements>"u")return;["ion-app"].forEach(t=>{switch(t){case"ion-app":customElements.get(t)||customElements.define(t,_6);break}})}const L6=$6;let Xr;const D6=()=>{if(typeof window>"u")return new Map;if(!Xr){const e=window;e.Ionicons=e.Ionicons||{},Xr=e.Ionicons.map=e.Ionicons.map||new Map}return Xr},P6=e=>{let t=Kr(e.src);return t||(t=ju(e.name,e.icon,e.mode,e.ios,e.md),t?M6(t,e):e.icon&&(t=Kr(e.icon),t||(t=Kr(e.icon[e.mode]),t))?t:null)},M6=(e,t)=>{const i=D6().get(e);if(i)return i;try{return ch("svg/".concat(e,".svg"))}catch(n){console.warn('[Ionicons Warning]: Could not load icon with name "'.concat(e,'". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.'),t)}},ju=(e,t,i,n,o)=>(i=(i&&Ao(i))==="ios"?"ios":"md",n&&i==="ios"?e=Ao(n):o&&i==="md"?e=Ao(o):(!e&&t&&!Hu(t)&&(e=t),Xo(e)&&(e=Ao(e))),!Xo(e)||e.trim()===""||e.replace(/[a-z]|-|\d/gi,"")!==""?null:e),Kr=e=>Xo(e)&&(e=e.trim(),Hu(e))?e:null,Hu=e=>e.length>0&&/(\/|\.)/.test(e),Xo=e=>typeof e=="string",Ao=e=>e.toLowerCase(),B6=(e,t=[])=>{const i={};return t.forEach(n=>{e.hasAttribute(n)&&(e.getAttribute(n)!==null&&(i[n]=e.getAttribute(n)),e.removeAttribute(n))}),i},R6=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",F6=e=>{const t=document.createElement("div");t.innerHTML=e;for(let n=t.childNodes.length-1;n>=0;n--)t.childNodes[n].nodeName.toLowerCase()!=="svg"&&t.removeChild(t.childNodes[n]);const i=t.firstElementChild;if(i&&i.nodeName.toLowerCase()==="svg"){const n=i.getAttribute("class")||"";if(i.setAttribute("class",(n+" s-ion-icon").trim()),Vu(i))return t.innerHTML}return""},Vu=e=>{if(e.nodeType===1){if(e.nodeName.toLowerCase()==="script")return!1;for(let t=0;te.startsWith("data:image/svg+xml"),H6=e=>e.indexOf(";utf8,")!==-1,wi=new Map,Rc=new Map;let Zr;const V6=(e,t)=>{let i=Rc.get(e);if(!i)if(typeof fetch<"u"&&typeof document<"u")if(j6(e)&&H6(e)){Zr||(Zr=new DOMParser);const o=Zr.parseFromString(e,"text/html").querySelector("svg");return o&&wi.set(e,o.outerHTML),Promise.resolve()}else i=fetch(e).then(n=>{if(n.ok)return n.text().then(o=>{o&&t!==!1&&(o=F6(o)),wi.set(e,o||"")});wi.set(e,"")}),Rc.set(e,i);else return wi.set(e,""),Promise.resolve();return i},W6=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",q6=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=Y6(),this.color=void 0,this.ios=void 0,this.md=void 0,this.flipRtl=void 0,this.name=void 0,this.src=void 0,this.icon=void 0,this.size=void 0,this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=B6(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,i,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const o=this.io=new window.IntersectionObserver(r=>{r[0].isIntersecting&&(o.disconnect(),this.io=void 0,n())},{rootMargin:i});o.observe(t)}else n()}loadIcon(){if(this.isVisible){const t=P6(this);t&&(wi.has(t)?this.svgContent=wi.get(t):V6(t,this.sanitize).then(()=>this.svgContent=wi.get(t)),this.didLoadIcon=!0)}this.iconName=ju(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:i,inheritedAttributes:n,el:o}=this,r=this.mode||"md",a=i?(i.includes("arrow")||i.includes("chevron"))&&t!==!1:!1,s=t||a;return p(Q,Object.assign({role:"img",class:Object.assign(Object.assign({[r]:!0},N6(this.color)),{["icon-".concat(this.size)]:!!this.size,"flip-rtl":s,"icon-rtl":s&&R6(o)})},n),this.svgContent?p("div",{class:"icon-inner",innerHTML:this.svgContent}):p("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return W6}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]),Y6=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",N6=e=>e?{"ion-color":!0,["ion-color-".concat(e)]:!0}:null;function U6(){if(typeof customElements>"u")return;["ion-icon"].forEach(t=>{switch(t){case"ion-icon":customElements.get(t)||customElements.define(t,q6);break}})}const G6=U6;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const X6=Ru;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Wu=Fu;/*! + * (C) Ionic http://ionicframework.com - MIT License + */function K6(e,t,i,n){let o;if(i==="md"?o=e==="top"?8:-8:o=e==="top"?10:-10,t&&ae){Z6(t,n);const r=t.getBoundingClientRect();return e==="top"?o+=r.bottom:e==="bottom"&&(o-=ae.innerHeight-r.top),{top:"".concat(o,"px"),bottom:"".concat(o,"px")}}else return{top:"calc(".concat(o,"px + var(--ion-safe-area-top, 0px))"),bottom:"calc(".concat(o,"px - var(--ion-safe-area-bottom, 0px))")}}function Z6(e,t){e.offsetParent===null&&ft("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",t)}const Ps=(e,t)=>Math.floor(e/2-t/2),Q6=(e,t)=>{const i=N(),n=N(),{position:o,top:r,bottom:a}=t,l=Lt(e).querySelector(".toast-wrapper");switch(n.addElement(l),o){case"top":n.fromTo("transform","translateY(-100%)","translateY(".concat(r,")"));break;case"middle":const c=Ps(e.clientHeight,l.clientHeight);l.style.top="".concat(c,"px"),n.fromTo("opacity",.01,1);break;default:n.fromTo("transform","translateY(100%)","translateY(".concat(a,")"));break}return i.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(n)},J6=(e,t)=>{const i=N(),n=N(),{position:o,top:r,bottom:a}=t,l=Lt(e).querySelector(".toast-wrapper");switch(n.addElement(l),o){case"top":n.fromTo("transform","translateY(".concat(r,")"),"translateY(-100%)");break;case"middle":n.fromTo("opacity",.99,0);break;default:n.fromTo("transform","translateY(".concat(a,")"),"translateY(100%)");break}return i.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(n)},t4=(e,t)=>{const i=N(),n=N(),{position:o,top:r,bottom:a}=t,l=Lt(e).querySelector(".toast-wrapper");switch(n.addElement(l),o){case"top":l.style.setProperty("transform","translateY(".concat(r,")")),n.fromTo("opacity",.01,1);break;case"middle":const c=Ps(e.clientHeight,l.clientHeight);l.style.top="".concat(c,"px"),n.fromTo("opacity",.01,1);break;default:l.style.setProperty("transform","translateY(".concat(a,")")),n.fromTo("opacity",.01,1);break}return i.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(n)},e4=e=>{const t=N(),i=N(),o=Lt(e).querySelector(".toast-wrapper");return i.addElement(o).fromTo("opacity",.99,0),t.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(i)},i4=(e,t,i)=>{const n=Lt(e).querySelector(".toast-wrapper"),o=e.clientHeight,r=n.getBoundingClientRect();let a=0;const s=.5,l=e.position==="middle"?.5:0,c=e.position==="top"?-1:1,d=Ps(o,r.height),h=[{offset:0,transform:"translateY(-".concat(d+r.height,"px)")},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:"translateY(".concat(d+r.height,"px)")}],u=N("toast-swipe-to-dismiss-animation").addElement(n).duration(100);switch(e.position){case"middle":a=o+r.height,u.keyframes(h),u.progressStart(!0,.5);break;case"top":a=r.bottom,u.keyframes([{offset:0,transform:"translateY(".concat(t.top,")")},{offset:1,transform:"translateY(-100%)"}]),u.progressStart(!0,0);break;case"bottom":default:a=o-r.top,u.keyframes([{offset:0,transform:"translateY(".concat(t.bottom,")")},{offset:1,transform:"translateY(100%)"}]),u.progressStart(!0,0);break}const m=x=>x*c/a,k=co({el:n,gestureName:"toast-swipe-to-dismiss",gesturePriority:lu,direction:"y",onMove:x=>{const C=l+m(x.deltaY);u.progressStep(C)},onEnd:x=>{const C=x.velocityY,I=(x.deltaY+C*1e3)/a*c;k.enable(!1);let v=!0,S=1,E=0,y=0;if(e.position==="middle"){v=I>=s/2||I<=-s/2,S=1,E=0;const $=n.getBoundingClientRect(),M=$.top-d,T="".concat(M,"px"),U=x.deltaY<=0?-1:1,j=(d+$.height)*U,ht=v?"".concat(j,"px"):"0px",at=[{offset:0,transform:"translateY(".concat(T,")")},{offset:1,transform:"translateY(".concat(ht,")")}];u.keyframes(at),y=j-M}else v=I>=s,S=v?1:0,E=m(x.deltaY),y=(v?1-E:E)*a;const A=Math.min(Math.abs(y)/Math.abs(C),200);u.onFinish(()=>{v?(i(),u.destroy()):(e.position==="middle"?u.keyframes(h).progressStart(!0,.5):u.progressStart(!0,0),k.enable(!0))},{oneTimeCallback:!0}).progressEnd(S,E,A)}});return k},n4=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",o4=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}",r4=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=L(this,"ionToastDidPresent",7),this.willPresent=L(this,"ionToastWillPresent",7),this.willDismiss=L(this,"ionToastWillDismiss",7),this.didDismiss=L(this,"ionToastDidDismiss",7),this.didPresentShorthand=L(this,"didPresent",7),this.willPresentShorthand=L(this,"willPresent",7),this.willDismissShorthand=L(this,"willDismiss",7),this.didDismissShorthand=L(this,"didDismiss",7),this.delegateController=Ss(this),this.lockController=xn(),this.triggerController=Er(),this.customHTMLEnabled=pt.get("innerHTMLTemplatesEnabled",Au),this.presented=!1,this.dispatchCancelHandler=t=>{const i=t.detail.role;if(Ii(i)){const n=this.getButtons().find(o=>o.role==="cancel");this.callButtonHandler(n)}},this.createSwipeGesture=t=>{(this.gesture=i4(this.el,t,()=>{this.dismiss(void 0,Ji)})).enable(!0)},this.destroySwipeGesture=()=>{const{gesture:t}=this;t!==void 0&&(t.destroy(),this.gesture=void 0)},this.prefersSwipeGesture=()=>{const{swipeGesture:t}=this;return t==="vertical"},this.revealContentToScreenReader=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.color=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.duration=pt.getNumber("toastDuration",0),this.header=void 0,this.layout="baseline",this.message=void 0,this.keyboardClose=!1,this.position="bottom",this.positionAnchor=void 0,this.buttons=void 0,this.translucent=!1,this.animated=!0,this.icon=void 0,this.htmlAttributes=void 0,this.swipeGesture=void 0,this.isOpen=!1,this.trigger=void 0}swipeGestureChanged(){this.destroySwipeGesture(),this.presented&&this.prefersSwipeGesture()&&this.createSwipeGesture(this.lastPresentedPosition)}onIsOpenChange(t,i){t===!0&&i===!1?this.present():t===!1&&i===!0&&this.dismiss()}triggerChanged(){const{trigger:t,el:i,triggerController:n}=this;t&&n.addClickListener(i,t)}connectedCallback(){ro(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){ao(this.el)}componentDidLoad(){this.isOpen===!0&>(()=>this.present()),this.triggerChanged()}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom();const{el:i,position:n}=this,o=this.getAnchorElement(),r=K6(n,o,F(this),i);this.lastPresentedPosition=r,await so(this,"toastEnter",Q6,t4,{position:n,top:r.top,bottom:r.bottom}),this.revealContentToScreenReader=!0,this.duration>0&&(this.durationTimeout=setTimeout(()=>this.dismiss(void 0,"timeout"),this.duration)),this.prefersSwipeGesture()&&this.createSwipeGesture(r),t()}async dismiss(t,i){var n,o;const r=await this.lockController.lock(),{durationTimeout:a,position:s,lastPresentedPosition:l}=this;a&&clearTimeout(a);const c=await lo(this,t,i,"toastLeave",J6,e4,{position:s,top:(n=l==null?void 0:l.top)!==null&&n!==void 0?n:"",bottom:(o=l==null?void 0:l.bottom)!==null&&o!==void 0?o:""});return c&&(this.delegateController.removeViewFromDom(),this.revealContentToScreenReader=!1),this.lastPresentedPosition=void 0,this.destroySwipeGesture(),r(),c}onDidDismiss(){return Fe(this.el,"ionToastDidDismiss")}onWillDismiss(){return Fe(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map(i=>typeof i=="string"?{text:i}:i):[]}getAnchorElement(){const{position:t,positionAnchor:i,el:n}=this;if(i!==void 0){if(t==="middle"&&i!==void 0){ft('The positionAnchor property is ignored when using position="middle".',this.el);return}if(typeof i=="string"){const o=document.getElementById(i);if(o===null){ft('An anchor element with an ID of "'.concat(i,'" was not found in the DOM.'),n);return}return o}if(i instanceof tt)return i;ft("Invalid positionAnchor value:",i,n)}}async buttonClick(t){const i=t.role;return Ii(i)?this.dismiss(void 0,i):await this.callButtonHandler(t)?this.dismiss(void 0,i):Promise.resolve()}async callButtonHandler(t){if(t!=null&&t.handler)try{if(await Qi(t.handler)===!1)return!1}catch(i){console.error(i)}return!0}renderButtons(t,i){if(t.length===0)return;const n=F(this),o={"toast-button-group":!0,["toast-button-group-".concat(i)]:!0};return p("div",{class:o},t.map(r=>p("button",Object.assign({},r.htmlAttributes,{type:"button",class:a4(r),tabIndex:0,onClick:()=>this.buttonClick(r),part:s4(r)}),p("div",{class:"toast-button-inner"},r.icon&&p("ion-icon",{"aria-hidden":"true",icon:r.icon,slot:r.text===void 0?"icon-only":void 0,class:"toast-button-icon"}),r.text),n==="md"&&p("ion-ripple-effect",{type:r.icon!==void 0&&r.text===void 0?"unbounded":"bounded"}))))}renderToastMessage(t,i=null){const{customHTMLEnabled:n,message:o}=this;return n?p("div",{key:t,"aria-hidden":i,class:"toast-message",part:"message",innerHTML:Su(o)}):p("div",{key:t,"aria-hidden":i,class:"toast-message",part:"message"},o)}renderHeader(t,i=null){return p("div",{key:t,class:"toast-header","aria-hidden":i,part:"header"},this.header)}render(){const{layout:t,el:i,revealContentToScreenReader:n,header:o,message:r}=this,a=this.getButtons(),s=a.filter(h=>h.side==="start"),l=a.filter(h=>h.side!=="start"),c=F(this),d={"toast-wrapper":!0,["toast-".concat(this.position)]:!0,["toast-layout-".concat(t)]:!0};return t==="stacked"&&s.length>0&&l.length>0&&ft("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",i),p(Q,Object.assign({tabindex:"-1"},this.htmlAttributes,{style:{zIndex:"".concat(6e4+this.overlayIndex)},class:xt(this.color,Object.assign(Object.assign({[c]:!0},ne(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),p("div",{class:d},p("div",{class:"toast-container",part:"container"},this.renderButtons(s,"start"),this.icon!==void 0&&p("ion-icon",{class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),p("div",{class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!n&&o!==void 0&&this.renderHeader("oldHeader","true"),!n&&r!==void 0&&this.renderToastMessage("oldMessage","true"),n&&o!==void 0&&this.renderHeader("header"),n&&r!==void 0&&this.renderToastMessage("header")),this.renderButtons(l,"end"))))}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:n4,md:o4}}},[33,"ion-toast",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],color:[513],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],duration:[2],header:[1],layout:[1],message:[1],keyboardClose:[4,"keyboard-close"],position:[1],positionAnchor:[1,"position-anchor"],buttons:[16],translucent:[4],animated:[4],icon:[1],htmlAttributes:[16],swipeGesture:[1,"swipe-gesture"],isOpen:[4,"is-open"],trigger:[1],revealContentToScreenReader:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),a4=e=>Object.assign({"toast-button":!0,"toast-button-icon-only":e.icon!==void 0&&e.text===void 0,["toast-button-".concat(e.role)]:e.role!==void 0,"ion-focusable":!0,"ion-activatable":!0},ne(e.cssClass)),s4=e=>Ii(e.role)?"button cancel":"button";function l4(){if(typeof customElements>"u")return;["ion-toast","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-toast":customElements.get(t)||customElements.define(t,r4);break;case"ion-icon":customElements.get(t)||ve();break;case"ion-ripple-effect":customElements.get(t)||se();break}})}const c4=l4;/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ko="ionKeyboardDidShow",qu="ionKeyboardDidHide",d4=150;let Zo={},Ge={},vn=!1;const h4=()=>{Zo={},Ge={},vn=!1},u4=e=>{if(Zw.getEngine())p4(e);else{if(!e.visualViewport)return;Ge=Fs(e.visualViewport),e.visualViewport.onresize=()=>{Uu(e),Yu()||Nu(e)?Ms(e):Rs(e)&&Bs(e)}}},p4=e=>{e.addEventListener("keyboardDidShow",t=>Ms(e,t)),e.addEventListener("keyboardDidHide",()=>Bs(e))},Ms=(e,t)=>{m4(e,t),vn=!0},Bs=e=>{f4(e),vn=!1},Yu=()=>{const e=(Zo.height-Ge.height)*Ge.scale;return!vn&&Zo.width===Ge.width&&e>d4},Nu=e=>vn&&!Rs(e),Rs=e=>vn&&Ge.height===e.innerHeight,m4=(e,t)=>{const i=t?t.keyboardHeight:e.innerHeight-Ge.height,n=new CustomEvent(Ko,{detail:{keyboardHeight:i}});e.dispatchEvent(n)},f4=e=>{const t=new CustomEvent(qu);e.dispatchEvent(t)},Uu=e=>{Zo=Object.assign({},Ge),Ge=Fs(e.visualViewport)},Fs=e=>({width:Math.round(e.width),height:Math.round(e.height),offsetTop:e.offsetTop,offsetLeft:e.offsetLeft,pageTop:e.pageTop,pageLeft:e.pageLeft,scale:e.scale}),g4=Object.freeze(Object.defineProperty({__proto__:null,KEYBOARD_DID_CLOSE:qu,KEYBOARD_DID_OPEN:Ko,copyVisualViewport:Fs,keyboardDidClose:Rs,keyboardDidOpen:Yu,keyboardDidResize:Nu,resetKeyboardAssist:h4,setKeyboardClose:Bs,setKeyboardOpen:Ms,startKeyboardAssist:u4,trackViewportChanges:Uu},Symbol.toStringTag,{value:"Module"}));/*! + * (C) Ionic http://ionicframework.com - MIT License + */var pn;(function(e){e.Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT"})(pn||(pn={}));const Gn={getEngine(){const e=Zi();if(e!=null&&e.isPluginAvailable("StatusBar"))return e.Plugins.StatusBar},supportsDefaultStatusBarStyle(){const e=Zi();return!!(e!=null&&e.PluginHeaders)},setStyle(e){const t=this.getEngine();t&&t.setStyle(e)},getStyle:async function(){const e=this.getEngine();if(!e)return pn.Default;const{style:t}=await e.getInfo();return t}},Fa=(e,t)=>{if(t===1)return 0;const i=1/(1-t),n=-(t*i);return e*i+n},Gu=()=>{!ae||ae.innerWidth>=768||!Gn.supportsDefaultStatusBarStyle()||Gn.setStyle({style:pn.Dark})},ja=(e=pn.Default)=>{!ae||ae.innerWidth>=768||!Gn.supportsDefaultStatusBarStyle()||Gn.setStyle({style:e})},Xu=async(e,t)=>{typeof e.canDismiss!="function"||!await e.canDismiss(void 0,Ji)||(t.isRunning()?t.onFinish(()=>{e.dismiss(void 0,"handler")},{oneTimeCallback:!0}):e.dismiss(void 0,"handler"))},Ha=e=>.00255275*2.71828**(-14.9619*e)-1.00255*2.71828**(-.0380968*e)+1,Qo={MIN_PRESENTING_SCALE:.93},b4=(e,t,i,n)=>{const r=e.offsetHeight;let a=!1,s=!1,l=null,c=null;const d=.2;let h=!0,u=0;const m=()=>l&&_i(l)?l.scrollY:!0,C=co({el:e,gestureName:"modalSwipeToClose",gesturePriority:lu,direction:"y",threshold:10,canStart:I=>{const v=I.event.target;return v===null||!v.closest?!0:(l=Cu(v),l?(_i(l)?c=Lt(l).querySelector(".inner-scroll"):c=l,!!!l.querySelector("ion-refresher")&&c.scrollTop===0):v.closest("ion-footer")===null)},onStart:I=>{const{deltaY:v}=I;h=m(),s=e.canDismiss!==void 0&&e.canDismiss!==!0,v>0&&l&&$a(l),t.progressStart(!0,a?1:0)},onMove:I=>{const{deltaY:v}=I;v>0&&l&&$a(l);const S=I.deltaY/r,E=S>=0&&s,y=E?d:.9999,A=E?Ha(S/y):S,$=Si(1e-4,A,y);t.progressStep($),$>=.5&&u<.5?ja(i):$<.5&&u>=.5&&Gu(),u=$},onEnd:I=>{const v=I.velocityY,S=I.deltaY/r,E=S>=0&&s,y=E?d:.9999,A=E?Ha(S/y):S,$=Si(1e-4,A,y),M=(I.deltaY+v*1e3)/r,T=!E&&M>=.5;let U=T?-.001:.001;T?(t.easing("cubic-bezier(0.32, 0.72, 0, 1)"),U+=Ti([0,0],[.32,.72],[0,1],[1,1],$)[0]):(t.easing("cubic-bezier(1, 0, 0.68, 0.28)"),U+=Ti([0,0],[1,0],[.68,.28],[1,1],$)[0]);const j=Fc(T?S*r:(1-$)*r,v);a=T,C.enable(!1),l&&Eu(l,h),t.onFinish(()=>{T||C.enable(!0)}).progressEnd(T?1:0,U,j),E&&$>y/4?Xu(e,t):T&&n()}});return C},Fc=(e,t)=>Si(400,e/Math.abs(t*1.1),500),Ku=e=>{const{currentBreakpoint:t,backdropBreakpoint:i}=e,n=i===void 0||i{const{currentBreakpoint:t,backdropBreakpoint:i}=e,n="calc(var(--backdrop-opacity) * ".concat(Fa(t,i),")"),o=[{offset:0,opacity:n},{offset:1,opacity:0}],r=[{offset:0,opacity:n},{offset:i,opacity:0},{offset:1,opacity:0}],a=N("backdropAnimation").keyframes(i!==0?r:o);return{wrapperAnimation:N("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(".concat(100-t*100,"%)")},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:a}},x4=()=>{const e=N().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),t=N().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:e,wrapperAnimation:t}},jc=(e,t)=>{const{presentingEl:i,currentBreakpoint:n}=t,o=Lt(e),{wrapperAnimation:r,backdropAnimation:a}=n!==void 0?Ku(t):x4();a.addElement(o.querySelector("ion-backdrop")),r.addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const s=N("entering-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(r);if(i){const l=window.innerWidth<768,c=i.tagName==="ION-MODAL"&&i.presentingElement!==void 0,d=Lt(i),h=N().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),u=document.body;if(l){const m=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",g=c?"-10px":m,f=Qo.MIN_PRESENTING_SCALE,k="translateY(".concat(g,") scale(").concat(f,")");h.afterStyles({transform:k}).beforeAddWrite(()=>u.style.setProperty("background-color","black")).addElement(i).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:k,borderRadius:"10px 10px 0 0"}]),s.addAnimation(h)}else if(s.addAnimation(a),!c)r.fromTo("opacity","0","1");else{const m=c?Qo.MIN_PRESENTING_SCALE:1,g="translateY(-10px) scale(".concat(m,")");h.afterStyles({transform:g}).addElement(d.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:g}]);const f=N().afterStyles({transform:g}).addElement(d.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:g}]);s.addAnimation([h,f])}}else s.addAnimation(a);return s},v4=()=>{const e=N().fromTo("opacity","var(--backdrop-opacity)",0),t=N().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:e,wrapperAnimation:t}},Hc=(e,t,i=500)=>{const{presentingEl:n,currentBreakpoint:o}=t,r=Lt(e),{wrapperAnimation:a,backdropAnimation:s}=o!==void 0?Zu(t):v4();s.addElement(r.querySelector("ion-backdrop")),a.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const l=N("leaving-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(i).addAnimation(a);if(n){const c=window.innerWidth<768,d=n.tagName==="ION-MODAL"&&n.presentingElement!==void 0,h=Lt(n),u=N().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(g=>{if(g!==1)return;n.style.setProperty("overflow",""),Array.from(m.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter(k=>k.presentingElement!==void 0).length<=1&&m.style.setProperty("background-color","")}),m=document.body;if(c){const g=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",f=d?"-10px":g,k=Qo.MIN_PRESENTING_SCALE,x="translateY(".concat(f,") scale(").concat(k,")");u.addElement(n).keyframes([{offset:0,filter:"contrast(0.85)",transform:x,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),l.addAnimation(u)}else if(l.addAnimation(s),!d)a.fromTo("opacity","1","0");else{const g=d?Qo.MIN_PRESENTING_SCALE:1,f="translateY(-10px) scale(".concat(g,")");u.addElement(h.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:f},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const k=N().addElement(h.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:f},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);l.addAnimation([u,k])}}else l.addAnimation(s);return l},w4=()=>{const e=N().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),t=N().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:e,wrapperAnimation:t}},y4=(e,t)=>{const{currentBreakpoint:i}=t,n=Lt(e),{wrapperAnimation:o,backdropAnimation:r}=i!==void 0?Ku(t):w4();return r.addElement(n.querySelector("ion-backdrop")),o.addElement(n.querySelector(".modal-wrapper")),N().addElement(e).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([r,o])},k4=()=>{const e=N().fromTo("opacity","var(--backdrop-opacity)",0),t=N().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:e,wrapperAnimation:t}},C4=(e,t)=>{const{currentBreakpoint:i}=t,n=Lt(e),{wrapperAnimation:o,backdropAnimation:r}=i!==void 0?Zu(t):k4();return r.addElement(n.querySelector("ion-backdrop")),o.addElement(n.querySelector(".modal-wrapper")),N().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,o])},E4=(e,t,i,n,o,r,a=[],s,l,c)=>{const d=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}],h=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-o,opacity:0},{offset:1,opacity:0}],u={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:o!==0?h:d},m=e.querySelector("ion-content"),g=i.clientHeight;let f=n,k=0,x=!1;const C=.95,I=r.childAnimations.find(at=>at.id==="wrapperAnimation"),v=r.childAnimations.find(at=>at.id==="backdropAnimation"),S=a[a.length-1],E=a[0],y=()=>{e.style.setProperty("pointer-events","auto"),t.style.setProperty("pointer-events","auto"),e.classList.remove("ion-disable-focus-trap")},A=()=>{e.style.setProperty("pointer-events","none"),t.style.setProperty("pointer-events","none"),e.classList.add("ion-disable-focus-trap")};I&&v&&(I.keyframes([...u.WRAPPER_KEYFRAMES]),v.keyframes([...u.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-f),f>o?y():A()),m&&f!==S&&(m.scrollY=!1);const $=at=>{const rt=at.event.target.closest("ion-content");return f=s(),!(f===1&&rt)},M=()=>{x=e.canDismiss!==void 0&&e.canDismiss!==!0&&E===0,m&&(m.scrollY=!1),gt(()=>{e.focus()}),r.progressStart(!0,1-f)},T=at=>{const rt=1-f,X=a.length>1?1-a[1]:void 0,H=rt+at.deltaY/g,It=X!==void 0&&H>=X&&x,Ot=It?C:.9999,At=It&&X!==void 0?X+Ha((H-X)/(Ot-X)):H;k=Si(1e-4,At,Ot),r.progressStep(k)},U=at=>{const rt=at.velocityY,X=(at.deltaY+rt*350)/g,H=f-X,It=a.reduce((Ot,At)=>Math.abs(At-H){const{breakpoint:rt,canDismiss:X,breakpointOffset:H,animated:It}=at,Ot=X&&rt===0,At=Ot?f:rt,Mt=At!==0;return f=0,I&&v&&(I.keyframes([{offset:0,transform:"translateY(".concat(H*100,"%)")},{offset:1,transform:"translateY(".concat((1-At)*100,"%)")}]),v.keyframes([{offset:0,opacity:"calc(var(--backdrop-opacity) * ".concat(Fa(1-H,o),")")},{offset:1,opacity:"calc(var(--backdrop-opacity) * ".concat(Fa(At,o),")")}]),r.progressStep(0)),ht.enable(!1),Ot?Xu(e,r):Mt||l(),new Promise(Qt=>{r.onFinish(()=>{Mt?I&&v?gt(()=>{I.keyframes([...u.WRAPPER_KEYFRAMES]),v.keyframes([...u.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-At),f=At,c(f),m&&f===a[a.length-1]&&(m.scrollY=!0),f>o?y():A(),ht.enable(!0),Qt()}):(ht.enable(!0),Qt()):Qt()},{oneTimeCallback:!0}).progressEnd(1,0,It?500:0)})},ht=co({el:i,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:$,onStart:M,onMove:T,onEnd:U});return{gesture:ht,moveSheetToBreakpoint:j}},S4=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}',A4=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}',I4=et(class extends tt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=L(this,"ionModalDidPresent",7),this.willPresent=L(this,"ionModalWillPresent",7),this.willDismiss=L(this,"ionModalWillDismiss",7),this.didDismiss=L(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=L(this,"ionBreakpointDidChange",7),this.didPresentShorthand=L(this,"didPresent",7),this.willPresentShorthand=L(this,"willPresent",7),this.willDismissShorthand=L(this,"willDismiss",7),this.didDismissShorthand=L(this,"didDismiss",7),this.ionMount=L(this,"ionMount",7),this.lockController=xn(),this.triggerController=Er(),this.coreDelegate=Es(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:i}=this;i!=="cycle"||t!==void 0||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;t===void 0&&this.dismiss(void 0,zi)},this.onLifecycle=t=>{const i=this.usersElement,n=z4[t.type];if(i&&n){const o=new CustomEvent(n,{bubbles:!1,cancelable:!1,detail:t.detail});i.dispatchEvent(o)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}onIsOpenChange(t,i){t===!0&&i===!1?this.present():t===!1&&i===!0&&this.dismiss()}triggerChanged(){const{trigger:t,el:i,triggerController:n}=this;t&&n.addClickListener(i,t)}breakpointsChanged(t){t!==void 0&&(this.sortedBreakpoints=t.sort((i,n)=>i-n))}connectedCallback(){const{el:t}=this;ro(t),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:i,el:n}=this,o=this.isSheetModal=t!==void 0&&i!==void 0;this.inheritedAttributes=ci(n,["aria-label","role"]),o&&(this.currentBreakpoint=this.initialBreakpoint),t!==void 0&&i!==void 0&&!t.includes(i)&&ft("Your breakpoints array must include the initialBreakpoint value."),ao(n)}componentDidLoad(){this.isOpen===!0&>(()=>this.present()),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const i=this.el.parentNode,n=this.inline=i!==null&&!this.hasController,o=this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate;return{inline:n,delegate:o}}async checkCanDismiss(t,i){const{canDismiss:n}=this;return typeof n=="function"?n(t,i):n}async present(){const t=await this.lockController.lock();if(this.presented){t();return}const{presentingElement:i,el:n}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:o,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await kr(r,n,this.component,["ion-page"],this.componentProps,o),Hn(n)?await Un(this.usersElement):this.keepContentsMounted||await pu(),Yt(()=>this.el.classList.add("show-modal"));const a=i!==void 0;a&&F(this)==="ios"&&(this.statusBarStyle=await Gn.getStyle(),Gu()),await so(this,"modalEnter",jc,y4,{presentingEl:i,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),typeof window<"u"&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),gt(()=>{this.gesture&&this.gesture.enable(!0)}))},window.addEventListener(Ko,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():a&&this.initSwipeToClose(),t()}initSwipeToClose(){var t;if(F(this)!=="ios")return;const{el:i}=this,n=this.leaveAnimation||pt.get("modalLeave",Hc),o=this.animation=n(i,{presentingEl:this.presentingElement});if(!Ta(i)){Oa(i);return}const a=(t=this.statusBarStyle)!==null&&t!==void 0?t:pn.Default;this.gesture=b4(i,o,a,()=>{this.gestureAnimationDismissing=!0,ja(this.statusBarStyle),this.animation.onFinish(async()=>{await this.dismiss(void 0,Ji),this.gestureAnimationDismissing=!1})}),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:i,backdropBreakpoint:n}=this;if(!t||i===void 0)return;const o=this.enterAnimation||pt.get("modalEnter",jc),r=this.animation=o(this.el,{presentingEl:this.presentingElement,currentBreakpoint:i,backdropBreakpoint:n});r.progressStart(!0,1);const{gesture:a,moveSheetToBreakpoint:s}=E4(this.el,this.backdropEl,t,i,n,r,this.sortedBreakpoints,()=>{var l;return(l=this.currentBreakpoint)!==null&&l!==void 0?l:0},()=>this.sheetOnDismiss(),l=>{this.currentBreakpoint!==l&&(this.currentBreakpoint=l,this.ionBreakpointDidChange.emit({breakpoint:l}))});this.gesture=a,this.moveSheetToBreakpoint=s,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish(async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,Ji),this.gestureAnimationDismissing=!1})}async dismiss(t,i){var n;if(this.gestureAnimationDismissing&&i!==Ji)return!1;const o=await this.lockController.lock();if(i!=="handler"&&!await this.checkCanDismiss(t,i))return o(),!1;const{presentingElement:r}=this;r!==void 0&&F(this)==="ios"&&ja(this.statusBarStyle),typeof window<"u"&&this.keyboardOpenCallback&&(window.removeEventListener(Ko,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const s=No.get(this)||[],l=await lo(this,t,i,"modalLeave",Hc,C4,{presentingEl:r,currentBreakpoint:(n=this.currentBreakpoint)!==null&&n!==void 0?n:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(l){const{delegate:c}=this.getDelegate();await Cs(c,this.usersElement),Yt(()=>this.el.classList.remove("show-modal")),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy(),s.forEach(d=>d.destroy())}return this.currentBreakpoint=void 0,this.animation=void 0,o(),l}onDidDismiss(){return Fe(this.el,"ionModalDidDismiss")}onWillDismiss(){return Fe(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal){ft("setCurrentBreakpoint is only supported on sheet modals.");return}if(!this.breakpoints.includes(t)){ft("Attempted to set invalid breakpoint value ".concat(t,". Please double check that the breakpoint value is part of your defined breakpoints."));return}const{currentBreakpoint:i,moveSheetToBreakpoint:n,canDismiss:o,breakpoints:r,animated:a}=this;i!==t&&n&&(this.sheetTransition=n({breakpoint:t,breakpointOffset:1-i,canDismiss:o!==void 0&&o!==!0&&r[0]===0,animated:a}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:i}=this;if(!t||i==null)return!1;const n=t.filter(s=>s!==0),r=(n.indexOf(i)+1)%n.length,a=n[r];return await this.setCurrentBreakpoint(a),!0}render(){const{handle:t,isSheetModal:i,presentingElement:n,htmlAttributes:o,handleBehavior:r,inheritedAttributes:a}=this,s=t!==!1&&i,l=F(this),c=n!==void 0&&l==="ios",d=r==="cycle";return p(Q,Object.assign({"no-router":!0,tabindex:"-1"},o,{style:{zIndex:"".concat(2e4+this.overlayIndex)},class:Object.assign({[l]:!0,"modal-default":!c&&!i,"modal-card":c,"modal-sheet":i,"overlay-hidden":!0},ne(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),p("ion-backdrop",{ref:h=>this.backdropEl=h,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),l==="ios"&&p("div",{class:"modal-shadow"}),p("div",Object.assign({role:"dialog"},a,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:h=>this.wrapperEl=h}),s&&p("button",{class:"modal-handle",tabIndex:d?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:d?this.onHandleClick:void 0,part:"handle"}),p("slot",null)))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:S4,md:A4}}},[33,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),z4={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};function _4(){if(typeof customElements>"u")return;["ion-modal","ion-backdrop"].forEach(t=>{switch(t){case"ion-modal":customElements.get(t)||customElements.define(t,I4);break;case"ion-backdrop":customElements.get(t)||$i();break}})}const T4=_4,Vc="update:modelValue",Qr="modelValue",O4="routerLink",Wc="navManager",$4="router",L4="aria",Hi=Symbol(),Jr={default:Hi},qc=e=>(e==null?void 0:e.split(" "))||[],D4=(e,t,i=[])=>{var n;return[...Array.from(((n=e.value)===null||n===void 0?void 0:n.classList)||[]),...i].filter((o,r,a)=>!t.has(o)&&a.indexOf(o)===r)},dt=(e,t,i=[],n,o)=>{t!==void 0&&t();const r=he((a,{attrs:s,slots:l,emit:c})=>{var d;let h=a[n];const u=Yi(),m=new Set(qc(s.class)),g={created:I=>{(Array.isArray(o)?o:[o]).forEach(S=>{I.addEventListener(S.toLowerCase(),E=>{h=(E==null?void 0:E.target)[n],c(Vc,h)})})}},f=Yd(),x=((d=f==null?void 0:f.appContext)===null||d===void 0?void 0:d.provides[Wc])?Xt(Wc):void 0,C=I=>{const{routerLink:v}=a;if(v!==Hi)if(x!==void 0){let S={event:I};for(const E in a){const y=a[E];a.hasOwnProperty(E)&&E.startsWith($4)&&y!==Hi&&(S[E]=y)}x.navigate(S)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{h=a[n],qc(s.class).forEach(y=>{m.add(y)});const I=a.onClick,v=y=>{I!==void 0&&I(y),y.defaultPrevented||C(y)};let S={ref:u,class:D4(u,m),onClick:v};for(const y in a){const A=a[y];(a.hasOwnProperty(y)&&A!==Hi||y.startsWith(L4))&&(S[y]=A)}n&&(a[Qr]!==Hi?S=Object.assign(Object.assign({},S),{[n]:a[Qr]}):h!==Hi&&(S=Object.assign(Object.assign({},S),{[n]:h})));const E=te(e,S,l.default&&l.default());return n===void 0?E:Bm(E,[[g]])}});return typeof r!="function"&&(r.name=e,r.props={[O4]:Jr},i.forEach(a=>{r.props[a]=Jr}),n&&(r.props[Qr]=Jr,r.emits=[Vc])),r},G3=dt("ion-accordion",V0,["value","disabled","readonly","toggleIcon","toggleIconSlot"]),X3=dt("ion-accordion-group",G0,["animated","multiple","value","disabled","readonly","expand","ionChange","ionValueChange"],"value","ion-change"),K3=dt("ion-badge",sx,["color"]),Z3=dt("ion-button",gx,["color","buttonType","disabled","expand","fill","routerDirection","routerAnimation","download","href","rel","shape","size","strong","target","type","form","ionFocus","ionBlur"]),Q3=dt("ion-buttons",wx,["collapse"]),J3=dt("ion-card",Sx,["color","button","type","disabled","download","href","rel","routerDirection","routerAnimation","target"]),tC=dt("ion-card-content",Tx),eC=dt("ion-card-header",Px,["color","translucent"]),iC=dt("ion-card-subtitle",jx,["color"]),nC=dt("ion-card-title",Yx,["color"]),oC=dt("ion-col",rv,["offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","pull","pullXs","pullSm","pullMd","pullLg","pullXl","push","pushXs","pushSm","pushMd","pushLg","pushXl","size","sizeXs","sizeSm","sizeMd","sizeLg","sizeXl"]),P4=dt("ion-content",uv,["color","fullscreen","forceOverscroll","scrollX","scrollY","scrollEvents","ionScrollStart","ionScroll","ionScrollEnd"]),rC=dt("ion-datetime",jw,["color","name","disabled","readonly","isDateEnabled","min","max","presentation","cancelText","doneText","clearText","yearValues","monthValues","dayValues","hourValues","minuteValues","locale","firstDayOfWeek","titleSelectedDatesFormatter","multiple","highlightedDates","value","showDefaultTitle","showDefaultButtons","showClearButton","showDefaultTimeLabel","hourCycle","size","preferWheel","ionCancel","ionChange","ionValueChange","ionFocus","ionBlur","ionStyle","ionRender"],"value","ion-change"),aC=dt("ion-fab",qw,["horizontal","vertical","edge","activated"]),sC=dt("ion-fab-button",Xw,["color","activated","disabled","download","href","rel","routerDirection","routerAnimation","target","show","translucent","type","size","closeIcon","ionFocus","ionBlur"]),lC=dt("ion-grid",ey,["fixed"]),cC=dt("ion-header",hy,["collapse","translucent"]),dC=dt("ion-input",ky,["color","accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","inputmode","helperText","label","labelPlacement","legacy","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","size","type","value","ionInput","ionChange","ionBlur","ionFocus","ionStyle"],"value","ion-input"),M4=dt("ion-item",Cy,["color","button","detail","detailIcon","disabled","download","fill","shape","href","rel","lines","counter","routerAnimation","routerDirection","target","type","counterFormatter"]),hC=dt("ion-item-divider",zy,["color","sticky"]),uC=dt("ion-item-group",Ly),pC=dt("ion-item-option",Ry,["color","disabled","download","expandable","href","rel","target","type"]),mC=dt("ion-item-options",Wy,["side","ionSwipe"]),fC=dt("ion-item-sliding",Ky,["disabled","ionDrag"]),B4=dt("ion-label",Zy,["color","position","ionColor","ionStyle"]),R4=dt("ion-list",ek,["lines","inset"]),F4=dt("ion-list-header",rk,["color","lines"]),j4=dt("ion-menu",Ck,["contentId","menuId","type","disabled","side","swipeGesture","maxEdgeStart","ionWillOpen","ionWillClose","ionDidOpen","ionDidClose","ionMenuChange"]),gC=dt("ion-menu-button",zk,["color","disabled","menu","autoHide","type"]),H4=dt("ion-menu-toggle",$k,["menu","autoHide"]),V4=dt("ion-note",Rk,["color"]),bC=dt("ion-row",Gk),xC=dt("ion-searchbar",t2,["color","animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","debounce","disabled","inputmode","enterkeyhint","name","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value","ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus","ionStyle"],"value","ion-input"),vC=dt("ion-segment",r2,["color","disabled","scrollable","swipeGesture","value","selectOnFocus","ionChange","ionSelect","ionStyle"],"value","ion-change"),wC=dt("ion-segment-button",h2,["disabled","layout","type","value"],"value","ion-change"),yC=dt("ion-select",H2,["cancelText","color","compareWith","disabled","fill","interface","interfaceOptions","justify","label","labelPlacement","legacy","multiple","name","okText","placeholder","selectedText","toggleIcon","expandedIcon","shape","value","ionChange","ionCancel","ionDismiss","ionFocus","ionBlur","ionStyle"],"value","ion-change"),kC=dt("ion-select-option",N2,["disabled","value"]),W4=dt("ion-split-pane",Q2,["contentId","disabled","when","ionSplitPaneVisible"]),CC=dt("ion-text",i6,["color"]),EC=dt("ion-textarea",l6,["color","autocapitalize","autofocus","clearOnEdit","debounce","disabled","fill","inputmode","enterkeyhint","maxlength","minlength","name","placeholder","readonly","required","spellcheck","cols","rows","wrap","autoGrow","value","counter","counterFormatter","errorText","helperText","label","labelPlacement","legacy","shape","ionChange","ionInput","ionStyle","ionBlur","ionFocus"],"value","ion-input"),SC=dt("ion-title",p6,["color","size","ionStyle"]),AC=dt("ion-toolbar",x6,["color"]);var De;(function(e){e.WillEnter="onIonViewWillEnter",e.DidEnter="onIonViewDidEnter",e.WillLeave="onIonViewWillLeave",e.DidLeave="onIonViewDidLeave"})(De||(De={}));const q4={[As]:De.WillEnter,[Is]:De.DidEnter,[Sr]:De.WillLeave,[Ar]:De.DidLeave},Yc={main:0},Y4=(e="main")=>{var t;const i=((t=Yc[e])!==null&&t!==void 0?t:0)+1;return Yc[e]=i,i.toString()},Io=(e,t,i)=>{e!=null&&e[i]&&e[i].bind(t==null?void 0:t.value)();const n=t==null?void 0:t.value;if(n!=null&&n[i]&&n[i](),n){const o=q4[i],r=n[o];r&&r.forEach(a=>a())}},Qu=()=>{if(typeof window<"u"){const e=window.Ionic;if(e&&e.config)return e.config}return null},N4=(e,t,i)=>{if(i){const n=i,o=n.proxy[e]||(n.proxy[e]=[]);n.exposed&&(n.exposed[e]=o);const r=(...a)=>{if(!n.isUnmounted)return a?t(...a):t()};return o.push(r),r}else console.warn("[@ionic/vue]: Ionic Lifecycle Hooks can only be used during execution of setup().")},Ir=e=>(t,i=Yd())=>N4(e,t,i),IC=Ir(De.WillEnter);Ir(De.DidEnter);Ir(De.WillLeave);Ir(De.DidLeave);const ta=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),U4=()=>({ael:(e,t,i,n)=>e.addEventListener(ta(t),i,n),rel:(e,t,i,n)=>e.removeEventListener(ta(t),i,n),ce:(e,t)=>new CustomEvent(ta(e),t)}),G4={async install(e,t={}){typeof document<"u"&&document.documentElement.classList.add("ion-ce");const{ael:i,rel:n,ce:o}=U4();C0(Object.assign(Object.assign({},t),{_ael:i,_rel:n,_ce:o}))}},X4=he((e,{attrs:t,slots:i})=>{C6();const n=Xt("navManager"),o=()=>{if(n===void 0)return;const r=t["default-href"]||t.defaultHref,a=t["router-animation"]||t.routerAnimation;n.handleNavigateBack(r,a)};return()=>te("ion-back-button",Object.assign({onClick:o},t),i.default&&i.default())});X4.name="IonBackButton";const zC=he({name:"IonPage",props:{registerIonPage:{type:Function,default:()=>{}}},mounted(){this.$props.registerIonPage(this.$refs.ionPage)},setup(e,{attrs:t,slots:i}){return()=>te("div",Object.assign(Object.assign({},t),{class:"ion-page",ref:"ionPage"}),i.default&&i.default())}}),Nc=e=>!e.classList.contains("ion-page-hidden")&&!e.classList.contains("ion-page-invisible"),Uc=Symbol(0),K4=he({name:"IonRouterOutlet",setup(){I6();const e=Xt(fr),t=ah(),i=Xt(Uc,0),n=de(()=>t.matched[i]);let o,r;Xi(Uc,i+1),Xi(oh,n);const a=Yi(),s=Y4("ion-router-outlet"),l=Xt("navManager"),c=Xt("viewStacks"),d=Kn([]);let h=!1,u;Gi(()=>[t,n.value],([v,S])=>{if(S!==void 0){const E=S!==o,y=v.matched[v.matched.length-1]===S&&v.path!==r;(E||y)&&C(n)}o=S,r=v.path});const m=()=>{const v=Qu();if(!(v&&v.get("swipeBackEnabled",a.value.mode==="ios")))return!1;const E=c.getViewStack(s);if(!E||E.length<=1)return!1;const y=l.getLeavingRouteInfo();return!!c.findViewItemByRouteInfo({pathname:y.pushedByRoute||""},s)},g=async()=>{const v=l.getLeavingRouteInfo(),{routerAnimation:S}=v,E=c.findViewItemByRouteInfo({pathname:v.pushedByRoute||""},s),y=c.findViewItemByRouteInfo(v,s);if(y){let A=S;const $=E.ionPageElement,M=y.ionPageElement,T=E.routerAnimation;A===void 0&&T!==void 0&&(A=T),y.routerAnimation=A,await k($,M,"back",l.canGoBack(2),!0,A)}return Promise.resolve()},f=v=>{if(v)h=!0,l.handleNavigateBack();else{const S=l.getCurrentRouteInfo(),E=c.findViewItemByRouteInfo({pathname:S.pushedByRoute||""},s);E.ionPageElement.setAttribute("aria-hidden","true"),E.ionPageElement.classList.add("ion-page-hidden")}};Gi(a,()=>{a.value.swipeHandler={canStart:m,onStart:g,onEnd:f}});const k=async(v,S,E,y,A,$)=>{if(h)return h=!1,Promise.resolve(!1);if(v===S)return Promise.resolve(!1);v.classList.add("ion-page-invisible");const M=E===void 0||E==="root"||E==="none";return await a.value.commit(v,S,{duration:M&&$===void 0?0:void 0,direction:E,showGoBack:y,progressAnimation:A,animationBuilder:$})},x=async()=>{const v=l.getCurrentRouteInfo(),{routerDirection:S,routerAction:E,routerAnimation:y,prevRouteLastPathname:A,delta:$}=v,M=c.findViewItemByRouteInfo(v,s);let T=c.findLeavingViewItemByRouteInfo(v,s);const U=M.ionPageElement;if(U===void 0&&console.warn("[@ionic/vue Warning]: The view you are trying to render for path ".concat(v.pathname," does not have the required component. Transitions and lifecycle methods may not work as expected.\n\nSee https://ionicframework.com/docs/vue/navigation#ionpage for more information.")),M!==T&&(!T&&A&&(T=c.findViewItemByPathname(A,s)),!(Nc(U)&&(T==null?void 0:T.ionPageElement)!==void 0&&!Nc(T.ionPageElement)))){if(Io(M.vueComponent,M.vueComponentRef,As),T!=null&&T.ionPageElement&&M!==T){let j=y;const ht=T.ionPageElement;Io(T.vueComponent,T.vueComponentRef,Sr);const at=M.routerAnimation;j===void 0&&S==="back"&&at!==void 0&&(j=at),T.routerAnimation=j,await k(U,ht,S,!!v.pushedByRoute,!1,j),ht.classList.add("ion-page-hidden"),ht.setAttribute("aria-hidden","true");const rt=c.size()===1;E==="replace"?(T.mount=!1,T.ionPageElement=void 0,T.ionRoute=!1):E==="push"&&S==="forward"?rt&&c.mountIntermediaryViews(s,T,$):S!=="none"&&T&&M!==T&&(T.mount=!1,T.ionPageElement=void 0,T.ionRoute=!1,rt&&c.unmountLeavingViews(s,M,$)),Io(T.vueComponent,T.vueComponentRef,Ar)}else requestAnimationFrame(()=>U.classList.remove("ion-page-invisible"));Io(M.vueComponent,M.vueComponentRef,Is),d.value=c.getChildrenToRender(s)}},C=v=>{const S=t.matched[0];if(u||(u=S.path),!v.value||v.value!==S&&S.path!==u)return;const E=l.getCurrentRouteInfo();let y=c.findViewItemByRouteInfo(E,s);y||(y=c.createViewItem(s,v.value.components.default,v.value,E),c.add(y)),y.mount?x():(y.mount=!0,y.registerCallback=()=>{x(),y.registerCallback=void 0}),d.value=c.getChildrenToRender(s)};return n.value&&C(n),os(()=>c.clear(s)),{id:s,components:d,injectedRoute:e,ionRouterOutlet:a,registerIonPage:(v,S)=>{const E=v.ionPageElement;c.registerIonPage(v,S),v.registerCallback?(S.classList.add("ion-page-invisible"),v.registerCallback()):E&&!E.classList.contains("ion-page-invisible")&&S.classList.remove("ion-page-invisible")}}},render(){const{components:e,registerIonPage:t,injectedRoute:i}=this;return te("ion-router-outlet",{ref:"ionRouterOutlet"},e&&e.map(n=>{var o,r;let a={ref:n.vueComponentRef,key:n.pathname,registerIonPage:d=>t(n,d)};const s=(r=(o=n.matchedRoute)===null||o===void 0?void 0:o.props)===null||r===void 0?void 0:r.default,c=s?s===!0?n.params:typeof s=="function"?(()=>{var d;const h=(d=n.vueComponentData)===null||d===void 0?void 0:d.propsFunctionResult;if(h)return h;{const u=s(i);return n.vueComponentData=Object.assign(Object.assign({},n.vueComponentData),{propsFunctionResult:u}),u}})():s:null;return a=Object.assign(Object.assign({},a),c),te(n.vueComponent,a)}))}}),Xn=Kn([]),Ju=he((e,{attrs:t,slots:i})=>(L6(),()=>te("ion-app",Object.assign({},t),[i.default&&i.default(),...Xn.value])));Ju.name="IonApp";const Z4=e=>{Xn.value=[...Xn.value,e]},Q4=e=>{Xn.value=Xn.value.filter(t=>t!==e)},tp=(e=Z4,t=Q4)=>{const i=new WeakMap;return{attachViewToDom:(r,a,s={},l)=>{const c=document.createElement("div");l&&c.classList.add(...l),r.appendChild(c);const d=te(bf,{to:c},te(a,Object.assign({},s)));return i.set(c,d),e(d),Promise.resolve(c)},removeViewFromDom:(r,a)=>{const s=i.get(a);return s&&t(s),Promise.resolve()}}},ep=he(e=>{Bk();const t=Kn([]),o=tp(r=>t.value=[...t.value,r],r=>t.value=t.value.filter(a=>a!==r));return()=>te("ion-nav",Object.assign(Object.assign({},e),{delegate:o}),t.value)});ep.name="IonNav";ep.props={animated:{type:Boolean,default:!0},animation:{type:Function,default:void 0},root:{type:[Function,Object,String],default:void 0},rootParams:{type:Object,default:void 0},swipeGesture:{type:Boolean,default:void 0}};const J4=he({name:"IonIcon",props:{color:String,flipRtl:Boolean,icon:String,ios:String,lazy:String,md:String,mode:String,name:String,size:String,src:String},setup(e,{slots:t}){return G6(),()=>{var i,n;const{icon:o,ios:r,md:a,mode:s}=e;let l;const c=Qu(),d=s||(c==null?void 0:c.get("mode"));return r||a?d==="ios"?l=(i=r!=null?r:a)!==null&&i!==void 0?i:o:l=(n=a!=null?a:r)!==null&&n!==void 0?n:o:l=o,te("ion-icon",Object.assign(Object.assign({},e),{icon:l}),t)}}}),Va=Symbol(),Gc={default:Va},ip=(e,t,i=[],n,o)=>{const s=o!==void 0?he((l,{slots:c,emit:d})=>{const h=[{componentEv:"".concat(e,"-will-present"),frameworkEv:"willPresent"},{componentEv:"".concat(e,"-did-present"),frameworkEv:"didPresent"},{componentEv:"".concat(e,"-will-dismiss"),frameworkEv:"willDismiss"},{componentEv:"".concat(e,"-did-dismiss"),frameworkEv:"didDismiss"}];t!==void 0&&t();const u=Yi(),m=async()=>{l.isOpen&&await x(l)},g=async(C,I)=>{const v=C.props.isOpen,S=I.props.isOpen;v!==S&&(v?await x(l):await k())},f=async()=>{await k()},k=async()=>{u.value&&(await u.value,u.value=u.value.dismiss(),await u.value,u.value=void 0)},x=async C=>{var I;if(u.value&&await u.value,!((I=u.value)===null||I===void 0)&&I.present){await u.value.present();return}let v={};for(const E in C){const y=C[E];C.hasOwnProperty(E)&&y!==Va&&(v[E]=y)}delete v.onWillPresent,delete v.onDidPresent,delete v.onWillDismiss,delete v.onDidDismiss;const S=c.default&&c.default()[0];u.value=o.create(Object.assign(Object.assign({},v),{component:S})),u.value=await u.value,h.forEach(E=>{u.value.addEventListener(E.componentEv,()=>{d(E.frameworkEv)})}),await u.value.present()};return()=>te("div",{style:{display:"none"},onVnodeMounted:m,onVnodeUpdated:g,onVnodeBeforeUnmount:f,isOpen:l.isOpen===!0})}):he((l,{slots:c})=>{t!==void 0&&t();const d=Yi(!1),h=Yi();return Od(()=>{h.value.addEventListener("ion-mount",()=>d.value=!0),h.value.addEventListener("will-present",()=>d.value=!0),h.value.addEventListener("did-dismiss",()=>d.value=!1)}),()=>{let u={};for(const g in l){const f=l[g];l.hasOwnProperty(g)&&f!==Va&&(u[g]=f)}const m=()=>n?te("div",{className:"ion-delegate-host ion-page"},c):c;return te(e,Object.assign(Object.assign({},u),{ref:h}),d.value||u.keepContentsMounted||u.keepContentsMounted===""?m():void 0)}});return s.name=e,s.props={isOpen:Gc},i.forEach(l=>{s.props[l]=Gc}),o!==void 0&&(s.emits=["willPresent","didPresent","willDismiss","didDismiss"]),s},_C=ip("ion-alert",Wu,["animated","backdropDismiss","buttons","cssClass","enterAnimation","header","htmlAttributes","inputs","isOpen","keyboardClose","leaveAnimation","message","mode","subHeader","translucent","trigger"]),TC=ip("ion-modal",T4,["animated","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","enterAnimation","handle","handleBehavior","htmlAttributes","initialBreakpoint","isOpen","keepContentsMounted","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","trigger"],!0),js=(e,t,i=!1)=>{const n=i?tp():void 0,o=t.create.bind(t);return t.create=r=>(e(),o(Object.assign(Object.assign({},r),{delegate:n}))),t},OC=js(Wu,iu),$C=js(X6,nu),LC=js(c4,L1),t5=he({__name:"App",setup(e){return(t,i)=>(en(),dr(Vt(Ju),null,{default:Ce(()=>[Tt(Vt(W4),{"content-id":"main-content"},{default:Ce(()=>[Tt(Vt(rh),{name:"mainmenu"}),Tt(Vt(K4),{id:"main-content"})]),_:1})]),_:1}))}}),np=(e,t)=>{const i=e.__vccOpts||e;for(const[n,o]of t)i[n]=o;return i},e5=np(t5,[["__scopeId","data-v-c15c1daa"]]),i5=()=>{const e=[],t={},i=f=>{switch(f.routerAction){case"pop":o(f);break;default:r(f);break}f.routerDirection==="root"&&(a(),r(f))},n=f=>{const k=e.findIndex(C=>C.id===f.id);k>-1&&e.splice(k,1,f);const x=t[f.tab||""];if(x){const C=x.findIndex(I=>I.id===f.id);C>-1?x.splice(C,1,f):x.push(f)}else f.tab&&(t[f.tab]=[f])},o=f=>{const k=s(f.tab);let x;if(k){for(x=k[k.length-1];x&&x.id!==f.id;)k.pop(),x=k[k.length-1];k.pop(),k.push(f)}for(x=e[e.length-1];x&&x.id!==f.id;)e.pop(),x=e[e.length-1];e.pop(),e.push(f)},r=f=>{const k=s(f.tab);k&&(k[k.length-1]&&k[k.length-1].id===f.id&&k.pop(),k.push(f)),e.push(f)},a=f=>{if(f){const{position:k,tab:x}=f,C=e.findIndex(S=>S.position===k);if(C===-1)return;e.splice(C);const I=S=>{const E=t[S].findIndex(y=>y.position===k);E!==-1&&t[S].splice(E)},v=t[x];if(x&&v)I(x);else for(const S in t)I(S)}else{for(const k in t)t[k]=[];e.length=0}},s=f=>{let k;return f&&(k=t[f],k||(k=t[f]=[])),k},l=()=>e.length,c=(f,k)=>{const x=k-f;return e[x]||d()},d=()=>e[e.length-1];return{current:c,size:l,last:d,add:i,canGoBack:(f=1,k,x)=>x-f>=k,update:n,getFirstRouteInfoForTab:f=>{const k=s(f);if(k)return k[0]},getCurrentRouteInfoForTab:f=>{const k=s(f);if(k)return k[k.length-1]},findLastLocation:(f,k=-1)=>{const x=s(f.tab);if(x){if(k<-1)return x[x.length-1+k];for(let C=x.length-2;C>=0;C--){const I=x[C];if(I&&I.pathname===f.pushedByRoute)return I}}if(k<-1)return e[e.length-1+k];for(let C=e.length-2;C>=0;C--){const I=e[C];if(I&&I.pathname===f.pushedByRoute)return I}},clearHistory:a}},Xc={main:0},op=(e="main")=>{var t;const i=((t=Xc[e])!==null&&t!==void 0?t:0)+1;return Xc[e]=i,i.toString()},n5=(e,t)=>{let i={direction:void 0,action:void 0,delta:void 0};t.afterEach((y,A,$)=>{if($)return;const{direction:M,action:T,delta:U}=i;r=e.history.state.position;const j=e.history.state.replaced?"replace":void 0;h(y,T||j,M,U),i={direction:void 0,action:void 0,delta:void 0}});const n=i5();let o=e.history.state.position,r=e.history.state.position,a,s;const l=[];typeof document<"u"&&document.addEventListener("ionBackButton",y=>{y.detail.register(0,A=>{e.history.go(-1),A()})}),e.history.listen((y,A,$)=>{i={delta:$.delta,action:$.type==="pop"&&$.delta>=1?"push":$.type,direction:$.direction===""?"forward":$.direction}});const c=(y,A)=>{const $=n.current(o,r);if($&&$.pushedByRoute){const M=n.findLastLocation($);M?(s=Object.assign(Object.assign({},M),{routerAction:"pop",routerDirection:"back",routerAnimation:A||$.routerAnimation}),$.lastPathname===$.pushedByRoute||M.pathname===$.pushedByRoute&&!$.tab&&!M.tab?t.back():t.go(M.position-$.position)):d(y,"pop","back",A)}else d(y,"pop","back",A)},d=(y,A,$,M,T)=>{I(A,$,M,T),A==="push"?t.push(y):t.replace(y)},h=(y,A,$,M)=>{let T;if(s)if(s.routerAction==="replace")T=n.current(o,r);else if(s.routerAction==="pop")T=n.current(o,r+1),A==="replace"&&n.clearHistory();else{const j=s.routerDirection==="root"?r:r-1;T=n.current(o,j)}else T=a;if(T||(T={pathname:"",search:""}),T.pathname+T.search!==y.fullPath){if(!s){if(A==="replace")s={routerAction:"replace",routerDirection:"none"};else if(A==="pop"){const X=n.current(o,r-M);if(X&&X.pushedByRoute){const H=n.findLastLocation(X,M);s=Object.assign(Object.assign({},H),{routerAction:"pop",routerDirection:"back"})}else s={routerAction:"pop",routerDirection:"none"}}s||(s={routerAction:"push",routerDirection:$||"forward"})}let j;if(s!=null&&s.id)j=Object.assign(Object.assign({},s),{lastPathname:T.pathname});else{const X=s.routerAction==="push"&&s.routerDirection==="forward";if(j=Object.assign(Object.assign({id:op("routeInfo")},s),{lastPathname:T.pathname,pathname:y.path,search:y.fullPath&&y.fullPath.split("?")[1]||"",params:y.params&&y.params,prevRouteLastPathname:T.lastPathname}),X)j.pushedByRoute=T.pathname!==""?T.pathname:void 0;else if(j.routerAction==="pop"){const H=n.findLastLocation(j);j.pushedByRoute=H==null?void 0:H.pushedByRoute}else if(j.routerAction==="push"&&j.tab!==T.tab){const H=n.getCurrentRouteInfoForTab(j.tab);j.pushedByRoute=H==null?void 0:H.pushedByRoute}else if(j.routerAction==="replace"){const H=n.current(o,r),It=H==null?void 0:H.pushedByRoute,Ot=It!==void 0&&It!==j.pathname?It:j.pushedByRoute;j.lastPathname=(H==null?void 0:H.pathname)||j.lastPathname,j.pushedByRoute=Ot,j.routerDirection=(H==null?void 0:H.routerDirection)||j.routerDirection,j.routerAnimation=(H==null?void 0:H.routerAnimation)||j.routerAnimation,j.prevRouteLastPathname=H==null?void 0:H.lastPathname}}j.position=r,j.delta=M;const ht=n.size(),at=r-o,rt=ht===at&&ht>0&&A==="replace";ht>at||rt?(j.routerAction==="push"||j.routerAction==="replace")&&M===void 0&&(n.clearHistory(j),n.add(j)):n.add(j),n.size()===1&&(o=j.position),a=j}s=void 0,l.forEach(j=>j(a))},u=()=>a,m=(y=1)=>n.canGoBack(y,o,r),g=y=>{const{routerAnimation:A,routerDirection:$,routerLink:M}=y;I("push",$,A),t.push(M)},f=y=>{const A=n.getFirstRouteInfoForTab(y);A&&t.go(A.position-r)},k=(y,A)=>{if(!A)return;const $=n.getCurrentRouteInfoForTab(y),[M]=A.split("?");$?(s=Object.assign(Object.assign({},s),{routerAction:"push",routerDirection:"none",tab:y}),$.pathname===M?t.push({path:$.pathname,query:xa($.search)}):t.push({path:M,query:xa($.search)})):d(M,"push","none",void 0,y)},x=y=>{const A=Object.assign({},n.current(o,r));A.tab!==y&&(A.tab=y,n.update(A));const $=n.findLastLocation(A);A.pushedByRoute!==A.lastPathname&&($==null?void 0:$.tab)!==y&&(A.pushedByRoute=void 0,n.update(A))},C=y=>{l.push(y)},I=(y="push",A="forward",$,M)=>{s={routerAction:y,routerDirection:A,routerAnimation:$,tab:M}};return{handleNavigate:d,getLeavingRouteInfo:()=>n.current(o,r),handleNavigateBack:c,handleSetCurrentTab:x,getCurrentRouteInfo:u,canGoBack:m,navigate:g,resetTab:f,changeTab:k,registerHistoryChangeListener:C,goBack:y=>{I("pop","back",y),t.back()},goForward:y=>{I("push","forward",y),t.forward()}}},o5=e=>{const t={},i=()=>Object.keys(t).length,n=x=>{delete t[x]},o=x=>t[x],r=(x,C)=>{x.ionPageElement=C,x.ionRoute=!0,x.matchedRoute.instances={default:x.vueComponentRef.value}},a=(x,C)=>d(x.pathname,C,!1),s=(x,C,I=!0)=>d(x.lastPathname,C,I),l=(x,C)=>d(x,C,!1),c=(x,C)=>C.find(I=>{if(I.pathname===x)return I}),d=(x,C,I=!1)=>{const v=S=>{if(I&&!S.ionRoute||x==="")return!1;const y=e.resolve(x).matched.find(A=>A===S.matchedRoute);if(y)return y.path.includes(":")&&x!==S.pathname?!1:S};if(C){const S=t[C];if(!S)return;const E=e?S.find(v):c(x,S);if(E)return E}else for(const S in t){const E=t[S],y=c(x,E);if(y)return y}};return{unmountLeavingViews:(x,C,I=1)=>{const v=t[x];if(!v)return;const S=v.findIndex(E=>E===C);for(let E=S+1;E{const v=t[x];if(!v)return;const S=v.findIndex(E=>E===C);for(let E=S+1;E({id:op("viewItem"),pathname:v.pathname,outletId:x,matchedRoute:I,ionPageElement:S,vueComponent:C,vueComponentRef:Kn(),ionRoute:!1,mount:!1,exact:v.pathname===I.path,params:v.params,vueComponentData:{}}),getChildrenToRender:x=>t[x]?t[x].filter(v=>v.mount):[],add:x=>{const{outletId:C}=x;t[C]?t[C].push(x):t[C]=[x]},remove:(x,C)=>{if(!C)throw Error("outletId required");const I=t[C];I&&(t[C]=I.filter(v=>v.id!==x.id))},registerIonPage:r,getViewStack:o,size:i}},r5=e=>{const t=Object.assign({},e);delete t.tabsPrefix;const i=ib(t),n=n5(e,i),o=o5(i),r=i.install.bind(i);i.install=s=>{s.provide("navManager",n),s.provide("viewStacks",o),r(s)};const a=i.isReady.bind(i);return i.isReady=()=>a(),i},a5=e=>yg(e),DC="data:image/svg+xml;utf8,",PC="data:image/svg+xml;utf8,",s5="data:image/svg+xml;utf8,",l5="data:image/svg+xml;utf8,",MC="data:image/svg+xml;utf8,",BC="data:image/svg+xml;utf8,",RC="data:image/svg+xml;utf8,",FC="data:image/svg+xml;utf8,",jC="data:image/svg+xml;utf8,",HC="data:image/svg+xml;utf8,",c5="data:image/svg+xml;utf8,",d5="data:image/svg+xml;utf8,",VC="data:image/svg+xml;utf8,",WC="data:image/svg+xml;utf8,",h5="data:image/svg+xml;utf8,",u5="data:image/svg+xml;utf8,",qC="data:image/svg+xml;utf8,",YC="data:image/svg+xml;utf8,",NC="data:image/svg+xml;utf8,",UC="data:image/svg+xml;utf8,",GC="data:image/svg+xml;utf8,",XC="data:image/svg+xml;utf8,",p5="data:image/svg+xml;utf8,",m5="data:image/svg+xml;utf8,",KC="data:image/svg+xml;utf8,",ZC="data:image/svg+xml;utf8,",QC="data:image/svg+xml;utf8,",JC="data:image/svg+xml;utf8,",tE="data:image/svg+xml;utf8,",eE="data:image/svg+xml;utf8,",f5="data:image/svg+xml;utf8,",g5="data:image/svg+xml;utf8,",iE="data:image/svg+xml;utf8,",nE="data:image/svg+xml;utf8,",oE="data:image/svg+xml;utf8,",rE="data:image/svg+xml;utf8,",aE="data:image/svg+xml;utf8,",sE="data:image/svg+xml;utf8,",lE="data:image/svg+xml;utf8,",cE="data:image/svg+xml;utf8,",b5="data:image/svg+xml;utf8,",x5="data:image/svg+xml;utf8,",dE="data:image/svg+xml;utf8,",v5="data:image/svg+xml;utf8,",w5="data:image/svg+xml;utf8,",y5=he({__name:"MenuMain",setup(e){const t=[{title:"Einsatzpläne",url:"/riskassessment",iosIcon:c5,mdIcon:d5},{title:"Gefährdungen",url:"/risks",iosIcon:v5,mdIcon:w5},{title:"Maßnahmen",url:"/measures",iosIcon:b5,mdIcon:x5},{title:"Mitarbeiter",url:"/technicians",iosIcon:f5,mdIcon:g5},{title:"Ausrüstung",url:"/equipment",iosIcon:h5,mdIcon:u5},{title:"Favorites",url:"/folder/Favorites",iosIcon:p5,mdIcon:m5},{title:"Archived",url:"/folder/Archived",iosIcon:s5,mdIcon:l5}],i=de(()=>{const n=ah().path;let o=-1;return t.forEach((r,a)=>{n.startsWith(r.url)&&(o=a)}),o});return(n,o)=>(en(),dr(Vt(j4),{"content-id":"main-content",type:"overlay"},{default:Ce(()=>[Tt(Vt(P4),null,{default:Ce(()=>[Tt(Vt(R4),{id:"mainmenu-list"},{default:Ce(()=>[Tt(Vt(F4),null,{default:Ce(()=>[To("RopeRisk Pro")]),_:1}),Tt(Vt(V4),null,{default:Ce(()=>[To("hi@ionicframework.com")]),_:1}),(en(),xf(ge,null,Xm(t,(r,a)=>Tt(Vt(H4),{"auto-hide":!1,key:a},{default:Ce(()=>[Tt(Vt(M4),{onClick:s=>n.$route.path==="/"?n.$router.push(r.url):n.$router.replace(r.url),"router-direction":"root",lines:"none",detail:!1,class:nr(["hydrated",{selected:i.value===a}])},{default:Ce(()=>[Tt(Vt(J4),{"aria-hidden":"true",slot:"start",ios:r.iosIcon,md:r.mdIcon},null,8,["ios","md"]),Tt(Vt(B4),null,{default:Ce(()=>[To(Wp(r.title),1)]),_:2},1024)]),_:2},1032,["onClick","class"])]),_:2},1024)),64))]),_:1})]),_:1})]),_:1}))}}),_t=np(y5,[["__scopeId","data-v-188ea549"]]),k5=[{path:"",components:{default:()=>ut(()=>import("./LandingPage-3V93WHBH.js"),__vite__mapDeps([0,1])),mainmenu:_t},meta:{title:"Home"}},{path:"/risks",components:{default:()=>ut(()=>import("./RiskCatalogPage-jm6FPomx.js"),__vite__mapDeps([2,3,4,5,6,1])),mainmenu:_t},meta:{title:"Gefährdungskatalog"}},{path:"/risks/:id(\\d+)",components:{default:()=>ut(()=>import("./RiskDetailsPage-hImwSlZO.js"),__vite__mapDeps([7,5,4,6,8,9,10,11])),mainmenu:_t},meta:{title:"Gefährdungsdetails"}},{path:"/measures",components:{default:()=>ut(()=>import("./MeasuresCatalogPage-5rpP6tEC.js"),__vite__mapDeps([12,1,8,9,4,6])),mainmenu:_t},meta:{title:"Maßnahmen"}},{path:"/measures/:id(\\d+)",components:{default:()=>ut(()=>import("./MeasureDetailsPage-af5t5lTX.js"),__vite__mapDeps([13,14,10,4,9,5,6])),mainmenu:_t},meta:{title:"Details"}},{path:"/measures/:id(\\d+)/edit",components:{default:()=>ut(()=>import("./MeasureEditPage-fpofoCRn.js"),__vite__mapDeps([15,11,4,14,10,9,5,6,16,3])),mainmenu:_t},meta:{title:"Maßnahme bearbeiten"}},{path:"/measures/new",components:{default:()=>ut(()=>import("./MeasureEditPage-fpofoCRn.js"),__vite__mapDeps([15,11,4,14,10,9,5,6,16,3])),mainmenu:_t},meta:{title:"Neue Maßnahme"}},{path:"/technicians",components:{default:()=>ut(()=>import("./TechnicianCatalogPage-f5XFi-9w.js"),__vite__mapDeps([17,18,9,4,6,1])),mainmenu:_t},meta:{title:"Personal"}},{path:"/technicians/edit/:id",components:{default:()=>ut(()=>import("./TechnicianEditPage-MxOvfvuk.js"),__vite__mapDeps([19,11,4])),mainmenu:_t},meta:{title:"Bearbeiten"}},{path:"/technicians/new",components:{default:()=>ut(()=>import("./TechnicianEditPage-MxOvfvuk.js"),__vite__mapDeps([19,11,4])),mainmenu:_t},meta:{title:"Neuer Mitarbeiter"}},{path:"/riskassessment",components:{default:()=>ut(()=>import("./RiskAssessmentListPage-RxhsctLC.js"),__vite__mapDeps([20,4,21,6,5,1])),mainmenu:_t},meta:{title:"Einsatzpläne"}},{path:"/riskassessment/:id(\\d+)",components:{default:()=>ut(()=>import("./RAEditOverview-iBe6H-Vh.js"),__vite__mapDeps([22,21,4,6,5,23,24])),mainmenu:_t},meta:{title:"Einsatzplanung",sectionTitle:"Übersicht"}},{path:"/riskassessment/:id(\\d+)/general",components:{default:()=>ut(()=>import("./RAEditGeneral-EGQFgfrA.js"),__vite__mapDeps([25,21,4,6,5,23])),mainmenu:_t},meta:{sectionTitle:"Allgemeines",lastSection:void 0,nextSection:"location"}},{path:"/riskassessment/:id(\\d+)/location",components:{default:()=>ut(()=>import("./RAEditLocation-hdzOW14o.js"),__vite__mapDeps([26,21,4,6,5,23,27])),mainmenu:_t},meta:{sectionTitle:"Ort",lastSection:"general",nextSection:"date"}},{path:"/riskassessment/:id(\\d+)/date",components:{default:()=>ut(()=>import("./RAEditDate-2a9-RHq5.js"),__vite__mapDeps([28,21,4,6,5,23])),mainmenu:_t},meta:{sectionTitle:"Zeitraum",lastSection:"location",nextSection:"equipment"}},{path:"/riskassessment/:id(\\d+)/equipment",components:{default:()=>ut(()=>import("./RAEditEquipment-qHDJOFsK.js"),__vite__mapDeps([29,30,9,4,6,21,5,23])),mainmenu:_t},meta:{sectionTitle:"Ausrüstung",lastSection:"date",nextSection:"technicians"}},{path:"/riskassessment/:id(\\d+)/technicians",components:{default:()=>ut(()=>import("./RAEditTechnicians-NY5x7qs-.js"),__vite__mapDeps([31,18,9,4,6,21,5,23])),mainmenu:_t},meta:{sectionTitle:"Personal",lastSection:"equipment",nextSection:"access"}},{path:"/riskassessment/:id(\\d+)/access",components:{default:()=>ut(()=>import("./RAEditAccess-FLjc5L4p.js"),__vite__mapDeps([32,21,4,6,5,23])),mainmenu:_t},meta:{sectionTitle:"Zugang",lastSection:"technicians",nextSection:"rescue"}},{path:"/riskassessment/:id(\\d+)/rescue",components:{default:()=>ut(()=>import("./RAEditRescue-iPh9mXkA.js"),__vite__mapDeps([33,21,4,6,5,23])),mainmenu:_t},meta:{sectionTitle:"Rettung",lastSection:"access",nextSection:"risks"}},{path:"/riskassessment/:id(\\d+)/risks",components:{default:()=>ut(()=>import("./RAEditRisks-RehlTfpG.js"),__vite__mapDeps([34,21,4,6,5,3,16,35,23,36])),mainmenu:_t},meta:{sectionTitle:"Gefährdungen",lastSection:"rescue",nextSection:void 0}},{path:"/riskassessment/:id(\\d+)/risks/:riskId(\\d+)",components:{default:()=>ut(()=>import("./RAEditRiskEntry-pnSiEAko.js"),__vite__mapDeps([37,21,4,6,5,8,9,35,23])),mainmenu:_t},meta:{sectionTitle:"Gefährdungen",lastSection:"risks",nextSection:void 0}},{path:"/riskassessment/:id(\\d+)/risks/:riskId(\\d+)/addmeasures",components:{default:()=>ut(()=>import("./RAEditRiskEntryMeasures-zG8H-6Om.js"),__vite__mapDeps([38,21,4,6,5,10,8,9,23])),mainmenu:_t},meta:{sectionTitle:"Gefährdungen",lastSection:"risks",nextSection:void 0}},{path:"/riskassessment/:id(\\d+)/export",components:{default:()=>ut(()=>import("./RiskAssessmentExport-kRQ2n3ND.js"),__vite__mapDeps([39,21,4,6,5,23,40])),mainmenu:_t},meta:{sectionTitle:"Gefährdungen",lastSection:"risks",nextSection:void 0}},{path:"/equipment",components:{default:()=>ut(()=>import("./EquipmentCatalogPage-vFC-50U8.js"),__vite__mapDeps([41,1,30,9,4,6])),mainmenu:_t},meta:{title:"Ausrüstungskatalog"}},{path:"/equipment/new",components:{default:()=>ut(()=>import("./EquipmentEditPage-FFbluN7d.js"),__vite__mapDeps([42,11,4,14,10,9,5,6,16,3])),mainmenu:_t},meta:{title:"Bearbeiten"}},{path:"/equipment/:id(\\d+)",components:{default:()=>ut(()=>import("./EquipmentEditPage-FFbluN7d.js"),__vite__mapDeps([42,11,4,14,10,9,5,6,16,3])),mainmenu:_t},meta:{title:"Neu"}}],rp=r5({history:a5("/ra/"),routes:k5});async function C5(){return await navigator.storage&&navigator.storage.persist&&navigator.storage.persist()}async function E5(){return await navigator.storage&&navigator.storage.persisted&&navigator.storage.persisted()}E5().then(async e=>{e?console.log(":) Storage is successfully persisted."):(console.log(":( Storage is not persisted."),console.log("Trying to persist..:"),await C5()?console.log(":) We successfully turned the storage to be persisted."):console.log(":( Failed to make storage persisted"))});const S5=ig(e5).use(G4).use(rp);rp.isReady().then(()=>{S5.mount("#app")});export{Gi as $,cC as A,P4 as B,zC as C,dC as D,O5 as E,ge as F,Yi as G,lC as H,R4 as I,bC as J,oC as K,yC as L,kC as M,EC as N,J3 as O,eC as P,nC as Q,tC as R,$5 as S,TC as T,P5 as U,Xm as V,iC as W,HC as X,cE as Y,rr as Z,np as _,z5 as __vite_legacy_guard,qd as a,cn as a$,FC as a0,qC as a1,QC as a2,jC as a3,WC as a4,eE as a5,KC as a6,JC as a7,dE as a8,_5 as a9,RC as aA,YC as aB,sE as aC,iE as aD,lE as aE,BC as aF,rE as aG,OC as aH,CC as aI,oE as aJ,LC as aK,$C as aL,VC as aM,Le as aN,co as aO,Si as aP,N as aQ,r3 as aR,$n as aS,M5 as aT,B5 as aU,ln as aV,Cu as aW,Re as aX,Yt as aY,d3 as aZ,Zw as a_,T5 as aa,ZC as ab,xC as ac,rC as ad,wC as ae,vC as af,K3 as ag,L5 as ah,IC as ai,V4 as aj,aE as ak,gC as al,_C as am,X3 as an,G3 as ao,GC as ap,uC as aq,hC as ar,PC as as,fC as at,mC as au,pC as av,nE as aw,XC as ax,NC as ay,UC as az,Tt as b,Vn as b0,xc as b1,ae as b2,gt as b3,bc as b4,h3 as b5,dr as c,he as d,de as e,Vt as f,xf as g,F4 as h,B4 as i,To as j,Z3 as k,D5 as l,sC as m,J4 as n,en as o,DC as p,aC as q,M4 as r,AC as s,Wp as t,ah as u,Q3 as v,Ce as w,MC as x,SC as y,tE as z}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/LandingPage-3V93WHBH.js","assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js","assets/RiskCatalogPage-jm6FPomx.js","assets/RiskCatalog.vue_vue_type_script_setup_true_lang-t3Akc4GU.js","assets/helpers-ZGJup-tE.js","assets/liveriskstree-S1mQ308m.js","assets/livequery-N-IbBJej.js","assets/RiskDetailsPage-hImwSlZO.js","assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-Z3tgqIYP.js","assets/GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js","assets/RiskListItem-_kbE0JWc.js","assets/TemplateGenericEditPage-c3J_MoRf.js","assets/MeasuresCatalogPage-5rpP6tEC.js","assets/MeasureDetailsPage-af5t5lTX.js","assets/RiskList.vue_vue_type_script_setup_true_lang-RlQXPtnM.js","assets/MeasureEditPage-fpofoCRn.js","assets/GenericEditModal-HfPjcc9X.js","assets/TechnicianCatalogPage-f5XFi-9w.js","assets/TechniciansList.vue_vue_type_script_setup_true_lang-6ejC1Akr.js","assets/TechnicianEditPage-MxOvfvuk.js","assets/RiskAssessmentListPage-RxhsctLC.js","assets/riskassessment-gvIk_m2h.js","assets/RAEditOverview-iBe6H-Vh.js","assets/TemplateRiskAssessmentPage-8r-vP2g1.js","assets/RAEditOverview-pwIFC1Ym.css","assets/RAEditGeneral-EGQFgfrA.js","assets/RAEditLocation-hdzOW14o.js","assets/RAEditLocation-0wpWKMyo.css","assets/RAEditDate-2a9-RHq5.js","assets/RAEditEquipment-qHDJOFsK.js","assets/EquipmentList.vue_vue_type_script_setup_true_lang-LrAGbvfC.js","assets/RAEditTechnicians-NY5x7qs-.js","assets/RAEditAccess-FLjc5L4p.js","assets/RAEditRescue-iPh9mXkA.js","assets/RAEditRisks-RehlTfpG.js","assets/AddedByList.vue_vue_type_script_setup_true_lang-Uj9nWl0E.js","assets/RAEditRisks-93pj5IUn.css","assets/RAEditRiskEntry-pnSiEAko.js","assets/RAEditRiskEntryMeasures-zG8H-6Om.js","assets/RiskAssessmentExport-kRQ2n3ND.js","assets/RiskAssessmentExport-tj9T0tA_.css","assets/EquipmentCatalogPage-vFC-50U8.js","assets/EquipmentEditPage-FFbluN7d.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} \ No newline at end of file diff --git a/ra/assets/index-legacy-l9aK7RKf.js b/ra/assets/index-legacy-l9aK7RKf.js new file mode 100644 index 0000000..3524b62 --- /dev/null +++ b/ra/assets/index-legacy-l9aK7RKf.js @@ -0,0 +1,124 @@ +System.register([],(function(t,e){"use strict";return{execute:function(){var i=document.createElement("style");function o(t,e){const i=Object.create(null),o=t.split(",");for(let n=0;n!!i[t.toLowerCase()]:t=>!!i[t]}i.textContent='ion-menu ion-content[data-v-c15c1daa]{--background: var(--ion-item-background, var(--ion-background-color, #fff))}ion-menu.md ion-content[data-v-c15c1daa]{--padding-start: 8px;--padding-end: 8px;--padding-top: 20px;--padding-bottom: 20px}ion-menu.md ion-list[data-v-c15c1daa]{padding:20px 0}ion-menu.md ion-note[data-v-c15c1daa]{margin-bottom:30px}ion-menu.md ion-list-header[data-v-c15c1daa],ion-menu.md ion-note[data-v-c15c1daa]{padding-left:10px}ion-menu.md ion-list#inbox-list ion-list-header[data-v-c15c1daa]{font-size:22px;font-weight:600;min-height:20px}ion-menu.md ion-list#labels-list ion-list-header[data-v-c15c1daa]{font-size:16px;margin-bottom:18px;color:#757575;min-height:26px}ion-menu.md ion-item[data-v-c15c1daa]{--padding-start: 10px;--padding-end: 10px;border-radius:4px}ion-menu.md ion-item.selected[data-v-c15c1daa]{--background: rgba(var(--ion-color-primary-rgb), .14)}ion-menu.md ion-item.selected ion-icon[data-v-c15c1daa]{color:var(--ion-color-primary)}ion-menu.md ion-item ion-icon[data-v-c15c1daa]{color:#616e7e}ion-menu.md ion-item ion-label[data-v-c15c1daa]{font-weight:500}ion-menu.ios ion-content[data-v-c15c1daa]{--padding-bottom: 20px}ion-menu.ios ion-list[data-v-c15c1daa]{padding:20px 0 0}ion-menu.ios ion-note[data-v-c15c1daa]{line-height:24px;margin-bottom:20px}ion-menu.ios ion-item[data-v-c15c1daa]{--padding-start: 16px;--padding-end: 16px;--min-height: 50px}ion-menu.ios ion-item.selected ion-icon[data-v-c15c1daa]{color:var(--ion-color-primary)}ion-menu.ios ion-item ion-icon[data-v-c15c1daa]{font-size:24px;color:#73849a}ion-menu.ios ion-list#labels-list ion-list-header[data-v-c15c1daa]{margin-bottom:8px}ion-menu.ios ion-list-header[data-v-c15c1daa],ion-menu.ios ion-note[data-v-c15c1daa]{padding-left:16px;padding-right:16px}ion-menu.ios ion-note[data-v-c15c1daa]{margin-bottom:8px}ion-note[data-v-c15c1daa]{display:inline-block;font-size:16px;color:var(--ion-color-medium-shade)}ion-item.selected[data-v-c15c1daa]{--color: var(--ion-color-primary)}ion-menu ion-content[data-v-188ea549]{--background: var(--ion-item-background, var(--ion-background-color, #fff))}ion-menu.md ion-content[data-v-188ea549]{--padding-start: 8px;--padding-end: 8px;--padding-top: 20px;--padding-bottom: 20px}ion-menu.md ion-list[data-v-188ea549]{padding:20px 0}ion-menu.md ion-note[data-v-188ea549]{margin-bottom:30px}ion-menu.md ion-list-header[data-v-188ea549],ion-menu.md ion-note[data-v-188ea549]{padding-left:10px}ion-menu.md ion-list#mainmenu-list ion-list-header[data-v-188ea549]{font-size:22px;font-weight:600;min-height:20px}ion-menu.md ion-list#labels-list ion-list-header[data-v-188ea549]{font-size:16px;margin-bottom:18px;color:#757575;min-height:26px}ion-menu.md ion-item[data-v-188ea549]{--padding-start: 10px;--padding-end: 10px;border-radius:4px}ion-menu.md ion-item.selected[data-v-188ea549]{--background: rgba(var(--ion-color-primary-rgb), .14)}ion-menu.md ion-item.selected ion-icon[data-v-188ea549]{color:var(--ion-color-primary)}ion-menu.md ion-item ion-icon[data-v-188ea549]{color:#616e7e}ion-menu.md ion-item ion-label[data-v-188ea549]{font-weight:500}ion-menu.ios ion-content[data-v-188ea549]{--padding-bottom: 20px}ion-menu.ios ion-list[data-v-188ea549]{padding:20px 0 0}ion-menu.ios ion-note[data-v-188ea549]{line-height:24px;margin-bottom:20px}ion-menu.ios ion-item[data-v-188ea549]{--padding-start: 16px;--padding-end: 16px;--min-height: 50px}ion-menu.ios ion-item.selected ion-icon[data-v-188ea549]{color:var(--ion-color-primary)}ion-menu.ios ion-item ion-icon[data-v-188ea549]{font-size:24px;color:#73849a}ion-menu.ios ion-list#labels-list ion-list-header[data-v-188ea549]{margin-bottom:8px}ion-menu.ios ion-list-header[data-v-188ea549],ion-menu.ios ion-note[data-v-188ea549]{padding-left:16px;padding-right:16px}ion-menu.ios ion-note[data-v-188ea549]{margin-bottom:8px}ion-note[data-v-188ea549]{display:inline-block;font-size:16px;color:var(--ion-color-medium-shade)}ion-item.selected[data-v-188ea549]{--color: var(--ion-color-primary)}html.ios{--ion-default-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", sans-serif}html.md{--ion-default-font: "Roboto", "Helvetica Neue", sans-serif}html{--ion-default-dynamic-font: -apple-system-body;--ion-font-family: var(--ion-default-font)}body{background:var(--ion-background-color)}body.backdrop-no-scroll{overflow:hidden}html.ios ion-modal.modal-card ion-header ion-toolbar:first-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:first-of-type,html.ios ion-modal ion-footer ion-toolbar:first-of-type{padding-top:6px}html.ios ion-modal.modal-card ion-header ion-toolbar:last-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:last-of-type{padding-bottom:6px}html.ios ion-modal ion-toolbar{padding-right:calc(var(--ion-safe-area-right) + 8px);padding-left:calc(var(--ion-safe-area-left) + 8px)}@media screen and (min-width: 768px){html.ios ion-modal.modal-card:first-of-type{--backdrop-opacity: .18}}ion-modal.modal-default.show-modal~ion-modal.modal-default{--backdrop-opacity: 0;--box-shadow: none}html.ios ion-modal.modal-card .ion-page{border-top-left-radius:var(--border-radius)}.ion-color-primary{--ion-color-base: var(--ion-color-primary, #3880ff) !important;--ion-color-base-rgb: var(--ion-color-primary-rgb, 56, 128, 255) !important;--ion-color-contrast: var(--ion-color-primary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-primary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-primary-shade, #3171e0) !important;--ion-color-tint: var(--ion-color-primary-tint, #4c8dff) !important}.ion-color-secondary{--ion-color-base: var(--ion-color-secondary, #3dc2ff) !important;--ion-color-base-rgb: var(--ion-color-secondary-rgb, 61, 194, 255) !important;--ion-color-contrast: var(--ion-color-secondary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-secondary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-secondary-shade, #36abe0) !important;--ion-color-tint: var(--ion-color-secondary-tint, #50c8ff) !important}.ion-color-tertiary{--ion-color-base: var(--ion-color-tertiary, #5260ff) !important;--ion-color-base-rgb: var(--ion-color-tertiary-rgb, 82, 96, 255) !important;--ion-color-contrast: var(--ion-color-tertiary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-tertiary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-tertiary-shade, #4854e0) !important;--ion-color-tint: var(--ion-color-tertiary-tint, #6370ff) !important}.ion-color-success{--ion-color-base: var(--ion-color-success, #2dd36f) !important;--ion-color-base-rgb: var(--ion-color-success-rgb, 45, 211, 111) !important;--ion-color-contrast: var(--ion-color-success-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-success-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-success-shade, #28ba62) !important;--ion-color-tint: var(--ion-color-success-tint, #42d77d) !important}.ion-color-warning{--ion-color-base: var(--ion-color-warning, #ffc409) !important;--ion-color-base-rgb: var(--ion-color-warning-rgb, 255, 196, 9) !important;--ion-color-contrast: var(--ion-color-warning-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-warning-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-warning-shade, #e0ac08) !important;--ion-color-tint: var(--ion-color-warning-tint, #ffca22) !important}.ion-color-danger{--ion-color-base: var(--ion-color-danger, #eb445a) !important;--ion-color-base-rgb: var(--ion-color-danger-rgb, 235, 68, 90) !important;--ion-color-contrast: var(--ion-color-danger-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-danger-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-danger-shade, #cf3c4f) !important;--ion-color-tint: var(--ion-color-danger-tint, #ed576b) !important}.ion-color-light{--ion-color-base: var(--ion-color-light, #f4f5f8) !important;--ion-color-base-rgb: var(--ion-color-light-rgb, 244, 245, 248) !important;--ion-color-contrast: var(--ion-color-light-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-light-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-light-shade, #d7d8da) !important;--ion-color-tint: var(--ion-color-light-tint, #f5f6f9) !important}.ion-color-medium{--ion-color-base: var(--ion-color-medium, #92949c) !important;--ion-color-base-rgb: var(--ion-color-medium-rgb, 146, 148, 156) !important;--ion-color-contrast: var(--ion-color-medium-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-medium-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-medium-shade, #808289) !important;--ion-color-tint: var(--ion-color-medium-tint, #9d9fa6) !important}.ion-color-dark{--ion-color-base: var(--ion-color-dark, #222428) !important;--ion-color-base-rgb: var(--ion-color-dark-rgb, 34, 36, 40) !important;--ion-color-contrast: var(--ion-color-dark-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-dark-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-dark-shade, #1e2023) !important;--ion-color-tint: var(--ion-color-dark-tint, #383a3e) !important}.ion-page{left:0;right:0;top:0;bottom:0;display:flex;position:absolute;flex-direction:column;justify-content:space-between;contain:layout size style;z-index:0}ion-modal>.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none!important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports (padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports (padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translateZ(0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none}.ios .menu-content-reveal{box-shadow:-8px 0 42px rgba(0,0,0,.08)}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px rgba(0,0,0,.08)}.md .menu-content-reveal,.md .menu-content-push{box-shadow:4px 0 16px rgba(0,0,0,.18)}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:.3s transform cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none!important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:700}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:0;padding:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}html{font-family:var(--ion-font-family)}@supports (-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #3880ff)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);-webkit-padding-start:var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);-webkit-padding-end:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);-webkit-padding-start:var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);-webkit-padding-end:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);-webkit-padding-start:var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);-webkit-padding-end:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);-webkit-margin-start:var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);-webkit-margin-end:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);-webkit-margin-start:var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);-webkit-margin-end:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);-webkit-margin-start:var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);-webkit-margin-end:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-float-left{float:left!important}.ion-float-right{float:right!important}.ion-float-start{float:left!important}:host-context([dir=rtl]) .ion-float-start{float:right!important}[dir=rtl] .ion-float-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right!important}}.ion-float-end{float:right!important}:host-context([dir=rtl]) .ion-float-end{float:left!important}[dir=rtl] .ion-float-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left!important}}@media (min-width: 576px){.ion-float-sm-left{float:left!important}.ion-float-sm-right{float:right!important}.ion-float-sm-start{float:left!important}:host-context([dir=rtl]) .ion-float-sm-start{float:right!important}[dir=rtl] .ion-float-sm-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right!important}}.ion-float-sm-end{float:right!important}:host-context([dir=rtl]) .ion-float-sm-end{float:left!important}[dir=rtl] .ion-float-sm-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left!important}}}@media (min-width: 768px){.ion-float-md-left{float:left!important}.ion-float-md-right{float:right!important}.ion-float-md-start{float:left!important}:host-context([dir=rtl]) .ion-float-md-start{float:right!important}[dir=rtl] .ion-float-md-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right!important}}.ion-float-md-end{float:right!important}:host-context([dir=rtl]) .ion-float-md-end{float:left!important}[dir=rtl] .ion-float-md-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left!important}}}@media (min-width: 992px){.ion-float-lg-left{float:left!important}.ion-float-lg-right{float:right!important}.ion-float-lg-start{float:left!important}:host-context([dir=rtl]) .ion-float-lg-start{float:right!important}[dir=rtl] .ion-float-lg-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right!important}}.ion-float-lg-end{float:right!important}:host-context([dir=rtl]) .ion-float-lg-end{float:left!important}[dir=rtl] .ion-float-lg-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left!important}}}@media (min-width: 1200px){.ion-float-xl-left{float:left!important}.ion-float-xl-right{float:right!important}.ion-float-xl-start{float:left!important}:host-context([dir=rtl]) .ion-float-xl-start{float:right!important}[dir=rtl] .ion-float-xl-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right!important}}.ion-float-xl-end{float:right!important}:host-context([dir=rtl]) .ion-float-xl-end{float:left!important}[dir=rtl] .ion-float-xl-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left!important}}}.ion-text-center{text-align:center!important}.ion-text-justify{text-align:justify!important}.ion-text-start{text-align:start!important}.ion-text-end{text-align:end!important}.ion-text-left{text-align:left!important}.ion-text-right{text-align:right!important}.ion-text-nowrap{white-space:nowrap!important}.ion-text-wrap{white-space:normal!important}@media (min-width: 576px){.ion-text-sm-center{text-align:center!important}.ion-text-sm-justify{text-align:justify!important}.ion-text-sm-start{text-align:start!important}.ion-text-sm-end{text-align:end!important}.ion-text-sm-left{text-align:left!important}.ion-text-sm-right{text-align:right!important}.ion-text-sm-nowrap{white-space:nowrap!important}.ion-text-sm-wrap{white-space:normal!important}}@media (min-width: 768px){.ion-text-md-center{text-align:center!important}.ion-text-md-justify{text-align:justify!important}.ion-text-md-start{text-align:start!important}.ion-text-md-end{text-align:end!important}.ion-text-md-left{text-align:left!important}.ion-text-md-right{text-align:right!important}.ion-text-md-nowrap{white-space:nowrap!important}.ion-text-md-wrap{white-space:normal!important}}@media (min-width: 992px){.ion-text-lg-center{text-align:center!important}.ion-text-lg-justify{text-align:justify!important}.ion-text-lg-start{text-align:start!important}.ion-text-lg-end{text-align:end!important}.ion-text-lg-left{text-align:left!important}.ion-text-lg-right{text-align:right!important}.ion-text-lg-nowrap{white-space:nowrap!important}.ion-text-lg-wrap{white-space:normal!important}}@media (min-width: 1200px){.ion-text-xl-center{text-align:center!important}.ion-text-xl-justify{text-align:justify!important}.ion-text-xl-start{text-align:start!important}.ion-text-xl-end{text-align:end!important}.ion-text-xl-left{text-align:left!important}.ion-text-xl-right{text-align:right!important}.ion-text-xl-nowrap{white-space:nowrap!important}.ion-text-xl-wrap{white-space:normal!important}}.ion-text-uppercase{text-transform:uppercase!important}.ion-text-lowercase{text-transform:lowercase!important}.ion-text-capitalize{text-transform:capitalize!important}@media (min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase!important}.ion-text-sm-lowercase{text-transform:lowercase!important}.ion-text-sm-capitalize{text-transform:capitalize!important}}@media (min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase!important}.ion-text-md-lowercase{text-transform:lowercase!important}.ion-text-md-capitalize{text-transform:capitalize!important}}@media (min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase!important}.ion-text-lg-lowercase{text-transform:lowercase!important}.ion-text-lg-capitalize{text-transform:capitalize!important}}@media (min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase!important}.ion-text-xl-lowercase{text-transform:lowercase!important}.ion-text-xl-capitalize{text-transform:capitalize!important}}.ion-align-self-start{align-self:flex-start!important}.ion-align-self-end{align-self:flex-end!important}.ion-align-self-center{align-self:center!important}.ion-align-self-stretch{align-self:stretch!important}.ion-align-self-baseline{align-self:baseline!important}.ion-align-self-auto{align-self:auto!important}.ion-wrap{flex-wrap:wrap!important}.ion-nowrap{flex-wrap:nowrap!important}.ion-wrap-reverse{flex-wrap:wrap-reverse!important}.ion-justify-content-start{justify-content:flex-start!important}.ion-justify-content-center{justify-content:center!important}.ion-justify-content-end{justify-content:flex-end!important}.ion-justify-content-around{justify-content:space-around!important}.ion-justify-content-between{justify-content:space-between!important}.ion-justify-content-evenly{justify-content:space-evenly!important}.ion-align-items-start{align-items:flex-start!important}.ion-align-items-center{align-items:center!important}.ion-align-items-end{align-items:flex-end!important}.ion-align-items-stretch{align-items:stretch!important}.ion-align-items-baseline{align-items:baseline!important}.ion-hide,.ion-hide-up,.ion-hide-down{display:none!important}@media (min-width: 576px){.ion-hide-sm-up{display:none!important}}@media (max-width: 575.98px){.ion-hide-sm-down{display:none!important}}@media (min-width: 768px){.ion-hide-md-up{display:none!important}}@media (max-width: 767.98px){.ion-hide-md-down{display:none!important}}@media (min-width: 992px){.ion-hide-lg-up{display:none!important}}@media (max-width: 991.98px){.ion-hide-lg-down{display:none!important}}@media (min-width: 1200px){.ion-hide-xl-up{display:none!important}}@media (max-width: 1199.98px){.ion-hide-xl-down{display:none!important}}:root{--ion-color-primary: #3880FF;--ion-color-primary-rgb: 56, 128, 255;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #3171e0;--ion-color-primary-tint: #4c8dff;--ion-color-secondary: #3dc2ff;--ion-color-secondary-rgb: 61, 194, 255;--ion-color-secondary-contrast: #ffffff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #36abe0;--ion-color-secondary-tint: #50c8ff;--ion-color-tertiary: #5260ff;--ion-color-tertiary-rgb: 82, 96, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #4854e0;--ion-color-tertiary-tint: #6370ff;--ion-color-success: #2dd36f;--ion-color-success-rgb: 45, 211, 111;--ion-color-success-contrast: #ffffff;--ion-color-success-contrast-rgb: 255, 255, 255;--ion-color-success-shade: #28ba62;--ion-color-success-tint: #42d77d;--ion-color-warning: #ffc409;--ion-color-warning-rgb: 255, 196, 9;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0ac08;--ion-color-warning-tint: #ffca22;--ion-color-danger: #eb445a;--ion-color-danger-rgb: 235, 68, 90;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #cf3c4f;--ion-color-danger-tint: #ed576b;--ion-color-dark: #222428;--ion-color-dark-rgb: 34, 36, 40;--ion-color-dark-contrast: #ffffff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e;--ion-color-medium: #92949c;--ion-color-medium-rgb: 146, 148, 156;--ion-color-medium-contrast: #ffffff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #808289;--ion-color-medium-tint: #9d9fa6;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 245, 248;--ion-color-light-contrast: #000000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9}@media (prefers-color-scheme: dark){body{--ion-color-primary: #afccff;--ion-color-primary-rgb: 175, 204, 255;--ion-color-primary-contrast: #000000;--ion-color-primary-contrast-rgb: 0, 0, 0;--ion-color-primary-shade: #9ab4e0;--ion-color-primary-tint: #b7d1ff;--ion-color-secondary: #50c8ff;--ion-color-secondary-rgb: 80,200,255;--ion-color-secondary-contrast: #ffffff;--ion-color-secondary-contrast-rgb: 255,255,255;--ion-color-secondary-shade: #46b0e0;--ion-color-secondary-tint: #62ceff;--ion-color-tertiary: #6a64ff;--ion-color-tertiary-rgb: 106,100,255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255,255,255;--ion-color-tertiary-shade: #5d58e0;--ion-color-tertiary-tint: #7974ff;--ion-color-success: #2fdf75;--ion-color-success-rgb: 47,223,117;--ion-color-success-contrast: #000000;--ion-color-success-contrast-rgb: 0,0,0;--ion-color-success-shade: #29c467;--ion-color-success-tint: #44e283;--ion-color-warning: #ffd534;--ion-color-warning-rgb: 255,213,52;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0,0,0;--ion-color-warning-shade: #e0bb2e;--ion-color-warning-tint: #ffd948;--ion-color-danger: #ff4961;--ion-color-danger-rgb: 255,73,97;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255,255,255;--ion-color-danger-shade: #e04055;--ion-color-danger-tint: #ff5b71;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244,245,248;--ion-color-dark-contrast: #000000;--ion-color-dark-contrast-rgb: 0,0,0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152,154,162;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0,0,0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-light: #222428;--ion-color-light-rgb: 34,36,40;--ion-color-light-contrast: #ffffff;--ion-color-light-contrast-rgb: 255,255,255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e}.ios body{--ion-background-color: #000000;--ion-background-color-rgb: 0,0,0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255,255,255;--ion-color-step-50: #0d0d0d;--ion-color-step-100: #1a1a1a;--ion-color-step-150: #262626;--ion-color-step-200: #333333;--ion-color-step-250: #404040;--ion-color-step-300: #4d4d4d;--ion-color-step-350: #595959;--ion-color-step-400: #666666;--ion-color-step-450: #737373;--ion-color-step-500: #808080;--ion-color-step-550: #8c8c8c;--ion-color-step-600: #999999;--ion-color-step-650: #a6a6a6;--ion-color-step-700: #b3b3b3;--ion-color-step-750: #bfbfbf;--ion-color-step-800: #cccccc;--ion-color-step-850: #d9d9d9;--ion-color-step-900: #e6e6e6;--ion-color-step-950: #f2f2f2;--ion-item-background: #000000;--ion-card-background: #1c1c1d}.ios ion-modal{--ion-background-color: var(--ion-color-step-100);--ion-toolbar-background: var(--ion-color-step-150);--ion-toolbar-border-color: var(--ion-color-step-250)}.md body{--ion-background-color: #121212;--ion-background-color-rgb: 18,18,18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255,255,255;--ion-border-color: #222222;--ion-color-step-50: #1e1e1e;--ion-color-step-100: #2a2a2a;--ion-color-step-150: #363636;--ion-color-step-200: #414141;--ion-color-step-250: #4d4d4d;--ion-color-step-300: #595959;--ion-color-step-350: #656565;--ion-color-step-400: #717171;--ion-color-step-450: #7d7d7d;--ion-color-step-500: #898989;--ion-color-step-550: #949494;--ion-color-step-600: #a0a0a0;--ion-color-step-650: #acacac;--ion-color-step-700: #b8b8b8;--ion-color-step-750: #c4c4c4;--ion-color-step-800: #d0d0d0;--ion-color-step-850: #dbdbdb;--ion-color-step-900: #e7e7e7;--ion-color-step-950: #f3f3f3;--ion-item-background: #1e1e1e;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-card-background: #1e1e1e}}html{--ion-dynamic-font: var(--ion-default-dynamic-font)}\n',document.head.appendChild(i),t({$:gi,E:function(t,e){return function(t,e,i=!0,o=!1){const n=Ze||pn;if(n){const i=n.type;if(t===ai){const t=function(t,e=!0){return f(t)?t.displayName||t.name:t.name||e&&t.__name}(i,!1);if(t&&(t===e||t===$(e)||t===L($(e))))return i}const r=li(n[t]||i[t],e)||li(n.appContext[t],e);return!r&&o?i:r}}(ai,t,!0,e)||t},G:xe,U:function(){return ho(ga)},V:Ri,Z:ne,a:en,a9:function(t){Je=t},aa:function(){Je=null},ah:function(t,e,i={},o,n){if(Ze.isCE||Ze.parent&&ki(Ze.parent)&&Ze.parent.isCE)return"default"!==e&&(i.name=e),on("slot",i,o&&o());let r=t[e];r&&r._c&&(r._d=!1),No();const a=r&&Fi(r(i)),s=Uo(Mo,{key:i.key||a&&a.key||`_${e}`},a||(o?o():[]),a&&1===t._?64:-2);return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),r&&r._c&&(r._d=!0),s},c:Uo,d:yi,f:Ce,g:Xo,j:rn,l:function(t="",e=!1){return e?(No(),Uo(Vo,null,t)):on(Vo,null,t)},o:No,u:Ia,w:ti});const n={},r=[],a=()=>{},s=()=>!1,l=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),d=t=>t.startsWith("onUpdate:"),c=Object.assign,h=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},p=Object.prototype.hasOwnProperty,m=(t,e)=>p.call(t,e),u=Array.isArray,g=t=>"[object Map]"===C(t),b=t=>"[object Set]"===C(t),f=t=>"function"==typeof t,v=t=>"string"==typeof t,x=t=>"symbol"==typeof t,w=t=>null!==t&&"object"==typeof t,y=t=>(w(t)||f(t))&&f(t.then)&&f(t.catch),k=Object.prototype.toString,C=t=>k.call(t),E=t=>C(t).slice(8,-1),z=t=>"[object Object]"===C(t),S=t=>v(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,A=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},P=/-(\w)/g,$=I((t=>t.replace(P,((t,e)=>e?e.toUpperCase():"")))),O=/\B([A-Z])/g,T=I((t=>t.replace(O,"-$1").toLowerCase())),L=I((t=>t.charAt(0).toUpperCase()+t.slice(1))),D=I((t=>t?`on${L(t)}`:"")),_=(t,e)=>!Object.is(t,e),j=(t,e)=>{for(let i=0;i{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:i})},B=t=>{const e=parseFloat(t);return isNaN(e)?t:e},V=t=>{const e=v(t)?Number(t):NaN;return isNaN(e)?t:e};let R;const F=()=>R||(R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function H(t){if(u(t)){const e={};for(let i=0;i{if(t){const i=t.split(W);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}function G(t){let e="";if(v(t))e=t;else if(u(t))for(let i=0;iv(t)?t:null==t?"":u(t)||w(t)&&(t.toString===k||!f(t.toString))?JSON.stringify(t,Z,2):String(t))),Z=(t,e)=>e&&e.__v_isRef?Z(t,e.value):g(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,i],o)=>(t[J(e,o)+" =>"]=i,t)),{})}:b(e)?{[`Set(${e.size})`]:[...e.values()].map((t=>J(t)))}:x(e)?J(e):!w(e)||u(e)||z(e)?e:String(e),J=(t,e="")=>{var i;return x(t)?`Symbol(${null!=(i=t.description)?i:e})`:t};let Q;class tt{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Q,!t&&Q&&(this.index=(Q.scopes||(Q.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=Q;try{return Q=this,t()}finally{Q=e}}}on(){Q=this}off(){Q=this.parent}stop(t){if(this._active){let e,i;for(e=0,i=this.effects.length;e{const e=new Set(t);return e.w=0,e.n=0,e},it=t=>(t.w&at)>0,ot=t=>(t.n&at)>0,nt=new WeakMap;let rt=0,at=1;const st=30;let lt;const dt=Symbol(""),ct=Symbol("");class ht{constructor(t,e=null,i){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,function(t,e=Q){e&&e.active&&e.effects.push(t)}(this,i)}run(){if(!this.active)return this.fn();let t=lt,e=mt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=lt,lt=this,mt=!0,at=1<<++rt,rt<=st?(({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let i=0;for(let o=0;o{("length"===i||!x(i)&&i>=t)&&s.push(e)}))}else switch(void 0!==i&&s.push(a.get(i)),e){case"add":u(t)?S(i)&&s.push(a.get("length")):(s.push(a.get(dt)),g(t)&&s.push(a.get(ct)));break;case"delete":u(t)||(s.push(a.get(dt)),g(t)&&s.push(a.get(ct)));break;case"set":g(t)&&s.push(a.get(dt))}if(1===s.length)s[0]&&wt(s[0]);else{const t=[];for(const e of s)e&&t.push(...e);wt(et(t))}}function wt(t,e){const i=u(t)?t:[...t];for(const o of i)o.computed&&yt(o);for(const o of i)o.computed||yt(o)}function yt(t,e){(t!==lt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const kt=o("__proto__,__v_isRef,__isVue"),Ct=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(x)),Et=zt();function zt(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const i=pe(this);for(let e=0,n=this.length;e{t[e]=function(...t){gt();const i=pe(this)[e].apply(this,t);return bt(),i}})),t}function St(t){const e=pe(this);return ft(e,0,t),e.hasOwnProperty(t)}class At{constructor(t=!1,e=!1){this._isReadonly=t,this._shallow=e}get(t,e,i){const o=this._isReadonly,n=this._shallow;if("__v_isReactive"===e)return!o;if("__v_isReadonly"===e)return o;if("__v_isShallow"===e)return n;if("__v_raw"===e)return i===(o?n?oe:ie:n?ee:te).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const r=u(t);if(!o){if(r&&m(Et,e))return Reflect.get(Et,e,i);if("hasOwnProperty"===e)return St}const a=Reflect.get(t,e,i);return(x(e)?Ct.has(e):kt(e))?a:(o||ft(t,0,e),n?a:ve(a)?r&&S(e)?a:a.value:w(a)?o?ae(a):ne(a):a)}}class It extends At{constructor(t=!1){super(!1,t)}set(t,e,i,o){let n=t[e];if(!this._shallow){const e=de(n);if(ce(i)||de(i)||(n=pe(n),i=pe(i)),!u(t)&&ve(n)&&!ve(i))return!e&&(n.value=i,!0)}const r=u(t)&&S(e)?Number(e)t,Dt=t=>Reflect.getPrototypeOf(t);function _t(t,e,i=!1,o=!1){const n=pe(t=t.__v_raw),r=pe(e);i||(_(e,r)&&ft(n,0,e),ft(n,0,r));const{has:a}=Dt(n),s=o?Lt:i?ge:ue;return a.call(n,e)?s(t.get(e)):a.call(n,r)?s(t.get(r)):void(t!==n&&t.get(e))}function jt(t,e=!1){const i=this.__v_raw,o=pe(i),n=pe(t);return e||(_(t,n)&&ft(o,0,t),ft(o,0,n)),t===n?i.has(t):i.has(t)||i.has(n)}function Mt(t,e=!1){return t=t.__v_raw,!e&&ft(pe(t),0,dt),Reflect.get(t,"size",t)}function Bt(t){t=pe(t);const e=pe(this);return Dt(e).has.call(e,t)||(e.add(t),xt(e,"add",t,t)),this}function Vt(t,e){e=pe(e);const i=pe(this),{has:o,get:n}=Dt(i);let r=o.call(i,t);r||(t=pe(t),r=o.call(i,t));const a=n.call(i,t);return i.set(t,e),r?_(e,a)&&xt(i,"set",t,e):xt(i,"add",t,e),this}function Rt(t){const e=pe(this),{has:i,get:o}=Dt(e);let n=i.call(e,t);n||(t=pe(t),n=i.call(e,t)),o&&o.call(e,t);const r=e.delete(t);return n&&xt(e,"delete",t,void 0),r}function Ft(){const t=pe(this),e=0!==t.size,i=t.clear();return e&&xt(t,"clear",void 0,void 0),i}function Ht(t,e){return function(i,o){const n=this,r=n.__v_raw,a=pe(r),s=e?Lt:t?ge:ue;return!t&&ft(a,0,dt),r.forEach(((t,e)=>i.call(o,s(t),s(e),n)))}}function Nt(t,e,i){return function(...o){const n=this.__v_raw,r=pe(n),a=g(r),s="entries"===t||t===Symbol.iterator&&a,l="keys"===t&&a,d=n[t](...o),c=i?Lt:e?ge:ue;return!e&&ft(r,0,l?ct:dt),{next(){const{value:t,done:e}=d.next();return e?{value:t,done:e}:{value:s?[c(t[0]),c(t[1])]:c(t),done:e}},[Symbol.iterator](){return this}}}}function Wt(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function qt(){const t={get(t){return _t(this,t)},get size(){return Mt(this)},has:jt,add:Bt,set:Vt,delete:Rt,clear:Ft,forEach:Ht(!1,!1)},e={get(t){return _t(this,t,!1,!0)},get size(){return Mt(this)},has:jt,add:Bt,set:Vt,delete:Rt,clear:Ft,forEach:Ht(!1,!0)},i={get(t){return _t(this,t,!0)},get size(){return Mt(this,!0)},has(t){return jt.call(this,t,!0)},add:Wt("add"),set:Wt("set"),delete:Wt("delete"),clear:Wt("clear"),forEach:Ht(!0,!1)},o={get(t){return _t(this,t,!0,!0)},get size(){return Mt(this,!0)},has(t){return jt.call(this,t,!0)},add:Wt("add"),set:Wt("set"),delete:Wt("delete"),clear:Wt("clear"),forEach:Ht(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((n=>{t[n]=Nt(n,!1,!1),i[n]=Nt(n,!0,!1),e[n]=Nt(n,!1,!0),o[n]=Nt(n,!0,!0)})),[t,i,e,o]}const[Yt,Gt,Xt,Ut]=qt();function Kt(t,e){const i=e?t?Ut:Xt:t?Gt:Yt;return(e,o,n)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(m(i,o)&&o in e?i:e,o,n)}const Zt={get:Kt(!1,!1)},Jt={get:Kt(!1,!0)},Qt={get:Kt(!0,!1)},te=new WeakMap,ee=new WeakMap,ie=new WeakMap,oe=new WeakMap;function ne(t){return de(t)?t:se(t,!1,$t,Zt,te)}function re(t){return se(t,!1,Tt,Jt,ee)}function ae(t){return se(t,!0,Ot,Qt,ie)}function se(t,e,i,o,n){if(!w(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=n.get(t);if(r)return r;const a=(s=t).__v_skip||!Object.isExtensible(s)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(E(s));var s;if(0===a)return t;const l=new Proxy(t,2===a?o:i);return n.set(t,l),l}function le(t){return de(t)?le(t.__v_raw):!(!t||!t.__v_isReactive)}function de(t){return!(!t||!t.__v_isReadonly)}function ce(t){return!(!t||!t.__v_isShallow)}function he(t){return le(t)||de(t)}function pe(t){const e=t&&t.__v_raw;return e?pe(e):t}function me(t){return M(t,"__v_skip",!0),t}const ue=t=>w(t)?ne(t):t,ge=t=>w(t)?ae(t):t;function be(t){mt&<&&vt((t=pe(t)).dep||(t.dep=et()))}function fe(t,e){const i=(t=pe(t)).dep;i&&wt(i)}function ve(t){return!(!t||!0!==t.__v_isRef)}function xe(t){return ye(t,!1)}function we(t){return ye(t,!0)}function ye(t,e){return ve(t)?t:new ke(t,e)}class ke{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:pe(t),this._value=e?t:ue(t)}get value(){return be(this),this._value}set value(t){const e=this.__v_isShallow||ce(t)||de(t);t=e?t:pe(t),_(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:ue(t),fe(this))}}function Ce(t){return ve(t)?t.value:t}const Ee={get:(t,e,i)=>Ce(Reflect.get(t,e,i)),set:(t,e,i,o)=>{const n=t[e];return ve(n)&&!ve(i)?(n.value=i,!0):Reflect.set(t,e,i,o)}};function ze(t){return le(t)?t:new Proxy(t,Ee)}class Se{constructor(t,e,i,o){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ht(t,(()=>{this._dirty||(this._dirty=!0,fe(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=pe(this);return be(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ae(t,e,i,o){let n;try{n=o?t(...o):t()}catch(r){Pe(r,e,i)}return n}function Ie(t,e,i,o){if(f(t)){const n=Ae(t,e,i,o);return n&&y(n)&&n.catch((t=>{Pe(t,e,i)})),n}const n=[];for(let r=0;r>>1,n=Te[o],r=qe(n);rqe(t)-qe(e))),je=0;je<_e.length;je++)_e[je]();_e=null,je=0}}const qe=t=>null==t.id?1/0:t.id,Ye=(t,e)=>{const i=qe(t)-qe(e);if(0===i){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return i};function Ge(t){Oe=!1,$e=!0,Te.sort(Ye);try{for(Le=0;Lev(t)?t.trim():t))),e&&(r=i.map(B))}let l,d=o[l=D(e)]||o[l=D($(e))];!d&&a&&(d=o[l=D(T(e))]),d&&Ie(d,t,6,r);const c=o[l+"Once"];if(c){if(t.emitted){if(t.emitted[l])return}else t.emitted={};t.emitted[l]=!0,Ie(c,t,6,r)}}function Ue(t,e,i=!1){const o=e.emitsCache,n=o.get(t);if(void 0!==n)return n;const r=t.emits;let a={},s=!1;if(!f(t)){const o=t=>{const i=Ue(t,e,!0);i&&(s=!0,c(a,i))};!i&&e.mixins.length&&e.mixins.forEach(o),t.extends&&o(t.extends),t.mixins&&t.mixins.forEach(o)}return r||s?(u(r)?r.forEach((t=>a[t]=null)):c(a,r),w(t)&&o.set(t,a),a):(w(t)&&o.set(t,null),null)}function Ke(t,e){return!(!t||!l(e))&&(e=e.slice(2).replace(/Once$/,""),m(t,e[0].toLowerCase()+e.slice(1))||m(t,T(e))||m(t,e))}let Ze=null,Je=null;function Qe(t){const e=Ze;return Ze=t,Je=t&&t.type.__scopeId||null,e}function ti(t,e=Ze,i){if(!e)return t;if(t._n)return t;const o=(...i)=>{o._d&&Yo(-1);const n=Qe(e);let r;try{r=t(...i)}finally{Qe(n),o._d&&Yo(1)}return r};return o._n=!0,o._c=!0,o._d=!0,o}function ei(t){const{type:e,vnode:i,proxy:o,withProxy:n,props:r,propsOptions:[a],slots:s,attrs:l,emit:c,render:h,renderCache:p,data:m,setupState:u,ctx:g,inheritAttrs:b}=t;let f,v;const x=Qe(t);try{if(4&i.shapeFlag){const t=n||o,e=t;f=an(h.call(e,t,p,r,u,m,g)),v=l}else{const t=e;f=an(t.length>1?t(r,{attrs:l,slots:s,emit:c}):t(r,null)),v=e.props?l:ii(l)}}catch(y){Fo.length=0,Pe(y,t,1),f=on(Vo)}let w=f;if(v&&!1!==b){const t=Object.keys(v),{shapeFlag:e}=w;t.length&&7&e&&(a&&t.some(d)&&(v=oi(v,a)),w=nn(w,v))}return i.dirs&&(w=nn(w),w.dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&(w.transition=i.transition),f=w,Qe(x),f}const ii=t=>{let e;for(const i in t)("class"===i||"style"===i||l(i))&&((e||(e={}))[i]=t[i]);return e},oi=(t,e)=>{const i={};for(const o in t)d(o)&&o.slice(9)in e||(i[o]=t[o]);return i};function ni(t,e,i){const o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(let n=0;n0?(ci(t,"onPending"),ci(t,"onFallback"),d(null,t.ssFallback,e,i,o,null,r,a),mi(p,t.ssFallback)):p.resolve(!1,!0)}(e,i,o,n,r,a,s,l,d):function(t,e,i,o,n,r,a,s,{p:l,um:d,o:{createElement:c}}){const h=e.suspense=t.suspense;h.vnode=e,e.el=t.el;const p=e.ssContent,m=e.ssFallback,{activeBranch:u,pendingBranch:g,isInFallback:b,isHydrating:f}=h;if(g)h.pendingBranch=p,Zo(p,g)?(l(g,p,h.hiddenContainer,null,n,h,r,a,s),h.deps<=0?h.resolve():b&&(l(u,m,i,o,n,null,r,a,s),mi(h,m))):(h.pendingId++,f?(h.isHydrating=!1,h.activeBranch=g):d(g,n,h),h.deps=0,h.effects.length=0,h.hiddenContainer=c("div"),b?(l(null,p,h.hiddenContainer,null,n,h,r,a,s),h.deps<=0?h.resolve():(l(u,m,i,o,n,null,r,a,s),mi(h,m))):u&&Zo(p,u)?(l(u,p,i,o,n,h,r,a,s),h.resolve(!0)):(l(null,p,h.hiddenContainer,null,n,h,r,a,s),h.deps<=0&&h.resolve()));else if(u&&Zo(p,u))l(u,p,i,o,n,h,r,a,s),mi(h,p);else if(ci(e,"onPending"),h.pendingBranch=p,h.pendingId++,l(null,p,h.hiddenContainer,null,n,h,r,a,s),h.deps<=0)h.resolve();else{const{timeout:t,pendingId:e}=h;t>0?setTimeout((()=>{h.pendingId===e&&h.fallback(m)}),t):0===t&&h.fallback(m)}}(t,e,i,o,n,a,s,l,d)},hydrate:function(t,e,i,o,n,r,a,s,l){const d=e.suspense=hi(e,o,i,t.parentNode,document.createElement("div"),null,n,r,a,s,!0),c=l(t,d.pendingBranch=e.ssContent,i,d,r,a);return 0===d.deps&&d.resolve(!1,!0),c},create:hi,normalize:function(t){const{shapeFlag:e,children:i}=t,o=32&e;t.ssContent=pi(o?i.default:i),t.ssFallback=o?pi(i.fallback):on(Vo)}};function ci(t,e){const i=t.props&&t.props[e];f(i)&&i()}function hi(t,e,i,o,n,r,a,s,l,d,c=!1){const{p:h,m:p,um:m,n:u,o:{parentNode:g,remove:b}}=d;let f;const v=function(t){var e;return null!=(null==(e=t.props)?void 0:e.suspensible)&&!1!==t.props.suspensible}(t);v&&(null==e?void 0:e.pendingBranch)&&(f=e.pendingId,e.deps++);const x=t.props?V(t.props.timeout):void 0,w={vnode:t,parent:e,parentComponent:i,isSVG:a,container:o,hiddenContainer:n,anchor:r,deps:0,pendingId:0,timeout:"number"==typeof x?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(t=!1,i=!1){const{vnode:o,activeBranch:n,pendingBranch:r,pendingId:a,effects:s,parentComponent:l,container:d}=w;let c=!1;if(w.isHydrating)w.isHydrating=!1;else if(!t){c=n&&r.transition&&"out-in"===r.transition.mode,c&&(n.transition.afterLeave=()=>{a===w.pendingId&&(p(r,d,u(n),0),He(s))});let{anchor:t}=w;n&&(t=u(n),m(n,l,w,!0)),c||p(r,d,t,0)}mi(w,r),w.pendingBranch=null,w.isInFallback=!1;let h=w.parent,g=!1;for(;h;){if(h.pendingBranch){h.effects.push(...s),g=!0;break}h=h.parent}g||c||He(s),w.effects=[],v&&e&&e.pendingBranch&&f===e.pendingId&&(e.deps--,0!==e.deps||i||e.resolve()),ci(o,"onResolve")},fallback(t){if(!w.pendingBranch)return;const{vnode:e,activeBranch:i,parentComponent:o,container:n,isSVG:r}=w;ci(e,"onFallback");const a=u(i),d=()=>{w.isInFallback&&(h(null,t,n,a,o,null,r,s,l),mi(w,t))},c=t.transition&&"out-in"===t.transition.mode;c&&(i.transition.afterLeave=d),w.isInFallback=!0,m(i,o,null,!0),c||d()},move(t,e,i){w.activeBranch&&p(w.activeBranch,t,e,i),w.container=t},next:()=>w.activeBranch&&u(w.activeBranch),registerDep(t,e){const i=!!w.pendingBranch;i&&w.deps++;const o=t.vnode.el;t.asyncDep.catch((e=>{Pe(e,t,0)})).then((n=>{if(t.isUnmounted||w.isUnmounted||w.pendingId!==t.suspenseId)return;t.asyncResolved=!0;const{vnode:r}=t;kn(t,n,!1),o&&(r.el=o);const s=!o&&t.subTree.el;e(t,r,g(o||t.subTree.el),o?null:u(t.subTree),w,a,l),s&&b(s),ri(t,r.el),i&&0==--w.deps&&w.resolve()}))},unmount(t,e){w.isUnmounted=!0,w.activeBranch&&m(w.activeBranch,i,t,e),w.pendingBranch&&m(w.pendingBranch,i,t,e)}};return w}function pi(t){let e;if(f(t)){const i=qo&&t._c;i&&(t._d=!1,No()),t=t(),i&&(t._d=!0,e=Ho,Wo())}if(u(t)){const e=function(t){let e;for(let i=0;ie!==t))),t}function mi(t,e){t.activeBranch=e;const{vnode:i,parentComponent:o}=t,n=i.el=e.el;o&&o.subTree===i&&(o.vnode.el=n,ri(o,n))}t("S",di);const ui={};function gi(t,e,i){return bi(t,e,i)}function bi(t,e,{immediate:i,deep:o,flush:r,onTrack:s,onTrigger:l}=n){var d;const c=Q===(null==(d=pn)?void 0:d.scope)?pn:null;let p,m,g=!1,b=!1;if(ve(t)?(p=()=>t.value,g=ce(t)):le(t)?(p=()=>t,o=!0):u(t)?(b=!0,g=t.some((t=>le(t)||ce(t))),p=()=>t.map((t=>ve(t)?t.value:le(t)?xi(t):f(t)?Ae(t,c,2):void 0))):p=f(t)?e?()=>Ae(t,c,2):()=>{if(!c||!c.isUnmounted)return m&&m(),Ie(t,c,3,[x])}:a,e&&o){const t=p;p=()=>xi(t())}let v,x=t=>{m=C.onStop=()=>{Ae(t,c,4),m=C.onStop=void 0}};if(yn){if(x=a,e?i&&Ie(e,c,3,[p(),b?[]:void 0,x]):p(),"sync"!==r)return a;{const t=In();v=t.__watcherHandles||(t.__watcherHandles=[])}}let w=b?new Array(t.length).fill(ui):ui;const y=()=>{if(C.active)if(e){const t=C.run();(o||g||(b?t.some(((t,e)=>_(t,w[e]))):_(t,w)))&&(m&&m(),Ie(e,c,3,[t,w===ui?void 0:b&&w[0]===ui?[]:w,x]),w=t)}else C.run()};let k;y.allowRecurse=!!e,"sync"===r?k=y:"post"===r?k=()=>Ao(y,c&&c.suspense):(y.pre=!0,c&&(y.id=c.uid),k=()=>Re(y));const C=new ht(p,k);e?i?y():w=C.run():"post"===r?Ao(C.run.bind(C),c&&c.suspense):C.run();const E=()=>{C.stop(),c&&c.scope&&h(c.scope.effects,C)};return v&&v.push(E),E}function fi(t,e,i){const o=this.proxy,n=v(t)?t.includes(".")?vi(o,t):()=>o[t]:t.bind(o,o);let r;f(e)?r=e:(r=e.handler,i=e);const a=pn;fn(this);const s=bi(n,r.bind(o),i);return a?fn(a):vn(),s}function vi(t,e){const i=e.split(".");return()=>{let e=t;for(let t=0;t{xi(t,e)}));else if(z(t))for(const i in t)xi(t[i],e);return t}function wi(t,e,i,o){const n=t.dirs,r=e&&e.dirs;for(let a=0;ac({name:t.name},e,{setup:t}))():t}const ki=t=>!!t.type.__asyncLoader,Ci=t=>t.type.__isKeepAlive;function Ei(t,e){Si(t,"a",e)}function zi(t,e){Si(t,"da",e)}function Si(t,e,i=pn){const o=t.__wdc||(t.__wdc=()=>{let e=i;for(;e;){if(e.isDeactivated)return;e=e.parent}return t()});if(Ii(e,o,i),i){let t=i.parent;for(;t&&t.parent;)Ci(t.parent.vnode)&&Ai(o,e,i,t),t=t.parent}}function Ai(t,e,i,o){const n=Ii(e,t,o,!0);_i((()=>{h(o[e],n)}),i)}function Ii(t,e,i=pn,o=!1){if(i){const n=i[t]||(i[t]=[]),r=e.__weh||(e.__weh=(...o)=>{if(i.isUnmounted)return;gt(),fn(i);const n=Ie(e,i,t,o);return vn(),bt(),n});return o?n.unshift(r):n.push(r),r}}const Pi=t=>(e,i=pn)=>(!yn||"sp"===t)&&Ii(t,((...t)=>e(...t)),i),$i=Pi("bm"),Oi=Pi("m"),Ti=Pi("bu"),Li=Pi("u"),Di=Pi("bum"),_i=Pi("um"),ji=Pi("sp"),Mi=Pi("rtg"),Bi=Pi("rtc");function Vi(t,e=pn){Ii("ec",t,e)}function Ri(t,e,i,o){let n;const r=i&&i[o];if(u(t)||v(t)){n=new Array(t.length);for(let i=0,o=t.length;ie(t,i,void 0,r&&r[i])));else{const i=Object.keys(t);n=new Array(i.length);for(let o=0,a=i.length;o!Ko(t)||t.type!==Vo&&!(t.type===Mo&&!Fi(t.children))))?t:null}const Hi=t=>t?xn(t)?En(t)||t.proxy:Hi(t.parent):null,Ni=c(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Hi(t.parent),$root:t=>Hi(t.root),$emit:t=>t.emit,$options:t=>Zi(t),$forceUpdate:t=>t.f||(t.f=()=>Re(t.update)),$nextTick:t=>t.n||(t.n=Ve.bind(t.proxy)),$watch:t=>fi.bind(t)}),Wi=(t,e)=>t!==n&&!t.__isScriptSetup&&m(t,e),qi={get({_:t},e){const{ctx:i,setupState:o,data:r,props:a,accessCache:s,type:l,appContext:d}=t;let c;if("$"!==e[0]){const l=s[e];if(void 0!==l)switch(l){case 1:return o[e];case 2:return r[e];case 4:return i[e];case 3:return a[e]}else{if(Wi(o,e))return s[e]=1,o[e];if(r!==n&&m(r,e))return s[e]=2,r[e];if((c=t.propsOptions[0])&&m(c,e))return s[e]=3,a[e];if(i!==n&&m(i,e))return s[e]=4,i[e];Gi&&(s[e]=0)}}const h=Ni[e];let p,u;return h?("$attrs"===e&&ft(t,0,e),h(t)):(p=l.__cssModules)&&(p=p[e])?p:i!==n&&m(i,e)?(s[e]=4,i[e]):(u=d.config.globalProperties,m(u,e)?u[e]:void 0)},set({_:t},e,i){const{data:o,setupState:r,ctx:a}=t;return Wi(r,e)?(r[e]=i,!0):o!==n&&m(o,e)?(o[e]=i,!0):!(m(t.props,e)||"$"===e[0]&&e.slice(1)in t||(a[e]=i,0))},has({_:{data:t,setupState:e,accessCache:i,ctx:o,appContext:r,propsOptions:a}},s){let l;return!!i[s]||t!==n&&m(t,s)||Wi(e,s)||(l=a[0])&&m(l,s)||m(o,s)||m(Ni,s)||m(r.config.globalProperties,s)},defineProperty(t,e,i){return null!=i.get?t._.accessCache[e]=0:m(i,"value")&&this.set(t,e,i.value,null),Reflect.defineProperty(t,e,i)}};function Yi(t){return u(t)?t.reduce(((t,e)=>(t[e]=null,t)),{}):t}let Gi=!0;function Xi(t){const e=Zi(t),i=t.proxy,o=t.ctx;Gi=!1,e.beforeCreate&&Ui(e.beforeCreate,t,"bc");const{data:n,computed:r,methods:s,watch:l,provide:d,inject:c,created:h,beforeMount:p,mounted:m,beforeUpdate:g,updated:b,activated:v,deactivated:x,beforeDestroy:y,beforeUnmount:k,destroyed:C,unmounted:E,render:z,renderTracked:S,renderTriggered:A,errorCaptured:I,serverPrefetch:P,expose:$,inheritAttrs:O,components:T,directives:L,filters:D}=e;if(c&&function(t,e,i=a){u(t)&&(t=eo(t));for(const o in t){const i=t[o];let n;n=w(i)?"default"in i?ho(i.from||o,i.default,!0):ho(i.from||o):ho(i),ve(n)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>n.value,set:t=>n.value=t}):e[o]=n}}(c,o,null),s)for(const a in s){const t=s[a];f(t)&&(o[a]=t.bind(i))}if(n){const e=n.call(i,i);w(e)&&(t.data=ne(e))}if(Gi=!0,r)for(const u in r){const t=r[u],e=f(t)?t.bind(i,i):f(t.get)?t.get.bind(i,i):a,n=!f(t)&&f(t.set)?t.set.bind(i):a,s=zn({get:e,set:n});Object.defineProperty(o,u,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t})}if(l)for(const a in l)Ki(l[a],o,i,a);if(d){const t=f(d)?d.call(i):d;Reflect.ownKeys(t).forEach((e=>{co(e,t[e])}))}function _(t,e){u(e)?e.forEach((e=>t(e.bind(i)))):e&&t(e.bind(i))}if(h&&Ui(h,t,"c"),_($i,p),_(Oi,m),_(Ti,g),_(Li,b),_(Ei,v),_(zi,x),_(Vi,I),_(Bi,S),_(Mi,A),_(Di,k),_(_i,E),_(ji,P),u($))if($.length){const e=t.exposed||(t.exposed={});$.forEach((t=>{Object.defineProperty(e,t,{get:()=>i[t],set:e=>i[t]=e})}))}else t.exposed||(t.exposed={});z&&t.render===a&&(t.render=z),null!=O&&(t.inheritAttrs=O),T&&(t.components=T),L&&(t.directives=L)}function Ui(t,e,i){Ie(u(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,i)}function Ki(t,e,i,o){const n=o.includes(".")?vi(i,o):()=>i[o];if(v(t)){const i=e[t];f(i)&&gi(n,i)}else if(f(t))gi(n,t.bind(i));else if(w(t))if(u(t))t.forEach((t=>Ki(t,e,i,o)));else{const o=f(t.handler)?t.handler.bind(i):e[t.handler];f(o)&&gi(n,o,t)}}function Zi(t){const e=t.type,{mixins:i,extends:o}=e,{mixins:n,optionsCache:r,config:{optionMergeStrategies:a}}=t.appContext,s=r.get(e);let l;return s?l=s:n.length||i||o?(l={},n.length&&n.forEach((t=>Ji(l,t,a,!0))),Ji(l,e,a)):l=e,w(e)&&r.set(e,l),l}function Ji(t,e,i,o=!1){const{mixins:n,extends:r}=e;r&&Ji(t,r,i,!0),n&&n.forEach((e=>Ji(t,e,i,!0)));for(const a in e)if(o&&"expose"===a);else{const o=Qi[a]||i&&i[a];t[a]=o?o(t[a],e[a]):e[a]}return t}const Qi={data:to,props:no,emits:no,methods:oo,computed:oo,beforeCreate:io,created:io,beforeMount:io,mounted:io,beforeUpdate:io,updated:io,beforeDestroy:io,beforeUnmount:io,destroyed:io,unmounted:io,activated:io,deactivated:io,errorCaptured:io,serverPrefetch:io,components:oo,directives:oo,watch:function(t,e){if(!t)return e;if(!e)return t;const i=c(Object.create(null),t);for(const o in e)i[o]=io(t[o],e[o]);return i},provide:to,inject:function(t,e){return oo(eo(t),eo(e))}};function to(t,e){return e?t?function(){return c(f(t)?t.call(this,this):t,f(e)?e.call(this,this):e)}:e:t}function eo(t){if(u(t)){const e={};for(let i=0;i(r.has(t)||(t&&f(t.install)?(r.add(t),t.install(s,...e)):f(t)&&(r.add(t),t(s,...e))),s),mixin:t=>(n.mixins.includes(t)||n.mixins.push(t),s),component:(t,e)=>e?(n.components[t]=e,s):n.components[t],directive:(t,e)=>e?(n.directives[t]=e,s):n.directives[t],mount(r,l,d){if(!a){const c=on(i,o);return c.appContext=n,l&&e?e(c,r):t(c,r,d),a=!0,s._container=r,r.__vue_app__=s,En(c.component)||c.component.proxy}},unmount(){a&&(t(null,s._container),delete s._container.__vue_app__)},provide:(t,e)=>(n.provides[t]=e,s),runWithContext(t){lo=s;try{return t()}finally{lo=null}}};return s}}let lo=null;function co(t,e){if(pn){let i=pn.provides;const o=pn.parent&&pn.parent.provides;o===i&&(i=pn.provides=Object.create(o)),i[t]=e}}function ho(t,e,i=!1){const o=pn||Ze;if(o||lo){const n=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:lo._context.provides;if(n&&t in n)return n[t];if(arguments.length>1)return i&&f(e)?e.call(o&&o.proxy):e}}function po(t,e,i,o){const[r,a]=t.propsOptions;let s,l=!1;if(e)for(let n in e){if(A(n))continue;const d=e[n];let c;r&&m(r,c=$(n))?a&&a.includes(c)?(s||(s={}))[c]=d:i[c]=d:Ke(t.emitsOptions,n)||n in o&&d===o[n]||(o[n]=d,l=!0)}if(a){const e=pe(i),o=s||n;for(let n=0;n{h=!0;const[i,o]=uo(t,e,!0);c(l,i),o&&d.push(...o)};!i&&e.mixins.length&&e.mixins.forEach(o),t.extends&&o(t.extends),t.mixins&&t.mixins.forEach(o)}if(!s&&!h)return w(t)&&o.set(t,r),r;if(u(s))for(let r=0;r-1,i[1]=o<0||e-1||m(i,"default"))&&d.push(t)}}}const p=[l,d];return w(t)&&o.set(t,p),p}function go(t){return"$"!==t[0]}function bo(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:null===t?"null":""}function fo(t,e){return bo(t)===bo(e)}function vo(t,e){return u(e)?e.findIndex((e=>fo(e,t))):f(e)&&fo(e,t)?0:-1}const xo=t=>"_"===t[0]||"$stable"===t,wo=t=>u(t)?t.map(an):[an(t)],yo=(t,e,i)=>{if(e._n)return e;const o=ti(((...t)=>wo(e(...t))),i);return o._c=!1,o},ko=(t,e,i)=>{const o=t._ctx;for(const n in t){if(xo(n))continue;const i=t[n];if(f(i))e[n]=yo(0,i,o);else if(null!=i){const t=wo(i);e[n]=()=>t}}},Co=(t,e)=>{const i=wo(e);t.slots.default=()=>i},Eo=(t,e)=>{if(32&t.vnode.shapeFlag){const i=e._;i?(t.slots=pe(e),M(e,"_",i)):ko(e,t.slots={})}else t.slots={},e&&Co(t,e);M(t.slots,Jo,1)},zo=(t,e,i)=>{const{vnode:o,slots:r}=t;let a=!0,s=n;if(32&o.shapeFlag){const t=e._;t?i&&1===t?a=!1:(c(r,e),i||1!==t||delete r._):(a=!e.$stable,ko(e,r)),s=e}else e&&(Co(t,e),s={default:1});if(a)for(const n in r)xo(n)||null!=s[n]||delete r[n]};function So(t,e,i,o,r=!1){if(u(t))return void t.forEach(((t,n)=>So(t,e&&(u(e)?e[n]:e),i,o,r)));if(ki(o)&&!r)return;const a=4&o.shapeFlag?En(o.component)||o.component.proxy:o.el,s=r?null:a,{i:l,r:d}=t,c=e&&e.r,p=l.refs===n?l.refs={}:l.refs,g=l.setupState;if(null!=c&&c!==d&&(v(c)?(p[c]=null,m(g,c)&&(g[c]=null)):ve(c)&&(c.value=null)),f(d))Ae(d,l,12,[s,p]);else{const e=v(d),o=ve(d);if(e||o){const n=()=>{if(t.f){const i=e?m(g,d)?g[d]:p[d]:d.value;r?u(i)&&h(i,a):u(i)?i.includes(a)||i.push(a):e?(p[d]=[a],m(g,d)&&(g[d]=p[d])):(d.value=[a],t.k&&(p[t.k]=d.value))}else e?(p[d]=s,m(g,d)&&(g[d]=s)):o&&(d.value=s,t.k&&(p[t.k]=s))};s?(n.id=-1,Ao(n,i)):n()}}}const Ao=function(t,e){e&&e.pendingBranch?u(t)?e.effects.push(...t):e.effects.push(t):He(t)};function Io(t){return function(t,e){F().__VUE__=!0;const{insert:i,remove:o,patchProp:s,createElement:l,createText:d,createComment:c,setText:h,setElementText:p,parentNode:u,nextSibling:g,setScopeId:b=a,insertStaticContent:f}=t,v=(t,e,i,o=null,n=null,r=null,a=!1,s=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!Zo(t,e)&&(o=Q(t),X(t,n,r,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);const{type:d,ref:c,shapeFlag:h}=e;switch(d){case Bo:x(t,e,i,o);break;case Vo:w(t,e,i,o);break;case Ro:null==t&&k(e,i,o,a);break;case Mo:_(t,e,i,o,n,r,a,s,l);break;default:1&h?z(t,e,i,o,n,r,a,s,l):6&h?B(t,e,i,o,n,r,a,s,l):(64&h||128&h)&&d.process(t,e,i,o,n,r,a,s,l,it)}null!=c&&n&&So(c,t&&t.ref,r,e||t,!e)},x=(t,e,o,n)=>{if(null==t)i(e.el=d(e.children),o,n);else{const i=e.el=t.el;e.children!==t.children&&h(i,e.children)}},w=(t,e,o,n)=>{null==t?i(e.el=c(e.children||""),o,n):e.el=t.el},k=(t,e,i,o)=>{[t.el,t.anchor]=f(t.children,e,i,o,t.el,t.anchor)},C=({el:t,anchor:e},o,n)=>{let r;for(;t&&t!==e;)r=g(t),i(t,o,n),t=r;i(e,o,n)},E=({el:t,anchor:e})=>{let i;for(;t&&t!==e;)i=g(t),o(t),t=i;o(e)},z=(t,e,i,o,n,r,a,s,l)=>{a=a||"svg"===e.type,null==t?S(e,i,o,n,r,a,s,l):O(t,e,n,r,a,s,l)},S=(t,e,o,n,r,a,d,c)=>{let h,m;const{type:u,props:g,shapeFlag:b,transition:f,dirs:v}=t;if(h=t.el=l(t.type,a,g&&g.is,g),8&b?p(h,t.children):16&b&&P(t.children,h,null,n,r,a&&"foreignObject"!==u,d,c),v&&wi(t,null,n,"created"),I(h,t,t.scopeId,d,n),g){for(const e in g)"value"===e||A(e)||s(h,e,null,g[e],a,t.children,n,r,J);"value"in g&&s(h,"value",null,g.value),(m=g.onVnodeBeforeMount)&&dn(m,n,t)}v&&wi(t,null,n,"beforeMount");const x=function(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}(r,f);x&&f.beforeEnter(h),i(h,e,o),((m=g&&g.onVnodeMounted)||x||v)&&Ao((()=>{m&&dn(m,n,t),x&&f.enter(h),v&&wi(t,null,n,"mounted")}),r)},I=(t,e,i,o,n)=>{if(i&&b(t,i),o)for(let r=0;r{for(let d=l;d{const d=e.el=t.el;let{patchFlag:c,dynamicChildren:h,dirs:m}=e;c|=16&t.patchFlag;const u=t.props||n,g=e.props||n;let b;i&&Po(i,!1),(b=g.onVnodeBeforeUpdate)&&dn(b,i,e,t),m&&wi(e,t,i,"beforeUpdate"),i&&Po(i,!0);const f=r&&"foreignObject"!==e.type;if(h?L(t.dynamicChildren,h,d,i,o,f,a):l||W(t,e,d,null,i,o,f,a,!1),c>0){if(16&c)D(d,e,u,g,i,o,r);else if(2&c&&u.class!==g.class&&s(d,"class",null,g.class,r),4&c&&s(d,"style",u.style,g.style,r),8&c){const n=e.dynamicProps;for(let e=0;e{b&&dn(b,i,e,t),m&&wi(e,t,i,"updated")}),o)},L=(t,e,i,o,n,r,a)=>{for(let s=0;s{if(i!==o){if(i!==n)for(const n in i)A(n)||n in o||s(t,n,i[n],null,l,e.children,r,a,J);for(const n in o){if(A(n))continue;const d=o[n],c=i[n];d!==c&&"value"!==n&&s(t,n,c,d,l,e.children,r,a,J)}"value"in o&&s(t,"value",i.value,o.value)}},_=(t,e,o,n,r,a,s,l,c)=>{const h=e.el=t?t.el:d(""),p=e.anchor=t?t.anchor:d("");let{patchFlag:m,dynamicChildren:u,slotScopeIds:g}=e;g&&(l=l?l.concat(g):g),null==t?(i(h,o,n),i(p,o,n),P(e.children,o,p,r,a,s,l,c)):m>0&&64&m&&u&&t.dynamicChildren?(L(t.dynamicChildren,u,o,r,a,s,l),(null!=e.key||r&&e===r.subTree)&&$o(t,e,!0)):W(t,e,o,p,r,a,s,l,c)},B=(t,e,i,o,n,r,a,s,l)=>{e.slotScopeIds=s,null==t?512&e.shapeFlag?n.ctx.activate(e,i,o,a,l):V(e,i,o,n,r,a,l):R(t,e,l)},V=(t,e,i,o,r,a,s)=>{const l=t.component=function(t,e,i){const o=t.type,r=(e?e.appContext:t.appContext)||cn,a={uid:hn++,vnode:t,type:o,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new tt(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:uo(o,r),emitsOptions:Ue(o,r),emit:null,emitted:null,propsDefaults:n,inheritAttrs:o.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:i,suspenseId:i?i.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=Xe.bind(null,a),t.ce&&t.ce(a),a}(t,o,r);if(Ci(t)&&(l.ctx.renderer=it),function(t,e=!1){yn=e;const{props:i,children:o}=t.vnode,n=xn(t);(function(t,e,i,o=!1){const n={},r={};M(r,Jo,1),t.propsDefaults=Object.create(null),po(t,e,n,r);for(const a in t.propsOptions[0])a in n||(n[a]=void 0);i?t.props=o?n:re(n):t.type.props?t.props=n:t.props=r,t.attrs=r})(t,i,n,e),Eo(t,o);n&&function(t,e){const i=t.type;t.accessCache=Object.create(null),t.proxy=me(new Proxy(t.ctx,qi));const{setup:o}=i;if(o){const i=t.setupContext=o.length>1?function(t){const e=e=>{t.exposed=e||{}};return{get attrs(){return function(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get:(e,i)=>(ft(t,0,"$attrs"),e[i])}))}(t)},slots:t.slots,emit:t.emit,expose:e}}(t):null;fn(t),gt();const n=Ae(o,t,0,[t.props,i]);if(bt(),vn(),y(n)){if(n.then(vn,vn),e)return n.then((i=>{kn(t,i,e)})).catch((e=>{Pe(e,t,0)}));t.asyncDep=n}else kn(t,n,e)}else Cn(t,e)}(t,e);yn=!1}(l),l.asyncDep){if(r&&r.registerDep(l,H),!t.el){const t=l.subTree=on(Vo);w(null,t,e,i)}}else H(l,t,e,i,r,a,s)},R=(t,e,i)=>{const o=e.component=t.component;if(function(t,e,i){const{props:o,children:n,component:r}=t,{props:a,children:s,patchFlag:l}=e,d=r.emitsOptions;if(e.dirs||e.transition)return!0;if(!(i&&l>=0))return!(!n&&!s||s&&s.$stable)||o!==a&&(o?!a||ni(o,a,d):!!a);if(1024&l)return!0;if(16&l)return o?ni(o,a,d):!!a;if(8&l){const t=e.dynamicProps;for(let e=0;eLe&&Te.splice(e,1)}(o.update),o.update()}else e.el=t.el,o.vnode=e},H=(t,e,i,o,n,r,a)=>{const s=()=>{if(t.isMounted){let e,{next:i,bu:o,u:s,parent:l,vnode:d}=t,c=i;Po(t,!1),i?(i.el=d.el,N(t,i,a)):i=d,o&&j(o),(e=i.props&&i.props.onVnodeBeforeUpdate)&&dn(e,l,i,d),Po(t,!0);const h=ei(t),p=t.subTree;t.subTree=h,v(p,h,u(p.el),Q(p),t,n,r),i.el=h.el,null===c&&ri(t,h.el),s&&Ao(s,n),(e=i.props&&i.props.onVnodeUpdated)&&Ao((()=>dn(e,l,i,d)),n)}else{let a;const{el:s,props:l}=e,{bm:d,m:c,parent:h}=t,p=ki(e);if(Po(t,!1),d&&j(d),!p&&(a=l&&l.onVnodeBeforeMount)&&dn(a,h,e),Po(t,!0),s&&nt){const i=()=>{t.subTree=ei(t),nt(s,t.subTree,t,n,null)};p?e.type.__asyncLoader().then((()=>!t.isUnmounted&&i())):i()}else{const a=t.subTree=ei(t);v(null,a,i,o,t,n,r),e.el=a.el}if(c&&Ao(c,n),!p&&(a=l&&l.onVnodeMounted)){const t=e;Ao((()=>dn(a,h,t)),n)}(256&e.shapeFlag||h&&ki(h.vnode)&&256&h.vnode.shapeFlag)&&t.a&&Ao(t.a,n),t.isMounted=!0,e=i=o=null}},l=t.effect=new ht(s,(()=>Re(d)),t.scope),d=t.update=()=>l.run();d.id=t.uid,Po(t,!0),d()},N=(t,e,i)=>{e.component=t;const o=t.vnode.props;t.vnode=e,t.next=null,function(t,e,i,o){const{props:n,attrs:r,vnode:{patchFlag:a}}=t,s=pe(n),[l]=t.propsOptions;let d=!1;if(!(o||a>0)||16&a){let o;po(t,e,n,r)&&(d=!0);for(const r in s)e&&(m(e,r)||(o=T(r))!==r&&m(e,o))||(l?!i||void 0===i[r]&&void 0===i[o]||(n[r]=mo(l,s,r,void 0,t,!0)):delete n[r]);if(r!==s)for(const t in r)e&&m(e,t)||(delete r[t],d=!0)}else if(8&a){const i=t.vnode.dynamicProps;for(let o=0;o{const d=t&&t.children,c=t?t.shapeFlag:0,h=e.children,{patchFlag:m,shapeFlag:u}=e;if(m>0){if(128&m)return void Y(d,h,i,o,n,r,a,s,l);if(256&m)return void q(d,h,i,o,n,r,a,s,l)}8&u?(16&c&&J(d,n,r),h!==d&&p(i,h)):16&c?16&u?Y(d,h,i,o,n,r,a,s,l):J(d,n,r,!0):(8&c&&p(i,""),16&u&&P(h,i,o,n,r,a,s,l))},q=(t,e,i,o,n,a,s,l,d)=>{e=e||r;const c=(t=t||r).length,h=e.length,p=Math.min(c,h);let m;for(m=0;mh?J(t,n,a,!0,!1,p):P(e,i,o,n,a,s,l,d,p)},Y=(t,e,i,o,n,a,s,l,d)=>{let c=0;const h=e.length;let p=t.length-1,m=h-1;for(;c<=p&&c<=m;){const o=t[c],r=e[c]=d?sn(e[c]):an(e[c]);if(!Zo(o,r))break;v(o,r,i,null,n,a,s,l,d),c++}for(;c<=p&&c<=m;){const o=t[p],r=e[m]=d?sn(e[m]):an(e[m]);if(!Zo(o,r))break;v(o,r,i,null,n,a,s,l,d),p--,m--}if(c>p){if(c<=m){const t=m+1,r=tm)for(;c<=p;)X(t[c],n,a,!0),c++;else{const u=c,g=c,b=new Map;for(c=g;c<=m;c++){const t=e[c]=d?sn(e[c]):an(e[c]);null!=t.key&&b.set(t.key,c)}let f,x=0;const w=m-g+1;let y=!1,k=0;const C=new Array(w);for(c=0;c=w){X(o,n,a,!0);continue}let r;if(null!=o.key)r=b.get(o.key);else for(f=g;f<=m;f++)if(0===C[f-g]&&Zo(o,e[f])){r=f;break}void 0===r?X(o,n,a,!0):(C[r-g]=c+1,r>=k?k=r:y=!0,v(o,e[r],i,null,n,a,s,l,d),x++)}const E=y?function(t){const e=t.slice(),i=[0];let o,n,r,a,s;const l=t.length;for(o=0;o>1,t[i[s]]0&&(e[o]=i[r-1]),i[r]=o)}}for(r=i.length,a=i[r-1];r-- >0;)i[r]=a,a=e[a];return i}(C):r;for(f=E.length-1,c=w-1;c>=0;c--){const t=g+c,r=e[t],p=t+1{const{el:a,type:s,transition:l,children:d,shapeFlag:c}=t;if(6&c)G(t.component.subTree,e,o,n);else if(128&c)t.suspense.move(e,o,n);else if(64&c)s.move(t,e,o,it);else if(s!==Mo)if(s!==Ro)if(2!==n&&1&c&&l)if(0===n)l.beforeEnter(a),i(a,e,o),Ao((()=>l.enter(a)),r);else{const{leave:t,delayLeave:n,afterLeave:r}=l,s=()=>i(a,e,o),d=()=>{t(a,(()=>{s(),r&&r()}))};n?n(a,s,d):d()}else i(a,e,o);else C(t,e,o);else{i(a,e,o);for(let t=0;t{const{type:r,props:a,ref:s,children:l,dynamicChildren:d,shapeFlag:c,patchFlag:h,dirs:p}=t;if(null!=s&&So(s,null,i,t,!0),256&c)return void e.ctx.deactivate(t);const m=1&c&&p,u=!ki(t);let g;if(u&&(g=a&&a.onVnodeBeforeUnmount)&&dn(g,e,t),6&c)Z(t.component,i,o);else{if(128&c)return void t.suspense.unmount(i,o);m&&wi(t,null,e,"beforeUnmount"),64&c?t.type.remove(t,e,i,n,it,o):d&&(r!==Mo||h>0&&64&h)?J(d,e,i,!1,!0):(r===Mo&&384&h||!n&&16&c)&&J(l,e,i),o&&U(t)}(u&&(g=a&&a.onVnodeUnmounted)||m)&&Ao((()=>{g&&dn(g,e,t),m&&wi(t,null,e,"unmounted")}),i)},U=t=>{const{type:e,el:i,anchor:n,transition:r}=t;if(e===Mo)return void K(i,n);if(e===Ro)return void E(t);const a=()=>{o(i),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&t.shapeFlag&&r&&!r.persisted){const{leave:e,delayLeave:o}=r,n=()=>e(i,a);o?o(t.el,a,n):n()}else a()},K=(t,e)=>{let i;for(;t!==e;)i=g(t),o(t),t=i;o(e)},Z=(t,e,i)=>{const{bum:o,scope:n,update:r,subTree:a,um:s}=t;o&&j(o),n.stop(),r&&(r.active=!1,X(a,t,e,i)),s&&Ao(s,e),Ao((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},J=(t,e,i,o=!1,n=!1,r=0)=>{for(let a=r;a6&t.shapeFlag?Q(t.component.subTree):128&t.shapeFlag?t.suspense.next():g(t.anchor||t.el),et=(t,e,i)=>{null==t?e._vnode&&X(e._vnode,null,null,!0):v(e._vnode||null,t,e,null,null,null,i),Ne(),We(),e._vnode=t},it={p:v,um:X,m:G,r:U,mt:V,mc:P,pc:W,pbc:L,n:Q,o:t};let ot,nt;return e&&([ot,nt]=e(it)),{render:et,hydrate:ot,createApp:so(et,ot)}}(t)}function Po({effect:t,update:e},i){t.allowRecurse=e.allowRecurse=i}function $o(t,e,i=!1){const o=t.children,n=e.children;if(u(o)&&u(n))for(let r=0;rt&&(t.disabled||""===t.disabled),To=t=>"undefined"!=typeof SVGElement&&t instanceof SVGElement,Lo=(t,e)=>{const i=t&&t.to;return v(i)?e?e(i):null:i};function Do(t,e,i,{o:{insert:o},m:n},r=2){0===r&&o(t.targetAnchor,e,i);const{el:a,anchor:s,shapeFlag:l,children:d,props:c}=t,h=2===r;if(h&&o(a,e,i),(!h||Oo(c))&&16&l)for(let p=0;p{16&v&&c(x,t,e,n,r,a,s,l)};f?b(i,d):h&&b(h,p)}else{e.el=t.el;const o=e.anchor=t.anchor,c=e.target=t.target,m=e.targetAnchor=t.targetAnchor,g=Oo(t.props),b=g?i:c,v=g?o:m;if(a=a||To(c),w?(p(t.dynamicChildren,w,b,n,r,a,s),$o(t,e,!0)):l||h(t,e,b,v,n,r,a,s,!1),f)g?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Do(e,i,o,d,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=Lo(e.props,u);t&&Do(e,t,null,d,0)}else g&&Do(e,c,m,d,1)}jo(e)},remove(t,e,i,o,{um:n,o:{remove:r}},a){const{shapeFlag:s,children:l,anchor:d,targetAnchor:c,target:h,props:p}=t;if(h&&r(c),a&&r(d),16&s){const t=a||!Oo(p);for(let o=0;o0?Ho||r:null,Wo(),qo>0&&Ho&&Ho.push(t),t}function Xo(t,e,i,o,n,r){return Go(en(t,e,i,o,n,r,!0))}function Uo(t,e,i,o,n){return Go(on(t,e,i,o,n,!0))}function Ko(t){return!!t&&!0===t.__v_isVNode}function Zo(t,e){return t.type===e.type&&t.key===e.key}const Jo="__vInternal",Qo=({key:t})=>null!=t?t:null,tn=({ref:t,ref_key:e,ref_for:i})=>("number"==typeof t&&(t=""+t),null!=t?v(t)||ve(t)||f(t)?{i:Ze,r:t,k:e,f:!!i}:t:null);function en(t,e=null,i=null,o=0,n=null,r=(t===Mo?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Qo(e),ref:e&&tn(e),scopeId:Je,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Ze};return s?(ln(l,i),128&r&&t.normalize(l)):i&&(l.shapeFlag|=v(i)?8:16),qo>0&&!a&&Ho&&(l.patchFlag>0||6&r)&&32!==l.patchFlag&&Ho.push(l),l}const on=t("b",(function(t,e=null,i=null,o=0,n=null,r=!1){if(t&&t!==si||(t=Vo),Ko(t)){const o=nn(t,e,!0);return i&&ln(o,i),qo>0&&!r&&Ho&&(6&o.shapeFlag?Ho[Ho.indexOf(t)]=o:Ho.push(o)),o.patchFlag|=-2,o}var a;if(f(a=t)&&"__vccOpts"in a&&(t=t.__vccOpts),e){e=function(t){return t?he(t)||Jo in t?c({},t):t:null}(e);let{class:t,style:i}=e;t&&!v(t)&&(e.class=G(t)),w(i)&&(he(i)&&!u(i)&&(i=c({},i)),e.style=H(i))}const s=v(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:w(t)?4:f(t)?2:0;return en(t,e,i,o,n,s,r,!0)}));function nn(t,e,i=!1){const{props:o,ref:n,patchFlag:r,children:a}=t,s=e?function(...t){const e={};for(let i=0;ipn||Ze;let un,gn,bn="__VUE_INSTANCE_SETTERS__";(gn=F()[bn])||(gn=F()[bn]=[]),gn.push((t=>pn=t)),un=t=>{gn.length>1?gn.forEach((e=>e(t))):gn[0](t)};const fn=t=>{un(t),t.scope.on()},vn=()=>{pn&&pn.scope.off(),un(null)};function xn(t){return 4&t.vnode.shapeFlag}let wn,yn=!1;function kn(t,e,i){f(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:w(e)&&(t.setupState=ze(e)),Cn(t,i)}function Cn(t,e,i){const o=t.type;if(!t.render){if(!e&&wn&&!o.render){const e=o.template||Zi(t).template;if(e){const{isCustomElement:i,compilerOptions:n}=t.appContext.config,{delimiters:r,compilerOptions:a}=o,s=c(c({isCustomElement:i,delimiters:r},n),a);o.render=wn(e,s)}}t.render=o.render||a}fn(t),gt();try{Xi(t)}finally{bt(),vn()}}function En(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ze(me(t.exposed)),{get:(e,i)=>i in e?e[i]:i in Ni?Ni[i](t):void 0,has:(t,e)=>e in t||e in Ni}))}const zn=t("e",((t,e)=>function(t,e,i=!1){let o,n;const r=f(t);return r?(o=t,n=a):(o=t.get,n=t.set),new Se(o,n,r||!n,i)}(t,0,yn)));function Sn(t,e,i){const o=arguments.length;return 2===o?w(e)&&!u(e)?Ko(e)?on(t,null,[e]):on(t,e):on(t,null,e):(o>3?i=Array.prototype.slice.call(arguments,2):3===o&&Ko(i)&&(i=[i]),on(t,e,i))}const An=Symbol.for("v-scx"),In=()=>ho(An),Pn="3.3.13",$n="undefined"!=typeof document?document:null,On=$n&&$n.createElement("template"),Tn={insert:(t,e,i)=>{e.insertBefore(t,i||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,i,o)=>{const n=e?$n.createElementNS("http://www.w3.org/2000/svg",t):$n.createElement(t,i?{is:i}:void 0);return"select"===t&&o&&null!=o.multiple&&n.setAttribute("multiple",o.multiple),n},createText:t=>$n.createTextNode(t),createComment:t=>$n.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>$n.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,i,o,n,r){const a=i?i.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),i),n!==r&&(n=n.nextSibling););else{On.innerHTML=o?`${t}`:t;const n=On.content;if(o){const t=n.firstChild;for(;t.firstChild;)n.appendChild(t.firstChild);n.removeChild(t)}e.insertBefore(n,i)}return[a?a.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},Ln=Symbol("_vtc"),Dn=Symbol("_vod"),_n=Symbol(""),jn=/\s*!important$/;function Mn(t,e,i){if(u(i))i.forEach((i=>Mn(t,e,i)));else if(null==i&&(i=""),e.startsWith("--"))t.setProperty(e,i);else{const o=function(t,e){const i=Vn[e];if(i)return i;let o=$(e);if("filter"!==o&&o in t)return Vn[e]=o;o=L(o);for(let n=0;n{if(t._vts){if(t._vts<=i.attached)return}else t._vts=Date.now();Ie(function(t,e){if(u(e)){const i=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{i.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}(t,i.value),e,5,[t])};return i.value=t,i.attached=Yn(),i}(o,n);!function(t,e,i,o){t.addEventListener(e,i,o)}(t,i,a,s)}else a&&(function(t,e,i,o){t.removeEventListener(e,i,o)}(t,i,a,s),r[e]=void 0)}}const Nn=/(?:Once|Passive|Capture)$/;let Wn=0;const qn=Promise.resolve(),Yn=()=>Wn||(qn.then((()=>Wn=0)),Wn=Date.now()),Gn=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Xn=c({patchProp:(t,e,i,o,n=!1,r,a,s,c)=>{"class"===e?function(t,e,i){const o=t[Ln];o&&(e=(e?[e,...o]:[...o]).join(" ")),null==e?t.removeAttribute("class"):i?t.setAttribute("class",e):t.className=e}(t,o,n):"style"===e?function(t,e,i){const o=t.style,n=v(i);if(i&&!n){if(e&&!v(e))for(const t in e)null==i[t]&&Mn(o,t,"");for(const t in i)Mn(o,t,i[t])}else{const r=o.display;if(n){if(e!==i){const t=o[_n];t&&(i+=";"+t),o.cssText=i}}else e&&t.removeAttribute("style");Dn in t&&(o.display=r)}}(t,i,o):l(e)?d(e)||Hn(t,e,0,o,a):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):function(t,e,i,o){if(o)return"innerHTML"===e||"textContent"===e||!!(e in t&&Gn(e)&&f(i));if("spellcheck"===e||"draggable"===e||"translate"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if("width"===e||"height"===e){const e=t.tagName;if("IMG"===e||"VIDEO"===e||"CANVAS"===e||"SOURCE"===e)return!1}return(!Gn(e)||!v(i))&&e in t}(t,e,o,n))?function(t,e,i,o,n,r,a){if("innerHTML"===e||"textContent"===e)return o&&a(o,n,r),void(t[e]=null==i?"":i);const s=t.tagName;if("value"===e&&"PROGRESS"!==s&&!s.includes("-")){t._value=i;const o=null==i?"":i;return("OPTION"===s?t.getAttribute("value"):t.value)!==o&&(t.value=o),void(null==i&&t.removeAttribute(e))}let l=!1;if(""===i||null==i){const o=typeof t[e];"boolean"===o?i=U(i):null==i&&"string"===o?(i="",l=!0):"number"===o&&(i=0,l=!0)}try{t[e]=i}catch(d){}l&&t.removeAttribute(e)}(t,e,o,r,a,s,c):("true-value"===e?t._trueValue=o:"false-value"===e&&(t._falseValue=o),function(t,e,i,o,n){if(o&&e.startsWith("xlink:"))null==i?t.removeAttributeNS(Rn,e.slice(6,e.length)):t.setAttributeNS(Rn,e,i);else{const o=X(e);null==i||o&&!U(i)?t.removeAttribute(e):t.setAttribute(e,o?"":i)}}(t,e,o,n))}},Tn);let Un; +/*! + * vue-router v4.2.5 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */ +const Kn="undefined"!=typeof window,Zn=Object.assign;function Jn(t,e){const i={};for(const o in e){const n=e[o];i[o]=tr(n)?n.map(t):t(n)}return i}const Qn=()=>{},tr=Array.isArray,er=/\/$/,ir=t=>t.replace(er,"");function or(t,e,i="/"){let o,n={},r="",a="";const s=e.indexOf("#");let l=e.indexOf("?");return s=0&&(l=-1),l>-1&&(o=e.slice(0,l),r=e.slice(l+1,s>-1?s:e.length),n=t(r)),s>-1&&(o=o||e.slice(0,s),a=e.slice(s,e.length)),o=function(t,e){if(t.startsWith("/"))return t;if(!t)return e;const i=e.split("/"),o=t.split("/"),n=o[o.length-1];".."!==n&&"."!==n||o.push("");let r,a,s=i.length-1;for(r=0;r1&&s--}return i.slice(0,s).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}(null!=o?o:e,i),{fullPath:o+(r&&"?")+r+a,path:o,query:n,hash:a}}function nr(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function rr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function ar(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(!sr(t[i],e[i]))return!1;return!0}function sr(t,e){return tr(t)?lr(t,e):tr(e)?lr(e,t):t===e}function lr(t,e){return tr(e)?t.length===e.length&&t.every(((t,i)=>t===e[i])):1===t.length&&t[0]===e}var dr,cr,hr,pr;(cr=dr||(dr={})).pop="pop",cr.push="push",(pr=hr||(hr={})).back="back",pr.forward="forward",pr.unknown="";const mr=/^[^#]+#/;function ur(t,e){return t.replace(mr,"#")+e}const gr=()=>({left:window.pageXOffset,top:window.pageYOffset});function br(t){let e;if("el"in t){const i=t.el,o="string"==typeof i&&i.startsWith("#"),n="string"==typeof i?o?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!n)return;e=function(t,e){const i=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:e.behavior,left:o.left-i.left-(e.left||0),top:o.top-i.top-(e.top||0)}}(n,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function fr(t,e){return(history.state?history.state.position-e:-1)+t}const vr=new Map;let xr=()=>location.protocol+"//"+location.host;function wr(t,e){const{pathname:i,search:o,hash:n}=e,r=t.indexOf("#");if(r>-1){let e=n.includes(t.slice(r))?t.slice(r).length:1,i=n.slice(e);return"/"!==i[0]&&(i="/"+i),nr(i,"")}return nr(i,t)+o+n}function yr(t,e,i,o=!1,n=!1){return{back:t,current:e,forward:i,replaced:o,position:window.history.length,scroll:n?gr():null}}function kr(t){const e=function(t){const{history:e,location:i}=window,o={value:wr(t,i)},n={value:e.state};function r(o,r,a){const s=t.indexOf("#"),l=s>-1?(i.host&&document.querySelector("base")?t:t.slice(s))+o:xr()+t+o;try{e[a?"replaceState":"pushState"](r,"",l),n.value=r}catch(d){console.error(d),i[a?"replace":"assign"](l)}}return n.value||r(o.value,{back:null,current:o.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:o,state:n,push:function(t,i){const a=Zn({},n.value,e.state,{forward:t,scroll:gr()});r(a.current,a,!0),r(t,Zn({},yr(o.value,t,null),{position:a.position+1},i),!1),o.value=t},replace:function(t,i){r(t,Zn({},e.state,yr(n.value.back,t,n.value.forward,!0),i,{position:n.value.position}),!0),o.value=t}}}(t=function(t){if(!t)if(Kn){const e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),ir(t)}(t)),i=function(t,e,i,o){let n=[],r=[],a=null;const s=({state:r})=>{const s=wr(t,location),l=i.value,d=e.value;let c=0;if(r){if(i.value=s,e.value=r,a&&a===l)return void(a=null);c=d?r.position-d.position:0}else o(s);n.forEach((t=>{t(i.value,l,{delta:c,type:dr.pop,direction:c?c>0?hr.forward:hr.back:hr.unknown})}))};function l(){const{history:t}=window;t.state&&t.replaceState(Zn({},t.state,{scroll:gr()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=i.value},listen:function(t){n.push(t);const e=()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)};return r.push(e),e},destroy:function(){for(const t of r)t();r=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(t,e.state,e.location,e.replace),o=Zn({location:"",base:t,go:function(t,e=!0){e||i.pauseListeners(),history.go(t)},createHref:ur.bind(null,t)},e,i);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function Cr(t){return"string"==typeof t||"symbol"==typeof t}const Er={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},zr=Symbol("");var Sr,Ar;function Ir(t,e){return Zn(new Error,{type:t,[zr]:!0},e)}function Pr(t,e){return t instanceof Error&&zr in t&&(null==e||!!(t.type&e))}(Ar=Sr||(Sr={}))[Ar.aborted=4]="aborted",Ar[Ar.cancelled=8]="cancelled",Ar[Ar.duplicated=16]="duplicated";const $r="[^/]+?",Or={sensitive:!1,strict:!1,start:!0,end:!0},Tr=/[.+*?^${}()[\]/\\]/g;function Lr(t,e){let i=0;for(;ie.length?1===e.length&&80===e[0]?1:-1:0}function Dr(t,e){let i=0;const o=t.score,n=e.score;for(;i0&&e[e.length-1]<0}const jr={type:0,value:""},Mr=/[a-zA-Z0-9_]/;function Br(t,e,i){const o=function(t,e){const i=Zn({},Or,e),o=[];let n=i.start?"^":"";const r=[];for(const l of t){const t=l.length?[]:[90];i.strict&&!l.length&&(n+="/");for(let e=0;e1&&("*"===s||"+"===s)&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:d,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):e("Invalid state to consume buffer"),d="")}function p(){d+=s}for(;l{r(p)}:Qn}function r(t){if(Cr(t)){const e=o.get(t);e&&(o.delete(t),i.splice(i.indexOf(e),1),e.children.forEach(r),e.alias.forEach(r))}else{const e=i.indexOf(t);e>-1&&(i.splice(e,1),t.record.name&&o.delete(t.record.name),t.children.forEach(r),t.alias.forEach(r))}}function a(t){let e=0;for(;e=0&&(t.record.path!==i[e].record.path||!qr(t,i[e]));)e++;i.splice(e,0,t),t.record.name&&!Hr(t)&&o.set(t.record.name,t)}return e=Wr({strict:!1,end:!0,sensitive:!1},e),t.forEach((t=>n(t))),{addRoute:n,resolve:function(t,e){let n,r,a,s={};if("name"in t&&t.name){if(n=o.get(t.name),!n)throw Ir(1,{location:t});a=n.record.name,s=Zn(Rr(e.params,n.keys.filter((t=>!t.optional)).map((t=>t.name))),t.params&&Rr(t.params,n.keys.map((t=>t.name)))),r=n.stringify(s)}else if("path"in t)r=t.path,n=i.find((t=>t.re.test(r))),n&&(s=n.parse(r),a=n.record.name);else{if(n=e.name?o.get(e.name):i.find((t=>t.re.test(e.path))),!n)throw Ir(1,{location:t,currentLocation:e});a=n.record.name,s=Zn({},e.params,t.params),r=n.stringify(s)}const l=[];let d=n;for(;d;)l.unshift(d.record),d=d.parent;return{name:a,path:r,params:s,matched:l,meta:Nr(l)}},removeRoute:r,getRoutes:function(){return i},getRecordMatcher:function(t){return o.get(t)}}}function Rr(t,e){const i={};for(const o of e)o in t&&(i[o]=t[o]);return i}function Fr(t){const e={},i=t.props||!1;if("component"in t)e.default=i;else for(const o in t.components)e[o]="object"==typeof i?i[o]:i;return e}function Hr(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Nr(t){return t.reduce(((t,e)=>Zn(t,e.meta)),{})}function Wr(t,e){const i={};for(const o in t)i[o]=o in e?e[o]:t[o];return i}function qr(t,e){return e.children.some((e=>e===t||qr(t,e)))}const Yr=/#/g,Gr=/&/g,Xr=/\//g,Ur=/=/g,Kr=/\?/g,Zr=/\+/g,Jr=/%5B/g,Qr=/%5D/g,ta=/%5E/g,ea=/%60/g,ia=/%7B/g,oa=/%7C/g,na=/%7D/g,ra=/%20/g;function aa(t){return encodeURI(""+t).replace(oa,"|").replace(Jr,"[").replace(Qr,"]")}function sa(t){return aa(t).replace(Zr,"%2B").replace(ra,"+").replace(Yr,"%23").replace(Gr,"%26").replace(ea,"`").replace(ia,"{").replace(na,"}").replace(ta,"^")}function la(t){return null==t?"":function(t){return aa(t).replace(Yr,"%23").replace(Kr,"%3F")}(t).replace(Xr,"%2F")}function da(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}function ca(t){const e={};if(""===t||"?"===t)return e;const i=("?"===t[0]?t.slice(1):t).split("&");for(let o=0;ot&&sa(t))):[o&&sa(o)]).forEach((t=>{void 0!==t&&(e+=(e.length?"&":"")+i,null!=t&&(e+="="+t))})):void 0!==o&&(e+=(e.length?"&":"")+i)}return e}function pa(t){const e={};for(const i in t){const o=t[i];void 0!==o&&(e[i]=tr(o)?o.map((t=>null==t?null:""+t)):null==o?o:""+o)}return e}const ma=Symbol(""),ua=Symbol(""),ga=Symbol(""),ba=Symbol(""),fa=Symbol("");function va(){let t=[];return{add:function(e){return t.push(e),()=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)}},list:()=>t.slice(),reset:function(){t=[]}}}function xa(t,e,i,o,n){const r=o&&(o.enterCallbacks[n]=o.enterCallbacks[n]||[]);return()=>new Promise(((a,s)=>{const l=t=>{var l;!1===t?s(Ir(4,{from:i,to:e})):t instanceof Error?s(t):"string"==typeof(l=t)||l&&"object"==typeof l?s(Ir(2,{from:e,to:t})):(r&&o.enterCallbacks[n]===r&&"function"==typeof t&&r.push(t),a())},d=t.call(o&&o.instances[n],e,i,l);let c=Promise.resolve(d);t.length<3&&(c=c.then(l)),c.catch((t=>s(t)))}))}function wa(t,e,i,o){const n=[];for(const a of t)for(const t in a.components){let s=a.components[t];if("beforeRouteEnter"===e||a.instances[t])if("object"==typeof(r=s)||"displayName"in r||"props"in r||"__vccOpts"in r){const r=(s.__vccOpts||s)[e];r&&n.push(xa(r,i,o,a,t))}else{let r=s();n.push((()=>r.then((n=>{if(!n)return Promise.reject(new Error(`Couldn't resolve component "${t}" at "${a.path}"`));const r=(s=n).__esModule||"Module"===s[Symbol.toStringTag]?n.default:n;var s;a.components[t]=r;const l=(r.__vccOpts||r)[e];return l&&xa(l,i,o,a,t)()}))))}}var r;return n}function ya(t){const e=ho(ga),i=ho(ba),o=zn((()=>e.resolve(Ce(t.to)))),n=zn((()=>{const{matched:t}=o.value,{length:e}=t,n=t[e-1],r=i.matched;if(!n||!r.length)return-1;const a=r.findIndex(rr.bind(null,n));if(a>-1)return a;const s=Ca(t[e-2]);return e>1&&Ca(n)===s&&r[r.length-1].path!==s?r.findIndex(rr.bind(null,t[e-2])):a})),r=zn((()=>n.value>-1&&function(t,e){for(const i in e){const o=e[i],n=t[i];if("string"==typeof o){if(o!==n)return!1}else if(!tr(n)||n.length!==o.length||o.some(((t,e)=>t!==n[e])))return!1}return!0}(i.params,o.value.params))),a=zn((()=>n.value>-1&&n.value===i.matched.length-1&&ar(i.params,o.value.params)));return{route:o,href:zn((()=>o.value.href)),isActive:r,isExactActive:a,navigate:function(i={}){return function(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}(i)?e[Ce(t.replace)?"replace":"push"](Ce(t.to)).catch(Qn):Promise.resolve()}}}const ka=yi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ya,setup(t,{slots:e}){const i=ne(ya(t)),{options:o}=ho(ga),n=zn((()=>({[Ea(t.activeClass,o.linkActiveClass,"router-link-active")]:i.isActive,[Ea(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive})));return()=>{const o=e.default&&e.default(i);return t.custom?o:Sn("a",{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:n.value},o)}}});function Ca(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Ea=(t,e,i)=>null!=t?t:null!=e?e:i;function za(t,e){if(!t)return null;const i=t(e);return 1===i.length?i[0]:i}const Sa=yi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:i}){const o=ho(fa),n=zn((()=>t.route||o.value)),r=ho(ua,0),a=zn((()=>{let t=Ce(r);const{matched:e}=n.value;let i;for(;(i=e[t])&&!i.components;)t++;return t})),s=zn((()=>n.value.matched[a.value]));co(ua,zn((()=>a.value+1))),co(ma,s),co(fa,n);const l=xe();return gi((()=>[l.value,s.value,t.name]),(([t,e,i],[o,n,r])=>{e&&(e.instances[i]=t,n&&n!==e&&t&&t===o&&(e.leaveGuards.size||(e.leaveGuards=n.leaveGuards),e.updateGuards.size||(e.updateGuards=n.updateGuards))),!t||!e||n&&rr(e,n)&&o||(e.enterCallbacks[i]||[]).forEach((e=>e(t)))}),{flush:"post"}),()=>{const o=n.value,r=t.name,a=s.value,d=a&&a.components[r];if(!d)return za(i.default,{Component:d,route:o});const c=a.props[r],h=c?!0===c?o.params:"function"==typeof c?c(o):c:null,p=Sn(d,Zn({},h,e,{onVnodeUnmounted:t=>{t.component.isUnmounted&&(a.instances[r]=null)},ref:l}));return za(i.default,{Component:p,route:o})||p}}});function Aa(t){const e=Vr(t.routes,t),i=t.parseQuery||ca,o=t.stringifyQuery||ha,n=t.history,r=va(),a=va(),s=va(),l=we(Er);let d=Er;Kn&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Jn.bind(null,(t=>""+t)),h=Jn.bind(null,la),p=Jn.bind(null,da);function m(t,r){if(r=Zn({},r||l.value),"string"==typeof t){const o=or(i,t,r.path),a=e.resolve({path:o.path},r),s=n.createHref(o.fullPath);return Zn(o,a,{params:p(a.params),hash:da(o.hash),redirectedFrom:void 0,href:s})}let a;if("path"in t)a=Zn({},t,{path:or(i,t.path,r.path).path});else{const e=Zn({},t.params);for(const t in e)null==e[t]&&delete e[t];a=Zn({},t,{params:h(e)}),r.params=h(r.params)}const s=e.resolve(a,r),d=t.hash||"";s.params=c(p(s.params));const m=function(t,e){const i=e.query?t(e.query):"";return e.path+(i&&"?")+i+(e.hash||"")}(o,Zn({},t,{hash:(u=d,aa(u).replace(ia,"{").replace(na,"}").replace(ta,"^")),path:s.path}));var u;const g=n.createHref(m);return Zn({fullPath:m,hash:d,query:o===ha?pa(t.query):t.query||{}},s,{redirectedFrom:void 0,href:g})}function u(t){return"string"==typeof t?or(i,t,l.value.path):Zn({},t)}function g(t,e){if(d!==t)return Ir(8,{from:e,to:t})}function b(t){return v(t)}function f(t){const e=t.matched[t.matched.length-1];if(e&&e.redirect){const{redirect:i}=e;let o="function"==typeof i?i(t):i;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=u(o):{path:o},o.params={}),Zn({query:t.query,hash:t.hash,params:"path"in o?{}:t.params},o)}}function v(t,e){const i=d=m(t),n=l.value,r=t.state,a=t.force,s=!0===t.replace,c=f(i);if(c)return v(Zn(u(c),{state:"object"==typeof c?Zn({},r,c.state):r,force:a,replace:s}),e||i);const h=i;let p;return h.redirectedFrom=e,!a&&function(t,e,i){const o=e.matched.length-1,n=i.matched.length-1;return o>-1&&o===n&&rr(e.matched[o],i.matched[n])&&ar(e.params,i.params)&&t(e.query)===t(i.query)&&e.hash===i.hash}(o,n,i)&&(p=Ir(16,{to:h,from:n}),O(n,n,!0,!1)),(p?Promise.resolve(p):y(h,n)).catch((t=>Pr(t)?Pr(t,2)?t:$(t):P(t,h,n))).then((t=>{if(t){if(Pr(t,2))return v(Zn({replace:s},u(t.to),{state:"object"==typeof t.to?Zn({},r,t.to.state):r,force:a}),e||h)}else t=C(h,n,!0,s,r);return k(h,n,t),t}))}function x(t,e){const i=g(t,e);return i?Promise.reject(i):Promise.resolve()}function w(t){const e=D.values().next().value;return e&&"function"==typeof e.runWithContext?e.runWithContext(t):t()}function y(t,e){let i;const[o,n,s]=function(t,e){const i=[],o=[],n=[],r=Math.max(e.matched.length,t.matched.length);for(let a=0;arr(t,r)))?o.push(r):i.push(r));const s=t.matched[a];s&&(e.matched.find((t=>rr(t,s)))||n.push(s))}return[i,o,n]}(t,e);i=wa(o.reverse(),"beforeRouteLeave",t,e);for(const r of o)r.leaveGuards.forEach((o=>{i.push(xa(o,t,e))}));const l=x.bind(null,t,e);return i.push(l),j(i).then((()=>{i=[];for(const o of r.list())i.push(xa(o,t,e));return i.push(l),j(i)})).then((()=>{i=wa(n,"beforeRouteUpdate",t,e);for(const o of n)o.updateGuards.forEach((o=>{i.push(xa(o,t,e))}));return i.push(l),j(i)})).then((()=>{i=[];for(const o of s)if(o.beforeEnter)if(tr(o.beforeEnter))for(const n of o.beforeEnter)i.push(xa(n,t,e));else i.push(xa(o.beforeEnter,t,e));return i.push(l),j(i)})).then((()=>(t.matched.forEach((t=>t.enterCallbacks={})),i=wa(s,"beforeRouteEnter",t,e),i.push(l),j(i)))).then((()=>{i=[];for(const o of a.list())i.push(xa(o,t,e));return i.push(l),j(i)})).catch((t=>Pr(t,8)?t:Promise.reject(t)))}function k(t,e,i){s.list().forEach((o=>w((()=>o(t,e,i)))))}function C(t,e,i,o,r){const a=g(t,e);if(a)return a;const s=e===Er,d=Kn?history.state:{};i&&(o||s?n.replace(t.fullPath,Zn({scroll:s&&d&&d.scroll},r)):n.push(t.fullPath,r)),l.value=t,O(t,e,i,s),$()}let E;function z(){E||(E=n.listen(((t,e,i)=>{if(!_.listening)return;const o=m(t),r=f(o);if(r)return void v(Zn(r,{replace:!0}),o).catch(Qn);d=o;const a=l.value;Kn&&function(t,e){vr.set(t,e)}(fr(a.fullPath,i.delta),gr()),y(o,a).catch((t=>Pr(t,12)?t:Pr(t,2)?(v(t.to,o).then((t=>{Pr(t,20)&&!i.delta&&i.type===dr.pop&&n.go(-1,!1)})).catch(Qn),Promise.reject()):(i.delta&&n.go(-i.delta,!1),P(t,o,a)))).then((t=>{(t=t||C(o,a,!1))&&(i.delta&&!Pr(t,8)?n.go(-i.delta,!1):i.type===dr.pop&&Pr(t,20)&&n.go(-1,!1)),k(o,a,t)})).catch(Qn)})))}let S,A=va(),I=va();function P(t,e,i){$(t);const o=I.list();return o.length?o.forEach((o=>o(t,e,i))):console.error(t),Promise.reject(t)}function $(t){return S||(S=!t,z(),A.list().forEach((([e,i])=>t?i(t):e())),A.reset()),t}function O(e,i,o,n){const{scrollBehavior:r}=t;if(!Kn||!r)return Promise.resolve();const a=!o&&function(t){const e=vr.get(t);return vr.delete(t),e}(fr(e.fullPath,0))||(n||!o)&&history.state&&history.state.scroll||null;return Ve().then((()=>r(e,i,a))).then((t=>t&&br(t))).catch((t=>P(t,e,i)))}const T=t=>n.go(t);let L;const D=new Set,_={currentRoute:l,listening:!0,addRoute:function(t,i){let o,n;return Cr(t)?(o=e.getRecordMatcher(t),n=i):n=t,e.addRoute(n,o)},removeRoute:function(t){const i=e.getRecordMatcher(t);i&&e.removeRoute(i)},hasRoute:function(t){return!!e.getRecordMatcher(t)},getRoutes:function(){return e.getRoutes().map((t=>t.record))},resolve:m,options:t,push:b,replace:function(t){return b(Zn(u(t),{replace:!0}))},go:T,back:()=>T(-1),forward:()=>T(1),beforeEach:r.add,beforeResolve:a.add,afterEach:s.add,onError:I.add,isReady:function(){return S&&l.value!==Er?Promise.resolve():new Promise(((t,e)=>{A.add([t,e])}))},install(t){t.component("RouterLink",ka),t.component("RouterView",Sa),t.config.globalProperties.$router=this,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>Ce(l)}),Kn&&!L&&l.value===Er&&(L=!0,b(n.location).catch((t=>{})));const e={};for(const o in Er)Object.defineProperty(e,o,{get:()=>l.value[o],enumerable:!0});t.provide(ga,this),t.provide(ba,re(e)),t.provide(fa,l);const i=t.unmount;D.add(t),t.unmount=function(){D.delete(t),D.size<1&&(d=Er,E&&E(),E=null,l.value=Er,L=!1,S=!1),i()}}};function j(t){return t.reduce(((t,e)=>t.then((()=>w(e)))),Promise.resolve())}return _}function Ia(){return ho(ba)}const Pa=function(t,e,i){let o=Promise.resolve();return o.then((()=>t())).catch((t=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=t,window.dispatchEvent(e),!e.defaultPrevented)throw t}))},$a=!0,Oa=!0,Ta=!0,La=!1,Da=!1,_a=!1;let ja,Ma,Ba,Va=!1,Ra=!1,Fa=!1,Ha=!1,Na=null,Wa=!1;const qa=!0,Ya=t=>{const e=new URL(t,el.$resourcesUrl$);return e.origin!==Js.location.origin?e.href:e.pathname},Ga="http://www.w3.org/1999/xlink",Xa={},Ua=t=>"object"==(t=typeof t)||"function"===t,Ka=(t,e,...i)=>{let o=null,n=null,r=null,a=!1,s=!1;const l=[],d=e=>{for(let i=0;it[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,l,Qa);const c=Za(t,null);return c.$attrs$=e,l.length>0&&(c.$children$=l),c.$key$=n,c.$name$=r,c},Za=(t,e)=>{const i={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return i},Ja={},Qa={forEach:(t,e)=>t.map(ts).forEach(e),map:(t,e)=>t.map(ts).map(e).map(es)},ts=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),es=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),Ka(t.vtag,e,...t.vchildren||[])}const e=Za(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},is=(t,e,i)=>{const o=t;return{emit:t=>os(o,e,{bubbles:!!(4&i),composed:!!(2&i),cancelable:!!(1&i),detail:t})}},os=(t,e,i)=>{const o=el.ce(e,i);return t.dispatchEvent(o),o},ns=new WeakMap,rs=t=>{const e=t.$cmpMeta$,i=t.$hostElement$,o=e.$flags$,n=(e.$tagName$,()=>{}),r=((t,e,i)=>{var o;const n=as(e,i),r=Ks.get(n);if(t=11===t.nodeType?t:Qs,r)if("string"==typeof r){t=t.head||t;let i,a=ns.get(t);if(a||ns.set(t,a=new Set),!a.has(n)){{i=Qs.createElement("style"),i.innerHTML=r;const e=null!==(o=el.$nonce$)&&void 0!==o?o:function(t){var e,i,o;return null!==(o=null===(i=null===(e=t.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===i?void 0:i.getAttribute("content"))&&void 0!==o?o:void 0}(Qs);null!=e&&i.setAttribute("nonce",e),t.insertBefore(i,t.querySelector("link"))}4&e.$flags$&&(i.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),a&&a.add(n)}}else t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r]);return n})(i.shadowRoot?i.shadowRoot:i.getRootNode(),e,t.$modeName$);10&o&&(i["s-sc"]=r,i.classList.add(r+"-h"),2&o&&i.classList.add(r+"-s")),n()},as=(t,e)=>"sc-"+(e&&32&t.$flags$?t.$tagName$+"-"+e:t.$tagName$),ss=(t,e,i,o,n,r)=>{if(i!==o){let s=Xs(t,e),l=e.toLowerCase();if("class"===e){const e=t.classList,n=ds(i),r=ds(o);e.remove(...n.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!n.includes(t))))}else if("style"===e){for(const e in i)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)i&&o[e]===i[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const d=Ua(o);if((s||d&&null!==o)&&!n)try{if(t.tagName.includes("-"))t[e]=o;else{const n=null==o?"":o;"list"===e?s=!1:null!=i&&t[e]==n||(t[e]=n)}}catch(a){}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(e=l,c=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(c?t.removeAttributeNS(Ga,e):t.removeAttribute(e)):(!s||4&r||n)&&!d&&(o=!0===o?"":o,c?t.setAttributeNS(Ga,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):Xs(Js,l)?l.slice(2):l[2]+e.slice(3),i||o){const n=e.endsWith(cs);e=e.replace(hs,""),i&&el.rel(t,e,i,n),o&&el.ael(t,e,o,n)}}},ls=/\s/,ds=t=>t?t.split(ls):[],cs="Capture",hs=new RegExp(cs+"$"),ps=(t,e,i,o)=>{const n=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,r=t&&t.$attrs$||Xa,a=e.$attrs$||Xa;for(o in r)o in a||ss(n,o,r[o],void 0,i,e.$flags$);for(o in a)ss(n,o,r[o],a[o],i,e.$flags$)},ms=(t,e,i,o)=>{var n;const r=e.$children$[i];let a,s,l,d=0;if(Va||(Fa=!0,"slot"===r.$tag$&&(ja&&o.classList.add(ja+"-s"),r.$flags$|=r.$children$?2:1)),null!==r.$text$)a=r.$elm$=Qs.createTextNode(r.$text$);else if(1&r.$flags$)a=r.$elm$=Qs.createTextNode("");else{if(Ha||(Ha="svg"===r.$tag$),a=r.$elm$=Qs.createElementNS(Ha?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&r.$flags$?"slot-fb":r.$tag$),Ha&&"foreignObject"===r.$tag$&&(Ha=!1),ps(null,r,Ha),null!=ja&&a["s-si"]!==ja&&a.classList.add(a["s-si"]=ja),r.$children$)for(d=0;d{var i;el.$flags$|=1;const o=t.childNodes;for(let n=o.length-1;n>=0;n--){const t=o[n];t["s-hn"]!==Ba&&t["s-ol"]&&(xs(t).insertBefore(t,vs(t)),t["s-ol"].remove(),t["s-ol"]=void 0,t["s-sh"]=void 0,1===t.nodeType&&t.setAttribute("slot",null!==(i=t["s-sn"])&&void 0!==i?i:""),Fa=!0),e&&us(t,e)}el.$flags$&=-2},gs=(t,e,i,o,n,r)=>{let a,s=t["s-cr"]&&t["s-cr"].parentNode||t;for(s.shadowRoot&&s.tagName===Ba&&(s=s.shadowRoot);n<=r;++n)o[n]&&(a=ms(null,i,n,t),a&&(o[n].$elm$=a,s.insertBefore(a,vs(e))))},bs=(t,e,i)=>{for(let o=e;o<=i;++o){const e=t[o];if(e){const t=e.$elm$;zs(e),t&&(Ra=!0,t["s-ol"]?t["s-ol"].remove():us(t,!0),t.remove())}}},fs=(t,e,i=!1)=>t.$tag$===e.$tag$&&("slot"===t.$tag$?t.$name$===e.$name$:!!i||t.$key$===e.$key$),vs=t=>t&&t["s-ol"]||t,xs=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ws=(t,e,i=!1)=>{const o=e.$elm$=t.$elm$,n=t.$children$,r=e.$children$,a=e.$tag$,s=e.$text$;let l;null===s?(Ha="svg"===a||"foreignObject"!==a&&Ha,"slot"===a||ps(t,e,Ha),null!==n&&null!==r?((t,e,i,o,n=!1)=>{let r,a,s=0,l=0,d=0,c=0,h=e.length-1,p=e[0],m=e[h],u=o.length-1,g=o[0],b=o[u];for(;s<=h&&l<=u;)if(null==p)p=e[++s];else if(null==m)m=e[--h];else if(null==g)g=o[++l];else if(null==b)b=o[--u];else if(fs(p,g,n))ws(p,g,n),p=e[++s],g=o[++l];else if(fs(m,b,n))ws(m,b,n),m=e[--h],b=o[--u];else if(fs(p,b,n))"slot"!==p.$tag$&&"slot"!==b.$tag$||us(p.$elm$.parentNode,!1),ws(p,b,n),t.insertBefore(p.$elm$,m.$elm$.nextSibling),p=e[++s],b=o[--u];else if(fs(m,g,n))"slot"!==p.$tag$&&"slot"!==b.$tag$||us(m.$elm$.parentNode,!1),ws(m,g,n),t.insertBefore(m.$elm$,p.$elm$),m=e[--h],g=o[++l];else{for(d=-1,c=s;c<=h;++c)if(e[c]&&null!==e[c].$key$&&e[c].$key$===g.$key$){d=c;break}d>=0?(a=e[d],a.$tag$!==g.$tag$?r=ms(e&&e[l],i,d,t):(ws(a,g,n),e[d]=void 0,r=a.$elm$),g=o[++l]):(r=ms(e&&e[l],i,l,t),g=o[++l]),r&&xs(p.$elm$).insertBefore(r,vs(p.$elm$))}s>h?gs(t,null==o[u+1]?null:o[u+1].$elm$,i,o,l,u):l>u&&bs(e,s,h)})(o,n,e,r,i):null!==r?(null!==t.$text$&&(o.textContent=""),gs(o,null,e,r,0,r.length-1)):null!==n&&bs(n,0,n.length-1),Ha&&"svg"===a&&(Ha=!1)):(l=o["s-cr"])?l.parentNode.textContent=s:t.$text$!==s&&(o.data=s)},ys=t=>{const e=t.childNodes;for(const i of e)if(1===i.nodeType){if(i["s-sr"]){const t=i["s-sn"];i.hidden=!1;for(const o of e)if(o!==i)if(o["s-hn"]!==i["s-hn"]||""!==t){if(1===o.nodeType&&(t===o.getAttribute("slot")||t===o["s-sn"])){i.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){i.hidden=!0;break}}ys(i)}},ks=[],Cs=t=>{let e,i,o;for(const n of t.childNodes){if(n["s-sr"]&&(e=n["s-cr"])&&e.parentNode){i=e.parentNode.childNodes;const t=n["s-sn"];for(o=i.length-1;o>=0;o--)if(e=i[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==n["s-hn"]&&!_a)if(Es(e,t)){let i=ks.find((t=>t.$nodeToRelocate$===e));Ra=!0,e["s-sn"]=e["s-sn"]||t,i?(i.$nodeToRelocate$["s-sh"]=n["s-hn"],i.$slotRefNode$=n):(e["s-sh"]=n["s-hn"],ks.push({$slotRefNode$:n,$nodeToRelocate$:e})),e["s-sr"]&&ks.map((t=>{Es(t.$nodeToRelocate$,e["s-sn"])&&(i=ks.find((t=>t.$nodeToRelocate$===e)),i&&!t.$slotRefNode$&&(t.$slotRefNode$=i.$slotRefNode$))}))}else ks.some((t=>t.$nodeToRelocate$===e))||ks.push({$nodeToRelocate$:e})}1===n.nodeType&&Cs(n)}},Es=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,zs=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(zs)},Ss=(t,e,i=!1)=>{var o,n,r,a;const s=t.$hostElement$,l=t.$cmpMeta$,d=t.$vnode$||Za(null,null),c=(h=e)&&h.$tag$===Ja?e:Ka(null,null,e);var h;if(Ba=s.tagName,l.$attrsToReflect$&&(c.$attrs$=c.$attrs$||{},l.$attrsToReflect$.map((([t,e])=>c.$attrs$[e]=s[t]))),i&&c.$attrs$)for(const p of Object.keys(c.$attrs$))s.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(c.$attrs$[p]=s[p]);if(c.$tag$=null,c.$flags$|=4,t.$vnode$=c,c.$elm$=d.$elm$=s.shadowRoot||s,ja=s["s-sc"],Ma=s["s-cr"],Va=0!=(1&l.$flags$),Ra=!1,ws(d,c,i),el.$flags$|=1,Fa){Cs(c.$elm$);for(const t of ks){const e=t.$nodeToRelocate$;if(!e["s-ol"]){const t=Qs.createTextNode("");t["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=t,e)}}for(const t of ks){const e=t.$nodeToRelocate$,s=t.$slotRefNode$;if(s){const t=s.parentNode;let i=s.nextSibling;{let r=null===(o=e["s-ol"])||void 0===o?void 0:o.previousSibling;for(;r;){let o=null!==(n=r["s-nr"])&&void 0!==n?n:null;if(o&&o["s-sn"]===e["s-sn"]&&t===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){i=o;break}r=r.previousSibling}}(!i&&t!==e.parentNode||e.nextSibling!==i)&&e!==i&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),t.insertBefore(e,i),1===e.nodeType&&(e.hidden=null!==(r=e["s-ih"])&&void 0!==r&&r))}else 1===e.nodeType&&(i&&(e["s-ih"]=null!==(a=e.hidden)&&void 0!==a&&a),e.hidden=!0)}}Ra&&ys(c.$elm$),el.$flags$&=-2,ks.length=0},As=(t,e)=>(t.$flags$|=16,t.$ancestorComponent$,hl((()=>Is(t,e)))),Is=(t,e)=>{const i=t.$hostElement$,o=(t.$cmpMeta$.$tagName$,()=>{}),n=i;let r;return r=_s(n,e?"componentWillLoad":"componentWillUpdate"),r=Ps(r,(()=>_s(n,"componentWillRender"))),o(),Ps(r,(()=>Os(t,n,e)))},Ps=(t,e)=>$s(t)?t.then(e):e(),$s=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Os=async(t,e,i)=>{const o=t.$hostElement$,n=(t.$cmpMeta$.$tagName$,()=>{});o["s-rc"],i&&rs(t);const r=(t.$cmpMeta$.$tagName$,()=>{});Ts(t,e,o,i),r(),n(),Ls(t)},Ts=(t,e,i,o)=>{try{Na=e,e=e.render&&e.render(),t.$flags$&=-17,t.$flags$|=2,($a||Oa)&&(Ta||Oa)&&(La||Ss(t,e,o))}catch(n){Us(n,t.$hostElement$)}return Na=null,null},Ls=t=>{t.$cmpMeta$.$tagName$;const e=()=>{},i=t.$hostElement$;t.$ancestorComponent$,_s(i,"componentDidRender"),64&t.$flags$?(_s(i,"componentDidUpdate"),e()):(t.$flags$|=64,_s(i,"componentDidLoad"),e())},Ds=t=>{{const e=Ys(t),i=e.$hostElement$.isConnected;return i&&2==(18&e.$flags$)&&As(e,!1),i}},_s=(t,e,i)=>{if(t&&t[e])try{return t[e](i)}catch(o){Us(o)}},js=(t,e,i,o)=>{const n=Ys(t),r=t,a=n.$instanceValues$.get(e),s=n.$flags$,l=r;var d,c;d=i,c=o.$members$[e][0],i=null==d||Ua(d)?d:4&c?"false"!==d&&(""===d||!!d):2&c?parseFloat(d):1&c?String(d):d;const h=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!h){if(n.$instanceValues$.set(e,i),o.$watchers$&&128&s){const t=o.$watchers$[e];t&&t.map((t=>{try{l[t](i,a,e)}catch(o){Us(o,r)}}))}if(2==(18&s)){if(l.componentShouldUpdate&&!1===l.componentShouldUpdate(i,a,e))return;As(n,!1)}}},Ms=(t,e,i)=>{var o;const n=t.prototype;if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);const i=Object.entries(e.$members$);i.map((([t,[i]])=>{(31&i||32&i)&&Object.defineProperty(n,t,{get(){return((t,e)=>Ys(t).$instanceValues$.get(e))(this,t)},set(i){js(this,t,i,e)},configurable:!0,enumerable:!0})}));{const r=new Map;n.attributeChangedCallback=function(t,i,o){el.jmp((()=>{var a;const s=r.get(t);if(this.hasOwnProperty(s))o=this[s],delete this[s];else{if(n.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==o)return;if(null==s){const n=Ys(this),r=null==n?void 0:n.$flags$;if(r&&!(8&r)&&128&r&&o!==i){const n=this,r=null===(a=e.$watchers$)||void 0===a?void 0:a[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,o,i,t)}))}return}}this[s]=(null!==o||"boolean"!=typeof this[s])&&o}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!==(o=e.$watchers$)&&void 0!==o?o:{}),...i.filter((([t,e])=>15&e[0])).map((([t,i])=>{var o;const n=i[1]||t;return r.set(n,t),512&i[0]&&(null===(o=e.$attrsToReflect$)||void 0===o||o.push([t,n])),n}))]))}}return t},Bs=async(t,e,i,o)=>{let n;if(0==(32&e.$flags$)&&(e.$flags$|=32,n=t.constructor,customElements.whenDefined(i.$tagName$).then((()=>e.$flags$|=128)),n.style)){let o=n.style;"string"!=typeof o&&(o=o[e.$modeName$=(t=>Zs.map((e=>e(t))).find((t=>!!t)))(t)]);const r=as(i,e.$modeName$);if(!Ks.has(r)){const t=(i.$tagName$,()=>{});((t,e,i)=>{let o=Ks.get(t);ol&&i?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,Ks.set(t,o)})(r,o,!!(1&i.$flags$)),t()}}e.$ancestorComponent$,As(e,!0)},Vs=t=>{const e=t["s-cr"]=Qs.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},Rs=(t,e)=>{const i={$flags$:e[0],$tagName$:e[1]};i.$members$=e[2],i.$listeners$=e[3],i.$watchers$=t.$watchers$,i.$attrsToReflect$=[];const o=t.prototype.connectedCallback,n=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__registerHost(){Gs(this,i)},connectedCallback(){(t=>{if(0==(1&el.$flags$)){const e=Ys(t),i=e.$cmpMeta$,o=(i.$tagName$,()=>{});1&e.$flags$?(Fs(t,e,i.$listeners$),(null==e?void 0:e.$lazyInstance$)?e.$lazyInstance$:(null==e?void 0:e.$onReadyPromise$)&&e.$onReadyPromise$.then((()=>{e.$lazyInstance$}))):(e.$flags$|=1,12&i.$flags$&&Vs(t),i.$members$&&Object.entries(i.$members$).map((([e,[i]])=>{if(31&i&&t.hasOwnProperty(e)){const i=t[e];delete t[e],t[e]=i}})),Bs(t,e,i)),o()}})(this),o&&o.call(this)},disconnectedCallback(){(async t=>{if(0==(1&el.$flags$)){const e=Ys(t);e.$rmListeners$&&(e.$rmListeners$.map((t=>t())),e.$rmListeners$=void 0)}})(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(16&i.$flags$)})}}),t.is=i.$tagName$,Ms(t,i)},Fs=(t,e,i,o)=>{i&&i.map((([i,o,n])=>{const r=Ns(t,i),a=Hs(e,n),s=Ws(i);el.ael(r,o,a,s),(e.$rmListeners$=e.$rmListeners$||[]).push((()=>el.rel(r,o,a,s)))}))},Hs=(t,e)=>i=>{try{Da||t.$hostElement$[e](i)}catch(o){Us(o)}},Ns=(t,e)=>4&e?Qs:8&e?Js:16&e?Qs.body:t,Ws=t=>il?{passive:0!=(1&t),capture:0!=(2&t)}:0!=(2&t),qs=new WeakMap,Ys=t=>qs.get(t),Gs=(t,e)=>{const i={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return Fs(t,i,e.$listeners$),qs.set(t,i)},Xs=(t,e)=>e in t,Us=(t,e)=>(0,console.error)(t,e),Ks=new Map,Zs=[],Js="undefined"!=typeof window?window:{},Qs=Js.document||{head:{}},tl=Js.HTMLElement||class{},el={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,i,o)=>t.addEventListener(e,i,o),rel:(t,e,i,o)=>t.removeEventListener(e,i,o),ce:(t,e)=>new CustomEvent(t,e)},il=(()=>{let t=!1;try{Qs.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch(e){}return t})(),ol=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),nl=[],rl=[],al=(t,e)=>i=>{t.push(i),Wa||(Wa=!0,e&&4&el.$flags$?dl(ll):el.raf(ll))},sl=t=>{for(let i=0;i{sl(nl),sl(rl),(Wa=nl.length>0)&&el.raf(ll)},dl=t=>{return Promise.resolve(e).then(t);var e},cl=t("aV",al(nl,!1)),hl=t("aY",al(rl,!0)),pl=(t,e=0)=>new Promise((i=>{ml(t,e,i)})),ml=(t,e=0,i)=>{let o,n;const r={passive:!0},a=()=>{o&&o()},s=e=>{void 0!==e&&t!==e.target||(a(),i(e))};return t&&(t.addEventListener("webkitTransitionEnd",s,r),t.addEventListener("transitionend",s,r),n=setTimeout(s,e+500),o=()=>{n&&(clearTimeout(n),n=void 0),t.removeEventListener("webkitTransitionEnd",s,r),t.removeEventListener("transitionend",s,r)}),a},ul=t("aX",((t,e)=>{t.componentOnReady?t.componentOnReady().then((t=>e(t))):kl((()=>e(t)))})),gl=t=>void 0!==t.componentOnReady,bl=(t,e=[])=>{const i={};return e.forEach((e=>{t.hasAttribute(e)&&(null!==t.getAttribute(e)&&(i[e]=t.getAttribute(e)),t.removeAttribute(e))})),i},fl=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],vl=(t,e)=>{let i=fl;return e&&e.length>0&&(i=i.filter((t=>!e.includes(t)))),bl(t,i)},xl=t("a$",((t,e,i,o)=>{var n;if("undefined"!=typeof window){const r=window,a=null===(n=null==r?void 0:r.Ionic)||void 0===n?void 0:n.config;if(a){const n=a.get("_ael");if(n)return n(t,e,i,o);if(a._ael)return a._ael(t,e,i,o)}}return t.addEventListener(e,i,o)})),wl=t("b0",((t,e,i,o)=>{var n;if("undefined"!=typeof window){const r=window,a=null===(n=null==r?void 0:r.Ionic)||void 0===n?void 0:n.config;if(a){const n=a.get("_rel");if(n)return n(t,e,i,o);if(a._rel)return a._rel(t,e,i,o)}}return t.removeEventListener(e,i,o)})),yl=(t,e=t)=>t.shadowRoot||e,kl=t("b3",(t=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t))),Cl=t=>!!t.shadowRoot&&!!t.attachShadow,El=t=>{const e=t.closest("ion-item");return e?e.querySelector("ion-label"):null},zl=t=>{if(t.focus(),t.classList.contains("ion-focusable")){const e=t.closest("ion-app");e&&e.setFocus([t])}},Sl=(t,e)=>{let i;const o=t.getAttribute("aria-labelledby"),n=t.id;let r=null!==o&&""!==o.trim()?o:e+"-lbl",a=null!==o&&""!==o.trim()?document.getElementById(o):El(t);return a?(null===o&&(a.id=r),i=a.textContent,a.setAttribute("aria-hidden","true")):""!==n.trim()&&(a=document.querySelector(`label[for="${n}"]`),a&&(""!==a.id?r=a.id:a.id=r=`${n}-lbl`,i=a.textContent)),{label:a,labelId:r,labelText:i}},Al=(t,e,i,o,n)=>{if(t||Cl(e)){let t=e.querySelector("input.aux-input");t||(t=e.ownerDocument.createElement("input"),t.type="hidden",t.classList.add("aux-input"),e.appendChild(t)),t.disabled=n,t.name=i,t.value=o||""}},Il=t("aP",((t,e,i)=>Math.max(t,Math.min(e,i)))),Pl=(t,e)=>{if(!t){const t="ASSERT: "+e;throw console.error(t),new Error(t)}},$l=(t("aT",(t=>t.timeStamp||Date.now())),t("aU",(t=>{if(t){const e=t.changedTouches;if(e&&e.length>0){const t=e[0];return{x:t.clientX,y:t.clientY}}if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY}}return{x:0,y:0}})),t=>{const e="rtl"===document.dir;switch(t){case"start":return e;case"end":return!e;default:throw new Error(`"${t}" is not a valid value for [side]. Use "start" or "end" instead.`)}}),Ol=(t,e)=>{const i=t._original||t;return{_original:t,emit:Tl(i.emit.bind(i),e)}},Tl=(t,e=0)=>{let i;return(...o)=>{clearTimeout(i),i=setTimeout(t,e,...o)}},Ll=(t,e)=>{if(null!=t||(t={}),null!=e||(e={}),t===e)return!0;const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!1;for(const o of i){if(!(o in e))return!1;if(t[o]!==e[o])return!1}return!0},Dl="data:image/svg+xml;utf8,",_l="data:image/svg+xml;utf8,",jl="data:image/svg+xml;utf8,",Ml="data:image/svg+xml;utf8,",Bl="data:image/svg+xml;utf8,",Vl="data:image/svg+xml;utf8,",Rl="data:image/svg+xml;utf8,"; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +class Fl{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,e){const i=this.m.get(t);return void 0!==i?i:e}getBoolean(t,e=!1){const i=this.m.get(t);return void 0===i?e:"string"==typeof i?"true"===i:!!i}getNumber(t,e){const i=parseFloat(this.m.get(t));return isNaN(i)?void 0!==e?e:NaN:i}set(t,e){this.m.set(t,e)}}const Hl=new Fl,Nl=(t,e)=>t.substr(0,e.length)===e,Wl="ionic:",ql="ionic-persist-config",Yl=(t,e)=>("string"==typeof t&&(e=t,t=void 0),(t=>Gl(t))(t).includes(e)),Gl=(t=window)=>{if(void 0===t)return[];t.Ionic=t.Ionic||{};let e=t.Ionic.platforms;return null==e&&(e=t.Ionic.platforms=Xl(t),e.forEach((e=>t.document.documentElement.classList.add(`plt-${e}`)))),e},Xl=t=>{const e=Hl.get("platform");return Object.keys(od).filter((i=>{const o=null==e?void 0:e[i];return"function"==typeof o?o(t):od[i](t)}))},Ul=t=>!!ed(t,/iPad/i)||!(!ed(t,/Macintosh/i)||!Zl(t)),Kl=t=>ed(t,/android|sink/i),Zl=t=>id(t,"(any-pointer:coarse)"),Jl=t=>Ql(t)||td(t),Ql=t=>!!(t.cordova||t.phonegap||t.PhoneGap),td=t=>{const e=t.Capacitor;return!!(null==e?void 0:e.isNative)},ed=(t,e)=>e.test(t.navigator.userAgent),id=(t,e)=>{var i;return null===(i=t.matchMedia)||void 0===i?void 0:i.call(t,e).matches},od={ipad:Ul,iphone:t=>ed(t,/iPhone/i),ios:t=>ed(t,/iPhone|iPod/i)||Ul(t),android:Kl,phablet:t=>{const e=t.innerWidth,i=t.innerHeight,o=Math.min(e,i),n=Math.max(e,i);return o>390&&o<520&&n>620&&n<800},tablet:t=>{const e=t.innerWidth,i=t.innerHeight,o=Math.min(e,i),n=Math.max(e,i);return Ul(t)||(t=>Kl(t)&&!ed(t,/mobile/i))(t)||o>460&&o<820&&n>780&&n<1400},cordova:Ql,capacitor:td,electron:t=>ed(t,/electron/i),pwa:t=>{var e;return!(!(null===(e=t.matchMedia)||void 0===e?void 0:e.call(t,"(display-mode: standalone)").matches)&&!t.navigator.standalone)},mobile:Zl,mobileweb:t=>Zl(t)&&!Jl(t),desktop:t=>!Zl(t),hybrid:Jl};let nd;const rd=t=>t&&(t=>Ys(t).$modeName$)(t)||nd,ad=(t={})=>{if("undefined"==typeof window)return;const e=window.document,i=window,o=i.Ionic=i.Ionic||{},n={};var r;t._ael&&(n.ael=t._ael),t._rel&&(n.rel=t._rel),t._ce&&(n.ce=t._ce),r=n,Object.assign(el,r);const a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(t=>{try{const e=t.sessionStorage.getItem(ql);return null!==e?JSON.parse(e):{}}catch(e){return{}}})(i)),{persistConfig:!1}),o.config),(t=>{const e={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,e])=>[decodeURIComponent(t),decodeURIComponent(e)])).filter((([t])=>Nl(t,Wl))).map((([t,e])=>[t.slice(Wl.length),e])).forEach((([t,i])=>{e[t]=i})),e})(i)),t);Hl.reset(a),Hl.getBoolean("persistConfig")&&((t,e)=>{try{t.sessionStorage.setItem(ql,JSON.stringify(e))}catch(i){return}})(i,a),Gl(i),o.config=Hl,o.mode=nd=Hl.get("mode",e.documentElement.getAttribute("mode")||(Yl(i,"ios")?"ios":"md")),Hl.set("mode",nd),e.documentElement.setAttribute("mode",nd),e.documentElement.classList.add(nd),Hl.getBoolean("_testing")&&Hl.set("animated",!1);const s=t=>{var e;return null===(e=t.tagName)||void 0===e?void 0:e.startsWith("ION-")},l=t=>["ios","md"].includes(t);var d;d=t=>{for(;t;){const e=t.mode||t.getAttribute("mode");if(e){if(l(e))return e;s(t)&&console.warn('Invalid ionic mode: "'+e+'", expected: "ios" or "md"')}t=t.parentElement}return nd},Zs.push(d)}; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +let sd;const ld=t=>{const e=(()=>{if("undefined"==typeof window)return new Map;if(!sd){const t=window;t.Ionicons=t.Ionicons||{},sd=t.Ionicons.map=t.Ionicons.map||new Map}return sd})().get(t);return e||Ya(`svg/${t}.svg`)},dd=(t,e,i,o,n)=>(i="ios"===(i&&md(i))?"ios":"md",o&&"ios"===i?t=md(o):n&&"md"===i?t=md(n):(t||!e||hd(e)||(t=e),pd(t)&&(t=md(t))),pd(t)&&""!==t.trim()?""!==t.replace(/[a-z]|-|\d/gi,"")?null:t:null),cd=t=>pd(t)&&(t=t.trim(),hd(t))?t:null,hd=t=>t.length>0&&/(\/|\.)/.test(t),pd=t=>"string"==typeof t,md=t=>t.toLowerCase(),ud=t=>{if(1===t.nodeType){if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e{let i=bd.get(t);if(!i){if("undefined"==typeof fetch||"undefined"==typeof document)return gd.set(t,""),Promise.resolve();if((t=>t.startsWith("data:image/svg+xml"))(t)&&(t=>-1!==t.indexOf(";utf8,"))(t)){fd||(fd=new DOMParser);const e=fd.parseFromString(t,"text/html").querySelector("svg");return e&&gd.set(t,e.outerHTML),Promise.resolve()}i=fetch(t).then((i=>{if(i.ok)return i.text().then((i=>{i&&!1!==e&&(i=(t=>{const e=document.createElement("div");e.innerHTML=t;for(let o=e.childNodes.length-1;o>=0;o--)"svg"!==e.childNodes[o].nodeName.toLowerCase()&&e.removeChild(e.childNodes[o]);const i=e.firstElementChild;if(i&&"svg"===i.nodeName.toLowerCase()){const t=i.getAttribute("class")||"";if(i.setAttribute("class",(t+" s-ion-icon").trim()),ud(i))return e.innerHTML}return""})(i)),gd.set(t,i||"")}));gd.set(t,"")})),bd.set(t,i)}return i},xd=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=wd(),this.color=void 0,this.ios=void 0,this.md=void 0,this.flipRtl=void 0,this.name=void 0,this.src=void 0,this.icon=void 0,this.size=void 0,this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=((t,e=[])=>{const i={};return e.forEach((e=>{t.hasAttribute(e)&&(null!==t.getAttribute(e)&&(i[e]=t.getAttribute(e)),t.removeAttribute(e))})),i})(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=!0,this.loadIcon()}))}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,i){if(this.lazy&&"undefined"!=typeof window&&window.IntersectionObserver){const o=this.io=new window.IntersectionObserver((t=>{t[0].isIntersecting&&(o.disconnect(),this.io=void 0,i())}),{rootMargin:e});o.observe(t)}else i()}loadIcon(){if(this.isVisible){const t=(t=>{let e=cd(t.src);if(e)return e;if(e=dd(t.name,t.icon,t.mode,t.ios,t.md),e)return ld(e);if(t.icon){if(e=cd(t.icon),e)return e;if(e=cd(t.icon[t.mode]),e)return e}return null})(this);t&&(gd.has(t)?this.svgContent=gd.get(t):vd(t,this.sanitize).then((()=>this.svgContent=gd.get(t))),this.didLoadIcon=!0)}this.iconName=dd(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:e,inheritedAttributes:i,el:o}=this,n=this.mode||"md",r=!!e&&(e.includes("arrow")||e.includes("chevron"))&&!1!==t,a=t||r;return Ka(Ja,Object.assign({role:"img",class:Object.assign(Object.assign({[n]:!0},yd(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":a,"icon-rtl":a&&(s=o,s&&""!==s.dir?"rtl"===s.dir.toLowerCase():"rtl"===(null===document||void 0===document?void 0:document.dir.toLowerCase()))})},i),this.svgContent?Ka("div",{class:"icon-inner",innerHTML:this.svgContent}):Ka("div",{class:"icon-inner"}));var s}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}"}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]},void 0,{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}]),wd=()=>"undefined"!=typeof document&&document.documentElement.getAttribute("mode")||"md",yd=t=>t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null;function kd(){"undefined"!=typeof customElements&&["ion-icon"].forEach((t=>{"ion-icon"===t&&(customElements.get(t)||customElements.define(t,xd))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Cd=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.updateListener=()=>this.updateState(!1),this.setItemDefaults=()=>{const t=this.getSlottedHeaderIonItem();t&&(t.button=!0,t.detail=!1,void 0===t.lines&&(t.lines="full"))},this.getSlottedHeaderIonItem=()=>{const{headerEl:t}=this;if(!t)return;const e=t.querySelector("slot");return e&&void 0!==e.assignedElements?e.assignedElements().find((t=>"ION-ITEM"===t.tagName)):void 0},this.setAria=(t=!1)=>{const e=this.getSlottedHeaderIonItem();if(!e)return;const i=yl(e).querySelector("button");i&&i.setAttribute("aria-expanded",`${t}`)},this.slotToggleIcon=()=>{const t=this.getSlottedHeaderIonItem();if(!t)return;const{toggleIconSlot:e,toggleIcon:i}=this;if(t.querySelector(".ion-accordion-toggle-icon"))return;const o=document.createElement("ion-icon");o.slot=e,o.lazy=!1,o.classList.add("ion-accordion-toggle-icon"),o.icon=i,o.setAttribute("aria-hidden","true"),t.appendChild(o)},this.expandAccordion=(t=!1)=>{const{contentEl:e,contentElWrapper:i}=this;t||void 0===e||void 0===i?this.state=4:4!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?kl((()=>{this.state=8,this.currentRaf=kl((async()=>{const t=i.offsetHeight,o=pl(e,2e3);e.style.setProperty("max-height",`${t}px`),await o,this.state=4,e.style.removeProperty("max-height")}))})):this.state=4)},this.collapseAccordion=(t=!1)=>{const{contentEl:e}=this;t||void 0===e?this.state=1:1!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?this.currentRaf=kl((async()=>{const t=e.offsetHeight;e.style.setProperty("max-height",`${t}px`),kl((async()=>{const t=pl(e,2e3);this.state=2,await t,this.state=1,e.style.removeProperty("max-height")}))})):this.state=1)},this.shouldAnimate=()=>"undefined"!=typeof window&&(!matchMedia("(prefers-reduced-motion: reduce)").matches&&!(!Hl.get("animated",!0)||this.accordionGroupEl&&!this.accordionGroupEl.animated)),this.updateState=async(t=!1)=>{const e=this.accordionGroupEl,i=this.value;if(!e)return;const o=e.value;if(Array.isArray(o)?o.includes(i):o===i)this.expandAccordion(t),this.isNext=this.isPrevious=!1;else{this.collapseAccordion(t);const e=this.getNextSibling(),i=null==e?void 0:e.value;void 0!==i&&(this.isPrevious=Array.isArray(o)?o.includes(i):o===i);const n=this.getPreviousSibling(),r=null==n?void 0:n.value;void 0!==r&&(this.isNext=Array.isArray(o)?o.includes(r):o===r)}},this.getNextSibling=()=>{if(!this.el)return;const t=this.el.nextElementSibling;return"ION-ACCORDION"===(null==t?void 0:t.tagName)?t:void 0},this.getPreviousSibling=()=>{if(!this.el)return;const t=this.el.previousElementSibling;return"ION-ACCORDION"===(null==t?void 0:t.tagName)?t:void 0},this.state=1,this.isNext=!1,this.isPrevious=!1,this.value="ion-accordion-"+Ed++,this.disabled=!1,this.readonly=!1,this.toggleIcon=Ml,this.toggleIconSlot="end"}valueChanged(){this.updateState()}connectedCallback(){var t;const e=this.accordionGroupEl=null===(t=this.el)||void 0===t?void 0:t.closest("ion-accordion-group");e&&(this.updateState(!0),xl(e,"ionValueChange",this.updateListener))}disconnectedCallback(){const t=this.accordionGroupEl;t&&wl(t,"ionValueChange",this.updateListener)}componentDidLoad(){this.setItemDefaults(),this.slotToggleIcon(),kl((()=>{const t=4===this.state||8===this.state;this.setAria(t)}))}toggleExpanded(){const{accordionGroupEl:t,value:e,state:i}=this;if(t){const o=1===i||2===i;t.requestAccordionToggle(e,o)}}render(){const{disabled:t,readonly:e}=this,i=rd(this),o=4===this.state||8===this.state,n=o?"header expanded":"header",r=o?"content expanded":"content";return this.setAria(o),Ka(Ja,{class:{[i]:!0,"accordion-expanding":8===this.state,"accordion-expanded":4===this.state,"accordion-collapsing":2===this.state,"accordion-collapsed":1===this.state,"accordion-next":this.isNext,"accordion-previous":this.isPrevious,"accordion-disabled":t,"accordion-readonly":e,"accordion-animated":this.shouldAnimate()}},Ka("div",{onClick:()=>this.toggleExpanded(),id:"header",part:n,"aria-controls":"content",ref:t=>this.headerEl=t},Ka("slot",{name:"header"})),Ka("div",{id:"content",part:r,role:"region","aria-labelledby":"header",ref:t=>this.contentEl=t},Ka("div",{id:"content-wrapper",ref:t=>this.contentElWrapper=t},Ka("slot",{name:"content"}))))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{value:["valueChanged"]}}static get style(){return{ios:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}",md:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}"}}},[49,"ion-accordion",{value:[1],disabled:[4],readonly:[4],toggleIcon:[1,"toggle-icon"],toggleIconSlot:[1,"toggle-icon-slot"],state:[32],isNext:[32],isPrevious:[32]},void 0,{value:["valueChanged"]}]);let Ed=0;const zd=function(){"undefined"!=typeof customElements&&["ion-accordion","ion-icon"].forEach((t=>{switch(t){case"ion-accordion":customElements.get(t)||customElements.define(t,Cd);break;case"ion-icon":customElements.get(t)||kd()}}))},Sd=(t,...e)=>console.warn(`[Ionic Warning]: ${t}`,...e),Ad=(t,...e)=>console.error(`[Ionic Error]: ${t}`,...e),Id=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=is(this,"ionChange",7),this.ionValueChange=is(this,"ionValueChange",7),this.animated=!0,this.multiple=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.expand="compact"}valueChanged(){const{value:t,multiple:e}=this;!e&&Array.isArray(t)&&Sd(`ion-accordion-group was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: [${t.map((t=>`'${t}'`)).join(", ")}]\n`,this.el),this.ionValueChange.emit({value:this.value})}async disabledChanged(){const{disabled:t}=this,e=await this.getAccordions();for(const i of e)i.disabled=t}async readonlyChanged(){const{readonly:t}=this,e=await this.getAccordions();for(const i of e)i.readonly=t}async onKeydown(t){const e=document.activeElement;if(!e)return;if(!e.closest('ion-accordion [slot="header"]'))return;const i="ION-ACCORDION"===e.tagName?e:e.closest("ion-accordion");if(!i)return;if(i.closest("ion-accordion-group")!==this.el)return;const o=await this.getAccordions(),n=o.findIndex((t=>t===i));if(-1===n)return;let r;"ArrowDown"===t.key?r=this.findNextAccordion(o,n):"ArrowUp"===t.key?r=this.findPreviousAccordion(o,n):"Home"===t.key?r=o[0]:"End"===t.key&&(r=o[o.length-1]),void 0!==r&&r!==e&&r.focus()}async componentDidLoad(){this.disabled&&this.disabledChanged(),this.readonly&&this.readonlyChanged(),this.valueChanged()}setValue(t){const e=this.value=t;this.ionChange.emit({value:e})}async requestAccordionToggle(t,e){const{multiple:i,value:o,readonly:n,disabled:r}=this;if(!n&&!r)if(e)if(i){const e=null!=o?o:[],i=Array.isArray(e)?e:[e];void 0===i.find((e=>e===t))&&void 0!==t&&this.setValue([...i,t])}else this.setValue(t);else if(i){const e=null!=o?o:[],i=Array.isArray(e)?e:[e];this.setValue(i.filter((e=>e!==t)))}else this.setValue(void 0)}findNextAccordion(t,e){const i=t[e+1];return void 0===i?t[0]:i}findPreviousAccordion(t,e){const i=t[e-1];return void 0===i?t[t.length-1]:i}async getAccordions(){return Array.from(this.el.querySelectorAll(":scope > ion-accordion"))}render(){const{disabled:t,readonly:e,expand:i}=this,o=rd(this);return Ka(Ja,{class:{[o]:!0,"accordion-group-disabled":t,"accordion-group-readonly":e,[`accordion-group-expand-${i}`]:!0},role:"presentation"},Ka("slot",null))}get el(){return this}static get watchers(){return{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}}static get style(){return{ios:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}",md:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion){-webkit-box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;border-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}:host-context([dir=rtl]):host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous),:host-context([dir=rtl]).accordion-group-expand-inset ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}@supports selector(:dir(rtl)){:host(.accordion-group-expand-inset:dir(rtl)) ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}:host-context([dir=rtl]):host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next),:host-context([dir=rtl]).accordion-group-expand-inset ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}@supports selector(:dir(rtl)){:host(.accordion-group-expand-inset:dir(rtl)) ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}}:host(.accordion-group-expand-inset) ::slotted(ion-accordion):first-of-type{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"}}},[33,"ion-accordion-group",{animated:[4],multiple:[4],value:[1025],disabled:[4],readonly:[4],expand:[1],requestAccordionToggle:[64],getAccordions:[64]},[[0,"keydown","onKeydown"]],{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}]),Pd=function(){"undefined"!=typeof customElements&&["ion-accordion-group"].forEach((t=>{"ion-accordion-group"===t&&(customElements.get(t)||customElements.define(t,Id))}))}; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */class $d{constructor(t,e,i,o,n){this.id=e,this.name=i,this.disableScroll=n,this.priority=1e6*o+e,this.ctrl=t}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const t=this.ctrl.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.ctrl.disableScroll(this.id),t}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Od{constructor(t,e,i,o){this.id=e,this.disable=i,this.disableScroll=o,this.ctrl=t}block(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.disableGesture(t,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.enableGesture(t,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Td="backdrop-no-scroll",Ld=new +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(t){var e;return new $d(this,this.newID(),t.name,null!==(e=t.priority)&&void 0!==e?e:0,!!t.disableScroll)}createBlocker(t={}){return new Od(this,this.newID(),t.disable,!!t.disableScroll)}start(t,e,i){return this.canStart(t)?(this.requestedStart.set(e,i),!0):(this.requestedStart.delete(e),!1)}capture(t,e,i){if(!this.start(t,e,i))return!1;const o=this.requestedStart;let n=-1e4;if(o.forEach((t=>{n=Math.max(n,t)})),n===i){this.capturedId=e,o.clear();const i=new CustomEvent("ionGestureCaptured",{detail:{gestureName:t}});return document.dispatchEvent(i),!0}return o.delete(e),!1}release(t){this.requestedStart.delete(t),this.capturedId===t&&(this.capturedId=void 0)}disableGesture(t,e){let i=this.disabledGestures.get(t);void 0===i&&(i=new Set,this.disabledGestures.set(t,i)),i.add(e)}enableGesture(t,e){const i=this.disabledGestures.get(t);void 0!==i&&i.delete(e)}disableScroll(t){this.disabledScroll.add(t),1===this.disabledScroll.size&&document.body.classList.add(Td)}enableScroll(t){this.disabledScroll.delete(t),0===this.disabledScroll.size&&document.body.classList.remove(Td)}canStart(t){return void 0===this.capturedId&&!this.isDisabled(t)}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(t){const e=this.disabledGestures.get(t);return!!(e&&e.size>0)}newID(){return this.gestureId++,this.gestureId}},Dd=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionBackdropTap=is(this,"ionBackdropTap",7),this.blocker=Ld.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(t){this.emitTap(t)}emitTap(t){this.stopPropagation&&(t.preventDefault(),t.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const t=rd(this);return Ka(Ja,{tabindex:"-1","aria-hidden":"true",class:{[t]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}static get style(){return{ios:":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",md:":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}"}}},[33,"ion-backdrop",{visible:[4],tappable:[4],stopPropagation:[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]);function _d(){"undefined"!=typeof customElements&&["ion-backdrop"].forEach((t=>{"ion-backdrop"===t&&(customElements.get(t)||customElements.define(t,Dd))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const jd=(t,e)=>null!==e.closest(t),Md=(t,e)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},e):e,Bd=t=>{const e={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter((t=>null!=t)).map((t=>t.trim())).filter((t=>""!==t)):[])(t).forEach((t=>e[t]=!0)),e},Vd=/^[a-z][a-z0-9+\-.]*:/,Rd=async(t,e,i,o)=>{if(null!=t&&"#"!==t[0]&&!Vd.test(t)){const n=document.querySelector("ion-router");if(n)return null!=e&&e.preventDefault(),n.push(t,i,o)}return!1},Fd=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=rd(this);return Ka(Ja,{class:Md(this.color,{[t]:!0})},Ka("slot",null))}static get style(){return{ios:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{border-radius:10px;font-size:max(13px, 0.8125rem)}",md:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{--padding-top:3px;--padding-end:4px;--padding-bottom:4px;--padding-start:4px;border-radius:4px}"}}},[33,"ion-badge",{color:[513]}]),Hd=function(){"undefined"!=typeof customElements&&["ion-badge"].forEach((t=>{"ion-badge"===t&&(customElements.get(t)||customElements.define(t,Fd))}))},Nd=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="bounded"}async addRipple(t,e){return new Promise((i=>{cl((()=>{const o=this.el.getBoundingClientRect(),n=o.width,r=o.height,a=Math.sqrt(n*n+r*r),s=Math.max(r,n),l=this.unbounded?s:a+qd,d=Math.floor(s*Yd),c=l/d;let h=t-o.left,p=e-o.top;this.unbounded&&(h=.5*n,p=.5*r);const m=h-.5*d,u=p-.5*d,g=.5*n-h,b=.5*r-p;hl((()=>{const t=document.createElement("div");t.classList.add("ripple-effect");const e=t.style;e.top=u+"px",e.left=m+"px",e.width=e.height=d+"px",e.setProperty("--final-scale",`${c}`),e.setProperty("--translate-end",`${g}px, ${b}px`),(this.el.shadowRoot||this.el).appendChild(t),setTimeout((()=>{i((()=>{Wd(t)}))}),325)}))}))}))}get unbounded(){return"unbounded"===this.type}render(){const t=rd(this);return Ka(Ja,{role:"presentation",class:{[t]:!0,unbounded:this.unbounded}})}get el(){return this}static get style(){return":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}"}},[1,"ion-ripple-effect",{type:[1],addRipple:[64]}]),Wd=t=>{t.classList.add("fade-out"),setTimeout((()=>{t.remove()}),200)},qd=10,Yd=.5;function Gd(){"undefined"!=typeof customElements&&["ion-ripple-effect"].forEach((t=>{"ion-ripple-effect"===t&&(customElements.get(t)||customElements.define(t,Nd))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Xd=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=is(this,"ionFocus",7),this.ionBlur=is(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.formButtonEl=null,this.formEl=null,this.inheritedAttributes={},this.handleClick=t=>{const{el:e}=this;"button"===this.type?Rd(this.href,t,this.routerDirection,this.routerAnimation):Cl(e)&&this.submitForm(t)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.color=void 0,this.buttonType="button",this.disabled=!1,this.expand=void 0,this.fill=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.download=void 0,this.href=void 0,this.rel=void 0,this.shape=void 0,this.size=void 0,this.strong=!1,this.target=void 0,this.type="button",this.form=void 0}disabledChanged(){const{disabled:t}=this;this.formButtonEl&&(this.formButtonEl.disabled=t)}renderHiddenButton(){const t=this.formEl=this.findForm();if(t){const{formButtonEl:e}=this;if(null!==e&&t.contains(e))return;const i=this.formButtonEl=document.createElement("button");i.type=this.type,i.style.display="none",i.disabled=this.disabled,t.appendChild(i)}}componentWillLoad(){this.inToolbar=!!this.el.closest("ion-buttons"),this.inListHeader=!!this.el.closest("ion-list-header"),this.inItem=!!this.el.closest("ion-item")||!!this.el.closest("ion-item-divider"),this.inheritedAttributes=vl(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){return(void 0===this.fill||"clear"===this.fill)&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}findForm(){const{form:t}=this;if(t instanceof HTMLFormElement)return t;if("string"==typeof t){const e=document.getElementById(t);return e?e instanceof HTMLFormElement?e:(Sd(`Form with selector: "#${t}" could not be found. Verify that the id is attached to a element.`,this.el),null):(Sd(`Form with selector: "#${t}" could not be found. Verify that the id is correct and the form is rendered in the DOM.`,this.el),null)}return void 0!==t?(Sd('The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',this.el),null):this.el.closest("form")}submitForm(t){this.formEl&&this.formButtonEl&&(t.preventDefault(),this.formButtonEl.click())}render(){const t=rd(this),{buttonType:e,type:i,disabled:o,rel:n,target:r,size:a,href:s,color:l,expand:d,hasIconOnly:c,shape:h,strong:p,inheritedAttributes:m}=this,u=void 0===a&&this.inItem?"small":a,g=void 0===s?"button":"a",b="button"===g?{type:i}:{download:this.download,href:s,rel:n,target:r};let f=this.fill;return null==f&&(f=this.inToolbar||this.inListHeader?"clear":"solid"),"button"!==i&&this.renderHiddenButton(),Ka(Ja,{onClick:this.handleClick,"aria-disabled":o?"true":null,class:Md(l,{[t]:!0,[e]:!0,[`${e}-${d}`]:void 0!==d,[`${e}-${u}`]:void 0!==u,[`${e}-${h}`]:void 0!==h,[`${e}-${f}`]:!0,[`${e}-strong`]:p,"in-toolbar":jd("ion-toolbar",this.el),"in-toolbar-color":jd("ion-toolbar[color]",this.el),"in-buttons":jd("ion-buttons",this.el),"button-has-icon-only":c,"button-disabled":o,"ion-activatable":!0,"ion-focusable":!0})},Ka(g,Object.assign({},b,{class:"button-native",part:"native",disabled:o,onFocus:this.onFocus,onBlur:this.onBlur},m),Ka("span",{class:"button-inner"},Ka("slot",{name:"icon-only"}),Ka("slot",{name:"start"}),Ka("slot",null),Ka("slot",{name:"end"})),"md"===t&&Ka("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return{ios:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}',md:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:4px;--padding-top:8px;--padding-bottom:8px;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),\n background-color 15ms linear,\n color 15ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:36px;font-size:0.875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:14px;--padding-start:1em;--padding-end:1em;--padding-bottom:14px;min-height:2.8em;font-size:1.25rem}:host(.button-small){--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:0.8125rem}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}'}}},[33,"ion-button",{color:[513],buttonType:[1025,"button-type"],disabled:[516],expand:[513],fill:[1537],routerDirection:[1,"router-direction"],routerAnimation:[16],download:[1],href:[1],rel:[1],shape:[513],size:[513],strong:[4],target:[1],type:[1],form:[1]},void 0,{disabled:["disabledChanged"]}]);function Ud(){"undefined"!=typeof customElements&&["ion-button","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-button":customElements.get(t)||customElements.define(t,Xd);break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Kd=Ud,Zd=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.collapse=!1}render(){const t=rd(this);return Ka(Ja,{class:{[t]:!0,"buttons-collapse":this.collapse}})}static get style(){return{ios:".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-ios-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.65em;line-height:0.67}",md:".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:8px;--padding-end:8px;--box-shadow:none;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-md-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:3rem;height:3rem}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}"}}},[34,"ion-buttons",{collapse:[4]}]); +/*! + * (C) Ionic http://ionicframework.com - MIT License + */function Jd(){"undefined"!=typeof customElements&&["ion-buttons"].forEach((t=>{"ion-buttons"===t&&(customElements.get(t)||customElements.define(t,Zd))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Qd=Jd,tc=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAriaAttributes={},this.color=void 0,this.button=!1,this.type="button",this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}componentWillLoad(){this.inheritedAriaAttributes=bl(this.el,["aria-label"])}isClickable(){return void 0!==this.href||this.button}renderCard(t){const e=this.isClickable();if(!e)return[Ka("slot",null)];const{href:i,routerAnimation:o,routerDirection:n,inheritedAriaAttributes:r}=this,a=e?void 0===i?"button":"a":"div",s="button"===a?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target};return Ka(a,Object.assign({},s,r,{class:"card-native",part:"native",disabled:this.disabled,onClick:t=>Rd(i,t,n,o)}),Ka("slot",null),e&&"md"===t&&Ka("ion-ripple-effect",null))}render(){const t=rd(this);return Ka(Ja,{class:Md(this.color,{[t]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(t))}get el(){return this}static get style(){return{ios:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1), -webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:0.875rem;-webkit-box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}:host(.ion-activated){-webkit-transform:scale3d(0.97, 0.97, 1);transform:scale3d(0.97, 0.97, 1)}",md:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:0.875rem;-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}"}}},[33,"ion-card",{color:[513],button:[4],type:[1],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1]}]),ec=function(){"undefined"!=typeof customElements&&["ion-card","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-card":customElements.get(t)||customElements.define(t,tc);break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))},ic=Rs(class extends tl{constructor(){super(),this.__registerHost()}render(){const t=rd(this);return Ka(Ja,{class:{[t]:!0,[`card-content-${t}`]:!0}})}static get style(){return{ios:"ion-card-content{display:block;position:relative}.card-content-ios{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;font-size:1rem;line-height:1.4}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem}ion-card-header+.card-content-ios{padding-top:0}",md:"ion-card-content{display:block;position:relative}.card-content-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:13px;padding-bottom:13px;font-size:0.875rem;line-height:1.5}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}"}}},[32,"ion-card-content"]),oc=function(){"undefined"!=typeof customElements&&["ion-card-content"].forEach((t=>{"ion-card-content"===t&&(customElements.get(t)||customElements.define(t,ic))}))},nc=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.translucent=!1}render(){const t=rd(this);return Ka(Ja,{class:Md(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":!0,[t]:!0})},Ka("slot",null))}static get style(){return{ios:":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:16px;-ms-flex-direction:column-reverse;flex-direction:column-reverse}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}",md:":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}"}}},[33,"ion-card-header",{color:[513],translucent:[4]}]),rc=function(){"undefined"!=typeof customElements&&["ion-card-header"].forEach((t=>{"ion-card-header"===t&&(customElements.get(t)||customElements.define(t,nc))}))},ac=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=rd(this);return Ka(Ja,{role:"heading","aria-level":"3",class:Md(this.color,{"ion-inherit-color":!0,[t]:!0})},Ka("slot",null))}static get style(){return{ios:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);margin-left:0;margin-right:0;margin-top:0;margin-bottom:4px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.75rem;font-weight:700;letter-spacing:0.4px;text-transform:uppercase}",md:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-550, #737373);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.875rem;font-weight:500}"}}},[33,"ion-card-subtitle",{color:[513]}]),sc=function(){"undefined"!=typeof customElements&&["ion-card-subtitle"].forEach((t=>{"ion-card-subtitle"===t&&(customElements.get(t)||customElements.define(t,ac))}))},lc=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=rd(this);return Ka(Ja,{role:"heading","aria-level":"2",class:Md(this.color,{"ion-inherit-color":!0,[t]:!0})},Ka("slot",null))}static get style(){return{ios:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.75rem;font-weight:700;line-height:1.2}",md:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, #262626);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;line-height:1.2}"}}},[33,"ion-card-title",{color:[513]}]),dc=function(){"undefined"!=typeof customElements&&["ion-card-title"].forEach((t=>{"ion-card-title"===t&&(customElements.get(t)||customElements.define(t,lc))}))},cc=t=>{const e=t;let i;return{hasLegacyControl:()=>{if(void 0===i){const t=void 0!==e.label||hc(e),o=e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")&&null===e.shadowRoot,n=El(e);i=!0===e.legacy||!t&&!o&&null!==n}return i}}},hc=t=>!(!pc.includes(t.tagName)||null===t.querySelector('[slot="label"]'))||!(!mc.includes(t.tagName)||""===t.textContent),pc=["ION-INPUT","ION-TEXTAREA","ION-SELECT","ION-RANGE"],mc=["ION-TOGGLE","ION-CHECKBOX","ION-RADIO"],uc=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=is(this,"ionChange",7),this.ionFocus=is(this,"ionFocus",7),this.ionBlur=is(this,"ionBlur",7),this.ionStyle=is(this,"ionStyle",7),this.inputId="ion-cb-"+gc++,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.setChecked=t=>{const e=this.checked=t;this.ionChange.emit({checked:e,value:this.value})},this.toggleChecked=t=>{t.preventDefault(),this.setFocus(),this.setChecked(!this.checked),this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=t=>{this.disabled||this.toggleChecked(t)},this.color=void 0,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.labelPlacement="start",this.justify="space-between",this.alignment="center",this.legacy=void 0}connectedCallback(){this.legacyFormController=cc(this.el)}componentWillLoad(){this.emitStyle(),this.legacyFormController.hasLegacyControl()||(this.inheritedAttributes=Object.assign({},vl(this.el)))}styleChanged(){this.emitStyle()}emitStyle(){const t={"interactive-disabled":this.disabled,legacy:!!this.legacy};this.legacyFormController.hasLegacyControl()&&(t["checkbox-checked"]=this.checked),this.ionStyle.emit(t)}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyCheckbox():this.renderCheckbox()}renderCheckbox(){const{color:t,checked:e,disabled:i,el:o,getSVGPath:n,indeterminate:r,inheritedAttributes:a,inputId:s,justify:l,labelPlacement:d,name:c,value:h,alignment:p}=this,m=rd(this),u=n(m,r);return Al(!0,o,c,e?h:"",i),Ka(Ja,{class:Md(t,{[m]:!0,"in-item":jd("ion-item",o),"checkbox-checked":e,"checkbox-disabled":i,"checkbox-indeterminate":r,interactive:!0,[`checkbox-justify-${l}`]:!0,[`checkbox-alignment-${p}`]:!0,[`checkbox-label-placement-${d}`]:!0}),onClick:this.onClick},Ka("label",{class:"checkbox-wrapper"},Ka("input",Object.assign({type:"checkbox",checked:!!e||void 0,disabled:i,id:s,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:t=>this.focusEl=t},a)),Ka("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":""===o.textContent},part:"label"},Ka("slot",null)),Ka("div",{class:"native-wrapper"},Ka("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},u))))}renderLegacyCheckbox(){this.hasLoggedDeprecationWarning||(Sd('ion-checkbox now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Label\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&Sd('ion-checkbox is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new checkbox syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{color:t,checked:e,disabled:i,el:o,getSVGPath:n,indeterminate:r,inputId:a,name:s,value:l}=this,d=rd(this),{label:c,labelId:h,labelText:p}=Sl(o,a),m=n(d,r);return Al(!0,o,s,e?l:"",i),Ka(Ja,{"aria-labelledby":c?h:null,"aria-checked":`${e}`,"aria-hidden":i?"true":null,role:"checkbox",class:Md(t,{[d]:!0,"in-item":jd("ion-item",o),"checkbox-checked":e,"checkbox-disabled":i,"checkbox-indeterminate":r,"legacy-checkbox":!0,interactive:!0}),onClick:this.onClick},Ka("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},m),Ka("label",{htmlFor:a},p),Ka("input",{type:"checkbox","aria-checked":`${e}`,disabled:i,id:a,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:t=>this.focusEl=t}))}getSVGPath(t,e){let i=Ka("path",e?{d:"M6 12L18 12",part:"mark"}:{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return"md"===t&&(i=Ka("path",e?{d:"M2 12H22",part:"mark"}:{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),i}get el(){return this}static get watchers(){return{checked:["styleChanged"],disabled:["styleChanged"]}}static get style(){return{ios:":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.0625rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.625rem, 65.988px)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item.legacy-checkbox){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:8px;margin-bottom:8px}",md:":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.legacy-checkbox.checkbox-disabled),:host(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}:host(.in-item.legacy-checkbox){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:18px;margin-bottom:18px}"}}},[33,"ion-checkbox",{color:[513],name:[1],checked:[1028],indeterminate:[1028],disabled:[4],value:[8],labelPlacement:[1,"label-placement"],justify:[1],alignment:[1],legacy:[4]},void 0,{checked:["styleChanged"],disabled:["styleChanged"]}]); +/*! + * (C) Ionic http://ionicframework.com - MIT License + */let gc=0;function bc(){"undefined"!=typeof customElements&&["ion-checkbox"].forEach((t=>{"ion-checkbox"===t&&(customElements.get(t)||customElements.define(t,uc))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const fc={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},vc=t=>{if(void 0===t||""===t)return!0;if(window.matchMedia){const e=fc[t];return window.matchMedia(e).matches}return!1},xc="undefined"!=typeof window?window:void 0,wc=xc&&!!(xc.CSS&&xc.CSS.supports&&xc.CSS.supports("--a: 0")),yc=["","xs","sm","md","lg","xl"],kc=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.offset=void 0,this.offsetXs=void 0,this.offsetSm=void 0,this.offsetMd=void 0,this.offsetLg=void 0,this.offsetXl=void 0,this.pull=void 0,this.pullXs=void 0,this.pullSm=void 0,this.pullMd=void 0,this.pullLg=void 0,this.pullXl=void 0,this.push=void 0,this.pushXs=void 0,this.pushSm=void 0,this.pushMd=void 0,this.pushLg=void 0,this.pushXl=void 0,this.size=void 0,this.sizeXs=void 0,this.sizeSm=void 0,this.sizeMd=void 0,this.sizeLg=void 0,this.sizeXl=void 0}onResize(){Ds(this)}getColumns(t){let e;for(const i of yc){const o=vc(i),n=this[t+i.charAt(0).toUpperCase()+i.slice(1)];o&&void 0!==n&&(e=n)}return e}calculateSize(){const t=this.getColumns("size");if(!t||""===t)return;const e="auto"===t?"auto":wc?`calc(calc(${t} / var(--ion-grid-columns, 12)) * 100%)`:t/12*100+"%";return{flex:`0 0 ${e}`,width:`${e}`,"max-width":`${e}`}}calculatePosition(t,e){const i=this.getColumns(t);if(i)return{[e]:wc?`calc(calc(${i} / var(--ion-grid-columns, 12)) * 100%)`:i>0&&i<12?i/12*100+"%":"auto"}}calculateOffset(t){return this.calculatePosition("offset",t?"margin-right":"margin-left")}calculatePull(t){return this.calculatePosition("pull",t?"left":"right")}calculatePush(t){return this.calculatePosition("push",t?"right":"left")}render(){const t="rtl"===document.dir,e=rd(this);return Ka(Ja,{class:{[e]:!0},style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(t)),this.calculatePull(t)),this.calculatePush(t)),this.calculateSize())},Ka("slot",null))}static get style(){return":host{-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}"}},[1,"ion-col",{offset:[1],offsetXs:[1,"offset-xs"],offsetSm:[1,"offset-sm"],offsetMd:[1,"offset-md"],offsetLg:[1,"offset-lg"],offsetXl:[1,"offset-xl"],pull:[1],pullXs:[1,"pull-xs"],pullSm:[1,"pull-sm"],pullMd:[1,"pull-md"],pullLg:[1,"pull-lg"],pullXl:[1,"pull-xl"],push:[1],pushXs:[1,"push-xs"],pushSm:[1,"push-sm"],pushMd:[1,"push-md"],pushLg:[1,"push-lg"],pushXl:[1,"push-xl"],size:[1],sizeXs:[1,"size-xs"],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]},[[9,"resize","onResize"]]]),Cc=function(){"undefined"!=typeof customElements&&["ion-col"].forEach((t=>{"ion-col"===t&&(customElements.get(t)||customElements.define(t,kc))}))},Ec=t("aN",(t=>t&&""!==t.dir?"rtl"===t.dir.toLowerCase():"rtl"===(null===document||void 0===document?void 0:document.dir.toLowerCase()))),zc=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionScrollStart=is(this,"ionScrollStart",7),this.ionScroll=is(this,"ionScroll",7),this.ionScrollEnd=is(this,"ionScrollEnd",7),this.watchDog=null,this.isScrolling=!1,this.lastScroll=0,this.queued=!1,this.cTop=-1,this.cBottom=-1,this.isMainContent=!0,this.resizeTimeout=null,this.tabsElement=null,this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:void 0,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:void 0,isScrolling:!0},this.color=void 0,this.fullscreen=!1,this.forceOverscroll=void 0,this.scrollX=!1,this.scrollY=!0,this.scrollEvents=!1}connectedCallback(){if(this.isMainContent=null===this.el.closest("ion-menu, ion-popover, ion-modal"),gl(this.el)){const t=this.tabsElement=this.el.closest("ion-tabs");null!==t&&(this.tabsLoadCallback=()=>this.resize(),t.addEventListener("ionTabBarLoaded",this.tabsLoadCallback))}}disconnectedCallback(){if(this.onScrollEnd(),gl(this.el)){const{tabsElement:t,tabsLoadCallback:e}=this;null!==t&&void 0!==e&&t.removeEventListener("ionTabBarLoaded",e),this.tabsElement=null,this.tabsLoadCallback=void 0}}onResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.resizeTimeout=setTimeout((()=>{null!==this.el.offsetParent&&this.resize()}),100)}shouldForceOverscroll(){const{forceOverscroll:t}=this,e=rd(this);return void 0===t?"ios"===e&&Yl("ios"):t}resize(){this.fullscreen?cl((()=>this.readDimensions())):0===this.cTop&&0===this.cBottom||(this.cTop=this.cBottom=0,Ds(this))}readDimensions(){const t=Sc(this.el),e=Math.max(this.el.offsetTop,0),i=Math.max(t.offsetHeight-e-this.el.offsetHeight,0);(e!==this.cTop||i!==this.cBottom)&&(this.cTop=e,this.cBottom=i,Ds(this))}onScroll(t){const e=Date.now(),i=!this.isScrolling;this.lastScroll=e,i&&this.onScrollStart(),!this.queued&&this.scrollEvents&&(this.queued=!0,cl((e=>{this.queued=!1,this.detail.event=t,Ac(this.detail,this.scrollEl,e,i),this.ionScroll.emit(this.detail)})))}async getScrollElement(){return this.scrollEl||await new Promise((t=>ul(this.el,t))),Promise.resolve(this.scrollEl)}async getBackgroundElement(){return this.backgroundContentEl||await new Promise((t=>ul(this.el,t))),Promise.resolve(this.backgroundContentEl)}scrollToTop(t=0){return this.scrollToPoint(void 0,0,t)}async scrollToBottom(t=0){const e=await this.getScrollElement(),i=e.scrollHeight-e.clientHeight;return this.scrollToPoint(void 0,i,t)}async scrollByPoint(t,e,i){const o=await this.getScrollElement();return this.scrollToPoint(t+o.scrollLeft,e+o.scrollTop,i)}async scrollToPoint(t,e,i=0){const o=await this.getScrollElement();if(i<32)return null!=e&&(o.scrollTop=e),void(null!=t&&(o.scrollLeft=t));let n,r=0;const a=new Promise((t=>n=t)),s=o.scrollTop,l=o.scrollLeft,d=null!=e?e-s:0,c=null!=t?t-l:0,h=t=>{const e=Math.min(1,(t-r)/i)-1,a=Math.pow(e,3)+1;0!==d&&(o.scrollTop=Math.floor(a*d+s)),0!==c&&(o.scrollLeft=Math.floor(a*c+l)),a<1?requestAnimationFrame(h):n()};return requestAnimationFrame((t=>{r=t,h(t)})),a}onScrollStart(){this.isScrolling=!0,this.ionScrollStart.emit({isScrolling:!0}),this.watchDog&&clearInterval(this.watchDog),this.watchDog=setInterval((()=>{this.lastScrollthis.backgroundContentEl=t,id:"background-content",part:"background"}),Ka(l,{class:{"inner-scroll":!0,"scroll-x":e,"scroll-y":i,overscroll:(e||i)&&a},ref:t=>this.scrollEl=t,onScroll:this.scrollEvents?t=>this.onScroll(t):void 0,part:"scroll"},Ka("slot",null)),s?Ka("div",{class:"transition-effect"},Ka("div",{class:"transition-cover"}),Ka("div",{class:"transition-shadow"})):null,Ka("slot",{name:"fixed"}))}get el(){return this}static get style(){return':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}'}},[1,"ion-content",{color:[513],fullscreen:[4],forceOverscroll:[1028,"force-overscroll"],scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],scrollEvents:[4,"scroll-events"],getScrollElement:[64],getBackgroundElement:[64],scrollToTop:[64],scrollToBottom:[64],scrollByPoint:[64],scrollToPoint:[64]},[[9,"resize","onResize"]]]),Sc=t=>{const e=t.closest("ion-tabs");if(e)return e;const i=t.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content");return i||(t=>{var e;return t.parentElement?t.parentElement:(null===(e=t.parentNode)||void 0===e?void 0:e.host)?t.parentNode.host:null})(t)},Ac=(t,e,i,o)=>{const n=t.currentX,r=t.currentY,a=t.currentTime,s=e.scrollLeft,l=e.scrollTop,d=i-a;if(o&&(t.startTime=i,t.startX=s,t.startY=l,t.velocityX=t.velocityY=0),t.currentTime=i,t.currentX=t.scrollLeft=s,t.currentY=t.scrollTop=l,t.deltaX=s-t.startX,t.deltaY=l-t.startY,d>0&&d<100){const e=(s-n)/d,i=(l-r)/d;t.velocityX=.7*e+.3*t.velocityX,t.velocityY=.7*i+.3*t.velocityY}},Ic=function(){"undefined"!=typeof customElements&&["ion-content"].forEach((t=>{"ion-content"===t&&(customElements.get(t)||customElements.define(t,zc))}))},Pc="ion-focused",$c=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],Oc=t=>{let e=[],i=!0;const o=t?t.shadowRoot:document,n=t||document.body,r=t=>{e.forEach((t=>t.classList.remove(Pc))),t.forEach((t=>t.classList.add(Pc))),e=t},a=()=>{i=!1,r([])},s=t=>{i=$c.includes(t.key),i||r([])},l=t=>{if(i&&void 0!==t.composedPath){const e=t.composedPath().filter((t=>!!t.classList&&t.classList.contains("ion-focusable")));r(e)}},d=()=>{o.activeElement===n&&r([])};return o.addEventListener("keydown",s),o.addEventListener("focusin",l),o.addEventListener("focusout",d),o.addEventListener("touchstart",a,{passive:!0}),o.addEventListener("mousedown",a),{destroy:()=>{o.removeEventListener("keydown",s),o.removeEventListener("focusin",l),o.removeEventListener("focusout",d),o.removeEventListener("touchstart",a),o.removeEventListener("mousedown",a)},setFocus:r}},Tc=Object.freeze(Object.defineProperty({__proto__:null,startFocusVisible:Oc},Symbol.toStringTag,{value:"Module"})),Lc=(t,e)=>t.month===e.month&&t.day===e.day&&t.year===e.year,Dc=(t,e)=>!!(t.year!!(t.year>e.year||t.year===e.year&&t.month>e.month||t.year===e.year&&t.month===e.month&&null!==t.day&&t.day>e.day),jc=(t,e)=>{if(void 0!==e)return e;const i=new Intl.DateTimeFormat(t,{hour:"numeric"}),o=i.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const n=new Date("5/18/2021 00:00"),r=i.formatToParts(n).find((t=>"hour"===t.type));if(!r)throw new Error("Hour value not found from DateTimeFormat");switch(r.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${e}"`)}},Mc=t=>"h23"===t||"h24"===t,Bc=(t,e)=>4===t||6===t||9===t||11===t?30:2===t?(t=>t%4==0&&t%100!=0||t%400==0)(e)?29:28:31,Vc=(t,e={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(t,e).formatToParts(new Date)[0].type,Rc=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,Fc=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,Hc=t=>{if(void 0===t)return;let e,i=t;return"string"==typeof t&&(i=t.replace(/\[|\]|\s/g,"").split(",")),e=Array.isArray(i)?i.map((t=>parseInt(t,10))).filter(isFinite):[i],e};function Nc(t){if(Array.isArray(t)){const e=[];for(const i of t){const t=Nc(i);if(!t)return;e.push(t)}return e}let e=null;if(null!=t&&""!==t&&(e=Fc.exec(t),e?(e.unshift(void 0,void 0),e[2]=e[3]=void 0):e=Rc.exec(t)),null!==e){for(let t=1;t<8;t++)e[t]=void 0!==e[t]?parseInt(e[t],10):void 0;return{year:e[1],month:e[2],day:e[3],hour:e[4],minute:e[5],ampm:e[4]<12?"am":"pm"}}Sd(`Unable to parse date string: ${t}. Please provide a valid ISO 8601 datetime string.`)}const Wc=(t,e,i)=>e&&Dc(t,e)?e:i&&_c(t,i)?i:t,qc=t=>t>=12?"pm":"am",Yc=t=>("0"+(void 0!==t?Math.abs(t):"0")).slice(-2);function Gc(t){if(Array.isArray(t))return t.map((t=>Gc(t)));let e="";var i;return void 0!==t.year?(e=("000"+(void 0!==(i=t.year)?Math.abs(i):"0")).slice(-4),void 0!==t.month&&(e+="-"+Yc(t.month),void 0!==t.day&&(e+="-"+Yc(t.day),void 0!==t.hour&&(e+=`T${Yc(t.hour)}:${Yc(t.minute)}:00`)))):void 0!==t.hour&&(e=Yc(t.hour)+":"+Yc(t.minute)),e}const Xc=(t,e)=>void 0===e?t:"am"===e?12===t?0:t:12===t?12:t+12,Uc=(t,e)=>{const{month:i,day:o,year:n}=t;if(null===o)throw new Error("No day provided");const r={month:i,day:o,year:n};if(r.day=o-e,r.day<1&&(r.month-=1),r.month<1&&(r.month=12,r.year-=1),r.day<1){const t=Bc(r.month,r.year);r.day=t+r.day}return r},Kc=(t,e)=>{const{month:i,day:o,year:n}=t;if(null===o)throw new Error("No day provided");const r={month:i,day:o,year:n},a=Bc(i,n);return r.day=o+e,r.day>a&&(r.day-=a,r.month+=1),r.month>12&&(r.month=1,r.year+=1),r},Zc=t=>{const e=1===t.month?12:t.month-1,i=1===t.month?t.year-1:t.year,o=Bc(e,i);return{month:e,year:i,day:o{const e=12===t.month?1:t.month+1,i=12===t.month?t.year+1:t.year,o=Bc(e,i);return{month:e,year:i,day:o{const i=t.month,o=t.year+e,n=Bc(i,o);return{month:i,year:o,day:ne?t:Xc(t,i),eh=(t,e)=>{let i=e[0],o=Math.abs(i-t);for(let n=1;n{const o={hour:e.hour,minute:e.minute};return void 0===o.hour||void 0===o.minute?"Invalid Time":new Intl.DateTimeFormat(t,{hour:"numeric",minute:"numeric",timeZone:"UTC",hourCycle:i}).format(new Date(Gc(Object.assign({year:2023,day:1,month:1},o))+"Z"))},oh=t=>{const e=t.toString();return e.length>1?e:`0${e}`},nh=(t,e)=>{if(0===t)switch(e){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${e}"`)}return Mc(e)?oh(t):t.toString()},rh=(t,e,i)=>{if(null===i.day)return null;const o=lh(i),n=new Intl.DateTimeFormat(t,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return e?`Today, ${n}`:n},ah=(t,e)=>ch(t,e,{day:"numeric"}).find((t=>"day"===t.type)).value,sh=(t,e)=>dh(t,e,{year:"numeric"}),lh=t=>{var e,i,o;const n=void 0!==t.hour&&void 0!==t.minute?` ${t.hour}:${t.minute}`:"";return new Date(`${null!==(e=t.month)&&void 0!==e?e:1}/${null!==(i=t.day)&&void 0!==i?i:1}/${null!==(o=t.year)&&void 0!==o?o:2023}${n} GMT+0000`)},dh=(t,e,i)=>{const o=lh(e);return hh(t,i).format(o)},ch=(t,e,i)=>{const o=lh(e);return hh(t,i).formatToParts(o)},hh=(t,e)=>new Intl.DateTimeFormat(t,Object.assign(Object.assign({},e),{timeZone:"UTC"})),ph=t=>{if("RelativeTimeFormat"in Intl){const e=new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(0,"day");return e.charAt(0).toUpperCase()+e.slice(1)}return"Today"},mh=t=>{const e=t.getTimezoneOffset();return t.setMinutes(t.getMinutes()-e),t},uh=mh(new Date("2022T01:00")),gh=mh(new Date("2022T13:00")),bh=(t,e)=>{const i="am"===e?uh:gh,o=new Intl.DateTimeFormat(t,{hour:"numeric",timeZone:"UTC"}).formatToParts(i).find((t=>"dayPeriod"===t.type));return o?o.value:(t=>void 0===t?"":t.toUpperCase())(e)},fh=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],vh=[0,1,2,3,4,5,6,7,8,9,10,11],xh=[0,1,2,3,4,5,6,7,8,9,10,11],wh=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],yh=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],kh=(t,e,i="h12",o,n,r,a)=>{const s=jc(t,i),l=Mc(s);let d=(t=>{switch(t){case"h11":return vh;case"h12":return xh;case"h23":return wh;case"h24":return yh;default:throw new Error(`Invalid hour cycle "${t}"`)}})(s),c=fh,h=!0,p=!0;if(r&&(d=d.filter((t=>r.includes(t)))),a&&(c=c.filter((t=>a.includes(t)))),o)if(Lc(e,o)){if(void 0!==o.hour&&(d=d.filter((t=>{const i="pm"===e.ampm?(t+12)%24:t;return(l?t:i)>=o.hour})),h=o.hour<13),void 0!==o.minute){let t=!1;void 0!==o.hour&&void 0!==e.hour&&e.hour>o.hour&&(t=!0),c=c.filter((e=>!!t||e>=o.minute))}}else Dc(e,o)&&(d=[],c=[],h=p=!1);return n&&(Lc(e,n)?(void 0!==n.hour&&(d=d.filter((t=>{const i="pm"===e.ampm?(t+12)%24:t;return(l?t:i)<=n.hour})),p=n.hour>=12),void 0!==n.minute&&e.hour===n.hour&&(c=c.filter((t=>t<=n.minute)))):_c(e,n)&&(d=[],c=[],h=p=!1)),{hours:d,minutes:c,am:h,pm:p}},Ch=(t,e)=>{const i={month:t.month,year:t.year,day:t.day};if(void 0!==e&&(t.month!==e.month||t.year!==e.year)){const o={month:e.month,year:e.year,day:e.day};return Dc(o,i)?[o,i,Jc(t)]:[Zc(t),i,o]}return[Zc(t),i,Jc(t)]},Eh=(t,e,i,o,n,r={day:"numeric"})=>{const{month:a,year:s}=e,l=[],d=Bc(a,s),c=null!==(null==o?void 0:o.day)&&void 0!==(null==o?void 0:o.day)&&o.year===s&&o.month===a?o.day:d,h=null!==(null==i?void 0:i.day)&&void 0!==(null==i?void 0:i.day)&&i.year===s&&i.month===a?i.day:1;if(void 0!==n){let e=n;e=e.filter((t=>t>=h&&t<=c)),e.forEach((e=>{const i=new Date(`${a}/${e}/${s} GMT+0000`),o=new Intl.DateTimeFormat(t,Object.assign(Object.assign({},r),{timeZone:"UTC"})).format(i);l.push({text:o,value:e})}))}else for(let p=h;p<=c;p++){const e=new Date(`${a}/${p}/${s} GMT+0000`),i=new Intl.DateTimeFormat(t,Object.assign(Object.assign({},r),{timeZone:"UTC"})).format(e);l.push({text:i,value:p})}return l},zh=(t,e)=>t.month===e.month&&t.year===e.year?[t]:[t,...zh(Jc(t),e)],Sh=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=rd(this);return Ka(Ja,{class:Md(this.color,{[t]:!0})},Ka("slot",null))}static get style(){return{ios:":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6);font-size:max(14px, 1rem)}",md:":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:0.875rem}"}}},[33,"ion-note",{color:[513]}]);function Ah(){"undefined"!=typeof customElements&&["ion-note"].forEach((t=>{"ion-note"===t&&(customElements.get(t)||customElements.define(t,Sh))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Ih=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.labelColorStyles={},this.itemStyles=new Map,this.inheritedAriaAttributes={},this.multipleInputs=!1,this.focusable=!0,this.color=void 0,this.button=!1,this.detail=void 0,this.detailIcon=Bl,this.disabled=!1,this.download=void 0,this.fill=void 0,this.shape=void 0,this.href=void 0,this.rel=void 0,this.lines=void 0,this.counter=!1,this.routerAnimation=void 0,this.routerDirection="forward",this.target=void 0,this.type="button",this.counterFormatter=void 0,this.counterString=void 0}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonInput(t){this.counter&&t.target===this.getFirstInput()&&this.updateCounterOutput(t.target)}labelColorChanged(t){const{color:e}=this;void 0===e&&(this.labelColorStyles=t.detail)}itemStyle(t){t.stopPropagation();const e=t.target.tagName,i=t.detail,o={},n=this.itemStyles.get(e)||{};let r=!1;Object.keys(i).forEach((t=>{if(i[t]){const e=`item-${t}`;n[e]||(r=!0),o[e]=!0}})),r||Object.keys(o).length===Object.keys(n).length||(r=!0),r&&(this.itemStyles.set(e,o),Ds(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentWillLoad(){this.inheritedAriaAttributes=bl(this.el,["aria-label"])}componentDidLoad(){const{el:t,counter:e,counterFormatter:i,fill:o,shape:n}=this;null!==t.querySelector('[slot="helper"]')&&Sd('The "helper" slot has been deprecated in favor of using the "helperText" property on ion-input or ion-textarea.',t),null!==t.querySelector('[slot="error"]')&&Sd('The "error" slot has been deprecated in favor of using the "errorText" property on ion-input or ion-textarea.',t),!0===e&&Sd('The "counter" property has been deprecated in favor of using the "counter" property on ion-input or ion-textarea.',t),void 0!==i&&Sd('The "counterFormatter" property has been deprecated in favor of using the "counterFormatter" property on ion-input or ion-textarea.',t),void 0!==o&&Sd('The "fill" property has been deprecated in favor of using the "fill" property on ion-input or ion-textarea.',t),void 0!==n&&Sd('The "shape" property has been deprecated in favor of using the "shape" property on ion-input or ion-textarea.',t),kl((()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()}))}setMultipleInputs(){const t=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),e=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),i=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=t.length+e.length>1||t.length+i.length>1||t.length>0&&this.isClickable()}hasCover(){return 1===this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length&&!this.multipleInputs}isClickable(){return void 0!==this.href||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const t=this.el.querySelector(".ion-focusable");return this.canActivate()||null!==t}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}updateCounterOutput(t){var e,i;const{counter:o,counterFormatter:n,defaultCounterFormatter:r}=this;if(o&&!this.multipleInputs&&void 0!==(null==t?void 0:t.maxlength)){const o=null!==(i=null===(e=null==t?void 0:t.value)||void 0===e?void 0:e.toString().length)&&void 0!==i?i:0;if(void 0===n)this.counterString=r(o,t.maxlength);else try{this.counterString=n(o,t.maxlength)}catch(a){Ad("Exception in provided `counterFormatter`.",a),this.counterString=r(o,t.maxlength)}}}defaultCounterFormatter(t,e){return`${t} / ${e}`}hasStartEl(){null!==this.el.querySelector('[slot="start"]')&&this.el.classList.add("item-has-start-slot")}getFirstInteractive(){return this.el.querySelectorAll("ion-toggle:not([disabled]), ion-checkbox:not([disabled]), ion-radio:not([disabled]), ion-select:not([disabled])")[0]}render(){const{counterString:t,detail:e,detailIcon:i,download:o,fill:n,labelColorStyles:r,lines:a,disabled:s,href:l,rel:d,shape:c,target:h,routerAnimation:p,routerDirection:m,inheritedAriaAttributes:u,multipleInputs:g}=this,b={},f=rd(this),v=this.isClickable(),x=this.canActivate(),w=v?void 0===l?"button":"a":"div",y="button"===w?{type:this.type}:{download:o,href:l,rel:d,target:h};let k={};const C=this.getFirstInteractive();(v||void 0!==C&&!g)&&(k={onClick:t=>{if(v&&Rd(l,t,m,p),void 0!==C&&!g){const e=t.composedPath()[0];t.isTrusted&&this.el.shadowRoot.contains(e)&&C.click()}}});const E=void 0!==e?e:"ios"===f&&v;this.itemStyles.forEach((t=>{Object.assign(b,t)}));const z=s||b["item-interactive-disabled"]?"true":null,S=n||"none",A=jd("ion-list",this.el)&&!jd("ion-radio-group",this.el);return Ka(Ja,{"aria-disabled":z,class:Object.assign(Object.assign(Object.assign({},b),r),Md(this.color,{item:!0,[f]:!0,"item-lines-default":void 0===a,[`item-lines-${a}`]:void 0!==a,[`item-fill-${S}`]:!0,[`item-shape-${c}`]:void 0!==c,"item-has-interactive-control":void 0!==C,"item-disabled":s,"in-list":A,"item-multiple-inputs":this.multipleInputs,"ion-activatable":x,"ion-focusable":this.focusable,"item-rtl":"rtl"===document.dir})),role:A?"listitem":null},Ka(w,Object.assign({},y,u,{class:"item-native",part:"native",disabled:s},k),Ka("slot",{name:"start"}),Ka("div",{class:"item-inner"},Ka("div",{class:"input-wrapper"},Ka("slot",null)),Ka("slot",{name:"end"}),E&&Ka("ion-icon",{icon:i,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":i===Bl}),Ka("div",{class:"item-inner-highlight"})),x&&"md"===f&&Ka("ion-ripple-effect",null),Ka("div",{class:"item-highlight"})),Ka("div",{class:"item-bottom"},Ka("slot",{name:"error"}),Ka("slot",{name:"helper"}),t&&Ka("ion-note",{class:"item-counter"},t)))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}static get style(){return{ios:':host{--inner-min-width:4rem;--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.item-legacy) .item-native{-ms-flex-wrap:unset;flex-wrap:unset}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-width:var(--inner-min-width);max-width:100%;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}:host(.item-legacy) .item-inner{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1;width:-webkit-min-content;width:-moz-min-content;width:min-content;max-width:100%}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;max-width:100%;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-legacy) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:var(--ion-text-color, #000);--background-focused:var(--ion-text-color, #000);--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:1rem}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:2px;margin-bottom:2px}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:1px;--padding-bottom:1px;--padding-start:.5em;--padding-end:.5em;min-height:24px;font-size:0.8125rem}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){-webkit-margin-start:0px;margin-inline-start:0px}::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',md:':host{--inner-min-width:4rem;--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.item-legacy) .item-native{-ms-flex-wrap:unset;flex-wrap:unset}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-width:var(--inner-min-width);max-width:100%;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}:host(.item-legacy) .item-inner{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1;width:-webkit-min-content;width:-moz-min-content;width:min-content;max-width:100%}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;max-width:100%;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-legacy) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:1rem;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));-webkit-transition:none;transition:none}@supports (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{inset-inline-start:var(--position-offset)}}@supports not (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{left:var(--position-offset)}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}@supports selector(:dir(rtl)){:host(.item-fill-outline:dir(rtl)) .item-highlight{left:unset;right:unset;right:var(--position-offset)}}}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;-ms-flex-item-align:start;align-self:flex-start}::slotted([slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted([slot=end]){-webkit-margin-start:32px;margin-inline-start:32px}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.5em}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted(ion-icon[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:0.6875rem}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){-webkit-padding-end:16px;padding-inline-end:16px}::slotted(ion-note[slot=end]){-webkit-padding-start:16px;padding-inline-start:16px}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0}::slotted(.button-small){--padding-top:2px;--padding-bottom:2px;--padding-start:.6em;--padding-end:.6em;min-height:25px;font-size:0.75rem}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid:dir(rtl)){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid.item-shape-round:dir(rtl)){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{-webkit-padding-start:32px;padding-inline-start:32px}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){-webkit-transform:translateY(-14px);transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}'}}},[49,"ion-item",{color:[513],button:[4],detail:[4],detailIcon:[1,"detail-icon"],disabled:[4],download:[1],fill:[1],shape:[1],href:[1],rel:[1],lines:[1],counter:[4],routerAnimation:[16],routerDirection:[1,"router-direction"],target:[1],type:[1],counterFormatter:[16],multipleInputs:[32],focusable:[32],counterString:[32]},[[0,"ionInput","handleIonInput"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{counterFormatter:["counterFormatterChanged"]}]);function Ph(){"undefined"!=typeof customElements&&["ion-item","ion-icon","ion-note","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-item":customElements.get(t)||customElements.define(t,Ih);break;case"ion-icon":customElements.get(t)||kd();break;case"ion-note":customElements.get(t)||Ah();break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const $h=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.ionColor=is(this,"ionColor",7),this.ionStyle=is(this,"ionStyle",7),this.inRange=!1,this.color=void 0,this.position=void 0,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate="floating"===this.position,this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout((()=>{this.noAnimate=!1}),1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:t}=this;this.ionColor.emit({"item-label-color":void 0!==t,[`ion-color-${t}`]:void 0!==t})}emitStyle(){const{inRange:t,position:e}=this;t||this.ionStyle.emit({label:!0,[`label-${e}`]:void 0!==e})}render(){const t=this.position,e=rd(this);return Ka(Ja,{class:Md(this.color,{[e]:!0,"in-item-color":jd("ion-item.ion-color",this.el),[`label-${t}`]:void 0!==t,"label-no-animate":this.noAnimate,"label-rtl":"rtl"===document.dir})})}get el(){return this}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}static get style(){return{ios:".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.item-legacy.sc-ion-label-ios-h,.item-legacy .sc-ion-label-ios-h{white-space:nowrap;overflow:hidden}.item.sc-ion-label-ios-h:not(.item-input):not(.item-legacy),.item:not(.item-input):not(.item-legacy) .sc-ion-label-ios-h{-ms-flex-positive:1;flex-grow:1}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-ios-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-ios-h,.item-skeleton-text .sc-ion-label-ios-h{overflow:hidden}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h{font-size:0.875rem;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:0.875rem}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.label-floating.sc-ion-label-ios-h:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:1.375rem;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.0625rem;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",md:'.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.item-legacy.sc-ion-label-md-h,.item-legacy .sc-ion-label-md-h{white-space:nowrap;overflow:hidden}.item.sc-ion-label-md-h:not(.item-input):not(.item-legacy),.item:not(.item-input):not(.item-legacy) .sc-ion-label-md-h{-ms-flex-positive:1;flex-grow:1}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-md-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-md-h,.item-skeleton-text .sc-ion-label-md-h{overflow:hidden}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:1.25rem;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}'}}},[34,"ion-label",{color:[513],position:[1],noAnimate:[32]},void 0,{color:["colorChanged"],position:["positionChanged"]}]);function Oh(){"undefined"!=typeof customElements&&["ion-label"].forEach((t=>{"ion-label"===t&&(customElements.get(t)||customElements.define(t,$h))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Th=t("b2","undefined"!=typeof window?window:void 0),Lh=t("aS","undefined"!=typeof document?document:void 0),Dh=()=>{if(void 0!==Th)return Th.Capacitor}; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +var _h,jh;!function(t){t.Heavy="HEAVY",t.Medium="MEDIUM",t.Light="LIGHT"}(_h||(_h={})),function(t){t.Success="SUCCESS",t.Warning="WARNING",t.Error="ERROR"}(jh||(jh={}));const Mh={getEngine(){const t=window.TapticEngine;if(t)return t;const e=Dh();return(null==e?void 0:e.isPluginAvailable("Haptics"))?e.Plugins.Haptics:void 0},available(){if(!this.getEngine())return!1;const t=Dh();return"web"!==(null==t?void 0:t.getPlatform())||"undefined"!=typeof navigator&&void 0!==navigator.vibrate},isCordova:()=>void 0!==window.TapticEngine,isCapacitor:()=>void 0!==Dh(),impact(t){const e=this.getEngine();if(!e)return;const i=this.isCapacitor()?t.style:t.style.toLowerCase();e.impact({style:i})},notification(t){const e=this.getEngine();if(!e)return;const i=this.isCapacitor()?t.type:t.type.toLowerCase();e.notification({type:i})},selection(){const t=this.isCapacitor()?_h.Light:"light";this.impact({style:t})},selectionStart(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionStart():t.gestureSelectionStart())},selectionChanged(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionChanged():t.gestureSelectionChanged())},selectionEnd(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionEnd():t.gestureSelectionEnd())}},Bh=()=>Mh.available(),Vh=()=>{Bh()&&Mh.selectionStart()},Rh=()=>{Bh()&&Mh.selectionChanged()},Fh=()=>{Bh()&&Mh.selectionEnd()},Hh=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=is(this,"ionChange",7),this.isScrolling=!1,this.isColumnVisible=!1,this.canExitInputMode=!0,this.centerPickerItemInView=(t,e=!0,i=!0)=>{const{el:o,isColumnVisible:n}=this;if(n){const n=t.offsetTop-3*t.clientHeight+t.clientHeight/2;o.scrollTop!==n&&(this.canExitInputMode=i,o.scroll({top:n,left:0,behavior:e?"smooth":void 0}))}},this.setPickerItemActiveState=(t,e)=>{e?(t.classList.add(Nh),t.part.add(qh)):(t.classList.remove(Nh),t.part.remove(qh))},this.inputModeChange=t=>{if(!this.numericInput)return;const{useInputMode:e,inputModeColumn:i}=t.detail,o=void 0===i||i===this.el;e&&o?this.setInputModeActive(!0):this.setInputModeActive(!1)},this.setInputModeActive=t=>{this.isScrolling?this.scrollEndCallback=()=>{this.isActive=t}:this.isActive=t},this.initializeScrollListener=()=>{const t=Yl("ios"),{el:e}=this;let i,o=this.activeItem;const n=()=>{kl((()=>{i&&(clearTimeout(i),i=void 0),this.isScrolling||(t&&Vh(),this.isScrolling=!0);const n=e.getBoundingClientRect(),r=n.x+n.width/2,a=n.y+n.height/2,s=e.shadowRoot.elementFromPoint(r,a);null!==o&&this.setPickerItemActiveState(o,!1),null===s||s.disabled||(s!==o&&(t&&Rh(),this.canExitInputMode&&this.exitInputMode()),o=s,this.setPickerItemActiveState(s,!0),i=setTimeout((()=>{this.isScrolling=!1,t&&Fh();const{scrollEndCallback:e}=this;e&&(e(),this.scrollEndCallback=void 0),this.canExitInputMode=!0;const i=s.getAttribute("data-index");if(null===i)return;const o=parseInt(i,10),n=this.items[o];n.value!==this.value&&this.setValue(n.value)}),250))}))};kl((()=>{e.addEventListener("scroll",n),this.destroyScrollListener=()=>{e.removeEventListener("scroll",n)}}))},this.exitInputMode=()=>{const{parentEl:t}=this;null!=t&&(t.exitInputMode(),this.el.classList.remove("picker-column-active"))},this.isActive=!1,this.disabled=!1,this.items=[],this.value=void 0,this.color="primary",this.numericInput=!1}valueChange(){this.isColumnVisible&&this.scrollActiveItemIntoView()}componentWillLoad(){new IntersectionObserver((t=>{if(t[0].isIntersecting){const{activeItem:t,el:e}=this;this.isColumnVisible=!0;const i=yl(e).querySelector(`.${Nh}`);i&&this.setPickerItemActiveState(i,!1),this.scrollActiveItemIntoView(),t&&this.setPickerItemActiveState(t,!0),this.initializeScrollListener()}else this.isColumnVisible=!1,this.destroyScrollListener&&(this.destroyScrollListener(),this.destroyScrollListener=void 0)}),{threshold:.001}).observe(this.el);const t=this.parentEl=this.el.closest("ion-picker-internal");null!==t&&t.addEventListener("ionInputModeChange",(t=>this.inputModeChange(t)))}componentDidRender(){var t;const{activeItem:e,items:i,isColumnVisible:o,value:n}=this;o&&(e?this.scrollActiveItemIntoView():(null===(t=i[0])||void 0===t?void 0:t.value)!==n&&this.setValue(i[0].value))}async scrollActiveItemIntoView(){const t=this.activeItem;t&&this.centerPickerItemInView(t,!1,!1)}async setValue(t){const{items:e}=this;this.value=t;const i=e.find((e=>e.value===t&&!0!==e.disabled));i&&this.ionChange.emit(i)}get activeItem(){const t=`.picker-item[data-value="${this.value}"]${this.disabled?"":":not([disabled])"}`;return yl(this.el).querySelector(t)}render(){const{items:t,color:e,disabled:i,isActive:o,numericInput:n}=this,r=rd(this);return Ka(Ja,{exportparts:`${Wh}, ${qh}`,disabled:i,tabindex:i?null:0,class:Md(e,{[r]:!0,"picker-column-active":o,"picker-column-numeric-input":n})},Ka("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),Ka("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),Ka("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),t.map(((t,e)=>{const o=i||t.disabled||!1;return Ka("button",{tabindex:"-1",class:{"picker-item":!0},"data-value":t.value,"data-index":e,onClick:t=>{this.centerPickerItemInView(t.target,!0)},disabled:o,part:Wh},t.text)})),Ka("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),Ka("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),Ka("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "))}get el(){return this}static get watchers(){return{value:["valueChange"]}}static get style(){return{ios:":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item[disabled]{cursor:default}:host .picker-item-empty,:host(:not([disabled])) .picker-item[disabled]{scroll-snap-align:none}:host([disabled]){overflow-y:hidden}:host .picker-item[disabled]{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}",md:":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item[disabled]{cursor:default}:host .picker-item-empty,:host(:not([disabled])) .picker-item[disabled]{scroll-snap-align:none}:host([disabled]){overflow-y:hidden}:host .picker-item[disabled]{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}:host .picker-item-active{color:var(--ion-color-base)}"}}},[33,"ion-picker-column-internal",{disabled:[4],items:[16],value:[1032],color:[513],numericInput:[4,"numeric-input"],isActive:[32],scrollActiveItemIntoView:[64],setValue:[64]},void 0,{value:["valueChange"]}]),Nh="picker-item-active",Wh="wheel-item",qh="active",Yh=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionInputModeChange=is(this,"ionInputModeChange",7),this.useInputMode=!1,this.isInHighlightBounds=t=>{const{highlightEl:e}=this;if(!e)return!1;const i=e.getBoundingClientRect(),o=t.clientXi.right,n=t.clientYi.bottom;return!o&&!n},this.onFocusOut=t=>{const{relatedTarget:e}=t;(!e||"ION-PICKER-COLUMN-INTERNAL"!==e.tagName&&e!==this.inputEl)&&this.exitInputMode()},this.onFocusIn=t=>{const{target:e}=t;if("ION-PICKER-COLUMN-INTERNAL"===e.tagName&&!this.actionOnClick){const t=e;t.numericInput?this.enterInputMode(t,!1):this.exitInputMode()}},this.onClick=()=>{const{actionOnClick:t}=this;t&&(t(),this.actionOnClick=void 0)},this.onPointerDown=t=>{const{useInputMode:e,inputModeColumn:i,el:o}=this;if(this.isInHighlightBounds(t))if(e)"ION-PICKER-COLUMN-INTERNAL"===t.target.tagName?i&&i===t.target?this.actionOnClick=()=>{this.enterInputMode()}:this.actionOnClick=()=>{this.enterInputMode(t.target)}:this.actionOnClick=()=>{this.exitInputMode()};else{const e=1===o.querySelectorAll("ion-picker-column-internal.picker-column-numeric-input").length?t.target:void 0;this.actionOnClick=()=>{this.enterInputMode(e)}}else this.actionOnClick=()=>{this.exitInputMode()}},this.enterInputMode=(t,e=!0)=>{const{inputEl:i,el:o}=this;i&&o.querySelector("ion-picker-column-internal.picker-column-numeric-input")&&(this.useInputMode=!0,this.inputModeColumn=t,e?(this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),i.focus()):(o.addEventListener("keypress",this.onKeyPress),this.destroyKeypressListener=()=>{o.removeEventListener("keypress",this.onKeyPress)}),this.emitInputModeChange())},this.onKeyPress=t=>{const{inputEl:e}=this;if(!e)return;const i=parseInt(t.key,10);Number.isNaN(i)||(e.value+=t.key,this.onInputChange())},this.selectSingleColumn=()=>{const{inputEl:t,inputModeColumn:e,singleColumnSearchTimeout:i}=this;if(!t||!e)return;const o=e.items.filter((t=>!0!==t.disabled));if(i&&clearTimeout(i),this.singleColumnSearchTimeout=setTimeout((()=>{t.value="",this.singleColumnSearchTimeout=void 0}),1e3),t.value.length>=3){const e=t.value.length-2,i=t.value.substring(e);return t.value=i,void this.selectSingleColumn()}const n=o.find((({text:e})=>e.replace(/^0+(?=[1-9])|0+(?=0$)/,"")===t.value));if(n)e.setValue(n.value);else if(2===t.value.length){const e=t.value.substring(t.value.length-1);t.value=e,this.selectSingleColumn()}},this.searchColumn=(t,e,i="start")=>{const o="start"===i?/^0+/:/0$/,n=t.items.find((({text:t,disabled:i})=>!0!==i&&t.replace(o,"")===e));n&&t.setValue(n.value)},this.selectMultiColumn=()=>{const{inputEl:t,el:e}=this;if(!t)return;const i=Array.from(e.querySelectorAll("ion-picker-column-internal")).filter((t=>t.numericInput)),o=i[0],n=i[1];let r,a=t.value;switch(a.length){case 1:this.searchColumn(o,a);break;case 2:const e=t.value.substring(0,1);a="0"===e||"1"===e?t.value:e,this.searchColumn(o,a),1===a.length&&(r=t.value.substring(t.value.length-1),this.searchColumn(n,r,"end"));break;case 3:const i=t.value.substring(0,1);a="0"===i||"1"===i?t.value.substring(0,2):i,this.searchColumn(o,a),r=1===a.length?t.value.substring(1):t.value.substring(2),this.searchColumn(n,r,"end");break;case 4:const s=t.value.substring(0,1);a="0"===s||"1"===s?t.value.substring(0,2):s,this.searchColumn(o,a);const l=1===a.length?t.value.substring(1,t.value.length):t.value.substring(2,t.value.length);this.searchColumn(n,l,"end");break;default:const d=t.value.length-4,c=t.value.substring(d);t.value=c,this.selectMultiColumn()}},this.onInputChange=()=>{const{useInputMode:t,inputEl:e,inputModeColumn:i}=this;t&&e&&(i?this.selectSingleColumn():this.selectMultiColumn())},this.emitInputModeChange=()=>{const{useInputMode:t,inputModeColumn:e}=this;this.ionInputModeChange.emit({useInputMode:t,inputModeColumn:e})}}preventTouchStartPropagation(t){t.stopPropagation()}componentWillLoad(){yl(this.el).addEventListener("focusin",this.onFocusIn),yl(this.el).addEventListener("focusout",this.onFocusOut)}async exitInputMode(){const{inputEl:t,useInputMode:e}=this;e&&t&&(this.useInputMode=!1,this.inputModeColumn=void 0,t.blur(),t.value="",this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),this.emitInputModeChange())}render(){return Ka(Ja,{onPointerDown:t=>this.onPointerDown(t),onClick:()=>this.onClick()},Ka("input",{"aria-hidden":"true",tabindex:-1,inputmode:"numeric",type:"number",ref:t=>this.inputEl=t,onInput:()=>this.onInputChange(),onBlur:()=>this.exitInputMode()}),Ka("div",{class:"picker-before"}),Ka("div",{class:"picker-after"}),Ka("div",{class:"picker-highlight",ref:t=>this.highlightEl=t}),Ka("slot",null))}get el(){return this}static get style(){return{ios:":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}@supports (inset-inline-start: 0){:host .picker-before{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-before{left:0}:host-context([dir=rtl]) .picker-before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-before{left:unset;right:unset;right:0}}}:host .picker-after{top:116px;height:84px}@supports (inset-inline-start: 0){:host .picker-after{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-after{left:0}:host-context([dir=rtl]) .picker-after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-after{left:unset;right:unset;right:0}}}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--wheel-highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-highlight{background:var(--wheel-highlight-background, var(--ion-color-step-150, #eeeeef))}",md:":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}@supports (inset-inline-start: 0){:host .picker-before{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-before{left:0}:host-context([dir=rtl]) .picker-before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-before{left:unset;right:unset;right:0}}}:host .picker-after{top:116px;height:84px}@supports (inset-inline-start: 0){:host .picker-after{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-after{left:0}:host-context([dir=rtl]) .picker-after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-after{left:unset;right:unset;right:0}}}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--wheel-highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 30%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}"}}},[33,"ion-picker-internal",{exitInputMode:[64]},[[1,"touchstart","preventTouchStartPropagation"]]]),Gh=async(t,e,i,o,n,r)=>{var a;if(t)return t.attachViewToDom(e,i,n,o);if(!(r||"string"==typeof i||i instanceof HTMLElement))throw new Error("framework delegate is missing");const s="string"==typeof i?null===(a=e.ownerDocument)||void 0===a?void 0:a.createElement(i):i;return o&&o.forEach((t=>s.classList.add(t))),n&&Object.assign(s,n),e.appendChild(s),await new Promise((t=>ul(s,t))),s},Xh=(t,e)=>{if(e){if(t){const i=e.parentElement;return t.removeViewFromDom(i,e)}e.remove()}return Promise.resolve()},Uh=()=>{let t,e;return{attachViewToDom:async(i,o,n={},r=[])=>{var a,s;let l;if(t=i,o){const e="string"==typeof o?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(o):o;r.forEach((t=>e.classList.add(t))),Object.assign(e,n),t.appendChild(e),l=e,await new Promise((t=>ul(e,t)))}else if(t.children.length>0&&("ION-MODAL"===t.tagName||"ION-POPOVER"===t.tagName)&&!(l=t.children[0]).classList.contains("ion-delegate-host")){const e=null===(s=t.ownerDocument)||void 0===s?void 0:s.createElement("div");e.classList.add("ion-delegate-host"),r.forEach((t=>e.classList.add(t))),e.append(...t.children),t.appendChild(e),l=e}const d=document.querySelector("ion-app")||document.body;return e=document.createComment("ionic teleport"),t.parentNode.insertBefore(e,t),d.appendChild(t),null!=l?l:t},removeViewFromDom:()=>(t&&e&&(e.parentNode.insertBefore(t,e),e.remove()),Promise.resolve())}},Kh=()=>{let t;return{lock:async()=>{const e=t;let i;return t=new Promise((t=>i=t)),void 0!==e&&await e,i}}},Zh=Object.freeze(Object.defineProperty({__proto__:null,MENU_BACK_BUTTON_PRIORITY:99,OVERLAY_BACK_BUTTON_PRIORITY:100,blockHardwareBackButton:()=>{document.addEventListener("backbutton",(()=>{}))},startHardwareBackButton:()=>{const t=document;let e=!1;t.addEventListener("backbutton",(()=>{if(e)return;let i=0,o=[];const n=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(t,e){o.push({priority:t,handler:e,id:i++})}}});t.dispatchEvent(n);const r=()=>{if(o.length>0){let t={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};o.forEach((e=>{e.priority>=t.priority&&(t=e)})),e=!0,o=o.filter((e=>e.id!==t.id)),(async t=>{try{if(null==t?void 0:t.handler){const e=t.handler(r);null!=e&&await e}}catch(e){console.error(e)}})(t).then((()=>e=!1))}};r()}))}},Symbol.toStringTag,{value:"Module"})); +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +let Jh=0,Qh=0;const tp=new WeakMap,ep=t=>({create:e=>lp(t,e),dismiss:(e,i,o)=>up(document,e,i,t,o),getTop:async()=>bp(document,t)}),ip=ep("ion-alert"),op=ep("ion-action-sheet"),np=ep("ion-popover"),rp=ep("ion-toast"),ap=t=>{"undefined"!=typeof document&&mp(document);const e=Jh++;t.overlayIndex=e},sp=t=>(t.hasAttribute("id")||(t.id="ion-overlay-"+ ++Qh),t.id),lp=(t,e)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(t).then((()=>{const i=document.createElement(t);return i.classList.add("overlay-hidden"),Object.assign(i,Object.assign(Object.assign({},e),{hasController:!0})),yp(document).appendChild(i),new Promise((t=>ul(i,t)))})):Promise.resolve(),dp='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',cp=(t,e)=>{let i=t.querySelector(dp);const o=null==i?void 0:i.shadowRoot;o&&(i=o.querySelector(dp)||i),i?zl(i):e.focus()},hp=(t,e)=>{const i=Array.from(t.querySelectorAll(dp));let o=i.length>0?i[i.length-1]:null;const n=null==o?void 0:o.shadowRoot;n&&(o=n.querySelector(dp)||o),o?o.focus():e.focus()},pp=(t,e)=>{const i=bp(e,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),o=t.target;i&&o&&(i.classList.contains("ion-disable-focus-trap")||(i.shadowRoot?(()=>{if(i.contains(o))i.lastFocus=o;else{const t=i.lastFocus;cp(i,i),t===e.activeElement&&hp(i,i),i.lastFocus=e.activeElement}})():(()=>{if(i===o)i.lastFocus=void 0;else{const t=yl(i);if(!t.contains(o))return;const n=t.querySelector(".ion-overlay-wrapper");if(!n)return;if(n.contains(o)||o===t.querySelector("ion-backdrop"))i.lastFocus=o;else{const t=i.lastFocus;cp(n,i),t===e.activeElement&&hp(n,i),i.lastFocus=e.activeElement}}})()))},mp=t=>{0===Jh&&(Jh=1,t.addEventListener("focus",(e=>{pp(e,t)}),!0),t.addEventListener("ionBackButton",(e=>{const i=bp(t);(null==i?void 0:i.backdropDismiss)&&e.detail.register(100,(()=>i.dismiss(void 0,Ip)))})),t.addEventListener("keydown",(e=>{if("Escape"===e.key){const e=bp(t);(null==e?void 0:e.backdropDismiss)&&e.dismiss(void 0,Ip)}})))},up=(t,e,i,o,n)=>{const r=bp(t,o,n);return r?r.dismiss(e,i):Promise.reject("overlay does not exist")},gp=(t,e)=>((t,e)=>(void 0===e&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter((t=>t.overlayIndex>0))))(t,e).filter((t=>!t.classList.contains("overlay-hidden"))),bp=(t,e,i)=>{const o=gp(t,e);return void 0===i?o[o.length-1]:o.find((t=>t.id===i))},fp=(t=!1)=>{const e=yp(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");e&&(t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden"))},vp=async(t,e,i,o,n)=>{var r,a;if(t.presented)return;fp(!0),t.presented=!0,t.willPresent.emit(),null===(r=t.willPresentShorthand)||void 0===r||r.emit();const s=rd(t),l=t.enterAnimation?t.enterAnimation:Hl.get(e,"ios"===s?i:o);await kp(t,l,t.el,n)&&(t.didPresent.emit(),null===(a=t.didPresentShorthand)||void 0===a||a.emit()),"ION-TOAST"!==t.el.tagName&&xp(t.el),!t.keyboardClose||null!==document.activeElement&&t.el.contains(document.activeElement)||t.el.focus()},xp=async t=>{let e=document.activeElement;if(!e)return;const i=null==e?void 0:e.shadowRoot;i&&(e=i.querySelector(dp)||e),await t.onDidDismiss(),e.focus()},wp=async(t,e,i,o,n,r,a)=>{var s,l;if(!t.presented)return!1;void 0!==Lh&&1===gp(Lh).length&&fp(!1),t.presented=!1;try{t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:e,role:i}),null===(s=t.willDismissShorthand)||void 0===s||s.emit({data:e,role:i});const d=rd(t),c=t.leaveAnimation?t.leaveAnimation:Hl.get(o,"ios"===d?n:r);i!==Pp&&await kp(t,c,t.el,a),t.didDismiss.emit({data:e,role:i}),null===(l=t.didDismissShorthand)||void 0===l||l.emit({data:e,role:i}),tp.delete(t),t.el.classList.add("overlay-hidden"),t.el.style.removeProperty("pointer-events"),void 0!==t.el.lastFocus&&(t.el.lastFocus=void 0)}catch(d){console.error(d)}return t.el.remove(),!0},yp=t=>t.querySelector("ion-app")||t.body,kp=async(t,e,i,o)=>{i.classList.remove("overlay-hidden");const n=e(t.el,o);t.animated&&Hl.getBoolean("animated",!0)||n.duration(0),t.keyboardClose&&n.beforeAddWrite((()=>{const t=i.ownerDocument.activeElement;(null==t?void 0:t.matches("input,ion-input, ion-textarea"))&&t.blur()}));const r=tp.get(t)||[];return tp.set(t,[...r,n]),await n.play(),!0},Cp=(t,e)=>{let i;const o=new Promise((t=>i=t));return Ep(t,e,(t=>{i(t.detail)})),o},Ep=(t,e,i)=>{const o=n=>{wl(t,e,o),i(n)};xl(t,e,o)},zp=t=>"cancel"===t||t===Ip,Sp=t=>t(),Ap=(t,e)=>{if("function"==typeof t)return Hl.get("_zoneGate",Sp)((()=>{try{return t(e)}catch(i){throw i}}))},Ip="backdrop",Pp="gesture",$p=t=>{let e,i=!1;const o=Uh(),n=(n=!1)=>{if(e&&!n)return{delegate:e,inline:i};const{el:r,hasController:a,delegate:s}=t,l=r.parentNode;return i=null!==l&&!a,e=i?s||o:s,{inline:i,delegate:e}};return{attachViewToDom:async e=>{const{delegate:i}=n(!0);if(i)return await i.attachViewToDom(t.el,e);const{hasController:o}=t;if(o&&void 0!==e)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:e}=n();e&&void 0!==t.el&&e.removeViewFromDom(t.el.parentElement,t.el)}}},Op=()=>{let t;const e=()=>{t&&(t(),t=void 0)};return{addClickListener:(i,o)=>{e();const n=void 0!==o?document.getElementById(o):null;n?t=((t,e)=>{const i=()=>{e.present()};return t.addEventListener("click",i),()=>{t.removeEventListener("click",i)}})(n,i):Sd(`A trigger element with the ID "${o}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,i)},removeClickListener:e}},Tp="ionViewWillEnter",Lp="ionViewDidEnter",Dp="ionViewWillLeave",_p="ionViewDidLeave",jp="ionViewWillUnload",Mp=t=>new Promise(((e,i)=>{hl((()=>{Bp(t),Vp(t).then((i=>{i.animation&&i.animation.destroy(),Rp(t),e(i)}),(e=>{Rp(t),i(e)}))}))})),Bp=t=>{const e=t.enteringEl,i=t.leavingEl;Qp(e,i,t.direction),t.showGoBack?e.classList.add("can-go-back"):e.classList.remove("can-go-back"),Jp(e,!1),e.style.setProperty("pointer-events","none"),i&&(Jp(i,!1),i.style.setProperty("pointer-events","none"))},Vp=async t=>{const e=await Fp(t);return e&&qa?Hp(e,t):Np(t)},Rp=t=>{const e=t.enteringEl,i=t.leavingEl;e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"),void 0!==i&&(i.classList.remove("ion-page-invisible"),i.style.removeProperty("pointer-events"))},Fp=async t=>{if(t.leavingEl&&t.animated&&0!==t.duration)return t.animationBuilder?t.animationBuilder:"ios"===t.mode?(await Pa((()=>e.import("./ios.transition-legacy-WEXCFnkr.js")))).iosTransitionAnimation:(await Pa((()=>e.import("./md.transition-legacy-rJZkiATa.js")))).mdTransitionAnimation},Hp=async(t,e)=>{await Wp(e,!0);const i=t(e.baseEl,e);Gp(e.enteringEl,e.leavingEl);const o=await Yp(i,e);return e.progressCallback&&e.progressCallback(void 0),o&&Xp(e.enteringEl,e.leavingEl),{hasCompleted:o,animation:i}},Np=async t=>{const e=t.enteringEl,i=t.leavingEl;return await Wp(t,!1),Gp(e,i),Xp(e,i),{hasCompleted:!0}},Wp=async(t,e)=>{(void 0!==t.deepWait?t.deepWait:e)&&await Promise.all([Zp(t.enteringEl),Zp(t.leavingEl)]),await qp(t.viewIsReady,t.enteringEl)},qp=async(t,e)=>{t&&await t(e)},Yp=(t,e)=>{const i=e.progressCallback,o=new Promise((e=>{t.onFinish((t=>e(1===t)))}));return i?(t.progressStart(!0),i(t)):t.play(),o},Gp=(t,e)=>{Up(e,Dp),Up(t,Tp)},Xp=(t,e)=>{Up(t,Lp),Up(e,_p)},Up=(t,e)=>{if(t){const i=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(i)}},Kp=()=>new Promise((t=>kl((()=>kl((()=>t())))))),Zp=async t=>{const e=t;if(e){if(null!=e.componentOnReady){if(null!=await e.componentOnReady())return}else if(null!=e.__registerHost){const t=new Promise((t=>kl(t)));return void(await t)}await Promise.all(Array.from(e.children).map(Zp))}},Jp=(t,e)=>{e?(t.setAttribute("aria-hidden","true"),t.classList.add("ion-page-hidden")):(t.hidden=!1,t.removeAttribute("aria-hidden"),t.classList.remove("ion-page-hidden"))},Qp=(t,e,i)=>{void 0!==t&&(t.style.zIndex="back"===i?"99":"101"),void 0!==e&&(e.style.zIndex="100")}; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +let tm;t("aR",(t=>{if(t.classList.contains("ion-page"))return t;const e=t.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return e||t}));const em=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),im=t=>{if(void 0===tm){const e=void 0!==t.style.animationName,i=void 0!==t.style.webkitAnimationName;tm=!e&&i?"-webkit-":""}return tm},om=(t,e,i)=>{const o=e.startsWith("animation")?im(t):"";t.style.setProperty(o+e,i)},nm=(t,e)=>{const i=e.startsWith("animation")?im(t):"";t.style.removeProperty(i+e)},rm=[],am=(t=[],e)=>{if(void 0!==e){const i=Array.isArray(e)?e:[e];return[...t,...i]}return t},sm=t("aQ",(t=>{let e,i,o,n,r,a,s,l,d,c,h,p,m,u=[],g=[],b=[],f=!1,v={},x=[],w=[],y={},k=0,C=!1,E=!1,z=!0,S=!1,A=!0,I=!1;const P=t,$=[],O=[],T=[],L=[],D=[],_=[],j=[],M=[],B=[],V=[],R=[],F="function"==typeof AnimationEffect||void 0!==Th&&"function"==typeof Th.AnimationEffect,H="function"==typeof Element&&"function"==typeof Element.prototype.animate&&F,N=()=>R,W=t=>{X(),t&&U()},q=(t,e)=>{const i=e.findIndex((e=>e.c===t));i>-1&&e.splice(i,1)},Y=(t,e)=>(((null==e?void 0:e.oneTimeCallback)?O:$).push({c:t,o:e}),m),G=()=>($.length=0,O.length=0,m),X=()=>{if(H)R.forEach((t=>{t.cancel()})),R.length=0;else{const t=L.slice();kl((()=>{t.forEach((t=>{nm(t,"animation-name"),nm(t,"animation-duration"),nm(t,"animation-timing-function"),nm(t,"animation-iteration-count"),nm(t,"animation-delay"),nm(t,"animation-play-state"),nm(t,"animation-fill-mode"),nm(t,"animation-direction")}))}))}},U=()=>{_.forEach((t=>{(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)})),_.length=0},K=()=>void 0!==r?r:s?s.getFill():"both",Z=()=>void 0!==d?d:void 0!==a?a:s?s.getDirection():"normal",J=()=>C?"linear":void 0!==o?o:s?s.getEasing():"linear",Q=()=>E?0:void 0!==c?c:void 0!==i?i:s?s.getDuration():0,tt=()=>void 0!==n?n:s?s.getIterations():1,et=()=>void 0!==h?h:void 0!==e?e:s?s.getDelay():0,it=t=>{H?N().forEach((e=>{const i=e.effect;if(i.setKeyframes)i.setKeyframes(t);else{const o=new KeyframeEffect(i.target,t,i.getTiming());e.effect=o}})):nt()},ot=()=>{0!==k&&(k--,0===k&&((()=>{pt(),B.forEach((t=>t())),V.forEach((t=>t()));const t=z?1:0,e=x,i=w,o=y;L.forEach((t=>{const n=t.classList;e.forEach((t=>n.add(t))),i.forEach((t=>n.remove(t)));for(const e in o)o.hasOwnProperty(e)&&om(t,e,o[e])})),c=void 0,d=void 0,h=void 0,$.forEach((e=>e.c(t,m))),O.forEach((e=>e.c(t,m))),O.length=0,A=!0,z&&(S=!0),z=!0})(),s&&s.animationFinish()))},nt=(e=!0)=>{U();const i=(t=>(t.forEach((t=>{for(const e in t)if(t.hasOwnProperty(e)){const i=t[e];if("easing"===e)t["animation-timing-function"]=i,delete t[e];else{const o=em(e);o!==e&&(t[o]=i,delete t[e])}}})),t))(u);L.forEach((o=>{if(i.length>0){const n=((t=[])=>t.map((t=>{const e=t.offset,i=[];for(const o in t)t.hasOwnProperty(o)&&"offset"!==o&&i.push(`${o}: ${t[o]};`);return`${100*e}% { ${i.join(" ")} }`})).join(" "))(i);p=void 0!==t?t:(t=>{let e=rm.indexOf(t);return e<0&&(e=rm.push(t)-1),`ion-animation-${e}`})(n);const r=((t,e,i)=>{var o;const n=(t=>{const e=void 0!==t.getRootNode?t.getRootNode():t;return e.head||e})(i),r=im(i),a=n.querySelector("#"+t);if(a)return a;const s=(null!==(o=i.ownerDocument)&&void 0!==o?o:document).createElement("style");return s.id=t,s.textContent=`@${r}keyframes ${t} { ${e} } @${r}keyframes ${t}-alt { ${e} }`,n.appendChild(s),s})(p,n,o);_.push(r),om(o,"animation-duration",`${Q()}ms`),om(o,"animation-timing-function",J()),om(o,"animation-delay",`${et()}ms`),om(o,"animation-fill-mode",K()),om(o,"animation-direction",Z());const a=tt()===1/0?"infinite":tt().toString();om(o,"animation-iteration-count",a),om(o,"animation-play-state","paused"),e&&om(o,"animation-name",`${r.id}-alt`),kl((()=>{om(o,"animation-name",r.id||null)}))}}))},rt=(t=!0)=>{(()=>{j.forEach((t=>t())),M.forEach((t=>t()));const t=g,e=b,i=v;L.forEach((o=>{const n=o.classList;t.forEach((t=>n.add(t))),e.forEach((t=>n.remove(t)));for(const t in i)i.hasOwnProperty(t)&&om(o,t,i[t])}))})(),u.length>0&&(H?(L.forEach((t=>{const e=t.animate(u,{id:P,delay:et(),duration:Q(),easing:J(),iterations:tt(),fill:K(),direction:Z()});e.pause(),R.push(e)})),R.length>0&&(R[0].onfinish=()=>{ot()})):nt(t)),f=!0},at=t=>{if(t=Math.min(Math.max(t,0),.9999),H)R.forEach((e=>{e.currentTime=e.effect.getComputedTiming().delay+Q()*t,e.pause()}));else{const e=`-${Q()*t}ms`;L.forEach((t=>{u.length>0&&(om(t,"animation-delay",e),om(t,"animation-play-state","paused"))}))}},st=t=>{R.forEach((t=>{t.effect.updateTiming({delay:et(),duration:Q(),easing:J(),iterations:tt(),fill:K(),direction:Z()})})),void 0!==t&&at(t)},lt=(t=!0,e)=>{kl((()=>{L.forEach((i=>{om(i,"animation-name",p||null),om(i,"animation-duration",`${Q()}ms`),om(i,"animation-timing-function",J()),om(i,"animation-delay",void 0!==e?`-${e*Q()}ms`:`${et()}ms`),om(i,"animation-fill-mode",K()||null),om(i,"animation-direction",Z()||null);const o=tt()===1/0?"infinite":tt().toString();om(i,"animation-iteration-count",o),t&&om(i,"animation-name",`${p}-alt`),kl((()=>{om(i,"animation-name",p||null)}))}))}))},dt=(t=!1,e=!0,i)=>(t&&D.forEach((o=>{o.update(t,e,i)})),H?st(i):lt(e,i),m),ct=()=>{f&&(H?R.forEach((t=>{t.pause()})):L.forEach((t=>{om(t,"animation-play-state","paused")})),I=!0)},ht=()=>{l=void 0,ot()},pt=()=>{l&&clearTimeout(l)},mt=()=>{L.forEach((t=>{nm(t,"animation-duration"),nm(t,"animation-delay"),nm(t,"animation-play-state")}))},ut=t=>new Promise((e=>{(null==t?void 0:t.sync)&&(E=!0,Y((()=>E=!1),{oneTimeCallback:!0})),f||rt(),S&&(H?(at(0),st()):lt(),S=!1),A&&(k=D.length+1,A=!1);const i=()=>{q(o,O),e()},o=()=>{q(i,T),e()};Y(o,{oneTimeCallback:!0}),((t,e)=>{T.push({c:t,o:e})})(i,{oneTimeCallback:!0}),D.forEach((t=>{t.play()})),H?(R.forEach((t=>{t.play()})),0!==u.length&&0!==L.length||ot()):(()=>{if(pt(),kl((()=>{L.forEach((t=>{u.length>0&&om(t,"animation-play-state","running")}))})),0===u.length||0===L.length)ot();else{const t=et()||0,e=Q()||0,i=tt()||1;isFinite(i)&&(l=setTimeout(ht,t+e*i+100)),((t,e)=>{let i;const o={passive:!0},n=()=>{i&&i()},r=i=>{t===i.target&&(n(),e(i))};t&&(t.addEventListener("webkitAnimationEnd",r,o),t.addEventListener("animationend",r,o),i=()=>{t.removeEventListener("webkitAnimationEnd",r,o),t.removeEventListener("animationend",r,o)})})(L[0],(()=>{pt(),kl((()=>{mt(),kl(ot)}))}))}})(),I=!1})),gt=(t,e)=>{const i=u[0];return void 0===i||void 0!==i.offset&&0!==i.offset?u=[{offset:0,[t]:e},...u]:i[t]=e,m};return m={parentAnimation:s,elements:L,childAnimations:D,id:P,animationFinish:ot,from:gt,to:(t,e)=>{const i=u[u.length-1];return void 0===i||void 0!==i.offset&&1!==i.offset?u=[...u,{offset:1,[t]:e}]:i[t]=e,m},fromTo:(t,e,i)=>gt(t,e).to(t,i),parent:t=>(s=t,m),play:ut,pause:()=>(D.forEach((t=>{t.pause()})),ct(),m),stop:()=>{D.forEach((t=>{t.stop()})),f&&(X(),f=!1),C=!1,E=!1,A=!0,d=void 0,c=void 0,h=void 0,k=0,S=!1,z=!0,I=!1,T.forEach((t=>t.c(0,m))),T.length=0},destroy:t=>(D.forEach((e=>{e.destroy(t)})),W(t),L.length=0,D.length=0,u.length=0,G(),f=!1,A=!0,m),keyframes:t=>{const e=u!==t;return u=t,e&&it(u),m},addAnimation:t=>{if(null!=t)if(Array.isArray(t))for(const e of t)e.parent(m),D.push(e);else t.parent(m),D.push(t);return m},addElement:t=>{if(null!=t)if(1===t.nodeType)L.push(t);else if(t.length>=0)for(let e=0;e(r=t,dt(!0),m),direction:t=>(a=t,dt(!0),m),iterations:t=>(n=t,dt(!0),m),duration:t=>(H||0!==t||(t=1),i=t,dt(!0),m),easing:t=>(o=t,dt(!0),m),delay:t=>(e=t,dt(!0),m),getWebAnimations:N,getKeyframes:()=>u,getFill:K,getDirection:Z,getDelay:et,getIterations:tt,getEasing:J,getDuration:Q,afterAddRead:t=>(B.push(t),m),afterAddWrite:t=>(V.push(t),m),afterClearStyles:(t=[])=>{for(const e of t)y[e]="";return m},afterStyles:(t={})=>(y=t,m),afterRemoveClass:t=>(w=am(w,t),m),afterAddClass:t=>(x=am(x,t),m),beforeAddRead:t=>(j.push(t),m),beforeAddWrite:t=>(M.push(t),m),beforeClearStyles:(t=[])=>{for(const e of t)v[e]="";return m},beforeStyles:(t={})=>(v=t,m),beforeRemoveClass:t=>(b=am(b,t),m),beforeAddClass:t=>(g=am(g,t),m),onFinish:Y,isRunning:()=>0!==k&&!I,progressStart:(t=!1,e)=>(D.forEach((i=>{i.progressStart(t,e)})),ct(),C=t,f||rt(),dt(!1,!0,e),m),progressStep:t=>(D.forEach((e=>{e.progressStep(t)})),at(t),m),progressEnd:(t,e,i)=>(C=!1,D.forEach((o=>{o.progressEnd(t,e,i)})),void 0!==i&&(c=i),S=!1,z=!0,0===t?(d="reverse"===Z()?"normal":"reverse","reverse"===d&&(z=!1),H?(dt(),at(1-e)):(h=(1-e)*Q()*-1,dt(!1,!1))):1===t&&(H?(dt(),at(e)):(h=e*Q()*-1,dt(!1,!1))),void 0===t||s||ut(),m)}})),lm=(t,e,i)=>{const o=e.getBoundingClientRect(),n=o.height;let r=o.width;return"cover"===t&&i&&(r=i.getBoundingClientRect().width),{contentWidth:r,contentHeight:n}},dm=(t,e)=>e&&"ION-ITEM"===e.tagName?t.findIndex((t=>t===e)):-1,cm=t=>{const e=yl(t).querySelector("button");e&&kl((()=>e.focus()))},hm=t=>{const e=async e=>{var i;const o=document.activeElement;let n=[];const r=null===(i=e.target)||void 0===i?void 0:i.tagName;if("ION-POPOVER"===r||"ION-ITEM"===r){try{n=Array.from(t.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch(a){}switch(e.key){case"ArrowLeft":await t.getParentPopover()&&t.dismiss(void 0,void 0,!1);break;case"ArrowDown":e.preventDefault();const i=((t,e)=>t[dm(t,e)+1])(n,o);void 0!==i&&cm(i);break;case"ArrowUp":e.preventDefault();const r=((t,e)=>t[dm(t,e)-1])(n,o);void 0!==r&&cm(r);break;case"Home":e.preventDefault();const a=n[0];void 0!==a&&cm(a);break;case"End":e.preventDefault();const s=n[n.length-1];void 0!==s&&cm(s);break;case"ArrowRight":case" ":case"Enter":if(o&&o.hasAttribute("data-ion-popover-trigger")){const t=new CustomEvent("ionPopoverActivateTrigger");o.dispatchEvent(t)}}}};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},pm=(t,e,i,o,n,r,a,s,l,d,c)=>{var h;let p={top:0,left:0,width:0,height:0};if("event"===r){if(!c)return l;const t=c;p={top:t.clientY,left:t.clientX,width:1,height:1}}else{const t=c,e=d||(null===(h=null==t?void 0:t.detail)||void 0===h?void 0:h.ionShadowTarget)||(null==t?void 0:t.target);if(!e)return l;const i=e.getBoundingClientRect();p={top:i.top,left:i.left,width:i.width,height:i.height}}const m=fm(a,p,e,i,o,n,t),u=vm(s,a,p,e,i),g=m.top+u.top,b=m.left+u.left,{arrowTop:f,arrowLeft:v}=bm(a,o,n,g,b,e,i,t),{originX:x,originY:w}=mm(a,s,t);return{top:g,left:b,referenceCoordinates:p,arrowTop:f,arrowLeft:v,originX:x,originY:w}},mm=(t,e,i)=>{switch(t){case"top":return{originX:um(e),originY:"bottom"};case"bottom":return{originX:um(e),originY:"top"};case"left":return{originX:"right",originY:gm(e)};case"right":return{originX:"left",originY:gm(e)};case"start":return{originX:i?"left":"right",originY:gm(e)};case"end":return{originX:i?"right":"left",originY:gm(e)}}},um=t=>{switch(t){case"start":return"left";case"center":return"center";case"end":return"right"}},gm=t=>{switch(t){case"start":return"top";case"center":return"center";case"end":return"bottom"}},bm=(t,e,i,o,n,r,a,s)=>{const l={arrowTop:o+a/2-e/2,arrowLeft:n+r-e/2},d={arrowTop:o+a/2-e/2,arrowLeft:n-1.5*e};switch(t){case"top":return{arrowTop:o+a,arrowLeft:n+r/2-e/2};case"bottom":return{arrowTop:o-i,arrowLeft:n+r/2-e/2};case"left":return l;case"right":return d;case"start":return s?d:l;case"end":return s?l:d;default:return{arrowTop:0,arrowLeft:0}}},fm=(t,e,i,o,n,r,a)=>{const s={top:e.top,left:e.left-i-n},l={top:e.top,left:e.left+e.width+n};switch(t){case"top":return{top:e.top-o-r,left:e.left};case"right":return l;case"bottom":return{top:e.top+e.height+r,left:e.left};case"left":return s;case"start":return a?l:s;case"end":return a?s:l}},vm=(t,e,i,o,n)=>{switch(t){case"center":return wm(e,i,o,n);case"end":return xm(e,i,o,n);default:return{top:0,left:0}}},xm=(t,e,i,o)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(o-e.height),left:0};default:return{top:0,left:-(i-e.width)}}},wm=(t,e,i,o)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(o/2-e.height/2),left:0};default:return{top:0,left:-(i/2-e.width/2)}}},ym=(t,e,i,o,n,r,a,s,l,d,c,h,p=0,m=0,u=0)=>{let g=p;const b=m;let f,v=i,x=e,w=d,y=c,k=!1,C=!1;const E=h?h.top+h.height:r/2-s/2,z=h?h.height:0;let S=!1;return vn&&(C=!0,v=n-a-o,w="right"),E+z+s>r&&("top"===t||"bottom"===t)&&(E-s>0?(x=Math.max(12,E-s-z-(u-1)),g=x+s,y="bottom",S=!0):f=o),{top:x,left:v,bottom:f,originX:w,originY:y,checkSafeAreaLeft:k,checkSafeAreaRight:C,arrowTop:g,arrowLeft:b,addPopoverBottomClass:S}},km=(t,e)=>{var i;const{event:o,size:n,trigger:r,reference:a,side:s,align:l}=e,d=t.ownerDocument,c="rtl"===d.dir,h=d.defaultView.innerWidth,p=d.defaultView.innerHeight,m=yl(t),u=m.querySelector(".popover-content"),g=m.querySelector(".popover-arrow"),b=r||(null===(i=null==o?void 0:o.detail)||void 0===i?void 0:i.ionShadowTarget)||(null==o?void 0:o.target),{contentWidth:f,contentHeight:v}=lm(n,u,b),{arrowWidth:x,arrowHeight:w}=(t=>{if(!t)return{arrowWidth:0,arrowHeight:0};const{width:e,height:i}=t.getBoundingClientRect();return{arrowWidth:e,arrowHeight:i}})(g),y=pm(c,f,v,x,w,a,s,l,{top:p/2-v/2,left:h/2-f/2,originX:c?"right":"left",originY:"top"},r,o),k="cover"===n?0:5,C="cover"===n?0:25,{originX:E,originY:z,top:S,left:A,bottom:I,checkSafeAreaLeft:P,checkSafeAreaRight:$,arrowTop:O,arrowLeft:T,addPopoverBottomClass:L}=ym(s,y.top,y.left,k,h,p,f,v,C,y.originX,y.originY,y.referenceCoordinates,y.arrowTop,y.arrowLeft,w),D=sm(),_=sm(),j=sm();return _.addElement(m.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),j.addElement(m.querySelector(".popover-arrow")).addElement(m.querySelector(".popover-content")).fromTo("opacity",.01,1),D.easing("ease").duration(100).beforeAddWrite((()=>{"cover"===n&&t.style.setProperty("--width",`${f}px`),L&&t.classList.add("popover-bottom"),void 0!==I&&u.style.setProperty("bottom",`${I}px`);let e=`${A}px`;if(P&&(e=`${A}px + var(--ion-safe-area-left, 0)`),$&&(e=`${A}px - var(--ion-safe-area-right, 0)`),u.style.setProperty("top",`calc(${S}px + var(--offset-y, 0))`),u.style.setProperty("left",`calc(${e} + var(--offset-x, 0))`),u.style.setProperty("transform-origin",`${z} ${E}`),null!==g){const t=y.top!==S||y.left!==A,e=((t,e=!1,i,o)=>!(!i&&!o||"top"!==t&&"bottom"!==t&&e))(s,t,o,r);e?(g.style.setProperty("top",`calc(${O}px + var(--offset-y, 0))`),g.style.setProperty("left",`calc(${T}px + var(--offset-x, 0))`)):g.style.setProperty("display","none")}})).addAnimation([_,j])},Cm=t=>{const e=yl(t),i=e.querySelector(".popover-content"),o=e.querySelector(".popover-arrow"),n=sm(),r=sm(),a=sm();return r.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(e.querySelector(".popover-arrow")).addElement(e.querySelector(".popover-content")).fromTo("opacity",.99,0),n.easing("ease").afterAddWrite((()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),i.style.removeProperty("top"),i.style.removeProperty("left"),i.style.removeProperty("bottom"),i.style.removeProperty("transform-origin"),o&&(o.style.removeProperty("top"),o.style.removeProperty("left"),o.style.removeProperty("display"))})).duration(300).addAnimation([r,a])},Em=(t,e)=>{var i;const{event:o,size:n,trigger:r,reference:a,side:s,align:l}=e,d=t.ownerDocument,c="rtl"===d.dir,h=d.defaultView.innerWidth,p=d.defaultView.innerHeight,m=yl(t),u=m.querySelector(".popover-content"),g=r||(null===(i=null==o?void 0:o.detail)||void 0===i?void 0:i.ionShadowTarget)||(null==o?void 0:o.target),{contentWidth:b,contentHeight:f}=lm(n,u,g),v=pm(c,b,f,0,0,a,s,l,{top:p/2-f/2,left:h/2-b/2,originX:c?"right":"left",originY:"top"},r,o),x="cover"===n?0:12,{originX:w,originY:y,top:k,left:C,bottom:E}=ym(s,v.top,v.left,x,h,p,b,f,0,v.originX,v.originY,v.referenceCoordinates),z=sm(),S=sm(),A=sm(),I=sm(),P=sm();return S.addElement(m.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),A.addElement(m.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),I.addElement(u).beforeStyles({top:`calc(${k}px + var(--offset-y, 0px))`,left:`calc(${C}px + var(--offset-x, 0px))`,"transform-origin":`${y} ${w}`}).beforeAddWrite((()=>{void 0!==E&&u.style.setProperty("bottom",`${E}px`)})).fromTo("transform","scale(0.8)","scale(1)"),P.addElement(m.querySelector(".popover-viewport")).fromTo("opacity",.01,1),z.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite((()=>{"cover"===n&&t.style.setProperty("--width",`${b}px`),"bottom"===y&&t.classList.add("popover-bottom")})).addAnimation([S,A,I,P])},zm=t=>{const e=yl(t),i=e.querySelector(".popover-content"),o=sm(),n=sm(),r=sm();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),o.easing("ease").afterAddWrite((()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),i.style.removeProperty("top"),i.style.removeProperty("left"),i.style.removeProperty("bottom"),i.style.removeProperty("transform-origin")})).duration(150).addAnimation([n,r])},Sm=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=is(this,"ionPopoverDidPresent",7),this.willPresent=is(this,"ionPopoverWillPresent",7),this.willDismiss=is(this,"ionPopoverWillDismiss",7),this.didDismiss=is(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=is(this,"didPresent",7),this.willPresentShorthand=is(this,"willPresent",7),this.willDismissShorthand=is(this,"willDismiss",7),this.didDismissShorthand=is(this,"didDismiss",7),this.ionMount=is(this,"ionMount",7),this.parentPopover=null,this.coreDelegate=Uh(),this.lockController=Kh(),this.inline=!1,this.focusDescendantOnPresent=!1,this.onBackdropTap=()=>{this.dismiss(void 0,Ip)},this.onLifecycle=t=>{const e=this.usersElement,i=Am[t.type];if(e&&i){const o=new CustomEvent(i,{bubbles:!1,cancelable:!1,detail:t.detail});e.dispatchEvent(o)}},this.configureTriggerInteraction=()=>{const{trigger:t,triggerAction:e,el:i,destroyTriggerInteraction:o}=this;if(o&&o(),void 0===t)return;const n=this.triggerEl=void 0!==t?document.getElementById(t):null;n?this.destroyTriggerInteraction=((t,e,i)=>{let o=[];switch(e){case"hover":let t;o=[{eventName:"mouseenter",callback:async e=>{e.stopPropagation(),t&&clearTimeout(t),t=setTimeout((()=>{kl((()=>{i.presentFromTrigger(e),t=void 0}))}),100)}},{eventName:"mouseleave",callback:e=>{t&&clearTimeout(t);const o=e.relatedTarget;o&&o.closest("ion-popover")!==i&&i.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:t=>t.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:t=>i.presentFromTrigger(t,!0)}];break;case"context-menu":o=[{eventName:"contextmenu",callback:t=>{t.preventDefault(),i.presentFromTrigger(t)}},{eventName:"click",callback:t=>t.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:t=>i.presentFromTrigger(t,!0)}];break;default:o=[{eventName:"click",callback:t=>i.presentFromTrigger(t)},{eventName:"ionPopoverActivateTrigger",callback:t=>i.presentFromTrigger(t,!0)}]}return o.forEach((({eventName:e,callback:i})=>t.addEventListener(e,i))),t.setAttribute("data-ion-popover-trigger","true"),()=>{o.forEach((({eventName:e,callback:i})=>t.removeEventListener(e,i))),t.removeAttribute("data-ion-popover-trigger")}})(n,e,i):Sd(`A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.`,this.el)},this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:t,el:e}=this;t&&t(),this.destroyKeyboardInteraction=hm(e)},this.configureDismissInteraction=()=>{const{destroyDismissInteraction:t,parentPopover:e,triggerAction:i,triggerEl:o,el:n}=this;e&&o&&(t&&t(),this.destroyDismissInteraction=((t,e,i,o)=>{let n=[];const r=yl(o).querySelector(".popover-content");return n="hover"===e?[{eventName:"mouseenter",callback:e=>{document.elementFromPoint(e.clientX,e.clientY)!==t&&i.dismiss(void 0,void 0,!1)}}]:[{eventName:"click",callback:e=>{e.target.closest("[data-ion-popover-trigger]")!==t?i.dismiss(void 0,void 0,!1):e.stopPropagation()}}],n.forEach((({eventName:t,callback:e})=>r.addEventListener(t,e))),()=>{n.forEach((({eventName:t,callback:e})=>r.removeEventListener(t,e)))}})(o,i,n,e))},this.presented=!1,this.hasController=!1,this.delegate=void 0,this.overlayIndex=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.component=void 0,this.componentProps=void 0,this.keyboardClose=!0,this.cssClass=void 0,this.backdropDismiss=!0,this.event=void 0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.triggerAction="click",this.trigger=void 0,this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.alignment=void 0,this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}connectedCallback(){const{configureTriggerInteraction:t,el:e}=this;ap(e),t()}disconnectedCallback(){const{destroyTriggerInteraction:t}=this;t&&t()}componentWillLoad(){const{el:t}=this,e=sp(t);this.parentPopover=t.closest(`ion-popover:not(#${e})`),void 0===this.alignment&&(this.alignment="ios"===rd(this)?"center":"start")}componentDidLoad(){const{parentPopover:t,isOpen:e}=this;!0===e&&kl((()=>this.present())),t&&xl(t,"ionPopoverWillDismiss",(()=>{this.dismiss(void 0,void 0,!1)})),this.configureTriggerInteraction()}async presentFromTrigger(t,e=!1){this.focusDescendantOnPresent=e,await this.present(t),this.focusDescendantOnPresent=!1}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const e=this.el.parentNode,i=this.inline=null!==e&&!this.hasController;return{inline:i,delegate:this.workingDelegate=i?this.delegate||this.coreDelegate:this.delegate}}async present(t){const e=await this.lockController.lock();if(this.presented)return void e();const{el:i}=this,{inline:o,delegate:n}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await Gh(n,i,this.component,["popover-viewport"],this.componentProps,o),this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),gl(i)?await Zp(this.usersElement):this.keepContentsMounted||await Kp(),await vp(this,"popoverEnter",km,Em,{event:t||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment}),this.focusDescendantOnPresent&&cp(this.el,this.el),e()}async dismiss(t,e,i=!0){const o=await this.lockController.lock(),{destroyKeyboardInteraction:n,destroyDismissInteraction:r}=this;i&&this.parentPopover&&this.parentPopover.dismiss(t,e,i);const a=await wp(this,t,e,"popoverLeave",Cm,zm,this.event);if(a){n&&(n(),this.destroyKeyboardInteraction=void 0),r&&(r(),this.destroyDismissInteraction=void 0);const{delegate:t}=this.getDelegate();await Xh(t,this.usersElement)}return o(),a}async getParentPopover(){return this.parentPopover}onDidDismiss(){return Cp(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return Cp(this.el,"ionPopoverWillDismiss")}render(){const t=rd(this),{onLifecycle:e,parentPopover:i,dismissOnSelect:o,side:n,arrow:r,htmlAttributes:a}=this,s=Yl("desktop"),l=r&&!i;return Ka(Ja,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},a,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({},Bd(this.cssClass)),{[t]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":s,[`popover-side-${n}`]:!0,"popover-nested":!!i}),onIonPopoverDidPresent:e,onIonPopoverWillPresent:e,onIonPopoverWillDismiss:e,onIonPopoverDidDismiss:e,onIonBackdropTap:this.onBackdropTap}),!i&&Ka("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),Ka("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:o?()=>this.dismiss():void 0},l&&Ka("div",{class:"popover-arrow",part:"arrow"}),Ka("div",{class:"popover-content",part:"content"},Ka("slot",null))))}get el(){return this}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}static get style(){return{ios:':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}@supports (inset-inline-start: 0){.popover-arrow::after{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.popover-arrow::after{left:3px}:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}[dir=rtl] .popover-arrow::after{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.popover-arrow::after:dir(rtl){left:unset;right:unset;right:3px}}}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}@supports selector(:dir(rtl)){:host(.popover-side-start:dir(rtl)) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports selector(:dir(rtl)){:host(.popover-side-end:dir(rtl)) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.popover-arrow,.popover-content{opacity:0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',md:":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}.popover-wrapper{opacity:0}"}}},[33,"ion-popover",{hasController:[4,"has-controller"],delegate:[16],overlayIndex:[2,"overlay-index"],enterAnimation:[16],leaveAnimation:[16],component:[1],componentProps:[16],keyboardClose:[4,"keyboard-close"],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],event:[8],showBackdrop:[4,"show-backdrop"],translucent:[4],animated:[4],htmlAttributes:[16],triggerAction:[1,"trigger-action"],trigger:[1],size:[1],dismissOnSelect:[4,"dismiss-on-select"],reference:[1],side:[1],alignment:[1025],arrow:[4],isOpen:[4,"is-open"],keyboardEvents:[4,"keyboard-events"],keepContentsMounted:[4,"keep-contents-mounted"],presented:[32],presentFromTrigger:[64],present:[64],dismiss:[64],getParentPopover:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}]),Am={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};function Im(){"undefined"!=typeof customElements&&["ion-popover","ion-backdrop"].forEach((t=>{switch(t){case"ion-popover":customElements.get(t)||customElements.define(t,Sm);break;case"ion-backdrop":customElements.get(t)||_d()}}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Pm=(t,e,i,o)=>null===t.day||void 0!==o&&!o.includes(t.day)||!(!e||!Dc(t,e))||!(!i||!_c(t,i)),$m=(t,e,i,o,n,r,a)=>{const s=void 0!==(Array.isArray(i)?i:[i]).find((t=>Lc(e,t))),l=Lc(e,o);return{disabled:Pm(e,n,r,a),isActive:s,isToday:l,ariaSelected:s?"true":null,ariaLabel:rh(t,l,e),text:null!=e.day?ah(t,e):null}},Om=(t,{minParts:e,maxParts:i})=>!!((t,e,i)=>!!(e&&e.year>t)||!!(i&&i.year{const{multiple:t,value:e}=this;!t&&Array.isArray(e)&&Sd(`ion-datetime was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: [${e.map((t=>`'${t}'`)).join(", ")}]\n`,this.el)},this.setValue=t=>{this.value=t,this.ionChange.emit({value:t})},this.getActivePartsWithFallback=()=>{var t;const{defaultParts:e}=this;return null!==(t=this.getActivePart())&&void 0!==t?t:e},this.getActivePart=()=>{const{activeParts:t}=this;return Array.isArray(t)?t[0]:t},this.closeParentOverlay=()=>{const t=this.el.closest("ion-modal, ion-popover");t&&t.dismiss()},this.setWorkingParts=t=>{this.workingParts=Object.assign({},t)},this.setActiveParts=(t,e=!1)=>{if(this.readonly)return;const{multiple:i,minParts:o,maxParts:n,activeParts:r}=this,a=((t,e,i)=>{const{month:o,day:n,year:r}=t,a=Wc(Object.assign({},t),e,i),s=Bc(o,r);return null!==n&&si.hour?(a.hour=i.hour,a.minute=i.minute):a.hour===i.hour&&void 0!==a.minute&&void 0!==i.minute&&a.minute>i.minute&&(a.minute=i.minute)),a})(t,o,n);if(this.setWorkingParts(a),i){const t=Array.isArray(r)?r:[r];this.activeParts=e?t.filter((t=>!Lc(t,a))):[...t,a]}else this.activeParts=Object.assign({},a);null!==this.el.querySelector('[slot="buttons"]')||this.showDefaultButtons||this.confirm()},this.initializeKeyboardListeners=()=>{const t=this.calendarBodyRef;if(!t)return;const e=this.el.shadowRoot,i=t.querySelector(".calendar-month:nth-of-type(2)"),o=new MutationObserver((e=>{var o;!(null===(o=e[0].oldValue)||void 0===o?void 0:o.includes("ion-focused"))&&t.classList.contains("ion-focused")&&this.focusWorkingDay(i)}));o.observe(t,{attributeFilter:["class"],attributeOldValue:!0}),this.destroyKeyboardMO=()=>{null==o||o.disconnect()},t.addEventListener("keydown",(t=>{const o=e.activeElement;if(!o||!o.classList.contains("calendar-day"))return;const n=(r=o,{month:parseInt(r.getAttribute("data-month"),10),day:parseInt(r.getAttribute("data-day"),10),year:parseInt(r.getAttribute("data-year"),10),dayOfWeek:parseInt(r.getAttribute("data-day-of-week"),10)});var r;let a;switch(t.key){case"ArrowDown":t.preventDefault(),a=Kc(n,7);break;case"ArrowUp":t.preventDefault(),a=(t=>Uc(t,7))(n);break;case"ArrowRight":t.preventDefault(),a=(t=>Kc(t,1))(n);break;case"ArrowLeft":t.preventDefault(),a=(t=>Uc(t,1))(n);break;case"Home":t.preventDefault(),a=(t=>{const{dayOfWeek:e}=t;if(null==e)throw new Error("No day of week provided");return Uc(t,e)})(n);break;case"End":t.preventDefault(),a=(t=>{const{dayOfWeek:e}=t;if(null==e)throw new Error("No day of week provided");return Kc(t,6-e)})(n);break;case"PageUp":t.preventDefault(),a=t.shiftKey?(t=>Qc(t,-1))(n):Zc(n);break;case"PageDown":t.preventDefault(),a=t.shiftKey?(t=>Qc(t,1))(n):Jc(n);break;default:return}Pm(a,this.minParts,this.maxParts)||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),a)),requestAnimationFrame((()=>this.focusWorkingDay(i))))}))},this.focusWorkingDay=t=>{const e=t.querySelectorAll(".calendar-day-padding"),{day:i}=this.workingParts;if(null===i)return;const o=t.querySelector(`.calendar-day-wrapper:nth-of-type(${e.length+i}) .calendar-day`);o&&o.focus()},this.processMinParts=()=>{const{min:t,defaultParts:e}=this;this.minParts=void 0!==t?((t,e)=>{const i=Nc(t);if(void 0===i)return;const{month:o,day:n,year:r,hour:a,minute:s}=i;return{month:null!=o?o:1,day:null!=n?n:1,year:null!=r?r:e.year,hour:null!=a?a:0,minute:null!=s?s:0}})(t,e):void 0},this.processMaxParts=()=>{const{max:t,defaultParts:e}=this;this.maxParts=void 0!==t?((t,e)=>{const i=Nc(t);if(void 0===i)return;const{month:o,day:n,year:r,hour:a,minute:s}=i,l=null!=r?r:e.year,d=null!=o?o:12;return{month:d,day:null!=n?n:Bc(d,l),year:l,hour:null!=a?a:23,minute:null!=s?s:59}})(t,e):void 0},this.initializeCalendarListener=()=>{const t=this.calendarBodyRef;if(!t)return;const e=t.querySelectorAll(".calendar-month"),i=e[0],o=e[1],n=e[2],r="ios"===rd(this)&&"undefined"!=typeof navigator&&navigator.maxTouchPoints>1;hl((()=>{t.scrollLeft=i.clientWidth*(Ec(this.el)?-1:1);const e=e=>{const o=t.getBoundingClientRect(),r=t.scrollLeft<=2?i:n,a=r.getBoundingClientRect();if(Math.abs(a.x-o.x)>2)return;const{forceRenderDate:s}=this;return void 0!==s?{month:s.month,year:s.year,day:s.day}:r===i?Zc(e):r===n?Jc(e):void 0},a=()=>{r&&(t.style.removeProperty("pointer-events"),l=!1);const i=e(this.workingParts);if(!i)return;const{month:n,day:a,year:s}=i;Om({month:n,year:s,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})})||(t.style.setProperty("overflow","hidden"),hl((()=>{this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:n,day:a,year:s})),t.scrollLeft=o.clientWidth*(Ec(this.el)?-1:1),t.style.removeProperty("overflow"),this.resolveForceDateScrolling&&this.resolveForceDateScrolling()})))};let s,l=!1;const d=()=>{s&&clearTimeout(s),!l&&r&&(t.style.setProperty("pointer-events","none"),l=!0),s=setTimeout(a,50)};t.addEventListener("scroll",d),this.destroyCalendarListener=()=>{t.removeEventListener("scroll",d)}}))},this.destroyInteractionListeners=()=>{const{destroyCalendarListener:t,destroyKeyboardMO:e}=this;void 0!==t&&t(),void 0!==e&&e()},this.processValue=t=>{const e=null!=t&&(!Array.isArray(t)||t.length>0),i=e?Nc(t):this.defaultParts,{minParts:o,maxParts:n,workingParts:r,el:a}=this;if(this.warnIfIncorrectValueUsage(),!i)return;e&&((t,e,i)=>{const o=Array.isArray(t)?t:[t];for(const n of o)if(void 0!==e&&Dc(n,e)||void 0!==i&&_c(n,i)){Sd(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(e)}\nMax: ${JSON.stringify(i)}\nValue: ${JSON.stringify(t)}`);break}})(i,o,n);const s=Array.isArray(i)?i[0]:i,l=Wc(s,o,n),{month:d,day:c,year:h,hour:p,minute:m}=l,u=qc(p);e?Array.isArray(i)?this.activeParts=[...i]:this.activeParts={month:d,day:c,year:h,hour:p,minute:m,ampm:u}:this.activeParts=[];const g=void 0!==d&&d!==r.month||void 0!==h&&h!==r.year,b=a.classList.contains("datetime-ready"),{isGridStyle:f,showMonthAndYear:v}=this;f&&g&&b&&!v?this.animateToDate(l):this.setWorkingParts({month:d,day:c,year:h,hour:p,minute:m,ampm:u})},this.animateToDate=async t=>{const{workingParts:e}=this;this.forceRenderDate=t;const i=new Promise((t=>{this.resolveForceDateScrolling=t}));Dc(t,e)?this.prevMonth():this.nextMonth(),await i,this.resolveForceDateScrolling=void 0,this.forceRenderDate=void 0},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.hasValue=()=>null!=this.value,this.nextMonth=()=>{const t=this.calendarBodyRef;if(!t)return;const e=t.querySelector(".calendar-month:last-of-type");if(!e)return;const i=2*e.offsetWidth;t.scrollTo({top:0,left:i*(Ec(this.el)?-1:1),behavior:"smooth"})},this.prevMonth=()=>{const t=this.calendarBodyRef;t&&t.querySelector(".calendar-month:first-of-type")&&t.scrollTo({top:0,left:0,behavior:"smooth"})},this.toggleMonthAndYearView=()=>{this.showMonthAndYear=!this.showMonthAndYear},this.showMonthAndYear=!1,this.activeParts=[],this.workingParts={month:5,day:28,year:2021,hour:13,minute:52,ampm:"pm"},this.isTimePopoverOpen=!1,this.forceRenderDate=void 0,this.color="primary",this.name=this.inputId,this.disabled=!1,this.readonly=!1,this.isDateEnabled=void 0,this.min=void 0,this.max=void 0,this.presentation="date-time",this.cancelText="Cancel",this.doneText="Done",this.clearText="Clear",this.yearValues=void 0,this.monthValues=void 0,this.dayValues=void 0,this.hourValues=void 0,this.minuteValues=void 0,this.locale="default",this.firstDayOfWeek=0,this.titleSelectedDatesFormatter=void 0,this.multiple=!1,this.highlightedDates=void 0,this.value=void 0,this.showDefaultTitle=!1,this.showDefaultButtons=!1,this.showClearButton=!1,this.showDefaultTimeLabel=!0,this.hourCycle=void 0,this.size="fixed",this.preferWheel=!1}disabledChanged(){this.emitStyle()}minChanged(){this.processMinParts()}maxChanged(){this.processMaxParts()}get isGridStyle(){const{presentation:t,preferWheel:e}=this;return("date"===t||"date-time"===t||"time-date"===t)&&!e}yearValuesChanged(){this.parsedYearValues=Hc(this.yearValues)}monthValuesChanged(){this.parsedMonthValues=Hc(this.monthValues)}dayValuesChanged(){this.parsedDayValues=Hc(this.dayValues)}hourValuesChanged(){this.parsedHourValues=Hc(this.hourValues)}minuteValuesChanged(){this.parsedMinuteValues=Hc(this.minuteValues)}async valueChanged(){const{value:t}=this;this.hasValue()&&this.processValue(t),this.emitStyle(),this.ionValueChange.emit({value:t})}async confirm(t=!1){const{isCalendarPicker:e,activeParts:i,preferWheel:o,workingParts:n}=this;void 0===i&&e||(Array.isArray(i)&&0===i.length?o?this.setValue(Gc(n)):this.setValue(void 0):this.setValue(Gc(i))),t&&this.closeParentOverlay()}async reset(t){this.processValue(t)}async cancel(t=!1){this.ionCancel.emit(),t&&this.closeParentOverlay()}get isCalendarPicker(){const{presentation:t}=this;return"date"===t||"date-time"===t||"time-date"===t}connectedCallback(){this.clearFocusVisible=Oc(this.el).destroy}disconnectedCallback(){this.clearFocusVisible&&(this.clearFocusVisible(),this.clearFocusVisible=void 0)}initializeListeners(){this.initializeCalendarListener(),this.initializeKeyboardListeners()}componentDidLoad(){const t=new IntersectionObserver((t=>{t[0].isIntersecting&&(this.initializeListeners(),hl((()=>{this.el.classList.add("datetime-ready")})))}),{threshold:.01});kl((()=>null==t?void 0:t.observe(this.el)));const e=new IntersectionObserver((t=>{t[0].isIntersecting||(this.destroyInteractionListeners(),this.showMonthAndYear=!1,hl((()=>{this.el.classList.remove("datetime-ready")})))}),{threshold:0});kl((()=>null==e?void 0:e.observe(this.el)));const i=yl(this.el);i.addEventListener("ionFocus",(t=>t.stopPropagation())),i.addEventListener("ionBlur",(t=>t.stopPropagation()))}componentDidRender(){const{presentation:t,prevPresentation:e,calendarBodyRef:i,minParts:o,preferWheel:n,forceRenderDate:r}=this,a=!n&&["date-time","time-date","date"].includes(t);if(void 0!==o&&a&&i){const t=i.querySelector(".calendar-month:nth-of-type(1)");t&&void 0===r&&(i.scrollLeft=t.clientWidth*(Ec(this.el)?-1:1))}null!==e?t!==e&&(this.prevPresentation=t,this.destroyInteractionListeners(),this.initializeListeners(),this.showMonthAndYear=!1,kl((()=>{this.ionRender.emit()}))):this.prevPresentation=t}componentWillLoad(){const{el:t,highlightedDates:e,multiple:i,presentation:o,preferWheel:n}=this;i&&("date"!==o&&Sd('Multiple date selection is only supported for presentation="date".',t),n&&Sd('Multiple date selection is not supported with preferWheel="true".',t)),void 0!==e&&("date"!==o&&"date-time"!==o&&"time-date"!==o&&Sd("The highlightedDates property is only supported with the date, date-time, and time-date presentations.",t),n&&Sd('The highlightedDates property is not supported with preferWheel="true".',t));const r=this.parsedHourValues=Hc(this.hourValues),a=this.parsedMinuteValues=Hc(this.minuteValues),s=this.parsedMonthValues=Hc(this.monthValues),l=this.parsedYearValues=Hc(this.yearValues),d=this.parsedDayValues=Hc(this.dayValues),c=this.todayParts=Nc(mh(new Date).toISOString());this.processMinParts(),this.processMaxParts(),this.defaultParts=(({refParts:t,monthValues:e,dayValues:i,yearValues:o,hourValues:n,minuteValues:r,minParts:a,maxParts:s})=>{const{hour:l,minute:d,day:c,month:h,year:p}=t,m=Object.assign(Object.assign({},t),{dayOfWeek:void 0});if(void 0!==o){const t=o.filter((t=>!(void 0!==a&&ts.year)));m.year=eh(p,t)}if(void 0!==e){const t=e.filter((t=>!(void 0!==a&&m.year===a.year&&ts.month)));m.month=eh(h,t)}if(null!==c&&void 0!==i){const t=i.filter((t=>!(void 0!==a&&Dc(Object.assign(Object.assign({},m),{day:t}),a)||void 0!==s&&_c(Object.assign(Object.assign({},m),{day:t}),s))));m.day=eh(c,t)}if(void 0!==l&&void 0!==n){const t=n.filter((t=>!(void 0!==(null==a?void 0:a.hour)&&Lc(m,a)&&ts.hour)));m.hour=eh(l,t),m.ampm=qc(m.hour)}if(void 0!==d&&void 0!==r){const t=r.filter((t=>!(void 0!==(null==a?void 0:a.minute)&&Lc(m,a)&&m.hour===a.hour&&ts.minute)));m.minute=eh(d,t)}return m})({refParts:c,monthValues:s,dayValues:d,yearValues:l,hourValues:r,minuteValues:a,minParts:this.minParts,maxParts:this.maxParts}),this.processValue(this.value),this.emitStyle()}emitStyle(){this.ionStyle.emit({interactive:!0,datetime:!0,"interactive-disabled":this.disabled})}renderFooter(){const{disabled:t,readonly:e,showDefaultButtons:i,showClearButton:o}=this,n=t||e;if(null===this.el.querySelector('[slot="buttons"]')&&!i&&!o)return;const r=()=>{this.reset(),this.setValue(void 0)};return Ka("div",{class:"datetime-footer"},Ka("div",{class:"datetime-buttons"},Ka("div",{class:{"datetime-action-buttons":!0,"has-clear-button":this.showClearButton}},Ka("slot",{name:"buttons"},Ka("ion-buttons",null,i&&Ka("ion-button",{id:"cancel-button",color:this.color,onClick:()=>this.cancel(!0),disabled:n},this.cancelText),Ka("div",{class:"datetime-action-buttons-container"},o&&Ka("ion-button",{id:"clear-button",color:this.color,onClick:()=>r(),disabled:n},this.clearText),i&&Ka("ion-button",{id:"confirm-button",color:this.color,onClick:()=>this.confirm(!0),disabled:n},this.doneText)))))))}renderWheelPicker(t=this.presentation){const e="time-date"===t?[this.renderTimePickerColumns(t),this.renderDatePickerColumns(t)]:[this.renderDatePickerColumns(t),this.renderTimePickerColumns(t)];return Ka("ion-picker-internal",null,e)}renderDatePickerColumns(t){return"date-time"===t||"time-date"===t?this.renderCombinedDatePickerColumn():this.renderIndividualDatePickerColumns(t)}renderCombinedDatePickerColumn(){const{defaultParts:t,disabled:e,workingParts:i,locale:o,minParts:n,maxParts:r,todayParts:a,isDateEnabled:s}=this,l=this.getActivePartsWithFallback(),d=Ch(i),c=d[d.length-1];d[0].day=1,c.day=Bc(c.month,c.year);const h=((t,e,i,o,n,r)=>{let a=[],s=[],l=zh(i,o);return r&&(l=l.filter((({month:t})=>r.includes(t)))),l.forEach((r=>{const l={month:r.month,day:null,year:r.year},d=Eh(t,l,i,o,n,{month:"short",day:"numeric",weekday:"short"}),c=[],h=[];d.forEach((i=>{const o=Lc(Object.assign(Object.assign({},l),{day:i.value}),e);h.push({text:o?ph(t):i.text,value:`${l.year}-${l.month}-${i.value}`}),c.push({month:l.month,year:l.year,day:i.value})})),s=[...s,...c],a=[...a,...h]})),{parts:s,items:a}})(o,a,void 0!==n&&_c(n,d[0])?n:d[0],void 0!==r&&Dc(r,c)?r:c,this.parsedDayValues,this.parsedMonthValues);let p=h.items;const m=h.parts;s&&(p=p.map(((t,e)=>{const i=m[e];let o;try{o=!s(Gc(i))}catch(n){Ad("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",n)}return Object.assign(Object.assign({},t),{disabled:o})})));const u=null!==i.day?`${i.year}-${i.month}-${i.day}`:`${t.year}-${t.month}-${t.day}`;return Ka("ion-picker-column-internal",{class:"date-column",color:this.color,disabled:e,items:p,value:u,onIonChange:t=>{this.destroyCalendarListener&&this.destroyCalendarListener();const{value:e}=t.detail,o=m.find((({month:t,day:i,year:o})=>e===`${o}-${t}-${i}`));this.setWorkingParts(Object.assign(Object.assign({},i),o)),this.setActiveParts(Object.assign(Object.assign({},l),o)),this.initializeCalendarListener(),t.stopPropagation()}})}renderIndividualDatePickerColumns(t){const{workingParts:e,isDateEnabled:i}=this,o="year"!==t&&"time"!==t?((t,e,i,o,n,r={month:"long"})=>{const{year:a}=e,s=[];if(void 0!==n){let e=n;void 0!==(null==o?void 0:o.month)&&(e=e.filter((t=>t<=o.month))),void 0!==(null==i?void 0:i.month)&&(e=e.filter((t=>t>=i.month))),e.forEach((e=>{const i=new Date(`${e}/1/${a} GMT+0000`),o=new Intl.DateTimeFormat(t,Object.assign(Object.assign({},r),{timeZone:"UTC"})).format(i);s.push({text:o,value:e})}))}else{const e=o&&o.year===a?o.month:12;for(let o=i&&i.year===a?i.month:1;o<=e;o++){const e=new Date(`${o}/1/${a} GMT+0000`),i=new Intl.DateTimeFormat(t,Object.assign(Object.assign({},r),{timeZone:"UTC"})).format(e);s.push({text:i,value:o})}}return s})(this.locale,e,this.minParts,this.maxParts,this.parsedMonthValues):[];let n="date"===t?Eh(this.locale,e,this.minParts,this.maxParts,this.parsedDayValues):[];i&&(n=n.map((t=>{const{value:o}=t,n="string"==typeof o?parseInt(o):o,r={month:e.month,day:n,year:e.year};let a;try{a=!i(Gc(r))}catch(s){Ad("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",s)}return Object.assign(Object.assign({},t),{disabled:a})})));const r="month"!==t&&"time"!==t?((t,e,i,o,n)=>{var r,a;let s=[];if(void 0!==n)s=n,void 0!==(null==o?void 0:o.year)&&(s=s.filter((t=>t<=o.year))),void 0!==(null==i?void 0:i.year)&&(s=s.filter((t=>t>=i.year)));else{const{year:t}=e,n=null!==(r=null==o?void 0:o.year)&&void 0!==r?r:t;for(let e=null!==(a=null==i?void 0:i.year)&&void 0!==a?a:t-100;e<=n;e++)s.push(e)}return s.map((i=>({text:sh(t,{year:i,month:e.month,day:e.day}),value:i})))})(this.locale,this.defaultParts,this.minParts,this.maxParts,this.parsedYearValues):[];let a=[];return a=Vc(this.locale,{month:"numeric",day:"numeric"})?[this.renderMonthPickerColumn(o),this.renderDayPickerColumn(n),this.renderYearPickerColumn(r)]:[this.renderDayPickerColumn(n),this.renderMonthPickerColumn(o),this.renderYearPickerColumn(r)],a}renderDayPickerColumn(t){var e;if(0===t.length)return[];const{disabled:i,workingParts:o}=this,n=this.getActivePartsWithFallback();return Ka("ion-picker-column-internal",{class:"day-column",color:this.color,disabled:i,items:t,value:null!==(e=null!==o.day?o.day:this.defaultParts.day)&&void 0!==e?e:void 0,onIonChange:t=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},o),{day:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},n),{day:t.detail.value})),this.initializeCalendarListener(),t.stopPropagation()}})}renderMonthPickerColumn(t){if(0===t.length)return[];const{disabled:e,workingParts:i}=this,o=this.getActivePartsWithFallback();return Ka("ion-picker-column-internal",{class:"month-column",color:this.color,disabled:e,items:t,value:i.month,onIonChange:t=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},i),{month:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},o),{month:t.detail.value})),this.initializeCalendarListener(),t.stopPropagation()}})}renderYearPickerColumn(t){if(0===t.length)return[];const{disabled:e,workingParts:i}=this,o=this.getActivePartsWithFallback();return Ka("ion-picker-column-internal",{class:"year-column",color:this.color,disabled:e,items:t,value:i.year,onIonChange:t=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},i),{year:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},o),{year:t.detail.value})),this.initializeCalendarListener(),t.stopPropagation()}})}renderTimePickerColumns(t){if(["date","month","month-year","year"].includes(t))return[];const e=void 0!==this.getActivePart(),{hoursData:i,minutesData:o,dayPeriodData:n}=((t,e,i,o,n,r,a)=>{const s=jc(t,i),l=Mc(s),{hours:d,minutes:c,am:h,pm:p}=kh(t,e,s,o,n,r,a),m=d.map((t=>({text:nh(t,s),value:th(t,l,e.ampm)}))),u=c.map((t=>({text:oh(t),value:t}))),g=[];return h&&!l&&g.push({text:bh(t,"am"),value:"am"}),p&&!l&&g.push({text:bh(t,"pm"),value:"pm"}),{minutesData:u,hoursData:m,dayPeriodData:g}})(this.locale,this.workingParts,this.hourCycle,e?this.minParts:void 0,e?this.maxParts:void 0,this.parsedHourValues,this.parsedMinuteValues);return[this.renderHourPickerColumn(i),this.renderMinutePickerColumn(o),this.renderDayPeriodPickerColumn(n)]}renderHourPickerColumn(t){const{disabled:e,workingParts:i}=this;if(0===t.length)return[];const o=this.getActivePartsWithFallback();return Ka("ion-picker-column-internal",{color:this.color,disabled:e,value:o.hour,items:t,numericInput:!0,onIonChange:t=>{this.setWorkingParts(Object.assign(Object.assign({},i),{hour:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},o),{hour:t.detail.value})),t.stopPropagation()}})}renderMinutePickerColumn(t){const{disabled:e,workingParts:i}=this;if(0===t.length)return[];const o=this.getActivePartsWithFallback();return Ka("ion-picker-column-internal",{color:this.color,disabled:e,value:o.minute,items:t,numericInput:!0,onIonChange:t=>{this.setWorkingParts(Object.assign(Object.assign({},i),{minute:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},o),{minute:t.detail.value})),t.stopPropagation()}})}renderDayPeriodPickerColumn(t){const{disabled:e,workingParts:i}=this;if(0===t.length)return[];const o=this.getActivePartsWithFallback(),n=(r=this.locale,"dayPeriod"===new Intl.DateTimeFormat(r,{hour:"numeric"}).formatToParts(new Date)[0].type);var r;return Ka("ion-picker-column-internal",{style:n?{order:"-1"}:{},color:this.color,disabled:e,value:o.ampm,items:t,onIonChange:t=>{const e=((t,e)=>{const{ampm:i,hour:o}=t;let n=o;return"am"===i&&"pm"===e?n=Xc(n,"pm"):"pm"===i&&"am"===e&&(n=Math.abs(n-12)),n})(i,t.detail.value);this.setWorkingParts(Object.assign(Object.assign({},i),{ampm:t.detail.value,hour:e})),this.setActiveParts(Object.assign(Object.assign({},o),{ampm:t.detail.value,hour:e})),t.stopPropagation()}})}renderWheelView(t){const{locale:e}=this,i=Vc(e);return Ka("div",{class:{["wheel-order-"+(i?"month-first":"year-first")]:!0}},this.renderWheelPicker(t))}renderCalendarHeader(t){const{disabled:e}=this,i="ios"===t?Ml:"data:image/svg+xml;utf8,",o="ios"===t?Bl:_l,n=e||((t,e,i)=>{const o=Object.assign(Object.assign({},Zc(t)),{day:null});return Om(o,{minParts:e,maxParts:i})})(this.workingParts,this.minParts,this.maxParts),r=e||((t,e)=>{const i=Object.assign(Object.assign({},Jc(t)),{day:null});return Om(i,{maxParts:e})})(this.workingParts,this.maxParts),a=this.el.getAttribute("dir")||void 0;return Ka("div",{class:"calendar-header"},Ka("div",{class:"calendar-action-buttons"},Ka("div",{class:"calendar-month-year"},Ka("ion-item",{part:"month-year-button",ref:t=>this.monthYearToggleItemRef=t,button:!0,"aria-label":"Show year picker",detail:!1,lines:"none",disabled:e,onClick:()=>{var t;this.toggleMonthAndYearView();const{monthYearToggleItemRef:e}=this;if(e){const i=null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector(".item-native");if(i){const t=this.showMonthAndYear?"Hide year picker":"Show year picker";i.setAttribute("aria-label",t)}}}},Ka("ion-label",null,((t,e)=>{const i=lh(e);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric",timeZone:"UTC"}).format(i)})(this.locale,this.workingParts),Ka("ion-icon",{"aria-hidden":"true",icon:this.showMonthAndYear?i:o,lazy:!1,flipRtl:!0})))),Ka("div",{class:"calendar-next-prev"},Ka("ion-buttons",null,Ka("ion-button",{"aria-label":"Previous month",disabled:n,onClick:()=>this.prevMonth()},Ka("ion-icon",{dir:a,"aria-hidden":"true",slot:"icon-only",icon:jl,lazy:!1,flipRtl:!0})),Ka("ion-button",{"aria-label":"Next month",disabled:r,onClick:()=>this.nextMonth()},Ka("ion-icon",{dir:a,"aria-hidden":"true",slot:"icon-only",icon:Bl,lazy:!1,flipRtl:!0}))))),Ka("div",{class:"calendar-days-of-week","aria-hidden":"true"},((t,e,i=0)=>{const o="ios"===e?"short":"narrow",n=new Intl.DateTimeFormat(t,{weekday:o}),r=new Date("11/01/2020"),a=[];for(let s=i;sKa("div",{class:"day-of-week"},t)))))}renderMonth(t,e){const{disabled:i,readonly:o}=this,n=void 0===this.parsedYearValues||this.parsedYearValues.includes(e),r=void 0===this.parsedMonthValues||this.parsedMonthValues.includes(t),a=!n||!r,s=i||o,l=i||Om({month:t,year:e,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})}),d=this.workingParts.month===t&&this.workingParts.year===e,c=this.getActivePartsWithFallback();return Ka("div",{"aria-hidden":d?null:"true",class:{"calendar-month":!0,"calendar-month-disabled":!d&&l}},Ka("div",{class:"calendar-month-grid"},((t,e,i)=>{const o=Bc(t,e),n=new Date(`${t}/1/${e}`).getDay(),r=n>=i?n-(i+1):6-(i-n);let a=[];for(let s=1;s<=o;s++)a.push({day:s,dayOfWeek:(r+s)%7});for(let s=0;s<=r;s++)a=[{day:null,dayOfWeek:null},...a];return a})(t,e,this.firstDayOfWeek%7).map(((i,o)=>{const{day:n,dayOfWeek:r}=i,{el:l,highlightedDates:d,isDateEnabled:h,multiple:p}=this,m={month:t,day:n,year:e},u=null===n,{isActive:g,isToday:b,ariaLabel:f,ariaSelected:v,disabled:x,text:w}=$m(this.locale,m,this.activeParts,this.todayParts,this.minParts,this.maxParts,this.parsedDayValues),y=Gc(m);let k=a||x;if(!k&&void 0!==h)try{k=!h(y)}catch(A){Ad("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",l,A)}const C=k&&s,E=k||s;let z,S;return void 0===d||g||null===n||(z=((t,e,i)=>{if(Array.isArray(t)){const i=e.split("T")[0],o=t.find((t=>t.date===i));if(o)return{textColor:o.textColor,backgroundColor:o.backgroundColor}}else try{return t(e)}catch(A){Ad("Exception thrown from provided `highlightedDates` callback. Please check your function and try again.",i,A)}})(d,y,l)),u||(S=`calendar-day${g?" active":""}${b?" today":""}${k?" disabled":""}`),Ka("div",{class:"calendar-day-wrapper"},Ka("button",{ref:t=>{t&&(t.style.setProperty("color",`${z?z.textColor:""}`,"important"),t.style.setProperty("background-color",`${z?z.backgroundColor:""}`,"important"))},tabindex:"-1","data-day":n,"data-month":t,"data-year":e,"data-index":o,"data-day-of-week":r,disabled:E,class:{"calendar-day-padding":u,"calendar-day":!0,"calendar-day-active":g,"calendar-day-constrained":C,"calendar-day-today":b},part:S,"aria-hidden":u?"true":null,"aria-selected":v,"aria-label":f,onClick:()=>{u||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:t,day:n,year:e})),p?this.setActiveParts({month:t,day:n,year:e},g):this.setActiveParts(Object.assign(Object.assign({},c),{month:t,day:n,year:e})))}},w))}))))}renderCalendarBody(){return Ka("div",{class:"calendar-body ion-focusable",ref:t=>this.calendarBodyRef=t,tabindex:"0"},Ch(this.workingParts,this.forceRenderDate).map((({month:t,year:e})=>this.renderMonth(t,e))))}renderCalendar(t){return Ka("div",{class:"datetime-calendar",key:"datetime-calendar"},this.renderCalendarHeader(t),this.renderCalendarBody())}renderTimeLabel(){if(null!==this.el.querySelector('[slot="time-label"]')||this.showDefaultTimeLabel)return Ka("slot",{name:"time-label"},"Time")}renderTimeOverlay(){const{disabled:t,hourCycle:e,isTimePopoverOpen:i,locale:o}=this,n=jc(o,e),r=this.getActivePartsWithFallback();return[Ka("div",{class:"time-header"},this.renderTimeLabel()),Ka("button",{class:{"time-body":!0,"time-body-active":i},part:"time-button"+(i?" active":""),"aria-expanded":"false","aria-haspopup":"true",disabled:t,onClick:async t=>{const{popoverRef:e}=this;e&&(this.isTimePopoverOpen=!0,e.present(new CustomEvent("ionShadowTarget",{detail:{ionShadowTarget:t.target}})),await e.onWillDismiss(),this.isTimePopoverOpen=!1)}},ih(o,r,n)),Ka("ion-popover",{alignment:"center",translucent:!0,overlayIndex:1,arrow:!1,onWillPresent:t=>{t.target.querySelectorAll("ion-picker-column-internal").forEach((t=>t.scrollActiveItemIntoView()))},style:{"--offset-y":"-10px","--min-width":"fit-content"},keyboardEvents:!0,ref:t=>this.popoverRef=t},this.renderWheelPicker("time"))]}getHeaderSelectedDateText(){const{activeParts:t,multiple:e,titleSelectedDatesFormatter:i}=this,o=Array.isArray(t);let n;if(e&&o&&1!==t.length){if(n=`${t.length} days`,void 0!==i)try{n=i(Gc(t))}catch(r){Ad("Exception in provided `titleSelectedDatesFormatter`: ",r)}}else n=((t,e)=>{const i=lh(e);return new Intl.DateTimeFormat(t,{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}).format(i)})(this.locale,this.getActivePartsWithFallback());return n}renderHeader(t=!0){if(null!==this.el.querySelector('[slot="title"]')||this.showDefaultTitle)return Ka("div",{class:"datetime-header"},Ka("div",{class:"datetime-title"},Ka("slot",{name:"title"},"Select Date")),t&&Ka("div",{class:"datetime-selected-date"},this.getHeaderSelectedDateText()))}renderTime(){const{presentation:t}=this;return Ka("div",{class:"datetime-time"},"time"===t?this.renderWheelPicker():this.renderTimeOverlay())}renderCalendarViewMonthYearPicker(){return Ka("div",{class:"datetime-year"},this.renderWheelView("month-year"))}renderDatetime(t){const{presentation:e,preferWheel:i}=this;if(i&&("date"===e||"date-time"===e||"time-date"===e))return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];switch(e){case"date-time":return[this.renderHeader(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderTime(),this.renderFooter()];case"time-date":return[this.renderHeader(),this.renderTime(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderFooter()];case"time":return[this.renderHeader(!1),this.renderTime(),this.renderFooter()];case"month":case"month-year":case"year":return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];default:return[this.renderHeader(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderFooter()]}}render(){const{name:t,value:e,disabled:i,el:o,color:n,readonly:r,showMonthAndYear:a,preferWheel:s,presentation:l,size:d,isGridStyle:c}=this,h=rd(this),p="year"===l||"month"===l||"month-year"===l,m=a||p,u=a&&!p,g=("date"===l||"date-time"===l||"time-date"===l)&&s;return Al(!0,o,t,(t=>Array.isArray(t)?t.join(","):t)(e),i),Ka(Ja,{"aria-disabled":i?"true":null,onFocus:this.onFocus,onBlur:this.onBlur,class:Object.assign({},Md(n,{[h]:!0,"datetime-readonly":r,"datetime-disabled":i,"show-month-and-year":m,"month-year-picker-open":u,[`datetime-presentation-${l}`]:!0,[`datetime-size-${d}`]:!0,"datetime-prefer-wheel":g,"datetime-grid":c}))},this.renderDatetime(h))}get el(){return this}static get watchers(){return{disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],value:["valueChanged"]}}static get style(){return{ios:":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc);font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}:host .calendar-action-buttons ion-item{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:min(1rem, 25.6px);font-weight:600}:host .calendar-action-buttons ion-item ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-step-100, #ffffff);--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .datetime-calendar .calendar-action-buttons ion-item{--padding-start:20px}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, #595959)}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, gray);font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, #595959)}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}"}}},[33,"ion-datetime",{color:[1],name:[1],disabled:[4],readonly:[4],isDateEnabled:[16],min:[1025],max:[1025],presentation:[1],cancelText:[1,"cancel-text"],doneText:[1,"done-text"],clearText:[1,"clear-text"],yearValues:[8,"year-values"],monthValues:[8,"month-values"],dayValues:[8,"day-values"],hourValues:[8,"hour-values"],minuteValues:[8,"minute-values"],locale:[1],firstDayOfWeek:[2,"first-day-of-week"],titleSelectedDatesFormatter:[16],multiple:[4],highlightedDates:[16],value:[1025],showDefaultTitle:[4,"show-default-title"],showDefaultButtons:[4,"show-default-buttons"],showClearButton:[4,"show-clear-button"],showDefaultTimeLabel:[4,"show-default-time-label"],hourCycle:[1,"hour-cycle"],size:[1],preferWheel:[4,"prefer-wheel"],showMonthAndYear:[32],activeParts:[32],workingParts:[32],isTimePopoverOpen:[32],forceRenderDate:[32],confirm:[64],reset:[64],cancel:[64]},void 0,{disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],value:["valueChanged"]}]);let Lm=0;const Dm=function(){"undefined"!=typeof customElements&&["ion-datetime","ion-backdrop","ion-button","ion-buttons","ion-icon","ion-item","ion-label","ion-note","ion-picker-column-internal","ion-picker-internal","ion-popover","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-datetime":customElements.get(t)||customElements.define(t,Tm);break;case"ion-backdrop":customElements.get(t)||_d();break;case"ion-button":customElements.get(t)||Ud();break;case"ion-buttons":customElements.get(t)||Jd();break;case"ion-icon":customElements.get(t)||kd();break;case"ion-item":customElements.get(t)||Ph();break;case"ion-label":customElements.get(t)||Oh();break;case"ion-note":customElements.get(t)||Ah();break;case"ion-picker-column-internal":customElements.get(t)||"undefined"!=typeof customElements&&["ion-picker-column-internal"].forEach((t=>{"ion-picker-column-internal"===t&&(customElements.get(t)||customElements.define(t,Hh))}));break;case"ion-picker-internal":customElements.get(t)||"undefined"!=typeof customElements&&["ion-picker-internal"].forEach((t=>{"ion-picker-internal"===t&&(customElements.get(t)||customElements.define(t,Yh))}));break;case"ion-popover":customElements.get(t)||Im();break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))},_m=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.horizontal=void 0,this.vertical=void 0,this.edge=!1,this.activated=!1}activatedChanged(){const t=this.activated,e=this.getFab();e&&(e.activated=t),Array.from(this.el.querySelectorAll("ion-fab-list")).forEach((e=>{e.activated=t}))}componentDidLoad(){this.activated&&this.activatedChanged()}async close(){this.activated=!1}getFab(){return this.el.querySelector("ion-fab-button")}async toggle(){this.el.querySelector("ion-fab-list")&&(this.activated=!this.activated)}render(){const{horizontal:t,vertical:e,edge:i}=this,o=rd(this);return Ka(Ja,{class:{[o]:!0,[`fab-horizontal-${t}`]:void 0!==t,[`fab-vertical-${e}`]:void 0!==e,"fab-edge":i}},Ka("slot",null))}get el(){return this}static get watchers(){return{activated:["activatedChanged"]}}static get style(){return":host{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;z-index:999}:host(.fab-horizontal-center){left:0px;right:0px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}:host(.fab-horizontal-start){left:calc(10px + var(--ion-safe-area-left, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-start),:host-context([dir=rtl]).fab-horizontal-start{right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-start:dir(rtl)){right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}}:host(.fab-horizontal-end){right:calc(10px + var(--ion-safe-area-right, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-end),:host-context([dir=rtl]).fab-horizontal-end{left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-end:dir(rtl)){left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:0}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-top:calc((-100% + 16px) / 2)}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-top:calc(50% + 10px)}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:0}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-bottom:calc((-100% + 16px) / 2)}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-bottom:calc(50% + 10px)}:host(.fab-vertical-center){top:0px;bottom:0px;margin-top:auto;margin-bottom:auto}"}},[1,"ion-fab",{horizontal:[1],vertical:[1],edge:[4],activated:[1028],close:[64],toggle:[64]},void 0,{activated:["activatedChanged"]}]),jm=function(){"undefined"!=typeof customElements&&["ion-fab"].forEach((t=>{"ion-fab"===t&&(customElements.get(t)||customElements.define(t,_m))}))},Mm=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=is(this,"ionFocus",7),this.ionBlur=is(this,"ionBlur",7),this.fab=null,this.inheritedAttributes={},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=()=>{const{fab:t}=this;t&&t.toggle()},this.color=void 0,this.activated=!1,this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0,this.show=!1,this.translucent=!1,this.type="button",this.size=void 0,this.closeIcon="data:image/svg+xml;utf8,"}connectedCallback(){this.fab=this.el.closest("ion-fab")}componentWillLoad(){this.inheritedAttributes=vl(this.el)}render(){const{el:t,disabled:e,color:i,href:o,activated:n,show:r,translucent:a,size:s,inheritedAttributes:l}=this,d=jd("ion-fab-list",t),c=rd(this),h=void 0===o?"button":"a",p="button"===h?{type:this.type}:{download:this.download,href:o,rel:this.rel,target:this.target};return Ka(Ja,{onClick:this.onClick,"aria-disabled":e?"true":null,class:Md(i,{[c]:!0,"fab-button-in-list":d,"fab-button-translucent-in-list":d&&a,"fab-button-close-active":n,"fab-button-show":r,"fab-button-disabled":e,"fab-button-translucent":a,"ion-activatable":!0,"ion-focusable":!0,[`fab-button-${s}`]:void 0!==s})},Ka(h,Object.assign({},p,{class:"button-native",part:"native",disabled:e,onFocus:this.onFocus,onBlur:this.onBlur,onClick:t=>Rd(o,t,this.routerDirection,this.routerAnimation)},l),Ka("ion-icon",{"aria-hidden":"true",icon:this.closeIcon,part:"close-icon",class:"close-icon",lazy:!1}),Ka("span",{class:"button-inner"},Ka("slot",null)),"md"===c&&Ka("ion-ripple-effect",null)))}get el(){return this}static get style(){return{ios:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59);--close-icon-font-size:28px}:host(.ion-activated){--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transform:scale(1.1);--transition:0.2s transform ease-out}::slotted(ion-icon){font-size:28px}:host(.fab-button-in-list){--background:var(--ion-color-light, #f4f5f8);--background-activated:var(--ion-color-light-shade, #d7d8da);--background-focused:var(--background-activated);--background-hover:var(--ion-color-light-tint, #f5f6f9);--color:var(--ion-color-light-contrast, #000);--color-activated:var(--ion-color-light-contrast, #000);--color-focused:var(--color-activated);--transition:transform 200ms ease 10ms, opacity 200ms ease 10ms}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}:host(.ion-color.ion-focused) .button-native,:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after,:host(.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent){--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.9);--background-hover:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.8);--background-focused:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.82);--backdrop-filter:saturate(180%) blur(20px)}:host(.fab-button-translucent-in-list){--background:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.9);--background-hover:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.8);--background-focused:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.82)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){@media (any-hover: hover){:host(.fab-button-translucent.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb), 0.8)}}:host(.ion-color.fab-button-translucent) .button-native{background:rgba(var(--ion-color-base-rgb), 0.9)}:host(.ion-color.ion-focused.fab-button-translucent) .button-native,:host(.ion-color.ion-activated.fab-button-translucent) .button-native{background:var(--ion-color-base)}}',md:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, 0.2, 1) 0ms;--close-icon-font-size:24px}:host(.ion-activated){--box-shadow:0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12)}::slotted(ion-icon){font-size:24px}:host(.fab-button-in-list){--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-activated:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-focused:var(--color-activated);--background:var(--ion-color-light, #f4f5f8);--background-activated:transparent;--background-focused:var(--ion-color-light-shade, #d7d8da);--background-hover:var(--ion-color-light-tint, #f5f6f9)}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native::after{background:transparent}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}}'}}},[33,"ion-fab-button",{color:[513],activated:[4],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1],show:[4],translucent:[4],type:[1],size:[1],closeIcon:[1,"close-icon"]}]),Bm=function(){"undefined"!=typeof customElements&&["ion-fab-button","ion-icon","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-fab-button":customElements.get(t)||customElements.define(t,Mm);break;case"ion-icon":customElements.get(t)||kd();break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))},Vm="ion-content",Rm=".ion-content-scroll-host",Fm=`${Vm}, ${Rm}`,Hm=t=>"ION-CONTENT"===t.tagName,Nm=t("b4",(async t=>Hm(t)?(await new Promise((e=>ul(t,e))),t.getScrollElement()):t)),Wm=t=>{const e=t.querySelector(Rm);return e||t.querySelector(Fm)},qm=t("aW",(t=>t.closest(Fm))),Ym=(t("aZ",((t,e)=>Hm(t)?t.scrollToTop(e):Promise.resolve(t.scrollTo({top:0,left:0,behavior:e>0?"smooth":"auto"})))),t("b5",((t,e,i,o)=>Hm(t)?t.scrollByPoint(e,i,o):Promise.resolve(t.scrollBy({top:i,left:e,behavior:o>0?"smooth":"auto"})))),t=>((t,...e)=>console.error(`<${t.tagName.toLowerCase()}> must be used inside ${e.join(" or ")}.`))(t,Vm)),Gm=t=>{if(Hm(t)){const e=t,i=e.scrollY;return e.scrollY=!1,i}return t.style.setProperty("overflow","hidden"),!0},Xm=(t,e)=>{Hm(t)?t.scrollY=e:t.style.removeProperty("overflow")}; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +var Um,Km;!function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"}(Um||(Um={})),t("b1",Km),function(t){t.Body="body",t.Ionic="ionic",t.Native="native",t.None="none"}(Km||t("b1",Km={}));const Zm=t("a_",{getEngine(){const t=Dh();if(null==t?void 0:t.isPluginAvailable("Keyboard"))return t.Plugins.Keyboard},getResizeMode(){const t=this.getEngine();return(null==t?void 0:t.getResizeMode)?t.getResizeMode().catch((t=>{if(t.code!==Um.Unimplemented)throw t})):Promise.resolve(void 0)}}),Jm=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.fixed=!1}render(){const t=rd(this);return Ka(Ja,{class:{[t]:!0,"grid-fixed":this.fixed}},Ka("slot",null))}static get style(){return":host{-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;display:block;-ms-flex:1;flex:1}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}"}},[1,"ion-grid",{fixed:[4]}]),Qm=function(){"undefined"!=typeof customElements&&["ion-grid"].forEach((t=>{"ion-grid"===t&&(customElements.get(t)||customElements.define(t,Jm))}))},tu=t=>{const e=document.querySelector(`${t}.ion-cloned-element`);if(null!==e)return e;const i=document.createElement(t);return i.classList.add("ion-cloned-element"),i.style.setProperty("display","none"),document.body.appendChild(i),i},eu=t=>{if(!t)return;const e=t.querySelectorAll("ion-toolbar");return{el:t,toolbars:Array.from(e).map((t=>{const e=t.querySelector("ion-title");return{el:t,background:t.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:e,innerTitleEl:e?e.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(t.querySelectorAll("ion-buttons"))}}))}},iu=(t,e)=>{"fade"!==t.collapse&&(void 0===e?t.style.removeProperty("--opacity-scale"):t.style.setProperty("--opacity-scale",e.toString()))},ou=(t,e,i,o)=>{hl((()=>{const n=o.scrollTop;((t,e,i)=>{if(!t[0].isIntersecting)return;const o=t[0].intersectionRatio>.9||i<=0?0:100*(1-t[0].intersectionRatio)/75;iu(e.el,1===o?void 0:o)})(t,e,n);const r=t[0],a=r.intersectionRect,s=a.width*a.height,l=r.rootBounds.width*r.rootBounds.height,d=0===s&&0===l,c=Math.abs(a.left-r.boundingClientRect.left),h=Math.abs(a.right-r.boundingClientRect.right);d||s>0&&(c>=5||h>=5)||(r.isIntersecting?(nu(e,!1),nu(i)):(0===a.x&&0===a.y||0!==a.width&&0!==a.height)&&n>0&&(nu(e),nu(i,!1),iu(e.el)))}))},nu=(t,e=!0)=>{const i=t.el;e?(i.classList.remove("header-collapse-condense-inactive"),i.removeAttribute("aria-hidden")):(i.classList.add("header-collapse-condense-inactive"),i.setAttribute("aria-hidden","true"))},ru=(t=[],e=1,i=!1)=>{t.forEach((t=>{const o=t.ionTitleEl,n=t.innerTitleEl;o&&"large"===o.size&&(n.style.transition=i?"all 0.2s ease-in-out":"",n.style.transform=`scale3d(${e}, ${e}, 1)`)}))},au=(t,e,i)=>{cl((()=>{const o=t.scrollTop,n=e.clientHeight,r=i?i.clientHeight:0;if(null!==i&&o{t.style.removeProperty("clip-path"),e.style.setProperty("--opacity-scale",a.toString())}))}))},su=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.inheritedAttributes={},this.setupFadeHeader=async(t,e)=>{const i=this.scrollEl=await Nm(t);this.contentScrollCallback=()=>{au(this.scrollEl,this.el,e)},i.addEventListener("scroll",this.contentScrollCallback),au(this.scrollEl,this.el,e)},this.collapse=void 0,this.translucent=!1}componentWillLoad(){this.inheritedAttributes=vl(this.el)}componentDidLoad(){this.checkCollapsibleHeader()}componentDidUpdate(){this.checkCollapsibleHeader()}disconnectedCallback(){this.destroyCollapsibleHeader()}async checkCollapsibleHeader(){if("ios"!==rd(this))return;const{collapse:t}=this,e="condense"===t,i="fade"===t;if(this.destroyCollapsibleHeader(),e){const t=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),e=t?Wm(t):null;hl((()=>{tu("ion-title").size="large",tu("ion-back-button")})),await this.setupCondenseHeader(e,t)}else if(i){const t=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),e=t?Wm(t):null;if(!e)return void Ym(this.el);const i=e.querySelector('ion-header[collapse="condense"]');await this.setupFadeHeader(e,i)}}destroyCollapsibleHeader(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0),this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0),this.collapsibleMainHeader&&(this.collapsibleMainHeader.classList.remove("header-collapse-main"),this.collapsibleMainHeader=void 0)}async setupCondenseHeader(t,e){if(!t||!e)return void Ym(this.el);if("undefined"==typeof IntersectionObserver)return;this.scrollEl=await Nm(t);const i=e.querySelectorAll("ion-header");if(this.collapsibleMainHeader=Array.from(i).find((t=>"condense"!==t.collapse)),!this.collapsibleMainHeader)return;const o=eu(this.collapsibleMainHeader),n=eu(this.el);o&&n&&(nu(o,!1),iu(o.el,0),this.intersectionObserver=new IntersectionObserver((t=>{ou(t,o,n,this.scrollEl)}),{root:t,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]}),this.intersectionObserver.observe(n.toolbars[n.toolbars.length-1].el),this.contentScrollCallback=()=>{((t,e,i)=>{cl((()=>{const o=t.scrollTop,n=Il(1,1+-o/500,1.1);null===i.querySelector("ion-refresher.refresher-native")&&hl((()=>{ru(e.toolbars,n)}))}))})(this.scrollEl,n,t)},this.scrollEl.addEventListener("scroll",this.contentScrollCallback),hl((()=>{void 0!==this.collapsibleMainHeader&&this.collapsibleMainHeader.classList.add("header-collapse-main")})))}render(){const{translucent:t,inheritedAttributes:e}=this,i=rd(this),o=this.collapse||"none",n=jd("ion-menu",this.el)?"none":"banner";return Ka(Ja,Object.assign({role:n,class:{[i]:!0,[`header-${i}`]:!0,"header-translucent":this.translucent,[`header-collapse-${o}`]:!0,[`header-translucent-${i}`]:this.translucent}},e),"ios"===i&&t&&Ka("div",{class:"header-background"}),Ka("slot",null))}get el(){return this}static get style(){return{ios:"ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:0px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}ion-header:not(.header-collapse-main):has(~ion-content ion-header[collapse=condense],~ion-content ion-header.header-collapse-condense){opacity:0}",md:"ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.header-collapse-condense{display:none}.header-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}"}}},[36,"ion-header",{collapse:[1],translucent:[4]}]),lu=function(){"undefined"!=typeof customElements&&["ion-header"].forEach((t=>{"ion-header"===t&&(customElements.get(t)||customElements.define(t,su))}))},du=t=>{try{if(t instanceof gu)return t.value;if(!pu()||"string"!=typeof t||""===t)return t;if(t.includes("onload="))return"";const e=document.createDocumentFragment(),i=document.createElement("div");e.appendChild(i),i.innerHTML=t,uu.forEach((t=>{const i=e.querySelectorAll(t);for(let o=i.length-1;o>=0;o--){const t=i[o];t.parentNode?t.parentNode.removeChild(t):e.removeChild(t);const n=hu(t);for(let e=0;e{if(t.nodeType&&1!==t.nodeType)return;if("undefined"!=typeof NamedNodeMap&&!(t.attributes instanceof NamedNodeMap))return void t.remove();for(let i=t.attributes.length-1;i>=0;i--){const e=t.attributes.item(i),o=e.name;if(!mu.includes(o.toLowerCase())){t.removeAttribute(o);continue}const n=e.value,r=t[o];(null!=n&&n.toLowerCase().includes("javascript:")||null!=r&&r.toLowerCase().includes("javascript:"))&&t.removeAttribute(o)}const e=hu(t);for(let i=0;inull!=t.children?t.children:t.childNodes,pu=()=>{var t;const e=window,i=null===(t=null==e?void 0:e.Ionic)||void 0===t?void 0:t.config;return!i||(i.get?i.get("sanitizerEnabled",!0):!0===i.sanitizerEnabled||void 0===i.sanitizerEnabled)},mu=["class","id","href","src","name","slot"],uu=["script","style","iframe","meta","link","object","embed"]; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */class gu{constructor(t){this.value=t}}const bu=(t,e,i)=>{let o;const n=()=>void 0!==e()&&void 0===t.label&&null!==i(),r=()=>{const a=e();if(void 0===a)return;if(!n())return void a.style.removeProperty("width");const s=i().scrollWidth;if(0===s&&null===a.offsetParent&&void 0!==Th&&"IntersectionObserver"in Th){if(void 0!==o)return;const e=o=new IntersectionObserver((t=>{1===t[0].intersectionRatio&&(r(),e.disconnect(),o=void 0)}),{threshold:.01,root:t});e.observe(a)}else a.style.setProperty("width",.75*s+"px")};return{calculateNotchWidth:()=>{n()&&kl((()=>{r()}))},destroy:()=>{o&&(o.disconnect(),o=void 0)}}},fu=(t,e,i)=>{let o,n;if(void 0!==Th&&"MutationObserver"in Th){const n=Array.isArray(e)?e:[e];o=new MutationObserver((t=>{for(const e of t)for(const t of e.addedNodes)if(t.nodeType===Node.ELEMENT_NODE&&n.includes(t.slot))return i(),void kl((()=>r(t)))})),o.observe(t,{childList:!0})}const r=t=>{var o;n&&(n.disconnect(),n=void 0),n=new MutationObserver((t=>{i();for(const i of t)for(const t of i.removedNodes)t.nodeType===Node.ELEMENT_NODE&&t.slot===e&&a()})),n.observe(null!==(o=t.parentElement)&&void 0!==o?o:t,{subtree:!0,childList:!0})},a=()=>{n&&(n.disconnect(),n=void 0)};return{destroy:()=>{o&&(o.disconnect(),o=void 0),a()}}},vu=(t,e,i)=>{const o=null==t?0:t.toString().length,n=xu(o,e);if(void 0===i)return n;try{return i(o,e)}catch(r){return Ad("Exception in provided `counterFormatter`.",r),n}},xu=(t,e)=>`${t} / ${e}`,wu=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.ionInput=is(this,"ionInput",7),this.ionChange=is(this,"ionChange",7),this.ionBlur=is(this,"ionBlur",7),this.ionFocus=is(this,"ionFocus",7),this.ionStyle=is(this,"ionStyle",7),this.inputId="ion-input-"+yu++,this.inheritedAttributes={},this.isComposing=!1,this.hasLoggedDeprecationWarning=!1,this.didInputClearOnEdit=!1,this.onInput=t=>{const e=t.target;e&&(this.value=e.value||""),this.emitInputChange(t)},this.onChange=t=>{this.emitValueChange(t)},this.onBlur=t=>{this.hasFocus=!1,this.emitStyle(),this.focusedValue!==this.value&&this.emitValueChange(t),this.didInputClearOnEdit=!1,this.ionBlur.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusedValue=this.value,this.emitStyle(),this.ionFocus.emit(t)},this.onKeydown=t=>{this.checkClearOnEdit(t)},this.onCompositionStart=()=>{this.isComposing=!0},this.onCompositionEnd=()=>{this.isComposing=!1},this.clearTextInput=t=>{this.clearInput&&!this.readonly&&!this.disabled&&t&&(t.preventDefault(),t.stopPropagation(),this.setFocus()),this.value="",this.emitInputChange(t)},this.hasFocus=!1,this.color=void 0,this.accept=void 0,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.autofocus=!1,this.clearInput=!1,this.clearOnEdit=void 0,this.counter=!1,this.counterFormatter=void 0,this.debounce=void 0,this.disabled=!1,this.enterkeyhint=void 0,this.errorText=void 0,this.fill=void 0,this.inputmode=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.multiple=void 0,this.name=this.inputId,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.shape=void 0,this.spellcheck=!1,this.step=void 0,this.size=void 0,this.type="text",this.value=""}debounceChanged(){const{ionInput:t,debounce:e,originalIonInput:i}=this;this.ionInput=void 0===e?null!=i?i:t:Ol(t,e)}disabledChanged(){this.emitStyle()}placeholderChanged(){this.emitStyle()}valueChanged(){const t=this.nativeInput,e=this.getValue();t&&t.value!==e&&!this.isComposing&&(t.value=e),this.emitStyle()}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},vl(this.el)),bl(this.el,["tabindex","title","data-form-type"]))}connectedCallback(){const{el:t}=this;this.legacyFormController=cc(t),this.slotMutationController=fu(t,["label","start","end"],(()=>Ds(this))),this.notchController=bu(t,(()=>this.notchSpacerEl),(()=>this.labelSlot)),this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}componentDidLoad(){this.originalIonInput=this.ionInput}componentDidRender(){var t;null===(t=this.notchController)||void 0===t||t.calculateNotchWidth()}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async getInputElement(){return this.nativeInput||await new Promise((t=>ul(this.el,t))),Promise.resolve(this.nativeInput)}emitValueChange(t){const{value:e}=this,i=null==e?e:e.toString();this.focusedValue=i,this.ionChange.emit({value:i,event:t})}emitInputChange(t){const{value:e}=this,i=null==e?e:e.toString();this.ionInput.emit({value:i,event:t})}shouldClearOnEdit(){const{type:t,clearOnEdit:e}=this;return void 0===e?"password"===t:e}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({interactive:!0,input:!0,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled,legacy:!!this.legacy})}checkClearOnEdit(t){if(!this.shouldClearOnEdit())return;const e=["Enter","Tab","Shift","Meta","Alt","Control"].includes(t.key);this.didInputClearOnEdit||!this.hasValue()||e||(this.value="",this.emitInputChange(t)),e||(this.didInputClearOnEdit=!0)}hasValue(){return this.getValue().length>0}renderHintText(){const{helperText:t,errorText:e}=this;return[Ka("div",{class:"helper-text"},t),Ka("div",{class:"error-text"},e)]}renderCounter(){const{counter:t,maxlength:e,counterFormatter:i,value:o}=this;if(!0===t&&void 0!==e)return Ka("div",{class:"counter"},vu(o,e,i))}renderBottomContent(){const{counter:t,helperText:e,errorText:i,maxlength:o}=this;if(e||i||!0===t&&void 0!==o)return Ka("div",{class:"input-bottom"},this.renderHintText(),this.renderCounter())}renderLabel(){const{label:t}=this;return Ka("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},void 0===t?Ka("slot",{name:"label"}):Ka("div",{class:"label-text"},t))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){return"md"===rd(this)&&"outline"===this.fill?[Ka("div",{class:"input-outline-container"},Ka("div",{class:"input-outline-start"}),Ka("div",{class:{"input-outline-notch":!0,"input-outline-notch-hidden":!this.hasLabel}},Ka("div",{class:"notch-spacer","aria-hidden":"true",ref:t=>this.notchSpacerEl=t},this.label)),Ka("div",{class:"input-outline-end"})),this.renderLabel()]:this.renderLabel()}renderInput(){const{disabled:t,fill:e,readonly:i,shape:o,inputId:n,labelPlacement:r,el:a,hasFocus:s}=this,l=rd(this),d=this.getValue(),c=jd("ion-item",this.el),h="md"===l&&"outline"!==e&&!c,p=this.hasValue(),m=null!==a.querySelector('[slot="start"], [slot="end"]'),u="stacked"===r||"floating"===r&&(p||s||m);return Ka(Ja,{class:Md(this.color,{[l]:!0,"has-value":p,"has-focus":s,"label-floating":u,[`input-fill-${e}`]:void 0!==e,[`input-shape-${o}`]:void 0!==o,[`input-label-placement-${r}`]:!0,"in-item":c,"in-item-color":jd("ion-item.ion-color",this.el),"input-disabled":t})},Ka("label",{class:"input-wrapper",htmlFor:n},this.renderLabelContainer(),Ka("div",{class:"native-wrapper"},Ka("slot",{name:"start"}),Ka("input",Object.assign({class:"native-input",ref:t=>this.nativeInput=t,id:n,disabled:t,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:i,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:d,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown,onCompositionstart:this.onCompositionStart,onCompositionend:this.onCompositionEnd},this.inheritedAttributes)),this.clearInput&&!i&&!t&&Ka("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:t=>{t.preventDefault()},onClick:this.clearTextInput},Ka("ion-icon",{"aria-hidden":"true",icon:"ios"===l?Vl:Rl})),Ka("slot",{name:"end"})),h&&Ka("div",{class:"input-highlight"})),this.renderBottomContent())}renderLegacyInput(){this.hasLoggedDeprecationWarning||(Sd('ion-input now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: \nExample with aria-label: \n\nFor inputs that do not render the label immediately next to the input, developers may continue to use "ion-label" but must manually associate the label with the input by using "aria-labelledby".\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&Sd('ion-input is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new input syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const t=rd(this),e=this.getValue(),i=this.inputId+"-lbl",o=El(this.el);return o&&(o.id=i),Ka(Ja,{"aria-disabled":this.disabled?"true":null,class:Md(this.color,{[t]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus,"legacy-input":!0,"in-item-color":jd("ion-item.ion-color",this.el)})},Ka("input",Object.assign({class:"native-input",ref:t=>this.nativeInput=t,"aria-labelledby":o?o.id:null,disabled:this.disabled,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:e,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown},this.inheritedAttributes)),this.clearInput&&!this.readonly&&!this.disabled&&Ka("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:t=>{t.preventDefault()},onClick:this.clearTextInput},Ka("ion-icon",{"aria-hidden":"true",icon:"ios"===t?Vl:Rl})))}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyInput():this.renderInput()}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}}static get style(){return{ios:".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}.legacy-input.sc-ion-input-ios-h{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;background:var(--background)}.legacy-input.sc-ion-input-ios-h .native-input.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}ion-item.sc-ion-input-ios-h:not(.item-label):not(.item-has-modern-input),ion-item:not(.item-label):not(.item-has-modern-input) .sc-ion-input-ios-h{--padding-start:0}ion-item[slot=start].sc-ion-input-ios-h,ion-item [slot=start].sc-ion-input-ios-h,ion-item[slot=end].sc-ion-input-ios-h,ion-item [slot=end].sc-ion-input-ios-h{width:auto}.legacy-input.ion-color.sc-ion-input-ios-h{color:var(--ion-color-base)}.ion-color.sc-ion-input-ios-h{--highlight-color-focused:var(--ion-color-base)}.sc-ion-input-ios-h:not(.legacy-input){min-height:44px}.input-label-placement-floating.sc-ion-input-ios-h,.input-label-placement-stacked.sc-ion-input-ios-h{min-height:56px}.native-input.sc-ion-input-ios{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.cloned-input.sc-ion-input-ios{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-input-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-input-ios{left:0}[dir=rtl].sc-ion-input-ios-h .cloned-input.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-ios .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-input-ios:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-input-ios:disabled{opacity:1}.legacy-input.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.input-clear-icon.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{color:inherit}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.has-focus.sc-ion-input-ios-h{pointer-events:none}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h a.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h button.sc-ion-input-ios{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.input-wrapper.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;width:100%}.ion-touched.ion-invalid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-ios-h,.ion-touched.ion-invalid.sc-ion-input-ios-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:block}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:none}.input-bottom.sc-ion-input-ios .counter.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-input-ios,.sc-ion-input-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-ios,.input-outline-notch-hidden.sc-ion-input-ios{display:none}.input-wrapper.sc-ion-input-ios input.sc-ion-input-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text.sc-ion-input-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-ios-h input.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios,.has-value.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:1}.label-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-input-ios-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-input-ios-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.sc-ion-input-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));font-size:inherit}.legacy-input.sc-ion-input-ios-h{--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:0}.item-label-stacked.sc-ion-input-ios-h,.item-label-stacked .sc-ion-input-ios-h,.item-label-floating.sc-ion-input-ios-h,.item-label-floating .sc-ion-input-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.input-clear-icon.sc-ion-input-ios ion-icon.sc-ion-input-ios{width:18px;height:18px}.legacy-input.sc-ion-input-ios-h .native-input[disabled].sc-ion-input-ios,.input-disabled.sc-ion-input-ios-h{opacity:0.3}.sc-ion-input-ios-s>ion-button[slot=start].button-has-icon-only,.sc-ion-input-ios-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}",md:".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}.legacy-input.sc-ion-input-md-h{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;background:var(--background)}.legacy-input.sc-ion-input-md-h .native-input.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}ion-item.sc-ion-input-md-h:not(.item-label):not(.item-has-modern-input),ion-item:not(.item-label):not(.item-has-modern-input) .sc-ion-input-md-h{--padding-start:0}ion-item[slot=start].sc-ion-input-md-h,ion-item [slot=start].sc-ion-input-md-h,ion-item[slot=end].sc-ion-input-md-h,ion-item [slot=end].sc-ion-input-md-h{width:auto}.legacy-input.ion-color.sc-ion-input-md-h{color:var(--ion-color-base)}.ion-color.sc-ion-input-md-h{--highlight-color-focused:var(--ion-color-base)}.sc-ion-input-md-h:not(.legacy-input){min-height:44px}.input-label-placement-floating.sc-ion-input-md-h,.input-label-placement-stacked.sc-ion-input-md-h{min-height:56px}.native-input.sc-ion-input-md{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.cloned-input.sc-ion-input-md{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h .cloned-input.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-md .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-input-md:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-input-md:disabled{opacity:1}.legacy-input.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.input-clear-icon.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{color:inherit}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.has-focus.sc-ion-input-md-h{pointer-events:none}.has-focus.sc-ion-input-md-h input.sc-ion-input-md,.has-focus.sc-ion-input-md-h a.sc-ion-input-md,.has-focus.sc-ion-input-md-h button.sc-ion-input-md{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.input-wrapper.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;width:100%}.ion-touched.ion-invalid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:block}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:none}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-md-h input.sc-ion-input-md{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-input-md,.sc-ion-input-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-md,.input-outline-notch-hidden.sc-ion-input-md{display:none}.input-wrapper.sc-ion-input-md input.sc-ion-input-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text.sc-ion-input-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md,.has-value.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:1}.label-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-input-md-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-input-md-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.input-fill-solid.sc-ion-input-md-h{--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.input-fill-solid.ion-valid.sc-ion-input-md-h,.input-fill-solid.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-fill-solid.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}@media (any-hover: hover){.input-fill-solid.sc-ion-input-md-h:hover{--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}.input-fill-solid.has-focus.sc-ion-input-md-h{--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl].input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.input-fill-solid.sc-ion-input-md-h:dir(rtl) .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}.label-floating.input-fill-solid.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{max-width:calc(100% / 0.75)}.input-fill-outline.sc-ion-input-md-h{--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-outline.input-shape-round.sc-ion-input-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.input-fill-outline.ion-valid.sc-ion-input-md-h,.input-fill-outline.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.input-fill-outline.sc-ion-input-md-h:hover{--border-color:var(--ion-color-step-750, #404040)}}.input-fill-outline.has-focus.sc-ion-input-md-h{--border-width:2px;--border-color:var(--highlight-color)}.input-fill-outline.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}.input-fill-outline.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:none}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-fill-outline.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{position:relative}.label-floating.input-fill-outline.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc((100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75)}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}.input-fill-outline.sc-ion-input-md-h .input-outline-container.sc-ion-input-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{pointer-events:none}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.input-fill-outline.sc-ion-input-md-h .notch-spacer.sc-ion-input-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl].input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl] .input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.input-fill-outline.sc-ion-input-md-h:dir(rtl) .input-outline-start.sc-ion-input-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}}.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px;-ms-flex-positive:1;flex-grow:1}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl].input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl] .input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}@supports selector(:dir(rtl)){.input-fill-outline.sc-ion-input-md-h:dir(rtl) .input-outline-end.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}}.label-floating.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{border-top:none}.sc-ion-input-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));font-size:inherit}.legacy-input.sc-ion-input-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:8px}.item-label-stacked.sc-ion-input-md-h,.item-label-stacked .sc-ion-input-md-h,.item-label-floating.sc-ion-input-md-h,.item-label-floating .sc-ion-input-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.input-clear-icon.sc-ion-input-md ion-icon.sc-ion-input-md{width:22px;height:22px}.legacy-input.sc-ion-input-md-h .native-input[disabled].sc-ion-input-md,.input-disabled.sc-ion-input-md-h{opacity:0.38}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{letter-spacing:0.0333333333em}.input-label-placement-floating.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.has-focus.input-label-placement-floating.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-focus.input-label-placement-stacked.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.input-highlight.sc-ion-input-md{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.input-highlight.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.input-highlight.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-md .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.input-highlight.sc-ion-input-md:dir(rtl){left:unset;right:unset;right:0}}}.has-focus.sc-ion-input-md-h .input-highlight.sc-ion-input-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{bottom:0}@supports (inset-inline-start: 0){.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h -no-combinator.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl].in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.in-item.sc-ion-input-md-h:dir(rtl) .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}}}.input-shape-round.sc-ion-input-md-h{--border-radius:16px}.sc-ion-input-md-s>ion-button[slot=start].button-has-icon-only,.sc-ion-input-md-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}"}}},[38,"ion-input",{color:[513],accept:[1],autocapitalize:[1],autocomplete:[1],autocorrect:[1],autofocus:[4],clearInput:[4,"clear-input"],clearOnEdit:[4,"clear-on-edit"],counter:[4],counterFormatter:[16],debounce:[2],disabled:[4],enterkeyhint:[1],errorText:[1,"error-text"],fill:[1],inputmode:[1],helperText:[1,"helper-text"],label:[1],labelPlacement:[1,"label-placement"],legacy:[4],max:[8],maxlength:[2],min:[8],minlength:[2],multiple:[4],name:[1],pattern:[1],placeholder:[1],readonly:[4],required:[4],shape:[1],spellcheck:[4],step:[1],size:[2],type:[1],value:[1032],hasFocus:[32],setFocus:[64],getInputElement:[64]},void 0,{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}]); +/*! + * (C) Ionic http://ionicframework.com - MIT License + */let yu=0;const ku=function(){"undefined"!=typeof customElements&&["ion-input","ion-icon"].forEach((t=>{switch(t){case"ion-input":customElements.get(t)||customElements.define(t,wu);break;case"ion-icon":customElements.get(t)||kd()}}))},Cu=Ph,Eu=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.sticky=!1}render(){const t=rd(this);return Ka(Ja,{class:Md(this.color,{[t]:!0,"item-divider-sticky":this.sticky,item:!0})},Ka("slot",{name:"start"}),Ka("div",{class:"item-divider-inner"},Ka("div",{class:"item-divider-wrapper"},Ka("slot",null)),Ka("slot",{name:"end"})))}get el(){return this}static get style(){return{ios:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-color-step-100, #e6e6e6);--color:var(--ion-color-step-850, #262626);--padding-start:16px;--inner-padding-end:8px;border-radius:0;position:relative;min-height:28px;font-size:1.0625rem;font-weight:600}:host([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:2px;margin-bottom:2px}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4);font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}::slotted(h2:last-child) ::slotted(h3:last-child),::slotted(h4:last-child),::slotted(h5:last-child),::slotted(h6:last-child),::slotted(p:last-child){margin-bottom:0}",md:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-background-color, #fff);--color:var(--ion-color-step-400, #999999);--padding-start:16px;--inner-padding-end:16px;min-height:30px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));font-size:0.875rem}::slotted([slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted([slot=end]){-webkit-margin-start:32px;margin-inline-start:32px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:13px;margin-bottom:10px}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.7142857143em}:host(.ion-color) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted(ion-icon[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:0.6875rem}::slotted(ion-note[slot]){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){-webkit-padding-end:16px;padding-inline-end:16px}::slotted(ion-note[slot=end]){-webkit-padding-start:16px;padding-inline-start:16px}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(h3,h4,h5,h6){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:var(--ion-color-step-600, #666666);font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}"}}},[33,"ion-item-divider",{color:[513],sticky:[4]}]),zu=function(){"undefined"!=typeof customElements&&["ion-item-divider"].forEach((t=>{"ion-item-divider"===t&&(customElements.get(t)||customElements.define(t,Eu))}))},Su=Rs(class extends tl{constructor(){super(),this.__registerHost()}render(){const t=rd(this);return Ka(Ja,{role:"group",class:{[t]:!0,[`item-group-${t}`]:!0,item:!0}})}static get style(){return{ios:"ion-item-group{display:block}",md:"ion-item-group{display:block}"}}},[32,"ion-item-group"]),Au=function(){"undefined"!=typeof customElements&&["ion-item-group"].forEach((t=>{"ion-item-group"===t&&(customElements.get(t)||customElements.define(t,Su))}))},Iu=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onClick=t=>{t.target.closest("ion-item-option")&&t.preventDefault()},this.color=void 0,this.disabled=!1,this.download=void 0,this.expandable=!1,this.href=void 0,this.rel=void 0,this.target=void 0,this.type="button"}render(){const{disabled:t,expandable:e,href:i}=this,o=void 0===i?"button":"a",n=rd(this),r="button"===o?{type:this.type}:{download:this.download,href:this.href,target:this.target};return Ka(Ja,{onClick:this.onClick,class:Md(this.color,{[n]:!0,"item-option-disabled":t,"item-option-expandable":e,"ion-activatable":!0})},Ka(o,Object.assign({},r,{class:"button-native",part:"native",disabled:t}),Ka("span",{class:"button-inner"},Ka("slot",{name:"top"}),Ka("div",{class:"horizontal-wrapper"},Ka("slot",{name:"start"}),Ka("slot",{name:"icon-only"}),Ka("slot",null),Ka("slot",{name:"end"})),Ka("slot",{name:"bottom"})),"md"===n&&Ka("ion-ripple-effect",null)))}get el(){return this}static get style(){return{ios:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:clamp(16px, 1rem, 35.2px)}:host(.ion-activated){background:var(--ion-color-primary-shade, #3171e0)}:host(.ion-color.ion-activated){background:var(--ion-color-shade)}",md:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:0.875rem;font-weight:500;text-transform:uppercase}"}}},[33,"ion-item-option",{color:[513],disabled:[4],download:[1],expandable:[4],href:[1],rel:[1],target:[1],type:[1]}]),Pu=function(){"undefined"!=typeof customElements&&["ion-item-option","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-item-option":customElements.get(t)||customElements.define(t,Iu);break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))},$u=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.ionSwipe=is(this,"ionSwipe",7),this.side="end"}async fireSwipeEvent(){this.ionSwipe.emit({side:this.side})}render(){const t=rd(this),e=$l(this.side);return Ka(Ja,{class:{[t]:!0,[`item-options-${t}`]:!0,"item-options-start":!e,"item-options-end":e}})}get el(){return this}static get style(){return{ios:"ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-ios{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)))}.item-options-ios.item-options-end{border-bottom-width:0.55px}.list-ios-lines-none .item-options-ios{border-bottom-width:0}.list-ios-lines-full .item-options-ios,.list-ios-lines-inset .item-options-ios.item-options-end{border-bottom-width:0.55px}",md:"ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-md{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}.list-md-lines-none .item-options-md{border-bottom-width:0}.list-md-lines-full .item-options-md,.list-md-lines-inset .item-options-md.item-options-end{border-bottom-width:1px}"}}},[32,"ion-item-options",{side:[1],fireSwipeEvent:[64]}]),Ou=function(){"undefined"!=typeof customElements&&["ion-item-options"].forEach((t=>{"ion-item-options"===t&&(customElements.get(t)||customElements.define(t,$u))}))},Tu=(t,e,i)=>{if("undefined"==typeof MutationObserver)return;const o=new MutationObserver((t=>{i(Lu(t,e))}));return o.observe(t,{childList:!0,subtree:!0}),o},Lu=(t,e)=>{let i;return t.forEach((t=>{for(let o=0;o{if(1!==t.nodeType)return;const i=t;return(i.tagName===e.toUpperCase()?[i]:Array.from(i.querySelectorAll(e))).find((t=>t.value===i.value))}; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */let _u;const ju=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.ionDrag=is(this,"ionDrag",7),this.item=null,this.openAmount=0,this.initialOpenAmount=0,this.optsWidthRightSide=0,this.optsWidthLeftSide=0,this.sides=0,this.optsDirty=!0,this.contentEl=null,this.initialContentScrollY=!0,this.state=2,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){const{el:t}=this;this.item=t.querySelector("ion-item"),this.contentEl=qm(t),this.mutationObserver=Tu(t,"ion-item-option",(async()=>{await this.updateOptions()})),await this.updateOptions(),this.gesture=(await Pa((()=>Promise.resolve().then((()=>Gg))))).createGesture({el:t,gestureName:"item-swipe",gesturePriority:100,threshold:5,canStart:t=>this.canStart(t),onStart:()=>this.onStart(),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.disabledChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.item=null,this.leftOptions=this.rightOptions=void 0,_u===this.el&&(_u=void 0),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=void 0)}getOpenAmount(){return Promise.resolve(this.openAmount)}getSlidingRatio(){return Promise.resolve(this.getSlidingRatioSync())}async open(t){var e;if(null===(this.item=null!==(e=this.item)&&void 0!==e?e:this.el.querySelector("ion-item")))return;const i=this.getOptions(t);if(!i)return;void 0===t&&(t=i===this.leftOptions?"start":"end"),t=$l(t)?"end":"start";const o=this.openAmount<0,n=this.openAmount>0;o&&i===this.leftOptions||n&&i===this.rightOptions||(this.closeOpened(),this.state=4,requestAnimationFrame((()=>{this.calculateOptsWidth();const e="end"===t?this.optsWidthRightSide:-this.optsWidthLeftSide;_u=this.el,this.setOpenAmount(e,!1),this.state="end"===t?8:16})))}async close(){this.setOpenAmount(0,!0)}async closeOpened(){return void 0!==_u&&(_u.close(),_u=void 0,!0)}getOptions(t){return void 0===t?this.leftOptions||this.rightOptions:"start"===t?this.leftOptions:this.rightOptions}async updateOptions(){const t=this.el.querySelectorAll("ion-item-options");let e=0;this.leftOptions=this.rightOptions=void 0;for(let i=0;ithis.optsWidthRightSide?(e=this.optsWidthRightSide,i=e+.55*(i-e)):i<-this.optsWidthLeftSide&&(e=-this.optsWidthLeftSide,i=e+.55*(i-e)),this.setOpenAmount(i,!1)}onEnd(t){const{contentEl:e,initialContentScrollY:i}=this;e&&Xm(e,i);const o=t.velocityX;let n=this.openAmount>0?this.optsWidthRightSide:-this.optsWidthLeftSide;const r=this.openAmount>0==!(o<0),a=Math.abs(o)>.3,s=Math.abs(this.openAmount)0)this.state=t>=this.optsWidthRightSide+30?40:8;else{if(!(t<0))return i.classList.add("item-sliding-closing"),this.gesture&&this.gesture.enable(!1),this.tmr=setTimeout((()=>{this.state=2,this.tmr=void 0,this.gesture&&this.gesture.enable(!this.disabled),i.classList.remove("item-sliding-closing")}),600),_u=void 0,void(o.transform="");this.state=t<=-this.optsWidthLeftSide-30?80:16}o.transform=`translate3d(${-t}px,0,0)`,this.ionDrag.emit({amount:t,ratio:this.getSlidingRatioSync()})}getSlidingRatioSync(){return this.openAmount>0?this.openAmount/this.optsWidthRightSide:this.openAmount<0?this.openAmount/this.optsWidthLeftSide:0}render(){const t=rd(this);return Ka(Ja,{class:{[t]:!0,"item-sliding-active-slide":2!==this.state,"item-sliding-active-options-end":0!=(8&this.state),"item-sliding-active-options-start":0!=(16&this.state),"item-sliding-active-swipe-end":0!=(32&this.state),"item-sliding-active-swipe-start":0!=(64&this.state)}})}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return"ion-item-sliding{display:block;position:relative;width:100%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ion-item-sliding .item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.item-sliding-active-slide .item{position:relative;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1), -webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);opacity:1;z-index:2;pointer-events:none;will-change:transform}.item-sliding-closing ion-item-options{pointer-events:none}.item-sliding-active-swipe-end .item-options-end .item-option-expandable{padding-left:100%;-ms-flex-order:1;order:1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-left;transition-property:padding-left}:host-context([dir=rtl]) .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}[dir=rtl] .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-end .item-options-end .item-option-expandable:dir(rtl){-ms-flex-order:-1;order:-1}}.item-sliding-active-swipe-start .item-options-start .item-option-expandable{padding-right:100%;-ms-flex-order:-1;order:-1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-right;transition-property:padding-right}:host-context([dir=rtl]) .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}[dir=rtl] .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-start .item-options-start .item-option-expandable:dir(rtl){-ms-flex-order:1;order:1}}"}},[0,"ion-item-sliding",{disabled:[4],state:[32],getOpenAmount:[64],getSlidingRatio:[64],open:[64],close:[64],closeOpened:[64]},void 0,{disabled:["disabledChanged"]}]),Mu=(t,e,i)=>!e&&i||t&&e,Bu=function(){"undefined"!=typeof customElements&&["ion-item-sliding"].forEach((t=>{"ion-item-sliding"===t&&(customElements.get(t)||customElements.define(t,ju))}))},Vu=Oh,Ru=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.lines=void 0,this.inset=!1}async closeSlidingItems(){const t=this.el.querySelector("ion-item-sliding");return!!(null==t?void 0:t.closeOpened)&&t.closeOpened()}render(){const t=rd(this),{lines:e,inset:i}=this;return Ka(Ja,{role:"list",class:{[t]:!0,[`list-${t}`]:!0,"list-inset":i,[`list-lines-${e}`]:void 0!==e,[`list-${t}-lines-${e}`]:void 0!==e}})}get el(){return this}static get style(){return{ios:"ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:only-child,.list-ios.list-inset ion-item:not(:only-of-type):last-of-type,.list-ios.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",md:"ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:not(:only-of-type):first-of-type,.list-md.list-inset ion-item-sliding:first-of-type ion-item{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:not(:only-of-type):last-of-type,.list-md.list-inset ion-item-sliding:last-of-type ion-item{--border-radius:0 0 2px 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset ion-item:only-child{--border-radius:2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"}}},[32,"ion-list",{lines:[1],inset:[4],closeSlidingItems:[64]}]);function Fu(){"undefined"!=typeof customElements&&["ion-list"].forEach((t=>{"ion-list"===t&&(customElements.get(t)||customElements.define(t,Ru))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Hu=Fu,Nu=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.lines=void 0}render(){const{lines:t}=this,e=rd(this);return Ka(Ja,{class:Md(this.color,{[e]:!0,[`list-header-lines-${t}`]:void 0!==t})},Ka("div",{class:"list-header-inner"},Ka("slot",null)))}static get style(){return{ios:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);position:relative;-ms-flex-align:end;align-items:flex-end;font-size:min(1.375rem, 56.1px);font-weight:700;letter-spacing:0}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){--padding-top:0;--padding-bottom:0;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px;min-height:1.4em}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",md:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);min-height:45px;font-size:0.875rem}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}"}}},[33,"ion-list-header",{color:[513],lines:[1]}]); +/*! + * (C) Ionic http://ionicframework.com - MIT License + */function Wu(){"undefined"!=typeof customElements&&["ion-list-header"].forEach((t=>{"ion-list-header"===t&&(customElements.get(t)||customElements.define(t,Nu))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const qu=Wu,Yu=(t,e,i,o,n)=>Xu(t[1],e[1],i[1],o[1],n).map((n=>Gu(t[0],e[0],i[0],o[0],n))),Gu=(t,e,i,o,n)=>n*(3*e*Math.pow(n-1,2)+n*(-3*i*n+3*i+o*n))-t*Math.pow(n-1,3),Xu=(t,e,i,o,n)=>Uu((o-=n)-3*(i-=n)+3*(e-=n)-(t-=n),3*i-6*e+3*t,3*e-3*t,t).filter((t=>t>=0&&t<=1)),Uu=(t,e,i,o)=>{if(0===t)return((t,e,i)=>{const o=e*e-4*t*i;return o<0?[]:[(-e+Math.sqrt(o))/(2*t),(-e-Math.sqrt(o))/(2*t)]})(e,i,o);const n=(3*(i/=t)-(e/=t)*e)/3,r=(2*e*e*e-9*e*i+27*(o/=t))/27;if(0===n)return[Math.pow(-r,1/3)];if(0===r)return[Math.sqrt(-n),-Math.sqrt(-n)];const a=Math.pow(r/2,2)+Math.pow(n/3,3);if(0===a)return[Math.pow(r/2,.5)-e/3];if(a>0)return[Math.pow(-r/2+Math.sqrt(a),1/3)-Math.pow(r/2+Math.sqrt(a),1/3)-e/3];const s=Math.sqrt(Math.pow(-n/3,3)),l=Math.acos(-r/(2*Math.sqrt(Math.pow(-n/3,3)))),d=2*Math.pow(s,1/3);return[d*Math.cos(l/3)-e/3,d*Math.cos((l+2*Math.PI)/3)-e/3,d*Math.cos((l+4*Math.PI)/3)-e/3]},Ku=t=>sm().duration(t?400:300),Zu=t=>{let e,i;const o=t.width+8,n=sm(),r=sm();t.isEndSide?(e=o+"px",i="0px"):(e=-o+"px",i="0px"),n.addElement(t.menuInnerEl).fromTo("transform",`translateX(${e})`,`translateX(${i})`);const a="ios"===rd(t),s=a?.2:.25;return r.addElement(t.backdropEl).fromTo("opacity",.01,s),Ku(a).addAnimation([n,r])},Ju=t=>{let e,i;const o=rd(t),n=t.width;t.isEndSide?(e=-n+"px",i=n+"px"):(e=n+"px",i=-n+"px");const r=sm().addElement(t.menuInnerEl).fromTo("transform",`translateX(${i})`,"translateX(0px)"),a=sm().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${e})`),s=sm().addElement(t.backdropEl).fromTo("opacity",.01,.32);return Ku("ios"===o).addAnimation([r,a,s])},Qu=t=>{const e=rd(t),i=t.width*(t.isEndSide?-1:1)+"px",o=sm().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${i})`);return Ku("ios"===e).addAnimation(o)},tg=()=>{const t=new Map,e=[],i=async(t,i=!1)=>{if(await d(),"start"===t||"end"===t){const o=e.filter((e=>e.side===t&&!e.disabled));if(o.length>=1)return o.length>1&&i&&Sd(`menuController queried for a menu on the "${t}" side, but ${o.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,o.map((t=>t.el))),o[0].el;const n=e.filter((e=>e.side===t));if(n.length>=1)return n.length>1&&i&&Sd(`menuController queried for a menu on the "${t}" side, but ${n.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,n.map((t=>t.el))),n[0].el}else if(null!=t)return l((e=>e.menuId===t));const o=l((t=>!t.disabled));return o||(e.length>0?e[0].el:void 0)},o=async()=>(await d(),r()),n=(e,i)=>{t.set(e,i)},r=()=>l((t=>t._isOpen)),a=()=>e.map((t=>t.el)),s=()=>e.some((t=>t.isAnimating)),l=t=>{const i=e.find(t);if(void 0!==i)return i.el},d=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((t=>new Promise((e=>ul(t,e))))));return n("reveal",Qu),n("push",Ju),n("overlay",Zu),null==Lh||Lh.addEventListener("ionBackButton",(t=>{const e=r();e&&t.detail.register(99,(()=>e.close()))})),{registerAnimation:n,get:i,getMenus:async()=>(await d(),a()),getOpen:o,isEnabled:async t=>{const e=await i(t);return!!e&&!e.disabled},swipeGesture:async(t,e)=>{const o=await i(e);return o&&(o.swipeGesture=t),o},isAnimating:async()=>(await d(),s()),isOpen:async t=>{if(null!=t){const e=await i(t);return void 0!==e&&e.isOpen()}return void 0!==await o()},enable:async(t,e)=>{const o=await i(e);return o&&(o.disabled=!t),o},toggle:async t=>{const e=await i(t,!0);return!!e&&e.toggle()},close:async t=>{const e=await(void 0!==t?i(t,!0):o());return void 0!==e&&e.close()},open:async t=>{const e=await i(t,!0);return!!e&&e.open()},_getOpenSync:r,_createAnimation:(e,i)=>{const o=t.get(e);if(!o)throw new Error("animation not registered");return o(i)},_register:t=>{e.indexOf(t)<0&&e.push(t)},_unregister:t=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},_setOpen:async(t,e,i)=>{if(s())return!1;if(e){const e=await o();e&&t.el!==e&&await e.setOpen(!1,!1)}return t._setOpen(e,i)}}},eg=tg(),ig='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',og=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionWillOpen=is(this,"ionWillOpen",7),this.ionWillClose=is(this,"ionWillClose",7),this.ionDidOpen=is(this,"ionDidOpen",7),this.ionDidClose=is(this,"ionDidClose",7),this.ionMenuChange=is(this,"ionMenuChange",7),this.lastOnEnd=0,this.blocker=Ld.createBlocker({disableScroll:!0}),this.didLoad=!1,this.operationCancelled=!1,this.isAnimating=!1,this._isOpen=!1,this.inheritedAttributes={},this.handleFocus=t=>{const e=bp(document);e&&!e.contains(this.el)||this.trapKeyboardFocus(t,document)},this.isPaneVisible=!1,this.isEndSide=!1,this.contentId=void 0,this.menuId=void 0,this.type=void 0,this.disabled=!1,this.side="start",this.swipeGesture=!0,this.maxEdgeStart=50}typeChanged(t,e){const i=this.contentEl;i&&(void 0!==e&&i.classList.remove(`menu-content-${e}`),i.classList.add(`menu-content-${t}`),i.removeAttribute("style")),this.menuInnerEl&&this.menuInnerEl.removeAttribute("style"),this.animation=void 0}disabledChanged(){this.updateState(),this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}sideChanged(){this.isEndSide=$l(this.side),this.animation=void 0}swipeGestureChanged(){this.updateState()}async connectedCallback(){"undefined"!=typeof customElements&&null!=customElements&&await customElements.whenDefined("ion-menu"),void 0===this.type&&(this.type=Hl.get("menuType","overlay"));const t=void 0!==this.contentId?document.getElementById(this.contentId):null;null!==t?(this.el.contains(t)&&console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.'),this.contentEl=t,t.classList.add("menu-content"),this.typeChanged(this.type,void 0),this.sideChanged(),eg._register(this),this.menuChanged(),this.gesture=(await Pa((()=>Promise.resolve().then((()=>Gg))))).createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:!0,canStart:t=>this.canStart(t),onWillStart:()=>this.onWillStart(),onStart:()=>this.onStart(),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.updateState()):console.error('Menu: must have a "content" element to listen for drag events on.')}componentWillLoad(){this.inheritedAttributes=vl(this.el)}async componentDidLoad(){this.didLoad=!0,this.menuChanged(),this.updateState()}menuChanged(){this.didLoad&&this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}async disconnectedCallback(){await this.close(!1),this.blocker.destroy(),eg._unregister(this),this.animation&&this.animation.destroy(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.animation=void 0,this.contentEl=void 0}onSplitPaneChanged(t){const{target:e}=t;e===this.el.closest("ion-split-pane")&&(this.isPaneVisible=t.detail.isPane(this.el),this.updateState())}onBackdropClick(t){this._isOpen&&this.lastOnEnd0?e[e.length-1]:null;i?i.focus():t.focus()}trapKeyboardFocus(t,e){const i=t.target;i&&(this.el.contains(i)?this.lastFocus=i:(this.focusFirstDescendant(),this.lastFocus===e.activeElement&&this.focusLastDescendant()))}async _setOpen(t,e=!0){return!(!this._isActive()||this.isAnimating||t===this._isOpen||(this.beforeAnimation(t),await this.loadAnimation(),await this.startAnimation(t,e),this.operationCancelled?(this.operationCancelled=!1,1):(this.afterAnimation(t),0)))}async loadAnimation(){const t=this.menuInnerEl.offsetWidth,e=$l(this.side);if(t===this.width&&void 0!==this.animation&&e===this.isEndSide)return;this.width=t,this.isEndSide=e,this.animation&&(this.animation.destroy(),this.animation=void 0);const i=this.animation=await eg._createAnimation(this.type,this);Hl.getBoolean("animated",!0)||i.duration(0),i.fill("both")}async startAnimation(t,e){const i=!t,o=rd(this),n="ios"===o?"cubic-bezier(0.32,0.72,0,1)":"cubic-bezier(0.0,0.0,0.2,1)",r="ios"===o?"cubic-bezier(1, 0, 0.68, 0.28)":"cubic-bezier(0.4, 0, 0.6, 1)",a=this.animation.direction(i?"reverse":"normal").easing(i?r:n);e?await a.play():a.play({sync:!0}),"reverse"===a.getDirection()&&a.direction("normal")}_isActive(){return!this.disabled&&!this.isPaneVisible}canSwipe(){return this.swipeGesture&&!this.isAnimating&&this._isActive()}canStart(t){return!(document.querySelector("ion-modal.show-modal")||!this.canSwipe())&&(!!this._isOpen||!eg._getOpenSync()&&rg(window,t.currentX,this.isEndSide,this.maxEdgeStart))}onWillStart(){return this.beforeAnimation(!this._isOpen),this.loadAnimation()}onStart(){this.isAnimating&&this.animation?this.animation.progressStart(!0,this._isOpen?1:0):Pl(!1,"isAnimating has to be true")}onMove(t){if(!this.isAnimating||!this.animation)return void Pl(!1,"isAnimating has to be true");const e=ng(t.deltaX,this._isOpen,this.isEndSide)/this.width;this.animation.progressStep(this._isOpen?1-e:e)}onEnd(t){if(!this.isAnimating||!this.animation)return void Pl(!1,"isAnimating has to be true");const e=this._isOpen,i=this.isEndSide,o=ng(t.deltaX,e,i),n=this.width,r=o/n,a=t.velocityX,s=n/2,l=a>=0&&(a>.2||t.deltaX>s),d=a<=0&&(a<-.2||t.deltaX<-s),c=e?i?l:d:i?d:l;let h=!e&&c;e&&!c&&(h=!0),this.lastOnEnd=t.currentTime;let p=c?.001:-.001;p+=Yu([0,0],[.4,0],[.6,1],[1,1],Il(0,r<0?.01:r,.9999))[0]||0;const m=this._isOpen?!c:c;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish((()=>this.afterAnimation(h)),{oneTimeCallback:!0}).progressEnd(m?1:0,this._isOpen?1-p:p,300)}beforeAnimation(t){Pl(!this.isAnimating,"_before() should not be called while animating"),this.el.classList.add(ag),this.el.setAttribute("tabindex","0"),this.backdropEl&&this.backdropEl.classList.add(sg),this.contentEl&&(this.contentEl.classList.add(lg),this.contentEl.setAttribute("aria-hidden","true")),this.blocker.block(),this.isAnimating=!0,t?this.ionWillOpen.emit():this.ionWillClose.emit()}afterAnimation(t){var e;this._isOpen=t,this.isAnimating=!1,this._isOpen||this.blocker.unblock(),t?(this.ionDidOpen.emit(),(null===(e=document.activeElement)||void 0===e?void 0:e.closest("ion-menu"))!==this.el&&this.el.focus(),document.addEventListener("focus",this.handleFocus,!0)):(this.el.classList.remove(ag),this.el.removeAttribute("tabindex"),this.contentEl&&(this.contentEl.classList.remove(lg),this.contentEl.removeAttribute("aria-hidden")),this.backdropEl&&this.backdropEl.classList.remove(sg),this.animation&&this.animation.stop(),this.ionDidClose.emit(),document.removeEventListener("focus",this.handleFocus,!0))}updateState(){const t=this._isActive();this.gesture&&this.gesture.enable(t&&this.swipeGesture),t||(this.isAnimating&&(this.operationCancelled=!0),this.afterAnimation(!1))}render(){const{type:t,disabled:e,isPaneVisible:i,inheritedAttributes:o,side:n}=this,r=rd(this);return Ka(Ja,{role:"navigation","aria-label":o["aria-label"]||"menu",class:{[r]:!0,[`menu-type-${t}`]:!0,"menu-enabled":!e,[`menu-side-${n}`]:!0,"menu-pane-visible":i}},Ka("div",{class:"menu-inner",part:"container",ref:t=>this.menuInnerEl=t},Ka("slot",null)),Ka("ion-backdrop",{ref:t=>this.backdropEl=t,class:"menu-backdrop",tappable:!1,stopPropagation:!1,part:"backdrop"}))}get el(){return this}static get watchers(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}}static get style(){return{ios:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}",md:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}"}}},[33,"ion-menu",{contentId:[513,"content-id"],menuId:[513,"menu-id"],type:[1025],disabled:[1028],side:[513],swipeGesture:[4,"swipe-gesture"],maxEdgeStart:[2,"max-edge-start"],isPaneVisible:[32],isEndSide:[32],isOpen:[64],isActive:[64],open:[64],close:[64],toggle:[64],setOpen:[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]],{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}]),ng=(t,e,i)=>Math.max(0,e!==i?-t:t),rg=(t,e,i,o)=>i?e>=t.innerWidth-o:e<=o,ag="show-menu",sg="show-backdrop",lg="menu-content-open",dg=function(){"undefined"!=typeof customElements&&["ion-menu","ion-backdrop"].forEach((t=>{switch(t){case"ion-menu":customElements.get(t)||customElements.define(t,og);break;case"ion-backdrop":customElements.get(t)||_d()}}))},cg=async t=>{const e=await eg.get(t);return!(!e||!(await e.isActive()))},hg=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.onClick=async()=>eg.toggle(this.menu),this.visible=!1,this.color=void 0,this.disabled=!1,this.menu=void 0,this.autoHide=!0,this.type="button"}componentWillLoad(){this.inheritedAttributes=vl(this.el)}componentDidLoad(){this.visibilityChanged()}async visibilityChanged(){this.visible=await cg(this.menu)}render(){const{color:t,disabled:e,inheritedAttributes:i}=this,o=rd(this),n=Hl.get("menuIcon","ios"===o?"data:image/svg+xml;utf8,":"data:image/svg+xml;utf8,"),r=this.autoHide&&!this.visible,a={type:this.type},s=i["aria-label"]||"menu";return Ka(Ja,{onClick:this.onClick,"aria-disabled":e?"true":null,"aria-hidden":r?"true":null,class:Md(t,{[o]:!0,button:!0,"menu-button-hidden":r,"menu-button-disabled":e,"in-toolbar":jd("ion-toolbar",this.el),"in-toolbar-color":jd("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0})},Ka("button",Object.assign({},a,{disabled:e,class:"button-native",part:"native","aria-label":s}),Ka("span",{class:"button-inner"},Ka("slot",null,Ka("ion-icon",{part:"icon",icon:n,mode:o,lazy:!1,"aria-hidden":"true"}))),"md"===o&&Ka("ion-ripple-effect",{type:"unbounded"})))}get el(){return this}static get style(){return{ios:':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--padding-start:5px;--padding-end:5px;min-height:32px;font-size:clamp(31px, 1.9375rem, 38.13px)}:host(.ion-activated){opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',md:':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:.04;--border-radius:50%;--color:initial;--padding-start:8px;--padding-end:8px;width:3rem;height:3rem;font-size:1.5rem}:host(.ion-color.ion-focused)::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}'}}},[33,"ion-menu-button",{color:[513],disabled:[4],menu:[1],autoHide:[4,"auto-hide"],type:[1],visible:[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]),pg=function(){"undefined"!=typeof customElements&&["ion-menu-button","ion-icon","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-menu-button":customElements.get(t)||customElements.define(t,hg);break;case"ion-icon":customElements.get(t)||kd();break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))},mg=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onClick=()=>eg.toggle(this.menu),this.visible=!1,this.menu=void 0,this.autoHide=!0}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await cg(this.menu)}render(){const t=rd(this),e=this.autoHide&&!this.visible;return Ka(Ja,{onClick:this.onClick,"aria-hidden":e?"true":null,class:{[t]:!0,"menu-toggle-hidden":e}},Ka("slot",null))}static get style(){return":host(.menu-toggle-hidden){display:none}"}},[1,"ion-menu-toggle",{menu:[1],autoHide:[4,"auto-hide"],visible:[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]),ug=function(){"undefined"!=typeof customElements&&["ion-menu-toggle"].forEach((t=>{"ion-menu-toggle"===t&&(customElements.get(t)||customElements.define(t,mg))}))}; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */class gg{constructor(t,e){this.component=t,this.params=e,this.state=1}async init(t){if(this.state=2,!this.element){const e=this.component;this.element=await Gh(this.delegate,t,e,["ion-page","ion-page-invisible"],this.params)}}_destroy(){Pl(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const bg=(t,e,i)=>!!t&&t.component===e&&Ll(t.params,i),fg=(t,e)=>t?t instanceof gg?t:new gg(t,e):null,vg=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=is(this,"ionNavWillLoad",7),this.ionNavWillChange=is(this,"ionNavWillChange",3),this.ionNavDidChange=is(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const t=rd(this);this.swipeGesture=Hl.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await Pa((()=>e.import("./swipe-back-legacy-0Y8C9GOm.js")))).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)Up(t.element,jp),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,e,i,o){return this.insert(-1,t,e,i,o)}insert(t,e,i,o,n){return this.insertPages(t,[{component:e,componentProps:i}],o,n)}insertPages(t,e,i,o){return this.queueTrns({insertStart:t,insertViews:e,opts:i},o)}pop(t,e){return this.removeIndex(-1,1,t,e)}popTo(t,e,i){const o={removeStart:-1,removeCount:-1,opts:e};return"object"==typeof t&&t.component?(o.removeView=t,o.removeStart=1):"number"==typeof t&&(o.removeStart=t+1),this.queueTrns(o,i)}popToRoot(t,e){return this.removeIndex(1,-1,t,e)}removeIndex(t,e=1,i,o){return this.queueTrns({removeStart:t,removeCount:e,opts:i},o)}setRoot(t,e,i,o){return this.setPages([{component:t,componentProps:e}],i,o)}setPages(t,e,i){return null!=e||(e={}),!0!==e.animated&&(e.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:e},i)}setRouteId(t,e,i,o){const n=this.getActiveSync();if(bg(n,t,e))return Promise.resolve({changed:!1,element:n.element});let r;const a=new Promise((t=>r=t));let s;const l={updateURL:!1,viewIsReady:t=>{let e;const i=new Promise((t=>e=t));return r({changed:!0,element:t,markVisible:async()=>{e(),await s}}),i}};if("root"===i)s=this.setRoot(t,e,l);else{const n=this.views.find((i=>bg(i,t,e)));n?s=this.popTo(n,Object.assign(Object.assign({},l),{direction:"back",animationBuilder:o})):"forward"===i?s=this.push(t,e,Object.assign(Object.assign({},l),{animationBuilder:o})):"back"===i&&(s=this.setRoot(t,e,Object.assign(Object.assign({},l),{direction:"back",animated:!0,animationBuilder:o})))}return a}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!(!t||!this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const e=this.views,i=e.indexOf(t);return i>0?e[i-1]:void 0}async queueTrns(t,e){var i,o;if(this.isTransitioning&&(null===(i=t.opts)||void 0===i?void 0:i.skipIfBusy))return!1;const n=new Promise(((e,i)=>{t.resolve=e,t.reject=i}));if(t.done=e,t.opts&&!1!==t.opts.updateURL&&this.useRouter){const e=document.querySelector("ion-router");if(e){const i=await e.canTransition();if(!1===i)return!1;if("string"==typeof i)return e.push(i,t.opts.direction||"back"),!1}}return 0===(null===(o=t.insertViews)||void 0===o?void 0:o.length)&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),n}success(t,e){if(this.destroyed)this.fireError("nav controller was destroyed",e);else if(e.done&&e.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),e.resolve(t.hasCompleted),!1!==e.opts.updateURL&&this.useRouter){const e=document.querySelector("ion-router");if(e){const i="back"===t.direction?"back":"forward";e.navChanged(i)}}}failed(t,e){this.destroyed?this.fireError("nav controller was destroyed",e):(this.transInstr.length=0,this.fireError(t,e))}fireError(t,e){e.done&&e.done(!1,!1,t),e.reject&&!this.destroyed?e.reject(t):e.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return!!t&&(this.runTransition(t),!0)}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const e=this.getActiveSync(),i=this.getEnteringView(t,e);if(!e&&!i)throw new Error("no views in the stack to be removed");i&&1===i.state&&await i.init(this.el),this.postViewInit(i,e,t);const o=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&i!==e;let n;o&&t.opts&&e&&("back"===t.opts.direction&&(t.opts.animationBuilder=t.opts.animationBuilder||(null==i?void 0:i.animationBuilder)),e.animationBuilder=t.opts.animationBuilder),n=o?await this.transition(i,e,t):{hasCompleted:!0,requiresTransition:!1},this.success(n,t),this.ionNavDidChange.emit()}catch(e){this.failed(e,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var e,i,o;const n=this.views.length;if(null!==(e=t.opts)&&void 0!==e||(t.opts={}),null!==(i=(o=t.opts).delegate)&&void 0!==i||(o.delegate=this.delegate),void 0!==t.removeView){Pl(void 0!==t.removeStart,"removeView needs removeStart"),Pl(void 0!==t.removeCount,"removeView needs removeCount");const e=this.views.indexOf(t.removeView);if(e<0)throw new Error("removeView was not found");t.removeStart+=e}void 0!==t.removeStart&&(t.removeStart<0&&(t.removeStart=n-1),t.removeCount<0&&(t.removeCount=n-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===n),t.insertViews&&((t.insertStart<0||t.insertStart>n)&&(t.insertStart=n),t.enteringRequiresTransition=t.insertStart===n);const r=t.insertViews;if(!r)return;Pl(r.length>0,"length can not be zero");const a=r.map((t=>t instanceof gg?t:"component"in t?fg(t.component,null===t.componentProps?void 0:t.componentProps):fg(t,void 0))).filter((t=>null!==t));if(0===a.length)throw new Error("invalid views to insert");for(const s of a){s.delegate=t.opts.delegate;const e=s.nav;if(e&&e!==this)throw new Error("inserted view was already inserted");if(3===s.state)throw new Error("inserted view was already destroyed")}t.insertViews=a}getEnteringView(t,e){const i=t.insertViews;if(void 0!==i)return i[i.length-1];const o=t.removeStart;if(void 0!==o){const i=this.views,n=o+t.removeCount;for(let t=i.length-1;t>=0;t--){const r=i[t];if((t=n)&&r!==e)return r}}}postViewInit(t,e,i){var o,n,r;Pl(e||t,"Both leavingView and enteringView are null"),Pl(i.resolve,"resolve must be valid"),Pl(i.reject,"reject must be valid");const a=i.opts,{insertViews:s,removeStart:l,removeCount:d}=i;let c;if(void 0!==l&&void 0!==d){Pl(l>=0,"removeStart can not be negative"),Pl(d>=0,"removeCount can not be negative"),c=[];for(let i=l;i=0,"final balance can not be negative"),0===h)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(s){let t=i.insertStart;for(const e of s)this.insertViewAt(e,t),t++;i.enteringRequiresTransition&&(null!==(r=a.direction)&&void 0!==r||(a.direction="forward"))}if(c&&c.length>0){for(const t of c)Up(t.element,Dp),Up(t.element,_p),Up(t.element,jp);for(const t of c)this.destroyView(t)}}async transition(t,e,i){const o=i.opts,n=o.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.sbAni=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0,r=rd(this),a=t.element,s=e&&e.element,l=Object.assign(Object.assign({mode:r,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:n,animated:this.animated&&Hl.getBoolean("animated",!0),enteringEl:a,leavingEl:s},o),{animationBuilder:o.animationBuilder||this.animation||Hl.get("navAnimation")}),{hasCompleted:d}=await Mp(l);return this.transitionFinish(d,t,e,o)}transitionFinish(t,e,i,o){const n=t?e:i;return n&&this.unmountInactiveViews(n),{hasCompleted:t,requiresTransition:!0,enteringView:e,leavingView:i,direction:o.direction}}insertViewAt(t,e){const i=this.views,o=i.indexOf(t);o>-1?(Pl(t.nav===this,"view is not part of the nav"),i.splice(o,1),i.splice(e,0,t)):(Pl(!t.nav,"nav is used"),t.nav=this,i.splice(e,0,t))}removeView(t){Pl(2===t.state||3===t.state,"view state should be loaded or destroyed");const e=this.views,i=e.indexOf(t);Pl(i>-1,"view must be part of the stack"),i>=0&&e.splice(i,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const e=this.views,i=e.indexOf(t);for(let o=e.length-1;o>=0;o--){const t=e[o],n=t.element;n&&(o>i?(Up(n,jp),this.destroyView(t)):o{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0});let o=t?-.001:.001;t?o+=Yu([0,0],[.32,.72],[0,1],[1,1],e)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),o+=Yu([0,0],[1,0],[.68,.28],[1,1],e)[0]),this.sbAni.progressEnd(t?1:0,o,i)}else this.gestureOrAnimationInProgress=!1}render(){return Ka("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}"}},[1,"ion-nav",{delegate:[16],swipeGesture:[1028,"swipe-gesture"],animated:[4],animation:[16],rootParams:[16],root:[1],push:[64],insert:[64],insertPages:[64],pop:[64],popTo:[64],popToRoot:[64],removeIndex:[64],setRoot:[64],setPages:[64],setRouteId:[64],getRouteId:[64],getActive:[64],getByIndex:[64],canGoBack:[64],getPrevious:[64]},void 0,{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}]),xg=function(){"undefined"!=typeof customElements&&["ion-nav"].forEach((t=>{"ion-nav"===t&&(customElements.get(t)||customElements.define(t,vg))}))},wg=Ah,yg=(t,e,i)=>"function"==typeof i?i(t,e):"string"==typeof i?t[i]===e[i]:Array.isArray(e)?e.includes(t):t===e,kg=(t,e,i)=>void 0!==t&&(Array.isArray(t)?t.some((t=>yg(t,e,i))):yg(t,e,i)),Cg=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=is(this,"ionStyle",7),this.ionFocus=is(this,"ionFocus",7),this.ionBlur=is(this,"ionBlur",7),this.inputId="ion-rb-"+Eg++,this.radioGroup=null,this.hasLoggedDeprecationWarning=!1,this.updateState=()=>{if(this.radioGroup){const{compareWith:t,value:e}=this.radioGroup;this.checked=kg(e,this.value,t)}},this.onClick=()=>{const{radioGroup:t,checked:e,disabled:i}=this;i||(this.legacyFormController.hasLegacyControl()?this.checked=this.nativeInput.checked:e&&(null==t?void 0:t.allowEmptySelection)?this.checked=!1:this.checked=!0)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.checked=!1,this.buttonTabindex=-1,this.color=void 0,this.name=this.inputId,this.disabled=!1,this.value=void 0,this.labelPlacement="start",this.legacy=void 0,this.justify="space-between",this.alignment="center"}valueChanged(){this.updateState()}async setFocus(t){t.stopPropagation(),t.preventDefault(),this.el.focus()}async setButtonTabindex(t){this.buttonTabindex=t}connectedCallback(){this.legacyFormController=cc(this.el),void 0===this.value&&(this.value=this.inputId);const t=this.radioGroup=this.el.closest("ion-radio-group");t&&(this.updateState(),xl(t,"ionValueChange",this.updateState))}disconnectedCallback(){const t=this.radioGroup;t&&(wl(t,"ionValueChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}styleChanged(){this.emitStyle()}emitStyle(){const t={"interactive-disabled":this.disabled,legacy:!!this.legacy};this.legacyFormController.hasLegacyControl()&&(t["radio-checked"]=this.checked),this.ionStyle.emit(t)}get hasLabel(){return""!==this.el.textContent}renderRadioControl(){return Ka("div",{class:"radio-icon",part:"container"},Ka("div",{class:"radio-inner",part:"mark"}),Ka("div",{class:"radio-ripple"}))}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyRadio():this.renderRadio()}renderRadio(){const{checked:t,disabled:e,color:i,el:o,justify:n,labelPlacement:r,hasLabel:a,buttonTabindex:s,alignment:l}=this,d=rd(this),c=jd("ion-item",o);return Ka(Ja,{onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:Md(i,{[d]:!0,"in-item":c,"radio-checked":t,"radio-disabled":e,[`radio-justify-${n}`]:!0,[`radio-alignment-${l}`]:!0,[`radio-label-placement-${r}`]:!0,"ion-activatable":!c,"ion-focusable":!c}),role:"radio","aria-checked":t?"true":"false","aria-disabled":e?"true":null,tabindex:s},Ka("label",{class:"radio-wrapper"},Ka("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!a},part:"label"},Ka("slot",null)),Ka("div",{class:"native-wrapper"},this.renderRadioControl())))}renderLegacyRadio(){this.hasLoggedDeprecationWarning||(Sd('ion-radio now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Option Label\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&Sd('ion-radio is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new radio syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{inputId:t,disabled:e,checked:i,color:o,el:n,buttonTabindex:r}=this,a=rd(this),{label:s,labelId:l,labelText:d}=Sl(n,t);return Ka(Ja,{"aria-checked":`${i}`,"aria-hidden":e?"true":null,"aria-labelledby":s?l:null,role:"radio",tabindex:r,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:Md(o,{[a]:!0,"in-item":jd("ion-item",n),interactive:!0,"radio-checked":i,"radio-disabled":e,"legacy-radio":!0})},this.renderRadioControl(),Ka("label",{htmlFor:t},d),Ka("input",{type:"radio",checked:i,disabled:e,tabindex:"-1",id:t,ref:t=>this.nativeInput=t}))}get el(){return this}static get watchers(){return{value:["valueChanged"],checked:["styleChanged"],color:["styleChanged"],disabled:["styleChanged"]}}static get style(){return{ios:':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color-checked:var(--ion-color-primary, #3880ff)}:host(.legacy-radio){width:0.9375rem;height:1.5rem}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{-webkit-margin-start:0;margin-inline-start:0}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.125rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}@supports (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{inset-inline-start:-9px}}@supports not (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{left:-9px}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}@supports selector(:dir(rtl)){:host(.ion-focused:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-9px}}}:host(.in-item.legacy-radio){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:11px;margin-inline-end:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px;margin-top:8px;margin-bottom:8px}.native-wrapper .radio-icon{width:0.9375rem;height:1.5rem}',md:':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--border-width:0.125rem;--border-style:solid;--border-radius:50%}:host(.legacy-radio){width:1.25rem;height:1.25rem}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}:host(.legacy-radio.radio-disabled),:host(.radio-disabled) .label-text-wrapper{opacity:0.38}:host(.radio-disabled) .native-wrapper{opacity:0.63}:host(.ion-focused.legacy-radio) .radio-icon::after{top:-12px}@supports (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{inset-inline-start:-12px}}@supports not (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{left:-12px}:host-context([dir=rtl]):host(.ion-focused.legacy-radio) .radio-icon::after,:host-context([dir=rtl]).ion-focused.legacy-radio .radio-icon::after{left:unset;right:unset;right:-12px}@supports selector(:dir(rtl)){:host(.ion-focused.legacy-radio:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-12px}}}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host(.in-item.legacy-radio){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:11px;margin-bottom:10px}.native-wrapper .radio-icon{width:1.25rem;height:1.25rem}'}}},[33,"ion-radio",{color:[513],name:[1],disabled:[4],value:[8],labelPlacement:[1,"label-placement"],legacy:[4],justify:[1],alignment:[1],checked:[32],buttonTabindex:[32],setFocus:[64],setButtonTabindex:[64]},void 0,{value:["valueChanged"],checked:["styleChanged"],color:["styleChanged"],disabled:["styleChanged"]}]);let Eg=0;function zg(){"undefined"!=typeof customElements&&["ion-radio"].forEach((t=>{"ion-radio"===t&&(customElements.get(t)||customElements.define(t,Cg))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Sg=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.ionChange=is(this,"ionChange",7),this.ionValueChange=is(this,"ionValueChange",7),this.inputId="ion-rg-"+Ag++,this.labelId=`${this.inputId}-lbl`,this.setRadioTabindex=t=>{const e=this.getRadios(),i=e.find((t=>!t.disabled)),o=e.find((e=>e.value===t&&!e.disabled));if(!i&&!o)return;const n=o||i;for(const r of e){const t=r===n?0:-1;r.setButtonTabindex(t)}},this.onClick=t=>{t.preventDefault();const e=t.target&&t.target.closest("ion-radio");if(e&&!1===e.disabled){const i=this.value,o=e.value;o!==i?(this.value=o,this.emitValueChange(t)):this.allowEmptySelection&&(this.value=void 0,this.emitValueChange(t))}},this.allowEmptySelection=!1,this.compareWith=void 0,this.name=this.inputId,this.value=void 0}valueChanged(t){this.setRadioTabindex(t),this.ionValueChange.emit({value:t})}componentDidLoad(){this.valueChanged(this.value)}async connectedCallback(){const t=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(t){const e=this.label=t.querySelector("ion-label");e&&(this.labelId=e.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}emitValueChange(t){const{value:e}=this;this.ionChange.emit({value:e,event:t})}onKeydown(t){const e=!!this.el.closest("ion-select-popover");if(t.target&&!this.el.contains(t.target))return;const i=this.getRadios().filter((t=>!t.disabled));if(t.target&&i.includes(t.target)){const o=i.findIndex((e=>e===t.target)),n=i[o];let r;if(["ArrowDown","ArrowRight"].includes(t.key)&&(r=o===i.length-1?i[0]:i[o+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(r=0===o?i[i.length-1]:i[o-1]),r&&i.includes(r)&&(r.setFocus(t),e||(this.value=r.value,this.emitValueChange(t))),[" "].includes(t.key)){const e=this.value;this.value=this.allowEmptySelection&&void 0!==this.value?void 0:n.value,(e!==this.value||this.allowEmptySelection)&&this.emitValueChange(t),t.preventDefault()}}}render(){const{label:t,labelId:e,el:i,name:o,value:n}=this,r=rd(this);return Al(!0,i,o,n,!1),Ka(Ja,{role:"radiogroup","aria-labelledby":t?e:null,onClick:this.onClick,class:r})}get el(){return this}static get watchers(){return{value:["valueChanged"]}}},[0,"ion-radio-group",{allowEmptySelection:[4,"allow-empty-selection"],compareWith:[1,"compare-with"],name:[1],value:[1032]},[[4,"keydown","onKeydown"]],{value:["valueChanged"]}]);let Ag=0;function Ig(){"undefined"!=typeof customElements&&["ion-radio-group"].forEach((t=>{"ion-radio-group"===t&&(customElements.get(t)||customElements.define(t,Sg))}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Pg=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return Ka(Ja,{class:rd(this)},Ka("slot",null))}static get style(){return":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}"}},[1,"ion-row"]),$g=function(){"undefined"!=typeof customElements&&["ion-row"].forEach((t=>{"ion-row"===t&&(customElements.get(t)||customElements.define(t,Pg))}))},Og=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.ionInput=is(this,"ionInput",7),this.ionChange=is(this,"ionChange",7),this.ionCancel=is(this,"ionCancel",7),this.ionClear=is(this,"ionClear",7),this.ionBlur=is(this,"ionBlur",7),this.ionFocus=is(this,"ionFocus",7),this.ionStyle=is(this,"ionStyle",7),this.isCancelVisible=!1,this.shouldAlignLeft=!0,this.inputId="ion-searchbar-"+Tg++,this.onClearInput=async t=>(this.ionClear.emit(),new Promise((e=>{setTimeout((()=>{const i=this.getValue();""!==i&&(this.value="",this.emitInputChange(),t&&!this.focused&&(this.setFocus(),this.focusedValue=i)),e()}),64)}))),this.onCancelSearchbar=async t=>{t&&(t.preventDefault(),t.stopPropagation()),this.ionCancel.emit();const e=this.getValue(),i=this.focused;await this.onClearInput(),e&&!i&&this.emitValueChange(t),this.nativeInput&&this.nativeInput.blur()},this.onInput=t=>{const e=t.target;e&&(this.value=e.value),this.emitInputChange(t)},this.onChange=t=>{this.emitValueChange(t)},this.onBlur=t=>{this.focused=!1,this.ionBlur.emit(),this.positionElements(),this.focusedValue!==this.value&&this.emitValueChange(t),this.focusedValue=void 0},this.onFocus=()=>{this.focused=!0,this.focusedValue=this.value,this.ionFocus.emit(),this.positionElements()},this.focused=!1,this.noAnimate=!0,this.color=void 0,this.animated=!1,this.autocomplete="off",this.autocorrect="off",this.cancelButtonIcon=Hl.get("backButtonIcon",Dl),this.cancelButtonText="Cancel",this.clearIcon=void 0,this.debounce=void 0,this.disabled=!1,this.inputmode=void 0,this.enterkeyhint=void 0,this.name=this.inputId,this.placeholder="Search",this.searchIcon=void 0,this.showCancelButton="never",this.showClearButton="always",this.spellcheck=!1,this.type="search",this.value=""}debounceChanged(){const{ionInput:t,debounce:e,originalIonInput:i}=this;this.ionInput=void 0===e?null!=i?i:t:Ol(t,e)}valueChanged(){const t=this.nativeInput,e=this.getValue();t&&t.value!==e&&(t.value=e)}showCancelButtonChanged(){requestAnimationFrame((()=>{this.positionElements(),Ds(this)}))}connectedCallback(){this.emitStyle()}componentDidLoad(){this.originalIonInput=this.ionInput,this.positionElements(),this.debounceChanged(),setTimeout((()=>{this.noAnimate=!1}),300)}emitStyle(){this.ionStyle.emit({searchbar:!0})}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async getInputElement(){return this.nativeInput||await new Promise((t=>ul(this.el,t))),Promise.resolve(this.nativeInput)}emitValueChange(t){const{value:e}=this,i=null==e?e:e.toString();this.focusedValue=i,this.ionChange.emit({value:i,event:t})}emitInputChange(t){const{value:e}=this;this.ionInput.emit({value:e,event:t})}positionElements(){const t=this.getValue(),e=this.shouldAlignLeft,i=rd(this),o=!this.animated||""!==t.trim()||!!this.focused;this.shouldAlignLeft=o,"ios"===i&&(e!==o&&this.positionPlaceholder(),this.animated&&this.positionCancelButton())}positionPlaceholder(){const t=this.nativeInput;if(!t)return;const e=Ec(this.el),i=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft)t.removeAttribute("style"),i.removeAttribute("style");else{const o=document,n=o.createElement("span");n.innerText=this.placeholder||"",o.body.appendChild(n),kl((()=>{const o=n.offsetWidth;n.remove();const r="calc(50% - "+o/2+"px)",a="calc(50% - "+(o/2+i.clientWidth+8)+"px)";e?(t.style.paddingRight=r,i.style.marginRight=a):(t.style.paddingLeft=r,i.style.marginLeft=a)}))}}positionCancelButton(){const t=Ec(this.el),e=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button"),i=this.shouldShowCancelButton();if(null!==e&&i!==this.isCancelVisible){const o=e.style;if(this.isCancelVisible=i,i)t?o.marginLeft="0":o.marginRight="0";else{const i=e.offsetWidth;i>0&&(t?o.marginLeft=-i+"px":o.marginRight=-i+"px")}}}getValue(){return this.value||""}hasValue(){return""!==this.getValue()}shouldShowCancelButton(){return!("never"===this.showCancelButton||"focus"===this.showCancelButton&&!this.focused)}shouldShowClearButton(){return!("never"===this.showClearButton||"focus"===this.showClearButton&&!this.focused)}render(){const{cancelButtonText:t}=this,e=this.animated&&Hl.getBoolean("animated",!0),i=rd(this),o=this.clearIcon||("ios"===i?Vl:Rl),n=this.searchIcon||("ios"===i?"data:image/svg+xml;utf8,":"data:image/svg+xml;utf8,"),r=this.shouldShowCancelButton(),a="never"!==this.showCancelButton&&Ka("button",{"aria-label":t,"aria-hidden":r?void 0:"true",type:"button",tabIndex:"ios"!==i||r?void 0:-1,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},Ka("div",{"aria-hidden":"true"},"md"===i?Ka("ion-icon",{"aria-hidden":"true",mode:i,icon:this.cancelButtonIcon,lazy:!1}):t));return Ka(Ja,{role:"search","aria-disabled":this.disabled?"true":null,class:Md(this.color,{[i]:!0,"searchbar-animated":e,"searchbar-disabled":this.disabled,"searchbar-no-animate":e&&this.noAnimate,"searchbar-has-value":this.hasValue(),"searchbar-left-aligned":this.shouldAlignLeft,"searchbar-has-focus":this.focused,"searchbar-should-show-clear":this.shouldShowClearButton(),"searchbar-should-show-cancel":this.shouldShowCancelButton()})},Ka("div",{class:"searchbar-input-container"},Ka("input",{"aria-label":"search text",disabled:this.disabled,ref:t=>this.nativeInput=t,class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,name:this.name,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck}),"md"===i&&a,Ka("ion-icon",{"aria-hidden":"true",mode:i,icon:n,lazy:!1,class:"searchbar-search-icon"}),Ka("button",{"aria-label":"reset",type:"button","no-blur":!0,class:"searchbar-clear-button",onPointerDown:t=>{t.preventDefault()},onClick:()=>this.onClearInput(!0)},Ka("ion-icon",{"aria-hidden":"true",mode:i,icon:o,lazy:!1,class:"searchbar-clear-icon"}))),"ios"===i&&a)}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}}static get style(){return{ios:".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #3880ff);--clear-button-color:var(--ion-color-step-600, #666666);--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;min-height:60px;contain:content}.searchbar-input-container.sc-ion-searchbar-ios{min-height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px);top:0;position:absolute;width:1.375rem;height:100%;contain:strict}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{inset-inline-start:5px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{left:5px}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}[dir=rtl].sc-ion-searchbar-ios .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;right:5px}}}.searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:6px;padding-bottom:6px;height:100%;font-size:1.0625rem;font-weight:400;contain:strict}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem;-webkit-padding-end:1.75rem;padding-inline-end:1.75rem}.searchbar-clear-button.sc-ion-searchbar-ios{top:0;background-position:center;position:absolute;width:1.875rem;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{inset-inline-end:0}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{right:0}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}[dir=rtl].sc-ion-searchbar-ios .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;left:0}}}.searchbar-clear-icon.sc-ion-searchbar-ios{width:1.125rem;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0;background-color:transparent;font-size:16px}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:0;margin-inline-start:0}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.875rem;padding-inline-start:1.875rem}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-transition:all 300ms ease;transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-margin-end:-100%;margin-inline-end:-100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:all 300ms ease;transition:all 300ms ease;opacity:0;pointer-events:none}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-transition-duration:0ms;transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;min-height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}",md:".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, #1a1a1a);--clear-button-color:initial;--color:var(--ion-color-step-850, #262626);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;background:inherit}.searchbar-search-icon.sc-ion-searchbar-md{top:11px;width:1.3125rem;height:1.3125rem}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{inset-inline-start:16px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{left:16px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}[dir=rtl].sc-ion-searchbar-md .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:16px}}}.searchbar-cancel-button.sc-ion-searchbar-md{top:0;background-color:transparent;font-size:1.5em}@supports (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{inset-inline-start:9px}}@supports not (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{left:9px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}[dir=rtl].sc-ion-searchbar-md .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}@supports selector(:dir(rtl)){.searchbar-cancel-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:9px}}}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{-webkit-padding-start:3.4375rem;padding-inline-start:3.4375rem;-webkit-padding-end:3.4375rem;padding-inline-end:3.4375rem;padding-top:0.375rem;padding-bottom:0.375rem;background-position:left 8px center;height:auto;font-size:1rem;font-weight:400;line-height:30px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}@supports selector(:dir(rtl)){.searchbar-input.sc-ion-searchbar-md:dir(rtl){background-position:right 8px center}}.searchbar-clear-button.sc-ion-searchbar-md{top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{inset-inline-end:13px}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{right:13px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}[dir=rtl].sc-ion-searchbar-md .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;left:13px}}}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:1.375rem;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:3px;padding-bottom:3px}"}}},[34,"ion-searchbar",{color:[513],animated:[4],autocomplete:[1],autocorrect:[1],cancelButtonIcon:[1,"cancel-button-icon"],cancelButtonText:[1,"cancel-button-text"],clearIcon:[1,"clear-icon"],debounce:[2],disabled:[4],inputmode:[1],enterkeyhint:[1],name:[1],placeholder:[1],searchIcon:[1,"search-icon"],showCancelButton:[1,"show-cancel-button"],showClearButton:[1,"show-clear-button"],spellcheck:[4],type:[1],value:[1025],focused:[32],noAnimate:[32],setFocus:[64],getInputElement:[64]},void 0,{debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}]);let Tg=0;const Lg=function(){"undefined"!=typeof customElements&&["ion-searchbar","ion-icon"].forEach((t=>{switch(t){case"ion-searchbar":customElements.get(t)||customElements.define(t,Og);break;case"ion-icon":customElements.get(t)||kd()}}))},Dg=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=is(this,"ionChange",7),this.ionSelect=is(this,"ionSelect",7),this.ionStyle=is(this,"ionStyle",7),this.onClick=t=>{const e=t.target,i=this.checked;"ION-SEGMENT"!==e.tagName&&(this.value=e.value,e!==i&&this.emitValueChange(),!this.scrollable&&this.swipeGesture||(i?this.checkButton(i,e):this.setCheckedClasses()))},this.getSegmentButton=t=>{var e,i;const o=this.getButtons().filter((t=>!t.disabled)),n=o.findIndex((t=>t===document.activeElement));switch(t){case"first":return o[0];case"last":return o[o.length-1];case"next":return null!==(e=o[n+1])&&void 0!==e?e:o[0];case"previous":return null!==(i=o[n-1])&&void 0!==i?i:o[o.length-1];default:return null}},this.activated=!1,this.color=void 0,this.disabled=!1,this.scrollable=!1,this.swipeGesture=!0,this.value=void 0,this.selectOnFocus=!1}colorChanged(t,e){(void 0===e&&void 0!==t||void 0!==e&&void 0===t)&&this.emitStyle()}swipeGestureChanged(){this.gestureChanged()}valueChanged(t){this.ionSelect.emit({value:t}),this.scrollActiveButtonIntoView()}disabledChanged(){this.gestureChanged();const t=this.getButtons();for(const e of t)e.disabled=this.disabled}gestureChanged(){this.gesture&&this.gesture.enable(!this.scrollable&&!this.disabled&&this.swipeGesture)}connectedCallback(){this.emitStyle()}componentWillLoad(){this.emitStyle()}async componentDidLoad(){this.setCheckedClasses(),kl((()=>{this.scrollActiveButtonIntoView(!1)})),this.gesture=(await Pa((()=>Promise.resolve().then((()=>Gg))))).createGesture({el:this.el,gestureName:"segment",gesturePriority:100,threshold:0,passive:!1,onStart:t=>this.onStart(t),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.gestureChanged(),this.disabled&&this.disabledChanged()}onStart(t){this.valueBeforeGesture=this.value,this.activate(t)}onMove(t){this.setNextIndex(t)}onEnd(t){this.setActivated(!1),this.setNextIndex(t,!0),t.event.stopImmediatePropagation();const e=this.value;void 0!==e&&this.valueBeforeGesture!==e&&this.emitValueChange(),this.valueBeforeGesture=void 0}emitValueChange(){const{value:t}=this;this.ionChange.emit({value:t})}getButtons(){return Array.from(this.el.querySelectorAll("ion-segment-button"))}get checked(){return this.getButtons().find((t=>t.value===this.value))}setActivated(t){this.getButtons().forEach((e=>{t?e.classList.add("segment-button-activated"):e.classList.remove("segment-button-activated")})),this.activated=t}activate(t){const e=t.event.target,i=this.getButtons().find((t=>t.value===this.value));"ION-SEGMENT-BUTTON"===e.tagName&&(i||(this.value=e.value,this.setCheckedClasses()),this.value===e.value&&this.setActivated(!0))}getIndicator(t){return(t.shadowRoot||t).querySelector(".segment-button-indicator")}checkButton(t,e){const i=this.getIndicator(t),o=this.getIndicator(e);if(null===i||null===o)return;const n=i.getBoundingClientRect(),r=o.getBoundingClientRect(),a=n.width/r.width,s=`translate3d(${n.left-r.left}px, 0, 0) scaleX(${a})`;hl((()=>{o.classList.remove("segment-button-indicator-animated"),o.style.setProperty("transform",s),o.getBoundingClientRect(),o.classList.add("segment-button-indicator-animated"),o.style.setProperty("transform","")})),this.value=e.value,this.setCheckedClasses()}setCheckedClasses(){const t=this.getButtons(),e=t.findIndex((t=>t.value===this.value))+1;for(const i of t)i.classList.remove("segment-button-after-checked");et.value===i));if(void 0!==e){const i=o.getBoundingClientRect(),n=e.getBoundingClientRect(),r=n.x-i.x-i.width/2+n.width/2;o.scrollBy({top:0,left:r,behavior:t?"smooth":"instant"})}}}setNextIndex(t,e=!1){const i=Ec(this.el),o=this.activated,n=this.getButtons(),r=n.findIndex((t=>t.value===this.value)),a=n[r];let s,l;if(-1===r)return;const d=a.getBoundingClientRect(),c=d.left,h=d.width,p=t.currentX,m=d.top+d.height/2,u=this.el.getRootNode().elementFromPoint(p,m);if(o&&!e){if(i?p>c+h:p=0&&(l=t)}else if((i?pc+h)&&o&&!e){const t=r+1;t{"ion-segment"===t&&(customElements.get(t)||customElements.define(t,Dg))}))};let jg=0;const Mg=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.segmentEl=null,this.inheritedAttributes={},this.updateStyle=()=>{Ds(this)},this.updateState=()=>{const{segmentEl:t}=this;t&&(this.checked=t.value===this.value,t.disabled&&(this.disabled=!0))},this.checked=!1,this.disabled=!1,this.layout="icon-top",this.type="button",this.value="ion-sb-"+jg++}valueChanged(){this.updateState()}connectedCallback(){const t=this.segmentEl=this.el.closest("ion-segment");t&&(this.updateState(),xl(t,"ionSelect",this.updateState),xl(t,"ionStyle",this.updateStyle))}disconnectedCallback(){const t=this.segmentEl;t&&(wl(t,"ionSelect",this.updateState),wl(t,"ionStyle",this.updateStyle),this.segmentEl=null)}componentWillLoad(){this.inheritedAttributes=Object.assign({},bl(this.el,["aria-label"]))}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}async setFocus(){const{nativeEl:t}=this;void 0!==t&&t.focus()}render(){const{checked:t,type:e,disabled:i,hasIcon:o,hasLabel:n,layout:r,segmentEl:a}=this,s=rd(this);return Ka(Ja,{class:{[s]:!0,"in-toolbar":jd("ion-toolbar",this.el),"in-toolbar-color":jd("ion-toolbar[color]",this.el),"in-segment":jd("ion-segment",this.el),"in-segment-color":void 0!==(null==a?void 0:a.color),"segment-button-has-label":n,"segment-button-has-icon":o,"segment-button-has-label-only":n&&!o,"segment-button-has-icon-only":o&&!n,"segment-button-disabled":i,"segment-button-checked":t,[`segment-button-layout-${r}`]:!0,"ion-activatable":!0,"ion-activatable-instant":!0,"ion-focusable":!0}},Ka("button",Object.assign({"aria-selected":t?"true":"false",role:"tab",ref:t=>this.nativeEl=t,type:e,class:"button-native",part:"native",disabled:i},this.inheritedAttributes),Ka("span",{class:"button-inner"},Ka("slot",null)),"md"===s&&Ka("ion-ripple-effect",null)),Ka("div",{part:"indicator",class:{"segment-button-indicator":!0,"segment-button-indicator-animated":!0}},Ka("div",{part:"indicator-background",class:"segment-button-indicator-background"})))}get el(){return this}static get watchers(){return{value:["valueChanged"]}}static get style(){return{ios:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;-ms-flex-direction:row;flex-direction:row;min-width:70px;min-height:28px;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;-webkit-transition:160ms opacity ease-in-out;transition:160ms opacity ease-in-out;-webkit-transition-delay:100ms;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}.segment-button-indicator{-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;left:0;right:0;top:0;bottom:0}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:var(--ion-color-contrast)}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}',md:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}'}}},[33,"ion-segment-button",{disabled:[1028],layout:[1],type:[1],value:[8],checked:[32],setFocus:[64]},void 0,{value:["valueChanged"]}]),Bg=function(){"undefined"!=typeof customElements&&["ion-segment-button","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-segment-button":customElements.get(t)||customElements.define(t,Mg);break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))},Vg=(t,e,i,o)=>{const n=Rg(t)?{capture:!!o.capture,passive:!!o.passive}:!!o.capture;let r,a;return t.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(r="addEventListener",a="removeEventListener"),t[r](e,i,n),()=>{t[a](e,i,n)}},Rg=t=>{if(void 0===Fg)try{const e=Object.defineProperty({},"passive",{get:()=>{Fg=!0}});t.addEventListener("optsTest",(()=>{}),e)}catch(e){Fg=!1}return!!Fg};let Fg;const Hg=t=>t instanceof Document?t:t.ownerDocument,Ng=t("aO",(t=>{let e=!1,i=!1,o=!0,n=!1;const r=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},t),a=r.canStart,s=r.onWillStart,l=r.onStart,d=r.onEnd,c=r.notCaptured,h=r.onMove,p=r.threshold,m=r.passive,u=r.blurOnStart,g={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},b=((t,e,i)=>{const o=i*(Math.PI/180),n="x"===t,r=Math.cos(o),a=e*e;let s=0,l=0,d=!1,c=0;return{start(t,e){s=t,l=e,c=0,d=!0},detect(t,e){if(!d)return!1;const i=t-s,o=e-l,h=i*i+o*o;if(hr?1:m<-r?-1:0,d=!1,!0},isGesture:()=>0!==c,getDirection:()=>c}})(r.direction,r.threshold,r.maxAngle),f=Ld.createGesture({name:t.gestureName,priority:t.gesturePriority,disableScroll:t.disableScroll}),v=()=>{e&&(n=!1,h&&h(g))},x=()=>!!f.capture()&&(e=!0,o=!1,g.startX=g.currentX,g.startY=g.currentY,g.startTime=g.currentTime,s?s(g).then(w):w(),!0),w=()=>{u&&(()=>{if("undefined"!=typeof document){const t=document.activeElement;(null==t?void 0:t.blur)&&t.blur()}})(),l&&l(g),o=!0},y=()=>{e=!1,i=!1,n=!1,o=!0,f.release()},k=t=>{const i=e,n=o;y(),n&&(Wg(g,t),i?d&&d(g):c&&c(g))},C=((t,e,i,o,n)=>{let r,a,s,l,d,c,h,p=0;const m=o=>{p=Date.now()+2e3,e(o)&&(!a&&i&&(a=Vg(t,"touchmove",i,n)),s||(s=Vg(o.target,"touchend",g,n)),l||(l=Vg(o.target,"touchcancel",g,n)))},u=o=>{p>Date.now()||e(o)&&(!c&&i&&(c=Vg(Hg(t),"mousemove",i,n)),h||(h=Vg(Hg(t),"mouseup",b,n)))},g=t=>{f(),o&&o(t)},b=t=>{v(),o&&o(t)},f=()=>{a&&a(),s&&s(),l&&l(),a=s=l=void 0},v=()=>{c&&c(),h&&h(),c=h=void 0},x=()=>{f(),v()},w=(e=!0)=>{e?(r||(r=Vg(t,"touchstart",m,n)),d||(d=Vg(t,"mousedown",u,n))):(r&&r(),d&&d(),r=d=void 0,x())};return{enable:w,stop:x,destroy:()=>{w(!1),o=i=e=void 0}}})(r.el,(t=>{const e=Yg(t);return!(i||!o)&&(qg(t,g),g.startX=g.currentX,g.startY=g.currentY,g.startTime=g.currentTime=e,g.velocityX=g.velocityY=g.deltaX=g.deltaY=0,g.event=t,(!a||!1!==a(g))&&(f.release(),!!f.start()&&(i=!0,0===p?x():(b.start(g.startX,g.startY),!0))))}),(t=>{e?!n&&o&&(n=!0,Wg(g,t),requestAnimationFrame(v)):(Wg(g,t),b.detect(g.currentX,g.currentY)&&(b.isGesture()&&x()||E()))}),k,{capture:!1,passive:m}),E=()=>{y(),C.stop(),c&&c(g)};return{enable(t=!0){t||(e&&k(void 0),y()),C.enable(t)},destroy(){f.destroy(),C.destroy()}}})),Wg=(t,e)=>{if(!e)return;const i=t.currentX,o=t.currentY,n=t.currentTime;qg(e,t);const r=t.currentX,a=t.currentY,s=(t.currentTime=Yg(e))-n;if(s>0&&s<100){const e=(r-i)/s,n=(a-o)/s;t.velocityX=.7*e+.3*t.velocityX,t.velocityY=.7*n+.3*t.velocityY}t.deltaX=r-t.startX,t.deltaY=a-t.startY,t.event=e},qg=(t,e)=>{let i=0,o=0;if(t){const e=t.changedTouches;if(e&&e.length>0){const t=e[0];i=t.clientX,o=t.clientY}else void 0!==t.pageX&&(i=t.pageX,o=t.pageY)}e.currentX=i,e.currentY=o},Yg=t=>t.timeStamp||Date.now(),Gg=Object.freeze(Object.defineProperty({__proto__:null,GESTURE_CONTROLLER:Ld,createGesture:Ng},Symbol.toStringTag,{value:"Module"})),Xg=(t,e)=>{let i,o;const n=(t,o,n)=>{if("undefined"==typeof document)return;const s=document.elementFromPoint(t,o);s&&e(s)?s!==i&&(a(),r(s,n)):a()},r=(t,e)=>{i=t,o||(o=i);const n=i;hl((()=>n.classList.add("ion-activated"))),e()},a=(t=!1)=>{if(!i)return;const e=i;hl((()=>e.classList.remove("ion-activated"))),t&&o!==i&&i.click(),i=void 0};return Ng({el:t,gestureName:"buttonActiveDrag",threshold:0,onStart:t=>n(t.currentX,t.currentY,Vh),onMove:t=>n(t.currentX,t.currentY,Rh),onEnd:()=>{a(!0),Fh(),o=void 0}})},Ug=t=>{const e=sm(),i=sm(),o=sm();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,o])},Kg=t=>{const e=sm(),i=sm(),o=sm();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([i,o])},Zg=t=>{const e=sm(),i=sm(),o=sm();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,o])},Jg=t=>{const e=sm(),i=sm(),o=sm();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([i,o])},Qg=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.didPresent=is(this,"ionActionSheetDidPresent",7),this.willPresent=is(this,"ionActionSheetWillPresent",7),this.willDismiss=is(this,"ionActionSheetWillDismiss",7),this.didDismiss=is(this,"ionActionSheetDidDismiss",7),this.didPresentShorthand=is(this,"didPresent",7),this.willPresentShorthand=is(this,"willPresent",7),this.willDismissShorthand=is(this,"willDismiss",7),this.didDismissShorthand=is(this,"didDismiss",7),this.delegateController=$p(this),this.lockController=Kh(),this.triggerController=Op(),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,Ip)},this.dispatchCancelHandler=t=>{const e=t.detail.role;if(zp(e)){const t=this.getButtons().find((t=>"cancel"===t.role));this.callButtonHandler(t)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.buttons=[],this.cssClass=void 0,this.backdropDismiss=!0,this.header=void 0,this.subHeader=void 0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:i}=this;t&&i.addClickListener(e,t)}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom(),await vp(this,"actionSheetEnter",Ug,Zg),t()}async dismiss(t,e){const i=await this.lockController.lock(),o=await wp(this,t,e,"actionSheetLeave",Kg,Jg);return o&&this.delegateController.removeViewFromDom(),i(),o}onDidDismiss(){return Cp(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return Cp(this.el,"ionActionSheetWillDismiss")}async buttonClick(t){const e=t.role;return zp(e)?this.dismiss(t.data,e):await this.callButtonHandler(t)?this.dismiss(t.data,t.role):Promise.resolve()}async callButtonHandler(t){return!t||!1!==await Ap(t.handler)}getButtons(){return this.buttons.map((t=>"string"==typeof t?{text:t}:t))}connectedCallback(){ap(this.el),this.triggerChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.triggerController.removeClickListener()}componentWillLoad(){sp(this.el)}componentDidLoad(){const{groupEl:t,wrapperEl:e}=this;!this.gesture&&"ios"===rd(this)&&e&&t&&cl((()=>{t.scrollHeight>t.clientHeight||(this.gesture=Xg(e,(t=>t.classList.contains("action-sheet-button"))),this.gesture.enable(!0))})),!0===this.isOpen&&kl((()=>this.present())),this.triggerChanged()}render(){const{header:t,htmlAttributes:e,overlayIndex:i}=this,o=rd(this),n=this.getButtons(),r=n.find((t=>"cancel"===t.role)),a=n.filter((t=>"cancel"!==t.role)),s=`action-sheet-${i}-header`;return Ka(Ja,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":void 0!==t?s:null,tabindex:"-1"},e,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[o]:!0},Bd(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),Ka("ion-backdrop",{tappable:this.backdropDismiss}),Ka("div",{tabindex:"0"}),Ka("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:t=>this.wrapperEl=t},Ka("div",{class:"action-sheet-container"},Ka("div",{class:"action-sheet-group",ref:t=>this.groupEl=t},void 0!==t&&Ka("div",{id:s,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":void 0!==this.subHeader}},t,this.subHeader&&Ka("div",{class:"action-sheet-sub-title"},this.subHeader)),a.map((t=>Ka("button",Object.assign({},t.htmlAttributes,{type:"button",id:t.id,class:tb(t),onClick:()=>this.buttonClick(t)}),Ka("span",{class:"action-sheet-button-inner"},t.icon&&Ka("ion-icon",{icon:t.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),t.text),"md"===o&&Ka("ion-ripple-effect",null))))),r&&Ka("div",{class:"action-sheet-group action-sheet-group-cancel"},Ka("button",Object.assign({},r.htmlAttributes,{type:"button",class:tb(r),onClick:()=>this.buttonClick(r)}),Ka("span",{class:"action-sheet-button-inner"},r.icon&&Ka("ion-icon",{icon:r.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),r.text),"md"===o&&Ka("ion-ripple-effect",null))))),Ka("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:'.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}.action-sheet-container.sc-ion-action-sheet-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:max(13px, 0.8125rem);font-weight:400;text-align:center}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:max(13px, 0.8125rem);font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:14px;padding-bottom:14px;min-height:56px;font-size:max(20px, 1.25rem);contain:content}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:max(28px, 1.75rem);pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',md:'.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}.action-sheet-title.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:1rem;text-align:start}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:0.875rem}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;position:relative;min-height:52px;font-size:1rem;text-align:start;contain:content;overflow:hidden}.action-sheet-icon.sc-ion-action-sheet-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:1.5rem}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}'}}},[34,"ion-action-sheet",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],buttons:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],header:[1],subHeader:[1,"sub-header"],translucent:[4],animated:[4],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),tb=t=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,[`action-sheet-${t.role}`]:void 0!==t.role},Bd(t.cssClass));function eb(){"undefined"!=typeof customElements&&["ion-action-sheet","ion-backdrop","ion-icon","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-action-sheet":customElements.get(t)||customElements.define(t,Qg);break;case"ion-backdrop":customElements.get(t)||_d();break;case"ion-icon":customElements.get(t)||kd();break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const ib=t=>{const e=sm(),i=sm(),o=sm();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]),e.addElement(t).easing("ease-in-out").duration(200).addAnimation([i,o])},ob=t=>{const e=sm(),i=sm(),o=sm();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),e.addElement(t).easing("ease-in-out").duration(200).addAnimation([i,o])},nb=t=>{const e=sm(),i=sm(),o=sm();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]),e.addElement(t).easing("ease-in-out").duration(150).addAnimation([i,o])},rb=t=>{const e=sm(),i=sm(),o=sm();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(t.querySelector(".alert-wrapper")).fromTo("opacity",.99,0),e.addElement(t).easing("ease-in-out").duration(150).addAnimation([i,o])},ab=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.didPresent=is(this,"ionAlertDidPresent",7),this.willPresent=is(this,"ionAlertWillPresent",7),this.willDismiss=is(this,"ionAlertWillDismiss",7),this.didDismiss=is(this,"ionAlertDidDismiss",7),this.didPresentShorthand=is(this,"didPresent",7),this.willPresentShorthand=is(this,"willPresent",7),this.willDismissShorthand=is(this,"willDismiss",7),this.didDismissShorthand=is(this,"didDismiss",7),this.delegateController=$p(this),this.lockController=Kh(),this.triggerController=Op(),this.customHTMLEnabled=Hl.get("innerHTMLTemplatesEnabled",!1),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,Ip)},this.dispatchCancelHandler=t=>{const e=t.detail.role;if(zp(e)){const t=this.processedButtons.find((t=>"cancel"===t.role));this.callButtonHandler(t)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.header=void 0,this.subHeader=void 0,this.message=void 0,this.buttons=[],this.inputs=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:i}=this;t&&i.addClickListener(e,t)}onKeydown(t){const e=new Set(this.processedInputs.map((t=>t.type)));if(e.has("checkbox")&&"Enter"===t.key)return void t.preventDefault();if(!e.has("radio")||t.target&&!this.el.contains(t.target)||t.target.classList.contains("alert-button"))return;const i=this.el.querySelectorAll(".alert-radio"),o=Array.from(i).filter((t=>!t.disabled)),n=o.findIndex((e=>e.id===t.target.id));let r;if(["ArrowDown","ArrowRight"].includes(t.key)&&(r=n===o.length-1?o[0]:o[n+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(r=0===n?o[o.length-1]:o[n-1]),r&&o.includes(r)){const t=this.processedInputs.find((t=>t.id===(null==r?void 0:r.id)));t&&(this.rbClick(t),r.focus())}}buttonsChanged(){const t=this.buttons;this.processedButtons=t.map((t=>"string"==typeof t?{text:t,role:"cancel"===t.toLowerCase()?"cancel":void 0}:t))}inputsChanged(){const t=this.inputs,e=t.find((t=>!t.disabled)),i=t.find((t=>t.checked&&!t.disabled))||e,o=new Set(t.map((t=>t.type)));o.has("checkbox")&&o.has("radio")&&console.warn(`Alert cannot mix input types: ${Array.from(o.values()).join("/")}. Please see alert docs for more info.`),this.inputType=o.values().next().value,this.processedInputs=t.map(((t,e)=>{var o;return{type:t.type||"text",name:t.name||`${e}`,placeholder:t.placeholder||"",value:t.value,label:t.label,checked:!!t.checked,disabled:!!t.disabled,id:t.id||`alert-input-${this.overlayIndex}-${e}`,handler:t.handler,min:t.min,max:t.max,cssClass:null!==(o=t.cssClass)&&void 0!==o?o:"",attributes:t.attributes||{},tabindex:"radio"===t.type&&t!==i?-1:0}}))}connectedCallback(){ap(this.el),this.triggerChanged()}componentWillLoad(){sp(this.el),this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.triggerController.removeClickListener(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){!this.gesture&&"ios"===rd(this)&&this.wrapperEl&&(this.gesture=Xg(this.wrapperEl,(t=>t.classList.contains("alert-button"))),this.gesture.enable(!0)),!0===this.isOpen&&kl((()=>this.present())),this.triggerChanged()}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom(),await vp(this,"alertEnter",ib,nb),t()}async dismiss(t,e){const i=await this.lockController.lock(),o=await wp(this,t,e,"alertLeave",ob,rb);return o&&this.delegateController.removeViewFromDom(),i(),o}onDidDismiss(){return Cp(this.el,"ionAlertDidDismiss")}onWillDismiss(){return Cp(this.el,"ionAlertWillDismiss")}rbClick(t){for(const e of this.processedInputs)e.checked=e===t,e.tabindex=e===t?0:-1;this.activeId=t.id,Ap(t.handler,t),Ds(this)}cbClick(t){t.checked=!t.checked,Ap(t.handler,t),Ds(this)}async buttonClick(t){const e=t.role,i=this.getValues();if(zp(e))return this.dismiss({values:i},e);const o=await this.callButtonHandler(t,i);return!1!==o&&this.dismiss(Object.assign({values:i},o),t.role)}async callButtonHandler(t,e){if(null==t?void 0:t.handler){const i=await Ap(t.handler,e);if(!1===i)return!1;if("object"==typeof i)return i}return{}}getValues(){if(0===this.processedInputs.length)return;if("radio"===this.inputType){const t=this.processedInputs.find((t=>!!t.checked));return t?t.value:void 0}if("checkbox"===this.inputType)return this.processedInputs.filter((t=>t.checked)).map((t=>t.value));const t={};return this.processedInputs.forEach((e=>{t[e.name]=e.value||""})),t}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const t=this.processedInputs,e=rd(this);return 0===t.length?null:Ka("div",{class:"alert-checkbox-group"},t.map((t=>Ka("button",{type:"button",onClick:()=>this.cbClick(t),"aria-checked":`${t.checked}`,id:t.id,disabled:t.disabled,tabIndex:t.tabindex,role:"checkbox",class:Object.assign(Object.assign({},Bd(t.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":t.disabled||!1})},Ka("div",{class:"alert-button-inner"},Ka("div",{class:"alert-checkbox-icon"},Ka("div",{class:"alert-checkbox-inner"})),Ka("div",{class:"alert-checkbox-label"},t.label)),"md"===e&&Ka("ion-ripple-effect",null)))))}renderRadio(){const t=this.processedInputs;return 0===t.length?null:Ka("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},t.map((t=>Ka("button",{type:"button",onClick:()=>this.rbClick(t),"aria-checked":`${t.checked}`,disabled:t.disabled,id:t.id,tabIndex:t.tabindex,class:Object.assign(Object.assign({},Bd(t.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":t.disabled||!1}),role:"radio"},Ka("div",{class:"alert-button-inner"},Ka("div",{class:"alert-radio-icon"},Ka("div",{class:"alert-radio-inner"})),Ka("div",{class:"alert-radio-label"},t.label))))))}renderInput(){const t=this.processedInputs;return 0===t.length?null:Ka("div",{class:"alert-input-group"},t.map((t=>{var e,i,o,n;return"textarea"===t.type?Ka("div",{class:"alert-input-wrapper"},Ka("textarea",Object.assign({placeholder:t.placeholder,value:t.value,id:t.id,tabIndex:t.tabindex},t.attributes,{disabled:null!==(i=null===(e=t.attributes)||void 0===e?void 0:e.disabled)&&void 0!==i?i:t.disabled,class:sb(t),onInput:e=>{var i;t.value=e.target.value,(null===(i=t.attributes)||void 0===i?void 0:i.onInput)&&t.attributes.onInput(e)}}))):Ka("div",{class:"alert-input-wrapper"},Ka("input",Object.assign({placeholder:t.placeholder,type:t.type,min:t.min,max:t.max,value:t.value,id:t.id,tabIndex:t.tabindex},t.attributes,{disabled:null!==(n=null===(o=t.attributes)||void 0===o?void 0:o.disabled)&&void 0!==n?n:t.disabled,class:sb(t),onInput:e=>{var i;t.value=e.target.value,(null===(i=t.attributes)||void 0===i?void 0:i.onInput)&&t.attributes.onInput(e)}})))})))}renderAlertButtons(){const t=this.processedButtons,e=rd(this),i={"alert-button-group":!0,"alert-button-group-vertical":t.length>2};return Ka("div",{class:i},t.map((t=>Ka("button",Object.assign({},t.htmlAttributes,{type:"button",id:t.id,class:lb(t),tabIndex:0,onClick:()=>this.buttonClick(t)}),Ka("span",{class:"alert-button-inner"},t.text),"md"===e&&Ka("ion-ripple-effect",null)))))}renderAlertMessage(t){const{customHTMLEnabled:e,message:i}=this;return e?Ka("div",{id:t,class:"alert-message",innerHTML:du(i)}):Ka("div",{id:t,class:"alert-message"},i)}render(){const{overlayIndex:t,header:e,subHeader:i,message:o,htmlAttributes:n}=this,r=rd(this),a=`alert-${t}-hdr`,s=`alert-${t}-sub-hdr`,l=`alert-${t}-msg`,d=this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert",c=e?a:i?s:null;return Ka(Ja,Object.assign({role:d,"aria-modal":"true","aria-labelledby":c,"aria-describedby":void 0!==o?l:null,tabindex:"-1"},n,{style:{zIndex:`${2e4+t}`},class:Object.assign(Object.assign({},Bd(this.cssClass)),{[r]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),Ka("ion-backdrop",{tappable:this.backdropDismiss}),Ka("div",{tabindex:"0"}),Ka("div",{class:"alert-wrapper ion-overlay-wrapper",ref:t=>this.wrapperEl=t},Ka("div",{class:"alert-head"},e&&Ka("h2",{id:a,class:"alert-title"},e),i&&Ka("h2",{id:s,class:"alert-sub-title"},i)),this.renderAlertMessage(l),this.renderAlertInputs(),this.renderAlertButtons()),Ka("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"],buttons:["buttonsChanged"],inputs:["inputsChanged"]}}static get style(){return{ios:".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-ios,.alert-radio-label.sc-ion-alert-ios{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:clamp(270px, 16.875rem, 324px);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:max(14px, 0.875rem)}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:7px;text-align:center}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:max(17px, 1.0625rem);font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:max(14px, 0.875rem)}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:max(13px, 0.8125rem);text-align:center}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-input.sc-ion-alert-ios::-webkit-date-and-time-value{height:18px}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{-ms-scroll-chaining:none;overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{min-height:44px}.alert-radio-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;-ms-flex-order:0;order:0;color:var(--ion-text-color, #000)}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;-ms-flex-order:1;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{top:-7px;position:absolute;width:6px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{inset-inline-start:7px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:7px}}}.alert-checkbox-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-text-color, #000)}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px;margin-top:10px;margin-bottom:10px;position:relative;width:min(1.5rem, 66px);height:min(1.5rem, 66px);border-width:0.0625rem;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{top:calc(min(1.5rem, 66px) / 6);position:absolute;width:calc(min(1.5rem, 66px) / 6 + 1px);height:calc(min(1.5rem, 66px) * 0.5);-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.0625rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{inset-inline-start:calc(min(1.5rem, 66px) / 3 + 1px)}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}}}.alert-button-group.sc-ion-alert-ios{-webkit-margin-end:-0.55px;margin-inline-end:-0.55px;-ms-flex-wrap:wrap;flex-wrap:wrap}.alert-button.sc-ion-alert-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;-ms-flex:1 1 auto;flex:1 1 auto;min-width:50%;height:max(44px, 2.75rem);border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:max(17px, 1.0625rem);overflow:hidden}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child{border-right:0}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:first-child:dir(rtl){border-right:0}}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:last-child:dir(rtl){border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}",md:".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-md,.alert-radio-label.sc-ion-alert-md{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:0.875rem}.alert-wrapper.sc-ion-alert-md{border-radius:4px;-webkit-box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px;padding-top:20px;padding-bottom:15px;text-align:start}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1.25rem;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1rem}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}.alert-message.sc-ion-alert-md{font-size:1rem}@media screen and (max-width: 767px){.alert-message.sc-ion-alert-md{max-height:266px}}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}@media screen and (max-width: 767px){.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{max-height:266px}}.alert-tappable.sc-ion-alert-md{position:relative;min-height:48px}.alert-radio-label.sc-ion-alert-md{-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-radio-icon.sc-ion-alert-md{top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}@supports (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-radio-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}.alert-radio-inner.sc-ion-alert-md{top:3px;border-radius:50%;position:absolute;width:10px;height:10px;-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.alert-radio-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;width:calc(100% - 53px);color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-checkbox-icon.sc-ion-alert-md{top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}@supports (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-checkbox-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{top:0;position:absolute;width:6px;height:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}.alert-button-group.sc-ion-alert-md{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}.alert-button.sc-ion-alert-md{border-radius:2px;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:0;margin-bottom:0;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}.alert-button-inner.sc-ion-alert-md{-ms-flex-pack:end;justify-content:flex-end}@media screen and (min-width: 768px){.sc-ion-alert-md-h{--max-width:min(100vw - 96px, 560px);--max-height:min(100vh - 96px, 560px)}}"}}},[34,"ion-alert",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],header:[1],subHeader:[1,"sub-header"],message:[1],buttons:[16],inputs:[1040],backdropDismiss:[4,"backdrop-dismiss"],translucent:[4],animated:[4],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},[[4,"keydown","onKeydown"]],{isOpen:["onIsOpenChange"],trigger:["triggerChanged"],buttons:["buttonsChanged"],inputs:["inputsChanged"]}]),sb=t=>{var e,i,o;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":(null!==(i=null===(e=t.attributes)||void 0===e?void 0:e.disabled)&&void 0!==i?i:t.disabled)||!1},Bd(t.cssClass)),Bd(t.attributes?null===(o=t.attributes.class)||void 0===o?void 0:o.toString():""))},lb=t=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,[`alert-button-role-${t.role}`]:void 0!==t.role},Bd(t.cssClass));function db(){"undefined"!=typeof customElements&&["ion-alert","ion-backdrop","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-alert":customElements.get(t)||customElements.define(t,ab);break;case"ion-backdrop":customElements.get(t)||_d();break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))} +/*! + * (C) Ionic http://ionicframework.com - MIT License + */const cb=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.header=void 0,this.subHeader=void 0,this.message=void 0,this.multiple=void 0,this.options=[]}findOptionFromEvent(t){const{options:e}=this;return e.find((e=>e.value===t.target.value))}callOptionHandler(t){const e=this.findOptionFromEvent(t),i=this.getValues(t);(null==e?void 0:e.handler)&&Ap(e.handler,i)}dismissParentPopover(){const t=this.el.closest("ion-popover");t&&t.dismiss()}setChecked(t){const{multiple:e}=this,i=this.findOptionFromEvent(t);e&&i&&(i.checked=t.detail.checked)}getValues(t){const{multiple:e,options:i}=this;if(e)return i.filter((t=>t.checked)).map((t=>t.value));const o=this.findOptionFromEvent(t);return o?o.value:void 0}renderOptions(t){const{multiple:e}=this;return!0===e?this.renderCheckboxOptions(t):this.renderRadioOptions(t)}renderCheckboxOptions(t){return t.map((t=>Ka("ion-item",{class:Object.assign({"item-checkbox-checked":t.checked},Bd(t.cssClass))},Ka("ion-checkbox",{value:t.value,disabled:t.disabled,checked:t.checked,justify:"start",labelPlacement:"end",onIonChange:t=>{this.setChecked(t),this.callOptionHandler(t),Ds(this)}},t.text))))}renderRadioOptions(t){const e=t.filter((t=>t.checked)).map((t=>t.value))[0];return Ka("ion-radio-group",{value:e,onIonChange:t=>this.callOptionHandler(t)},t.map((t=>Ka("ion-item",{class:Object.assign({"item-radio-checked":t.value===e},Bd(t.cssClass))},Ka("ion-radio",{value:t.value,disabled:t.disabled,onClick:()=>this.dismissParentPopover(),onKeyUp:t=>{" "===t.key&&this.dismissParentPopover()}},t.text)))))}render(){const{header:t,message:e,options:i,subHeader:o}=this,n=void 0!==o||void 0!==e;return Ka(Ja,{class:rd(this)},Ka("ion-list",null,void 0!==t&&Ka("ion-list-header",null,t),n&&Ka("ion-item",null,Ka("ion-label",{class:"ion-text-wrap"},void 0!==o&&Ka("h3",null,o),void 0!==e&&Ka("p",null,e))),this.renderOptions(i)))}get el(){return this}static get style(){return{ios:".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",md:".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(container){opacity:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08);--background-focused:var(--ion-color-primary, #3880ff);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #3880ff);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #3880ff)}"}}},[34,"ion-select-popover",{header:[1],subHeader:[1,"sub-header"],message:[1],multiple:[4],options:[16]}]),hb=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=is(this,"ionChange",7),this.ionCancel=is(this,"ionCancel",7),this.ionDismiss=is(this,"ionDismiss",7),this.ionFocus=is(this,"ionFocus",7),this.ionBlur=is(this,"ionBlur",7),this.ionStyle=is(this,"ionStyle",7),this.inputId="ion-sel-"+bb++,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.onClick=t=>{const e=t.target,i=e.closest('[slot="start"], [slot="end"]');e===this.el||null===i?(this.setFocus(),this.open(t)):(t.stopPropagation(),t.preventDefault())},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.isExpanded=!1,this.cancelText="Cancel",this.color=void 0,this.compareWith=void 0,this.disabled=!1,this.fill=void 0,this.interface="alert",this.interfaceOptions={},this.justify="space-between",this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.multiple=!1,this.name=this.inputId,this.okText="OK",this.placeholder=void 0,this.selectedText=void 0,this.toggleIcon=void 0,this.expandedIcon=void 0,this.shape=void 0,this.value=void 0}styleChanged(){this.emitStyle()}setValue(t){this.value=t,this.ionChange.emit({value:t})}componentWillLoad(){this.inheritedAttributes=bl(this.el,["aria-label"])}async connectedCallback(){const{el:t}=this;this.legacyFormController=cc(t),this.notchController=bu(t,(()=>this.notchSpacerEl),(()=>this.labelSlot)),this.updateOverlayOptions(),this.emitStyle(),this.mutationO=Tu(this.el,"ion-select-option",(async()=>{this.updateOverlayOptions(),Ds(this)}))}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}async open(t){if(this.disabled||this.isExpanded)return;this.isExpanded=!0;const e=this.overlay=await this.createOverlay(t);if(e.onDidDismiss().then((()=>{this.overlay=void 0,this.isExpanded=!1,this.ionDismiss.emit(),this.setFocus()})),await e.present(),"popover"===this.interface){const t=this.childOpts.map((t=>t.value)).indexOf(this.value);if(t>-1){const i=e.querySelector(`.select-interface-option:nth-child(${t+1})`);if(i){zl(i);const t=i.querySelector("ion-radio, ion-checkbox");t&&t.focus()}}else{const t=e.querySelector("ion-radio:not(.radio-disabled), ion-checkbox:not(.checkbox-disabled)");t&&(zl(t.closest("ion-item")),t.focus())}}return e}createOverlay(t){let e=this.interface;return"action-sheet"===e&&this.multiple&&(console.warn(`Select interface cannot be "${e}" with a multi-value select. Using the "alert" interface instead.`),e="alert"),"popover"!==e||t||(console.warn(`Select interface cannot be a "${e}" without passing an event. Using the "alert" interface instead.`),e="alert"),"action-sheet"===e?this.openActionSheet():"popover"===e?this.openPopover(t):this.openAlert()}updateOverlayOptions(){const t=this.overlay;if(!t)return;const e=this.childOpts,i=this.value;switch(this.interface){case"action-sheet":t.buttons=this.createActionSheetButtons(e,i);break;case"popover":const o=t.querySelector("ion-select-popover");o&&(o.options=this.createPopoverOptions(e,i));break;case"alert":const n=this.multiple?"checkbox":"radio";t.inputs=this.createAlertInputs(e,n,i)}}createActionSheetButtons(t,e){const i=t.map((t=>{const i=pb(t),o=Array.from(t.classList).filter((t=>"hydrated"!==t)).join(" "),n=`${fb} ${o}`;return{role:kg(e,i,this.compareWith)?"selected":"",text:t.textContent,cssClass:n,handler:()=>{this.setValue(i)}}}));return i.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),i}createAlertInputs(t,e,i){return t.map((t=>{const o=pb(t),n=Array.from(t.classList).filter((t=>"hydrated"!==t)).join(" ");return{type:e,cssClass:`${fb} ${n}`,label:t.textContent||"",value:o,checked:kg(i,o,this.compareWith),disabled:t.disabled}}))}createPopoverOptions(t,e){return t.map((t=>{const i=pb(t),o=Array.from(t.classList).filter((t=>"hydrated"!==t)).join(" "),n=`${fb} ${o}`;return{text:t.textContent||"",cssClass:n,value:i,checked:kg(e,i,this.compareWith),disabled:t.disabled,handler:t=>{this.setValue(t),this.multiple||this.close()}}}))}async openPopover(t){const{fill:e,labelPlacement:i}=this,o=this.interfaceOptions,n=rd(this),r="md"!==n,a=this.multiple,s=this.value;let l=t,d="auto";if(this.legacyFormController.hasLegacyControl()){const e=this.el.closest("ion-item");e&&(e.classList.contains("item-label-floating")||e.classList.contains("item-label-stacked"))&&(l=Object.assign(Object.assign({},t),{detail:{ionShadowTarget:e}}),d="cover")}else"floating"===i||"stacked"===i||"md"===n&&void 0!==e?d="cover":l=Object.assign(Object.assign({},t),{detail:{ionShadowTarget:this.nativeWrapperEl}});const c=Object.assign(Object.assign({mode:n,event:l,alignment:"center",size:d,showBackdrop:r},o),{component:"ion-select-popover",cssClass:["select-popover",o.cssClass],componentProps:{header:o.header,subHeader:o.subHeader,message:o.message,multiple:a,value:s,options:this.createPopoverOptions(this.childOpts,s)}});return np.create(c)}async openActionSheet(){const t=rd(this),e=this.interfaceOptions,i=Object.assign(Object.assign({mode:t},e),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",e.cssClass]});return op.create(i)}async openAlert(){let t,e;this.legacyFormController.hasLegacyControl()?(t=this.getLabel(),e=t?t.textContent:null):e=this.labelText;const i=this.interfaceOptions,o=this.multiple?"checkbox":"radio",n=rd(this),r=Object.assign(Object.assign({mode:n},i),{header:i.header?i.header:e,inputs:this.createAlertInputs(this.childOpts,o,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:t=>{this.setValue(t)}}],cssClass:["select-alert",i.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return ip.create(r)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return El(this.el)}hasValue(){return""!==this.getText()}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}get labelText(){const{label:t}=this;if(void 0!==t)return t;const{labelSlot:e}=this;return null!==e?e.textContent:void 0}getText(){const t=this.selectedText;return null!=t&&""!==t?t:ub(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){const{disabled:t}=this,e={"interactive-disabled":t};this.legacyFormController.hasLegacyControl()&&(e.interactive=!0,e.select=!0,e["select-disabled"]=t,e["has-placeholder"]=void 0!==this.placeholder,e["has-value"]=this.hasValue(),e["has-focus"]=this.isExpanded,e.legacy=!!this.legacy),this.ionStyle.emit(e)}renderLabel(){const{label:t}=this;return Ka("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel},part:"label"},void 0===t?Ka("slot",{name:"label"}):Ka("div",{class:"label-text"},t))}componentDidRender(){var t;null===(t=this.notchController)||void 0===t||t.calculateNotchWidth()}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){return"md"===rd(this)&&"outline"===this.fill?[Ka("div",{class:"select-outline-container"},Ka("div",{class:"select-outline-start"}),Ka("div",{class:{"select-outline-notch":!0,"select-outline-notch-hidden":!this.hasLabel}},Ka("div",{class:"notch-spacer","aria-hidden":"true",ref:t=>this.notchSpacerEl=t},this.label)),Ka("div",{class:"select-outline-end"})),this.renderLabel()]:this.renderLabel()}renderSelect(){const{disabled:t,el:e,isExpanded:i,expandedIcon:o,labelPlacement:n,justify:r,placeholder:a,fill:s,shape:l,name:d,value:c}=this,h=rd(this),p="floating"===n||"stacked"===n,m=!p,u=Ec(e)?"rtl":"ltr",g=jd("ion-item",this.el),b="md"===h&&"outline"!==s&&!g,f=this.hasValue(),v=null!==e.querySelector('[slot="start"], [slot="end"]');Al(!0,e,d,mb(c),t);const x="stacked"===n||"floating"===n&&(f||i||v);return Ka(Ja,{onClick:this.onClick,class:Md(this.color,{[h]:!0,"in-item":g,"in-item-color":jd("ion-item.ion-color",e),"select-disabled":t,"select-expanded":i,"has-expanded-icon":void 0!==o,"has-value":f,"label-floating":x,"has-placeholder":void 0!==a,"ion-focusable":!0,[`select-${u}`]:!0,[`select-fill-${s}`]:void 0!==s,[`select-justify-${r}`]:m,[`select-shape-${l}`]:void 0!==l,[`select-label-placement-${n}`]:!0})},Ka("label",{class:"select-wrapper",id:"select-label"},this.renderLabelContainer(),Ka("div",{class:"select-wrapper-inner"},Ka("slot",{name:"start"}),Ka("div",{class:"native-wrapper",ref:t=>this.nativeWrapperEl=t,part:"container"},this.renderSelectText(),this.renderListbox()),Ka("slot",{name:"end"}),!p&&this.renderSelectIcon()),p&&this.renderSelectIcon(),b&&Ka("div",{class:"select-highlight"})))}renderLegacySelect(){this.hasLoggedDeprecationWarning||(Sd('ion-select now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: ...\nExample with aria-label: ...\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&Sd('ion-select is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n Developers can dismiss this warning by removing their usage of the "legacy" property and using the new select syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{disabled:t,el:e,inputId:i,isExpanded:o,expandedIcon:n,name:r,placeholder:a,value:s}=this,l=rd(this),{labelText:d,labelId:c}=Sl(e,i);Al(!0,e,r,mb(s),t);let h=this.getText();""===h&&void 0!==a&&(h=a);const p=void 0!==d?""!==h?`${h}, ${d}`:d:h;return Ka(Ja,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":t?"true":null,"aria-label":p,class:{[l]:!0,"in-item":jd("ion-item",e),"in-item-color":jd("ion-item.ion-color",e),"select-disabled":t,"select-expanded":o,"has-expanded-icon":void 0!==n,"legacy-select":!0}},this.renderSelectText(),this.renderSelectIcon(),Ka("label",{id:c},p),this.renderListbox())}renderSelectText(){const{placeholder:t}=this;let e=!1,i=this.getText();return""===i&&void 0!==t&&(i=t,e=!0),Ka("div",{"aria-hidden":"true",class:{"select-text":!0,"select-placeholder":e},part:e?"placeholder":"text"},i)}renderSelectIcon(){const t=rd(this),{isExpanded:e,toggleIcon:i,expandedIcon:o}=this;let n;return n=e&&void 0!==o?o:null!=i?i:"ios"===t?"data:image/svg+xml;utf8,":_l,Ka("ion-icon",{class:"select-icon",part:"icon","aria-hidden":"true",icon:n})}get ariaLabel(){var t,e;const{placeholder:i,el:o,inputId:n,inheritedAttributes:r}=this,a=this.getText(),{labelText:s}=Sl(o,n),l=null!==(e=null!==(t=this.labelText)&&void 0!==t?t:r["aria-label"])&&void 0!==e?e:s;let d=a;return""===d&&void 0!==i&&(d=i),void 0!==l&&(d=""===d?l:`${l}, ${d}`),d}renderListbox(){const{disabled:t,inputId:e,isExpanded:i}=this;return Ka("button",{disabled:t,id:e,"aria-label":this.ariaLabel,"aria-haspopup":"dialog","aria-expanded":`${i}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:t=>this.focusEl=t})}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacySelect():this.renderSelect()}get el(){return this}static get watchers(){return{disabled:["styleChanged"],isExpanded:["styleChanged"],placeholder:["styleChanged"],value:["styleChanged"]}}static get style(){return{ios:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item:not(.legacy-select)){-ms-flex:1 1 0px;flex:1 1 0}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative;-ms-flex-negative:0;flex-shrink:0}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.select-wrapper-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{-ms-flex-positive:1;flex-grow:1}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating:not(.label-floating)) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.label-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.legacy-select){--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:16px}.select-icon{width:1.125rem;height:1.125rem;color:var(--ion-color-step-650, #595959)}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{width:calc(100% - 1.125rem - 4px)}:host(.select-disabled){opacity:0.3}::slotted(ion-button[slot=start].button-has-icon-only),::slotted(ion-button[slot=end].button-has-icon-only){--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}",md:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item:not(.legacy-select)){-ms-flex:1 1 0px;flex:1 1 0}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative;-ms-flex-negative:0;flex-shrink:0}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.select-wrapper-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{-ms-flex-positive:1;flex-grow:1}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating:not(.label-floating)) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.label-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.select-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-solid) .select-wrapper{border-bottom:var(--border-width) var(--border-style) var(--border-color)}:host(.has-focus.select-fill-solid.ion-valid),:host(.select-fill-solid.ion-touched.ion-invalid){--border-color:var(--highlight-color)}:host(.select-fill-solid) .select-bottom{border-top:none}@media (any-hover: hover){:host(.select-fill-solid:hover){--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-solid.select-expanded),:host(.select-fill-solid.ion-focused){--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}:host(.select-fill-solid) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}:host-context([dir=rtl]):host(.select-fill-solid) .select-wrapper,:host-context([dir=rtl]).select-fill-solid .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){:host(.select-fill-solid:dir(rtl)) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}:host(.label-floating.select-fill-solid) .label-text-wrapper{max-width:calc(100% / 0.75)}:host(.select-fill-outline){--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-outline.select-shape-round){--border-radius:28px;--padding-start:32px;--padding-end:32px}:host(.has-focus.select-fill-outline.ion-valid),:host(.select-fill-outline.ion-touched.ion-invalid){--border-color:var(--highlight-color)}@media (any-hover: hover){:host(.select-fill-outline:hover){--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-outline.select-expanded),:host(.select-fill-outline.ion-focused){--border-width:2px;--border-color:var(--highlight-color)}:host(.select-fill-outline) .select-bottom{border-top:none}:host(.select-fill-outline) .select-wrapper{border-bottom:none}:host(.select-ltr.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-fill-outline.select-label-placement-floating) .label-text-wrapper{position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .label-text-wrapper{position:relative;z-index:1}:host(.label-floating.select-fill-outline) .label-text-wrapper{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc((100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75)}:host(.select-fill-outline.select-label-placement-stacked) select,:host(.select-fill-outline.select-label-placement-floating) select{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}:host(.select-fill-outline) .select-outline-container{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-end{pointer-events:none}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-notch,:host(.select-fill-outline) .select-outline-end{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.select-fill-outline) .select-outline-notch{max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .notch-spacer{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none}:host(.select-fill-outline) .select-outline-start{-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-start{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-rtl.select-fill-outline) .select-outline-start{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-fill-outline) .select-outline-start{width:calc(var(--padding-start) - 4px)}:host(.select-fill-outline) .select-outline-end{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-end{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-rtl.select-fill-outline) .select-outline-end{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-fill-outline) .select-outline-end{-ms-flex-positive:1;flex-grow:1}:host(.label-floating.select-fill-outline) .select-outline-notch{border-top:none}:host{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}:host(.legacy-select){--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:0.8125rem;-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);color:var(--ion-color-step-500, gray)}:host(.select-label-placement-floating.select-expanded) .label-text-wrapper,:host(.select-label-placement-floating.ion-focused) .label-text-wrapper,:host(.select-label-placement-stacked.select-expanded) .label-text-wrapper,:host(.select-label-placement-stacked.ion-focused) .label-text-wrapper{color:var(--highlight-color)}:host(.has-focus.select-label-placement-floating.ion-valid) .label-text-wrapper,:host(.select-label-placement-floating.ion-touched.ion-invalid) .label-text-wrapper,:host(.has-focus.select-label-placement-stacked.ion-valid) .label-text-wrapper,:host(.select-label-placement-stacked.ion-touched.ion-invalid) .label-text-wrapper{color:var(--highlight-color)}.select-highlight{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){.select-highlight{left:0}:host-context([dir=rtl]) .select-highlight{left:unset;right:unset;right:0}[dir=rtl] .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.select-highlight:dir(rtl){left:unset;right:unset;right:0}}}:host(.select-expanded) .select-highlight,:host(.ion-focused) .select-highlight{-webkit-transform:scale(1);transform:scale(1)}:host(.in-item) .select-highlight{bottom:0}@supports (inset-inline-start: 0){:host(.in-item) .select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.in-item) .select-highlight{left:0}:host-context([dir=rtl]):host(.in-item) .select-highlight,:host-context([dir=rtl]).in-item .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.in-item:dir(rtl)) .select-highlight{left:unset;right:unset;right:0}}}:host(.select-expanded:not(.legacy-select):not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.select-expanded) .select-wrapper .select-icon,:host(.has-focus.ion-valid) .select-wrapper .select-icon,:host(.ion-touched.ion-invalid) .select-wrapper .select-icon,:host(.ion-focused) .select-wrapper .select-icon{color:var(--highlight-color)}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){-webkit-transform:translate3d(0, -9px, 0);transform:translate3d(0, -9px, 0)}:host-context(.item-has-focus):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked):host(:not(.has-expanded-icon)) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:translate3d(0, -9px, 0) rotate(180deg);transform:translate3d(0, -9px, 0) rotate(180deg)}:host(.select-shape-round){--border-radius:16px}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{width:calc(100% - 0.8125rem - 4px)}:host(.select-disabled){opacity:0.38}::slotted(ion-button[slot=start].button-has-icon-only),::slotted(ion-button[slot=end].button-has-icon-only){--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}"}}},[33,"ion-select",{cancelText:[1,"cancel-text"],color:[513],compareWith:[1,"compare-with"],disabled:[4],fill:[1],interface:[1],interfaceOptions:[8,"interface-options"],justify:[1],label:[1],labelPlacement:[1,"label-placement"],legacy:[4],multiple:[4],name:[1],okText:[1,"ok-text"],placeholder:[1],selectedText:[1,"selected-text"],toggleIcon:[1,"toggle-icon"],expandedIcon:[1,"expanded-icon"],shape:[1],value:[1032],isExpanded:[32],open:[64]},void 0,{disabled:["styleChanged"],isExpanded:["styleChanged"],placeholder:["styleChanged"],value:["styleChanged"]}]),pb=t=>{const e=t.value;return void 0===e?t.textContent||"":e},mb=t=>{if(null!=t)return Array.isArray(t)?t.join(","):t.toString()},ub=(t,e,i)=>void 0===e?"":Array.isArray(e)?e.map((e=>gb(t,e,i))).filter((t=>null!==t)).join(", "):gb(t,e,i)||"",gb=(t,e,i)=>{const o=t.find((t=>yg(e,pb(t),i)));return o?o.textContent:null};let bb=0;const fb="select-interface-option",vb=function(){"undefined"!=typeof customElements&&["ion-select","ion-action-sheet","ion-alert","ion-backdrop","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-popover","ion-radio","ion-radio-group","ion-ripple-effect","ion-select-popover"].forEach((t=>{switch(t){case"ion-select":customElements.get(t)||customElements.define(t,hb);break;case"ion-action-sheet":customElements.get(t)||eb();break;case"ion-alert":customElements.get(t)||db();break;case"ion-backdrop":customElements.get(t)||_d();break;case"ion-checkbox":customElements.get(t)||bc();break;case"ion-icon":customElements.get(t)||kd();break;case"ion-item":customElements.get(t)||Ph();break;case"ion-label":customElements.get(t)||Oh();break;case"ion-list":customElements.get(t)||Fu();break;case"ion-list-header":customElements.get(t)||Wu();break;case"ion-note":customElements.get(t)||Ah();break;case"ion-popover":customElements.get(t)||Im();break;case"ion-radio":customElements.get(t)||zg();break;case"ion-radio-group":customElements.get(t)||Ig();break;case"ion-ripple-effect":customElements.get(t)||Gd();break;case"ion-select-popover":customElements.get(t)||"undefined"!=typeof customElements&&["ion-select-popover","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-radio","ion-radio-group","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-select-popover":customElements.get(t)||customElements.define(t,cb);break;case"ion-checkbox":customElements.get(t)||bc();break;case"ion-icon":customElements.get(t)||kd();break;case"ion-item":customElements.get(t)||Ph();break;case"ion-label":customElements.get(t)||Oh();break;case"ion-list":customElements.get(t)||Fu();break;case"ion-list-header":customElements.get(t)||Wu();break;case"ion-note":customElements.get(t)||Ah();break;case"ion-radio":customElements.get(t)||zg();break;case"ion-radio-group":customElements.get(t)||Ig();break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))}}))},xb=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inputId="ion-selopt-"+wb++,this.disabled=!1,this.value=void 0}render(){return Ka(Ja,{role:"option",id:this.inputId,class:rd(this)})}get el(){return this}static get style(){return":host{display:none}"}},[1,"ion-select-option",{disabled:[4],value:[8]}]);let wb=0;const yb=function(){"undefined"!=typeof customElements&&["ion-select-option"].forEach((t=>{"ion-select-option"===t&&(customElements.get(t)||customElements.define(t,xb))}))},kb="split-pane-main",Cb="split-pane-side",Eb={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",never:""},zb=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionSplitPaneVisible=is(this,"ionSplitPaneVisible",7),this.visible=!1,this.contentId=void 0,this.disabled=!1,this.when=Eb.lg}visibleChanged(t){const e={visible:t,isPane:this.isPane.bind(this)};this.ionSplitPaneVisible.emit(e)}async connectedCallback(){"undefined"!=typeof customElements&&null!=customElements&&await customElements.whenDefined("ion-split-pane"),this.styleChildren(),this.updateState()}disconnectedCallback(){this.rmL&&(this.rmL(),this.rmL=void 0)}updateState(){if(this.rmL&&(this.rmL(),this.rmL=void 0),this.disabled)return void(this.visible=!1);const t=this.when;if("boolean"==typeof t)return void(this.visible=t);const e=Eb[t]||t;if(0!==e.length){if(window.matchMedia){const t=t=>{this.visible=t.matches},i=window.matchMedia(e);i.addListener(t),this.rmL=()=>i.removeListener(t),this.visible=i.matches}}else this.visible=!1}isPane(t){return!!this.visible&&t.parentElement===this.el&&t.classList.contains(Cb)}styleChildren(){const t=this.contentId,e=this.el.children,i=this.el.childElementCount;let o=!1;for(let n=0;n{let i,o;e?(i=kb,o=Cb):(i=Cb,o=kb);const n=t.classList;n.add(i),n.remove(o)},Ab=function(){"undefined"!=typeof customElements&&["ion-split-pane"].forEach((t=>{"ion-split-pane"===t&&(customElements.get(t)||customElements.define(t,zb))}))},Ib=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=rd(this);return Ka(Ja,{class:Md(this.color,{[t]:!0})},Ka("slot",null))}static get style(){return":host(.ion-color){color:var(--ion-color-base)}"}},[1,"ion-text",{color:[513]}]),Pb=function(){"undefined"!=typeof customElements&&["ion-text"].forEach((t=>{"ion-text"===t&&(customElements.get(t)||customElements.define(t,Ib))}))},$b=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.ionChange=is(this,"ionChange",7),this.ionInput=is(this,"ionInput",7),this.ionStyle=is(this,"ionStyle",7),this.ionBlur=is(this,"ionBlur",7),this.ionFocus=is(this,"ionFocus",7),this.inputId="ion-textarea-"+Ob++,this.didTextareaClearOnEdit=!1,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.onInput=t=>{const e=t.target;e&&(this.value=e.value||""),this.emitInputChange(t)},this.onChange=t=>{this.emitValueChange(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusedValue=this.value,this.focusChange(),this.ionFocus.emit(t)},this.onBlur=t=>{this.hasFocus=!1,this.focusChange(),this.focusedValue!==this.value&&this.emitValueChange(t),this.didTextareaClearOnEdit=!1,this.ionBlur.emit(t)},this.onKeyDown=t=>{this.checkClearOnEdit(t)},this.hasFocus=!1,this.color=void 0,this.autocapitalize="none",this.autofocus=!1,this.clearOnEdit=!1,this.debounce=void 0,this.disabled=!1,this.fill=void 0,this.inputmode=void 0,this.enterkeyhint=void 0,this.maxlength=void 0,this.minlength=void 0,this.name=this.inputId,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.cols=void 0,this.rows=void 0,this.wrap=void 0,this.autoGrow=!1,this.value="",this.counter=!1,this.counterFormatter=void 0,this.errorText=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.shape=void 0}debounceChanged(){const{ionInput:t,debounce:e,originalIonInput:i}=this;this.ionInput=void 0===e?null!=i?i:t:Ol(t,e)}disabledChanged(){this.emitStyle()}valueChanged(){const t=this.nativeInput,e=this.getValue();t&&t.value!==e&&(t.value=e),this.runAutoGrow(),this.emitStyle()}connectedCallback(){const{el:t}=this;this.legacyFormController=cc(t),this.slotMutationController=fu(t,["label","start","end"],(()=>Ds(this))),this.notchController=bu(t,(()=>this.notchSpacerEl),(()=>this.labelSlot)),this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:t}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},vl(this.el)),bl(this.el,["data-form-type","title","tabindex"]))}componentDidLoad(){this.originalIonInput=this.ionInput,this.runAutoGrow()}componentDidRender(){var t;null===(t=this.notchController)||void 0===t||t.calculateNotchWidth()}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async getInputElement(){return this.nativeInput||await new Promise((t=>ul(this.el,t))),Promise.resolve(this.nativeInput)}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({interactive:!0,textarea:!0,input:!0,"interactive-disabled":this.disabled,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,legacy:!!this.legacy})}emitValueChange(t){const{value:e}=this,i=null==e?e:e.toString();this.focusedValue=i,this.ionChange.emit({value:i,event:t})}emitInputChange(t){const{value:e}=this;this.ionInput.emit({value:e,event:t})}runAutoGrow(){this.nativeInput&&this.autoGrow&&hl((()=>{var t;this.textareaWrapper&&(this.textareaWrapper.dataset.replicatedValue=null!==(t=this.value)&&void 0!==t?t:"")}))}checkClearOnEdit(t){if(!this.clearOnEdit)return;const e=["Tab","Shift","Meta","Alt","Control"].includes(t.key);this.didTextareaClearOnEdit||!this.hasValue()||e||(this.value="",this.emitInputChange(t)),e||(this.didTextareaClearOnEdit=!0)}focusChange(){this.emitStyle()}hasValue(){return""!==this.getValue()}getValue(){return this.value||""}renderLegacyTextarea(){this.hasLoggedDeprecationWarning||(Sd('ion-textarea now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: \nExample with aria-label: \n\nFor textareas that do not render the label immediately next to the input, developers may continue to use "ion-label" but must manually associate the label with the textarea by using "aria-labelledby".\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.hasLoggedDeprecationWarning=!0);const t=rd(this),e=this.getValue(),i=this.inputId+"-lbl",o=El(this.el);return o&&(o.id=i),Ka(Ja,{"aria-disabled":this.disabled?"true":null,class:Md(this.color,{[t]:!0,"legacy-textarea":!0})},Ka("div",{class:"textarea-legacy-wrapper",ref:t=>this.textareaWrapper=t},Ka("textarea",Object.assign({class:"native-textarea","aria-labelledby":o?o.id:null,ref:t=>this.nativeInput=t,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),e)))}renderLabel(){const{label:t}=this;return Ka("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},void 0===t?Ka("slot",{name:"label"}):Ka("div",{class:"label-text"},t))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){return"md"===rd(this)&&"outline"===this.fill?[Ka("div",{class:"textarea-outline-container"},Ka("div",{class:"textarea-outline-start"}),Ka("div",{class:{"textarea-outline-notch":!0,"textarea-outline-notch-hidden":!this.hasLabel}},Ka("div",{class:"notch-spacer","aria-hidden":"true",ref:t=>this.notchSpacerEl=t},this.label)),Ka("div",{class:"textarea-outline-end"})),this.renderLabel()]:this.renderLabel()}renderHintText(){const{helperText:t,errorText:e}=this;return[Ka("div",{class:"helper-text"},t),Ka("div",{class:"error-text"},e)]}renderCounter(){const{counter:t,maxlength:e,counterFormatter:i,value:o}=this;if(!0===t&&void 0!==e)return Ka("div",{class:"counter"},vu(o,e,i))}renderBottomContent(){const{counter:t,helperText:e,errorText:i,maxlength:o}=this;if(e||i||!0===t&&void 0!==o)return Ka("div",{class:"textarea-bottom"},this.renderHintText(),this.renderCounter())}renderTextarea(){const{inputId:t,disabled:e,fill:i,shape:o,labelPlacement:n,el:r,hasFocus:a}=this,s=rd(this),l=this.getValue(),d=jd("ion-item",this.el),c="md"===s&&"outline"!==i&&!d,h=this.hasValue(),p=null!==r.querySelector('[slot="start"], [slot="end"]'),m="stacked"===n||"floating"===n&&(h||a||p);return Ka(Ja,{class:Md(this.color,{[s]:!0,"has-value":h,"has-focus":a,"label-floating":m,[`textarea-fill-${i}`]:void 0!==i,[`textarea-shape-${o}`]:void 0!==o,[`textarea-label-placement-${n}`]:!0,"textarea-disabled":e})},Ka("label",{class:"textarea-wrapper",htmlFor:t},this.renderLabelContainer(),Ka("div",{class:"textarea-wrapper-inner"},Ka("div",{class:"start-slot-wrapper"},Ka("slot",{name:"start"})),Ka("div",{class:"native-wrapper",ref:t=>this.textareaWrapper=t},Ka("textarea",Object.assign({class:"native-textarea",ref:t=>this.nativeInput=t,id:t,disabled:e,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,minLength:this.minlength,maxLength:this.maxlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),l)),Ka("div",{class:"end-slot-wrapper"},Ka("slot",{name:"end"}))),c&&Ka("div",{class:"textarea-highlight"})),this.renderBottomContent())}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyTextarea():this.renderTextarea()}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}static get style(){return{ios:'.sc-ion-textarea-ios-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.sc-ion-textarea-ios-h:not(.legacy-textarea){min-height:44px}.textarea-label-placement-floating.sc-ion-textarea-ios-h,.textarea-label-placement-stacked.sc-ion-textarea-ios-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-ios-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.legacy-textarea.sc-ion-textarea-ios-h{-ms-flex:1;flex:1;background:var(--background);white-space:pre-wrap}.legacy-textarea.ion-color.sc-ion-textarea-ios-h{color:var(--ion-color-base)}.sc-ion-textarea-ios-h:not(.legacy-textarea){--padding-bottom:8px}.ion-color.sc-ion-textarea-ios-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-ios-h,ion-item .sc-ion-textarea-ios-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-ios-h{--padding-start:0}ion-item[slot=start].sc-ion-textarea-ios-h,ion-item [slot=start].sc-ion-textarea-ios-h,ion-item[slot=end].sc-ion-textarea-ios-h,ion-item [slot=end].sc-ion-textarea-ios-h{width:auto}.native-textarea.sc-ion-textarea-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-ios::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{white-space:inherit}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios,.legacy-textarea.sc-ion-textarea-ios-h .textarea-legacy-wrapper.sc-ion-textarea-ios::after{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}.native-textarea.sc-ion-textarea-ios{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.legacy-textarea.sc-ion-textarea-ios-h .textarea-legacy-wrapper.sc-ion-textarea-ios::after{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-ios{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-textarea-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-textarea-ios{left:0}[dir=rtl].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-ios .cloned-input.sc-ion-textarea-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-textarea-ios:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-textarea-ios:disabled{opacity:1}.legacy-textarea[auto-grow].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}[auto-grow].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{height:100%}[auto-grow].sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{overflow:hidden}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.textarea-wrapper.sc-ion-textarea-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-ios{position:relative;width:100%;height:100%}.has-focus.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-ios,.textarea-legacy-wrapper.sc-ion-textarea-ios{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-ios::after,.textarea-legacy-wrapper.sc-ion-textarea-ios::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-ios::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.textarea-wrapper-inner.sc-ion-textarea-ios{display:-ms-flexbox;display:flex;width:100%;min-height:inherit}.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-ios-h,.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:block}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:none}.textarea-bottom.sc-ion-textarea-ios .counter.sc-ion-textarea-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-textarea-ios,.sc-ion-textarea-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-ios,.textarea-outline-notch-hidden.sc-ion-textarea-ios{display:none}.textarea-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text.sc-ion-textarea-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.sc-ion-textarea-ios-h.textarea-label-placement-stacked.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-stacked .sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-stacked.sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-stacked .sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-floating.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-floating .sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-floating.sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-floating .sc-ion-textarea-ios-s>[slot=end]{margin-top:8px}.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.has-value.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:1}.label-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.start-slot-wrapper.sc-ion-textarea-ios,.end-slot-wrapper.sc-ion-textarea-ios{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:start}.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-s>[slot=end]{margin-top:0}.sc-ion-textarea-ios-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-textarea-ios-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.sc-ion-textarea-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--padding-top:10px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;font-size:inherit}.legacy-textarea.sc-ion-textarea-ios-h{--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:0}.item-label-stacked.sc-ion-textarea-ios-h,.item-label-stacked .sc-ion-textarea-ios-h,.item-label-floating.sc-ion-textarea-ios-h,.item-label-floating .sc-ion-textarea-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea[disabled].sc-ion-textarea-ios,.textarea-disabled.sc-ion-textarea-ios-h{opacity:0.3}.sc-ion-textarea-ios-s>ion-button[slot=start].button-has-icon-only,.sc-ion-textarea-ios-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}',md:'.sc-ion-textarea-md-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.sc-ion-textarea-md-h:not(.legacy-textarea){min-height:44px}.textarea-label-placement-floating.sc-ion-textarea-md-h,.textarea-label-placement-stacked.sc-ion-textarea-md-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-md-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.legacy-textarea.sc-ion-textarea-md-h{-ms-flex:1;flex:1;background:var(--background);white-space:pre-wrap}.legacy-textarea.ion-color.sc-ion-textarea-md-h{color:var(--ion-color-base)}.sc-ion-textarea-md-h:not(.legacy-textarea){--padding-bottom:8px}.ion-color.sc-ion-textarea-md-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-md-h,ion-item .sc-ion-textarea-md-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-md-h{--padding-start:0}ion-item[slot=start].sc-ion-textarea-md-h,ion-item [slot=start].sc-ion-textarea-md-h,ion-item[slot=end].sc-ion-textarea-md-h,ion-item [slot=end].sc-ion-textarea-md-h{width:auto}.native-textarea.sc-ion-textarea-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-md::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.legacy-textarea.sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{white-space:inherit}.legacy-textarea.sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md,.legacy-textarea.sc-ion-textarea-md-h .textarea-legacy-wrapper.sc-ion-textarea-md::after{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}.native-textarea.sc-ion-textarea-md{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.legacy-textarea.sc-ion-textarea-md-h .textarea-legacy-wrapper.sc-ion-textarea-md::after{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-md{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-md .cloned-input.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-textarea-md:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-textarea-md:disabled{opacity:1}.legacy-textarea[auto-grow].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}[auto-grow].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{height:100%}[auto-grow].sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{overflow:hidden}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.textarea-wrapper.sc-ion-textarea-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-md{position:relative;width:100%;height:100%}.has-focus.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-md,.textarea-legacy-wrapper.sc-ion-textarea-md{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-md::after,.textarea-legacy-wrapper.sc-ion-textarea-md::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-md::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.textarea-wrapper-inner.sc-ion-textarea-md{display:-ms-flexbox;display:flex;width:100%;min-height:inherit}.ion-touched.ion-invalid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-md-h,.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:block}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:none}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-textarea-md,.sc-ion-textarea-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-md,.textarea-outline-notch-hidden.sc-ion-textarea-md{display:none}.textarea-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text.sc-ion-textarea-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.sc-ion-textarea-md-h.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=end]{margin-top:8px}.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.has-value.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:1}.label-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.start-slot-wrapper.sc-ion-textarea-md,.end-slot-wrapper.sc-ion-textarea-md{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:start}.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-s>[slot=end]{margin-top:0}.sc-ion-textarea-md-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-textarea-md-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.textarea-fill-solid.sc-ion-textarea-md-h{--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.textarea-fill-solid.ion-valid.sc-ion-textarea-md-h,.textarea-fill-solid.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}@media (any-hover: hover){.textarea-fill-solid.sc-ion-textarea-md-h:hover{--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}.textarea-fill-solid.has-focus.sc-ion-textarea-md-h{--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.textarea-fill-solid.sc-ion-textarea-md-h:dir(rtl) .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}.label-floating.textarea-fill-solid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{max-width:calc(100% / 0.75)}.textarea-fill-outline.sc-ion-textarea-md-h{--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-outline.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.textarea-fill-outline.ion-valid.sc-ion-textarea-md-h,.textarea-fill-outline.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.textarea-fill-outline.sc-ion-textarea-md-h:hover{--border-color:var(--ion-color-step-750, #404040)}}.textarea-fill-outline.has-focus.sc-ion-textarea-md-h{--border-width:2px;--border-color:var(--highlight-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:none}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-fill-outline.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{position:relative}.label-floating.textarea-fill-outline.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc(\n (100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75\n )}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-fill-outline.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:12px;margin-bottom:0px}.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=end]{margin-top:12px}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-container.sc-ion-textarea-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{pointer-events:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.textarea-fill-outline.sc-ion-textarea-md-h .notch-spacer.sc-ion-textarea-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.textarea-fill-outline.sc-ion-textarea-md-h:dir(rtl) .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px;-ms-flex-positive:1;flex-grow:1}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}@supports selector(:dir(rtl)){.textarea-fill-outline.sc-ion-textarea-md-h:dir(rtl) .textarea-outline-end.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}}.label-floating.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{border-top:none}.sc-ion-textarea-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--padding-top:18px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;font-size:inherit}.legacy-textarea.sc-ion-textarea-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:11px;--padding-start:8px;margin-left:0;margin-right:0;margin-top:8px;margin-bottom:0}.item-label-stacked.sc-ion-textarea-md-h,.item-label-stacked .sc-ion-textarea-md-h,.item-label-floating.sc-ion-textarea-md-h,.item-label-floating .sc-ion-textarea-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{letter-spacing:0.0333333333em}.textarea-label-placement-floating.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.has-focus.textarea-label-placement-floating.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-focus.textarea-label-placement-stacked.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.legacy-textarea.sc-ion-textarea-md-h .native-textarea[disabled].sc-ion-textarea-md,.textarea-disabled.sc-ion-textarea-md-h{opacity:0.38}.textarea-highlight.sc-ion-textarea-md{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.textarea-highlight.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-md .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.textarea-highlight.sc-ion-textarea-md:dir(rtl){left:unset;right:unset;right:0}}}.has-focus.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{bottom:0}@supports (inset-inline-start: 0){.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h -no-combinator.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl].in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.in-item.sc-ion-textarea-md-h:dir(rtl) .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}}}.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:16px}.sc-ion-textarea-md-s>ion-button[slot=start].button-has-icon-only,.sc-ion-textarea-md-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}'}}},[38,"ion-textarea",{color:[513],autocapitalize:[1],autofocus:[4],clearOnEdit:[4,"clear-on-edit"],debounce:[2],disabled:[4],fill:[1],inputmode:[1],enterkeyhint:[1],maxlength:[2],minlength:[2],name:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],cols:[514],rows:[2],wrap:[1],autoGrow:[516,"auto-grow"],value:[1025],counter:[4],counterFormatter:[16],errorText:[1,"error-text"],helperText:[1,"helper-text"],label:[1],labelPlacement:[1,"label-placement"],legacy:[4],shape:[1],hasFocus:[32],setFocus:[64],getInputElement:[64]},void 0,{debounce:["debounceChanged"],disabled:["disabledChanged"],value:["valueChanged"]}]); +/*! + * (C) Ionic http://ionicframework.com - MIT License + */let Ob=0;const Tb=function(){"undefined"!=typeof customElements&&["ion-textarea"].forEach((t=>{"ion-textarea"===t&&(customElements.get(t)||customElements.define(t,$b))}))},Lb=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=is(this,"ionStyle",7),this.color=void 0,this.size=void 0}sizeChanged(){this.emitStyle()}connectedCallback(){this.emitStyle()}emitStyle(){const t=this.getSize();this.ionStyle.emit({[`title-${t}`]:!0})}getSize(){return void 0!==this.size?this.size:"default"}render(){const t=rd(this),e=this.getSize();return Ka(Ja,{class:Md(this.color,{[t]:!0,[`title-${e}`]:!0,"title-rtl":"rtl"===document.dir})},Ka("div",{class:"toolbar-title"},Ka("slot",null)))}get el(){return this}static get watchers(){return{size:["sizeChanged"]}}static get style(){return{ios:":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{top:0;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:min(1.0625rem, 20.4px);font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.title-small){-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:min(0.8125rem, 23.4px);font-weight:normal}:host(.title-large){-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:2px;padding-bottom:4px;-webkit-transform-origin:left center;transform-origin:left center;position:static;-ms-flex-align:end;align-items:flex-end;min-width:100%;font-size:min(2.125rem, 61.2px);font-weight:700;text-align:start}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000);font-family:var(--ion-font-family)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit;width:auto}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}@supports selector(:dir(rtl)){:host(.title-large:dir(rtl)) .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}}",md:":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;letter-spacing:0.0125em}:host(.title-small){width:100%;height:100%;font-size:0.9375rem;font-weight:normal}"}}},[33,"ion-title",{color:[513],size:[1]},void 0,{size:["sizeChanged"]}]),Db=function(){"undefined"!=typeof customElements&&["ion-title"].forEach((t=>{"ion-title"===t&&(customElements.get(t)||customElements.define(t,Lb))}))},_b=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.childrenStyles=new Map,this.color=void 0}componentWillLoad(){const t=Array.from(this.el.querySelectorAll("ion-buttons")),e=t.find((t=>"start"===t.slot));e&&e.classList.add("buttons-first-slot");const i=t.reverse(),o=i.find((t=>"end"===t.slot))||i.find((t=>"primary"===t.slot))||i.find((t=>"secondary"===t.slot));o&&o.classList.add("buttons-last-slot")}childrenStyle(t){t.stopPropagation();const e=t.target.tagName,i=t.detail,o={},n=this.childrenStyles.get(e)||{};let r=!1;Object.keys(i).forEach((t=>{const e=`toolbar-${t}`,a=i[t];a!==n[e]&&(r=!0),a&&(o[e]=!0)})),r&&(this.childrenStyles.set(e,o),Ds(this))}render(){const t=rd(this),e={};return this.childrenStyles.forEach((t=>{Object.assign(e,t)})),Ka(Ja,{class:Object.assign(Object.assign({},e),Md(this.color,{[t]:!0,"in-toolbar":jd("ion-toolbar",this.el)}))},Ka("div",{class:"toolbar-background"}),Ka("div",{class:"toolbar-container"},Ka("slot",{name:"start"}),Ka("slot",{name:"secondary"}),Ka("div",{class:"toolbar-content"},Ka("slot",null)),Ka("slot",{name:"primary"}),Ka("slot",{name:"end"})))}get el(){return this}static get style(){return{ios:":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}",md:":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){-webkit-margin-start:4px;margin-inline-start:4px}::slotted(.buttons-last-slot){-webkit-margin-end:4px;margin-inline-end:4px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}"}}},[33,"ion-toolbar",{color:[513]},[[0,"ionStyle","childrenStyle"]]]),jb=function(){"undefined"!=typeof customElements&&["ion-toolbar"].forEach((t=>{"ion-toolbar"===t&&(customElements.get(t)||customElements.define(t,_b))}))},Mb=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.onClick=async t=>{const e=this.el.closest("ion-nav");return t.preventDefault(),e&&await e.canGoBack()?e.pop({animationBuilder:this.routerAnimation,skipIfBusy:!0}):Rd(this.defaultHref,t,"back",this.routerAnimation)},this.color=void 0,this.defaultHref=void 0,this.disabled=!1,this.icon=void 0,this.text=void 0,this.type="button",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=vl(this.el),void 0===this.defaultHref&&(this.defaultHref=Hl.get("backButtonDefaultHref"))}get backButtonIcon(){const t=this.icon;return null!=t?t:"ios"===rd(this)?Hl.get("backButtonIcon",jl):Hl.get("backButtonIcon",Dl)}get backButtonText(){const t="ios"===rd(this)?"Back":null;return null!=this.text?this.text:Hl.get("backButtonText",t)}get hasIconOnly(){return this.backButtonIcon&&!this.backButtonText}get rippleType(){return this.hasIconOnly?"unbounded":"bounded"}render(){const{color:t,defaultHref:e,disabled:i,type:o,hasIconOnly:n,backButtonIcon:r,backButtonText:a,icon:s,inheritedAttributes:l}=this,d=void 0!==e,c=rd(this),h=l["aria-label"]||a||"back";return Ka(Ja,{onClick:this.onClick,class:Md(t,{[c]:!0,button:!0,"back-button-disabled":i,"back-button-has-icon-only":n,"in-toolbar":jd("ion-toolbar",this.el),"in-toolbar-color":jd("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0,"show-back-button":d})},Ka("button",{type:o,disabled:i,class:"button-native",part:"native","aria-label":h},Ka("span",{class:"button-inner"},r&&Ka("ion-icon",{part:"icon",icon:r,"aria-hidden":"true",lazy:!1,"flip-rtl":void 0===s}),a&&Ka("span",{part:"text","aria-hidden":"true",class:"button-text"},a)),"md"===c&&Ka("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get style(){return{ios:':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:clamp(17px, 1.0625rem, 21.998px)}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',md:':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:1.5rem;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:0.875rem;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;min-height:48px;aspect-ratio:1/1}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}'}}},[33,"ion-back-button",{color:[513],defaultHref:[1025,"default-href"],disabled:[516],icon:[1],text:[1],type:[1],routerAnimation:[16]}]),Bb=function(){"undefined"!=typeof customElements&&["ion-back-button","ion-icon","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-back-button":customElements.get(t)||customElements.define(t,Mb);break;case"ion-icon":customElements.get(t)||kd();break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))},Vb=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=is(this,"ionNavWillLoad",7),this.ionNavWillChange=is(this,"ionNavWillChange",3),this.ionNavDidChange=is(this,"ionNavDidChange",3),this.lockController=Kh(),this.gestureOrAnimationInProgress=!1,this.mode=rd(this),this.delegate=void 0,this.animated=!0,this.animation=void 0,this.swipeHandler=void 0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(void 0!==this.swipeHandler)}async connectedCallback(){const t=()=>{this.gestureOrAnimationInProgress=!0,this.swipeHandler&&this.swipeHandler.onStart()};this.gesture=(await Pa((()=>e.import("./swipe-back-legacy-0Y8C9GOm.js")))).createSwipeBackGesture(this.el,(()=>!this.gestureOrAnimationInProgress&&!!this.swipeHandler&&this.swipeHandler.canStart()),(()=>t()),(t=>{var e;return null===(e=this.ani)||void 0===e?void 0:e.progressStep(t)}),((t,e,i)=>{if(this.ani){this.ani.onFinish((()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(t)}),{oneTimeCallback:!0});let o=t?-.001:.001;t?o+=Yu([0,0],[.32,.72],[0,1],[1,1],e)[0]:(this.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),o+=Yu([0,0],[1,0],[.68,.28],[1,1],e)[0]),this.ani.progressEnd(t?1:0,o,i)}else this.gestureOrAnimationInProgress=!1})),this.swipeHandlerChanged()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async commit(t,e,i){const o=await this.lockController.lock();let n=!1;try{n=await this.transition(t,e,i)}catch(r){console.error(r)}return o(),n}async setRouteId(t,e,i,o){return{changed:await this.setRoot(t,e,{duration:"root"===i?0:void 0,direction:"back"===i?"back":"forward",animationBuilder:o}),element:this.activeEl}}async getRouteId(){const t=this.activeEl;return t?{id:t.tagName,element:t,params:this.activeParams}:void 0}async setRoot(t,e,i){if(this.activeComponent===t&&Ll(e,this.activeParams))return!1;const o=this.activeEl,n=await Gh(this.delegate,this.el,t,["ion-page","ion-page-invisible"],e);return this.activeComponent=t,this.activeEl=n,this.activeParams=e,await this.commit(n,o,i),await Xh(this.delegate,o),!0}async transition(t,e,i={}){if(e===t)return!1;this.ionNavWillChange.emit();const{el:o,mode:n}=this,r=this.animated&&Hl.getBoolean("animated",!0),a=i.animationBuilder||this.animation||Hl.get("navAnimation");return await Mp(Object.assign(Object.assign({mode:n,animated:r,enteringEl:t,leavingEl:e,baseEl:o,deepWait:gl(o),progressCallback:i.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.ani=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(!1)}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0},i),{animationBuilder:a})),this.ionNavDidChange.emit(),!0}render(){return Ka("slot",null)}get el(){return this}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}static get style(){return":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}"}},[1,"ion-router-outlet",{mode:[1025],delegate:[16],animated:[4],animation:[16],swipeHandler:[16],commit:[64],setRouteId:[64],getRouteId:[64]},void 0,{swipeHandler:["swipeHandlerChanged"]}]),Rb=function(){"undefined"!=typeof customElements&&["ion-router-outlet"].forEach((t=>{"ion-router-outlet"===t&&(customElements.get(t)||customElements.define(t,Vb))}))},Fb=Rs(class extends tl{constructor(){super(),this.__registerHost()}componentDidLoad(){Nb((async()=>{const t=Yl(window,"hybrid");if(Hl.getBoolean("_testing")||Pa((()=>e.import("./index9-legacy-BvNGh5ds.js"))).then((t=>t.startTapClick(Hl))),Hl.getBoolean("statusTap",t)&&Pa((()=>e.import("./status-tap-legacy-W9Cecc4S.js"))).then((t=>t.startStatusTap())),Hl.getBoolean("inputShims",Hb())){const t=Yl(window,"ios")?"ios":"android";Pa((()=>e.import("./input-shims-legacy-LDylaC-D.js"))).then((e=>e.startInputShims(Hl,t)))}const i=await Pa((()=>Promise.resolve().then((()=>Zh))));Hl.getBoolean("hardwareBackButton",t)?i.startHardwareBackButton():i.blockHardwareBackButton(),"undefined"!=typeof window&&Pa((()=>Promise.resolve().then((()=>_f)))).then((t=>t.startKeyboardAssist(window))),Pa((()=>Promise.resolve().then((()=>Tc)))).then((t=>this.focusVisible=t.startFocusVisible()))}))}async setFocus(t){this.focusVisible&&this.focusVisible.setFocus(t)}render(){const t=rd(this);return Ka(Ja,{class:{[t]:!0,"ion-page":!0,"force-statusbar-padding":Hl.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return"html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}"}},[0,"ion-app",{setFocus:[64]}]),Hb=()=>!(!Yl(window,"ios")||!Yl(window,"mobile"))||!(!Yl(window,"android")||!Yl(window,"mobileweb")),Nb=t=>{"requestIdleCallback"in window?window.requestIdleCallback(t):setTimeout(t,32)},Wb=function(){"undefined"!=typeof customElements&&["ion-app"].forEach((t=>{"ion-app"===t&&(customElements.get(t)||customElements.define(t,Fb))}))}; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */let qb;const Yb=(t,e)=>{const i=(()=>{if("undefined"==typeof window)return new Map;if(!qb){const t=window;t.Ionicons=t.Ionicons||{},qb=t.Ionicons.map=t.Ionicons.map||new Map}return qb})().get(t);if(i)return i;try{return Ya(`svg/${t}.svg`)}catch(o){console.warn(`[Ionicons Warning]: Could not load icon with name "${t}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,e)}},Gb=(t,e,i,o,n)=>(i="ios"===(i&&Zb(i))?"ios":"md",o&&"ios"===i?t=Zb(o):n&&"md"===i?t=Zb(n):(t||!e||Ub(e)||(t=e),Kb(t)&&(t=Zb(t))),Kb(t)&&""!==t.trim()?""!==t.replace(/[a-z]|-|\d/gi,"")?null:t:null),Xb=t=>Kb(t)&&(t=t.trim(),Ub(t))?t:null,Ub=t=>t.length>0&&/(\/|\.)/.test(t),Kb=t=>"string"==typeof t,Zb=t=>t.toLowerCase(),Jb=t=>{if(1===t.nodeType){if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e{let i=tf.get(t);if(!i){if("undefined"==typeof fetch||"undefined"==typeof document)return Qb.set(t,""),Promise.resolve();if((t=>t.startsWith("data:image/svg+xml"))(t)&&(t=>-1!==t.indexOf(";utf8,"))(t)){ef||(ef=new DOMParser);const e=ef.parseFromString(t,"text/html").querySelector("svg");return e&&Qb.set(t,e.outerHTML),Promise.resolve()}i=fetch(t).then((i=>{if(i.ok)return i.text().then((i=>{i&&!1!==e&&(i=(t=>{const e=document.createElement("div");e.innerHTML=t;for(let o=e.childNodes.length-1;o>=0;o--)"svg"!==e.childNodes[o].nodeName.toLowerCase()&&e.removeChild(e.childNodes[o]);const i=e.firstElementChild;if(i&&"svg"===i.nodeName.toLowerCase()){const t=i.getAttribute("class")||"";if(i.setAttribute("class",(t+" s-ion-icon").trim()),Jb(i))return e.innerHTML}return""})(i)),Qb.set(t,i||"")}));Qb.set(t,"")})),tf.set(t,i)}return i},nf=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=rf(),this.color=void 0,this.ios=void 0,this.md=void 0,this.flipRtl=void 0,this.name=void 0,this.src=void 0,this.icon=void 0,this.size=void 0,this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=((t,e=[])=>{const i={};return e.forEach((e=>{t.hasAttribute(e)&&(null!==t.getAttribute(e)&&(i[e]=t.getAttribute(e)),t.removeAttribute(e))})),i})(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=!0,this.loadIcon()}))}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,i){if(this.lazy&&"undefined"!=typeof window&&window.IntersectionObserver){const o=this.io=new window.IntersectionObserver((t=>{t[0].isIntersecting&&(o.disconnect(),this.io=void 0,i())}),{rootMargin:e});o.observe(t)}else i()}loadIcon(){if(this.isVisible){const t=(t=>{let e=Xb(t.src);if(e)return e;if(e=Gb(t.name,t.icon,t.mode,t.ios,t.md),e)return Yb(e,t);if(t.icon){if(e=Xb(t.icon),e)return e;if(e=Xb(t.icon[t.mode]),e)return e}return null})(this);t&&(Qb.has(t)?this.svgContent=Qb.get(t):of(t,this.sanitize).then((()=>this.svgContent=Qb.get(t))),this.didLoadIcon=!0)}this.iconName=Gb(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:e,inheritedAttributes:i,el:o}=this,n=this.mode||"md",r=!!e&&(e.includes("arrow")||e.includes("chevron"))&&!1!==t,a=t||r;return Ka(Ja,Object.assign({role:"img",class:Object.assign(Object.assign({[n]:!0},af(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":a,"icon-rtl":a&&(s=o,s&&""!==s.dir?"rtl"===s.dir.toLowerCase():"rtl"===(null===document||void 0===document?void 0:document.dir.toLowerCase()))})},i),this.svgContent?Ka("div",{class:"icon-inner",innerHTML:this.svgContent}):Ka("div",{class:"icon-inner"}));var s}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}"}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]),rf=()=>"undefined"!=typeof document&&document.documentElement.getAttribute("mode")||"md",af=t=>t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null,sf=function(){"undefined"!=typeof customElements&&["ion-icon"].forEach((t=>{"ion-icon"===t&&(customElements.get(t)||customElements.define(t,nf))}))},lf=eb,df=db; +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +function cf(t,e,i,o){let n;if(n="md"===i?"top"===t?8:-8:"top"===t?10:-10,e&&Th){!function(t,e){null===t.offsetParent&&Sd("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",e)}(e,o);const i=e.getBoundingClientRect();return"top"===t?n+=i.bottom:"bottom"===t&&(n-=Th.innerHeight-i.top),{top:`${n}px`,bottom:`${n}px`}}return{top:`calc(${n}px + var(--ion-safe-area-top, 0px))`,bottom:`calc(${n}px - var(--ion-safe-area-bottom, 0px))`}}const hf=(t,e)=>Math.floor(t/2-e/2),pf=(t,e)=>{const i=sm(),o=sm(),{position:n,top:r,bottom:a}=e,s=yl(t).querySelector(".toast-wrapper");switch(o.addElement(s),n){case"top":o.fromTo("transform","translateY(-100%)",`translateY(${r})`);break;case"middle":const e=hf(t.clientHeight,s.clientHeight);s.style.top=`${e}px`,o.fromTo("opacity",.01,1);break;default:o.fromTo("transform","translateY(100%)",`translateY(${a})`)}return i.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(o)},mf=(t,e)=>{const i=sm(),o=sm(),{position:n,top:r,bottom:a}=e,s=yl(t).querySelector(".toast-wrapper");switch(o.addElement(s),n){case"top":o.fromTo("transform",`translateY(${r})`,"translateY(-100%)");break;case"middle":o.fromTo("opacity",.99,0);break;default:o.fromTo("transform",`translateY(${a})`,"translateY(100%)")}return i.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(o)},uf=(t,e)=>{const i=sm(),o=sm(),{position:n,top:r,bottom:a}=e,s=yl(t).querySelector(".toast-wrapper");switch(o.addElement(s),n){case"top":s.style.setProperty("transform",`translateY(${r})`),o.fromTo("opacity",.01,1);break;case"middle":const e=hf(t.clientHeight,s.clientHeight);s.style.top=`${e}px`,o.fromTo("opacity",.01,1);break;default:s.style.setProperty("transform",`translateY(${a})`),o.fromTo("opacity",.01,1)}return i.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(o)},gf=t=>{const e=sm(),i=sm(),o=yl(t).querySelector(".toast-wrapper");return i.addElement(o).fromTo("opacity",.99,0),e.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(i)},bf=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=is(this,"ionToastDidPresent",7),this.willPresent=is(this,"ionToastWillPresent",7),this.willDismiss=is(this,"ionToastWillDismiss",7),this.didDismiss=is(this,"ionToastDidDismiss",7),this.didPresentShorthand=is(this,"didPresent",7),this.willPresentShorthand=is(this,"willPresent",7),this.willDismissShorthand=is(this,"willDismiss",7),this.didDismissShorthand=is(this,"didDismiss",7),this.delegateController=$p(this),this.lockController=Kh(),this.triggerController=Op(),this.customHTMLEnabled=Hl.get("innerHTMLTemplatesEnabled",!1),this.presented=!1,this.dispatchCancelHandler=t=>{const e=t.detail.role;if(zp(e)){const t=this.getButtons().find((t=>"cancel"===t.role));this.callButtonHandler(t)}},this.createSwipeGesture=t=>{const e=this.gesture=((t,e,i)=>{const o=yl(t).querySelector(".toast-wrapper"),n=t.clientHeight,r=o.getBoundingClientRect();let a=0;const s="middle"===t.position?.5:0,l="top"===t.position?-1:1,d=hf(n,r.height),c=[{offset:0,transform:`translateY(-${d+r.height}px)`},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:`translateY(${d+r.height}px)`}],h=sm("toast-swipe-to-dismiss-animation").addElement(o).duration(100);switch(t.position){case"middle":a=n+r.height,h.keyframes(c),h.progressStart(!0,.5);break;case"top":a=r.bottom,h.keyframes([{offset:0,transform:`translateY(${e.top})`},{offset:1,transform:"translateY(-100%)"}]),h.progressStart(!0,0);break;default:a=n-r.top,h.keyframes([{offset:0,transform:`translateY(${e.bottom})`},{offset:1,transform:"translateY(100%)"}]),h.progressStart(!0,0)}const p=t=>t*l/a,m=Ng({el:o,gestureName:"toast-swipe-to-dismiss",gesturePriority:39,direction:"y",onMove:t=>{const e=s+p(t.deltaY);h.progressStep(e)},onEnd:e=>{const n=e.velocityY,r=(e.deltaY+1e3*n)/a*l;m.enable(!1);let s=!0,u=1,g=0,b=0;if("middle"===t.position){s=r>=.25||r<=-.25,u=1,g=0;const t=o.getBoundingClientRect(),i=t.top-d,n=`${i}px`,a=e.deltaY<=0?-1:1,l=(d+t.height)*a,c=[{offset:0,transform:`translateY(${n})`},{offset:1,transform:`translateY(${s?`${l}px`:"0px"})`}];h.keyframes(c),b=l-i}else s=r>=.5,u=s?1:0,g=p(e.deltaY),b=(s?1-g:g)*a;const f=Math.min(Math.abs(b)/Math.abs(n),200);h.onFinish((()=>{s?(i(),h.destroy()):("middle"===t.position?h.keyframes(c).progressStart(!0,.5):h.progressStart(!0,0),m.enable(!0))}),{oneTimeCallback:!0}).progressEnd(u,g,f)}});return m})(this.el,t,(()=>{this.dismiss(void 0,Pp)}));e.enable(!0)},this.destroySwipeGesture=()=>{const{gesture:t}=this;void 0!==t&&(t.destroy(),this.gesture=void 0)},this.prefersSwipeGesture=()=>{const{swipeGesture:t}=this;return"vertical"===t},this.revealContentToScreenReader=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.color=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.duration=Hl.getNumber("toastDuration",0),this.header=void 0,this.layout="baseline",this.message=void 0,this.keyboardClose=!1,this.position="bottom",this.positionAnchor=void 0,this.buttons=void 0,this.translucent=!1,this.animated=!0,this.icon=void 0,this.htmlAttributes=void 0,this.swipeGesture=void 0,this.isOpen=!1,this.trigger=void 0}swipeGestureChanged(){this.destroySwipeGesture(),this.presented&&this.prefersSwipeGesture()&&this.createSwipeGesture(this.lastPresentedPosition)}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:i}=this;t&&i.addClickListener(e,t)}connectedCallback(){ap(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){sp(this.el)}componentDidLoad(){!0===this.isOpen&&kl((()=>this.present())),this.triggerChanged()}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom();const{el:e,position:i}=this,o=cf(i,this.getAnchorElement(),rd(this),e);this.lastPresentedPosition=o,await vp(this,"toastEnter",pf,uf,{position:i,top:o.top,bottom:o.bottom}),this.revealContentToScreenReader=!0,this.duration>0&&(this.durationTimeout=setTimeout((()=>this.dismiss(void 0,"timeout")),this.duration)),this.prefersSwipeGesture()&&this.createSwipeGesture(o),t()}async dismiss(t,e){var i,o;const n=await this.lockController.lock(),{durationTimeout:r,position:a,lastPresentedPosition:s}=this;r&&clearTimeout(r);const l=await wp(this,t,e,"toastLeave",mf,gf,{position:a,top:null!==(i=null==s?void 0:s.top)&&void 0!==i?i:"",bottom:null!==(o=null==s?void 0:s.bottom)&&void 0!==o?o:""});return l&&(this.delegateController.removeViewFromDom(),this.revealContentToScreenReader=!1),this.lastPresentedPosition=void 0,this.destroySwipeGesture(),n(),l}onDidDismiss(){return Cp(this.el,"ionToastDidDismiss")}onWillDismiss(){return Cp(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map((t=>"string"==typeof t?{text:t}:t)):[]}getAnchorElement(){const{position:t,positionAnchor:e,el:i}=this;if(void 0!==e)if("middle"!==t||void 0===e){if("string"==typeof e){const t=document.getElementById(e);return null===t?void Sd(`An anchor element with an ID of "${e}" was not found in the DOM.`,i):t}if(e instanceof tl)return e;Sd("Invalid positionAnchor value:",e,i)}else Sd('The positionAnchor property is ignored when using position="middle".',this.el)}async buttonClick(t){const e=t.role;return zp(e)||await this.callButtonHandler(t)?this.dismiss(void 0,e):Promise.resolve()}async callButtonHandler(t){if(null==t?void 0:t.handler)try{if(!1===await Ap(t.handler))return!1}catch(e){console.error(e)}return!0}renderButtons(t,e){if(0===t.length)return;const i=rd(this);return Ka("div",{class:{"toast-button-group":!0,[`toast-button-group-${e}`]:!0}},t.map((t=>Ka("button",Object.assign({},t.htmlAttributes,{type:"button",class:ff(t),tabIndex:0,onClick:()=>this.buttonClick(t),part:vf(t)}),Ka("div",{class:"toast-button-inner"},t.icon&&Ka("ion-icon",{"aria-hidden":"true",icon:t.icon,slot:void 0===t.text?"icon-only":void 0,class:"toast-button-icon"}),t.text),"md"===i&&Ka("ion-ripple-effect",{type:void 0!==t.icon&&void 0===t.text?"unbounded":"bounded"})))))}renderToastMessage(t,e=null){const{customHTMLEnabled:i,message:o}=this;return i?Ka("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message",innerHTML:du(o)}):Ka("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message"},o)}renderHeader(t,e=null){return Ka("div",{key:t,class:"toast-header","aria-hidden":e,part:"header"},this.header)}render(){const{layout:t,el:e,revealContentToScreenReader:i,header:o,message:n}=this,r=this.getButtons(),a=r.filter((t=>"start"===t.side)),s=r.filter((t=>"start"!==t.side)),l=rd(this),d={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${t}`]:!0};return"stacked"===t&&a.length>0&&s.length>0&&Sd("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",e),Ka(Ja,Object.assign({tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:Md(this.color,Object.assign(Object.assign({[l]:!0},Bd(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),Ka("div",{class:d},Ka("div",{class:"toast-container",part:"container"},this.renderButtons(a,"start"),void 0!==this.icon&&Ka("ion-icon",{class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),Ka("div",{class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!i&&void 0!==o&&this.renderHeader("oldHeader","true"),!i&&void 0!==n&&this.renderToastMessage("oldMessage","true"),i&&void 0!==o&&this.renderHeader("header"),i&&void 0!==n&&this.renderToastMessage("header")),this.renderButtons(s,"end"))))}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",md:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}"}}},[33,"ion-toast",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],color:[513],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],duration:[2],header:[1],layout:[1],message:[1],keyboardClose:[4,"keyboard-close"],position:[1],positionAnchor:[1,"position-anchor"],buttons:[16],translucent:[4],animated:[4],icon:[1],htmlAttributes:[16],swipeGesture:[1,"swipe-gesture"],isOpen:[4,"is-open"],trigger:[1],revealContentToScreenReader:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),ff=t=>Object.assign({"toast-button":!0,"toast-button-icon-only":void 0!==t.icon&&void 0===t.text,[`toast-button-${t.role}`]:void 0!==t.role,"ion-focusable":!0,"ion-activatable":!0},Bd(t.cssClass)),vf=t=>zp(t.role)?"button cancel":"button",xf=function(){"undefined"!=typeof customElements&&["ion-toast","ion-icon","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-toast":customElements.get(t)||customElements.define(t,bf);break;case"ion-icon":customElements.get(t)||kd();break;case"ion-ripple-effect":customElements.get(t)||Gd()}}))},wf="ionKeyboardDidShow",yf="ionKeyboardDidHide";let kf={},Cf={},Ef=!1;const zf=t=>{t.addEventListener("keyboardDidShow",(e=>Sf(t,e))),t.addEventListener("keyboardDidHide",(()=>Af(t)))},Sf=(t,e)=>{Of(t,e),Ef=!0},Af=t=>{Tf(t),Ef=!1},If=()=>{const t=(kf.height-Cf.height)*Cf.scale;return!Ef&&kf.width===Cf.width&&t>150},Pf=t=>Ef&&!$f(t),$f=t=>Ef&&Cf.height===t.innerHeight,Of=(t,e)=>{const i=e?e.keyboardHeight:t.innerHeight-Cf.height,o=new CustomEvent(wf,{detail:{keyboardHeight:i}});t.dispatchEvent(o)},Tf=t=>{const e=new CustomEvent(yf);t.dispatchEvent(e)},Lf=t=>{kf=Object.assign({},Cf),Cf=Df(t.visualViewport)},Df=t=>({width:Math.round(t.width),height:Math.round(t.height),offsetTop:t.offsetTop,offsetLeft:t.offsetLeft,pageTop:t.pageTop,pageLeft:t.pageLeft,scale:t.scale}),_f=Object.freeze(Object.defineProperty({__proto__:null,KEYBOARD_DID_CLOSE:yf,KEYBOARD_DID_OPEN:wf,copyVisualViewport:Df,keyboardDidClose:$f,keyboardDidOpen:If,keyboardDidResize:Pf,resetKeyboardAssist:()=>{kf={},Cf={},Ef=!1},setKeyboardClose:Af,setKeyboardOpen:Sf,startKeyboardAssist:t=>{if(Zm.getEngine())zf(t);else{if(!t.visualViewport)return;Cf=Df(t.visualViewport),t.visualViewport.onresize=()=>{Lf(t),If()||Pf(t)?Sf(t):$f(t)&&Af(t)}}},trackViewportChanges:Lf},Symbol.toStringTag,{value:"Module"})); +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +var jf;!function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"}(jf||(jf={}));const Mf={getEngine(){const t=Dh();if(null==t?void 0:t.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},supportsDefaultStatusBarStyle(){const t=Dh();return!!(null==t?void 0:t.PluginHeaders)},setStyle(t){const e=this.getEngine();e&&e.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return jf.Default;const{style:e}=await t.getInfo();return e}},Bf=(t,e)=>{if(1===e)return 0;const i=1/(1-e);return t*i+-e*i},Vf=()=>{!Th||Th.innerWidth>=768||!Mf.supportsDefaultStatusBarStyle()||Mf.setStyle({style:jf.Dark})},Rf=(t=jf.Default)=>{!Th||Th.innerWidth>=768||!Mf.supportsDefaultStatusBarStyle()||Mf.setStyle({style:t})},Ff=async(t,e)=>{"function"==typeof t.canDismiss&&await t.canDismiss(void 0,Pp)&&(e.isRunning()?e.onFinish((()=>{t.dismiss(void 0,"handler")}),{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},Hf=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,Nf=.93,Wf=(t,e,i,o)=>{const n=.5,r=t.offsetHeight;let a=!1,s=!1,l=null,d=null,c=!0,h=0;const p=Ng({el:t,gestureName:"modalSwipeToClose",gesturePriority:39,direction:"y",threshold:10,canStart:t=>{const e=t.event.target;if(null===e||!e.closest)return!0;if(l=qm(e),l){if(Hm(l)){const t=yl(l);d=t.querySelector(".inner-scroll")}else d=l;return!l.querySelector("ion-refresher")&&0===d.scrollTop}return null===e.closest("ion-footer")},onStart:i=>{const{deltaY:o}=i;c=!l||!Hm(l)||l.scrollY,s=void 0!==t.canDismiss&&!0!==t.canDismiss,o>0&&l&&Gm(l),e.progressStart(!0,a?1:0)},onMove:t=>{const{deltaY:o}=t;o>0&&l&&Gm(l);const a=t.deltaY/r,d=a>=0&&s,c=d?.2:.9999,p=d?Hf(a/c):a,m=Il(1e-4,p,c);e.progressStep(m),m>=n&&h=n&&Vf(),h=m},onEnd:i=>{const d=i.velocityY,h=i.deltaY/r,m=h>=0&&s,u=m?.2:.9999,g=m?Hf(h/u):h,b=Il(1e-4,g,u),f=(i.deltaY+1e3*d)/r,v=!m&&f>=n;let x=v?-.001:.001;v?(e.easing("cubic-bezier(0.32, 0.72, 0, 1)"),x+=Yu([0,0],[.32,.72],[0,1],[1,1],b)[0]):(e.easing("cubic-bezier(1, 0, 0.68, 0.28)"),x+=Yu([0,0],[1,0],[.68,.28],[1,1],b)[0]);const w=qf(v?h*r:(1-b)*r,d);a=v,p.enable(!1),l&&Xm(l,c),e.onFinish((()=>{v||p.enable(!0)})).progressEnd(v?1:0,x,w),m&&b>u/4?Ff(t,e):v&&o()}});return p},qf=(t,e)=>Il(400,t/Math.abs(1.1*e),500),Yf=t=>{const{currentBreakpoint:e,backdropBreakpoint:i}=t,o=void 0===i||i{const{currentBreakpoint:e,backdropBreakpoint:i}=t,o=`calc(var(--backdrop-opacity) * ${Bf(e,i)})`,n=[{offset:0,opacity:o},{offset:1,opacity:0}],r=[{offset:0,opacity:o},{offset:i,opacity:0},{offset:1,opacity:0}],a=sm("backdropAnimation").keyframes(0!==i?r:n);return{wrapperAnimation:sm("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*e}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:a}},Xf=(t,e)=>{const{presentingEl:i,currentBreakpoint:o}=e,n=yl(t),{wrapperAnimation:r,backdropAnimation:a}=void 0!==o?Yf(e):{backdropAnimation:sm().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:sm().fromTo("transform","translateY(100vh)","translateY(0vh)")};a.addElement(n.querySelector("ion-backdrop")),r.addElement(n.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const s=sm("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(r);if(i){const t=window.innerWidth<768,e="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,o=yl(i),n=sm().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),l=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",o=`translateY(${e?"-10px":t}) scale(${Nf})`;n.afterStyles({transform:o}).beforeAddWrite((()=>l.style.setProperty("background-color","black"))).addElement(i).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:o,borderRadius:"10px 10px 0 0"}]),s.addAnimation(n)}else if(s.addAnimation(a),e){const t=`translateY(-10px) scale(${e?Nf:1})`;n.afterStyles({transform:t}).addElement(o.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:t}]);const i=sm().afterStyles({transform:t}).addElement(o.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:t}]);s.addAnimation([n,i])}else r.fromTo("opacity","0","1")}else s.addAnimation(a);return s},Uf=(t,e,i=500)=>{const{presentingEl:o,currentBreakpoint:n}=e,r=yl(t),{wrapperAnimation:a,backdropAnimation:s}=void 0!==n?Gf(e):{backdropAnimation:sm().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:sm().fromTo("transform","translateY(0vh)","translateY(100vh)")};s.addElement(r.querySelector("ion-backdrop")),a.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const l=sm("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(i).addAnimation(a);if(o){const t=window.innerWidth<768,e="ION-MODAL"===o.tagName&&void 0!==o.presentingElement,i=yl(o),n=sm().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((t=>{1===t&&(o.style.setProperty("overflow",""),Array.from(r.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((t=>void 0!==t.presentingElement)).length<=1&&r.style.setProperty("background-color",""))})),r=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",i=`translateY(${e?"-10px":t}) scale(${Nf})`;n.addElement(o).keyframes([{offset:0,filter:"contrast(0.85)",transform:i,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),l.addAnimation(n)}else if(l.addAnimation(s),e){const t=`translateY(-10px) scale(${e?Nf:1})`;n.addElement(i.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:t},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const o=sm().addElement(i.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:t},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);l.addAnimation([n,o])}else a.fromTo("opacity","1","0")}else l.addAnimation(s);return l},Kf=(t,e)=>{const{currentBreakpoint:i}=e,o=yl(t),{wrapperAnimation:n,backdropAnimation:r}=void 0!==i?Yf(e):{backdropAnimation:sm().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:sm().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}])};return r.addElement(o.querySelector("ion-backdrop")),n.addElement(o.querySelector(".modal-wrapper")),sm().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([r,n])},Zf=(t,e)=>{const{currentBreakpoint:i}=e,o=yl(t),{wrapperAnimation:n,backdropAnimation:r}=void 0!==i?Gf(e):{backdropAnimation:sm().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:sm().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return r.addElement(o.querySelector("ion-backdrop")),n.addElement(o.querySelector(".modal-wrapper")),sm().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,n])},Jf=Rs(class extends tl{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=is(this,"ionModalDidPresent",7),this.willPresent=is(this,"ionModalWillPresent",7),this.willDismiss=is(this,"ionModalWillDismiss",7),this.didDismiss=is(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=is(this,"ionBreakpointDidChange",7),this.didPresentShorthand=is(this,"didPresent",7),this.willPresentShorthand=is(this,"willPresent",7),this.willDismissShorthand=is(this,"willDismiss",7),this.didDismissShorthand=is(this,"didDismiss",7),this.ionMount=is(this,"ionMount",7),this.lockController=Kh(),this.triggerController=Op(),this.coreDelegate=Uh(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:e}=this;"cycle"===e&&void 0===t&&this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;void 0===t&&this.dismiss(void 0,Ip)},this.onLifecycle=t=>{const e=this.usersElement,i=Qf[t.type];if(e&&i){const o=new CustomEvent(i,{bubbles:!1,cancelable:!1,detail:t.detail});e.dispatchEvent(o)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:i}=this;t&&i.addClickListener(e,t)}breakpointsChanged(t){void 0!==t&&(this.sortedBreakpoints=t.sort(((t,e)=>t-e)))}connectedCallback(){const{el:t}=this;ap(t),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:e,el:i}=this,o=this.isSheetModal=void 0!==t&&void 0!==e;this.inheritedAttributes=bl(i,["aria-label","role"]),o&&(this.currentBreakpoint=this.initialBreakpoint),void 0===t||void 0===e||t.includes(e)||Sd("Your breakpoints array must include the initialBreakpoint value."),sp(i)}componentDidLoad(){!0===this.isOpen&&kl((()=>this.present())),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const e=this.el.parentNode,i=this.inline=null!==e&&!this.hasController;return{inline:i,delegate:this.workingDelegate=i?this.delegate||this.coreDelegate:this.delegate}}async checkCanDismiss(t,e){const{canDismiss:i}=this;return"function"==typeof i?i(t,e):i}async present(){const t=await this.lockController.lock();if(this.presented)return void t();const{presentingElement:e,el:i}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:o,delegate:n}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await Gh(n,i,this.component,["ion-page"],this.componentProps,o),gl(i)?await Zp(this.usersElement):this.keepContentsMounted||await Kp(),hl((()=>this.el.classList.add("show-modal")));const r=void 0!==e;r&&"ios"===rd(this)&&(this.statusBarStyle=await Mf.getStyle(),Vf()),await vp(this,"modalEnter",Xf,Kf,{presentingEl:e,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),"undefined"!=typeof window&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),kl((()=>{this.gesture&&this.gesture.enable(!0)})))},window.addEventListener(wf,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():r&&this.initSwipeToClose(),t()}initSwipeToClose(){var t;if("ios"!==rd(this))return;const{el:e}=this,i=this.leaveAnimation||Hl.get("modalLeave",Uf),o=this.animation=i(e,{presentingEl:this.presentingElement});if(!Wm(e))return void Ym(e);const n=null!==(t=this.statusBarStyle)&&void 0!==t?t:jf.Default;this.gesture=Wf(e,o,n,(()=>{this.gestureAnimationDismissing=!0,Rf(this.statusBarStyle),this.animation.onFinish((async()=>{await this.dismiss(void 0,Pp),this.gestureAnimationDismissing=!1}))})),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:e,backdropBreakpoint:i}=this;if(!t||void 0===e)return;const o=this.enterAnimation||Hl.get("modalEnter",Xf),n=this.animation=o(this.el,{presentingEl:this.presentingElement,currentBreakpoint:e,backdropBreakpoint:i});n.progressStart(!0,1);const{gesture:r,moveSheetToBreakpoint:a}=((t,e,i,o,n,r,a=[],s,l,d)=>{const c={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==n?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-n,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},h=t.querySelector("ion-content"),p=i.clientHeight;let m=o,u=0,g=!1;const b=r.childAnimations.find((t=>"wrapperAnimation"===t.id)),f=r.childAnimations.find((t=>"backdropAnimation"===t.id)),v=a[a.length-1],x=a[0],w=()=>{t.style.setProperty("pointer-events","auto"),e.style.setProperty("pointer-events","auto"),t.classList.remove("ion-disable-focus-trap")},y=()=>{t.style.setProperty("pointer-events","none"),e.style.setProperty("pointer-events","none"),t.classList.add("ion-disable-focus-trap")};b&&f&&(b.keyframes([...c.WRAPPER_KEYFRAMES]),f.keyframes([...c.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-m),m>n?w():y()),h&&m!==v&&(h.scrollY=!1);const k=e=>{const{breakpoint:i,canDismiss:o,breakpointOffset:s,animated:p}=e,u=o&&0===i,g=u?m:i,v=0!==g;return m=0,b&&f&&(b.keyframes([{offset:0,transform:`translateY(${100*s}%)`},{offset:1,transform:`translateY(${100*(1-g)}%)`}]),f.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${Bf(1-s,n)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${Bf(g,n)})`}]),r.progressStep(0)),C.enable(!1),u?Ff(t,r):v||l(),new Promise((t=>{r.onFinish((()=>{v?b&&f?kl((()=>{b.keyframes([...c.WRAPPER_KEYFRAMES]),f.keyframes([...c.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-g),m=g,d(m),h&&m===a[a.length-1]&&(h.scrollY=!0),m>n?w():y(),C.enable(!0),t()})):(C.enable(!0),t()):t()}),{oneTimeCallback:!0}).progressEnd(1,0,p?500:0)}))},C=Ng({el:i,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:t=>{const e=t.event.target.closest("ion-content");return m=s(),1!==m||!e},onStart:()=>{g=void 0!==t.canDismiss&&!0!==t.canDismiss&&0===x,h&&(h.scrollY=!1),kl((()=>{t.focus()})),r.progressStart(!0,1-m)},onMove:t=>{const e=1-m,i=a.length>1?1-a[1]:void 0,o=e+t.deltaY/p,n=void 0!==i&&o>=i&&g,s=n?.95:.9999,l=n&&void 0!==i?i+Hf((o-i)/(s-i)):o;u=Il(1e-4,l,s),r.progressStep(u)},onEnd:t=>{const e=t.velocityY,i=(t.deltaY+350*e)/p,o=m-i,n=a.reduce(((t,e)=>Math.abs(e-o){var t;return null!==(t=this.currentBreakpoint)&&void 0!==t?t:0}),(()=>this.sheetOnDismiss()),(t=>{this.currentBreakpoint!==t&&(this.currentBreakpoint=t,this.ionBreakpointDidChange.emit({breakpoint:t}))}));this.gesture=r,this.moveSheetToBreakpoint=a,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish((async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,Pp),this.gestureAnimationDismissing=!1}))}async dismiss(t,e){var i;if(this.gestureAnimationDismissing&&e!==Pp)return!1;const o=await this.lockController.lock();if("handler"!==e&&!(await this.checkCanDismiss(t,e)))return o(),!1;const{presentingElement:n}=this;void 0!==n&&"ios"===rd(this)&&Rf(this.statusBarStyle),"undefined"!=typeof window&&this.keyboardOpenCallback&&(window.removeEventListener(wf,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const r=tp.get(this)||[],a=await wp(this,t,e,"modalLeave",Uf,Zf,{presentingEl:n,currentBreakpoint:null!==(i=this.currentBreakpoint)&&void 0!==i?i:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(a){const{delegate:t}=this.getDelegate();await Xh(t,this.usersElement),hl((()=>this.el.classList.remove("show-modal"))),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy(),r.forEach((t=>t.destroy()))}return this.currentBreakpoint=void 0,this.animation=void 0,o(),a}onDidDismiss(){return Cp(this.el,"ionModalDidDismiss")}onWillDismiss(){return Cp(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal)return void Sd("setCurrentBreakpoint is only supported on sheet modals.");if(!this.breakpoints.includes(t))return void Sd(`Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:e,moveSheetToBreakpoint:i,canDismiss:o,breakpoints:n,animated:r}=this;e!==t&&i&&(this.sheetTransition=i({breakpoint:t,breakpointOffset:1-e,canDismiss:void 0!==o&&!0!==o&&0===n[0],animated:r}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:e}=this;if(!t||null==e)return!1;const i=t.filter((t=>0!==t)),o=i.indexOf(e),n=i[(o+1)%i.length];return await this.setCurrentBreakpoint(n),!0}render(){const{handle:t,isSheetModal:e,presentingElement:i,htmlAttributes:o,handleBehavior:n,inheritedAttributes:r}=this,a=!1!==t&&e,s=rd(this),l=void 0!==i&&"ios"===s,d="cycle"===n;return Ka(Ja,Object.assign({"no-router":!0,tabindex:"-1"},o,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[s]:!0,"modal-default":!l&&!e,"modal-card":l,"modal-sheet":e,"overlay-hidden":!0},Bd(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),Ka("ion-backdrop",{ref:t=>this.backdropEl=t,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===s&&Ka("div",{class:"modal-shadow"}),Ka("div",Object.assign({role:"dialog"},r,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:t=>this.wrapperEl=t}),a&&Ka("button",{class:"modal-handle",tabIndex:d?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:d?this.onHandleClick:void 0,part:"handle"}),Ka("slot",null)))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}',md:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}'}}},[33,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),Qf={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"},tv=function(){"undefined"!=typeof customElements&&["ion-modal","ion-backdrop"].forEach((t=>{switch(t){case"ion-modal":customElements.get(t)||customElements.define(t,Jf);break;case"ion-backdrop":customElements.get(t)||_d()}}))},ev="update:modelValue",iv="modelValue",ov="navManager",nv=Symbol(),rv={default:nv},av=t=>(null==t?void 0:t.split(" "))||[],sv=(t,e,i=[])=>{var o;return[...Array.from((null===(o=t.value)||void 0===o?void 0:o.classList)||[]),...i].filter(((t,i,o)=>!e.has(t)&&o.indexOf(t)===i))},lv=(t,e,i=[],o,r)=>{void 0!==e&&e();const a=yi(((e,{attrs:i,slots:a,emit:s})=>{var l;let d=e[o];const c=xe(),h=new Set(av(i.class)),p={created:t=>{(Array.isArray(r)?r:[r]).forEach((e=>{t.addEventListener(e.toLowerCase(),(t=>{d=(null==t?void 0:t.target)[o],s(ev,d)}))}))}},m=mn(),u=(null===(l=null==m?void 0:m.appContext)||void 0===l?void 0:l.provides[ov])?ho(ov):void 0;return()=>{d=e[o],av(i.class).forEach((t=>{h.add(t)}));const r=e.onClick;let s={ref:c,class:sv(c,h),onClick:t=>{void 0!==r&&r(t),t.defaultPrevented||(t=>{const{routerLink:i}=e;if(i!==nv)if(void 0!==u){let i={event:t};for(const t in e){const o=e[t];e.hasOwnProperty(t)&&t.startsWith("router")&&o!==nv&&(i[t]=o)}u.navigate(i)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")})(t)}};for(const t in e){const i=e[t];(e.hasOwnProperty(t)&&i!==nv||t.startsWith("aria"))&&(s[t]=i)}o&&(e[iv]!==nv?s=Object.assign(Object.assign({},s),{[o]:e[iv]}):d!==nv&&(s=Object.assign(Object.assign({},s),{[o]:d})));const l=Sn(t,s,a.default&&a.default());return void 0===o?l:function(t,e){const i=Ze;if(null===i)return t;const o=En(i)||i.proxy,r=t.dirs||(t.dirs=[]);for(let a=0;a{a.props[t]=rv})),o&&(a.props[iv]=rv,a.emits=[ev])),a},dv=(t("ao",lv("ion-accordion",zd,["value","disabled","readonly","toggleIcon","toggleIconSlot"])),t("an",lv("ion-accordion-group",Pd,["animated","multiple","value","disabled","readonly","expand","ionChange","ionValueChange"],"value","ion-change")),t("ag",lv("ion-badge",Hd,["color"])),t("k",lv("ion-button",Kd,["color","buttonType","disabled","expand","fill","routerDirection","routerAnimation","download","href","rel","shape","size","strong","target","type","form","ionFocus","ionBlur"])),t("v",lv("ion-buttons",Qd,["collapse"])),t("O",lv("ion-card",ec,["color","button","type","disabled","download","href","rel","routerDirection","routerAnimation","target"])),t("R",lv("ion-card-content",oc)),t("P",lv("ion-card-header",rc,["color","translucent"])),t("W",lv("ion-card-subtitle",sc,["color"])),t("Q",lv("ion-card-title",dc,["color"])),t("K",lv("ion-col",Cc,["offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","pull","pullXs","pullSm","pullMd","pullLg","pullXl","push","pushXs","pushSm","pushMd","pushLg","pushXl","size","sizeXs","sizeSm","sizeMd","sizeLg","sizeXl"])),t("B",lv("ion-content",Ic,["color","fullscreen","forceOverscroll","scrollX","scrollY","scrollEvents","ionScrollStart","ionScroll","ionScrollEnd"]))),cv=(t("ad",lv("ion-datetime",Dm,["color","name","disabled","readonly","isDateEnabled","min","max","presentation","cancelText","doneText","clearText","yearValues","monthValues","dayValues","hourValues","minuteValues","locale","firstDayOfWeek","titleSelectedDatesFormatter","multiple","highlightedDates","value","showDefaultTitle","showDefaultButtons","showClearButton","showDefaultTimeLabel","hourCycle","size","preferWheel","ionCancel","ionChange","ionValueChange","ionFocus","ionBlur","ionStyle","ionRender"],"value","ion-change")),t("q",lv("ion-fab",jm,["horizontal","vertical","edge","activated"])),t("m",lv("ion-fab-button",Bm,["color","activated","disabled","download","href","rel","routerDirection","routerAnimation","target","show","translucent","type","size","closeIcon","ionFocus","ionBlur"])),t("H",lv("ion-grid",Qm,["fixed"])),t("A",lv("ion-header",lu,["collapse","translucent"])),t("D",lv("ion-input",ku,["color","accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","inputmode","helperText","label","labelPlacement","legacy","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","size","type","value","ionInput","ionChange","ionBlur","ionFocus","ionStyle"],"value","ion-input")),t("r",lv("ion-item",Cu,["color","button","detail","detailIcon","disabled","download","fill","shape","href","rel","lines","counter","routerAnimation","routerDirection","target","type","counterFormatter"]))),hv=(t("ar",lv("ion-item-divider",zu,["color","sticky"])),t("aq",lv("ion-item-group",Au)),t("av",lv("ion-item-option",Pu,["color","disabled","download","expandable","href","rel","target","type"])),t("au",lv("ion-item-options",Ou,["side","ionSwipe"])),t("at",lv("ion-item-sliding",Bu,["disabled","ionDrag"])),t("i",lv("ion-label",Vu,["color","position","ionColor","ionStyle"]))),pv=t("I",lv("ion-list",Hu,["lines","inset"])),mv=t("h",lv("ion-list-header",qu,["color","lines"])),uv=lv("ion-menu",dg,["contentId","menuId","type","disabled","side","swipeGesture","maxEdgeStart","ionWillOpen","ionWillClose","ionDidOpen","ionDidClose","ionMenuChange"]),gv=(t("al",lv("ion-menu-button",pg,["color","disabled","menu","autoHide","type"])),lv("ion-menu-toggle",ug,["menu","autoHide"])),bv=t("aj",lv("ion-note",wg,["color"])),fv=(t("J",lv("ion-row",$g)),t("ac",lv("ion-searchbar",Lg,["color","animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","debounce","disabled","inputmode","enterkeyhint","name","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value","ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus","ionStyle"],"value","ion-input")),t("af",lv("ion-segment",_g,["color","disabled","scrollable","swipeGesture","value","selectOnFocus","ionChange","ionSelect","ionStyle"],"value","ion-change")),t("ae",lv("ion-segment-button",Bg,["disabled","layout","type","value"],"value","ion-change")),t("L",lv("ion-select",vb,["cancelText","color","compareWith","disabled","fill","interface","interfaceOptions","justify","label","labelPlacement","legacy","multiple","name","okText","placeholder","selectedText","toggleIcon","expandedIcon","shape","value","ionChange","ionCancel","ionDismiss","ionFocus","ionBlur","ionStyle"],"value","ion-change")),t("M",lv("ion-select-option",yb,["disabled","value"])),lv("ion-split-pane",Ab,["contentId","disabled","when","ionSplitPaneVisible"]));var vv;t("aI",lv("ion-text",Pb,["color"])),t("N",lv("ion-textarea",Tb,["color","autocapitalize","autofocus","clearOnEdit","debounce","disabled","fill","inputmode","enterkeyhint","maxlength","minlength","name","placeholder","readonly","required","spellcheck","cols","rows","wrap","autoGrow","value","counter","counterFormatter","errorText","helperText","label","labelPlacement","legacy","shape","ionChange","ionInput","ionStyle","ionBlur","ionFocus"],"value","ion-input")),t("y",lv("ion-title",Db,["color","size","ionStyle"])),t("s",lv("ion-toolbar",jb,["color"])),function(t){t.WillEnter="onIonViewWillEnter",t.DidEnter="onIonViewDidEnter",t.WillLeave="onIonViewWillLeave",t.DidLeave="onIonViewDidLeave"}(vv||(vv={}));const xv={[Tp]:vv.WillEnter,[Lp]:vv.DidEnter,[Dp]:vv.WillLeave,[_p]:vv.DidLeave},wv={main:0},yv=(t,e,i)=>{(null==t?void 0:t[i])&&t[i].bind(null==e?void 0:e.value)();const o=null==e?void 0:e.value;if((null==o?void 0:o[i])&&o[i](),o){const t=o[xv[i]];t&&t.forEach((t=>t()))}},kv=()=>{if("undefined"!=typeof window){const t=window.Ionic;if(t&&t.config)return t.config}return null},Cv=t=>(e,i=mn())=>((t,e,i)=>{if(i){const o=i,n=o.proxy[t]||(o.proxy[t]=[]);o.exposed&&(o.exposed[t]=n);const r=(...t)=>{if(!o.isUnmounted)return t?e(...t):e()};return n.push(r),r}console.warn("[@ionic/vue]: Ionic Lifecycle Hooks can only be used during execution of setup().")})(t,e,i);t("ai",Cv(vv.WillEnter)),Cv(vv.DidEnter),Cv(vv.WillLeave),Cv(vv.DidLeave);const Ev=t=>t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),zv={async install(t,e={}){"undefined"!=typeof document&&document.documentElement.classList.add("ion-ce");const{ael:i,rel:o,ce:n}={ael:(t,e,i,o)=>t.addEventListener(Ev(e),i,o),rel:(t,e,i,o)=>t.removeEventListener(Ev(e),i,o),ce:(t,e)=>new CustomEvent(Ev(t),e)};ad(Object.assign(Object.assign({},e),{_ael:i,_rel:o,_ce:n}))}};yi(((t,{attrs:e,slots:i})=>{Bb();const o=ho("navManager"),n=()=>{if(void 0===o)return;const t=e["default-href"]||e.defaultHref,i=e["router-animation"]||e.routerAnimation;o.handleNavigateBack(t,i)};return()=>Sn("ion-back-button",Object.assign({onClick:n},e),i.default&&i.default())})).name="IonBackButton",t("C",yi({name:"IonPage",props:{registerIonPage:{type:Function,default:()=>{}}},mounted(){this.$props.registerIonPage(this.$refs.ionPage)},setup:(t,{attrs:e,slots:i})=>()=>Sn("div",Object.assign(Object.assign({},e),{class:"ion-page",ref:"ionPage"}),i.default&&i.default())}));const Sv=t=>!t.classList.contains("ion-page-hidden")&&!t.classList.contains("ion-page-invisible"),Av=Symbol(0),Iv=yi({name:"IonRouterOutlet",setup(){Rb();const t=ho(ba),e=Ia(),i=ho(Av,0),o=zn((()=>e.matched[i]));let n,r;co(Av,i+1),co(ma,o);const a=xe(),s=((t="main")=>{var e;const i=(null!==(e=wv[t])&&void 0!==e?e:0)+1;return wv[t]=i,i.toString()})("ion-router-outlet"),l=ho("navManager"),d=ho("viewStacks"),c=we([]);let h,p=!1;gi((()=>[e,o.value]),(([t,e])=>{if(void 0!==e){const i=e!==n,a=t.matched[t.matched.length-1]===e&&t.path!==r;(i||a)&&v(o)}n=e,r=t.path}));const m=()=>{const t=kv();if(!t||!t.get("swipeBackEnabled","ios"===a.value.mode))return!1;const e=d.getViewStack(s);if(!e||e.length<=1)return!1;const i=l.getLeavingRouteInfo();return!!d.findViewItemByRouteInfo({pathname:i.pushedByRoute||""},s)},u=async()=>{const t=l.getLeavingRouteInfo(),{routerAnimation:e}=t,i=d.findViewItemByRouteInfo({pathname:t.pushedByRoute||""},s),o=d.findViewItemByRouteInfo(t,s);if(o){let t=e;const n=i.ionPageElement,r=o.ionPageElement,a=i.routerAnimation;void 0===t&&void 0!==a&&(t=a),o.routerAnimation=t,await b(n,r,"back",l.canGoBack(2),!0,t)}return Promise.resolve()},g=t=>{if(t)p=!0,l.handleNavigateBack();else{const t=l.getCurrentRouteInfo(),e=d.findViewItemByRouteInfo({pathname:t.pushedByRoute||""},s);e.ionPageElement.setAttribute("aria-hidden","true"),e.ionPageElement.classList.add("ion-page-hidden")}};gi(a,(()=>{a.value.swipeHandler={canStart:m,onStart:u,onEnd:g}}));const b=async(t,e,i,o,n,r)=>{if(p)return p=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);t.classList.add("ion-page-invisible");const s=void 0===i||"root"===i||"none"===i;return await a.value.commit(t,e,{duration:s&&void 0===r?0:void 0,direction:i,showGoBack:o,progressAnimation:n,animationBuilder:r})},f=async()=>{const t=l.getCurrentRouteInfo(),{routerDirection:e,routerAction:i,routerAnimation:o,prevRouteLastPathname:n,delta:r}=t,a=d.findViewItemByRouteInfo(t,s);let h=d.findLeavingViewItemByRouteInfo(t,s);const p=a.ionPageElement;if(void 0===p&&console.warn(`[@ionic/vue Warning]: The view you are trying to render for path ${t.pathname} does not have the required component. Transitions and lifecycle methods may not work as expected.\n\nSee https://ionicframework.com/docs/vue/navigation#ionpage for more information.`),a!==h&&(!h&&n&&(h=d.findViewItemByPathname(n,s)),!Sv(p)||void 0===(null==h?void 0:h.ionPageElement)||Sv(h.ionPageElement))){if(yv(a.vueComponent,a.vueComponentRef,Tp),(null==h?void 0:h.ionPageElement)&&a!==h){let n=o;const l=h.ionPageElement;yv(h.vueComponent,h.vueComponentRef,Dp);const c=a.routerAnimation;void 0===n&&"back"===e&&void 0!==c&&(n=c),h.routerAnimation=n,await b(p,l,e,!!t.pushedByRoute,!1,n),l.classList.add("ion-page-hidden"),l.setAttribute("aria-hidden","true");const m=1===d.size();"replace"===i?(h.mount=!1,h.ionPageElement=void 0,h.ionRoute=!1):"push"!==i||"forward"!==e?"none"!==e&&h&&a!==h&&(h.mount=!1,h.ionPageElement=void 0,h.ionRoute=!1,m&&d.unmountLeavingViews(s,a,r)):m&&d.mountIntermediaryViews(s,h,r),yv(h.vueComponent,h.vueComponentRef,_p)}else requestAnimationFrame((()=>p.classList.remove("ion-page-invisible")));yv(a.vueComponent,a.vueComponentRef,Lp),c.value=d.getChildrenToRender(s)}},v=t=>{const i=e.matched[0];if(h||(h=i.path),!t.value||t.value!==i&&i.path!==h)return;const o=l.getCurrentRouteInfo();let n=d.findViewItemByRouteInfo(o,s);n||(n=d.createViewItem(s,t.value.components.default,t.value,o),d.add(n)),n.mount?f():(n.mount=!0,n.registerCallback=()=>{f(),n.registerCallback=void 0}),c.value=d.getChildrenToRender(s)};return o.value&&v(o),_i((()=>d.clear(s))),{id:s,components:c,injectedRoute:t,ionRouterOutlet:a,registerIonPage:(t,e)=>{const i=t.ionPageElement;d.registerIonPage(t,e),t.registerCallback?(e.classList.add("ion-page-invisible"),t.registerCallback()):i&&!i.classList.contains("ion-page-invisible")&&e.classList.remove("ion-page-invisible")}}},render(){const{components:t,registerIonPage:e,injectedRoute:i}=this;return Sn("ion-router-outlet",{ref:"ionRouterOutlet"},t&&t.map((t=>{var o,n;let r={ref:t.vueComponentRef,key:t.pathname,registerIonPage:i=>e(t,i)};const a=null===(n=null===(o=t.matchedRoute)||void 0===o?void 0:o.props)||void 0===n?void 0:n.default,s=a?!0===a?t.params:"function"==typeof a?(()=>{var e;const o=null===(e=t.vueComponentData)||void 0===e?void 0:e.propsFunctionResult;if(o)return o;{const e=a(i);return t.vueComponentData=Object.assign(Object.assign({},t.vueComponentData),{propsFunctionResult:e}),e}})():a:null;return r=Object.assign(Object.assign({},r),s),Sn(t.vueComponent,r)})))}}),Pv=we([]),$v=yi(((t,{attrs:e,slots:i})=>(Wb(),()=>Sn("ion-app",Object.assign({},e),[i.default&&i.default(),...Pv.value]))));$v.name="IonApp";const Ov=t=>{Pv.value=[...Pv.value,t]},Tv=t=>{Pv.value=Pv.value.filter((e=>e!==t))},Lv=(t=Ov,e=Tv)=>{const i=new WeakMap;return{attachViewToDom:(e,o,n={},r)=>{const a=document.createElement("div");r&&a.classList.add(...r),e.appendChild(a);const s=Sn(_o,{to:a},Sn(o,Object.assign({},n)));return i.set(a,s),t(s),Promise.resolve(a)},removeViewFromDom:(t,o)=>{const n=i.get(o);return n&&e(n),Promise.resolve()}}},Dv=yi((t=>{xg();const e=we([]),i=Lv((t=>e.value=[...e.value,t]),(t=>e.value=e.value.filter((e=>e!==t))));return()=>Sn("ion-nav",Object.assign(Object.assign({},t),{delegate:i}),e.value)}));Dv.name="IonNav",Dv.props={animated:{type:Boolean,default:!0},animation:{type:Function,default:void 0},root:{type:[Function,Object,String],default:void 0},rootParams:{type:Object,default:void 0},swipeGesture:{type:Boolean,default:void 0}};const _v=t("n",yi({name:"IonIcon",props:{color:String,flipRtl:Boolean,icon:String,ios:String,lazy:String,md:String,mode:String,name:String,size:String,src:String},setup:(t,{slots:e})=>(sf(),()=>{var i,o;const{icon:n,ios:r,md:a,mode:s}=t;let l;const d=kv(),c=s||(null==d?void 0:d.get("mode"));return l=r||a?"ios"===c?null!==(i=null!=r?r:a)&&void 0!==i?i:n:null!==(o=null!=a?a:r)&&void 0!==o?o:n:n,Sn("ion-icon",Object.assign(Object.assign({},t),{icon:l}),e)})})),jv=Symbol(),Mv={default:jv},Bv=(t,e,i=[],o,n)=>{const r=yi(void 0!==n?(i,{slots:o,emit:r})=>{const a=[{componentEv:`${t}-will-present`,frameworkEv:"willPresent"},{componentEv:`${t}-did-present`,frameworkEv:"didPresent"},{componentEv:`${t}-will-dismiss`,frameworkEv:"willDismiss"},{componentEv:`${t}-did-dismiss`,frameworkEv:"didDismiss"}];void 0!==e&&e();const s=xe(),l=async()=>{i.isOpen&&await p(i)},d=async(t,e)=>{const o=t.props.isOpen;o!==e.props.isOpen&&(o?await p(i):await h())},c=async()=>{await h()},h=async()=>{s.value&&(await s.value,s.value=s.value.dismiss(),await s.value,s.value=void 0)},p=async t=>{var e;if(s.value&&await s.value,null===(e=s.value)||void 0===e?void 0:e.present)return void(await s.value.present());let i={};for(const o in t){const e=t[o];t.hasOwnProperty(o)&&e!==jv&&(i[o]=e)}delete i.onWillPresent,delete i.onDidPresent,delete i.onWillDismiss,delete i.onDidDismiss;const l=o.default&&o.default()[0];s.value=n.create(Object.assign(Object.assign({},i),{component:l})),s.value=await s.value,a.forEach((t=>{s.value.addEventListener(t.componentEv,(()=>{r(t.frameworkEv)}))})),await s.value.present()};return()=>Sn("div",{style:{display:"none"},onVnodeMounted:l,onVnodeUpdated:d,onVnodeBeforeUnmount:c,isOpen:!0===i.isOpen})}:(i,{slots:n})=>{void 0!==e&&e();const r=xe(!1),a=xe();return Oi((()=>{a.value.addEventListener("ion-mount",(()=>r.value=!0)),a.value.addEventListener("will-present",(()=>r.value=!0)),a.value.addEventListener("did-dismiss",(()=>r.value=!1))})),()=>{let e={};for(const t in i){const o=i[t];i.hasOwnProperty(t)&&o!==jv&&(e[t]=o)}return Sn(t,Object.assign(Object.assign({},e),{ref:a}),r.value||e.keepContentsMounted||""===e.keepContentsMounted?o?Sn("div",{className:"ion-delegate-host ion-page"},n):n:void 0)}});return r.name=t,r.props={isOpen:Mv},i.forEach((t=>{r.props[t]=Mv})),void 0!==n&&(r.emits=["willPresent","didPresent","willDismiss","didDismiss"]),r},Vv=(t("am",Bv("ion-alert",df,["animated","backdropDismiss","buttons","cssClass","enterAnimation","header","htmlAttributes","inputs","isOpen","keyboardClose","leaveAnimation","message","mode","subHeader","translucent","trigger"])),t("T",Bv("ion-modal",tv,["animated","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","enterAnimation","handle","handleBehavior","htmlAttributes","initialBreakpoint","isOpen","keepContentsMounted","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","trigger"],!0)),(t,e,i=!1)=>{const o=i?Lv():void 0,n=e.create.bind(e);return e.create=e=>(t(),n(Object.assign(Object.assign({},e),{delegate:o}))),e}),Rv=(t("aH",Vv(df,ip)),t("aL",Vv(lf,op)),t("aK",Vv(xf,rp)),yi({__name:"App",setup:t=>(t,e)=>(No(),Uo(Ce($v),null,{default:ti((()=>[on(Ce(fv),{"content-id":"main-content"},{default:ti((()=>[on(Ce(Sa),{name:"mainmenu"}),on(Ce(Iv),{id:"main-content"})])),_:1})])),_:1}))})),Fv=t("_",((t,e)=>{const i=t.__vccOpts||t;for(const[o,n]of e)i[o]=n;return i})),Hv=Fv(Rv,[["__scopeId","data-v-c15c1daa"]]),Nv={main:0},Wv=(t="main")=>{var e;const i=(null!==(e=Nv[t])&&void 0!==e?e:0)+1;return Nv[t]=i,i.toString()},qv=(t("p","data:image/svg+xml;utf8,"),t("as","data:image/svg+xml;utf8,"),t("x","data:image/svg+xml;utf8,"),t("aF","data:image/svg+xml;utf8,"),t("aA","data:image/svg+xml;utf8,"),t("a0","data:image/svg+xml;utf8,"),t("a3","data:image/svg+xml;utf8,"),t("X","data:image/svg+xml;utf8,"),t("aM","data:image/svg+xml;utf8,"),t("a4","data:image/svg+xml;utf8,"),t("a1","data:image/svg+xml;utf8,"),t("aB","data:image/svg+xml;utf8,"),t("ay","data:image/svg+xml;utf8,"),t("az","data:image/svg+xml;utf8,"),t("ap","data:image/svg+xml;utf8,"),t("ax","data:image/svg+xml;utf8,"),t("a6","data:image/svg+xml;utf8,"),t("ab","data:image/svg+xml;utf8,"),t("a2","data:image/svg+xml;utf8,"),t("a7","data:image/svg+xml;utf8,"),t("z","data:image/svg+xml;utf8,"),t("a5","data:image/svg+xml;utf8,"),t("aD","data:image/svg+xml;utf8,"),t("aw","data:image/svg+xml;utf8,"),t("aJ","data:image/svg+xml;utf8,"),t("aG","data:image/svg+xml;utf8,"),t("ak","data:image/svg+xml;utf8,"),t("aC","data:image/svg+xml;utf8,"),t("aE","data:image/svg+xml;utf8,"),t("Y","data:image/svg+xml;utf8,"),t("a8","data:image/svg+xml;utf8,"),yi({__name:"MenuMain",setup(t){const e=[{title:"Einsatzpläne",url:"/riskassessment",iosIcon:"data:image/svg+xml;utf8,",mdIcon:"data:image/svg+xml;utf8,"},{title:"Gefährdungen",url:"/risks",iosIcon:"data:image/svg+xml;utf8,",mdIcon:"data:image/svg+xml;utf8,"},{title:"Maßnahmen",url:"/measures",iosIcon:"data:image/svg+xml;utf8,",mdIcon:"data:image/svg+xml;utf8,"},{title:"Mitarbeiter",url:"/technicians",iosIcon:"data:image/svg+xml;utf8,",mdIcon:"data:image/svg+xml;utf8,"},{title:"Ausrüstung",url:"/equipment",iosIcon:"data:image/svg+xml;utf8,",mdIcon:"data:image/svg+xml;utf8,"},{title:"Favorites",url:"/folder/Favorites",iosIcon:"data:image/svg+xml;utf8,",mdIcon:"data:image/svg+xml;utf8,"},{title:"Archived",url:"/folder/Archived",iosIcon:"data:image/svg+xml;utf8,",mdIcon:"data:image/svg+xml;utf8,"}],i=zn((()=>{const t=Ia().path;let i=-1;return e.forEach(((e,o)=>{t.startsWith(e.url)&&(i=o)})),i}));return(t,o)=>(No(),Uo(Ce(uv),{"content-id":"main-content",type:"overlay"},{default:ti((()=>[on(Ce(dv),null,{default:ti((()=>[on(Ce(pv),{id:"mainmenu-list"},{default:ti((()=>[on(Ce(mv),null,{default:ti((()=>[rn("RopeRisk Pro")])),_:1}),on(Ce(bv),null,{default:ti((()=>[rn("hi@ionicframework.com")])),_:1}),(No(),Xo(Mo,null,Ri(e,((e,o)=>on(Ce(gv),{"auto-hide":!1,key:o},{default:ti((()=>[on(Ce(cv),{onClick:i=>"/"===t.$route.path?t.$router.push(e.url):t.$router.replace(e.url),"router-direction":"root",lines:"none",detail:!1,class:G(["hydrated",{selected:i.value===o}])},{default:ti((()=>[on(Ce(_v),{"aria-hidden":"true",slot:"start",ios:e.iosIcon,md:e.mdIcon},null,8,["ios","md"]),on(Ce(hv),null,{default:ti((()=>[rn(K(e.title),1)])),_:2},1024)])),_:2},1032,["onClick","class"])])),_:2},1024))),64))])),_:1})])),_:1})])),_:1}))}})),Yv=Fv(qv,[["__scopeId","data-v-188ea549"]]),Gv=[{path:"",components:{default:()=>Pa((()=>e.import("./LandingPage-legacy-jNiGhj4u.js"))),mainmenu:Yv},meta:{title:"Home"}},{path:"/risks",components:{default:()=>Pa((()=>e.import("./RiskCatalogPage-legacy-LDsvAgGG.js"))),mainmenu:Yv},meta:{title:"Gefährdungskatalog"}},{path:"/risks/:id(\\d+)",components:{default:()=>Pa((()=>e.import("./RiskDetailsPage-legacy-R8b2Xjm5.js"))),mainmenu:Yv},meta:{title:"Gefährdungsdetails"}},{path:"/measures",components:{default:()=>Pa((()=>e.import("./MeasuresCatalogPage-legacy-AvG4mjrA.js"))),mainmenu:Yv},meta:{title:"Maßnahmen"}},{path:"/measures/:id(\\d+)",components:{default:()=>Pa((()=>e.import("./MeasureDetailsPage-legacy-y74zfiku.js"))),mainmenu:Yv},meta:{title:"Details"}},{path:"/measures/:id(\\d+)/edit",components:{default:()=>Pa((()=>e.import("./MeasureEditPage-legacy-Dhj6B0vU.js"))),mainmenu:Yv},meta:{title:"Maßnahme bearbeiten"}},{path:"/measures/new",components:{default:()=>Pa((()=>e.import("./MeasureEditPage-legacy-Dhj6B0vU.js"))),mainmenu:Yv},meta:{title:"Neue Maßnahme"}},{path:"/technicians",components:{default:()=>Pa((()=>e.import("./TechnicianCatalogPage-legacy-G1BAdEsm.js"))),mainmenu:Yv},meta:{title:"Personal"}},{path:"/technicians/edit/:id",components:{default:()=>Pa((()=>e.import("./TechnicianEditPage-legacy-BOVFQi38.js"))),mainmenu:Yv},meta:{title:"Bearbeiten"}},{path:"/technicians/new",components:{default:()=>Pa((()=>e.import("./TechnicianEditPage-legacy-BOVFQi38.js"))),mainmenu:Yv},meta:{title:"Neuer Mitarbeiter"}},{path:"/riskassessment",components:{default:()=>Pa((()=>e.import("./RiskAssessmentListPage-legacy-vXQdEblg.js"))),mainmenu:Yv},meta:{title:"Einsatzpläne"}},{path:"/riskassessment/:id(\\d+)",components:{default:()=>Pa((()=>e.import("./RAEditOverview-legacy-YvdLVVEn.js"))),mainmenu:Yv},meta:{title:"Einsatzplanung",sectionTitle:"Übersicht"}},{path:"/riskassessment/:id(\\d+)/general",components:{default:()=>Pa((()=>e.import("./RAEditGeneral-legacy-hsgC9o4b.js"))),mainmenu:Yv},meta:{sectionTitle:"Allgemeines",lastSection:void 0,nextSection:"location"}},{path:"/riskassessment/:id(\\d+)/location",components:{default:()=>Pa((()=>e.import("./RAEditLocation-legacy-dcpF_GaH.js"))),mainmenu:Yv},meta:{sectionTitle:"Ort",lastSection:"general",nextSection:"date"}},{path:"/riskassessment/:id(\\d+)/date",components:{default:()=>Pa((()=>e.import("./RAEditDate-legacy-Ts6FzhDv.js"))),mainmenu:Yv},meta:{sectionTitle:"Zeitraum",lastSection:"location",nextSection:"equipment"}},{path:"/riskassessment/:id(\\d+)/equipment",components:{default:()=>Pa((()=>e.import("./RAEditEquipment-legacy-8l2JLxhr.js"))),mainmenu:Yv},meta:{sectionTitle:"Ausrüstung",lastSection:"date",nextSection:"technicians"}},{path:"/riskassessment/:id(\\d+)/technicians",components:{default:()=>Pa((()=>e.import("./RAEditTechnicians-legacy-tb8HIiNB.js"))),mainmenu:Yv},meta:{sectionTitle:"Personal",lastSection:"equipment",nextSection:"access"}},{path:"/riskassessment/:id(\\d+)/access",components:{default:()=>Pa((()=>e.import("./RAEditAccess-legacy-OVKuuqnz.js"))),mainmenu:Yv},meta:{sectionTitle:"Zugang",lastSection:"technicians",nextSection:"rescue"}},{path:"/riskassessment/:id(\\d+)/rescue",components:{default:()=>Pa((()=>e.import("./RAEditRescue-legacy-9AqeDjU2.js"))),mainmenu:Yv},meta:{sectionTitle:"Rettung",lastSection:"access",nextSection:"risks"}},{path:"/riskassessment/:id(\\d+)/risks",components:{default:()=>Pa((()=>e.import("./RAEditRisks-legacy-1OUQVgZQ.js"))),mainmenu:Yv},meta:{sectionTitle:"Gefährdungen",lastSection:"rescue",nextSection:void 0}},{path:"/riskassessment/:id(\\d+)/risks/:riskId(\\d+)",components:{default:()=>Pa((()=>e.import("./RAEditRiskEntry-legacy-e3_wn4kx.js"))),mainmenu:Yv},meta:{sectionTitle:"Gefährdungen",lastSection:"risks",nextSection:void 0}},{path:"/riskassessment/:id(\\d+)/risks/:riskId(\\d+)/addmeasures",components:{default:()=>Pa((()=>e.import("./RAEditRiskEntryMeasures-legacy-6ISYF15v.js"))),mainmenu:Yv},meta:{sectionTitle:"Gefährdungen",lastSection:"risks",nextSection:void 0}},{path:"/riskassessment/:id(\\d+)/export",components:{default:()=>Pa((()=>e.import("./RiskAssessmentExport-legacy-KtTUVEJi.js"))),mainmenu:Yv},meta:{sectionTitle:"Gefährdungen",lastSection:"risks",nextSection:void 0}},{path:"/equipment",components:{default:()=>Pa((()=>e.import("./EquipmentCatalogPage-legacy-TEHh17q4.js"))),mainmenu:Yv},meta:{title:"Ausrüstungskatalog"}},{path:"/equipment/new",components:{default:()=>Pa((()=>e.import("./EquipmentEditPage-legacy-HsAnWkP8.js"))),mainmenu:Yv},meta:{title:"Bearbeiten"}},{path:"/equipment/:id(\\d+)",components:{default:()=>Pa((()=>e.import("./EquipmentEditPage-legacy-HsAnWkP8.js"))),mainmenu:Yv},meta:{title:"Neu"}}],Xv=(t=>{const e=Object.assign({},t);delete e.tabsPrefix;const i=Aa(e),o=((t,e)=>{let i={direction:void 0,action:void 0,delta:void 0};e.afterEach(((e,o,n)=>{if(n)return;const{direction:r,action:a,delta:l}=i;s=t.history.state.position;const d=t.history.state.replaced?"replace":void 0;c(e,a||d,r,l),i={direction:void 0,action:void 0,delta:void 0}}));const o=(()=>{const t=[],e={},i=e=>{const i=r(e.tab);let o;if(i){for(o=i[i.length-1];o&&o.id!==e.id;)i.pop(),o=i[i.length-1];i.pop(),i.push(e)}for(o=t[t.length-1];o&&o.id!==e.id;)t.pop(),o=t[t.length-1];t.pop(),t.push(e)},o=e=>{const i=r(e.tab);i&&(i[i.length-1]&&i[i.length-1].id===e.id&&i.pop(),i.push(e)),t.push(e)},n=i=>{if(i){const{position:o,tab:n}=i,r=t.findIndex((t=>t.position===o));if(-1===r)return;t.splice(r);const a=t=>{const i=e[t].findIndex((t=>t.position===o));-1!==i&&e[t].splice(i)},s=e[n];if(n&&s)a(n);else for(const t in e)a(t)}else{for(const t in e)e[t]=[];t.length=0}},r=t=>{let i;return t&&(i=e[t],i||(i=e[t]=[])),i},a=()=>t[t.length-1];return{current:(e,i)=>t[i-e]||a(),size:()=>t.length,last:a,add:t=>{"pop"===t.routerAction?i(t):o(t),"root"===t.routerDirection&&(n(),o(t))},canGoBack:(t=1,e,i)=>i-t>=e,update:i=>{const o=t.findIndex((t=>t.id===i.id));o>-1&&t.splice(o,1,i);const n=e[i.tab||""];if(n){const t=n.findIndex((t=>t.id===i.id));t>-1?n.splice(t,1,i):n.push(i)}else i.tab&&(e[i.tab]=[i])},getFirstRouteInfoForTab:t=>{const e=r(t);if(e)return e[0]},getCurrentRouteInfoForTab:t=>{const e=r(t);if(e)return e[e.length-1]},findLastLocation:(e,i=-1)=>{const o=r(e.tab);if(o){if(i<-1)return o[o.length-1+i];for(let t=o.length-2;t>=0;t--){const i=o[t];if(i&&i.pathname===e.pushedByRoute)return i}}if(i<-1)return t[t.length-1+i];for(let n=t.length-2;n>=0;n--){const i=t[n];if(i&&i.pathname===e.pushedByRoute)return i}},clearHistory:n}})();let n,r,a=t.history.state.position,s=t.history.state.position;const l=[];"undefined"!=typeof document&&document.addEventListener("ionBackButton",(e=>{e.detail.register(0,(e=>{t.history.go(-1),e()}))})),t.history.listen(((t,e,o)=>{i={delta:o.delta,action:"pop"===o.type&&o.delta>=1?"push":o.type,direction:""===o.direction?"forward":o.direction}}));const d=(t,i,o,n,r)=>{h(i,o,n,r),"push"===i?e.push(t):e.replace(t)},c=(t,e,i,d)=>{let c;if(r)if("replace"===r.routerAction)c=o.current(a,s);else if("pop"===r.routerAction)c=o.current(a,s+1),"replace"===e&&o.clearHistory();else{const t="root"===r.routerDirection?s:s-1;c=o.current(a,t)}else c=n;if(c||(c={pathname:"",search:""}),c.pathname+c.search!==t.fullPath){if(!r){if("replace"===e)r={routerAction:"replace",routerDirection:"none"};else if("pop"===e){const t=o.current(a,s-d);if(t&&t.pushedByRoute){const e=o.findLastLocation(t,d);r=Object.assign(Object.assign({},e),{routerAction:"pop",routerDirection:"back"})}else r={routerAction:"pop",routerDirection:"none"}}r||(r={routerAction:"push",routerDirection:i||"forward"})}let l;if(null==r?void 0:r.id)l=Object.assign(Object.assign({},r),{lastPathname:c.pathname});else{const e="push"===r.routerAction&&"forward"===r.routerDirection;if(l=Object.assign(Object.assign({id:Wv("routeInfo")},r),{lastPathname:c.pathname,pathname:t.path,search:t.fullPath&&t.fullPath.split("?")[1]||"",params:t.params&&t.params,prevRouteLastPathname:c.lastPathname}),e)l.pushedByRoute=""!==c.pathname?c.pathname:void 0;else if("pop"===l.routerAction){const t=o.findLastLocation(l);l.pushedByRoute=null==t?void 0:t.pushedByRoute}else if("push"===l.routerAction&&l.tab!==c.tab){const t=o.getCurrentRouteInfoForTab(l.tab);l.pushedByRoute=null==t?void 0:t.pushedByRoute}else if("replace"===l.routerAction){const t=o.current(a,s),e=null==t?void 0:t.pushedByRoute,i=void 0!==e&&e!==l.pathname?e:l.pushedByRoute;l.lastPathname=(null==t?void 0:t.pathname)||l.lastPathname,l.pushedByRoute=i,l.routerDirection=(null==t?void 0:t.routerDirection)||l.routerDirection,l.routerAnimation=(null==t?void 0:t.routerAnimation)||l.routerAnimation,l.prevRouteLastPathname=null==t?void 0:t.lastPathname}}l.position=s,l.delta=d;const h=o.size(),p=s-a;h>p||h===p&&h>0&&"replace"===e?"push"!==l.routerAction&&"replace"!==l.routerAction||void 0!==d||(o.clearHistory(l),o.add(l)):o.add(l),1===o.size()&&(a=l.position),n=l}r=void 0,l.forEach((t=>t(n)))},h=(t="push",e="forward",i,o)=>{r={routerAction:t,routerDirection:e,routerAnimation:i,tab:o}};return{handleNavigate:d,getLeavingRouteInfo:()=>o.current(a,s),handleNavigateBack:(t,i)=>{const n=o.current(a,s);if(n&&n.pushedByRoute){const a=o.findLastLocation(n);a?(r=Object.assign(Object.assign({},a),{routerAction:"pop",routerDirection:"back",routerAnimation:i||n.routerAnimation}),n.lastPathname===n.pushedByRoute||a.pathname===n.pushedByRoute&&!n.tab&&!a.tab?e.back():e.go(a.position-n.position)):d(t,"pop","back",i)}else d(t,"pop","back",i)},handleSetCurrentTab:t=>{const e=Object.assign({},o.current(a,s));e.tab!==t&&(e.tab=t,o.update(e));const i=o.findLastLocation(e);e.pushedByRoute!==e.lastPathname&&(null==i?void 0:i.tab)!==t&&(e.pushedByRoute=void 0,o.update(e))},getCurrentRouteInfo:()=>n,canGoBack:(t=1)=>o.canGoBack(t,a,s),navigate:t=>{const{routerAnimation:i,routerDirection:o,routerLink:n}=t;h("push",o,i),e.push(n)},resetTab:t=>{const i=o.getFirstRouteInfoForTab(t);i&&e.go(i.position-s)},changeTab:(t,i)=>{if(!i)return;const n=o.getCurrentRouteInfoForTab(t),[a]=i.split("?");n?(r=Object.assign(Object.assign({},r),{routerAction:"push",routerDirection:"none",tab:t}),n.pathname===a?e.push({path:n.pathname,query:ca(n.search)}):e.push({path:a,query:ca(n.search)})):d(a,"push","none",void 0,t)},registerHistoryChangeListener:t=>{l.push(t)},goBack:t=>{h("pop","back",t),e.back()},goForward:t=>{h("push","forward",t),e.forward()}}})(t,i),n=(t=>{const e={},i=(t,e)=>e.find((e=>{if(e.pathname===t)return e})),o=(o,n,r=!1)=>{const a=e=>{if(r&&!e.ionRoute||""===o)return!1;const i=t.resolve(o).matched.find((t=>t===e.matchedRoute));return i?(!i.path.includes(":")||o===e.pathname)&&e:void 0};if(n){const r=e[n];if(!r)return;const s=t?r.find(a):i(o,r);if(s)return s}else for(const t in e){const n=e[t],r=i(o,n);if(r)return r}};return{unmountLeavingViews:(t,i,o=1)=>{const n=e[t];if(!n)return;const r=n.findIndex((t=>t===i));for(let e=r+1;e{const n=e[t];if(!n)return;const r=n.findIndex((t=>t===i));for(let e=r+1;e{delete e[t]},findViewItemByRouteInfo:(t,e)=>o(t.pathname,e,!1),findLeavingViewItemByRouteInfo:(t,e,i=!0)=>o(t.lastPathname,e,i),findViewItemByPathname:(t,e)=>o(t,e,!1),createViewItem:(t,e,i,o,n)=>({id:Wv("viewItem"),pathname:o.pathname,outletId:t,matchedRoute:i,ionPageElement:n,vueComponent:e,vueComponentRef:we(),ionRoute:!1,mount:!1,exact:o.pathname===i.path,params:o.params,vueComponentData:{}}),getChildrenToRender:t=>e[t]?e[t].filter((t=>t.mount)):[],add:t=>{const{outletId:i}=t;e[i]?e[i].push(t):e[i]=[t]},remove:(t,i)=>{if(!i)throw Error("outletId required");const o=e[i];o&&(e[i]=o.filter((e=>e.id!==t.id)))},registerIonPage:(t,e)=>{t.ionPageElement=e,t.ionRoute=!0,t.matchedRoute.instances={default:t.vueComponentRef.value}},getViewStack:t=>e[t],size:()=>Object.keys(e).length}})(i),r=i.install.bind(i);i.install=t=>{t.provide("navManager",o),t.provide("viewStacks",n),r(t)};const a=i.isReady.bind(i);return i.isReady=()=>a(),i})({history:(Uv="/ra/",kr(Uv)),routes:Gv});var Uv;(async function(){return await navigator.storage&&navigator.storage.persisted&&navigator.storage.persisted()})().then((async t=>{t?console.log(":) Storage is successfully persisted."):(console.log(":( Storage is not persisted."),console.log("Trying to persist..:"),await async function(){return await navigator.storage&&navigator.storage.persist&&navigator.storage.persist()}()?console.log(":) We successfully turned the storage to be persisted."):console.log(":( Failed to make storage persisted"))}));const Kv=((...t)=>{const e=(Un||(Un=Io(Xn))).createApp(...t),{mount:i}=e;return e.mount=t=>{const o=function(t){return v(t)?document.querySelector(t):t}(t);if(!o)return;const n=e._component;f(n)||n.render||n.template||(n.template=o.innerHTML),o.innerHTML="";const r=i(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e})(Hv).use(zv).use(Xv);Xv.isReady().then((()=>{Kv.mount("#app")}))}}})); diff --git a/ra/assets/index9-iTfihG9Y.js b/ra/assets/index9-iTfihG9Y.js new file mode 100644 index 0000000..34e56e2 --- /dev/null +++ b/ra/assets/index9-iTfihG9Y.js @@ -0,0 +1,3 @@ +import{aS as c,aT as p,aU as U}from"./index-DYrAM6VV.js";/*! + * (C) Ionic http://ionicframework.com - MIT License + */const B=o=>{if(c===void 0)return;let i=-E*10,r=0,e,l,s;const C=o.getBoolean("animated",!0)&&o.getBoolean("rippleEffect",!0),f=new WeakMap,I=t=>{i=p(t),T(t)},m=t=>{i=p(t),h(t)},_=t=>{if(t.button===2)return;const n=p(t)-E;i{const n=p(t)-E;i{s&&clearTimeout(s),s=void 0,e&&(D(!1),e=void 0)},T=t=>{e||L(k(t),t)},h=t=>{L(void 0,t)},L=(t,n)=>{if(t&&t===e)return;s&&clearTimeout(s),s=void 0;const{x:d,y:a}=U(n);if(e){if(f.has(e))throw new Error("internal error");e.classList.contains(u)||A(e,d,a),D(!0)}if(t){const R=f.get(t);R&&(clearTimeout(R),f.delete(t)),t.classList.remove(u);const S=()=>{A(t,d,a),s=void 0};b(t)?S():s=setTimeout(S,q)}e=t},A=(t,n,d)=>{if(r=Date.now(),t.classList.add(u),!C)return;const a=y(t);a!==null&&(w(),l=a.addRipple(n,d))},w=()=>{l!==void 0&&(l.then(t=>t()),l=void 0)},D=t=>{w();const n=e;if(!n)return;const d=g-Date.now()+r;if(t&&d>0&&!b(n)){const a=setTimeout(()=>{n.classList.remove(u),f.delete(n)},g);f.set(n,a)}else n.classList.remove(u)};c.addEventListener("ionGestureCaptured",v),c.addEventListener("touchstart",I,!0),c.addEventListener("touchcancel",m,!0),c.addEventListener("touchend",m,!0),c.addEventListener("pointercancel",v,!0),c.addEventListener("mousedown",_,!0),c.addEventListener("mouseup",M,!0)},k=o=>{if(o.composedPath!==void 0){const i=o.composedPath();for(let r=0;ro.classList.contains("ion-activatable-instant"),y=o=>{if(o.shadowRoot){const i=o.shadowRoot.querySelector("ion-ripple-effect");if(i)return i}return o.querySelector("ion-ripple-effect")},u="ion-activated",q=100,g=150,E=2500;export{B as startTapClick}; diff --git a/ra/assets/index9-legacy-BvNGh5ds.js b/ra/assets/index9-legacy-BvNGh5ds.js new file mode 100644 index 0000000..b473542 --- /dev/null +++ b/ra/assets/index9-legacy-BvNGh5ds.js @@ -0,0 +1,5 @@ +System.register(["./index-legacy-l9aK7RKf.js"],(function(e,t){"use strict";var n,o,i;return{setters:[e=>{n=e.aS,o=e.aT,i=e.aU}],execute:function(){e("startTapClick",(e=>{if(void 0===n)return;let u,v,f,p=10*-l,m=0;const L=e.getBoolean("animated",!0)&&e.getBoolean("rippleEffect",!0),h=new WeakMap,w=e=>{p=o(e),T(e)},E=()=>{f&&clearTimeout(f),f=void 0,u&&(R(!1),u=void 0)},g=e=>{u||y(t(e),e)},T=e=>{y(void 0,e)},y=(e,t)=>{if(e&&e===u)return;f&&clearTimeout(f),f=void 0;const{x:n,y:o}=i(t);if(u){if(h.has(u))throw new Error("internal error");u.classList.contains(r)||S(u,n,o),R(!0)}if(e){const t=h.get(e);t&&(clearTimeout(t),h.delete(e)),e.classList.remove(r);const i=()=>{S(e,n,o),f=void 0};s(e)?i():f=setTimeout(i,c)}u=e},S=(e,t,n)=>{if(m=Date.now(),e.classList.add(r),!L)return;const o=a(e);null!==o&&(b(),v=o.addRipple(t,n))},b=()=>{void 0!==v&&(v.then((e=>e())),v=void 0)},R=e=>{b();const t=u;if(!t)return;const n=d-Date.now()+m;if(e&&n>0&&!s(t)){const e=setTimeout((()=>{t.classList.remove(r),h.delete(t)}),d);h.set(t,e)}else t.classList.remove(r)};n.addEventListener("ionGestureCaptured",E),n.addEventListener("touchstart",(e=>{p=o(e),g(e)}),!0),n.addEventListener("touchcancel",w,!0),n.addEventListener("touchend",w,!0),n.addEventListener("pointercancel",E,!0),n.addEventListener("mousedown",(e=>{if(2===e.button)return;const t=o(e)-l;p{const t=o(e)-l;p{if(void 0===e.composedPath)return e.target.closest(".ion-activatable");{const t=e.composedPath();for(let e=0;ee.classList.contains("ion-activatable-instant"),a=e=>{if(e.shadowRoot){const t=e.shadowRoot.querySelector("ion-ripple-effect");if(t)return t}return e.querySelector("ion-ripple-effect")},r="ion-activated",c=100,d=150,l=2500}}})); diff --git a/ra/assets/input-shims-legacy-LDylaC-D.js b/ra/assets/input-shims-legacy-LDylaC-D.js new file mode 100644 index 0000000..5d09cd9 --- /dev/null +++ b/ra/assets/input-shims-legacy-LDylaC-D.js @@ -0,0 +1,5 @@ +System.register(["./index-legacy-l9aK7RKf.js"],(function(e,t){"use strict";var o,n,i,r,s,a,d,l,c,u,v;return{setters:[e=>{o=e.aS,n=e.a_,i=e.a$,r=e.b0,s=e.aX,a=e.aW,d=e.b1,l=e.b2,c=e.b3,u=e.b4,v=e.b5}],execute:function(){ +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +const t=new WeakMap,m=(e,o,n,i=0,r=!1)=>{t.has(e)!==n&&(n?f(e,o,i,r):y(e,o))},f=(e,o,n,i=!1)=>{const r=o.parentNode,s=o.cloneNode(!1);s.classList.add("cloned-input"),s.tabIndex=-1,i&&(s.disabled=!0),r.appendChild(s),t.set(e,s);const a="rtl"===e.ownerDocument.dir?9999:-9999;e.style.pointerEvents="none",o.style.transform=`translate3d(${a}px,${n}px,0) scale(0)`},y=(e,o)=>{const n=t.get(e);n&&(t.delete(e),n.remove()),e.style.pointerEvents="",o.style.transform=""},b="input, textarea, [no-blur], [contenteditable]",p=(e,t,o,n)=>{const i=e.top,r=e.bottom,s=t.top,a=s+15,d=Math.min(t.bottom,n-o)-50-r,l=a-i,c=Math.round(d<0?-d:l>0?-l:0),u=Math.min(c,i-s),v=Math.abs(u)/.3;return{scrollAmount:u,scrollDuration:Math.min(400,Math.max(150,v)),scrollPadding:o,inputSafeY:4-(i-a)}},w="$ionPaddingTimer",h=(e,t,o)=>{const n=e[w];n&&clearTimeout(n),t>0?e.style.setProperty("--keyboard-offset",`${t}px`):e[w]=setTimeout((()=>{e.style.setProperty("--keyboard-offset","0px"),o&&o()}),120)},E=(e,t,o)=>{e.addEventListener("focusout",(()=>{t&&h(t,0,o)}),{once:!0})};let g=0;const S="data-ionic-skip-scroll-assist",L=e=>{document.activeElement!==e&&(e.setAttribute(S,"true"),e.focus())},D=async(e,t,o,n,i,r,s=!1,a=0,d=!0)=>{if(!o&&!n)return;const l=((e,t,o,n)=>{var i;const r=null!==(i=e.closest("ion-item,[ion-item]"))&&void 0!==i?i:e;return p(r.getBoundingClientRect(),t.getBoundingClientRect(),o,n)})(e,o||n,i,a);if(o&&Math.abs(l.scrollAmount)<4)return L(t),void(r&&null!==o&&(h(o,g),E(t,o,(()=>g=0))));if(m(e,t,!0,l.inputSafeY,s),L(t),c((()=>e.click())),r&&o&&(g=l.scrollPadding,h(o,g)),"undefined"!=typeof window){let n;const i=async()=>{void 0!==n&&clearTimeout(n),window.removeEventListener("ionKeyboardDidShow",s),window.removeEventListener("ionKeyboardDidShow",i),o&&await v(o,0,l.scrollAmount,l.scrollDuration),m(e,t,!1,l.inputSafeY),L(t),r&&E(t,o,(()=>g=0))},s=()=>{window.removeEventListener("ionKeyboardDidShow",s),window.addEventListener("ionKeyboardDidShow",i)};if(o){const e=await u(o),r=e.scrollHeight-e.clientHeight;if(d&&l.scrollAmount>r-e.scrollTop)return"password"===t.type?(l.scrollAmount+=50,window.addEventListener("ionKeyboardDidShow",s)):window.addEventListener("ionKeyboardDidShow",i),void(n=setTimeout(i,1e3))}i()}};e("startInputShims",(async(e,t)=>{if(void 0===o)return;const c="ios"===t,u="android"===t,v=e.getNumber("keyboardHeight",290),f=e.getBoolean("scrollAssist",!0),y=e.getBoolean("hideCaretOnScroll",c),p=e.getBoolean("inputBlurring",c),w=e.getBoolean("scrollPadding",!0),h=Array.from(o.querySelectorAll("ion-input, ion-textarea")),E=new WeakMap,g=new WeakMap,L=await n.getResizeMode(),x=async e=>{await new Promise((t=>s(e,t)));const t=e.shadowRoot||e,o=t.querySelector("input")||t.querySelector("textarea"),n=a(e),c=n?null:e.closest("ion-footer");if(o){if(n&&y&&!E.has(e)){const t=((e,t,o)=>{if(!o||!t)return()=>{};const n=o=>{var n;(n=t)===n.getRootNode().activeElement&&m(e,t,o)},s=()=>m(e,t,!1),a=()=>n(!0),d=()=>n(!1);return i(o,"ionScrollStart",a),i(o,"ionScrollEnd",d),t.addEventListener("blur",s),()=>{r(o,"ionScrollStart",a),r(o,"ionScrollEnd",d),t.removeEventListener("blur",s)}})(e,o,n);E.set(e,t)}if("date"!==o.type&&"datetime-local"!==o.type&&(n||c)&&f&&!g.has(e)){const t=((e,t,o,n,i,r,s,a=!1)=>{const c=r&&(void 0===s||s.mode===d.None);let u=!1;const v=void 0!==l?l.innerHeight:0,m=i=>{!1!==u?D(e,t,o,n,i.detail.keyboardHeight,c,a,v,!1):u=!0},f=()=>{u=!1,null==l||l.removeEventListener("ionKeyboardDidShow",m),e.removeEventListener("focusout",f,!0)},y=async()=>{t.hasAttribute(S)?t.removeAttribute(S):(D(e,t,o,n,i,c,a,v),null==l||l.addEventListener("ionKeyboardDidShow",m),e.addEventListener("focusout",f,!0))};return e.addEventListener("focusin",y,!0),()=>{e.removeEventListener("focusin",y,!0),null==l||l.removeEventListener("ionKeyboardDidShow",m),e.removeEventListener("focusout",f,!0)}})(e,o,n,c,v,w,L,u);g.set(e,t)}}};p&&(()=>{let e=!0,t=!1;const o=document,n=()=>{t=!0},r=()=>{e=!0},s=n=>{if(t)return void(t=!1);const i=o.activeElement;if(!i)return;if(i.matches(b))return;const r=n.target;r!==i&&(r.matches(b)||r.closest(b)||(e=!1,setTimeout((()=>{e||i.blur()}),50)))};i(o,"ionScrollStart",n),o.addEventListener("focusin",r,!0),o.addEventListener("touchend",s,!1)})();for(const o of h)x(o);o.addEventListener("ionInputDidLoad",(e=>{x(e.detail)})),o.addEventListener("ionInputDidUnload",(e=>{(e=>{if(y){const t=E.get(e);t&&t(),E.delete(e)}if(f){const t=g.get(e);t&&t(),g.delete(e)}})(e.detail)}))}))}}})); diff --git a/ra/assets/input-shims-vG7GaNkX.js b/ra/assets/input-shims-vG7GaNkX.js new file mode 100644 index 0000000..64fdeae --- /dev/null +++ b/ra/assets/input-shims-vG7GaNkX.js @@ -0,0 +1,3 @@ +import{aS as A,a_ as k,a$ as P,b0 as B,aX as p,aW as F,b1 as H,b2 as b,b3 as $,b4 as U,b5 as W}from"./index-DYrAM6VV.js";/*! + * (C) Ionic http://ionicframework.com - MIT License + */const D=new WeakMap,T=(e,s,t,o=0,i=!1)=>{D.has(e)!==t&&(t?q(e,s,o,i):G(e,s))},Y=e=>e===e.getRootNode().activeElement,q=(e,s,t,o=!1)=>{const i=s.parentNode,r=s.cloneNode(!1);r.classList.add("cloned-input"),r.tabIndex=-1,o&&(r.disabled=!0),i.appendChild(r),D.set(e,r);const a=e.ownerDocument.dir==="rtl"?9999:-9999;e.style.pointerEvents="none",s.style.transform="translate3d(".concat(a,"px,").concat(t,"px,0) scale(0)")},G=(e,s)=>{const t=D.get(e);t&&(D.delete(e),t.remove()),e.style.pointerEvents="",s.style.transform=""},O=50,z=(e,s,t)=>{if(!t||!s)return()=>{};const o=a=>{Y(s)&&T(e,s,a)},i=()=>T(e,s,!1),r=()=>o(!0),c=()=>o(!1);return P(t,"ionScrollStart",r),P(t,"ionScrollEnd",c),s.addEventListener("blur",i),()=>{B(t,"ionScrollStart",r),B(t,"ionScrollEnd",c),s.removeEventListener("blur",i)}},I="input, textarea, [no-blur], [contenteditable]",j=()=>{let e=!0,s=!1;const t=document,o=()=>{s=!0},i=()=>{e=!0},r=c=>{if(s){s=!1;return}const a=t.activeElement;if(!a||a.matches(I))return;const f=c.target;f!==a&&(f.matches(I)||f.closest(I)||(e=!1,setTimeout(()=>{e||a.blur()},50)))};return P(t,"ionScrollStart",o),t.addEventListener("focusin",i,!0),t.addEventListener("touchend",r,!1),()=>{B(t,"ionScrollStart",o,!0),t.removeEventListener("focusin",i,!0),t.removeEventListener("touchend",r,!1)}},X=.3,J=(e,s,t,o)=>{var i;const r=(i=e.closest("ion-item,[ion-item]"))!==null&&i!==void 0?i:e;return Q(r.getBoundingClientRect(),s.getBoundingClientRect(),t,o)},Q=(e,s,t,o)=>{const i=e.top,r=e.bottom,c=s.top,a=Math.min(s.bottom,o-t),f=c+15,l=a-O-r,d=f-i,S=Math.round(l<0?-l:d>0?-d:0),v=Math.min(S,i-c),n=Math.abs(v)/X,y=Math.min(400,Math.max(150,n));return{scrollAmount:v,scrollDuration:y,scrollPadding:t,inputSafeY:-(i-f)+4}},R="$ionPaddingTimer",M=(e,s,t)=>{const o=e[R];o&&clearTimeout(o),s>0?e.style.setProperty("--keyboard-offset","".concat(s,"px")):e[R]=setTimeout(()=>{e.style.setProperty("--keyboard-offset","0px"),t&&t()},120)},_=(e,s,t)=>{const o=()=>{s&&M(s,0,t)};e.addEventListener("focusout",o,{once:!0})};let g=0;const K="data-ionic-skip-scroll-assist",V=(e,s,t,o,i,r,c,a=!1)=>{const f=r&&(c===void 0||c.mode===H.None);let u=!1;const l=b!==void 0?b.innerHeight:0,d=h=>{if(u===!1){u=!0;return}N(e,s,t,o,h.detail.keyboardHeight,f,a,l,!1)},S=()=>{u=!1,b===null||b===void 0||b.removeEventListener("ionKeyboardDidShow",d),e.removeEventListener("focusout",S,!0)},v=async()=>{if(s.hasAttribute(K)){s.removeAttribute(K);return}N(e,s,t,o,i,f,a,l),b===null||b===void 0||b.addEventListener("ionKeyboardDidShow",d),e.addEventListener("focusout",S,!0)};return e.addEventListener("focusin",v,!0),()=>{e.removeEventListener("focusin",v,!0),b===null||b===void 0||b.removeEventListener("ionKeyboardDidShow",d),e.removeEventListener("focusout",S,!0)}},C=e=>{document.activeElement!==e&&(e.setAttribute(K,"true"),e.focus())},N=async(e,s,t,o,i,r,c=!1,a=0,f=!0)=>{if(!t&&!o)return;const u=J(e,t||o,i,a);if(t&&Math.abs(u.scrollAmount)<4){C(s),r&&t!==null&&(M(t,g),_(s,t,()=>g=0));return}if(T(e,s,!0,u.inputSafeY,c),C(s),$(()=>e.click()),r&&t&&(g=u.scrollPadding,M(t,g)),typeof window<"u"){let l;const d=async()=>{l!==void 0&&clearTimeout(l),window.removeEventListener("ionKeyboardDidShow",S),window.removeEventListener("ionKeyboardDidShow",d),t&&await W(t,0,u.scrollAmount,u.scrollDuration),T(e,s,!1,u.inputSafeY),C(s),r&&_(s,t,()=>g=0)},S=()=>{window.removeEventListener("ionKeyboardDidShow",S),window.addEventListener("ionKeyboardDidShow",d)};if(t){const v=await U(t),h=v.scrollHeight-v.clientHeight;if(f&&u.scrollAmount>h-v.scrollTop){s.type==="password"?(u.scrollAmount+=O,window.addEventListener("ionKeyboardDidShow",S)):window.addEventListener("ionKeyboardDidShow",d),l=setTimeout(d,1e3);return}}d()}},Z=!0,te=async(e,s)=>{if(A===void 0)return;const t=s==="ios",o=s==="android",i=e.getNumber("keyboardHeight",290),r=e.getBoolean("scrollAssist",!0),c=e.getBoolean("hideCaretOnScroll",t),a=e.getBoolean("inputBlurring",t),f=e.getBoolean("scrollPadding",!0),u=Array.from(A.querySelectorAll("ion-input, ion-textarea")),l=new WeakMap,d=new WeakMap,S=await k.getResizeMode(),v=async n=>{await new Promise(m=>p(n,m));const y=n.shadowRoot||n,w=y.querySelector("input")||y.querySelector("textarea"),L=F(n),x=L?null:n.closest("ion-footer");if(!w)return;if(L&&c&&!l.has(n)){const m=z(n,w,L);l.set(n,m)}if(!(w.type==="date"||w.type==="datetime-local")&&(L||x)&&r&&!d.has(n)){const m=V(n,w,L,x,i,f,S,o);d.set(n,m)}},h=n=>{if(c){const y=l.get(n);y&&y(),l.delete(n)}if(r){const y=d.get(n);y&&y(),d.delete(n)}};a&&Z&&j();for(const n of u)v(n);A.addEventListener("ionInputDidLoad",n=>{v(n.detail)}),A.addEventListener("ionInputDidUnload",n=>{h(n.detail)})};export{te as startInputShims}; diff --git a/ra/assets/ios.transition-dQ8GtZqh.js b/ra/assets/ios.transition-dQ8GtZqh.js new file mode 100644 index 0000000..92e4e84 --- /dev/null +++ b/ra/assets/ios.transition-dQ8GtZqh.js @@ -0,0 +1,3 @@ +import{aQ as r,aR as Q}from"./index-DYrAM6VV.js";/*! + * (C) Ionic http://ionicframework.com - MIT License + */const Z=540,z=o=>document.querySelector("".concat(o,".ion-cloned-element")),b=o=>o.shadowRoot||o,P=o=>{const s=o.tagName==="ION-TABS"?o:o.querySelector("ion-tabs"),c="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(s!=null){const e=s.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return e!=null?e.querySelector(c):null}return o.querySelector(c)},D=(o,s)=>{const c=o.tagName==="ION-TABS"?o:o.querySelector("ion-tabs");let e=[];if(c!=null){const t=c.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");t!=null&&(e=t.querySelectorAll("ion-buttons"))}else e=o.querySelectorAll("ion-buttons");for(const t of e){const p=t.closest("ion-header"),i=p&&!p.classList.contains("header-collapse-condense-inactive"),u=t.querySelector("ion-back-button"),l=t.classList.contains("buttons-collapse"),y=t.slot==="start"||t.slot==="";if(u!==null&&y&&(l&&i&&s||!l))return u}return null},j=(o,s,c,e,t)=>{const p=D(e,c),i=P(t),u=P(e),l=D(t,c),y=p!==null&&i!==null&&!c,E=u!==null&&l!==null&&c;if(y){const _=i.getBoundingClientRect(),f=p.getBoundingClientRect(),m=b(p).querySelector(".button-text"),R=m.getBoundingClientRect(),v=b(i).querySelector(".toolbar-title").getBoundingClientRect();G(o,s,c,i,_,v,m,R),k(o,s,c,p,f,m,R,i,v)}else if(E){const _=u.getBoundingClientRect(),f=l.getBoundingClientRect(),m=b(l).querySelector(".button-text"),R=m.getBoundingClientRect(),v=b(u).querySelector(".toolbar-title").getBoundingClientRect();G(o,s,c,u,_,v,m,R),k(o,s,c,l,f,m,R,u,v)}return{forward:y,backward:E}},k=(o,s,c,e,t,p,i,u,l)=>{var y,E;const _=s?"calc(100% - ".concat(t.right+4,"px)"):"".concat(t.left-4,"px"),f=s?"right":"left",m=s?"left":"right",R=s?"right":"left",q=((y=p.textContent)===null||y===void 0?void 0:y.trim())===((E=u.textContent)===null||E===void 0?void 0:E.trim()),v=l.width/i.width,g=(l.height-U)/i.height,X=q?"scale(".concat(v,", ").concat(g,")"):"scale(".concat(g,")"),W="scale(1)",x=b(e).querySelector("ion-icon").getBoundingClientRect(),n=s?"".concat(x.width/2-(x.right-t.right),"px"):"".concat(t.left-x.width/2,"px"),S=s?"-".concat(window.innerWidth-t.right,"px"):"".concat(t.left,"px"),h="".concat(l.top,"px"),C="".concat(t.top,"px"),a=[{offset:0,transform:"translate3d(".concat(n,", ").concat(h,", 0)")},{offset:1,transform:"translate3d(".concat(S,", ").concat(C,", 0)")}],d=[{offset:0,transform:"translate3d(".concat(S,", ").concat(C,", 0)")},{offset:1,transform:"translate3d(".concat(n,", ").concat(h,", 0)")}],N=c?d:a,A=c?[{offset:0,opacity:1,transform:W},{offset:1,opacity:0,transform:X}]:[{offset:0,opacity:0,transform:X},{offset:1,opacity:1,transform:W}],I=c?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],L=r(),F=r(),w=r(),T=z("ion-back-button"),M=b(T).querySelector(".button-text"),K=b(T).querySelector("ion-icon");T.text=e.text,T.mode=e.mode,T.icon=e.icon,T.color=e.color,T.disabled=e.disabled,T.style.setProperty("display","block"),T.style.setProperty("position","fixed"),F.addElement(K),L.addElement(M),w.addElement(T),w.beforeStyles({position:"absolute",top:"0px",[R]:"0px"}).keyframes(N),L.beforeStyles({"transform-origin":"".concat(f," top")}).beforeAddWrite(()=>{e.style.setProperty("display","none"),T.style.setProperty(f,_)}).afterAddWrite(()=>{e.style.setProperty("display",""),T.style.setProperty("display","none"),T.style.removeProperty(f)}).keyframes(A),F.beforeStyles({"transform-origin":"".concat(m," center")}).keyframes(I),o.addAnimation([L,F,w])},G=(o,s,c,e,t,p,i,u)=>{var l,y;const E=s?"right":"left",_=s?"calc(100% - ".concat(t.right,"px)"):"".concat(t.left,"px"),f="0px",m="".concat(t.top,"px"),R=8,q=s?"-".concat(window.innerWidth-u.right-R,"px"):"".concat(u.x-R,"px"),v=2,g="".concat(u.y-v,"px"),X=((l=i.textContent)===null||l===void 0?void 0:l.trim())===((y=e.textContent)===null||y===void 0?void 0:y.trim()),W=u.width/p.width,H=u.height/(p.height-U),x="scale(1)",n=X?"scale(".concat(W,", ").concat(H,")"):"scale(".concat(H,")"),S=[{offset:0,opacity:0,transform:"translate3d(".concat(q,", ").concat(g,", 0) ").concat(n)},{offset:.1,opacity:0},{offset:1,opacity:1,transform:"translate3d(".concat(f,", ").concat(m,", 0) ").concat(x)}],h=[{offset:0,opacity:.99,transform:"translate3d(".concat(f,", ").concat(m,", 0) ").concat(x)},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(q,", ").concat(g,", 0) ").concat(n)}],C=c?S:h,a=z("ion-title"),d=r();a.innerText=e.innerText,a.size=e.size,a.color=e.color,d.addElement(a),d.beforeStyles({"transform-origin":"".concat(E," top"),height:"".concat(t.height,"px"),display:"",position:"relative",[E]:_}).beforeAddWrite(()=>{e.style.setProperty("opacity","0")}).afterAddWrite(()=>{e.style.setProperty("opacity",""),a.style.setProperty("display","none")}).keyframes(C),o.addAnimation(d)},V=(o,s)=>{var c;try{const e="cubic-bezier(0.32,0.72,0,1)",t="opacity",p="transform",i="0%",l=o.ownerDocument.dir==="rtl",y=l?"-99.5%":"99.5%",E=l?"33%":"-33%",_=s.enteringEl,f=s.leavingEl,m=s.direction==="back",R=_.querySelector(":scope > ion-content"),q=_.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),v=_.querySelectorAll(":scope > ion-header > ion-toolbar"),g=r(),X=r();if(g.addElement(_).duration(((c=s.duration)!==null&&c!==void 0?c:0)||Z).easing(s.easing||e).fill("both").beforeRemoveClass("ion-page-invisible"),f&&o!==null&&o!==void 0){const n=r();n.addElement(o),g.addAnimation(n)}if(!R&&v.length===0&&q.length===0?X.addElement(_.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")):(X.addElement(R),X.addElement(q)),g.addAnimation(X),m?X.beforeClearStyles([t]).fromTo("transform","translateX(".concat(E,")"),"translateX(".concat(i,")")).fromTo(t,.8,1):X.beforeClearStyles([t]).fromTo("transform","translateX(".concat(y,")"),"translateX(".concat(i,")")),R){const n=b(R).querySelector(".transition-effect");if(n){const S=n.querySelector(".transition-cover"),h=n.querySelector(".transition-shadow"),C=r(),a=r(),d=r();C.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(S).beforeClearStyles([t]).fromTo(t,0,.1),d.addElement(h).beforeClearStyles([t]).fromTo(t,.03,.7),C.addAnimation([a,d]),X.addAnimation([C])}}const W=_.querySelector("ion-header.header-collapse-condense"),{forward:H,backward:x}=j(g,l,m,_,f);if(v.forEach(n=>{const S=r();S.addElement(n),g.addAnimation(S);const h=r();h.addElement(n.querySelector("ion-title"));const C=r(),a=Array.from(n.querySelectorAll("ion-buttons,[menuToggle]")),d=n.closest("ion-header"),N=d==null?void 0:d.classList.contains("header-collapse-condense-inactive");let $;m?$=a.filter(I=>{const L=I.classList.contains("buttons-collapse");return L&&!N||!L}):$=a.filter(I=>!I.classList.contains("buttons-collapse")),C.addElement($);const B=r();B.addElement(n.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const A=r();A.addElement(b(n).querySelector(".toolbar-background"));const O=r(),Y=n.querySelector("ion-back-button");if(Y&&O.addElement(Y),S.addAnimation([h,C,B,A,O]),C.fromTo(t,.01,1),B.fromTo(t,.01,1),m)N||h.fromTo("transform","translateX(".concat(E,")"),"translateX(".concat(i,")")).fromTo(t,.01,1),B.fromTo("transform","translateX(".concat(E,")"),"translateX(".concat(i,")")),O.fromTo(t,.01,1);else if(W||h.fromTo("transform","translateX(".concat(y,")"),"translateX(".concat(i,")")).fromTo(t,.01,1),B.fromTo("transform","translateX(".concat(y,")"),"translateX(".concat(i,")")),A.beforeClearStyles([t,"transform"]),(d==null?void 0:d.translucent)?A.fromTo("transform",l?"translateX(-100%)":"translateX(100%)","translateX(0px)"):A.fromTo(t,.01,"var(--opacity)"),H||O.fromTo(t,.01,1),Y&&!H){const L=r();L.addElement(b(Y).querySelector(".button-text")).fromTo("transform",l?"translateX(-100px)":"translateX(100px)","translateX(0px)"),S.addAnimation(L)}}),f){const n=r(),S=f.querySelector(":scope > ion-content"),h=f.querySelectorAll(":scope > ion-header > ion-toolbar"),C=f.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(!S&&h.length===0&&C.length===0?n.addElement(f.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")):(n.addElement(S),n.addElement(C)),g.addAnimation(n),m){n.beforeClearStyles([t]).fromTo("transform","translateX(".concat(i,")"),l?"translateX(-100%)":"translateX(100%)");const a=Q(f);g.afterAddWrite(()=>{g.getDirection()==="normal"&&a.style.setProperty("display","none")})}else n.fromTo("transform","translateX(".concat(i,")"),"translateX(".concat(E,")")).fromTo(t,1,.8);if(S){const a=b(S).querySelector(".transition-effect");if(a){const d=a.querySelector(".transition-cover"),N=a.querySelector(".transition-shadow"),$=r(),B=r(),A=r();$.addElement(a).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),B.addElement(d).beforeClearStyles([t]).fromTo(t,.1,0),A.addElement(N).beforeClearStyles([t]).fromTo(t,.7,.03),$.addAnimation([B,A]),n.addAnimation([$])}}h.forEach(a=>{const d=r();d.addElement(a);const N=r();N.addElement(a.querySelector("ion-title"));const $=r(),B=a.querySelectorAll("ion-buttons,[menuToggle]"),A=a.closest("ion-header"),O=A==null?void 0:A.classList.contains("header-collapse-condense-inactive"),Y=Array.from(B).filter(M=>{const K=M.classList.contains("buttons-collapse");return K&&!O||!K});$.addElement(Y);const I=r(),L=a.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");L.length>0&&I.addElement(L);const F=r();F.addElement(b(a).querySelector(".toolbar-background"));const w=r(),T=a.querySelector("ion-back-button");if(T&&w.addElement(T),d.addAnimation([N,$,I,w,F]),g.addAnimation(d),w.fromTo(t,.99,0),$.fromTo(t,.99,0),I.fromTo(t,.99,0),m){if(O||N.fromTo("transform","translateX(".concat(i,")"),l?"translateX(-100%)":"translateX(100%)").fromTo(t,.99,0),I.fromTo("transform","translateX(".concat(i,")"),l?"translateX(-100%)":"translateX(100%)"),F.beforeClearStyles([t,"transform"]),(A==null?void 0:A.translucent)?F.fromTo("transform","translateX(0px)",l?"translateX(-100%)":"translateX(100%)"):F.fromTo(t,"var(--opacity)",0),T&&!x){const K=r();K.addElement(b(T).querySelector(".button-text")).fromTo("transform","translateX(".concat(i,")"),"translateX(".concat((l?-124:124)+"px",")")),d.addAnimation(K)}}else O||N.fromTo("transform","translateX(".concat(i,")"),"translateX(".concat(E,")")).fromTo(t,.99,0).afterClearStyles([p,t]),I.fromTo("transform","translateX(".concat(i,")"),"translateX(".concat(E,")")).afterClearStyles([p,t]),w.afterClearStyles([t]),N.afterClearStyles([t]),$.afterClearStyles([t])})}return g}catch(e){throw e}},U=10;export{V as iosTransitionAnimation,b as shadow}; diff --git a/ra/assets/ios.transition-legacy-WEXCFnkr.js b/ra/assets/ios.transition-legacy-WEXCFnkr.js new file mode 100644 index 0000000..985e700 --- /dev/null +++ b/ra/assets/ios.transition-legacy-WEXCFnkr.js @@ -0,0 +1,5 @@ +System.register(["./index-legacy-l9aK7RKf.js"],(function(t,e){"use strict";var o,n;return{setters:[t=>{o=t.aQ,n=t.aR}],execute:function(){ +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +const e=t=>document.querySelector(`${t}.ion-cloned-element`),r=t("shadow",(t=>t.shadowRoot||t)),a=t=>{const e="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs"),o="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=e){const t=e.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=t?t.querySelector(o):null}return t.querySelector(o)},l=(t,e)=>{const o="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs");let n=[];if(null!=o){const t=o.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=t&&(n=t.querySelectorAll("ion-buttons"))}else n=t.querySelectorAll("ion-buttons");for(const r of n){const t=r.closest("ion-header"),o=t&&!t.classList.contains("header-collapse-condense-inactive"),n=r.querySelector("ion-back-button"),a=r.classList.contains("buttons-collapse"),l="start"===r.slot||""===r.slot;if(null!==n&&l&&(a&&o&&e||!a))return n}return null},s=(t,n,a,l,s,i,d,f,m)=>{var y,u;const p=n?`calc(100% - ${s.right+4}px)`:s.left-4+"px",b=n?"right":"left",g=n?"left":"right",S=n?"right":"left",h=(null===(y=i.textContent)||void 0===y?void 0:y.trim())===(null===(u=f.textContent)||void 0===u?void 0:u.trim()),$=m.width/d.width,q=(m.height-c)/d.height,T=h?`scale(${$}, ${q})`:`scale(${q})`,x="scale(1)",X=r(l).querySelector("ion-icon").getBoundingClientRect(),E=n?X.width/2-(X.right-s.right)+"px":s.left-X.width/2+"px",A=n?`-${window.innerWidth-s.right}px`:`${s.left}px`,v=`${m.top}px`,C=`${s.top}px`,w=a?[{offset:0,transform:`translate3d(${A}, ${C}, 0)`},{offset:1,transform:`translate3d(${E}, ${v}, 0)`}]:[{offset:0,transform:`translate3d(${E}, ${v}, 0)`},{offset:1,transform:`translate3d(${A}, ${C}, 0)`}],k=a?[{offset:0,opacity:1,transform:x},{offset:1,opacity:0,transform:T}]:[{offset:0,opacity:0,transform:T},{offset:1,opacity:1,transform:x}],R=a?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],B=o(),P=o(),L=o(),W=e("ion-back-button"),N=r(W).querySelector(".button-text"),z=r(W).querySelector("ion-icon");W.text=l.text,W.mode=l.mode,W.icon=l.icon,W.color=l.color,W.disabled=l.disabled,W.style.setProperty("display","block"),W.style.setProperty("position","fixed"),P.addElement(z),B.addElement(N),L.addElement(W),L.beforeStyles({position:"absolute",top:"0px",[S]:"0px"}).keyframes(w),B.beforeStyles({"transform-origin":`${b} top`}).beforeAddWrite((()=>{l.style.setProperty("display","none"),W.style.setProperty(b,p)})).afterAddWrite((()=>{l.style.setProperty("display",""),W.style.setProperty("display","none"),W.style.removeProperty(b)})).keyframes(k),P.beforeStyles({"transform-origin":`${g} center`}).keyframes(R),t.addAnimation([B,P,L])},i=(t,n,r,a,l,s,i,d)=>{var f,m;const y=n?"right":"left",u=n?`calc(100% - ${l.right}px)`:`${l.left}px`,p=`${l.top}px`,b=n?`-${window.innerWidth-d.right-8}px`:d.x-8+"px",g=d.y-2+"px",S=(null===(f=i.textContent)||void 0===f?void 0:f.trim())===(null===(m=a.textContent)||void 0===m?void 0:m.trim()),h=d.width/s.width,$=d.height/(s.height-c),q="scale(1)",T=S?`scale(${h}, ${$})`:`scale(${$})`,x=r?[{offset:0,opacity:0,transform:`translate3d(${b}, ${g}, 0) ${T}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${p}, 0) ${q}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${p}, 0) ${q}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${b}, ${g}, 0) ${T}`}],X=e("ion-title"),E=o();X.innerText=a.innerText,X.size=a.size,X.color=a.color,E.addElement(X),E.beforeStyles({"transform-origin":`${y} top`,height:`${l.height}px`,display:"",position:"relative",[y]:u}).beforeAddWrite((()=>{a.style.setProperty("opacity","0")})).afterAddWrite((()=>{a.style.setProperty("opacity",""),X.style.setProperty("display","none")})).keyframes(x),t.addAnimation(E)},c=(t("iosTransitionAnimation",((t,e)=>{var c;try{const d="cubic-bezier(0.32,0.72,0,1)",f="opacity",m="transform",y="0%",u=.8,p="rtl"===t.ownerDocument.dir,b=p?"-99.5%":"99.5%",g=p?"33%":"-33%",S=e.enteringEl,h=e.leavingEl,$="back"===e.direction,q=S.querySelector(":scope > ion-content"),T=S.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),x=S.querySelectorAll(":scope > ion-header > ion-toolbar"),X=o(),E=o();if(X.addElement(S).duration((null!==(c=e.duration)&&void 0!==c?c:0)||540).easing(e.easing||d).fill("both").beforeRemoveClass("ion-page-invisible"),h&&null!=t){const e=o();e.addElement(t),X.addAnimation(e)}if(q||0!==x.length||0!==T.length?(E.addElement(q),E.addElement(T)):E.addElement(S.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),X.addAnimation(E),$?E.beforeClearStyles([f]).fromTo("transform",`translateX(${g})`,`translateX(${y})`).fromTo(f,u,1):E.beforeClearStyles([f]).fromTo("transform",`translateX(${b})`,`translateX(${y})`),q){const t=r(q).querySelector(".transition-effect");if(t){const e=t.querySelector(".transition-cover"),n=t.querySelector(".transition-shadow"),r=o(),a=o(),l=o();r.addElement(t).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(e).beforeClearStyles([f]).fromTo(f,0,.1),l.addElement(n).beforeClearStyles([f]).fromTo(f,.03,.7),r.addAnimation([a,l]),E.addAnimation([r])}}const A=S.querySelector("ion-header.header-collapse-condense"),{forward:v,backward:C}=((t,e,o,n,c)=>{const d=l(n,o),f=a(c),m=a(n),y=l(c,o),u=null!==d&&null!==f&&!o,p=null!==m&&null!==y&&o;if(u){const n=f.getBoundingClientRect(),a=d.getBoundingClientRect(),l=r(d).querySelector(".button-text"),c=l.getBoundingClientRect(),m=r(f).querySelector(".toolbar-title").getBoundingClientRect();i(t,e,o,f,n,m,l,c),s(t,e,o,d,a,l,c,f,m)}else if(p){const n=m.getBoundingClientRect(),a=y.getBoundingClientRect(),l=r(y).querySelector(".button-text"),c=l.getBoundingClientRect(),d=r(m).querySelector(".toolbar-title").getBoundingClientRect();i(t,e,o,m,n,d,l,c),s(t,e,o,y,a,l,c,m,d)}return{forward:u,backward:p}})(X,p,$,S,h);if(x.forEach((t=>{const e=o();e.addElement(t),X.addAnimation(e);const n=o();n.addElement(t.querySelector("ion-title"));const a=o(),l=Array.from(t.querySelectorAll("ion-buttons,[menuToggle]")),s=t.closest("ion-header"),i=null==s?void 0:s.classList.contains("header-collapse-condense-inactive");let c;c=$?l.filter((t=>{const e=t.classList.contains("buttons-collapse");return e&&!i||!e})):l.filter((t=>!t.classList.contains("buttons-collapse"))),a.addElement(c);const d=o();d.addElement(t.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const m=o();m.addElement(r(t).querySelector(".toolbar-background"));const u=o(),S=t.querySelector("ion-back-button");if(S&&u.addElement(S),e.addAnimation([n,a,d,m,u]),a.fromTo(f,.01,1),d.fromTo(f,.01,1),$)i||n.fromTo("transform",`translateX(${g})`,`translateX(${y})`).fromTo(f,.01,1),d.fromTo("transform",`translateX(${g})`,`translateX(${y})`),u.fromTo(f,.01,1);else if(A||n.fromTo("transform",`translateX(${b})`,`translateX(${y})`).fromTo(f,.01,1),d.fromTo("transform",`translateX(${b})`,`translateX(${y})`),m.beforeClearStyles([f,"transform"]),(null==s?void 0:s.translucent)?m.fromTo("transform",p?"translateX(-100%)":"translateX(100%)","translateX(0px)"):m.fromTo(f,.01,"var(--opacity)"),v||u.fromTo(f,.01,1),S&&!v){const t=o();t.addElement(r(S).querySelector(".button-text")).fromTo("transform",p?"translateX(-100px)":"translateX(100px)","translateX(0px)"),e.addAnimation(t)}})),h){const t=o(),e=h.querySelector(":scope > ion-content"),a=h.querySelectorAll(":scope > ion-header > ion-toolbar"),l=h.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(e||0!==a.length||0!==l.length?(t.addElement(e),t.addElement(l)):t.addElement(h.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),X.addAnimation(t),$){t.beforeClearStyles([f]).fromTo("transform",`translateX(${y})`,p?"translateX(-100%)":"translateX(100%)");const e=n(h);X.afterAddWrite((()=>{"normal"===X.getDirection()&&e.style.setProperty("display","none")}))}else t.fromTo("transform",`translateX(${y})`,`translateX(${g})`).fromTo(f,1,u);if(e){const n=r(e).querySelector(".transition-effect");if(n){const e=n.querySelector(".transition-cover"),r=n.querySelector(".transition-shadow"),a=o(),l=o(),s=o();a.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),l.addElement(e).beforeClearStyles([f]).fromTo(f,.1,0),s.addElement(r).beforeClearStyles([f]).fromTo(f,.7,.03),a.addAnimation([l,s]),t.addAnimation([a])}}a.forEach((t=>{const e=o();e.addElement(t);const n=o();n.addElement(t.querySelector("ion-title"));const a=o(),l=t.querySelectorAll("ion-buttons,[menuToggle]"),s=t.closest("ion-header"),i=null==s?void 0:s.classList.contains("header-collapse-condense-inactive"),c=Array.from(l).filter((t=>{const e=t.classList.contains("buttons-collapse");return e&&!i||!e}));a.addElement(c);const d=o(),u=t.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");u.length>0&&d.addElement(u);const b=o();b.addElement(r(t).querySelector(".toolbar-background"));const S=o(),h=t.querySelector("ion-back-button");if(h&&S.addElement(h),e.addAnimation([n,a,d,S,b]),X.addAnimation(e),S.fromTo(f,.99,0),a.fromTo(f,.99,0),d.fromTo(f,.99,0),$){if(i||n.fromTo("transform",`translateX(${y})`,p?"translateX(-100%)":"translateX(100%)").fromTo(f,.99,0),d.fromTo("transform",`translateX(${y})`,p?"translateX(-100%)":"translateX(100%)"),b.beforeClearStyles([f,"transform"]),(null==s?void 0:s.translucent)?b.fromTo("transform","translateX(0px)",p?"translateX(-100%)":"translateX(100%)"):b.fromTo(f,"var(--opacity)",0),h&&!C){const t=o();t.addElement(r(h).querySelector(".button-text")).fromTo("transform",`translateX(${y})`,`translateX(${(p?-124:124)+"px"})`),e.addAnimation(t)}}else i||n.fromTo("transform",`translateX(${y})`,`translateX(${g})`).fromTo(f,.99,0).afterClearStyles([m,f]),d.fromTo("transform",`translateX(${y})`,`translateX(${g})`).afterClearStyles([m,f]),S.afterClearStyles([f]),n.afterClearStyles([f]),a.afterClearStyles([f])}))}return X}catch(d){throw d}})),10)}}})); diff --git a/ra/assets/livequery-N-IbBJej.js b/ra/assets/livequery-N-IbBJej.js new file mode 100644 index 0000000..d6d12c8 --- /dev/null +++ b/ra/assets/livequery-N-IbBJej.js @@ -0,0 +1 @@ +var u=Object.defineProperty;var c=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var s=(a,e,t)=>(c(a,typeof e!="symbol"?e+"":e,t),t);import{d as g,m as v}from"./helpers-ZGJup-tE.js";import{Z as d,G as _}from"./index-DYrAM6VV.js";class y{constructor(e,t,i="id"){s(this,"_db");s(this,"_tableName");s(this,"_primKey");s(this,"_table");s(this,"_entries");s(this,"_entriesById");s(this,"_lastKey");s(this,"_ready");s(this,"_isReady");s(this,"_updated");this._db=e,this._tableName=t,this._primKey=i,this._table=this._db.table(this._tableName),console.log(this._table),this._entries=d([]),this._entriesById=d({}),this._updated=_(0),this._isReady=_(!1),this._lastKey=0,this._ready=this._table.each((r,n)=>{this.addEntry(n.primaryKey,r)}).then(()=>(this._table.hook("creating",this.onCreating.bind(this)),this._table.hook("updating",this.onUpdate.bind(this)),this._table.hook("deleting",this.onDeleting.bind(this)),this)),this._ready.then(()=>{console.log("Live table "+t+" intialized."),this._isReady.value=!0})}ready(){return this._ready}isReady(){return this._isReady}updated(){return this._updated}entries(){return this._entries}get(e){return this._entriesById[e]}getAsPromise(e){return this.ready().then(t=>t.get(e))}getAsRef(e){const t=_(void 0);return this.getAsPromise(e).then(i=>{t.value=i}),t}delete(e){return this.ready().then(()=>this._table.where(this._primKey).equals(e).delete())}db(){return this._db}onCreating(e,t,i){let r=this.addEntry(e,t);return console.log("LiveTable: "+this._tableName+" added object with primary key "+r),console.log(t),r}onUpdate(e,t,i,r){console.log("MODS"),console.log(e),this.updateEntry(t,e)}onDeleting(e){this.deleteEntry(e)}addEntry(e,t){this._lastKey,e!==void 0&&e>this._lastKey?this._lastKey=e:this._lastKey++;const i=d(t);return i.id=this._lastKey,this._entriesById[this._lastKey]=i,this._entries.push(i),this._updated.value++,this._lastKey}modificationsToPartialT(e){const t={},i=(r,n,l=t)=>{const o=r.indexOf(".");if(console.log(r,o),o===-1){l[r]=e[n];return}const h=r.slice(0,o),b=r.slice(o+1);l[h]===void 0&&(l[h]={}),i(b,n,l[h])};for(let r in e)i(r,r,t);return t}updateEntry(e,t){if(this._entriesById[e]===void 0)throw Error("LiveTable: There is no primary key "+e+" in "+this._tableName);v(this._entriesById[e],this.modificationsToPartialT(t)),console.log("LiveTable: updated object with primary key "+e),console.log(this._entriesById[e]),this._updated.value++}deleteEntry(e){let t=this._entries.indexOf(this._entriesById[e]);if(t===-1){console.warn("LiveTable: trying to delete non existing element with primary key "+e);return}this._entries.splice(t,1),delete this._entriesById[e],console.log("LiveTable: removed entry with primary key "+e+" from table"),this._updated.value++}}class p{constructor(e,t=!1){s(this,"_db");s(this,"_tables");s(this,"_lazy");s(this,"_ready");s(this,"_resolve");this._lazy=t,this._db=e,this._tables={},this._ready=new Promise(i=>{this._resolve=i,this._db.on("ready",this.onDbReady.bind(this))})}ready(){return this._ready}table(e){if(this._lazy)return this._tables[e]===void 0&&(this._tables[e]=new y(this._db,e)),this._tables[e];{const t=this._tables[e];if(t===void 0)throw Error("There is no table with name "+e);return t}}onDbReady(e){if(console.log("liveQueryManager onDbReady()"),this._lazy){console.log("LiveQueryManager: initialization finished (lazy)"),this._resolve.call(this);return}else{let t=[];this._db.tables.forEach(i=>{this._tables[i.name]=new y(this._db,i.name),t.push(this._tables[i.name].ready())}),Promise.all(t).then(()=>{console.log("LiveQueryManager: initialization finished (non-lazy)"),this._resolve.call(this)})}}}const K=new p(g,!0);export{y as L,K as l}; diff --git a/ra/assets/livequery-legacy-GqvLyVpq.js b/ra/assets/livequery-legacy-GqvLyVpq.js new file mode 100644 index 0000000..812b9a3 --- /dev/null +++ b/ra/assets/livequery-legacy-GqvLyVpq.js @@ -0,0 +1 @@ +!function(){function e(e,t,i){var s;return(t="symbol"==typeof(s=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?s:String(s))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}System.register(["./helpers-legacy-X82L35U6.js","./index-legacy-l9aK7RKf.js"],(function(t,i){"use strict";var s,r,n,a;return{setters:[e=>{s=e.d,r=e.m},e=>{n=e.Z,a=e.G}],execute:function(){class i{constructor(t,i,s="id"){e(this,"_db",void 0),e(this,"_tableName",void 0),e(this,"_primKey",void 0),e(this,"_table",void 0),e(this,"_entries",void 0),e(this,"_entriesById",void 0),e(this,"_lastKey",void 0),e(this,"_ready",void 0),e(this,"_isReady",void 0),e(this,"_updated",void 0),this._db=t,this._tableName=i,this._primKey=s,this._table=this._db.table(this._tableName),console.log(this._table),this._entries=n([]),this._entriesById=n({}),this._updated=a(0),this._isReady=a(!1),this._lastKey=0,this._ready=this._table.each(((e,t)=>{this.addEntry(t.primaryKey,e)})).then((()=>(this._table.hook("creating",this.onCreating.bind(this)),this._table.hook("updating",this.onUpdate.bind(this)),this._table.hook("deleting",this.onDeleting.bind(this)),this))),this._ready.then((()=>{console.log("Live table "+i+" intialized."),this._isReady.value=!0}))}ready(){return this._ready}isReady(){return this._isReady}updated(){return this._updated}entries(){return this._entries}get(e){return this._entriesById[e]}getAsPromise(e){return this.ready().then((t=>t.get(e)))}getAsRef(e){const t=a(void 0);return this.getAsPromise(e).then((e=>{t.value=e})),t}delete(e){return this.ready().then((()=>this._table.where(this._primKey).equals(e).delete()))}db(){return this._db}onCreating(e,t,i){let s=this.addEntry(e,t);return console.log("LiveTable: "+this._tableName+" added object with primary key "+s),console.log(t),s}onUpdate(e,t,i,s){console.log("MODS"),console.log(e),this.updateEntry(t,e)}onDeleting(e){this.deleteEntry(e)}addEntry(e,t){this._lastKey,void 0!==e&&e>this._lastKey?this._lastKey=e:this._lastKey++;const i=n(t);return i.id=this._lastKey,this._entriesById[this._lastKey]=i,this._entries.push(i),this._updated.value++,this._lastKey}modificationsToPartialT(e){const t={},i=(s,r,n=t)=>{const a=s.indexOf(".");if(console.log(s,a),-1===a)return void(n[s]=e[r]);const o=s.slice(0,a),h=s.slice(a+1);void 0===n[o]&&(n[o]={}),i(h,r,n[o])};for(let s in e)i(s,s,t);return t}updateEntry(e,t){if(void 0===this._entriesById[e])throw Error("LiveTable: There is no primary key "+e+" in "+this._tableName);r(this._entriesById[e],this.modificationsToPartialT(t)),console.log("LiveTable: updated object with primary key "+e),console.log(this._entriesById[e]),this._updated.value++}deleteEntry(e){let t=this._entries.indexOf(this._entriesById[e]);-1!==t?(this._entries.splice(t,1),delete this._entriesById[e],console.log("LiveTable: removed entry with primary key "+e+" from table"),this._updated.value++):console.warn("LiveTable: trying to delete non existing element with primary key "+e)}}t("L",i);t("l",new class{constructor(t,i=!1){e(this,"_db",void 0),e(this,"_tables",void 0),e(this,"_lazy",void 0),e(this,"_ready",void 0),e(this,"_resolve",void 0),this._lazy=i,this._db=t,this._tables={},this._ready=new Promise((e=>{this._resolve=e,this._db.on("ready",this.onDbReady.bind(this))}))}ready(){return this._ready}table(e){if(this._lazy)return void 0===this._tables[e]&&(this._tables[e]=new i(this._db,e)),this._tables[e];{const t=this._tables[e];if(void 0===t)throw Error("There is no table with name "+e);return t}}onDbReady(e){if(console.log("liveQueryManager onDbReady()"),this._lazy)return console.log("LiveQueryManager: initialization finished (lazy)"),void this._resolve.call(this);{let e=[];this._db.tables.forEach((t=>{this._tables[t.name]=new i(this._db,t.name),e.push(this._tables[t.name].ready())})),Promise.all(e).then((()=>{console.log("LiveQueryManager: initialization finished (non-lazy)"),this._resolve.call(this)}))}}}(s,!0))}}}))}(); diff --git a/ra/assets/liveriskstree-S1mQ308m.js b/ra/assets/liveriskstree-S1mQ308m.js new file mode 100644 index 0000000..a71c24c --- /dev/null +++ b/ra/assets/liveriskstree-S1mQ308m.js @@ -0,0 +1 @@ +var h=Object.defineProperty;var y=(c,i,e)=>i in c?h(c,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[i]=e;var r=(c,i,e)=>(y(c,typeof i!="symbol"?i+"":i,e),e);import{d as f,R as u}from"./helpers-ZGJup-tE.js";import{L as g}from"./livequery-N-IbBJej.js";import{Z as a}from"./index-DYrAM6VV.js";class l extends g{constructor(e){super(e,"risks");r(this,"categories");r(this,"categoriesById");r(this,"factors");r(this,"factorsById");r(this,"risks");r(this,"risksById");r(this,"_categoriesAndFactorsReady");r(this,"_entriesReady");r(this,"_treeReady");this.categories=a([]),this.categoriesById=a({}),this.factors=a([]),this.factorsById=a({}),this._entriesReady=[],this._categoriesAndFactorsReady=super.ready().then(()=>this.initCategoriesAndFactors()),this._treeReady=super.ready().then(()=>Promise.all(this._entriesReady)).then(()=>(console.log("LiveRiskTree: initialized"),this))}initCategoriesAndFactors(){return this.db().categories.each(e=>{const t=e,s=a(t);this.categories.push(s),this.categoriesById[t.id]=s}).then(()=>this.db().factors.each(e=>{const t=e,s=a(t);this.factors.push(s),this.factorsById[t.id]=s,t.setup(o=>this.categoriesById[o])})).then(()=>{console.log("Categories and factors set up")})}ready(){return this._treeReady}addEntry(e,t){const s=new u(t.descr,t.sector,t.factorId);let o=this._categoriesAndFactorsReady.then(()=>{s.setup(d=>this.factorsById[d],d=>this.categoriesById[d])});return this._entriesReady.push(o),super.addEntry(e,s)}deleteEntry(e){var d,n;const t=this._entriesById[e];if(t===void 0)throw Error("LiveRiskTree: There is no risk with id "+e+" to delete");const s=this.factorsById[t.factorId];if(s===void 0)throw Error("LiveRiskTree: There is no factor with id "+t.factorId);const o=(d=s.risks)==null?void 0:d.indexOf(t);o===-1||o===void 0?console.warn("LiveRisksTree: The risk with id "+e+" is not listed in factor '"+s.descr+"' but this factor is parent"):(n=s.risks)==null||n.splice(o,1),super.delete(e)}}const B=a(new l(f));export{B as l}; diff --git a/ra/assets/liveriskstree-legacy-dlv-ajCr.js b/ra/assets/liveriskstree-legacy-dlv-ajCr.js new file mode 100644 index 0000000..f074a5c --- /dev/null +++ b/ra/assets/liveriskstree-legacy-dlv-ajCr.js @@ -0,0 +1 @@ +!function(){function e(e,t,i){var s;return(t="symbol"==typeof(s=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?s:String(s))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}System.register(["./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js","./index-legacy-l9aK7RKf.js"],(function(t,i){"use strict";var s,r,o,a;return{setters:[e=>{s=e.d,r=e.R},e=>{o=e.L},e=>{a=e.Z}],execute:function(){t("l",a(new class extends o{constructor(t){super(t,"risks"),e(this,"categories",void 0),e(this,"categoriesById",void 0),e(this,"factors",void 0),e(this,"factorsById",void 0),e(this,"risks",void 0),e(this,"risksById",void 0),e(this,"_categoriesAndFactorsReady",void 0),e(this,"_entriesReady",void 0),e(this,"_treeReady",void 0),this.categories=a([]),this.categoriesById=a({}),this.factors=a([]),this.factorsById=a({}),this._entriesReady=[],this._categoriesAndFactorsReady=super.ready().then((()=>this.initCategoriesAndFactors())),this._treeReady=super.ready().then((()=>Promise.all(this._entriesReady))).then((()=>(console.log("LiveRiskTree: initialized"),this)))}initCategoriesAndFactors(){return this.db().categories.each((e=>{const t=e,i=a(t);this.categories.push(i),this.categoriesById[t.id]=i})).then((()=>this.db().factors.each((e=>{const t=e,i=a(t);this.factors.push(i),this.factorsById[t.id]=i,t.setup((e=>this.categoriesById[e]))})))).then((()=>{console.log("Categories and factors set up")}))}ready(){return this._treeReady}addEntry(e,t){const i=new r(t.descr,t.sector,t.factorId);let s=this._categoriesAndFactorsReady.then((()=>{i.setup((e=>this.factorsById[e]),(e=>this.categoriesById[e]))}));return this._entriesReady.push(s),super.addEntry(e,i)}deleteEntry(e){var t;const i=this._entriesById[e];if(void 0===i)throw Error("LiveRiskTree: There is no risk with id "+e+" to delete");const s=this.factorsById[i.factorId];if(void 0===s)throw Error("LiveRiskTree: There is no factor with id "+i.factorId);const r=null===(t=s.risks)||void 0===t?void 0:t.indexOf(i);var o;-1===r||void 0===r?console.warn("LiveRisksTree: The risk with id "+e+" is not listed in factor '"+s.descr+"' but this factor is parent"):null===(o=s.risks)||void 0===o||o.splice(r,1);super.delete(e)}}(s)))}}}))}(); diff --git a/ra/assets/md.transition-0XUdQA4P.js b/ra/assets/md.transition-0XUdQA4P.js new file mode 100644 index 0000000..23616da --- /dev/null +++ b/ra/assets/md.transition-0XUdQA4P.js @@ -0,0 +1,3 @@ +import{aR as b,aQ as r}from"./index-DYrAM6VV.js";/*! + * (C) Ionic http://ionicframework.com - MIT License + */const v=(E,i)=>{var o,t,a;const l="40px",s="0px",c=i.direction==="back",u=i.enteringEl,d=i.leavingEl,m=b(u),g=m.querySelector("ion-toolbar"),n=r();if(n.addElement(m).fill("both").beforeRemoveClass("ion-page-invisible"),c?n.duration(((o=i.duration)!==null&&o!==void 0?o:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):n.duration(((t=i.duration)!==null&&t!==void 0?t:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(".concat(l,")"),"translateY(".concat(s,")")).fromTo("opacity",.01,1),g){const e=r();e.addElement(g),n.addAnimation(e)}if(d&&c){n.duration(((a=i.duration)!==null&&a!==void 0?a:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const e=r();e.addElement(b(d)).onFinish(f=>{f===1&&e.elements.length>0&&e.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(".concat(s,")"),"translateY(".concat(l,")")).fromTo("opacity",1,0),n.addAnimation(e)}return n};export{v as mdTransitionAnimation}; diff --git a/ra/assets/md.transition-legacy-rJZkiATa.js b/ra/assets/md.transition-legacy-rJZkiATa.js new file mode 100644 index 0000000..d752b01 --- /dev/null +++ b/ra/assets/md.transition-legacy-rJZkiATa.js @@ -0,0 +1,5 @@ +System.register(["./index-legacy-l9aK7RKf.js"],(function(e,n){"use strict";var t,i;return{setters:[e=>{t=e.aR,i=e.aQ}],execute:function(){ +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +e("mdTransitionAnimation",((e,n)=>{var o,a,r;const s="40px",l="back"===n.direction,d=n.enteringEl,c=n.leavingEl,u=t(d),m=u.querySelector("ion-toolbar"),f=i();if(f.addElement(u).fill("both").beforeRemoveClass("ion-page-invisible"),l?f.duration((null!==(o=n.duration)&&void 0!==o?o:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):f.duration((null!==(a=n.duration)&&void 0!==a?a:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${s})`,"translateY(0px)").fromTo("opacity",.01,1),m){const e=i();e.addElement(m),f.addAnimation(e)}if(c&&l){f.duration((null!==(r=n.duration)&&void 0!==r?r:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const e=i();e.addElement(t(c)).onFinish((n=>{1===n&&e.elements.length>0&&e.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)",`translateY(${s})`).fromTo("opacity",1,0),f.addAnimation(e)}return f}))}}})); diff --git a/ra/assets/riskassessment-gvIk_m2h.js b/ra/assets/riskassessment-gvIk_m2h.js new file mode 100644 index 0000000..09f7324 --- /dev/null +++ b/ra/assets/riskassessment-gvIk_m2h.js @@ -0,0 +1 @@ +var Se=Object.defineProperty;var De=(a,e,t)=>e in a?Se(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var p=(a,e,t)=>(De(a,typeof e!="symbol"?e+"":e,t),t),Ee=(a,e,t)=>{if(!e.has(a))throw TypeError("Cannot "+t)};var U=(a,e,t)=>{if(e.has(a))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(a):e.set(a,t)};var L=(a,e,t)=>(Ee(a,e,"access private method"),t);import{m as H,b as W,c as oe,e as Ie,d as ae,S as A}from"./helpers-ZGJup-tE.js";import{l as $}from"./livequery-N-IbBJej.js";import{Z as de,G as ke,u as ve,$ as Ce,ai as Le}from"./index-DYrAM6VV.js";import{l as G}from"./liveriskstree-S1mQ308m.js";function Y(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let z=Y();function ge(a){z=a}const me=/[&<>"']/,qe=new RegExp(me.source,"g"),xe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Be=new RegExp(xe.source,"g"),Me={"&":"&","<":"<",">":">",'"':""","'":"'"},ce=a=>Me[a];function m(a,e){if(e){if(me.test(a))return a.replace(qe,ce)}else if(xe.test(a))return a.replace(Be,ce);return a}const Pe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Ze(a){return a.replace(Pe,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Qe=/(^|[^\[])\^/g;function g(a,e){let t=typeof a=="string"?a:a.source;e=e||"";const n={replace:(r,s)=>{let i=typeof s=="string"?s:s.source;return i=i.replace(Qe,"$1"),t=t.replace(r,i),n},getRegex:()=>new RegExp(t,e)};return n}function he(a){try{a=encodeURI(a).replace(/%25/g,"%")}catch(e){return null}return a}const D={exec:()=>null};function ue(a,e){const t=a.replace(/\|/g,(s,i,l)=>{let o=!1,h=i;for(;--h>=0&&l[h]==="\\";)o=!o;return o?"|":" |"}),n=t.split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length{const s=r.match(/^\s+/);if(s===null)return r;const[i]=s;return i.length>=n.length?r.slice(n.length):r}).join("\n")}class P{constructor(e){p(this,"options");p(this,"rules");p(this,"lexer");this.options=e||z}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:q(n,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],r=Oe(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const r=q(n,"#");(this.options.pedantic||!r||/ $/.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=q(t[0].replace(/^ *>[ \t]?/gm,""),"\n"),r=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:s,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?"\\d{1,9}\\".concat(n.slice(-1)):"\\".concat(n),this.options.pedantic&&(n=r?n:"[*+-]");const i=new RegExp("^( {0,3}".concat(n,")((?:[ ][^\\n]*)?(?:\\n|$))"));let l="",o="",h=!1;for(;e;){let c=!1;if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let f=t[2].split("\n",1)[0].replace(/^\t+/,N=>" ".repeat(3*N.length)),u=e.split("\n",1)[0],k=0;this.options.pedantic?(k=2,o=f.trimStart()):(k=t[2].search(/[^ ]/),k=k>4?1:k,o=f.slice(k),k+=t[1].length);let y=!1;if(!f&&/^ *$/.test(u)&&(l+=u+"\n",e=e.substring(u.length+1),c=!0),!c){const N=new RegExp("^ {0,".concat(Math.min(3,k-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))")),ie=new RegExp("^ {0,".concat(Math.min(3,k-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),re=new RegExp("^ {0,".concat(Math.min(3,k-1),"}(?:```|~~~)")),le=new RegExp("^ {0,".concat(Math.min(3,k-1),"}#"));for(;e;){const F=e.split("\n",1)[0];if(u=F,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),re.test(u)||le.test(u)||N.test(u)||ie.test(e))break;if(u.search(/[^ ]/)>=k||!u.trim())o+="\n"+u.slice(k);else{if(y||f.search(/[^ ]/)>=4||re.test(f)||le.test(f)||ie.test(f))break;o+="\n"+u}!y&&!u.trim()&&(y=!0),l+=F+"\n",e=e.substring(F.length+1),f=u.slice(k)}}s.loose||(h?s.loose=!0:/\n *\n *$/.test(l)&&(h=!0));let x=null,T;this.options.gfm&&(x=/^\[[ xX]\] /.exec(o),x&&(T=x[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:l,task:!!x,checked:T,loose:!1,text:o,tokens:[]}),s.raw+=l}s.items[s.items.length-1].raw=l.trimEnd(),s.items[s.items.length-1].text=o.trimEnd(),s.raw=s.raw.trimEnd();for(let c=0;ck.type==="space"),u=f.length>0&&f.some(k=>/\n.*\n/.test(k.raw));s.loose=u}if(s.loose)for(let c=0;c$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const n=ue(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),s=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const l of r)/^ *-+: *$/.test(l)?i.align.push("right"):/^ *:-+: *$/.test(l)?i.align.push("center"):/^ *:-+ *$/.test(l)?i.align.push("left"):i.align.push(null);for(const l of n)i.header.push({text:l,tokens:this.lexer.inline(l)});for(const l of s)i.rows.push(ue(l,i.header.length).map(o=>({text:o,tokens:this.lexer.inline(o)})));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)==="\n"?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:m(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const i=q(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{const i=je(t[2],"()");if(i>-1){const o=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let r=t[2],s="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);i&&(r=i[1],s=i[3])}else s=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(n)?r=r.slice(1):r=r.slice(1,-1)),pe(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const r=(n[2]||n[1]).replace(/\s+/g," "),s=t[r.toLowerCase()];if(!s){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return pe(n,s,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const i=[...r[0]].length-1;let l,o,h=i,c=0;const f=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,t=t.slice(-1*e.length+i);(r=f.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(o=[...l].length,r[3]||r[4]){h+=o;continue}else if((r[5]||r[6])&&i%3&&!((i+o)%3)){c+=o;continue}if(h-=o,h>0)continue;o=Math.min(o,o+h+c);const u=[...r[0]][0].length,k=e.slice(0,i+r.index+u+o);if(Math.min(i,o)%2){const x=k.slice(1,-1);return{type:"em",raw:k,text:x,tokens:this.lexer.inlineTokens(x)}}const y=k.slice(2,-2);return{type:"strong",raw:k,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const r=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return r&&s&&(n=n.substring(1,n.length-1)),n=m(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=m(t[1]),r="mailto:"+n):(n=m(t[1]),r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n,r;let t;if(t=this.rules.inline.url.exec(e)){let s,i;if(t[2]==="@")s=m(t[0]),i="mailto:"+s;else{let l;do l=t[0],t[0]=(r=(n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])!=null?r:"";while(l!==t[0]);s=m(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let n;return this.lexer.state.inRawBlock?n=t[0]:n=m(t[0]),{type:"text",raw:t[0],text:n}}}}const Ne=/^(?: *(?:\n|$))+/,Fe=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Ue=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,He=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,be=/(?:[*+-]|\d{1,9}[.)])/,we=g(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,be).getRegex(),J=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,We=/^[^\n]+/,K=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ge=g(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",K).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Xe=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,be).getRegex(),O="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ee=/|$)/,Ve=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",ee).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ye=g(J).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Ye=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ye).getRegex(),te={blockquote:Ye,code:Fe,def:Ge,fences:Ue,heading:He,hr:v,html:Ve,lheading:we,list:Xe,newline:Ne,paragraph:ye,table:D,text:We},fe=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Je={...te,table:fe,paragraph:g(J).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",fe).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()},Ke={...te,html:g("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ee).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:D,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(J).replace("hr",v).replace("heading"," *#{1,6} *[^\n]").replace("lheading",we).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},$e=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,et=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Te=/^( {2,}|\\)\n(?!\s*$)/,tt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~",nt=g(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,C).getRegex(),st=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,it=g(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,C).getRegex(),rt=g("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,C).getRegex(),lt=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,C).getRegex(),ot=g(/\\([punct])/,"gu").replace(/punct/g,C).getRegex(),at=g(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ct=g(ee).replace("(?:-->|$)","-->").getRegex(),ht=g("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",ct).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Z=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ut=g(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Z).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Re=g(/^!?\[(label)\]\[(ref)\]/).replace("label",Z).replace("ref",K).getRegex(),ze=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",K).getRegex(),pt=g("reflink|nolink(?!\\()","g").replace("reflink",Re).replace("nolink",ze).getRegex(),ne={_backpedal:D,anyPunctuation:ot,autolink:at,blockSkip:st,br:Te,code:et,del:D,emStrongLDelim:it,emStrongRDelimAst:rt,emStrongRDelimUnd:lt,escape:$e,link:ut,nolink:ze,punctuation:nt,reflink:Re,reflinkSearch:pt,tag:ht,text:tt,url:D},ft={...ne,link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",Z).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z).getRegex()},X={...ne,escape:g($e).replace("])","~|])").getRegex(),url:g(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\o+" ".repeat(h.length));let n,r,s,i;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(n=l.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const o=e.slice(1);let h;this.options.extensions.startBlock.forEach(c=>{h=c.call({lexer:this},o),typeof h=="number"&&h>=0&&(l=Math.min(l,h))}),l<1/0&&l>=0&&(s=e.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){r=t[t.length-1],i&&r.type==="paragraph"?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=s.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&r.type==="text"?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,s,i=e,l,o,h;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,l.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(h=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(n=c.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type==="text"&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type==="text"&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,i,h)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const f=e.slice(1);let u;this.options.extensions.startInline.forEach(k=>{u=k.call({lexer:this},f),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(s=e.substring(0,c+1))}if(n=this.tokenizer.inlineText(s)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(h=n.raw.slice(-1)),o=!0,r=t[t.length-1],r&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return t}}class Q{constructor(e){p(this,"options");this.options=e||z}code(e,t,n){var s;const r=(s=(t||"").match(/^\S*/))==null?void 0:s[0];return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:m(e,!0))+"
\n":"
"+(n?e:m(e,!0))+"
\n"}blockquote(e){return"
\n".concat(e,"
\n")}html(e,t){return e}heading(e,t,n){return"").concat(e,"\n")}hr(){return"
\n"}list(e,t,n){const r=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return"<"+r+s+">\n"+e+"\n"}listitem(e,t,n){return"
  • ".concat(e,"
  • \n")}checkbox(e){return"'}paragraph(e){return"

    ".concat(e,"

    \n")}table(e,t){return t&&(t="".concat(t,"")),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n".concat(e,"\n")}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"\n")}strong(e){return"".concat(e,"")}em(e){return"".concat(e,"")}codespan(e){return"".concat(e,"")}br(){return"
    "}del(e){return"".concat(e,"")}link(e,t,n){const r=he(e);if(r===null)return n;e=r;let s='
    ",s}image(e,t,n){const r=he(e);if(r===null)return n;e=r;let s='').concat(n,'0&&u.tokens[0].type==="paragraph"?(u.tokens[0].text=T+" "+u.tokens[0].text,u.tokens[0].tokens&&u.tokens[0].tokens.length>0&&u.tokens[0].tokens[0].type==="text"&&(u.tokens[0].tokens[0].text=T+" "+u.tokens[0].tokens[0].text)):u.tokens.unshift({type:"text",text:T+" "}):x+=T+" "}x+=this.parse(u.tokens,h),c+=this.renderer.listitem(x,y,!!k)}n+=this.renderer.list(c,l,o);continue}case"html":{const i=s;n+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=s;n+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=s,l=i.tokens?this.parseInline(i.tokens):i.text;for(;r+1{n=n.concat(this.walkTokens(l[o],t))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const i=t.renderers[s.name];i?t.renderers[s.name]=function(...l){let o=s.renderer.apply(this,l);return o===!1&&(o=i.apply(this,l)),o}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=t[s.level];i?i.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){const s=this.defaults.renderer||new Q(this.defaults);for(const i in n.renderer){if(!(i in s))throw new Error("renderer '".concat(i,"' does not exist"));if(i==="options")continue;const l=i,o=n.renderer[l],h=s[l];s[l]=(...c)=>{let f=o.apply(s,c);return f===!1&&(f=h.apply(s,c)),f||""}}r.renderer=s}if(n.tokenizer){const s=this.defaults.tokenizer||new P(this.defaults);for(const i in n.tokenizer){if(!(i in s))throw new Error("tokenizer '".concat(i,"' does not exist"));if(["options","rules","lexer"].includes(i))continue;const l=i,o=n.tokenizer[l],h=s[l];s[l]=(...c)=>{let f=o.apply(s,c);return f===!1&&(f=h.apply(s,c)),f}}r.tokenizer=s}if(n.hooks){const s=this.defaults.hooks||new E;for(const i in n.hooks){if(!(i in s))throw new Error("hook '".concat(i,"' does not exist"));if(i==="options")continue;const l=i,o=n.hooks[l],h=s[l];E.passThroughHooks.has(i)?s[l]=c=>{if(this.defaults.async)return Promise.resolve(o.call(s,c)).then(u=>h.call(s,u));const f=o.call(s,c);return h.call(s,f)}:s[l]=(...c)=>{let f=o.apply(s,c);return f===!1&&(f=h.apply(s,c)),f}}r.hooks=s}if(n.walkTokens){const s=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(l){let o=[];return o.push(i.call(this,l)),s&&(o=o.concat(s.call(this,l))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return b.lex(e,t!=null?t:this.defaults)}parser(e,t){return w.parse(e,t!=null?t:this.defaults)}}I=new WeakSet,V=function(e,t){return(n,r)=>{const s={...r},i={...this.defaults,...s};this.defaults.async===!0&&s.async===!1&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const l=L(this,j,Ae).call(this,!!i.silent,!!i.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then(o=>e(o,i)).then(o=>i.hooks?i.hooks.processAllTokens(o):o).then(o=>i.walkTokens?Promise.all(this.walkTokens(o,i.walkTokens)).then(()=>o):o).then(o=>t(o,i)).then(o=>i.hooks?i.hooks.postprocess(o):o).catch(l);try{i.hooks&&(n=i.hooks.preprocess(n));let o=e(n,i);i.hooks&&(o=i.hooks.processAllTokens(o)),i.walkTokens&&this.walkTokens(o,i.walkTokens);let h=t(o,i);return i.hooks&&(h=i.hooks.postprocess(h)),h}catch(o){return l(o)}}},j=new WeakSet,Ae=function(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const r="

    An error occurred:

    "+m(n.message+"",!0)+"
    ";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}};const R=new kt;function d(a,e){return R.parse(a,e)}d.options=d.setOptions=function(a){return R.setOptions(a),d.defaults=R.defaults,ge(d.defaults),d};d.getDefaults=Y;d.defaults=z;d.use=function(...a){return R.use(...a),d.defaults=R.defaults,ge(d.defaults),d};d.walkTokens=function(a,e){return R.walkTokens(a,e)};d.parseInline=R.parseInline;d.Parser=w;d.parser=w.parse;d.Renderer=Q;d.TextRenderer=se;d.Lexer=b;d.lexer=b.lex;d.Tokenizer=P;d.Hooks=E;d.parse=d;d.options;d.setOptions;d.use;d.walkTokens;d.parseInline;w.parse;b.lex;const M={company:"",startDate:0,endDate:void 0,address:"",jobDescr:"",equipment:[],technicians:[],supervisors:[],access:[],risks:[],measures:{},meta:{}};class gt{constructor(e){p(this,"id");p(this,"descr");p(this,"company");p(this,"startDate");p(this,"endDate");p(this,"address");p(this,"jobDescr");p(this,"equipment");p(this,"technicians");p(this,"supervisors");p(this,"access");p(this,"risks");p(this,"allRisks");p(this,"measures");p(this,"meta");p(this,"initData");p(this,"isReady");p(this,"ready");this.initData={...M},this.isReady=!1,this.init(e)}init(e){this.isReady=!1,this.measures={},this.meta={},this.allRisks=[],H(this,W(M)),e&&H(this,e),this.updateInitData()}clear(){this.init(),this.id=void 0}updateInitData(){const e=W(oe(this,M));this.initData=e}reset(){H(this,this.initData)}modified(){for(let e in this.initData)if(!Ie(this[e],this.initData[e]))return!0;return!1}loadFromDb(e){return this.init({id:e}),this.ready=$.ready().then(()=>$.table("riskassessments").getAsPromise(e)).then(t=>{this.init(t),this.isReady=!0}).catch(t=>{throw Error(t)}),this.ready}async save(){if(this.id===void 0)throw Error("Attempt to update without id");let e={};return e=W(oe(this,M)),ae.riskassessments.update(this.id,e).then(t=>{if(t===0)throw Error("Could not update. Does ID "+this.id+" exist?");const n=Math.floor(Date.now()/1e3);ae.riskassessmentsmeta.update(this.id,{lastChange:n}),this.updateInitData()})}dateStr(e){return e.getUTCFullYear()+"-"+(e.getUTCMonth()+1)+"-"+e.getUTCDate()}getStartDate(){return new Date(this.startDate)}setStartDate(e){this.startDate=this.dateStr(e)}getEndDate(){if(this.endDate)return new Date(this.endDate)}setEndDate(e){e===void 0?this.endDate=void 0:this.endDate=this.dateStr(e)}async calcAllRisks(){await G.ready();const e=await $.table("measures").ready(),t=await $.table("equipment").ready(),n=[],r=[...this.risks];for(this.resetMetaAddedBy(),this.equipment.forEach(s=>{t.get(s).causeRisks.forEach(i=>{r.push(i);const l=this.getMeta(i);l.addedBy.find(o=>o.id===s&&o.type==="equipment")||l.addedBy.push({id:s,type:"equipment"})})});r.length>0;){const s=r.pop();n.includes(s)||(n.push(s),this.getMeasures(s).forEach(i=>{e.get(i).causeRisks.forEach(l=>{r.push(l);const o=this.getMeta(l);o.addedBy.find(h=>h.id===i&&h.type==="measure")||o.addedBy.push({id:i,type:"measure"})})}))}return this.allRisks=n,n}resetMetaAddedBy(){for(let e in this.meta)this.getMeta(parseInt(e)).addedBy.length=0}getMeta(e){return this.meta[e]===void 0&&(this.meta[e]={risk:e,addedBy:[]}),this.meta[e]}getMeasures(e){return this.measures[e]===void 0&&(this.measures[e]=[]),this.measures[e]}getMeasuresAsRef(e){return ke(this.getMeasures(e))}addSector(e={}){const t=this.access.map(n=>n.id?n.id:0).reduce((n,r)=>n>r?n+1:r+1,0);this.access.push({id:t,title:"Neuer Sektor "+t,entrance:"",exit:"",anchorPoints:"",comment:"",rescue:"",...e})}}const S=de(new gt);function _e(a){const e=ve();let t=a;return e&&e.path.startsWith("/riskassessment")&&e.params.id!==void 0&&(t=parseInt(e.params.id)),t===void 0||S.id===t||S.loadFromDb(t),S}function $t(a){const e=_e(a),t=ke([]),n=()=>{console.log("useLiveAllRisks(): updateAllRisks()"),e.calcAllRisks().then(r=>{t.value=r,console.log("useLiveAllRisks(): updateAllRisks() -> Done")})};return Ce([()=>e.risks,()=>e.isReady],n),Le(()=>{n()}),t}function Tt(a){const e=_e(a);$.table("equipment");const t=de({risks:[]});async function n(){t.sector={},await e.ready,await G.ready();const r=await $.table("measures");await e.calcAllRisks(),t.risks=e.allRisks.map(s=>({risk:G.get(s),measures:e.measures[s].map(i=>r.get(i)),meta:e.getMeta(s)})),t.sector.access=t.risks.filter(s=>s.risk.sector===A.Access),t.sector.environment=t.risks.filter(s=>s.risk.sector===A.Environment),t.sector.work=t.risks.filter(s=>s.risk.sector===A.Work),t.categories=t.risks.reduce((s,i)=>{console.log(s),console.log(i);const l=i.risk.factor.category,o=s.findIndex(h=>h.id===l.id);return o===-1?(s.push({...l,risks:[i]}),s):(s[o].risks.push(i),s)},[]),t.sector.access=t.risks.filter(s=>s.risk.sector===A.Access),t.sector.environment=t.risks.filter(s=>s.risk.sector===A.Environment),t.sector.work=t.risks.filter(s=>s.risk.sector===A.Work)}return n(),e.ready.then(()=>{$.table("technicians").ready().then(r=>{t.technicians=e.technicians.map(s=>r.get(s)),t.supervisors=e.supervisors.map(s=>r.get(s))}),$.table("equipment").ready().then(r=>{t.equipment=e.equipment.map(s=>r.get(s))}),t.access=e.access.map(r=>{const s={};s.id=r.id,s.title=r.title;for(let i in r)i==="id"||i==="title"||(s[i]=d.parse(r[i]));return s}),t.company=e.company,t.address=e.address,t.startDate=e.startDate,t.endDate=e.endDate,t.jobDescr=e.jobDescr}),t}export{$t as a,Tt as b,M as d,_e as u}; diff --git a/ra/assets/riskassessment-legacy-kVyVXEzW.js b/ra/assets/riskassessment-legacy-kVyVXEzW.js new file mode 100644 index 0000000..239e451 --- /dev/null +++ b/ra/assets/riskassessment-legacy-kVyVXEzW.js @@ -0,0 +1 @@ +!function(){function e(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function t(e,t,u){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return u}function u(e,t,u){var s;return(t="symbol"==typeof(s=function(e,t){if("object"!=typeof e||!e)return e;var u=e[Symbol.toPrimitive];if(void 0!==u){var s=u.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?s:String(s))in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e}System.register(["./helpers-legacy-X82L35U6.js","./livequery-legacy-GqvLyVpq.js","./index-legacy-l9aK7RKf.js","./liveriskstree-legacy-dlv-ajCr.js"],(function(s,n){"use strict";var i,r,l,o,a,c,h,p,A,d,k,g,f;return{setters:[e=>{i=e.m,r=e.b,l=e.c,o=e.e,a=e.d,c=e.S},e=>{h=e.l},e=>{p=e.Z,A=e.G,d=e.u,k=e.$,g=e.ai},e=>{f=e.l}],execute:function(){function n(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}s({a:function(e){const t=Te(e),u=A([]),s=()=>{console.log("useLiveAllRisks(): updateAllRisks()"),t.calcAllRisks().then((e=>{u.value=e,console.log("useLiveAllRisks(): updateAllRisks() -> Done")}))};return k([()=>t.risks,()=>t.isReady],s),g((()=>{s()})),u},b:function(e){const t=Te(e);h.table("equipment");const u=p({risks:[]});return async function(){u.sector={},await t.ready,await f.ready();const e=await h.table("measures");await t.calcAllRisks(),u.risks=t.allRisks.map((u=>({risk:f.get(u),measures:t.measures[u].map((t=>e.get(t))),meta:t.getMeta(u)}))),u.sector.access=u.risks.filter((e=>e.risk.sector===c.Access)),u.sector.environment=u.risks.filter((e=>e.risk.sector===c.Environment)),u.sector.work=u.risks.filter((e=>e.risk.sector===c.Work)),u.categories=u.risks.reduce(((e,t)=>{console.log(e),console.log(t);const u=t.risk.factor.category,s=e.findIndex((e=>e.id===u.id));return-1===s?(e.push({...u,risks:[t]}),e):(e[s].risks.push(t),e)}),[]),u.sector.access=u.risks.filter((e=>e.risk.sector===c.Access)),u.sector.environment=u.risks.filter((e=>e.risk.sector===c.Environment)),u.sector.work=u.risks.filter((e=>e.risk.sector===c.Work))}(),t.ready.then((()=>{h.table("technicians").ready().then((e=>{u.technicians=t.technicians.map((t=>e.get(t))),u.supervisors=t.supervisors.map((t=>e.get(t)))})),h.table("equipment").ready().then((e=>{u.equipment=t.equipment.map((t=>e.get(t)))})),u.access=t.access.map((e=>{const t={};t.id=e.id,t.title=e.title;for(let u in e)"id"!==u&&"title"!==u&&(t[u]=ve.parse(e[u]));return t})),u.company=t.company,u.address=t.address,u.startDate=t.startDate,u.endDate=t.endDate,u.jobDescr=t.jobDescr})),u},u:Te});let E={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function D(e){E=e}const F=/[&<>"']/,x=new RegExp(F.source,"g"),B=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,m=new RegExp(B.source,"g"),C={"&":"&","<":"<",">":">",'"':""","'":"'"},b=e=>C[e];function w(e,t){if(t){if(F.test(e))return e.replace(x,b)}else if(B.test(e))return e.replace(m,b);return e}const y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function $(e){return e.replace(y,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const v=/(^|[^\[])\^/g;function z(e,t){let u="string"==typeof e?e:e.source;t=t||"";const s={replace:(e,t)=>{let n="string"==typeof t?t:t.source;return n=n.replace(v,"$1"),u=u.replace(e,n),s},getRegex:()=>new RegExp(u,t)};return s}function R(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(t){return null}return e}const T={exec:()=>null};function _(e,t){const u=e.replace(/\|/g,((e,t,u)=>{let s=!1,n=t;for(;--n>=0&&"\\"===u[n];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(u[0].trim()||u.shift(),u.length>0&&!u[u.length-1].trim()&&u.pop(),t)if(u.length>t)u.splice(t);else for(;u.length0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:S(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],u=function(e,t){const u=e.match(/^(\s+)(?:```)/);if(null===u)return t;const s=u[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[u]=t;return u.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:u}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=S(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=S(t[0].replace(/^ *>[ \t]?/gm,""),"\n"),u=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(e);return this.lexer.state.top=u,{type:"blockquote",raw:t[0],tokens:s,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let u=t[1].trim();const s=u.length>1,n={type:"list",raw:"",ordered:s,start:s?+u.slice(0,-1):"",loose:!1,items:[]};u=s?`\\d{1,9}\\${u.slice(-1)}`:`\\${u}`,this.options.pedantic&&(u=s?u:"[*+-]");const i=new RegExp(`^( {0,3}${u})((?:[\t ][^\\n]*)?(?:\\n|$))`);let r="",l="",o=!1;for(;e;){let u=!1;if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let s=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),a=e.split("\n",1)[0],c=0;this.options.pedantic?(c=2,l=s.trimStart()):(c=t[2].search(/[^ ]/),c=c>4?1:c,l=s.slice(c),c+=t[1].length);let h=!1;if(!s&&/^ *$/.test(a)&&(r+=a+"\n",e=e.substring(a.length+1),u=!0),!u){const t=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),u=new RegExp(`^ {0,${Math.min(3,c-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),n=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,c-1)}}#`);for(;e;){const o=e.split("\n",1)[0];if(a=o,this.options.pedantic&&(a=a.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),n.test(a))break;if(i.test(a))break;if(t.test(a))break;if(u.test(e))break;if(a.search(/[^ ]/)>=c||!a.trim())l+="\n"+a.slice(c);else{if(h)break;if(s.search(/[^ ]/)>=4)break;if(n.test(s))break;if(i.test(s))break;if(u.test(s))break;l+="\n"+a}h||a.trim()||(h=!0),r+=o+"\n",e=e.substring(o.length+1),s=a.slice(c)}}n.loose||(o?n.loose=!0:/\n *\n *$/.test(r)&&(o=!0));let p,A=null;this.options.gfm&&(A=/^\[[ xX]\] /.exec(l),A&&(p="[ ] "!==A[0],l=l.replace(/^\[[ xX]\] +/,""))),n.items.push({type:"list_item",raw:r,task:!!A,checked:p,loose:!1,text:l,tokens:[]}),n.raw+=r}n.items[n.items.length-1].raw=r.trimEnd(),n.items[n.items.length-1].text=l.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e"space"===e.type)),u=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));n.loose=u}if(n.loose)for(let e=0;e$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:u,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const u=_(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(u.length===s.length){for(const e of s)/^ *-+: *$/.test(e)?i.align.push("right"):/^ *:-+: *$/.test(e)?i.align.push("center"):/^ *:-+ *$/.test(e)?i.align.push("left"):i.align.push(null);for(const e of u)i.header.push({text:e,tokens:this.lexer.inline(e)});for(const e of n)i.rows.push(_(e,i.header.length).map((e=>({text:e,tokens:this.lexer.inline(e)}))));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:w(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^
    /i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=S(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let u=0;for(let s=0;s-1){const u=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let u=t[2],s="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(u);e&&(u=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return u=u.trim(),/^$/.test(e)?u.slice(1):u.slice(1,-1)),I(t,{href:u?u.replace(this.rules.inline.anyPunctuation,"$1"):u,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer)}}reflink(e,t){let u;if((u=this.rules.inline.reflink.exec(e))||(u=this.rules.inline.nolink.exec(e))){const e=t[(u[2]||u[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=u[0].charAt(0);return{type:"text",raw:e,text:e}}return I(u,e,u[0],this.lexer)}}emStrong(e,t,u=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s)return;if(s[3]&&u.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11F50}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u))return;if(!(s[1]||s[2]||"")||!u||this.rules.inline.punctuation.exec(u)){const u=[...s[0]].length-1;let n,i,r=u,l=0;const o="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+u);null!=(s=o.exec(t));){if(n=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!n)continue;if(i=[...n].length,s[3]||s[4]){r+=i;continue}if((s[5]||s[6])&&u%3&&!((u+i)%3)){l+=i;continue}if(r-=i,r>0)continue;i=Math.min(i,i+r+l);const t=[...s[0]][0].length,o=e.slice(0,u+s.index+t+i);if(Math.min(u,i)%2){const e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}const a=o.slice(2,-2);return{type:"strong",raw:o,text:a,tokens:this.lexer.inlineTokens(a)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const u=/[^ ]/.test(e),s=/^ /.test(e)&&/ $/.test(e);return u&&s&&(e=e.substring(1,e.length-1)),e=w(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,u;return"@"===t[2]?(e=w(t[1]),u="mailto:"+e):(e=w(t[1]),u=e),{type:"link",raw:t[0],text:e,href:u,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=w(t[0]),n="mailto:"+e;else{let i;do{var u,s;i=t[0],t[0]=null!==(u=null===(s=this.rules.inline._backpedal.exec(t[0]))||void 0===s?void 0:s[0])&&void 0!==u?u:""}while(i!==t[0]);e=w(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:w(t[0]),{type:"text",raw:t[0],text:e}}}}const Z=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,P=/(?:[*+-]|\d{1,9}[.)])/,M=z(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,P).getRegex(),L=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,j=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Q=z(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",j).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),O=z(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,P).getRegex(),U="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",W=/|$)/,H=z("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",W).replace("tag",U).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),X=z(L).replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",U).getRegex(),N={blockquote:z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",X).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:Q,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Z,html:H,lheading:M,list:O,newline:/^(?: *(?:\n|$))+/,paragraph:X,table:T,text:/^[^\n]+/},G=z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",U).getRegex(),Y={...N,table:G,paragraph:z(L).replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",G).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",U).getRegex()},J={...N,html:z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",W).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:z(L).replace("hr",Z).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},K=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,V=/^( {2,}|\\)\n(?!\s*$)/,ee="\\p{P}$+<=>`^|~",te=z(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,ee).getRegex(),ue=z(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,ee).getRegex(),se=z("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,ee).getRegex(),ne=z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,ee).getRegex(),ie=z(/\\([punct])/,"gu").replace(/punct/g,ee).getRegex(),re=z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),le=z(W).replace("(?:--\x3e|$)","--\x3e").getRegex(),oe=z("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",le).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ae=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ce=z(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ae).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),he=z(/^!?\[(label)\]\[(ref)\]/).replace("label",ae).replace("ref",j).getRegex(),pe=z(/^!?\[(ref)\](?:\[\])?/).replace("ref",j).getRegex(),Ae={_backpedal:T,anyPunctuation:ie,autolink:re,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:V,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:T,emStrongLDelim:ue,emStrongRDelimAst:se,emStrongRDelimUnd:ne,escape:K,link:ce,nolink:pe,punctuation:te,reflink:he,reflinkSearch:z("reflink|nolink(?!\\()","g").replace("reflink",he).replace("nolink",pe).getRegex(),tag:oe,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\t+" ".repeat(u.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((s=>!!(u=s.call({lexer:this},e,t))&&(e=e.substring(u.raw.length),t.push(u),!0)))))if(u=this.tokenizer.space(e))e=e.substring(u.raw.length),1===u.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(u);else if(u=this.tokenizer.code(e))e=e.substring(u.raw.length),s=t[t.length-1],!s||"paragraph"!==s.type&&"text"!==s.type?t.push(u):(s.raw+="\n"+u.raw,s.text+="\n"+u.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text);else if(u=this.tokenizer.fences(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.heading(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.hr(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.blockquote(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.list(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.html(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.def(e))e=e.substring(u.raw.length),s=t[t.length-1],!s||"paragraph"!==s.type&&"text"!==s.type?this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title}):(s.raw+="\n"+u.raw,s.text+="\n"+u.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text);else if(u=this.tokenizer.table(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.lheading(e))e=e.substring(u.raw.length),t.push(u);else{if(n=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const u=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},u),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(this.state.top&&(u=this.tokenizer.paragraph(n)))s=t[t.length-1],i&&"paragraph"===s.type?(s.raw+="\n"+u.raw,s.text+="\n"+u.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(u),i=n.length!==e.length,e=e.substring(u.raw.length);else if(u=this.tokenizer.text(e))e=e.substring(u.raw.length),s=t[t.length-1],s&&"text"===s.type?(s.raw+="\n"+u.raw,s.text+="\n"+u.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(u);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let u,s,n,i,r,l,o=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(o));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(o));)o=o.slice(0,i.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(r||(l=""),r=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((s=>!!(u=s.call({lexer:this},e,t))&&(e=e.substring(u.raw.length),t.push(u),!0)))))if(u=this.tokenizer.escape(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.tag(e))e=e.substring(u.raw.length),s=t[t.length-1],s&&"text"===u.type&&"text"===s.type?(s.raw+=u.raw,s.text+=u.text):t.push(u);else if(u=this.tokenizer.link(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(u.raw.length),s=t[t.length-1],s&&"text"===u.type&&"text"===s.type?(s.raw+=u.raw,s.text+=u.text):t.push(u);else if(u=this.tokenizer.emStrong(e,o,l))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.codespan(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.br(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.del(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.autolink(e))e=e.substring(u.raw.length),t.push(u);else if(this.state.inLink||!(u=this.tokenizer.url(e))){if(n=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const u=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},u),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(u=this.tokenizer.inlineText(n))e=e.substring(u.raw.length),"_"!==u.raw.slice(-1)&&(l=u.raw.slice(-1)),r=!0,s=t[t.length-1],s&&"text"===s.type?(s.raw+=u.raw,s.text+=u.text):t.push(u);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(u.raw.length),t.push(u);return t}}class Fe{constructor(e){u(this,"options",void 0),this.options=e||E}code(e,t,u){var s;const n=null===(s=(t||"").match(/^\S*/))||void 0===s?void 0:s[0];return e=e.replace(/\n$/,"")+"\n",n?'
    '+(u?e:w(e,!0))+"
    \n":"
    "+(u?e:w(e,!0))+"
    \n"}blockquote(e){return`
    \n${e}
    \n`}html(e,t){return e}heading(e,t,u){return`${e}\n`}hr(){return"
    \n"}list(e,t,u){const s=t?"ol":"ul";return"<"+s+(t&&1!==u?' start="'+u+'"':"")+">\n"+e+"\n"}listitem(e,t,u){return`
  • ${e}
  • \n`}checkbox(e){return"'}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const u=t.header?"th":"td";return(t.align?`<${u} align="${t.align}">`:`<${u}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,t,u){const s=R(e);if(null===s)return u;let n='
    ",n}image(e,t,u){const s=R(e);if(null===s)return u;let n=`${u}0&&"paragraph"===t.tokens[0].type?(t.tokens[0].text=e+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=e+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",text:e+" "}):l+=e+" "}l+=this.parse(t.tokens,i),r+=this.renderer.listitem(l,n,!!s)}u+=this.renderer.list(r,t,s);continue}case"html":{const e=n;u+=this.renderer.html(e.text,e.block);continue}case"paragraph":{const e=n;u+=this.renderer.paragraph(this.parseInline(e.tokens));continue}case"text":{let i=n,r=i.tokens?this.parseInline(i.tokens):i.text;for(;s+1{const i={...n},r={...this.defaults,...i};!0===this.defaults.async&&!1===i.async&&(r.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),r.async=!0);const l=t(this,be,ye).call(this,!!r.silent,!!r.async);if(null==s)return l(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof s)return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(s):s).then((t=>e(t,r))).then((e=>r.hooks?r.hooks.processAllTokens(e):e)).then((e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>u(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(l);try{r.hooks&&(s=r.hooks.preprocess(s));let t=e(s,r);r.hooks&&(t=r.hooks.processAllTokens(t)),r.walkTokens&&this.walkTokens(t,r.walkTokens);let n=u(t,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(o){return l(o)}}}function ye(e,t){return u=>{if(u.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="

    An error occurred:

    "+w(u.message+"",!0)+"
    ";return t?Promise.resolve(e):e}if(t)return Promise.reject(u);throw u}}const $e=new class{constructor(...s){e(this,be),e(this,Ce),u(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),u(this,"options",this.setOptions),u(this,"parse",t(this,Ce,we).call(this,De.lex,Be.parse)),u(this,"parseInline",t(this,Ce,we).call(this,De.lexInline,Be.parseInline)),u(this,"Parser",Be),u(this,"Renderer",Fe),u(this,"TextRenderer",xe),u(this,"Lexer",De),u(this,"Tokenizer",q),u(this,"Hooks",me),this.use(...s)}walkTokens(e,t){let u=[];for(const n of e)switch(u=u.concat(t.call(this,n)),n.type){case"table":{const e=n;for(const s of e.header)u=u.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)u=u.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=n;u=u.concat(this.walkTokens(e.items,t));break}default:{var s;const e=n;null!==(s=this.defaults.extensions)&&void 0!==s&&null!==(s=s.childTokens)&&void 0!==s&&s[e.type]?this.defaults.extensions.childTokens[e.type].forEach((s=>{u=u.concat(this.walkTokens(e[s],t))})):e.tokens&&(u=u.concat(this.walkTokens(e.tokens,t)))}}return u}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const u={...e};if(u.async=this.defaults.async||u.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const u=t.renderers[e.name];t.renderers[e.name]=u?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=u.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const u=t[e.level];u?u.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),u.extensions=t),e.renderer){const t=this.defaults.renderer||new Fe(this.defaults);for(const u in e.renderer){if(!(u in t))throw new Error(`renderer '${u}' does not exist`);if("options"===u)continue;const s=u,n=e.renderer[s],i=t[s];t[s]=(...e)=>{let u=n.apply(t,e);return!1===u&&(u=i.apply(t,e)),u||""}}u.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new q(this.defaults);for(const u in e.tokenizer){if(!(u in t))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;const s=u,n=e.tokenizer[s],i=t[s];t[s]=(...e)=>{let u=n.apply(t,e);return!1===u&&(u=i.apply(t,e)),u}}u.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new me;for(const u in e.hooks){if(!(u in t))throw new Error(`hook '${u}' does not exist`);if("options"===u)continue;const s=u,n=e.hooks[s],i=t[s];me.passThroughHooks.has(u)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(n.call(t,e)).then((e=>i.call(t,e)));const u=n.call(t,e);return i.call(t,u)}:t[s]=(...e)=>{let u=n.apply(t,e);return!1===u&&(u=i.apply(t,e)),u}}u.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;u.walkTokens=function(e){let u=[];return u.push(s.call(this,e)),t&&(u=u.concat(t.call(this,e))),u}}this.defaults={...this.defaults,...u}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return De.lex(e,null!=t?t:this.defaults)}parser(e,t){return Be.parse(e,null!=t?t:this.defaults)}};function ve(e,t){return $e.parse(e,t)}ve.options=ve.setOptions=function(e){return $e.setOptions(e),ve.defaults=$e.defaults,D(ve.defaults),ve},ve.getDefaults=n,ve.defaults=E,ve.use=function(...e){return $e.use(...e),ve.defaults=$e.defaults,D(ve.defaults),ve},ve.walkTokens=function(e,t){return $e.walkTokens(e,t)},ve.parseInline=$e.parseInline,ve.Parser=Be,ve.parser=Be.parse,ve.Renderer=Fe,ve.TextRenderer=xe,ve.Lexer=De,ve.lexer=De.lex,ve.Tokenizer=q,ve.Hooks=me,ve.parse=ve,ve.options,ve.setOptions,ve.use,ve.walkTokens,ve.parseInline,Be.parse,De.lex;const ze=s("d",{company:"",startDate:0,endDate:void 0,address:"",jobDescr:"",equipment:[],technicians:[],supervisors:[],access:[],risks:[],measures:{},meta:{}});const Re=p(new class{constructor(e){u(this,"id",void 0),u(this,"descr",void 0),u(this,"company",void 0),u(this,"startDate",void 0),u(this,"endDate",void 0),u(this,"address",void 0),u(this,"jobDescr",void 0),u(this,"equipment",void 0),u(this,"technicians",void 0),u(this,"supervisors",void 0),u(this,"access",void 0),u(this,"risks",void 0),u(this,"allRisks",void 0),u(this,"measures",void 0),u(this,"meta",void 0),u(this,"initData",void 0),u(this,"isReady",void 0),u(this,"ready",void 0),this.initData={...ze},this.isReady=!1,this.init(e)}init(e){this.isReady=!1,this.measures={},this.meta={},this.allRisks=[],i(this,r(ze)),e&&i(this,e),this.updateInitData()}clear(){this.init(),this.id=void 0}updateInitData(){const e=r(l(this,ze));this.initData=e}reset(){i(this,this.initData)}modified(){for(let e in this.initData)if(!o(this[e],this.initData[e]))return!0;return!1}loadFromDb(e){return this.init({id:e}),this.ready=h.ready().then((()=>h.table("riskassessments").getAsPromise(e))).then((e=>{this.init(e),this.isReady=!0})).catch((e=>{throw Error(e)})),this.ready}async save(){if(void 0===this.id)throw Error("Attempt to update without id");let e={};return e=r(l(this,ze)),a.riskassessments.update(this.id,e).then((e=>{if(0===e)throw Error("Could not update. Does ID "+this.id+" exist?");const t=Math.floor(Date.now()/1e3);a.riskassessmentsmeta.update(this.id,{lastChange:t}),this.updateInitData()}))}dateStr(e){return e.getUTCFullYear()+"-"+(e.getUTCMonth()+1)+"-"+e.getUTCDate()}getStartDate(){return new Date(this.startDate)}setStartDate(e){this.startDate=this.dateStr(e)}getEndDate(){return this.endDate?new Date(this.endDate):void 0}setEndDate(e){this.endDate=void 0===e?void 0:this.dateStr(e)}async calcAllRisks(){await f.ready();const e=await h.table("measures").ready(),t=await h.table("equipment").ready(),u=[],s=[...this.risks];for(this.resetMetaAddedBy(),this.equipment.forEach((e=>{t.get(e).causeRisks.forEach((t=>{s.push(t);const u=this.getMeta(t);u.addedBy.find((t=>t.id===e&&"equipment"===t.type))||u.addedBy.push({id:e,type:"equipment"})}))}));s.length>0;){const t=s.pop();u.includes(t)||(u.push(t),this.getMeasures(t).forEach((t=>{e.get(t).causeRisks.forEach((e=>{s.push(e);const u=this.getMeta(e);u.addedBy.find((e=>e.id===t&&"measure"===e.type))||u.addedBy.push({id:t,type:"measure"})}))})))}return this.allRisks=u,u}resetMetaAddedBy(){for(let e in this.meta)this.getMeta(parseInt(e)).addedBy.length=0}getMeta(e){return void 0===this.meta[e]&&(this.meta[e]={risk:e,addedBy:[]}),this.meta[e]}getMeasures(e){return void 0===this.measures[e]&&(this.measures[e]=[]),this.measures[e]}getMeasuresAsRef(e){return A(this.getMeasures(e))}addSector(e={}){const t=this.access.map((e=>e.id?e.id:0)).reduce(((e,t)=>e>t?e+1:t+1),0);this.access.push({id:t,title:"Neuer Sektor "+t,entrance:"",exit:"",anchorPoints:"",comment:"",rescue:"",...e})}});function Te(e){const t=d();let u=e;return t&&t.path.startsWith("/riskassessment")&&void 0!==t.params.id&&(u=parseInt(t.params.id)),void 0===u||Re.id===u||Re.loadFromDb(u),Re}}}}))}(); diff --git a/ra/assets/status-tap-legacy-W9Cecc4S.js b/ra/assets/status-tap-legacy-W9Cecc4S.js new file mode 100644 index 0000000..52b7da5 --- /dev/null +++ b/ra/assets/status-tap-legacy-W9Cecc4S.js @@ -0,0 +1,5 @@ +System.register(["./index-legacy-l9aK7RKf.js"],(function(e,t){"use strict";var n,r,s,o,a;return{setters:[e=>{n=e.aV,r=e.aW,s=e.aX,o=e.aY,a=e.aZ}],execute:function(){ +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +e("startStatusTap",(()=>{const e=window;e.addEventListener("statusTap",(()=>{n((()=>{const t=e.innerWidth,n=e.innerHeight,i=document.elementFromPoint(t/2,n/2);if(!i)return;const c=r(i);c&&new Promise((e=>s(c,e))).then((()=>{o((async()=>{c.style.setProperty("--overflow","hidden"),await a(c,300),c.style.removeProperty("--overflow")}))}))}))}))}))}}})); diff --git a/ra/assets/status-tap-wU6Zh3B8.js b/ra/assets/status-tap-wU6Zh3B8.js new file mode 100644 index 0000000..af78744 --- /dev/null +++ b/ra/assets/status-tap-wU6Zh3B8.js @@ -0,0 +1,3 @@ +import{aV as r,aW as i,aX as c,aY as d,aZ as l}from"./index-DYrAM6VV.js";/*! + * (C) Ionic http://ionicframework.com - MIT License + */const m=()=>{const e=window;e.addEventListener("statusTap",()=>{r(()=>{const o=e.innerWidth,s=e.innerHeight,n=document.elementFromPoint(o/2,s/2);if(!n)return;const t=i(n);t&&new Promise(a=>c(t,a)).then(()=>{d(async()=>{t.style.setProperty("--overflow","hidden"),await l(t,300),t.style.removeProperty("--overflow")})})})})};export{m as startStatusTap}; diff --git a/ra/assets/swipe-back-IWamMfvk.js b/ra/assets/swipe-back-IWamMfvk.js new file mode 100644 index 0000000..f2c4e69 --- /dev/null +++ b/ra/assets/swipe-back-IWamMfvk.js @@ -0,0 +1,3 @@ +import{aN as h,aO as D,aP as M}from"./index-DYrAM6VV.js";/*! + * (C) Ionic http://ionicframework.com - MIT License + */const k=(n,m,g,p,X)=>{const c=n.ownerDocument.defaultView;let s=h(n);const w=t=>{const{startX:e}=t;return s?e>=c.innerWidth-50:e<=50},i=t=>s?-t.deltaX:t.deltaX,v=t=>s?-t.velocityX:t.velocityX;return D({el:n,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:t=>(s=h(n),w(t)&&m()),onStart:g,onMove:t=>{const e=i(t)/c.innerWidth;p(e)},onEnd:t=>{const o=i(t),e=c.innerWidth,r=o/e,a=v(t),y=e/2,l=a>=0&&(a>.2||o>y),u=(l?1-r:r)*e;let d=0;if(u>5){const f=u/Math.abs(a);d=Math.min(f,540)}X(l,r<=0?.01:M(0,r,.9999),d)}})};export{k as createSwipeBackGesture}; diff --git a/ra/assets/swipe-back-legacy-0Y8C9GOm.js b/ra/assets/swipe-back-legacy-0Y8C9GOm.js new file mode 100644 index 0000000..446cf12 --- /dev/null +++ b/ra/assets/swipe-back-legacy-0Y8C9GOm.js @@ -0,0 +1,5 @@ +System.register(["./index-legacy-l9aK7RKf.js"],(function(t,e){"use strict";var n,r,i;return{setters:[t=>{n=t.aN,r=t.aO,i=t.aP}],execute:function(){ +/*! + * (C) Ionic http://ionicframework.com - MIT License + */ +t("createSwipeBackGesture",((t,e,s,a,o)=>{const c=t.ownerDocument.defaultView;let u=n(t);const l=t=>u?-t.deltaX:t.deltaX;return r({el:t,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:r=>(u=n(t),(t=>{const{startX:e}=t;return u?e>=c.innerWidth-50:e<=50})(r)&&e()),onStart:s,onMove:t=>{const e=l(t)/c.innerWidth;a(e)},onEnd:t=>{const e=l(t),n=c.innerWidth,r=e/n,s=(t=>u?-t.velocityX:t.velocityX)(t),a=s>=0&&(s>.2||e>n/2),d=(a?1-r:r)*n;let h=0;if(d>5){const t=d/Math.abs(s);h=Math.min(t,540)}o(a,r<=0?.01:i(0,r,.9999),h)}})}))}}})); diff --git a/ra/index.html b/ra/index.html index 90eb47c..12ac166 100644 --- a/ra/index.html +++ b/ra/index.html @@ -20,7 +20,7 @@ - + @@ -30,7 +30,7 @@
    - + diff --git a/ra/sw.js b/ra/sw.js index 1e17829..b5cbe28 100644 --- a/ra/sw.js +++ b/ra/sw.js @@ -1 +1 @@ -if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(i,t)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(e[n])return;let u={};const r=s=>l(s,n),a={module:{uri:n},exports:u,require:r};e[n]=Promise.all(i.map((s=>a[s]||r(s)))).then((s=>(t(...s),u)))}}define(["./workbox-3e911b1d"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/AddedByList.vue_vue_type_script_setup_true_lang-legacy-r_XpwUkb.js",revision:null},{url:"assets/AddedByList.vue_vue_type_script_setup_true_lang-OtfuLEku.js",revision:null},{url:"assets/EquipmentCatalogPage-LBsrRvIo.js",revision:null},{url:"assets/EquipmentCatalogPage-legacy-IJARxFbV.js",revision:null},{url:"assets/EquipmentEditPage-legacy-Yy-pOJ-I.js",revision:null},{url:"assets/EquipmentEditPage-WmJVFXRS.js",revision:null},{url:"assets/EquipmentList.vue_vue_type_script_setup_true_lang-legacy-lHIFM7kC.js",revision:null},{url:"assets/EquipmentList.vue_vue_type_script_setup_true_lang-R1ZoWckn.js",revision:null},{url:"assets/GenericEditModal-legacy-GtH1UpYe.js",revision:null},{url:"assets/GenericEditModal-v8BtWelY.js",revision:null},{url:"assets/GenericList.vue_vue_type_script_setup_true_lang-legacy-N3-_U6yf.js",revision:null},{url:"assets/GenericList.vue_vue_type_script_setup_true_lang-lKs9cl-S.js",revision:null},{url:"assets/helpers-8DsvcW-E.js",revision:null},{url:"assets/helpers-legacy-dyrtGyeK.js",revision:null},{url:"assets/index-legacy-ys9BPxUl.js",revision:null},{url:"assets/index-pPK12qfN.css",revision:null},{url:"assets/index-RibdAejQ.js",revision:null},{url:"assets/index9-3zD1qfl9.js",revision:null},{url:"assets/index9-legacy-7kSgWVEs.js",revision:null},{url:"assets/input-shims-legacy-7VjmknMo.js",revision:null},{url:"assets/input-shims-t4mQw-CA.js",revision:null},{url:"assets/ios.transition-legacy-JpCQqCKt.js",revision:null},{url:"assets/ios.transition-syAQzfFM.js",revision:null},{url:"assets/LandingPage-AISxBjK7.js",revision:null},{url:"assets/LandingPage-legacy-Z-oBvnJP.js",revision:null},{url:"assets/livequery-legacy-4rwIXujt.js",revision:null},{url:"assets/livequery-wJvcpifI.js",revision:null},{url:"assets/liveriskstree-legacy-fdgqm4mm.js",revision:null},{url:"assets/liveriskstree-Xv43hPXr.js",revision:null},{url:"assets/md.transition-legacy-mdKSU4Fw.js",revision:null},{url:"assets/md.transition-vBFcULUV.js",revision:null},{url:"assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-legacy-7JuuRdOm.js",revision:null},{url:"assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-umxaJNAb.js",revision:null},{url:"assets/MeasureDetailsPage-D6D5x03o.js",revision:null},{url:"assets/MeasureDetailsPage-legacy-AlSk3ovU.js",revision:null},{url:"assets/MeasureEditPage-aLTXdreS.js",revision:null},{url:"assets/MeasureEditPage-legacy-esGBylIw.js",revision:null},{url:"assets/MeasuresCatalogPage-HZr-JlL4.js",revision:null},{url:"assets/MeasuresCatalogPage-legacy-XM03-8E0.js",revision:null},{url:"assets/polyfills-legacy-aRMNDjLJ.js",revision:null},{url:"assets/RAEditAccess-CZfE-Z5t.js",revision:null},{url:"assets/RAEditAccess-legacy-jpxU6KYO.js",revision:null},{url:"assets/RAEditDate-legacy-EQo2ENmx.js",revision:null},{url:"assets/RAEditDate-XLKae8es.js",revision:null},{url:"assets/RAEditEquipment-legacy-ALLUFDTd.js",revision:null},{url:"assets/RAEditEquipment-Xlk6dCjK.js",revision:null},{url:"assets/RAEditGeneral-K6Z6Xu98.js",revision:null},{url:"assets/RAEditGeneral-legacy-h2hz07rL.js",revision:null},{url:"assets/RAEditLocation-0wpWKMyo.css",revision:null},{url:"assets/RAEditLocation-legacy-XPZ_tlTC.js",revision:null},{url:"assets/RAEditLocation-TMMG0l4z.js",revision:null},{url:"assets/RAEditOverview-JgVoO3dj.js",revision:null},{url:"assets/RAEditOverview-legacy-mUNi7MdI.js",revision:null},{url:"assets/RAEditOverview-pwIFC1Ym.css",revision:null},{url:"assets/RAEditRescue-legacy-yx088BjW.js",revision:null},{url:"assets/RAEditRescue-mo5lgaTH.js",revision:null},{url:"assets/RAEditRiskEntry-legacy-Ade40tTX.js",revision:null},{url:"assets/RAEditRiskEntry-LMAMQBQq.js",revision:null},{url:"assets/RAEditRiskEntryMeasures-28Shuh32.js",revision:null},{url:"assets/RAEditRiskEntryMeasures-legacy-xrDz_5qw.js",revision:null},{url:"assets/RAEditRisks-1iNiQtZk.js",revision:null},{url:"assets/RAEditRisks-93pj5IUn.css",revision:null},{url:"assets/RAEditRisks-legacy-jhEnwkx2.js",revision:null},{url:"assets/RAEditTechnicians-legacy-yhpRIYEU.js",revision:null},{url:"assets/RAEditTechnicians-So0L7dw1.js",revision:null},{url:"assets/riskassessment-legacy-mM646kur.js",revision:null},{url:"assets/riskassessment-xF-vHB8I.js",revision:null},{url:"assets/RiskAssessmentExport-legacy-CsTTKg0w.js",revision:null},{url:"assets/RiskAssessmentExport-muo3AHFh.js",revision:null},{url:"assets/RiskAssessmentExport-OXPf3ubL.css",revision:null},{url:"assets/RiskAssessmentListPage-legacy-VlHW5hHb.js",revision:null},{url:"assets/RiskAssessmentListPage-MmdQRZYi.js",revision:null},{url:"assets/RiskCatalog.vue_vue_type_script_setup_true_lang-J59aqdi1.js",revision:null},{url:"assets/RiskCatalog.vue_vue_type_script_setup_true_lang-legacy-fF6DKVDv.js",revision:null},{url:"assets/RiskCatalogPage-90J9HueG.js",revision:null},{url:"assets/RiskCatalogPage-legacy-iUzhg-25.js",revision:null},{url:"assets/RiskDetailsPage-legacy-9sYiKORB.js",revision:null},{url:"assets/RiskDetailsPage-tJ-XWlnu.js",revision:null},{url:"assets/RiskList.vue_vue_type_script_setup_true_lang-d-DNxrhi.js",revision:null},{url:"assets/RiskList.vue_vue_type_script_setup_true_lang-legacy-PgZdxu5p.js",revision:null},{url:"assets/RiskListItem-gwbBZNMs.js",revision:null},{url:"assets/RiskListItem-legacy-9536hICU.js",revision:null},{url:"assets/status-tap-legacy-7o_AlH62.js",revision:null},{url:"assets/status-tap-XEORrGj1.js",revision:null},{url:"assets/swipe-back-11qdbEAP.js",revision:null},{url:"assets/swipe-back-legacy-2gl_NAS3.js",revision:null},{url:"assets/TechnicianCatalogPage-_weYBvdT.js",revision:null},{url:"assets/TechnicianCatalogPage-legacy--X6okIbo.js",revision:null},{url:"assets/TechnicianEditPage-kFMvo14c.js",revision:null},{url:"assets/TechnicianEditPage-legacy-zcVtQvMo.js",revision:null},{url:"assets/TechniciansList.vue_vue_type_script_setup_true_lang-legacy-VmTBavGl.js",revision:null},{url:"assets/TechniciansList.vue_vue_type_script_setup_true_lang-Rf9yXHfl.js",revision:null},{url:"assets/TemplateGenericEditPage-epK2MJAl.js",revision:null},{url:"assets/TemplateGenericEditPage-legacy-efbg0DiJ.js",revision:null},{url:"assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-3zZI-dna.js",revision:null},{url:"assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-N6RVNtXv.js",revision:null},{url:"assets/TemplateRiskAssessmentPage-2-tks2_-.js",revision:null},{url:"assets/TemplateRiskAssessmentPage-legacy-fy60uH1e.js",revision:null},{url:"index.html",revision:"32a7b92bb4b33a91e58e1387ab153622"},{url:"print.css",revision:"955dd2faf3e845b85fc985f988e11c9e"},{url:"print.js",revision:"c5d800260edcc7febaa0bf5ad1b1825c"},{url:"registerSW.js",revision:"e81983c5d51eebfb1e65c3d5254fedcb"},{url:"logo-144.png",revision:"999f53aa096475b5fdc3c47ec64fb98c"},{url:"logo.jpg",revision:"364c236c63a6e49f7e484327126a4e58"},{url:"manifest.webmanifest",revision:"e0aa1203507a9c5216f8d0161d1a7551"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))})); +if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(i,n)=>{const t=s||("document"in self?document.currentScript.src:"")||location.href;if(e[t])return;let r={};const u=s=>l(s,t),a={module:{uri:t},exports:r,require:u};e[t]=Promise.all(i.map((s=>a[s]||u(s)))).then((s=>(n(...s),r)))}}define(["./workbox-3e911b1d"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/AddedByList.vue_vue_type_script_setup_true_lang-legacy-kEQjZDfl.js",revision:null},{url:"assets/AddedByList.vue_vue_type_script_setup_true_lang-Uj9nWl0E.js",revision:null},{url:"assets/EquipmentCatalogPage-legacy-TEHh17q4.js",revision:null},{url:"assets/EquipmentCatalogPage-vFC-50U8.js",revision:null},{url:"assets/EquipmentEditPage-FFbluN7d.js",revision:null},{url:"assets/EquipmentEditPage-legacy-HsAnWkP8.js",revision:null},{url:"assets/EquipmentList.vue_vue_type_script_setup_true_lang-legacy-Z90HBhdn.js",revision:null},{url:"assets/EquipmentList.vue_vue_type_script_setup_true_lang-LrAGbvfC.js",revision:null},{url:"assets/GenericEditModal-HfPjcc9X.js",revision:null},{url:"assets/GenericEditModal-legacy-bj_6eKP1.js",revision:null},{url:"assets/GenericList.vue_vue_type_script_setup_true_lang-legacy-ksUW4ZVe.js",revision:null},{url:"assets/GenericList.vue_vue_type_script_setup_true_lang-qUMmHDqE.js",revision:null},{url:"assets/helpers-legacy-X82L35U6.js",revision:null},{url:"assets/helpers-ZGJup-tE.js",revision:null},{url:"assets/index-DYrAM6VV.js",revision:null},{url:"assets/index-legacy-l9aK7RKf.js",revision:null},{url:"assets/index-pPK12qfN.css",revision:null},{url:"assets/index9-iTfihG9Y.js",revision:null},{url:"assets/index9-legacy-BvNGh5ds.js",revision:null},{url:"assets/input-shims-legacy-LDylaC-D.js",revision:null},{url:"assets/input-shims-vG7GaNkX.js",revision:null},{url:"assets/ios.transition-dQ8GtZqh.js",revision:null},{url:"assets/ios.transition-legacy-WEXCFnkr.js",revision:null},{url:"assets/LandingPage-3V93WHBH.js",revision:null},{url:"assets/LandingPage-legacy-jNiGhj4u.js",revision:null},{url:"assets/livequery-legacy-GqvLyVpq.js",revision:null},{url:"assets/livequery-N-IbBJej.js",revision:null},{url:"assets/liveriskstree-legacy-dlv-ajCr.js",revision:null},{url:"assets/liveriskstree-S1mQ308m.js",revision:null},{url:"assets/md.transition-0XUdQA4P.js",revision:null},{url:"assets/md.transition-legacy-rJZkiATa.js",revision:null},{url:"assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-legacy-SWGuYKdX.js",revision:null},{url:"assets/MeasureCatalog.vue_vue_type_script_setup_true_lang-Z3tgqIYP.js",revision:null},{url:"assets/MeasureDetailsPage-af5t5lTX.js",revision:null},{url:"assets/MeasureDetailsPage-legacy-y74zfiku.js",revision:null},{url:"assets/MeasureEditPage-fpofoCRn.js",revision:null},{url:"assets/MeasureEditPage-legacy-Dhj6B0vU.js",revision:null},{url:"assets/MeasuresCatalogPage-5rpP6tEC.js",revision:null},{url:"assets/MeasuresCatalogPage-legacy-AvG4mjrA.js",revision:null},{url:"assets/polyfills-legacy-aRMNDjLJ.js",revision:null},{url:"assets/RAEditAccess-FLjc5L4p.js",revision:null},{url:"assets/RAEditAccess-legacy-OVKuuqnz.js",revision:null},{url:"assets/RAEditDate-2a9-RHq5.js",revision:null},{url:"assets/RAEditDate-legacy-Ts6FzhDv.js",revision:null},{url:"assets/RAEditEquipment-legacy-8l2JLxhr.js",revision:null},{url:"assets/RAEditEquipment-qHDJOFsK.js",revision:null},{url:"assets/RAEditGeneral-EGQFgfrA.js",revision:null},{url:"assets/RAEditGeneral-legacy-hsgC9o4b.js",revision:null},{url:"assets/RAEditLocation-0wpWKMyo.css",revision:null},{url:"assets/RAEditLocation-hdzOW14o.js",revision:null},{url:"assets/RAEditLocation-legacy-dcpF_GaH.js",revision:null},{url:"assets/RAEditOverview-iBe6H-Vh.js",revision:null},{url:"assets/RAEditOverview-legacy-YvdLVVEn.js",revision:null},{url:"assets/RAEditOverview-pwIFC1Ym.css",revision:null},{url:"assets/RAEditRescue-iPh9mXkA.js",revision:null},{url:"assets/RAEditRescue-legacy-9AqeDjU2.js",revision:null},{url:"assets/RAEditRiskEntry-legacy-e3_wn4kx.js",revision:null},{url:"assets/RAEditRiskEntry-pnSiEAko.js",revision:null},{url:"assets/RAEditRiskEntryMeasures-legacy-6ISYF15v.js",revision:null},{url:"assets/RAEditRiskEntryMeasures-zG8H-6Om.js",revision:null},{url:"assets/RAEditRisks-93pj5IUn.css",revision:null},{url:"assets/RAEditRisks-legacy-1OUQVgZQ.js",revision:null},{url:"assets/RAEditRisks-RehlTfpG.js",revision:null},{url:"assets/RAEditTechnicians-legacy-tb8HIiNB.js",revision:null},{url:"assets/RAEditTechnicians-NY5x7qs-.js",revision:null},{url:"assets/riskassessment-gvIk_m2h.js",revision:null},{url:"assets/riskassessment-legacy-kVyVXEzW.js",revision:null},{url:"assets/RiskAssessmentExport-kRQ2n3ND.js",revision:null},{url:"assets/RiskAssessmentExport-legacy-KtTUVEJi.js",revision:null},{url:"assets/RiskAssessmentExport-tj9T0tA_.css",revision:null},{url:"assets/RiskAssessmentListPage-legacy-vXQdEblg.js",revision:null},{url:"assets/RiskAssessmentListPage-RxhsctLC.js",revision:null},{url:"assets/RiskCatalog.vue_vue_type_script_setup_true_lang-legacy-HueAlsRD.js",revision:null},{url:"assets/RiskCatalog.vue_vue_type_script_setup_true_lang-t3Akc4GU.js",revision:null},{url:"assets/RiskCatalogPage-jm6FPomx.js",revision:null},{url:"assets/RiskCatalogPage-legacy-LDsvAgGG.js",revision:null},{url:"assets/RiskDetailsPage-hImwSlZO.js",revision:null},{url:"assets/RiskDetailsPage-legacy-R8b2Xjm5.js",revision:null},{url:"assets/RiskList.vue_vue_type_script_setup_true_lang-legacy-Gt6J-dTZ.js",revision:null},{url:"assets/RiskList.vue_vue_type_script_setup_true_lang-RlQXPtnM.js",revision:null},{url:"assets/RiskListItem-_kbE0JWc.js",revision:null},{url:"assets/RiskListItem-legacy--OFZLq8T.js",revision:null},{url:"assets/status-tap-legacy-W9Cecc4S.js",revision:null},{url:"assets/status-tap-wU6Zh3B8.js",revision:null},{url:"assets/swipe-back-IWamMfvk.js",revision:null},{url:"assets/swipe-back-legacy-0Y8C9GOm.js",revision:null},{url:"assets/TechnicianCatalogPage-f5XFi-9w.js",revision:null},{url:"assets/TechnicianCatalogPage-legacy-G1BAdEsm.js",revision:null},{url:"assets/TechnicianEditPage-legacy-BOVFQi38.js",revision:null},{url:"assets/TechnicianEditPage-MxOvfvuk.js",revision:null},{url:"assets/TechniciansList.vue_vue_type_script_setup_true_lang-6ejC1Akr.js",revision:null},{url:"assets/TechniciansList.vue_vue_type_script_setup_true_lang-legacy-Efqsdd0r.js",revision:null},{url:"assets/TemplateGenericEditPage-c3J_MoRf.js",revision:null},{url:"assets/TemplateGenericEditPage-legacy-PPT4N-QR.js",revision:null},{url:"assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-legacy-y_-jBNiw.js",revision:null},{url:"assets/TemplateMainPage.vue_vue_type_script_setup_true_lang-lO4tNo5A.js",revision:null},{url:"assets/TemplateRiskAssessmentPage-8r-vP2g1.js",revision:null},{url:"assets/TemplateRiskAssessmentPage-legacy-kcjQW-hP.js",revision:null},{url:"index.html",revision:"e9d466666644f1740edd45cddb771ec4"},{url:"print.css",revision:"955dd2faf3e845b85fc985f988e11c9e"},{url:"print.js",revision:"c5d800260edcc7febaa0bf5ad1b1825c"},{url:"registerSW.js",revision:"e81983c5d51eebfb1e65c3d5254fedcb"},{url:"logo-144.png",revision:"999f53aa096475b5fdc3c47ec64fb98c"},{url:"logo.jpg",revision:"364c236c63a6e49f7e484327126a4e58"},{url:"manifest.webmanifest",revision:"e0aa1203507a9c5216f8d0161d1a7551"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));