diff --git a/CNAME b/CNAME deleted file mode 100644 index 4c94c3d..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -glyphs.cherrilang.org \ No newline at end of file diff --git a/assets/index-CalEe5cj.js b/assets/index-DNHhI6ok.js similarity index 99% rename from assets/index-CalEe5cj.js rename to assets/index-DNHhI6ok.js index dfc2bd1..a2b4193 100644 --- a/assets/index-CalEe5cj.js +++ b/assets/index-DNHhI6ok.js @@ -100,9 +100,9 @@ --f7-md-surface-5-rgb: 55, 55, 55; `,f=i==="white"?u:i==="black"?p:e(o),h=i==="white"?u:i==="black"?p:e(l);s+=[`.color-${i} {`,f,"--swiper-theme-color: var(--f7-theme-color);","}",`.color-${i}.dark, .color-${i} .dark, .dark .color-${i} {`,h,"--swiper-theme-color: var(--f7-theme-color);","}",`.ios .color-${i}, .ios.color-${i}, .ios .dark .color-${i}, .ios .dark.color-${i} {`,e(c),"}",`.md .color-${i}, .md.color-${i}, .md .dark .color-${i}, .md .dark.color-${i} {`,e(d),"}",`.text-color-${i} {`,`--f7-theme-color-text-color: ${t[i]};`,"}",`.bg-color-${i} {`,`--f7-theme-color-bg-color: ${t[i]};`,"}",`.border-color-${i} {`,`--f7-theme-color-border-color: ${t[i]};`,"}",`.ripple-color-${i} {`,`--f7-theme-color-ripple-color: rgba(${o["--f7-ios-primary-rgb"]}, 0.3);`,"}"].join("")}),`${a}${s}`}const Qi=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Ct,cancelAnimationFrame:fy,colorHexToRgb:rn,colorHsbToHsl:cn,colorHslToHsb:ba,colorHslToRgb:ta,colorRgbToHex:on,colorRgbToHsl:fr,colorThemeCSSProperties:ks,colorThemeCSSStyles:my,deleteProps:Ze,eventNameToColonCase:ga,extend:W,flattenArray:ng,getTranslate:pr,id:Mr,iosPreloaderContent:Rn,isObject:Un,mdPreloaderContent:Ln,merge:hy,nextFrame:Tt,nextTick:ot,now:Bt,parseUrlQuery:La,requestAnimationFrame:Cs,serializeObject:Hn,uniqueNumber:py},Symbol.toStringTag,{value:"Module"}));let Xr;function gy(){const t=fe(),e=ye();return{touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>=0,passiveListener:function(){let a=!1;try{const r=Object.defineProperty({},"passive",{get(){a=!0}});t.addEventListener("testPassiveListener",null,r)}catch{}return a}(),intersectionObserver:function(){return"IntersectionObserver"in t}()}}function Ye(){return Xr||(Xr=gy()),Xr}let Ur;function by(t){let{userAgent:e}=t===void 0?{}:t;const n=Ye(),a=fe(),r=a.navigator.platform,s=e||a.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!!a.cordova,electron:!1,capacitor:!!a.Capacitor,nwjs:!1},o=a.screen.width,l=a.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&s.match(/(iPhone\sOS|iOS|iPhone;\sCPU\sOS)\s([\d_]+)/),f=s.indexOf("MSIE ")>=0||s.indexOf("Trident/")>=0,h=s.indexOf("Edge/")>=0,m=s.indexOf("Gecko/")>=0&&s.indexOf("Firefox/")>=0,b=r==="Win32",w=s.toLowerCase().indexOf("electron")>=0,g=typeof nw<"u"&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.nw<"u";let v=r==="MacIntel";const y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];!d&&v&&n.touch&&y.indexOf(`${o}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),v=!1),i.ie=f,i.edge=h,i.firefox=m,c&&(i.os="android",i.osVersion=c[2],i.android=!0,i.androidChrome=s.toLowerCase().indexOf("chrome")>=0),(d||p||u)&&(i.os="ios",i.ios=!0),p&&!u&&(i.osVersion=p[2].replace(/_/g,"."),i.iphone=!0),d&&(i.osVersion=d[2].replace(/_/g,"."),i.ipad=!0),u&&(i.osVersion=u[3]?u[3].replace(/_/g,"."):null,i.ipod=!0),i.ios&&i.osVersion&&s.indexOf("Version/")>=0&&i.osVersion.split(".")[0]==="10"&&(i.osVersion=s.toLowerCase().split("version/")[1].split(" ")[0]),i.webView=!!((p||d||u)&&(s.match(/.*AppleWebKit(?!.*Safari)/i)||a.navigator.standalone))||a.matchMedia&&a.matchMedia("(display-mode: standalone)").matches,i.webview=i.webView,i.standalone=i.webView,i.desktop=!(i.ios||i.android)||w||g,i.desktop&&(i.electron=w,i.nwjs=g,i.macos=v,i.windows=b,i.macos&&(i.os="macos"),i.windows&&(i.os="windows")),i.pixelRatio=a.devicePixelRatio||1;const E="(prefers-color-scheme: dark)",k="(prefers-color-scheme: light)";return i.prefersColorScheme=function(){let M;return a.matchMedia&&a.matchMedia(k).matches&&(M="light"),a.matchMedia&&a.matchMedia(E).matches&&(M="dark"),M},i}const vy=(()=>{const t=ye();try{return!!(t&&t.body&&t.body.getBoundingClientRect&&t.body.getBoundingClientRect().width>0)}catch{return!1}})();function Ie(t,e){return t===void 0&&(t={}),e===void 0&&(e=vy),(!Ur||e)&&(Ur=by(t)),Ur}class ag{constructor(e){e===void 0&&(e=[]);const n=this;n.eventsParents=e,n.eventsListeners={}}on(e,n,a){const r=this;if(typeof n!="function")return r;const s=a?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][s](n)}),r}once(e,n,a){const r=this;if(typeof n!="function")return r;function s(){r.off(e,s),s.f7proxy&&delete s.f7proxy;for(var i=arguments.length,o=new Array(i),l=0;l{typeof n>"u"?a.eventsListeners[r]=[]:a.eventsListeners[r]&&a.eventsListeners[r].forEach((s,i)=>{(s===n||s.f7proxy&&s.f7proxy===n)&&a.eventsListeners[r].splice(i,1)})}),a}emit(){const e=this;if(!e.eventsListeners)return e;let n,a,r,s;for(var i=arguments.length,o=new Array(i),l=0;lp.replace("local::","")),u=c.filter(p=>p.indexOf("local::")<0);return d.forEach(p=>{if(e.eventsListeners&&e.eventsListeners[p]){const f=[];e.eventsListeners[p].forEach(h=>{f.push(h)}),f.forEach(h=>{h.apply(r,a)})}}),s&&s.length>0&&s.forEach(p=>{p.emit(u,...a)}),e}}class Xe extends ag{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n=[]),super(n);const a=this;a.params=e,a.params&&a.params.on&&Object.keys(a.params.on).forEach(r=>{a.on(r,a.params.on[r])})}useModuleParams(e,n){if(e.params){const a={};Object.keys(e.params).forEach(r=>{typeof n[r]>"u"||(a[r]=W({},n[r]))}),W(n,e.params),Object.keys(a).forEach(r=>{W(n[r],a[r])})}}useModulesParams(e){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=n.modules[a];r.params&&W(e,r.params)})}useModule(e,n){e===void 0&&(e=""),n===void 0&&(n={});const a=this;if(!a.modules)return;const r=typeof e=="string"?a.modules[e]:e;r&&(r.instance&&Object.keys(r.instance).forEach(s=>{const i=r.instance[s];typeof i=="function"?a[s]=i.bind(a):a[s]=i}),r.on&&a.on&&Object.keys(r.on).forEach(s=>{a.on(s,r.on[s])}),r.vnode&&(a.vnodeHooks||(a.vnodeHooks={}),Object.keys(r.vnode).forEach(s=>{Object.keys(r.vnode[s]).forEach(i=>{const o=r.vnode[s][i];a.vnodeHooks[i]||(a.vnodeHooks[i]={}),a.vnodeHooks[i][s]||(a.vnodeHooks[i][s]=[]),a.vnodeHooks[i][s].push(o.bind(a))})})),r.create&&r.create.bind(a)(n))}useModules(e){e===void 0&&(e={});const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=e[a]||{};n.useModule(a,r)})}static set components(e){const n=this;n.use&&n.use(e)}static installModule(e){const n=this;n.prototype.modules||(n.prototype.modules={});const a=e.name||`${Object.keys(n.prototype.modules).length}_${Bt()}`;if(n.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach(o=>{n.prototype[o]=e.proto[o]}),e.static&&Object.keys(e.static).forEach(o=>{n[o]=e.static[o]}),e.install){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;in.installModule(i)),n;for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s{i[o]=function(l){l===void 0&&(l=e);const c=i.get(l);for(var d=arguments.length,u=new Array(d>1?d-1:0),p=1;p1&&o){const d=C(o).parents(".page");d.length&&l.each(u=>{const p=C(u);p.parents(d)[0]===d[0]&&(l=p)})}if(l.length>1&&(l=l.eq(l.length-1)),!l.length)return;let c=l[0].f7Modal;if(!c){const d=l.dataset();c=new n(a,{el:l,...d})}return c.open(i)},close(s,i,o){s===void 0&&(s=e);let l=C(s);if(!l.length)return;if(l.length>1){let d;if(o){const u=C(o);u.length&&(d=u.parents(l))}d&&d.length>0?l=d:l=l.eq(l.length-1)}let c=l[0].f7Modal;if(!c){const d=l.dataset();c=new n(a,{el:l,...d})}return c.close(i)}})}const Ji=[];function wy(t){const e=this,n=fe(),a=ye();return new Promise((r,s)=>{const i=e.instance;let o,l,c;if(!t){s(new Error("Framework7: Lazy module must be specified"));return}function d(u){e.use(u),i&&(i.useModuleParams(u,i.params),i.useModule(u))}if(typeof t=="string"){const u=t.match(/([a-z0-9-]*)/i);if(t.indexOf(".")<0&&u&&u[0].length===t.length){if(!i||i&&!i.params.lazyModulesPath){s(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));return}o=`${i.params.lazyModulesPath}/${t}/${t}.lazy.js`}else o=t}else typeof t=="function"?c=t:l=t;if(c){const u=c(e,!1);if(!u){s(new Error("Framework7: Can't find Framework7 component in specified component function"));return}if(e.prototype.modules&&e.prototype.modules[u.name]){r();return}d(u),r()}if(l){const u=l;if(!u){s(new Error("Framework7: Can't find Framework7 component in specified component"));return}if(e.prototype.modules&&e.prototype.modules[u.name]){r();return}d(u),r()}if(o){if(Ji.indexOf(o)>=0){r();return}Ji.push(o);const u=new Promise((f,h)=>{fetch(o).then(m=>m.text()).then(m=>{const w=`f7_component_loader_callback_${Mr()}`,g=a.createElement("script");g.innerHTML=`window.${w} = function (Framework7, Framework7AutoInstallComponent) {return ${m.trim()}}`,C("head").append(g);const v=n[w];delete n[w],C(g).remove();const y=v(e,!1);if(!y){h(new Error(`Framework7: Can't find Framework7 component in ${o} file`));return}if(e.prototype.modules&&e.prototype.modules[y.name]){f();return}d(y),f()}).catch(m=>{h(m)})}),p=new Promise(f=>{fetch(o.replace(".lazy.js",i.rtl?".rtl.css":".css").replace(".js",i.rtl?".rtl.css":".css")).then(h=>h.text()).then(h=>{const m=a.createElement("style");m.innerHTML=h,C("head").append(m),f()}).catch(()=>{f()})});Promise.all([u,p]).then(()=>{r()}).catch(f=>{s(f)})}})}const S=function(t,e){const n=e||{};for(var a=arguments.length,r=new Array(a>2?a-2:0),s=2;sc[0]==="_"?n[c]?c.replace("_",""):"":`${c}="${n[c]}"`).filter(c=>!!c).join(" ");if(["path","img","circle","polygon","line","input"].indexOf(t)>=0)return`<${t} ${o} />`.trim();const l=i.filter(c=>!!c).map(c=>Array.isArray(c)?c.join(""):c).join("");return`<${t} ${o}>${l}`.trim()};class nt extends Xe{constructor(e){if(e===void 0&&(e={}),super(e),nt.instance&&typeof window<"u")throw new Error("Framework7 is already initialized and can't be initialized more than once");const n=Ie({userAgent:e.userAgent||void 0}),a=Ye(),r=W({},e),s=this;s.device=n,s.support=a;const i=fe(),o=ye();nt.instance=s;const l={el:"body",theme:"auto",routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,darkMode:void 0,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0,userAgent:null,url:null,colors:{primary:"#007aff",red:"#ff3b30",green:"#4cd964",blue:"#2196f3",pink:"#ff2d55",yellow:"#ffcc00",orange:"#ff9500",purple:"#9c27b0",deeppurple:"#673ab7",lightblue:"#5ac8fa",teal:"#009688",lime:"#cddc39",deeporange:"#ff6b22",white:"#ffffff",black:"#000000"}};return s.useModulesParams(l),s.params=W(l,e),W(s,{name:s.params.name,routes:s.params.routes,theme:function(){return s.params.theme==="auto"?n.ios?"ios":"md":s.params.theme}(),passedParams:r,online:i.navigator.onLine,colors:s.params.colors,darkMode:s.params.darkMode}),e.store&&(s.params.store=e.store),s.$el&&s.$el[0]&&(s.$el[0].f7=s),s.useModules(),s.initStore(),s.params.init&&(n.cordova&&s.params.initOnDeviceReady?C(o).on("deviceready",()=>{s.init()}):s.init()),s}setColorTheme(e){if(!e)return;const n=this;n.colors.primary=e,n.setColors()}setColors(){const e=this,n=ye();e.colorsStyleEl||(e.colorsStyleEl=n.createElement("style"),n.head.prepend(e.colorsStyleEl)),e.colorsStyleEl.textContent=e.utils.colorThemeCSSStyles(e.colors)}mount(e){const n=this,a=fe(),r=ye(),s=C(e||n.params.el).eq(0);n.$el=s,n.$el&&n.$el[0]&&(n.el=n.$el[0],n.el.f7=n,n.rtl=s.css("direction")==="rtl");const i="(prefers-color-scheme: dark)",o="(prefers-color-scheme: light)";n.mq={},a.matchMedia&&(n.mq.dark=a.matchMedia(i),n.mq.light=a.matchMedia(o)),n.colorSchemeListener=function(c){let{matches:d,media:u}=c;if(!d)return;const p=r.querySelector("html");u===i?(p.classList.add("dark"),n.darkMode=!0,n.emit("darkModeChange",!0)):u===o&&(p.classList.remove("dark"),n.darkMode=!1,n.emit("darkModeChange",!1))},n.emit("mount")}initStore(){const e=this;typeof e.params.store<"u"&&e.params.store.__store?e.store=e.params.store:e.store=e.createStore(e.params.store)}enableAutoDarkMode(){const e=fe(),n=ye();if(!e.matchMedia)return;const a=this,r=n.querySelector("html");a.mq.dark&&a.mq.light&&(a.mq.dark.addEventListener("change",a.colorSchemeListener),a.mq.light.addEventListener("change",a.colorSchemeListener)),a.mq.dark&&a.mq.dark.matches?(r.classList.add("dark"),a.darkMode=!0,a.emit("darkModeChange",!0)):a.mq.light&&a.mq.light.matches&&(r.classList.remove("dark"),a.darkMode=!1,a.emit("darkModeChange",!1))}disableAutoDarkMode(){if(!fe().matchMedia)return;const n=this;n.mq.dark&&n.mq.dark.removeEventListener("change",n.colorSchemeListener),n.mq.light&&n.mq.light.removeEventListener("change",n.colorSchemeListener)}setDarkMode(e){const n=this;e==="auto"?n.enableAutoDarkMode():(n.disableAutoDarkMode(),C("html")[e?"addClass":"removeClass"]("dark"),n.darkMode=e)}initAppComponent(e){const n=this;n.router.componentLoader(n.params.component,n.params.componentUrl,{componentOptions:{el:n.$el[0]}},a=>{n.$el=C(a),n.$el[0].f7=n,n.$elComponent=a.f7Component,n.el=n.$el[0],e&&e()},()=>{})}init(e){const n=this;n.setColors(),n.mount(e);const a=()=>{if(n.initialized)return;n.$el.addClass("framework7-initializing"),n.rtl&&C("html").attr("dir","rtl"),typeof n.params.darkMode>"u"?n.darkMode=C("html").hasClass("dark"):n.setDarkMode(n.params.darkMode);const r=fe();r.addEventListener("offline",()=>{n.online=!1,n.emit("offline"),n.emit("connection",!1)}),r.addEventListener("online",()=>{n.online=!0,n.emit("online"),n.emit("connection",!0)}),n.$el.addClass("framework7-root"),C("html").removeClass("ios md").addClass(n.theme),n.params.iosTranslucentBars&&n.theme==="ios"&&C("html").addClass("ios-translucent-bars"),n.params.iosTranslucentModals&&n.theme==="ios"&&C("html").addClass("ios-translucent-modals"),Tt(()=>{n.$el.removeClass("framework7-initializing")}),n.initialized=!0,n.emit("init")};return n.params.component||n.params.componentUrl?n.initAppComponent(()=>{a()}):a(),n}loadModule(){return nt.loadModule(...arguments)}loadModules(){return nt.loadModules(...arguments)}getVnodeHooks(e,n){const a=this;return!a.vnodeHooks||!a.vnodeHooks[e]?[]:a.vnodeHooks[e][n]||[]}get $(){return C}static get Dom7(){return C}static get $(){return C}static get device(){return Ie()}static get support(){return Ye()}static get Class(){return Xe}static get Events(){return ag}}nt.$jsx=S;nt.ModalMethods=un;nt.ConstructorMethods=et;nt.loadModule=wy;nt.loadModules=function(e){return Promise.all(e.map(n=>nt.loadModule(n)))};const rg={name:"device",static:{getDevice:Ie},on:{init(){const t=ye(),e=Ie(),n=[],a=t.querySelector("html"),r=t.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');a&&(e.standalone&&e.ios&&r&&r.content==="black-translucent"&&n.push("device-full-viewport"),n.push(`device-pixel-ratio-${Math.floor(e.pixelRatio)}`),e.os&&!e.desktop?n.push(`device-${e.os}`):e.desktop&&(n.push("device-desktop"),e.os&&n.push(`device-${e.os}`)),e.cordova&&n.push("device-cordova"),e.capacitor&&n.push("device-capacitor"),n.forEach(s=>{a.classList.add(s)}))}}},sg={name:"support",static:{getSupport:Ye}},ig={name:"utils",proto:{utils:Qi},static:{utils:Qi}},og={name:"resize",create(){const t=this;t.getSize=()=>{if(!t.el)return{width:0,height:0,left:0,top:0};const e=t.$el.offset(),[n,a,r,s]=[t.el.offsetWidth,t.el.offsetHeight,e.left,e.top];return t.width=n,t.height=a,t.left=r,t.top=s,{width:n,height:a,left:r,top:s}}},on:{init(){const t=this,e=fe();t.getSize(),e.addEventListener("resize",()=>{t.emit("resize")},!1),e.addEventListener("orientationchange",()=>{t.emit("orientationchange")})},orientationchange(){const t=ye();Ie().ipad&&(t.body.scrollLeft=0,setTimeout(()=>{t.body.scrollLeft=0},0))},resize(){this.getSize()}}};function yy(){const t=this,e=Ie(),n=Ye(),a=fe(),r=ye(),s=t.params.touch,i=s[`${t.theme}TouchRipple`];e.ios&&e.webView&&a.addEventListener("touchstart",()=>{});let o,l,c,d,u,p,f,h,m,b,w,g;function v(j){const Q=C(j),ae=Q.parents(s.activeStateElements);if(Q.closest(".no-active-state").length)return null;let Z;if(Q.is(s.activeStateElements)&&(Z=Q),ae.length>0&&(Z=Z?Z.add(ae):ae),Z&&Z.length>1){const te=[];let he;for(let re=0;re0}function E(){h&&h.addClass("active-state")}function k(){h&&(h.removeClass("active-state"),h=null)}function $(j){const Q=s.touchRippleElements,ae=C(j);if(ae.is(Q))return ae.hasClass("no-ripple")?!1:ae;if(ae.parents(Q).length>0){const Z=ae.parents(Q).eq(0);return Z.hasClass("no-ripple")?!1:Z}return!1}function M(j,Q,ae){j&&(b=t.touchRipple.create(t,j,Q,ae))}function x(){b&&(b.remove(),b=void 0,w=void 0)}function F(j){if(w=$(j),!w||w.length===0){w=void 0;return}y(w)?(clearTimeout(g),g=setTimeout(()=>{x(),M(w,o,l)},80)):(x(),M(w,o,l))}function T(){clearTimeout(g),x()}function I(){!b&&w&&!d?(clearTimeout(g),M(w,o,l),setTimeout(x,0)):x()}function B(j){const Q=v(j.target);Q&&(Q.addClass("active-state"),"which"in j&&j.which===3&&setTimeout(()=>{C(".active-state").removeClass("active-state")},0)),i&&(o=j.pageX,l=j.pageY,F(j.target,j.pageX,j.pageY))}function P(){s.activeStateOnMouseMove||C(".active-state").removeClass("active-state"),i&&T()}function R(){C(".active-state").removeClass("active-state"),i&&I()}function V(){c=null,clearTimeout(m),clearTimeout(p),s.activeState&&k(),i&&I()}let H,D=!1,O=null;const _=".dialog-button, .actions-button";let N=!1,G=null;function ee(j){return j.isTrusted?(d=!1,u=!1,f=!1,H=void 0,j.targetTouches.length>1?(h&&k(),!0):(j.touches.length>1&&h&&k(),s.tapHold&&(p&&clearTimeout(p),p=setTimeout(()=>{j&&j.touches&&j.touches.length>1||(u=!0,j.preventDefault(),f=!0,C(j.target).trigger("taphold",j),t.emit("taphold",j))},s.tapHoldDelay)),c=j.target,o=j.targetTouches[0].pageX,l=j.targetTouches[0].pageY,D=j.target.closest(".segmented-strong .button-active, .segmented-strong .tab-link-active"),N=t.theme==="ios"&&j.target.closest(_),D&&(O=D.closest(".segmented-strong")),s.activeState&&(h=v(c),h&&!y(h)?E():h&&(m=setTimeout(E,80))),i&&F(c),!0)):!0}function X(j){if(!j.isTrusted)return;let Q,ae,Z=!0;j.type==="touchmove"&&(Q=j.targetTouches[0],ae=s.touchClicksDistanceThreshold);const te=j.targetTouches[0].pageX,he=j.targetTouches[0].pageY;if(typeof H>"u"&&(H=!!(H||Math.abs(he-l)>Math.abs(te-o))),(N||!H&&D&&O)&&j.cancelable&&j.preventDefault(),!H&&D&&O){const de=r.elementFromPoint(j.targetTouches[0].clientX,j.targetTouches[0].clientY).closest(".segmented-strong .button:not(.button-active):not(.tab-link-active)");de&&O.contains(de)&&(C(de).trigger("click","f7Segmented"),c=de)}if(ae&&Q){const re=Q.pageX,de=Q.pageY;(Math.abs(re-o)>ae||Math.abs(de-l)>ae)&&(d=!0)}else d=!0;d&&(f=!0,N&&(G=r.elementFromPoint(j.targetTouches[0].clientX,j.targetTouches[0].clientY).closest(_),G&&h&&h[0]===G?Z=!1:G&&setTimeout(()=>{h=v(G),E()})),s.tapHold&&clearTimeout(p),s.activeState&&Z&&(clearTimeout(m),k()),i&&T())}function se(j){return j.isTrusted?(H=void 0,D=!1,O=null,N=!1,clearTimeout(m),clearTimeout(p),G&&(C(G).trigger("click","f7TouchMoveActivable"),G=null),r.activeElement===j.target?(s.activeState&&k(),i&&I(),!0):(s.activeState&&(E(),setTimeout(k,0)),i&&I(),s.tapHoldPreventClicks&&u||f?(j.cancelable&&j.preventDefault(),f=!0,!1):!0)):!0}function ne(j){const Q=j&&j.detail&&j.detail==="f7Overswipe",ae=j&&j.detail&&j.detail==="f7Segmented",Z=j&&j.detail&&j.detail==="f7TouchMoveActivable";let te=f;return c&&j.target!==c?Q||ae||Z?te=!1:te=!0:Z&&(te=!1),s.tapHold&&s.tapHoldPreventClicks&&u&&(te=!0),te&&(j.stopImmediatePropagation(),j.stopPropagation(),j.preventDefault()),s.tapHold&&(p=setTimeout(()=>{u=!1},e.ios||e.androidChrome?100:400)),f=!1,c=null,!te}function ie(j,Q){t.emit({events:j,data:[Q]})}function le(j){ie("click",j)}function me(j){ie("touchstart touchstart:active",j)}function oe(j){ie("touchmove touchmove:active",j)}function ce(j){ie("touchend touchend:active",j)}function pe(j){ie("touchstart:passive",j)}function L(j){ie("touchmove:passive",j)}function A(j){ie("touchend:passive",j)}const z=n.passiveListener?{passive:!0}:!1,q=n.passiveListener?{passive:!0,capture:!0}:!0,U=n.passiveListener?{passive:!1}:!1,K=n.passiveListener?{passive:!1,capture:!0}:!0;r.addEventListener("click",le,!0),n.passiveListener?(r.addEventListener(t.touchEvents.start,me,K),r.addEventListener(t.touchEvents.move,oe,U),r.addEventListener(t.touchEvents.end,ce,U),r.addEventListener(t.touchEvents.start,pe,q),r.addEventListener(t.touchEvents.move,L,z),r.addEventListener(t.touchEvents.end,A,z)):(r.addEventListener(t.touchEvents.start,j=>{me(j),pe(j)},!0),r.addEventListener(t.touchEvents.move,j=>{oe(j),L(j)},!1),r.addEventListener(t.touchEvents.end,j=>{ce(j),A(j)},!1)),n.touch?(t.on("click",ne),t.on("touchstart",ee),t.on("touchmove",X),t.on("touchend",se),r.addEventListener("touchcancel",V,{passive:!0})):s.activeState&&(t.on("touchstart",B),t.on("touchmove",P),t.on("touchend",R),r.addEventListener("pointercancel",R,{passive:!0})),r.addEventListener("contextmenu",j=>{s.disableContextMenu&&(e.ios||e.android||e.cordova||a.Capacitor&&a.Capacitor.isNative)&&j.preventDefault(),i&&(h&&k(),I())})}const lg={name:"touch",params:{touch:{touchClicksDistanceThreshold:5,disableContextMenu:!1,tapHold:!1,tapHoldDelay:750,tapHoldPreventClicks:!0,activeState:!0,activeStateElements:"a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,mdTouchRipple:!0,iosTouchRipple:!1,touchRippleElements:".ripple, .link, .item-link, .list label.item-content, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .list.accordion-list .accordion-item-toggle",touchRippleInsetElements:".ripple-inset, .icon-only, .searchbar-disable-button, .input-clear-button, .notification-close-button, .md .navbar .link.back"}},create(){const t=this,e=Ye();W(t,{touchEvents:{start:e.touch?"touchstart":e.pointerEvents?"pointerdown":"mousedown",move:e.touch?"touchmove":e.pointerEvents?"pointermove":"mousemove",end:e.touch?"touchend":e.pointerEvents?"pointerup":"mouseup"}})},on:{init:yy}};function Ey(t){for(var e=[],n=0;n=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){r+=t[s++];continue}break}if(!r)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:r}),n=s;continue}if(a==="("){var o=1,l="",s=n+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s)?(?!\?)/g,a=0,r=n.exec(t.source);r;)e.push({name:r[1]||a++,prefix:"",suffix:"",modifier:"",pattern:""}),r=n.exec(t.source);return t}function xy(t,e,n){var a=t.map(function(r){return dg(r,e,n).source});return new RegExp("(?:".concat(a.join("|"),")"),ri(n))}function Sy(t,e,n){return Ty(cg(t,n),e,n)}function Ty(t,e,n){n===void 0&&(n={});for(var a=n.strict,r=a===void 0?!1:a,s=n.start,i=s===void 0?!0:s,o=n.end,l=o===void 0?!0:o,c=n.encode,d=c===void 0?function(F){return F}:c,u=n.delimiter,p=u===void 0?"/#?":u,f=n.endsWith,h=f===void 0?"":f,m="[".concat(Wn(h),"]|$"),b="[".concat(Wn(p),"]"),w=i?"^":"",g=0,v=t;g-1:M===void 0;r||(w+="(?:".concat(b,"(?=").concat(m,"))?")),x||(w+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(w,ri(n))}function dg(t,e,n){return t instanceof RegExp?$y(t,e):Array.isArray(t)?xy(t,e,n):Sy(t,e,n)}const be={queue:[],clearQueue(){if(be.queue.length===0)return;be.queue.shift()()},routerQueue:[],clearRouterQueue(){if(be.routerQueue.length===0)return;const t=be.routerQueue.pop(),{router:e,stateUrl:n,action:a}=t;let r=e.params.animate;e.params.browserHistoryAnimate===!1&&(r=!1),a==="back"&&e.back({animate:r,browserHistory:!1}),a==="load"&&e.navigate(n,{animate:r,browserHistory:!1})},handle(t){if(be.blockPopstate)return;const e=this;let n=t.state;be.previousState=be.state,be.state=n,be.allowChange=!0,be.clearQueue(),n=be.state,n||(n={}),e.views.forEach(a=>{const r=a.router;let s=n[a.id];if(!s&&a.params.browserHistory&&(s={url:a.router.history[0]}),!s)return;const i=s.url||void 0;let o=r.params.animate;r.params.browserHistoryAnimate===!1&&(o=!1),i!==r.url&&(r.history.indexOf(i)>=0?r.allowPageChange?r.back({animate:o,browserHistory:!1}):be.routerQueue.push({action:"back",router:r}):r.allowPageChange?r.navigate(i,{animate:o,browserHistory:!1}):be.routerQueue.unshift({action:"load",stateUrl:i,router:r}))})},initViewState(t,e){const n=fe(),a=W({},be.state||{},{[t]:e});be.state=a,n.history.replaceState(a,"")},push(t,e,n){const a=fe(),r=ye();if(n.substr(-3)==="#!/"&&(n=n.replace("#!/",""),n===""&&(n=r.location.href,n.includes("#!/")&&(n=r.location.href.split("#!/")[0]))),!be.allowChange){be.queue.push(()=>{be.push(t,e,n)});return}be.previousState=be.state;const s=W({},be.previousState||{},{[t]:e});be.state=s,a.history.pushState(s,"",n)},replace(t,e,n){const a=fe();if(n.substr(-3)==="#!/"&&(n=n.replace("#!/","")),!be.allowChange){be.queue.push(()=>{be.replace(t,e,n)});return}be.previousState=be.state;const r=W({},be.previousState||{},{[t]:e});be.state=r,a.history.replaceState(r,"",n)},go(t){const e=fe();be.allowChange=!1,e.history.go(t)},back(){const t=fe();be.allowChange=!1,t.history.back()},allowChange:!0,previousState:{},state:{},blockPopstate:!0,init(t){const e=fe(),n=ye();be.state=e.history.state,C(e).on("load",()=>{setTimeout(()=>{be.blockPopstate=!1},0)}),n.readyState&&n.readyState==="complete"&&(be.blockPopstate=!1),C(e).on("popstate",be.handle.bind(t))}};function Py(t){const e=t,{$el:n,$navbarsEl:a,app:r,params:s}=e,i=Ye(),o=Ie();let l=!1,c=!1;const d={};let u,p=[],f=[],h,m,b=!0,w,g=[],v=[],y,E,k,$;const M=s[`${r.theme}SwipeBackAnimateShadow`],x=s[`${r.theme}SwipeBackAnimateOpacity`],F=s[`${r.theme}SwipeBackActiveArea`],T=s[`${r.theme}SwipeBackThreshold`],I=r.rtl?"right center":"left center",B=r.rtl?"calc(100% - var(--f7-navbar-large-title-padding-left) - var(--f7-safe-area-left)) center":"calc(var(--f7-navbar-large-title-padding-left) + var(--f7-safe-area-left)) center";function P(){const N=[],G=r.rtl?-1:1,ee=g.hasClass("navbar-transparent")&&!g.hasClass("navbar-large")&&!g.hasClass("navbar-transparent-visible"),X=g.hasClass("navbar-large"),se=g.hasClass("navbar-large-collapsed"),ne=g.hasClass("navbar-large-transparent")||g.hasClass("navbar-large")&&g.hasClass("navbar-transparent"),ie=v.hasClass("navbar-transparent")&&!v.hasClass("navbar-large")&&!v.hasClass("navbar-transparent-visible"),le=v.hasClass("navbar-large"),me=v.hasClass("navbar-large-collapsed"),oe=v.hasClass("navbar-large-transparent")||v.hasClass("navbar-large")&&v.hasClass("navbar-transparent"),ce=X&&!se,pe=le&&!me,L=g.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg"),A=v.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg");let z,q;return s.iosAnimateNavbarBackIcon&&(g.hasClass("sliding")||g.find(".navbar-inner.sliding").length?z=g.find(".left").find(".back .icon + span").eq(0):z=g.find(".left.sliding").find(".back .icon + span").eq(0),v.hasClass("sliding")||v.find(".navbar-inner.sliding").length?q=v.find(".left").find(".back .icon + span").eq(0):q=v.find(".left.sliding").find(".back .icon + span").eq(0),z.length&&A.each(U=>{C(U).hasClass("title")&&(U.f7NavbarLeftOffset+=z.prev(".icon")[0].offsetWidth)})),L.each(U=>{const K=C(U),j=K.hasClass("subnavbar"),Q=K.hasClass("left"),ae=K.hasClass("title"),Z=K.hasClass("navbar-bg");if((ae||Z)&&ee||!ce&&K.hasClass(".title-large"))return;const te={el:U};if(ce){if(ae)return;if(K.hasClass("title-large")){N.indexOf(te)<0&&N.push(te),te.overflow="visible",K.find(".title-large-text").each(re=>{N.push({el:re,transform:de=>`translateX(${de*100*G}%)`})});return}}if(pe&&(ce||K.hasClass("title-large")&&(N.indexOf(te)<0&&N.push(te),te.opacity=0),Q)){N.indexOf(te)<0&&N.push(te),te.opacity=re=>1-re**.33,K.find(".back span").each(re=>{N.push({el:re,"transform-origin":I,transform:de=>`translateX(calc(${de} * (var(--f7-navbarTitleLargeOffset) - var(--f7-navbarLeftTextOffset)))) translateY(calc(${de} * (var(--f7-navbar-large-title-height) - var(--f7-navbar-large-title-padding-vertical) / 2))) scale(${1+1*de})`})});return}if(Z){N.indexOf(te)<0&&N.push(te),!ce&&!pe&&(se?(ne&&(te.className="ios-swipeback-navbar-bg-large"),te.transform=re=>`translateX(${100*re*G}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):te.transform=re=>`translateX(${100*re*G}%)`),!ce&&pe&&(te.className="ios-swipeback-navbar-bg-large",te.transform=re=>`translateX(${100*re*G}%) translateY(calc(-1 * ${1-re} * var(--f7-navbar-large-title-height)))`),ce&&pe&&(te.transform=re=>`translateX(${100*re*G}%)`),ce&&!pe&&(te.transform=re=>`translateX(${100*re*G}%) translateY(calc(-${re} * var(--f7-navbar-large-title-height)))`);return}if(K.hasClass("title-large"))return;const he=K.hasClass("sliding")||K.parents(".navbar-inner.sliding").length;if(N.indexOf(te)<0&&N.push(te),(!j||j&&!he)&&(te.opacity=re=>1-re**.33),he){let re=te;if(Q&&z.length&&s.iosAnimateNavbarBackIcon){const de={el:z[0]};re=de,N.push(de)}re.transform=de=>{let Ee=de*re.el.f7NavbarRightOffset;return o.pixelRatio===1&&(Ee=Math.round(Ee)),j&&X?`translate3d(${Ee}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${Ee}px,0,0)`}}}),A.each(U=>{const K=C(U),j=K.hasClass("subnavbar"),Q=K.hasClass("left"),ae=K.hasClass("title"),Z=K.hasClass("navbar-bg");if((ae||Z)&&ie)return;const te={el:U};if(pe){if(ae)return;if(N.indexOf(te)<0&&N.push(te),K.hasClass("title-large")){te.opacity=1,te.overflow="visible",K.find(".title-large-text").each(re=>{N.push({el:re,"transform-origin":B,opacity:de=>de**3,transform:de=>`translateX(calc(${1-de} * (var(--f7-navbarLeftTextOffset) - var(--f7-navbarTitleLargeOffset)))) translateY(calc(${de-1} * var(--f7-navbar-large-title-height) + ${1-de} * var(--f7-navbar-large-title-padding-vertical))) scale(${.5+de*.5})`})});return}}if(Z){N.indexOf(te)<0&&N.push(te),!ce&&!pe&&(me?(oe&&(te.className="ios-swipeback-navbar-bg-large"),te.transform=re=>`translateX(${(-100+100*re)*G}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):te.transform=re=>`translateX(${(-100+100*re)*G}%)`),!ce&&pe&&(te.transform=re=>`translateX(${(-100+100*re)*G}%) translateY(calc(-1 * ${1-re} * var(--f7-navbar-large-title-height)))`),ce&&!pe&&(te.className="ios-swipeback-navbar-bg-large",te.transform=re=>`translateX(${(-100+100*re)*G}%) translateY(calc(-${re} * var(--f7-navbar-large-title-height)))`),ce&&pe&&(te.transform=re=>`translateX(${(-100+100*re)*G}%)`);return}if(K.hasClass("title-large"))return;const he=K.hasClass("sliding")||v.children(".navbar-inner.sliding").length;if(N.indexOf(te)<0&&N.push(te),(!j||j&&!he)&&(te.opacity=re=>re**3),he){let re=te;if(Q&&q.length&&s.iosAnimateNavbarBackIcon){const de={el:q[0]};re=de,N.push(de)}re.transform=de=>{let Ee=re.el.f7NavbarLeftOffset*(1-de);return o.pixelRatio===1&&(Ee=Math.round(Ee)),j&&le?`translate3d(${Ee}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${Ee}px,0,0)`}}}),N}function R(N){let{progress:G,reset:ee,transition:X,reflow:se}=N===void 0?{}:N;const ne=["overflow","transform","transform-origin","opacity"];if(X===!0||X===!1)for(let ie=0;ie<$.length;ie+=1){const le=$[ie];le&&le.el&&(X===!0&&le.el.classList.add("navbar-page-transitioning"),X===!1&&le.el.classList.remove("navbar-page-transitioning"))}se&&$.length&&$[0]&&$[0].el&&($[0].el._clientLeft=$[0].el.clientLeft);for(let ie=0;ie<$.length;ie+=1){const le=$[ie];if(le&&le.el){le.className&&!le.classNameSet&&!ee&&(le.el.classList.add(le.className),le.classNameSet=!0),le.className&&ee&&le.el.classList.remove(le.className);for(let me=0;me0||C(N.target).closest(".page-master, .page-master-detail").length>0&&s.masterDetailBreakpoint>0&&r.width>=s.masterDetailBreakpoint||(c=!1,l=!0,u=void 0,d.x=N.type==="touchstart"?N.targetTouches[0].pageX:N.pageX,d.y=N.type==="touchstart"?N.targetTouches[0].pageY:N.pageY,w=Bt(),y=e.dynamicNavbar)}function H(N){if(!N.isTrusted||!l)return;const G=N.type==="touchmove"?N.targetTouches[0].pageX:N.pageX,ee=N.type==="touchmove"?N.targetTouches[0].pageY:N.pageY;if(typeof u>"u"&&(u=!!(u||Math.abs(ee-d.y)>Math.abs(G-d.x))||Gd.x&&r.rtl),u||N.f7PreventSwipeBack||r.preventSwipeBack){l=!1;return}if(!c){let me=!1;const oe=C(N.target),ce=oe.closest(".swipeout");ce.length>0&&(!r.rtl&&ce.find(".swipeout-actions-left").length>0&&(me=!0),r.rtl&&ce.find(".swipeout-actions-right").length>0&&(me=!0)),p=oe.closest(".page"),(p.hasClass("no-swipeback")||oe.closest(".no-swipeback, .card-opened").length>0)&&(me=!0),f=n.find(".page-previous"),f.length>1&&(f=f.eq(f.length-1));let pe=d.x-n.offset().left>F;if(h=n.width(),r.rtl?pe=d.xF,pe&&(me=!0),(f.length===0||p.length===0)&&(me=!0),me){l=!1;return}M&&(E=p.find(".page-shadow-effect"),E.length===0&&(E=C('
'),p.append(E))),x&&(k=f.find(".page-opacity-effect"),k.length===0&&(k=C('
'),f.append(k))),y&&(g=a.find(".navbar-current"),v=a.find(".navbar-previous"),v.length>1&&(v=v.eq(v.length-1)),$=P()),C(".sheet.modal-in").length>0&&r.sheet&&r.sheet.close(C(".sheet.modal-in"))}N.f7PreventSwipePanel=!0,c=!0,r.preventSwipePanelBySwipeBack=!0,N.preventDefault();const X=r.rtl?-1:1;m=(G-d.x-T)*X,m<0&&(m=0);const se=Math.min(Math.max(m/h,0),1),ne={percentage:se,progress:se,currentPageEl:p[0],previousPageEl:f[0],currentNavbarEl:g[0],previousNavbarEl:v[0]};n.trigger("swipeback:move",ne),e.emit("swipebackMove",ne);let ie=m*X,le=(m/5-h/5)*X;r.rtl?(ie=Math.max(ie,-h),le=Math.max(le,0)):(ie=Math.min(ie,h),le=Math.min(le,0)),o.pixelRatio===1&&(ie=Math.round(ie),le=Math.round(le)),e.swipeBackActive=!0,C([p[0],f[0]]).addClass("page-swipeback-active"),p.transform(`translate3d(${ie}px,0,0)`),M&&(E[0].style.opacity=1-1*se),r.theme==="ios"&&f.transform(`translate3d(${le}px,0,0)`),x&&(k[0].style.opacity=1-1*se),y&&R({progress:se})}function D(N){if(!N.isTrusted)return;if(r.preventSwipePanelBySwipeBack=!1,!l||!c){l=!1,c=!1;return}l=!1,c=!1,e.swipeBackActive=!1;const G=C([p[0],f[0]]);if(G.removeClass("page-swipeback-active"),m===0){G.transform(""),E&&E.length>0&&E.remove(),k&&k.length>0&&k.remove(),y&&R({reset:!0});return}const ee=Bt()-w;let X=!1;(ee<300&&m>10||ee>=300&&m>h/2)&&(p.removeClass("page-current").addClass(`page-next${r.theme!=="ios"?" page-next-on-right":""}`),f.removeClass("page-previous").addClass("page-current").removeAttr("aria-hidden"),E&&(E[0].style.opacity=""),k&&(k[0].style.opacity=""),y&&(e.setNavbarPosition(g,"next"),e.setNavbarPosition(v,"current",!1)),X=!0),G.addClass("page-transitioning page-transitioning-swipeback"),o.ios&&(p[0]._clientLeft=p[0].clientLeft),G.transform(""),y&&R({progress:X?1:0,transition:!0,reflow:!!o.ios}),b=!1,e.allowPageChange=!1;const se={currentPageEl:p[0],previousPageEl:f[0],currentNavbarEl:g[0],previousNavbarEl:v[0]};X?(e.currentRoute=f[0].f7Page.route,e.currentPage=f[0],e.pageCallback("beforeOut",p,g,"current","next",{route:p[0].f7Page.route,swipeBack:!0}),e.pageCallback("beforeIn",f,v,"previous","current",{route:f[0].f7Page.route,swipeBack:!0},p[0]),n.trigger("swipeback:beforechange",se),e.emit("swipebackBeforeChange",se)):(n.trigger("swipeback:beforereset",se),e.emit("swipebackBeforeReset",se)),p.transitionEnd(()=>{G.removeClass("page-transitioning page-transitioning-swipeback"),y&&R({reset:!0,transition:!1}),b=!0,e.allowPageChange=!0,X?(e.history.length===1&&e.history.unshift(e.url),e.history.pop(),e.saveHistory(),s.browserHistory&&be.back(),e.pageCallback("afterOut",p,g,"current","next",{route:p[0].f7Page.route,swipeBack:!0}),e.pageCallback("afterIn",f,v,"previous","current",{route:f[0].f7Page.route,swipeBack:!0}),e.pageCallback("beforeRemove",p,g,"next",{swipeBack:!0}),e.removePage(p),y&&e.removeNavbar(g),n.trigger("swipeback:afterchange",se),e.emit("swipebackAfterChange",se),e.emit("routeChanged",e.currentRoute,e.previousRoute,e),s.preloadPreviousPage&&e.back(e.history[e.history.length-2],{preload:!0})):(n.trigger("swipeback:afterreset",se),e.emit("swipebackAfterReset",se)),E&&E.length>0&&E.remove(),k&&k.length>0&&k.remove()})}function O(){const N=r.touchEvents.start==="touchstart"&&i.passiveListener?{passive:!0,capture:!1}:!1;n.on(r.touchEvents.start,V,N),r.on("touchmove:active",H),r.on("touchend:passive",D)}function _(){const N=r.touchEvents.start==="touchstart"&&i.passiveListener?{passive:!0,capture:!1}:!1;n.off(r.touchEvents.start,V,N),r.off("touchmove:active",H),r.off("touchend:passive",D)}O(),e.on("routerDestroy",_)}function ug(t,e,n){const a=this,r=e.route.redirect,s=t==="forward"?"navigate":"back";n.initial&&a.params.browserHistory&&(n.replaceState=!0,n.history=!0);function i(l,c){c===void 0&&(c={}),a.allowPageChange=!0,a[s](l,W({},n,c))}function o(){a.allowPageChange=!0}if(typeof r=="function"){a.allowPageChange=!1;const l=r.call(a,{router:a,to:e,resolve:i,reject:o,direction:t,app:a.app});return l&&typeof l=="string"?(a.allowPageChange=!0,a[s](l,n)):a}return a[s](r,n)}function Zi(t,e,n,a,r,s,i,o){const l=[];Array.isArray(n)?l.push(...n):n&&typeof n=="function"&&l.push(n),e&&(Array.isArray(e)?l.push(...e):l.push(e));function c(){if(l.length===0){s();return}l.shift().call(t,{router:t,to:a,from:r,resolve(){c()},reject(){i()},direction:o,app:t.app})}c()}function $s(t,e,n,a,r){const s=this;function i(){t&&t.route&&(s.params.routesBeforeEnter||t.route.beforeEnter)?(s.allowPageChange=!1,Zi(s,s.params.routesBeforeEnter,t.route.beforeEnter,t,e,()=>{s.allowPageChange=!0,n()},()=>{a()},r)):n()}function o(){e&&e.route&&(s.params.routesBeforeLeave||e.route.beforeLeave)?(s.allowPageChange=!1,Zi(s,s.params.routesBeforeLeave,e.route.beforeLeave,t,e,()=>{s.allowPageChange=!0,i()},()=>{a()},r)):i()}o()}function la(t,e){if(!t.view)throw new Error(`Framework7: it is not allowed to use router methods on global app router. Use router methods only on related View, e.g. app.views.main.router.${e}(...)`)}function Br(t,e,n,a){function r(i){i.then(o=>{n({component:o.default||o._default||o})}).catch(o=>{throw a(),new Error(o,{cause:o})})}if(e instanceof Promise){r(e);return}const s=e.call(t);s instanceof Promise?r(s):n({component:s})}function My(t){t===void 0&&(t={});const e=this;return la(e,"refreshPage"),e.navigate(e.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0,props:t})}function pa(t,e,n){n===void 0&&(n={});const a=ye(),r=C(e),s=t.app,i=t.view,o=W(!1,{animate:t.params.animate,browserHistory:!0,replaceState:!1,history:!0,reloadCurrent:t.params.reloadPages,reloadPrevious:!1,reloadAll:!1,clearPreviousHistory:!1,reloadDetail:t.params.reloadDetail,on:{}},n),l=t.params.masterDetailBreakpoint>0,c=l&&o.route&&o.route.route&&(o.route.route.master===!0||typeof o.route.route.master=="function"&&o.route.route.master(s,t));let d,u,p=0,f=t.currentRoute.modal,h;if(f||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(D=>{t.currentRoute&&t.currentRoute.route&&t.currentRoute.route[D]&&(f=!0,h=D)}),f){const D=t.currentRoute.modal||t.currentRoute.route.modalInstance||s[h].get(),O=t.history[t.history.length-2];let _=t.findMatchingRoute(O);!_&&O&&(_={url:O,path:O.split("?")[0],query:La(O),route:{path:O.split("?")[0],url:O}}),t.modalRemove(D)}const m=t.dynamicNavbar,b=t.$el,w=r,g=o.reloadPrevious||o.reloadCurrent||o.reloadAll;let v,y,E,k;if(t.allowPageChange=!1,w.length===0)return t.allowPageChange=!0,t;w.length&&t.removeThemeElements(w),m&&(E=w.children(".navbar"),y=t.$navbarsEl,E.length===0&&w[0]&&w[0].f7Page&&(E=w[0].f7Page.$navbarEl)),o.route&&o.route.route&&o.route.route.keepAlive&&!o.route.route.keepAliveData&&(o.route.route.keepAliveData={pageEl:r[0]});const $=b.children(".page").filter(D=>D!==w[0]);let M;if(m&&(M=y.children(".navbar").filter(D=>D!==E[0])),o.reloadPrevious&&$.length<2)return t.allowPageChange=!0,t;let x,F,T;if(l&&!o.reloadAll){for(let D=0;D<$.length;D+=1)if(!d&&$[D].classList.contains("page-master")){d=$[D];continue}if(x=!c&&d,x&&d){for(let D=0;D<$.length;D+=1)if($[D].classList.contains("page-master-detail")){u=$[D];continue}}F=x&&o.reloadDetail&&s.width>=t.params.masterDetailBreakpoint&&d}x&&(T=!u||F||o.reloadAll||o.reloadCurrent);let I="next";if(o.reloadCurrent||o.reloadAll||F?I="current":o.reloadPrevious&&(I="previous"),w.removeClass("page-previous page-current page-next").addClass(`page-${I}${c?" page-master":""}${x?" page-master-detail":""}${T?" page-master-detail-root":""}`).trigger("page:unstack").trigger("page:position",{position:I}),t.emit("pageUnstack",w[0]),t.emit("pagePosition",w[0],I),(c||x)&&(w.trigger("page:role",{role:c?"master":"detail",root:!!T}),t.emit("pageRole",w[0],{role:c?"master":"detail",detailRoot:!!T})),m&&E.length&&(E.removeClass("navbar-previous navbar-current navbar-next").addClass(`navbar-${I}${c?" navbar-master":""}${x?" navbar-master-detail":""}${T?" navbar-master-detail-root":""}`),E.trigger("navbar:position",{position:I}),t.emit("navbarPosition",E[0],I),(c||x)&&t.emit("navbarRole",E[0],{role:c?"master":"detail",detailRoot:!!T})),o.reloadCurrent||F)F?(v=$.filter(D=>!D.classList.contains("page-master")),m&&(k=C(v.map(D=>s.navbar.getElByPage(D)))),v.length>1&&d&&(p=v.length-1,C(d).removeClass("page-master-stacked").trigger("page:masterunstack"),t.emit("pageMasterUnstack",d),m&&(C(s.navbar.getElByPage(d)).removeClass("navbar-master-stacked"),t.emit("navbarMasterUnstack",s.navbar.getElByPage(d))))):(v=$.eq($.length-1),m&&(k=C(s.navbar.getElByPage(v))));else if(o.reloadPrevious)v=$.eq($.length-2),m&&(k=C(s.navbar.getElByPage(v)));else if(o.reloadAll)v=$.filter(D=>D!==w[0]),m&&(k=M.filter(D=>D!==E[0]));else{let D=[],O=[];if($.length>1){let _=0;for(_=0;_<$.length-1;_+=1){if(d&&$[_]===d){$.eq(_).addClass("page-master-stacked"),$.eq(_).trigger("page:masterstack"),t.emit("pageMasterStack",$[_]),m&&(C(s.navbar.getElByPage(d)).addClass("navbar-master-stacked"),t.emit("navbarMasterStack",s.navbar.getElByPage(d)));continue}const N=s.navbar.getElByPage($.eq(_));D.push($[_]),t.pageCallback("beforeRemove",$[_],M&&M[_],"previous",void 0,o),t.removePage($[_]),m&&N&&(O.push(N),t.removeNavbar(N))}}v=b.children(".page").filter(_=>_!==w[0]&&D.indexOf(_)<0),m&&(k=y.children(".navbar").filter(_=>_!==E[0]&&O.indexOf(O)<0)),D=[],O=[]}if(x&&!o.reloadAll&&((v.length>1||F)&&(v=v.filter(D=>!D.classList.contains("page-master"))),k&&(k.length>1||F)&&(k=k.filter(D=>!D.classList.contains("navbar-master")))),t.params.browserHistory&&(o.browserHistory||o.replaceState)&&!o.reloadPrevious){const D=t.params.browserHistoryRoot||"";be[o.reloadCurrent||F&&u||o.reloadAll||o.replaceState?"replace":"push"](i.id,{url:o.route.url},D+t.params.browserHistorySeparator+o.route.url)}o.reloadPrevious||(t.currentPageEl=w[0],m&&E.length?t.currentNavbarEl=E[0]:delete t.currentNavbarEl,t.currentRoute=o.route);const B=o.route.url;o.history&&(((o.reloadCurrent||F&&u)&&t.history.length)>0||o.replaceState?(F&&p>0&&(t.history=t.history.slice(0,t.history.length-p),t.propsHistory=t.propsHistory.slice(0,t.propsHistory.length-p)),t.history[t.history.length-(o.reloadPrevious?2:1)]=B,t.propsHistory[t.propsHistory.length-(o.reloadPrevious?2:1)]=o.props||{}):o.reloadPrevious?(t.history[t.history.length-2]=B,t.propsHistory[t.propsHistory.length-2]=o.props||{}):o.reloadAll?(t.history=[B],t.propsHistory=[o.props||{}]):(t.history.push(B),t.propsHistory.push(o.props||{}))),t.saveHistory();const P=w.parents(a).length>0,R=w[0].f7Component;if(o.reloadPrevious?(R&&!P?R.mount(D=>{C(D).insertBefore(v)}):w.insertBefore(v),m&&E.length&&(E.find(".title-large").length&&E.addClass("navbar-large"),k.length?E.insertBefore(k):(t.$navbarsEl.parents(a).length||t.$el.prepend(t.$navbarsEl),y.append(E)))):(v.next(".page")[0]!==w[0]&&(R&&!P?R.mount(D=>{b.append(D)}):b.append(w[0])),m&&E.length&&(E.find(".title-large").length&&E.addClass("navbar-large"),t.$navbarsEl.parents(a).length||t.$el.prepend(t.$navbarsEl),y.append(E[0]))),P?o.route&&o.route.route&&o.route.route.keepAlive&&!w[0].f7PageMounted&&(w[0].f7PageMounted=!0,t.pageCallback("mounted",w,E,I,g?I:"current",o,v)):t.pageCallback("mounted",w,E,I,g?I:"current",o,v),(o.reloadCurrent||F)&&v.length>0?(t.pageCallback("beforeOut",v,k,"current",void 0,o),t.pageCallback("afterOut",v,k,"current",void 0,o),t.pageCallback("beforeRemove",v,k,"current",void 0,o),t.removePage(v),m&&k&&k.length&&t.removeNavbar(k)):o.reloadAll?v.each((D,O)=>{const _=C(D),N=C(s.navbar.getElByPage(_));_.hasClass("page-current")&&(t.pageCallback("beforeOut",v,k,"current",void 0,o),t.pageCallback("afterOut",v,k,"current",void 0,o)),t.pageCallback("beforeRemove",_,k&&k.eq(O),"previous",void 0,o),t.removePage(_),m&&N.length&&t.removeNavbar(N)}):o.reloadPrevious&&(t.pageCallback("beforeRemove",v,k,"previous",void 0,o),t.removePage(v),m&&k&&k.length&&t.removeNavbar(k)),o.route.route.tab&&t.tabLoad(o.route.route.tab,W({},o,{history:!1,browserHistory:!1})),l&&i.checkMasterDetailBreakpoint(),t.pageCallback("init",w,E,I,g?I:"current",o,v),o.reloadCurrent||o.reloadAll||F)return t.allowPageChange=!0,t.pageCallback("beforeIn",w,E,I,"current",o),w.removeAttr("aria-hidden"),m&&E&&E.removeAttr("aria-hidden"),t.pageCallback("afterIn",w,E,I,"current",o),o.reloadCurrent&&o.clearPreviousHistory&&t.clearPreviousHistory(),F&&(t.setPagePosition(C(d),"previous"),d.f7Page&&d.f7Page.navbarEl&&t.setNavbarPosition(C(d.f7Page.navbarEl),"previous")),t;if(o.reloadPrevious)return t.allowPageChange=!0,t;t.pageCallback("beforeOut",v,k,"current","previous",o),t.pageCallback("beforeIn",w,E,"next","current",o);function V(){t.setPagePosition(w,"current",!1),t.setPagePosition(v,"previous",!v.hasClass("page-master")),m&&(t.setNavbarPosition(E,"current",!1),t.setNavbarPosition(k,"previous",!k.hasClass("navbar-master"))),t.allowPageChange=!0,t.pageCallback("afterOut",v,k,"current","previous",o),t.pageCallback("afterIn",w,E,"next","current",o);let D=(t.params.preloadPreviousPage||t.params[`${s.theme}SwipeBack`])&&!c;D||(w.hasClass("smart-select-page")||w.hasClass("photo-browser-page")||w.hasClass("autocomplete-page")||w.hasClass("color-picker-page"))&&(D=!0),D||w.attr("data-name")&&w.attr("data-name")==="smart-select-page"||(t.pageCallback("beforeRemove",v,k,"previous",void 0,o),t.removePage(v),m&&k.length&&t.removeNavbar(k)),o.clearPreviousHistory&&t.clearPreviousHistory(),t.emit("routeChanged",t.currentRoute,t.previousRoute,t),t.params.browserHistory&&be.clearRouterQueue()}function H(){t.setPagePosition(v,"current",!1),t.setPagePosition(w,"next",!1),m&&(t.setNavbarPosition(k,"current",!1),t.setNavbarPosition(E,"next",!1))}if(o.animate&&!(c&&s.width>=t.params.masterDetailBreakpoint)){const D=t.params[`${t.app.theme}PageLoadDelay`];let O=t.params.transition;o.transition&&(O=o.transition),!O&&t.currentRoute&&t.currentRoute.route&&(O=t.currentRoute.route.transition),!O&&t.currentRoute&&t.currentRoute.route.options&&(O=t.currentRoute.route.options.transition),O&&(w[0].f7PageTransition=O),D?setTimeout(()=>{H(),t.animate(v,w,k,E,"forward",O,()=>{V()})},D):(H(),t.animate(v,w,k,E,"forward",O,()=>{V()}))}else V();return t}function Gr(t,e,n,a){if(e===void 0&&(e={}),n===void 0&&(n={}),!t.allowPageChange&&!a)return t;const r=e,s=n,{url:i,content:o,el:l,pageName:c,component:d,componentUrl:u}=r;if(!s.reloadCurrent&&s.route&&s.route.route&&s.route.route.parentPath&&t.currentRoute.route&&t.currentRoute.route.parentPath===s.route.route.parentPath){if(s.route.url===t.url)return t.allowPageChange=!0,!1;let h=Object.keys(s.route.params).length===Object.keys(t.currentRoute.params).length;if(h&&Object.keys(s.route.params).forEach(m=>{(!(m in t.currentRoute.params)||t.currentRoute.params[m]!==s.route.params[m])&&(h=!1)}),h)return s.route.route.tab?t.tabLoad(s.route.route.tab,s):!1;if(!h&&s.route.route.tab&&t.currentRoute.route.tab&&t.currentRoute.parentPath===s.route.parentPath)return t.tabLoad(s.route.route.tab,s)}if(s.route&&s.route.url&&t.url===s.route.url&&!(s.reloadCurrent||s.reloadPrevious)&&!t.params.allowDuplicateUrls)return t.allowPageChange=!0,!1;!s.route&&i&&(s.route=t.parseRouteUrl(i),W(s.route,{route:{url:i,path:i}}));function p(h,m){return pa(t,h,W(s,m))}function f(){return t.allowPageChange=!0,t}if((i||u||d)&&(t.allowPageChange=!1),o)pa(t,t.getPageEl(o),s);else if(l)pa(t,t.getPageEl(l),s);else if(c)pa(t,t.$el.children(`.page[data-name="${c}"]`).eq(0),s);else if(d||u)try{t.pageComponentLoader({routerEl:t.el,component:d,componentUrl:u,options:s,resolve:p,reject:f})}catch(h){throw t.allowPageChange=!0,h}else i&&(t.xhrAbortController&&(t.xhrAbortController.abort(),t.xhrAbortController=!1),t.xhrRequest(i,s).then(h=>{pa(t,t.getPageEl(h),s)}).catch(()=>{t.allowPageChange=!0}));return t}function By(t,e){e===void 0&&(e={});const n=this;if(n.swipeBackActive)return n;let a,r,s,i,o,l,c;if(typeof t=="string"?a=t:(a=t.url,r=t.route,s=t.name,i=t.path,o=t.query,l=t.params),s||i)return a=n.generateUrl({path:i,name:s,params:l,query:o}),a?n.navigate(a,e):n;const d=n.app;if(la(n,"navigate"),a==="#"||a==="")return n;let u=a.replace("./","");if(u[0]!=="/"&&u.indexOf("#")!==0){const m=n.currentRoute.parentPath||n.currentRoute.path;u=((m?`${m}/`:"/")+u).replace("///","/").replace("//","/")}if(r?c=W(n.parseRouteUrl(u),{route:W({},r)}):c=n.findMatchingRoute(u),!c)return n;if(c.route&&c.route.viewName){const m=c.route.viewName,b=d.views[m];if(!b)throw new Error(`Framework7: There is no View with "${m}" name that was specified in this route`);if(b!==n.view)return b.router.navigate(t,e)}if(c.route.redirect)return ug.call(n,"forward",c,e);const p={};if(c.route.options?W(p,c.route.options,e):W(p,e),p.openIn&&(!n.params.ignoreOpenIn||n.params.ignoreOpenIn&&n.history.length>0))return n.openIn(n,u,p);p.route=c;function f(){let m=!1;if("popup popover sheet loginScreen actions customModal panel".split(" ").forEach(g=>{c.route[g]&&!m&&(m=!0,n.modalLoad(g,c,p,"forward"))}),c.route.keepAlive&&c.route.keepAliveData&&(Gr(n,{el:c.route.keepAliveData.pageEl},p,!1),m=!0),"url content component pageName el componentUrl".split(" ").forEach(g=>{c.route[g]&&!m&&(m=!0,Gr(n,{[g]:c.route[g]},p,!1))}),m)return;function b(g,v){n.allowPageChange=!1;let y=!1;"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(E=>{if(g[E]){y=!0;const k=W({},c,{route:g});n.allowPageChange=!0,n.modalLoad(E,k,W(p,v),"forward")}}),!y&&Gr(n,g,W(p,v),!0)}function w(){n.allowPageChange=!0}c.route.async&&(n.allowPageChange=!1,c.route.async.call(n,{router:n,to:p.route,from:n.currentRoute,resolve:b,reject:w,direction:"forward",app:d})),c.route.asyncComponent&&Br(n,c.route.asyncComponent,b,w)}function h(){n.allowPageChange=!0}if(n.params.masterDetailBreakpoint>0&&c.route.masterRoute){let m=!0,b=!1;if(n.currentRoute&&n.currentRoute.route&&((n.currentRoute.route.master===!0||typeof n.currentRoute.route.master=="function"&&n.currentRoute.route.master(d,n))&&(n.currentRoute.route===c.route.masterRoute||n.currentRoute.route.path===c.route.masterRoute.path)&&(m=!1),n.currentRoute.route.masterRoute&&(n.currentRoute.route.masterRoute===c.route.masterRoute||n.currentRoute.route.masterRoute.path===c.route.masterRoute.path)&&(m=!1,b=!0)),m||b&&e.reloadAll)return n.navigate({path:c.route.masterRoute.path,params:c.params||{}},{animate:!1,reloadAll:e.reloadAll,reloadCurrent:e.reloadCurrent,reloadPrevious:e.reloadPrevious,browserHistory:!e.initial,history:!e.initial,once:{pageAfterIn(){n.navigate(t,W({},e,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!e.initial,browserHistory:!e.initial}))}}}),n}return $s.call(n,c,n.currentRoute,()=>{c.route.modules?d.loadModules(Array.isArray(c.route.modules)?c.route.modules:[c.route.modules]).then(()=>{f()}).catch(()=>{h()}):f()},()=>{h()},"forward"),n}function Iy(t,e){e===void 0&&(e={});const n=this,a=W({animate:n.params.animate,browserHistory:!0,history:!0,parentPageEl:null,preload:!1,on:{}},e);let r,s;a.route&&(!a.preload&&a.route!==n.currentRoute&&(s=n.previousRoute,n.currentRoute=a.route),a.preload?(r=a.route,s=n.currentRoute):(r=n.currentRoute,s||(s=n.previousRoute)),n.params.browserHistory&&a.browserHistory&&!a.reloadPrevious&&be[n.params.browserHistoryTabs](n.view.id,{url:a.route.url},(n.params.browserHistoryRoot||"")+n.params.browserHistorySeparator+a.route.url),a.history&&(n.history[Math.max(n.history.length-1,0)]=a.route.url,n.saveHistory()));const i=C(a.parentPageEl||n.currentPageEl);let o;i.length&&i.find(`#${t.id}`).length?o=i.find(`#${t.id}`).eq(0):n.view.selector?o=`${n.view.selector} #${t.id}`:o=`#${t.id}`;const l=n.app.tab.show({tabEl:o,animate:a.animate,tabRoute:a.route}),{$newTabEl:c,$oldTabEl:d,animated:u,onTabsChanged:p}=l;if(c&&c.parents(".page").length>0&&a.route){const g=c.parents(".page")[0].f7Page;g&&a.route&&(g.route=a.route)}function f(g){n.removeThemeElements(c);let v=c;typeof g!="string"&&(v=C(g)),v.trigger("tab:init tab:mounted",t),n.emit("tabInit tabMounted",c[0],t),d&&d.length&&(u?p(()=>{n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(d,c,t)}):(n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(d,c,t)))}if(c[0].f7RouterTabLoaded)return!d||!d.length||(u?p(()=>{n.emit("routeChanged",n.currentRoute,n.previousRoute,n)}):n.emit("routeChanged",n.currentRoute,n.previousRoute,n)),n;function h(g,v){const{url:y,content:E,el:k,component:$,componentUrl:M}=g;function x(T){n.allowPageChange=!0,T&&(typeof T=="string"?c.html(T):(c.html(""),T.f7Component?T.f7Component.mount(I=>{c.append(I)}):c.append(T)),c[0].f7RouterTabLoaded=!0,f(T))}function F(){return n.allowPageChange=!0,n}if(E)x(E);else if(k)x(k);else if($||M)try{n.tabComponentLoader({tabEl:c[0],component:$,componentUrl:M,options:v,resolve:x,reject:F})}catch(T){throw n.allowPageChange=!0,T}else y&&(n.xhrAbortController&&(n.xhrAbortController.abort(),n.xhrAbortController=!1),n.xhrRequest(y,v).then(T=>{x(T)}).catch(()=>{n.allowPageChange=!0}))}let m;"url content component el componentUrl".split(" ").forEach(g=>{t[g]&&(m=!0,h({[g]:t[g]},a))});function b(g,v){h(g,W(a,v))}function w(){n.allowPageChange=!0}return t.async?t.async.call(n,{router:n,to:r,from:s,resolve:b,reject:w,app:n.app}):t.asyncComponent?Br(n,t.asyncComponent,b,w):m||(n.allowPageChange=!0),n}function Oy(t,e,n){const a=this;let r;t[0]&&(t[0].f7RouterTabLoaded=!1,delete t[0].f7RouterTabLoaded),t.children().each(s=>{s.f7Component&&(r=!0,C(s).trigger("tab:beforeremove",n),s.f7Component.destroy())}),r||t.trigger("tab:beforeremove",n),a.emit("tabBeforeRemove",t[0],e[0],n),a.removeTabContent(t[0],n)}function Ay(t,e,n,a){n===void 0&&(n={});const r=this,s=r.app,i=t==="panel",o=i?"panel":"modal",l=W({animate:r.params.animate,browserHistory:!0,history:!0,on:{},once:{}},n),c=W({},e.route[t]),d=e.route,u=(w,g)=>{const{on:v,once:y}=l;let E;g==="open"&&(E=v.modalOpen||y.modalOpen||v.panelOpen||y.panelOpen),g==="close"&&(E=v.modalClose||y.modalClose||v.panelClose||y.panelClose),g==="closed"&&(E=v.modalClosed||y.modalClosed||v.panelClosed||y.panelClosed),E&&E(w)};function p(){const w=s[t].create(c);d.modalInstance=w;const g=w.el;function v(){w.close()}w.on(`${o}Open`,()=>{g||(r.removeThemeElements(w.el),w.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,w),r.emit(`${i?"":"modalInit"} ${t}Init ${t}Mounted`,w.el,e,w)),r.once("swipeBackMove",v),u(w,"open")}),w.on(`${o}Close`,()=>{r.off("swipeBackMove",v),w.closeByRouter||r.back(),u(w,"close")}),w.on(`${o}Closed`,()=>{w.$el.trigger(`${t.toLowerCase()}:beforeremove`,e,w),w.emit(`${i?"":"modalBeforeRemove "}${t}BeforeRemove`,w.el,e,w);const y=w.el.f7Component;u(w,"closed"),y&&y.destroy(),ot(()=>{(y||c.component||c.asyncComponent||c.async)&&r.removeModal(w.el),w.destroy(),delete w.route,delete d.modalInstance})}),l.route&&(r.params.browserHistory&&l.browserHistory&&be.push(r.view.id,{url:l.route.url,modal:t},(r.params.browserHistoryRoot||"")+r.params.browserHistorySeparator+l.route.url),l.route!==r.currentRoute&&(w.route=W(l.route,{modal:w}),r.currentRoute=w.route),l.history&&!l.reloadCurrent&&(r.history.push(l.route.url),r.saveHistory())),g&&(r.removeThemeElements(w.el),w.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,w),r.emit(`${o}Init ${t}Init ${t}Mounted`,w.el,e,w)),w.open(l.animate===!1||l.animate===!0?l.animate:void 0)}function f(w,g){const{url:v,content:y,component:E,componentUrl:k}=w;function $(x){x&&(typeof x=="string"?c.content=x:x.f7Component?x.f7Component.mount(F=>{c.el=F,s.$el.append(F)}):c.el=x,p())}function M(){return r.allowPageChange=!0,r}if(y)$(y);else if(E||k)try{r.modalComponentLoader({rootEl:s.el,component:E,componentUrl:k,options:g,resolve:$,reject:M})}catch(x){throw r.allowPageChange=!0,x}else v?(r.xhrAbortController&&(r.xhrAbortController.abort(),r.xhrAbortController=!1),r.xhrRequest(v,g).then(x=>{c.content=x,p()}).catch(()=>{r.allowPageChange=!0})):p()}let h;"url content component el componentUrl template".split(" ").forEach(w=>{c[w]&&!h&&(h=!0,f({[w]:c[w]},l))}),!h&&t==="actions"&&p();function m(w,g){f(w,W(l,g))}function b(){r.allowPageChange=!0}return c.async&&c.async.call(r,{router:r,to:l.route,from:r.currentRoute,resolve:m,reject:b,direction:a,app:s}),c.asyncComponent&&Br(r,c.asyncComponent,m,b),r}function Dy(t){W(t,{closeByRouter:!0}),t.close()}function fa(t,e,n){const a=Ie(),r=ye(),s=C(e),i=t.app,o=t.view,l=W(!1,{animate:t.params.animate,browserHistory:!0,replaceState:!1},n),c=t.params.masterDetailBreakpoint>0,d=c&&l.route&&l.route.route&&(l.route.route.master===!0||typeof l.route.route.master=="function"&&l.route.route.master(i,t));let u,p;const f=t.dynamicNavbar,h=s,m=t.$el.children(".page-current"),b=m.length===0&&l.preload,w=c&&m.hasClass("page-master");h.length&&t.removeThemeElements(h);let g,v,y;if(f&&(v=h.children(".navbar"),g=t.$navbarsEl,v.length===0&&h[0]&&h[0].f7Page&&(v=h[0].f7Page.$navbarEl),y=g.find(".navbar-current")),t.allowPageChange=!1,h.length===0||m.length===0&&!l.preload)return t.allowPageChange=!0,t;t.removeThemeElements(h),l.route&&l.route.route&&l.route.route.keepAlive&&!l.route.route.keepAliveData&&(l.route.route.keepAliveData={pageEl:s[0]});let E,k;if(c){const B=t.$el.children(".page").filter(P=>P!==h[0]);for(let P=0;Pt.history.indexOf(u.f7Page.route.url),!E&&!d&&u&&u.f7Page&&l.route.route.masterRoute&&(E=l.route.route.masterRoute.path===u.f7Page.route.route.path)}E&&u&&u.f7Page&&(k=t.history.indexOf(l.route.url)-t.history.indexOf(u.f7Page.route.url)===1),h.addClass(`page-${b?"current":"previous"}${d?" page-master":""}${E?" page-master-detail":""}${k?" page-master-detail-root":""}`).removeAttr("aria-hidden").trigger("page:unstack").trigger("page:position",{position:b?"current":"previous"}),t.emit("pageUnstack",h[0]),t.emit("pagePosition",h[0],b?"current":"previous"),(d||E)&&(h.trigger("page:role",{role:d?"master":"detail",root:!!k}),t.emit("pageRole",h[0],{role:d?"master":"detail",detailRoot:!!k})),f&&v.length>0&&(v.addClass(`navbar-${b?"current":"previous"}${d?" navbar-master":""}${E?" navbar-master-detail":""}${k?" navbar-master-detail-root":""}`).removeAttr("aria-hidden"),v.trigger("navbar:position",{position:b?"current":"previous"}),t.emit("navbarPosition",v[0],b?"current":"previous"),(d||k)&&t.emit("navbarRole",v[0],{role:d?"master":"detail",detailRoot:!!k}));let $;if(l.force&&m.prev(".page-previous").length>=0){t.history.indexOf(l.route.url)>=0?($=t.history.length-t.history.indexOf(l.route.url)-1,t.history=t.history.slice(0,t.history.indexOf(l.route.url)+2),t.propsHistory=t.propsHistory.slice(0,t.history.indexOf(l.route.url)+2),o.history=t.history):t.history[[t.history.length-2]]?t.propsHistory[t.propsHistory.length-2]=l.props||{}:(t.history.unshift(t.url),t.propsHistory.unshift(l.props||{}));const B=m.prev(".page-previous");let P;f&&(P=C(i.navbar.getElByPage(B))),B.length>0&&(t.pageCallback("beforeRemove",B,P,"previous",void 0,l),B[0]===u&&(p=!0),t.removePage(B),f&&P.length&&t.removeNavbar(P))}const M=h.parents(r).length>0,x=h[0].f7Component;function F(){b&&(!M&&x?x.mount(B=>{t.$el.append(B)}):t.$el.append(h)),h.next(m).length===0&&(!M&&x?x.mount(B=>{C(B).insertBefore(m)}):h.insertBefore(m)),f&&v.length&&(v.find(".title-large").length&&v.addClass("navbar-large"),v.insertBefore(y),y.length>0?v.insertBefore(y):(t.$navbarsEl.parents(r).length||t.$el.prepend(t.$navbarsEl),g.append(v))),M?l.route&&l.route.route&&l.route.route.keepAlive&&!h[0].f7PageMounted&&(h[0].f7PageMounted=!0,t.pageCallback("mounted",h,v,"previous","current",l,m)):t.pageCallback("mounted",h,v,"previous","current",l,m)}if(l.preload){F(),l.route.route.tab&&t.tabLoad(l.route.route.tab,W({},l,{history:!1,browserHistory:!1,preload:!0})),d&&(h.removeClass("page-master-stacked").trigger("page:masterunstack"),t.emit("pageMasterUnstack",h[0]),f&&(C(i.navbar.getElByPage(h)).removeClass("navbar-master-stacked"),t.emit("navbarMasterUnstack",i.navbar.getElByPage(h)))),t.pageCallback("init",h,v,"previous","current",l,m),b&&(t.pageCallback("beforeIn",h,v,"current",void 0,l),t.pageCallback("afterIn",h,v,"current",void 0,l));const B=h.prevAll(".page-previous:not(.page-master)");return B.length>0&&B.each(P=>{const R=C(P);let V;f&&(V=C(i.navbar.getElByPage(R))),t.pageCallback("beforeRemove",R,V,"previous",void 0),t.removePage(R),f&&V.length&&t.removeNavbar(V)}),t.allowPageChange=!0,t}if(!(a.ie||a.edge||a.firefox&&!a.ios)&&t.params.browserHistory&&l.browserHistory)if(l.replaceState){const B=t.params.browserHistoryRoot||"";be.replace(o.id,{url:l.route.url},B+t.params.browserHistorySeparator+l.route.url)}else $?be.go(-$):be.back();if(l.replaceState?(t.history[t.history.length-1]=l.route.url,t.propsHistory[t.propsHistory.length-1]=l.props||{}):(t.history.length===1&&(t.history.unshift(t.url),t.propsHistory.unshift(l.props||{})),t.history.pop(),t.propsHistory.pop()),t.saveHistory(),t.currentPageEl=h[0],f&&v.length?t.currentNavbarEl=v[0]:delete t.currentNavbarEl,t.currentRoute=l.route,(a.ie||a.edge||a.firefox&&!a.ios)&&t.params.browserHistory&&l.browserHistory)if(l.replaceState){const B=t.params.browserHistoryRoot||"";be.replace(o.id,{url:l.route.url},B+t.params.browserHistorySeparator+l.route.url)}else $?be.go(-$):be.back();F(),l.route.route.tab&&t.tabLoad(l.route.route.tab,W({},l,{history:!1,browserHistory:!1})),c&&(w||p)&&o.checkMasterDetailBreakpoint(!1),t.pageCallback("init",h,v,"previous","current",l,m),t.pageCallback("beforeOut",m,y,"current","next",l),t.pageCallback("beforeIn",h,v,"previous","current",l);function T(){t.setPagePosition(h,"current",!1),t.setPagePosition(m,"next",!0),f&&(t.setNavbarPosition(v,"current",!1),t.setNavbarPosition(y,"next",!0)),t.pageCallback("afterOut",m,y,"current","next",l),t.pageCallback("afterIn",h,v,"previous","current",l),t.pageCallback("beforeRemove",m,y,"next",void 0,l),t.removePage(m),f&&y.length&&t.removeNavbar(y),t.allowPageChange=!0,t.emit("routeChanged",t.currentRoute,t.previousRoute,t),(t.params.preloadPreviousPage||t.params[`${i.theme}SwipeBack`])&&t.history[t.history.length-2]&&!d&&t.back(t.history[t.history.length-2],{preload:!0,props:t.propsHistory[t.propsHistory.length-2]||{}}),t.params.browserHistory&&be.clearRouterQueue()}function I(){t.setPagePosition(m,"current"),t.setPagePosition(h,"previous",!1),f&&(t.setNavbarPosition(y,"current"),t.setNavbarPosition(v,"previous",!1))}if(l.animate&&!(w&&i.width>=t.params.masterDetailBreakpoint)){let B=t.params.transition;m[0]&&m[0].f7PageTransition&&(B=m[0].f7PageTransition,delete m[0].f7PageTransition),l.transition&&(B=l.transition),!B&&t.previousRoute&&t.previousRoute.route&&(B=t.previousRoute.route.transition),!B&&t.previousRoute&&t.previousRoute.route&&t.previousRoute.route.options&&(B=t.previousRoute.route.options.transition),I(),t.animate(m,h,y,v,"backward",B,()=>{T()})}else T();return t}function Ua(t,e,n,a){if(!t.allowPageChange&&!a)return t;const r=e,s=n,{url:i,content:o,el:l,pageName:c,component:d,componentUrl:u}=r;if(s.route.url&&t.url===s.route.url&&!(s.reloadCurrent||s.reloadPrevious)&&!t.params.allowDuplicateUrls)return t.allowPageChange=!0,!1;!s.route&&i&&(s.route=t.parseRouteUrl(i));function p(h,m){return fa(t,h,W(s,m))}function f(){return t.allowPageChange=!0,t}if((i||u||d)&&(t.allowPageChange=!1),o)fa(t,t.getPageEl(o),s);else if(l)fa(t,t.getPageEl(l),s);else if(c)fa(t,t.$el.children(`.page[data-name="${c}"]`).eq(0),s);else if(d||u)try{t.pageComponentLoader({routerEl:t.el,component:d,componentUrl:u,options:s,resolve:p,reject:f})}catch(h){throw t.allowPageChange=!0,h}else i&&(t.xhrAbortController&&(t.xhrAbortController.abort(),t.xhrAbortController=!1),t.xhrRequest(i,s).then(h=>{fa(t,t.getPageEl(h),s)}).catch(()=>{t.allowPageChange=!0}));return t}function Ly(){const t=this,e=Ie();if(t.swipeBackActive)return t;let n,a,r,s;typeof(arguments.length<=0?void 0:arguments[0])=="object"?a=(arguments.length<=0?void 0:arguments[0])||{}:(n=arguments.length<=0?void 0:arguments[0],a=(arguments.length<=1?void 0:arguments[1])||{});const{name:i,params:o,query:l}=a;if(i)return n=t.generateUrl({name:i,params:o,query:l}),n?t.back(n,W({},a,{name:null,params:null,query:null})):t;const c=t.app;la(t,"back");let d=t.currentRoute.modal,u;if(d||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(w=>{t.currentRoute.route[w]&&(d=!0,u=w)}),d&&!a.preload){const w=t.currentRoute.modal||t.currentRoute.route.modalInstance||c[u].get(),g=t.history[t.history.length-2];let v;if(w&&w.$el){const E=w.$el.prevAll(".modal-in");if(E.length&&E[0].f7Modal){const k=E[0];t.$el.parents(k).length||(v=k.f7Modal.route)}}if(v||(v=t.findMatchingRoute(g)),!v&&g&&(v={url:g,path:g.split("?")[0],query:La(g),route:{path:g.split("?")[0],url:g}}),(!n||n.replace(/[# ]/g,"").trim().length===0)&&(!v||!w))return t;const y=a.force&&v&&n;if(v&&w){const E=e.ie||e.edge||e.firefox&&!e.ios,k=t.params.browserHistory&&a.browserHistory!==!1,$=t.currentRoute&&t.currentRoute.route&&t.currentRoute.route.options&&t.currentRoute.route.options.browserHistory===!1;k&&!E&&!$&&be.back(),t.currentRoute=v,t.history.pop(),t.propsHistory.pop(),t.saveHistory(),k&&E&&!$&&be.back(),t.modalRemove(w),y&&t.navigate(n,{reloadCurrent:!0})}else w&&(t.modalRemove(w),n&&t.navigate(n,{reloadCurrent:!0}));return t}let p=t.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0),f;if(t.params.masterDetailBreakpoint>0){const w=[];t.$el.children(".page").each(v=>{w.push(v.className)});const g=t.$el.children(".page-current").prevAll(".page-master").eq(0);if(g.length){const v=t.history[t.history.length-2],y=t.findMatchingRoute(v);y&&g[0].f7Page&&y.route===g[0].f7Page.route.route&&(p=g,a.preload||(f=c.width>=t.params.masterDetailBreakpoint))}}if(!a.force&&p.length&&!f){const w=p[0].f7Page;if(t.params.browserHistory&&w&&t.history[t.history.length-2]!==w.route.url)return t.back(t.history[t.history.length-2],W(a,{force:!0,props:t.propsHistory[t.propsHistory.length-2]||{}})),t;if(w){const g=w.route;return $s.call(t,g,t.currentRoute,()=>{Ua(t,{el:p},W(a,{route:g}))},()=>{},"backward"),t}}if(n==="#"&&(n=void 0),n&&n[0]!=="/"&&n.indexOf("#")!==0&&(n=((t.path||"/")+n).replace("//","/")),!n&&t.history.length>1&&(n=t.history[t.history.length-2],r=t.propsHistory[t.propsHistory.length-2]||{}),f&&!a.force&&t.history[t.history.length-3])return t.back(t.history[t.history.length-3],W({},a||{},{force:!0,animate:!1,props:t.propsHistory[t.propsHistory.length-3]||{}}));if(f&&!a.force||(s=t.findMatchingRoute(n),s||n&&(s={url:n,path:n.split("?")[0],query:La(n),route:{path:n.split("?")[0],url:n}}),!s))return t;if(s.route.redirect)return ug.call(t,"backward",s,a);const h={};s.route.options?W(h,s.route.options,a,{props:r||{}}):W(h,a,{props:r||{}}),h.route=s;function m(){let w=!1;if(s.route.keepAlive&&s.route.keepAliveData&&(Ua(t,{el:s.route.keepAliveData.pageEl},h),w=!0),"url content component pageName el componentUrl".split(" ").forEach(y=>{s.route[y]&&!w&&(w=!0,Ua(t,{[y]:s.route[y]},h))}),w)return;function g(y,E){t.allowPageChange=!1,Ua(t,y,W(h,E),!0)}function v(){t.allowPageChange=!0}s.route.async&&(t.allowPageChange=!1,s.route.async.call(t,{router:t,to:s,from:t.currentRoute,resolve:g,reject:v,direction:"backward",app:c})),s.route.asyncComponent&&Br(t,s.route.asyncComponent,g,v)}function b(){t.allowPageChange=!0}return h.preload?m():$s.call(t,s,t.currentRoute,()=>{s.route.modules?c.loadModules(Array.isArray(s.route.modules)?s.route.modules:[s.route.modules]).then(()=>{m()}).catch(()=>{b()}):m()},()=>{b()},"backward"),t}function Ry(t){la(t,"clearPreviousPages");const e=t.app,n=t.dynamicNavbar;t.$el.children(".page").filter(r=>t.currentRoute&&(t.currentRoute.modal||t.currentRoute.panel)?!0:r!==t.currentPageEl).each(r=>{const s=C(r),i=C(e.navbar.getElByPage(s));t.pageCallback("beforeRemove",s,i,"previous",void 0,{}),t.removePage(s),n&&i.length&&t.removeNavbar(i)})}function Hy(){const t=this;la(t,"clearPreviousHistory");const e=t.history[t.history.length-1];Ry(t),t.history=[e],t.view.history=[e],t.saveHistory()}class Xt extends Xe{constructor(e,n){super({},[typeof n>"u"?e:n]);const a=this;a.isAppRouter=typeof n>"u",a.isAppRouter?W(!1,a,{app:e,params:e.params.view,routes:e.routes||[],cache:e.cache}):W(!1,a,{app:e,view:n,viewId:n.id,id:n.params.routerId,params:n.params,routes:n.routes,history:n.history,propsHistory:[],scrollHistory:n.scrollHistory,cache:e.cache,dynamicNavbar:e.theme==="ios"&&n.params.iosDynamicNavbar,initialPages:[],initialNavbars:[]}),a.useModules(),a.allowPageChange=!0;let r={},s={};return Object.defineProperty(a,"currentRoute",{enumerable:!0,configurable:!0,set(i){i===void 0&&(i={}),s=W({},r),r=i,r&&(a.url=r.url,a.emit("routeChange",i,s,a))},get(){return r}}),Object.defineProperty(a,"previousRoute",{enumerable:!0,configurable:!0,get(){return s},set(i){s=i}}),a}mount(){const e=this,n=e.view,a=ye();W(!1,e,{tempDom:a.createElement("div"),$el:n.$el,el:n.el,$navbarsEl:n.$navbarsEl,navbarsEl:n.navbarsEl}),e.emit("local::mount routerMount",e)}animatableNavElements(e,n,a,r,s){const i=this,o=i.dynamicNavbar,l=i.params.iosAnimateNavbarBackIcon;let c,d;function u(p,f){const h=p.hasClass("sliding")||f.hasClass("sliding"),m=p.hasClass("subnavbar"),b=h?!m:!0,w=p.find(".back .icon");let g;return h&&l&&p.hasClass("left")&&w.length>0&&w.next("span").length&&(p=w.next("span"),g=!0),{$el:p,isIconLabel:g,leftOffset:p[0].f7NavbarLeftOffset,rightOffset:p[0].f7NavbarRightOffset,isSliding:h,isSubnavbar:m,needsOpacityTransition:b}}return o&&(c=[],d=[],e.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each(p=>{const f=C(p);f.hasClass("left")&&r&&s==="forward"||f.hasClass("title")&&a||c.push(u(f,e.children(".navbar-inner")))}),n.hasClass("navbar-master")&&i.params.masterDetailBreakpoint>0&&i.app.width>=i.params.masterDetailBreakpoint||n.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each(p=>{const f=C(p);f.hasClass("left")&&a&&!r&&s==="forward"||f.hasClass("left")&&a&&s==="backward"||f.hasClass("title")&&r||d.push(u(f,n.children(".navbar-inner")))}),[d,c].forEach(p=>{p.forEach(f=>{const h=f,{isSliding:m,$el:b}=f,w=p===d?c:d;m&&b.hasClass("title")&&w&&w.forEach(g=>{if(g.isIconLabel){const v=g.$el[0];h.leftOffset+=v&&v.offsetLeft||0}})})})),{newNavEls:c,oldNavEls:d}}animate(e,n,a,r,s,i,o){const l=this;if(l.params.animateCustom){l.params.animateCustom.apply(l,[e,n,a,r,s,o]);return}const c=l.dynamicNavbar,d=l.app.theme==="ios";if(i){const E=`router-transition-custom router-transition-${i}-${s}`,k=()=>{l.$el.removeClass(E),c&&l.$navbarsEl.length&&(r&&l.$navbarsEl.prepend(r),a&&l.$navbarsEl.prepend(a)),o&&o()};(s==="forward"?n:e).animationEnd(k),c&&(r&&n&&(l.setNavbarPosition(r,""),r.removeClass("navbar-next navbar-previous navbar-current"),n.prepend(r)),a&&e&&(l.setNavbarPosition(a,""),a.removeClass("navbar-next navbar-previous navbar-current"),e.prepend(a))),l.$el.addClass(E);return}const u=`router-transition-${s} router-transition`;let p,f,h,m,b,w,g;if(d&&c){l.params.masterDetailBreakpoint>0&&l.app.width>=l.params.masterDetailBreakpoint&&(a.hasClass("navbar-master")&&r.hasClass("navbar-master-detail")||a.hasClass("navbar-master-detail")&&r.hasClass("navbar-master"))||(w=a&&a.hasClass("navbar-large"),g=r&&r.hasClass("navbar-large"),h=w&&!a.hasClass("navbar-large-collapsed"),m=g&&!r.hasClass("navbar-large-collapsed"),b=h&&!m||m&&!h);const k=l.animatableNavElements(r,a,m,h,s);p=k.newNavEls,f=k.oldNavEls}function v(E){d&&c&&(E===1&&(m&&(r.addClass("router-navbar-transition-to-large"),a.addClass("router-navbar-transition-to-large")),h&&(r.addClass("router-navbar-transition-from-large"),a.addClass("router-navbar-transition-from-large"))),p.forEach(k=>{const $=k.$el,M=s==="forward"?k.rightOffset:k.leftOffset;k.isSliding&&(k.isSubnavbar&&g?$[0].style.setProperty("transform",`translate3d(${M*(1-E)}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`,"important"):$.transform(`translate3d(${M*(1-E)}px,0,0)`))}),f.forEach(k=>{const $=k.$el,M=s==="forward"?k.leftOffset:k.rightOffset;k.isSliding&&(k.isSubnavbar&&w?$.transform(`translate3d(${M*E}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`):$.transform(`translate3d(${M*E}px,0,0)`))}))}function y(){l.dynamicNavbar&&(r&&(r.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.addClass("navbar-no-title-large-transition"),Tt(()=>{r.removeClass("navbar-no-title-large-transition")})),a&&a.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.hasClass("sliding")||r.children(".navbar-inner.sliding").length?r.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):r.find(".sliding").transform(""),a.hasClass("sliding")||a.children(".navbar-inner.sliding").length?a.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):a.find(".sliding").transform("")),l.$el.removeClass(u),o&&o()}(s==="forward"?n:d?e:n).animationEnd(()=>{y()}),c?(v(0),Tt(()=>{l.$el.addClass(u),b&&(l.el._clientLeft=l.el.clientLeft),v(1)})):l.$el.addClass(u)}removeModal(e){this.removeEl(e)}removeTabContent(e){C(e).html("")}removeNavbar(e){this.removeEl(e)}removePage(e){const n=C(e),a=n&&n[0]&&n[0].f7Page,r=this;if(a&&a.route&&a.route.route&&a.route.route.keepAlive){n.remove();return}r.removeEl(e)}removeEl(e){if(!e)return;const n=this,a=C(e);a.length!==0&&(a.find(".tab").each(r=>{C(r).children().each(s=>{s.f7Component&&(C(s).trigger("tab:beforeremove"),s.f7Component.destroy())})}),a[0].f7Component&&a[0].f7Component.destroy&&a[0].f7Component.destroy(),n.params.removeElements&&(n.params.removeElementsWithTimeout?setTimeout(()=>{a.remove()},n.params.removeElementsTimeout):a.remove()))}getPageEl(e){const n=this;if(typeof e=="string")n.tempDom.innerHTML=e;else{if(C(e).hasClass("page"))return e;n.tempDom.innerHTML="",C(n.tempDom).append(e)}return n.findElement(".page",n.tempDom)}findElement(e,n){const a=this,r=a.view,s=a.app,i=".popup, .dialog, .popover, .actions-modal, .sheet-modal, .login-screen, .page",o=C(n),l=e;let c=o.find(l).filter(d=>C(d).parents(i).length===0);if(c.length>1&&(typeof r.selector=="string"&&(c=o.find(`${r.selector} ${l}`)),c.length>1&&(c=o.find(`.${s.params.viewMainClass} ${l}`))),c.length===1||(c=a.findElement(l,o),c&&c.length===1))return c;if(c&&c.length>1)return C(c[0])}flattenRoutes(e){e===void 0&&(e=this.routes);const n=this;let a=[];return e.forEach(r=>{let s=!1;if("tabs"in r&&r.tabs){const i=r.tabs.map(o=>{const l=W({},r,{path:`${r.path}/${o.path}`.replace("///","/").replace("//","/"),parentPath:r.path,tab:o});return delete l.tabs,delete l.routes,l});s=!0,a=a.concat(n.flattenRoutes(i))}if("detailRoutes"in r){const i=r.detailRoutes.map(o=>{const l=W({},o);return l.masterRoute=r,l.masterRoutePath=r.path,l});a=a.concat(r,n.flattenRoutes(i))}if("routes"in r){const i=r.routes.map(o=>{const l=W({},o);return l.path=`${r.path}/${l.path}`.replace("///","/").replace("//","/"),l});s?a=a.concat(n.flattenRoutes(i)):a=a.concat(r,n.flattenRoutes(i))}!("routes"in r)&&!("tabs"in r&&r.tabs)&&!("detailRoutes"in r)&&a.push(r)}),a}parseRouteUrl(e){if(!e)return{};const n=La(e),a=e.split("#")[1],r={},s=e.split("#")[0].split("?")[0];return{query:n,hash:a,params:r,url:e,path:s}}generateUrl(e){if(e===void 0&&(e={}),typeof e=="string")return e;const{name:n,path:a,params:r,query:s}=e;if(!n&&!a)throw new Error('Framework7: "name" or "path" parameter is required');const i=this,o=n?i.findRouteByKey("name",n):i.findRouteByKey("path",a);if(!o)throw n?new Error(`Framework7: route with name "${n}" not found`):new Error(`Framework7: route with path "${a}" not found`);const l=i.constructRouteUrl(o,{params:r,query:s});if(l==="")return"/";if(!l)throw new Error(`Framework7: can't construct URL for route with name "${n}"`);return l}constructRouteUrl(e,n){let{params:a,query:r}=n===void 0?{}:n;const{path:s}=e,i=Cy(s);let o;try{o=i(a||{})}catch(l){throw new Error(`Framework7: error constructing route URL from passed params: Route: ${s} -${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length&&(o+=`?${Hn(r)}`)),o}findTabRouteUrl(e){const n=this,a=C(e),r=n.currentRoute.route.parentPath,s=a.attr("id"),i=n.flattenRoutes(n.routes);let o;return i.forEach(l=>{l.parentPath===r&&l.tab&&l.tab.id===s&&(n.currentRoute.params&&Object.keys(n.currentRoute.params).length>0?o=n.constructRouteUrl(l,{params:n.currentRoute.params,query:n.currentRoute.query}):o=l.path)}),o}findRouteByKey(e,n){const a=this,r=a.routes,s=a.flattenRoutes(r);let i;return s.forEach(o=>{i||o[e]===n&&(i=o)}),i}findMatchingRoute(e){if(!e)return;const n=this,a=n.routes,r=n.flattenRoutes(a),{path:s,query:i,hash:o,params:l}=n.parseRouteUrl(e);let c;return r.forEach(d=>{if(c)return;const u=[],p=[d.path||"/"];d.alias&&(typeof d.alias=="string"?p.push(d.alias):Array.isArray(d.alias)&&d.alias.forEach(h=>{p.push(h)}));let f;if(p.forEach(h=>{f||(f=dg(h,u).exec(s||"/"))}),f){u.forEach((m,b)=>{if(typeof m.name=="number")return;const w=f[b+1];typeof w>"u"||w===null?l[m.name]=w:l[m.name]=decodeURIComponent(w)});let h;d.parentPath&&(h=(s||"/").split("/").slice(0,d.parentPath.split("/").length-1).join("/")),c={query:i,hash:o,params:l,url:e,path:s||"/",parentPath:h,route:d,name:d.name}}}),c}replaceRequestUrlParams(e,n){e===void 0&&(e=""),n===void 0&&(n={});let a=e;return typeof a=="string"&&a.indexOf("{{")>=0&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&Object.keys(n.route.params).forEach(r=>{const s=new RegExp(`{{${r}}}`,"g");a=a.replace(s,n.route.params[r]||"")}),a}removeFromXhrCache(e){const a=this.cache.xhr;let r=!1;for(let s=0;s=0;return r.passRouteQueryToRequest&&n&&n.route&&n.route.query&&Object.keys(n.route.query).length&&(i+=`${o?"&":"?"}${Hn(n.route.query)}`,o=!0),r.passRouteParamsToRequest&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&(i+=`${o?"&":"?"}${Hn(n.route.params)}`,o=!0),i.indexOf("{{")>=0&&(i=a.replaceRequestUrlParams(i,n)),r.xhrCacheIgnoreGetParameters&&i.indexOf("?")>=0&&(i=i.split("?")[0]),new Promise((l,c)=>{if(r.xhrCache&&!s&&i.indexOf("nocache")<0&&r.xhrCacheIgnore.indexOf(i)<0)for(let u=0;u(d=u,u.text())).then(u=>{const{status:p}=d;a.emit("routerAjaxComplete",d),p!=="error"&&p!=="timeout"&&p>=200&&p<300||p===0?(r.xhrCache&&u!==""&&(a.removeFromXhrCache(i),a.cache.xhr.push({url:i,time:Bt(),content:u})),a.emit("routerAjaxSuccess",d,n),l(u)):(a.emit("routerAjaxError",d,n),c(d))}).catch(u=>{c(u)})})}setNavbarPosition(e,n,a){const r=this;e.removeClass("navbar-previous navbar-current navbar-next"),n&&e.addClass(`navbar-${n}`),a===!1?e.removeAttr("aria-hidden"):a===!0&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:n}),r.emit("navbarPosition",e[0],n)}setPagePosition(e,n,a){const r=this;e.removeClass("page-previous page-current page-next"),e.addClass(`page-${n}`),a===!1?e.removeAttr("aria-hidden"):a===!0&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:n}),r.emit("pagePosition",e[0],n)}removeThemeElements(e){const a=this.app.theme;let r;a==="ios"?r=".md-only, .if-md, .if-not-ios, .not-ios":a==="md"&&(r=".ios-only, .if-ios, .if-not-md, .not-md"),C(e).find(r).remove()}getPageData(e,n,a,r,s,i){s===void 0&&(s={});const o=this,l=C(e).eq(0),c=C(n).eq(0),d=l[0].f7Page||{};let u,p;if((a==="next"&&r==="current"||a==="current"&&r==="previous")&&(u="forward"),(a==="current"&&r==="next"||a==="previous"&&r==="current")&&(u="backward"),d&&!d.fromPage){const h=C(i);h.length&&(p=h[0].f7Page)}p=d.pageFrom||p,p&&p.pageFrom&&(p.pageFrom=null);const f={app:o.app,view:o.view,router:o,$el:l,el:l[0],$pageEl:l,pageEl:l[0],$navbarEl:c,navbarEl:c[0],name:l.attr("data-name"),position:a,from:a,to:r,direction:u,route:d.route?d.route:s,pageFrom:p};return l[0].f7Page=f,f}pageCallback(e,n,a,r,s,i,o){if(i===void 0&&(i={}),!n)return;const l=this,c=C(n);if(!c.length)return;const d=C(a),{route:u}=i,p=l.params.restoreScrollTopOnBack&&!(l.params.masterDetailBreakpoint>0&&c.hasClass("page-master")&&l.app.width>=l.params.masterDetailBreakpoint),f=c[0].f7Page&&c[0].f7Page.route&&c[0].f7Page.route.route&&c[0].f7Page.route.route.keepAlive;e==="beforeRemove"&&f&&(e="beforeUnmount");const h=`page${e[0].toUpperCase()+e.slice(1,e.length)}`,m=`page:${e.toLowerCase()}`;let b={};e==="beforeRemove"&&c[0].f7Page?b=W(c[0].f7Page,{from:r,to:s,position:r}):b=l.getPageData(c[0],d[0],r,s,u,o),b.swipeBack=!!i.swipeBack;const{on:w={},once:g={}}=i.route?i.route.route:{};i.on&&W(w,i.on),i.once&&W(g,i.once);function v(){c[0].f7RouteEventsAttached||(c[0].f7RouteEventsAttached=!0,w&&Object.keys(w).length>0&&(c[0].f7RouteEventsOn=w,Object.keys(w).forEach(E=>{w[E]=w[E].bind(l),c.on(ga(E),w[E])})),g&&Object.keys(g).length>0&&(c[0].f7RouteEventsOnce=g,Object.keys(g).forEach(E=>{g[E]=g[E].bind(l),c.once(ga(E),g[E])})))}function y(){c[0].f7RouteEventsAttached&&(c[0].f7RouteEventsOn&&Object.keys(c[0].f7RouteEventsOn).forEach(E=>{c.off(ga(E),c[0].f7RouteEventsOn[E])}),c[0].f7RouteEventsOnce&&Object.keys(c[0].f7RouteEventsOnce).forEach(E=>{c.off(ga(E),c[0].f7RouteEventsOnce[E])}),c[0].f7RouteEventsAttached=null,c[0].f7RouteEventsOn=null,c[0].f7RouteEventsOnce=null,delete c[0].f7RouteEventsAttached,delete c[0].f7RouteEventsOn,delete c[0].f7RouteEventsOnce)}if(e==="mounted"&&v(),e==="init"){if(p&&(r==="previous"||!r)&&s==="current"&&l.scrollHistory[b.route.url]&&!c.hasClass("no-restore-scroll")){let E=c.find(".page-content");E.length>0&&(E=E.filter(k=>C(k).parents(".tab:not(.tab-active)").length===0&&!C(k).is(".tab:not(.tab-active)"))),E.scrollTop(l.scrollHistory[b.route.url])}if(v(),c[0].f7PageInitialized){c.trigger("page:reinit",b),l.emit("pageReinit",b);return}c[0].f7PageInitialized=!0}if(p&&e==="beforeOut"&&r==="current"&&s==="previous"){let E=c.find(".page-content");E.length>0&&(E=E.filter(k=>C(k).parents(".tab:not(.tab-active)").length===0&&!C(k).is(".tab:not(.tab-active)"))),l.scrollHistory[b.route.url]=E.scrollTop()}p&&e==="beforeOut"&&r==="current"&&s==="next"&&delete l.scrollHistory[b.route.url],c.trigger(m,b),l.emit(h,b),(e==="beforeRemove"||e==="beforeUnmount")&&(y(),f||(c[0].f7Page&&c[0].f7Page.navbarEl&&delete c[0].f7Page.navbarEl.f7Page,c[0].f7Page=null))}saveHistory(){const e=this,n=fe();e.view.history=e.history,e.params.browserHistory&&e.params.browserHistoryStoreHistory&&n.localStorage&&(n.localStorage[`f7router-${e.view.id}-history`]=JSON.stringify(e.history))}restoreHistory(){const e=this,n=fe();e.params.browserHistory&&e.params.browserHistoryStoreHistory&&n.localStorage&&n.localStorage[`f7router-${e.view.id}-history`]&&(e.history=JSON.parse(n.localStorage[`f7router-${e.view.id}-history`]),e.view.history=e.history)}clearHistory(){const e=this;e.history=[],e.view&&(e.view.history=[]),e.saveHistory()}updateCurrentUrl(e){const n=this;la(n,"updateCurrentUrl"),n.history.length?n.history[n.history.length-1]=e:n.history.push(e);const{query:a,hash:r,params:s,url:i,path:o}=n.parseRouteUrl(e);if(n.currentRoute&&W(n.currentRoute,{query:a,hash:r,params:s,url:i,path:o}),n.params.browserHistory){const l=n.params.browserHistoryRoot||"";be.replace(n.view.id,{url:e},l+n.params.browserHistorySeparator+e)}n.saveHistory(),n.emit("routeUrlUpdate",n.currentRoute,n)}getInitialUrl(){const e=this;if(e.initialUrl)return{initialUrl:e.initialUrl,historyRestored:e.historyRestored};const{app:n,view:a}=e,r=ye(),s=fe(),i=n.params.url&&typeof n.params.url=="string"&&typeof URL<"u"?new URL(n.params.url):r.location;let o=e.params.url,l=i.href.split(i.origin)[1],c;const{browserHistory:d,browserHistoryOnLoad:u,browserHistorySeparator:p}=e.params;let{browserHistoryRoot:f}=e.params;return(s.cordova||s.Capacitor&&s.Capacitor.isNative)&&d&&!p&&!f&&i.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete browserHistory configuration, trying to guess browserHistoryRoot"),f=i.pathname.split("index.html")[0]),!d||!u?(o||(o=l),i.search&&o.indexOf("?")<0&&(o+=i.search),i.hash&&o.indexOf("#")<0&&(o+=i.hash)):(f&&l.indexOf(f)>=0&&(l=l.substring(l.indexOf(f)+f.length),l===""&&(l="/")),p.length>0&&l.indexOf(p)>=0?o=l.substring(l.indexOf(p)+p.length):o=l,e.restoreHistory(),e.history.indexOf(o)>=0?e.history=e.history.slice(0,e.history.indexOf(o)+1):e.params.url===o?e.history=[o]:be.state&&be.state[a.id]&&be.state[a.id].url===e.history[e.history.length-1]?o=e.history[e.history.length-1]:e.history=[l.split(p)[0]||"/",o],e.history.length>1?c=!0:e.history=[],e.saveHistory()),e.initialUrl=o,e.historyRestored=c,{initialUrl:o,historyRestored:c}}init(){const e=this,{app:n,view:a}=e,r=ye();e.mount();const{initialUrl:s,historyRestored:i}=e.getInitialUrl();(a&&e.params.iosSwipeBack&&n.theme==="ios"||a&&e.params.mdSwipeBack&&n.theme==="md")&&Py(e);const{browserHistory:o,browserHistoryOnLoad:l,browserHistoryAnimateOnLoad:c,browserHistoryInitialMatch:d}=e.params;let u;if(e.history.length>1){const p=d?s:e.history[0];u=e.findMatchingRoute(p),u||(u=W(e.parseRouteUrl(p),{route:{url:p,path:p.split("?")[0]}}))}else u=e.findMatchingRoute(s),u||(u=W(e.parseRouteUrl(s),{route:{url:s,path:s.split("?")[0]}}));if(e.$el.children(".page").length===0&&s&&e.params.loadInitialPage)e.navigate(s,{initial:!0,reloadCurrent:!0,browserHistory:!1,animate:!1,once:{modalOpen(){if(!i)return;(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0})},pageAfterIn(){if(!i)return;(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0})}}});else if(e.$el.children(".page").length){let p;e.currentRoute=u,e.$el.children(".page").each(f=>{const h=C(f);let m;e.setPagePosition(h,"current"),e.dynamicNavbar&&(m=h.children(".navbar"),m.length>0?(e.$navbarsEl.parents(r).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(m,"current"),e.$navbarsEl.append(m),m.children(".title-large").length&&m.addClass("navbar-large"),h.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),m.children(".title-large").length&&e.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),e.currentRoute&&e.currentRoute.route&&(e.currentRoute.route.master===!0||typeof e.currentRoute.route.master=="function"&&e.currentRoute.route.master(n,e))&&e.params.masterDetailBreakpoint>0&&(h.addClass("page-master"),h.trigger("page:role",{role:"master"}),m&&m.length&&m.addClass("navbar-master"),a.checkMasterDetailBreakpoint());const b={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&W(b,e.currentRoute.route.options),e.currentPageEl=h[0],e.dynamicNavbar&&m.length&&(e.currentNavbarEl=m[0]),e.removeThemeElements(h),e.dynamicNavbar&&m.length&&e.removeThemeElements(m),b.route.route.tab&&(p=!0,e.tabLoad(b.route.route.tab,W({},b))),e.pageCallback("init",h,m,"current",void 0,b),e.pageCallback("beforeIn",h,m,"current",void 0,b),e.pageCallback("afterIn",h,m,"current",void 0,b)}),i&&(d?(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0}):e.navigate(s,{initial:!0,browserHistory:!1,history:!1,animate:c,once:{pageAfterIn(){(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>2&&e.back({preload:!0})}}})),!i&&!p&&(e.history.push(s),e.saveHistory())}s&&o&&l&&(!be.state||!be.state[a.id])&&be.initViewState(a.id,{url:s}),e.emit("local::init routerInit",e)}destroy(){let e=this;e.emit("local::destroy routerDestroy",e),Object.keys(e).forEach(n=>{e[n]=null,delete e[n]}),e=null}}Xt.prototype.navigate=By;Xt.prototype.refreshPage=My;Xt.prototype.tabLoad=Iy;Xt.prototype.tabRemove=Oy;Xt.prototype.modalLoad=Ay;Xt.prototype.modalRemove=Dy;Xt.prototype.back=Ly;Xt.prototype.clearPreviousHistory=Hy;const si={name:"router",static:{Router:Xt},instance:{cache:{xhr:[],templates:[],components:[]}},create(){const t=this;t.app?t.params.router&&(t.router=new Xt(t.app,t)):t.router=new Xt(t)}};function Fy(t){const e=t.app,n=Ye();if(t.resizableInitialized)return;W(t,{resizable:!0,resizableWidth:null,resizableInitialized:!0});const a=C("html"),{$el:r}=t;if(!r)return;let s,i,o;const l={};let c,d,u,p;function f(y){if(!y)return null;if(y.indexOf("%")>=0||y.indexOf("vw")>=0)return parseInt(y,10)/100*e.width;const E=parseInt(y,10);return Number.isNaN(E)?null:E}function h(){return t.resizable&&r.hasClass("view-resizable")&&r.hasClass("view-master-detail")}function m(y){if(!h())return;l.x=y.type==="touchstart"?y.targetTouches[0].pageX:y.pageX,l.y=y.type==="touchstart"?y.targetTouches[0].pageY:y.pageY,o=!1,i=!0;const E=r.children(".page-master");u=f(E.css("min-width")),p=f(E.css("max-width"))}function b(y){if(!i)return;y.f7PreventSwipePanel=!0;const E=y.type==="touchmove"?y.targetTouches[0].pageX:y.pageX;o||(d=s[0].offsetLeft+s[0].offsetWidth,r.addClass("view-resizing"),a.css("cursor","col-resize")),o=!0,y.preventDefault(),c=E-l.x;let k=d+c;u&&!Number.isNaN(u)&&(k=Math.max(k,u)),p&&!Number.isNaN(p)&&(k=Math.min(k,p)),k=Math.min(Math.max(k,0),e.width),t.resizableWidth=k,a[0].style.setProperty("--f7-page-master-width",`${k}px`),r.trigger("view:resize",k),t.emit("local::resize viewResize",t,k)}function w(){if(C("html").css("cursor",""),!i||!o){i=!1,o=!1;return}i=!1,o=!1,a[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`),r.removeClass("view-resizing")}function g(){t.resizableWidth&&(u=f(s.css("min-width")),p=f(s.css("max-width")),u&&!Number.isNaN(u)&&t.resizableWidthp&&(t.resizableWidth=Math.min(t.resizableWidth,p)),t.resizableWidth=Math.min(Math.max(t.resizableWidth,0),e.width),a[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`))}s=t.$el.children(".view-resize-handler"),s.length||(t.$el.append('
'),s=t.$el.children(".view-resize-handler")),t.$resizeHandlerEl=s,r.addClass("view-resizable");const v=n.passiveListener?{passive:!0}:!1;t.$el.on(e.touchEvents.start,".view-resize-handler",m,v),e.on("touchmove:active",b),e.on("touchend:passive",w),e.on("resize",g),t.on("beforeOpen",g),t.once("viewDestroy",()=>{r.removeClass("view-resizable"),t.$resizeHandlerEl.remove(),t.$el.off(e.touchEvents.start,".view-resize-handler",m,v),e.off("touchmove:active",b),e.off("touchend:passive",w),e.off("resize",g),t.off("beforeOpen",g)})}let hr=class extends Xe{constructor(e,n,a){a===void 0&&(a={}),super(a,[e]);const r=this,s=r.params.routerId,i={routes:[],routesAdd:[]};if(!s&&!C(n).length){let c="Framework7: can't create a View instance because ";throw c+=typeof n=="string"?`the selector "${n}" didn't match any element`:"el must be an HTMLElement or Dom7 object",new Error(c)}r.params=W({el:n},i,e.params.view,a),r.params.routes.length>0?r.routes=r.params.routes:r.routes=[].concat(e.routes,r.params.routesAdd),W(!1,r,{app:e,name:r.params.name,main:r.params.main,history:[],scrollHistory:{}}),r.useModules(),e.views.push(r),r.main&&(e.views.main=r),r.name&&(e.views[r.name]=r),r.index=e.views.indexOf(r);let o;return r.name?o=`view_${r.name}`:r.main?o="view_main":o=`view_${r.index}`,r.id=o,r.params.init&&(e.initialized?r.init():e.on("init",()=>{r.init()})),r}destroy(){let e=this;const n=e.app;e.$el.trigger("view:beforedestroy"),e.emit("local::beforeDestroy viewBeforeDestroy",e),n.off("resize",e.checkMasterDetailBreakpoint),e.main?(n.views.main=null,delete n.views.main):e.name&&(n.views[e.name]=null,delete n.views[e.name]),e.$el[0].f7View=null,delete e.$el[0].f7View,n.views.splice(n.views.indexOf(e),1),e.params.router&&e.router&&e.router.destroy(),e.emit("local::destroy viewDestroy",e),Object.keys(e).forEach(a=>{e[a]=null,delete e[a]}),e=null}checkMasterDetailBreakpoint(e){const n=this,a=n.app,r=n.$el.hasClass("view-master-detail"),s=a.width>=n.params.masterDetailBreakpoint&&n.$el.children(".page-master").length;typeof e>"u"&&s||e===!0?(n.$el.addClass("view-master-detail"),r||(n.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",n),n.$el.trigger("view:masterDetailBreakpoint"))):(n.$el.removeClass("view-master-detail"),r&&(n.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",n),n.$el.trigger("view:masterDetailBreakpoint")))}initMasterDetail(){const e=this,n=e.app;e.checkMasterDetailBreakpoint=e.checkMasterDetailBreakpoint.bind(e),e.checkMasterDetailBreakpoint(),e.params.masterDetailResizable&&Fy(e),n.on("resize",e.checkMasterDetailBreakpoint)}mount(e){const n=this,a=n.app,r=n.params.el||e,s=C(r);let i;typeof r=="string"?i=r:i=(s.attr("id")?`#${s.attr("id")}`:"")+(s.attr("class")?`.${s.attr("class").replace(/ /g,".").replace(".active","")}`:"");let o;a.theme==="ios"&&n.params.iosDynamicNavbar&&(o=s.children(".navbars").eq(0),o.length===0&&(o=C(''))),W(n,{$el:s,el:s[0],main:n.main||s.hasClass("view-main"),$navbarsEl:o,navbarsEl:o?o[0]:void 0,selector:i}),n.main&&(a.views.main=n),s&&s[0]&&(s[0].f7View=n),n.emit("local::mount viewMount",n)}init(e){const n=this;n.mount(e),n.params.router&&(n.params.masterDetailBreakpoint>0&&n.initMasterDetail(),n.params.initRouterOnTabShow&&n.$el.hasClass("tab")&&!n.$el.hasClass("tab-active")?n.$el.once("tab:show",()=>{n.router.init()}):n.router.init(),n.$el.trigger("view:init"),n.emit("local::init viewInit",n))}};hr.use(si);function zy(t){function e(n){const a=fe(),r=C(n.target),s=r.closest("a"),i=s.length>0,o=i&&s.attr("href");if(i&&(s.is(t.params.clicks.externalLinks)||o&&o.indexOf("javascript:")>=0)){const d=s.attr("target");o&&a.cordova&&a.cordova.InAppBrowser&&(d==="_system"||d==="_blank")?(n.preventDefault(),a.cordova.InAppBrowser.open(o,d)):o&&a.Capacitor&&a.Capacitor.Plugins&&a.Capacitor.Plugins.Browser&&(d==="_system"||d==="_blank")&&(n.preventDefault(),a.Capacitor.Plugins.Browser.open({url:o}));return}Object.keys(t.modules).forEach(d=>{const u=t.modules[d].clicks;u&&(n.preventF7Router||Object.keys(u).forEach(p=>{const f=r.closest(p).eq(0);f.length>0&&u[p].call(t,f,f.dataset(),n)}))});let l={};if(i&&(n.preventDefault(),l=s.dataset()),l.clickedEl=s[0],n.preventF7Router||s.hasClass("prevent-router")||s.hasClass("router-prevent"))return;if(o&&o.length>0&&o[0]!=="#"||s.hasClass("back")){let d;if(l.view&&l.view==="current"?d=t.views.current:l.view?d=C(l.view)[0].f7View:(d=r.parents(".view")[0]&&r.parents(".view")[0].f7View,d&&d.params.linksView&&(!s.hasClass("back")||s.hasClass("back")&&d.router.history.length===1)&&(typeof d.params.linksView=="string"?d=C(d.params.linksView)[0].f7View:d.params.linksView instanceof hr&&(d=d.params.linksView))),d||t.views.main&&(d=t.views.main),!d||!d.router)return;s[0].f7RouteProps&&(l.props=s[0].f7RouteProps),s.hasClass("back")?d.router.back(o,l):d.router.navigate(o,l)}}t.on("click",e)}const pg={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init(){zy(this)}}},fg={name:"history",static:{history:be},on:{init(){be.init(this)}}},gn={registrations:[],register(t,e){const n=this;return!("serviceWorker"in fe().navigator)||!n.serviceWorker.container?new Promise((r,s)=>{s(new Error("Service worker is not supported"))}):new Promise((r,s)=>{n.serviceWorker.container.register(t,e?{scope:e}:{}).then(i=>{gn.registrations.push(i),n.emit("serviceWorkerRegisterSuccess",i),r(i)}).catch(i=>{n.emit("serviceWorkerRegisterError",i),s(i)})})},unregister(t){const e=this;if(!("serviceWorker"in fe().navigator)||!e.serviceWorker.container)return new Promise((r,s)=>{s(new Error("Service worker is not supported"))});let a;return t?Array.isArray(t)?a=t:a=[t]:a=gn.registrations,Promise.all(a.map(r=>new Promise((s,i)=>{r.unregister().then(()=>{gn.registrations.indexOf(r)>=0&&gn.registrations.splice(gn.registrations.indexOf(r),1),e.emit("serviceWorkerUnregisterSuccess",r),s()}).catch(o=>{e.emit("serviceWorkerUnregisterError",r,o),i(o)})})))}},hg={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create(){const t=this,e=fe();W(t,{serviceWorker:{container:"serviceWorker"in e.navigator?e.navigator.serviceWorker:void 0,registrations:gn.registrations,register:gn.register.bind(t),unregister:gn.unregister.bind(t)}})},on:{init(){const t=fe();if(!("serviceWorker"in t.navigator))return;const e=this;if(e.device.cordova||t.Capacitor&&t.Capacitor.isNative||!e.serviceWorker.container)return;const n=e.params.serviceWorker.path,a=e.params.serviceWorker.scope;if(!n||Array.isArray(n)&&!n.length)return;(Array.isArray(n)?n:[n]).forEach(s=>{e.serviceWorker.register(s,a)})}}};function eo(t){t===void 0&&(t={});const e={__store:!0},n={...t.state||{}},a={...t.actions||{}},r={...t.getters||{}},s=W({},n);let i=[];const o={},l={};Object.keys(r).forEach(m=>{o[m]=[],l[m]=[]});const c=m=>r[m]({state:e.state}),d=(m,b)=>{o[m]||(o[m]=[]),b.forEach(w=>{o[m].indexOf(w)<0&&o[m].push(w)})},u=(m,b)=>{l[m]||(l[m]=[]),l[m].push(b)},p=m=>{Object.keys(o).filter(w=>o[w].indexOf(m)>=0).forEach(w=>{!l[w]||!l[w].length||l[w].forEach(g=>{g(c(w))})})},f=m=>{Object.keys(l).forEach(b=>{const w=l[b];w.indexOf(m)>=0&&w.splice(w.indexOf(m),1)})};e.__removeCallback=m=>{f(m)};const h=function(m,b){if(b===void 0&&(b=!0),m==="constructor")return;i=[];const w=c(m);d(m,i);const v={value:w,onUpdated:E=>{u(m,E)}};if(!b)return v;const y=E=>{v.value=E};return v.__callback=y,u(m,y),v};return e.state=new Proxy(s,{set:(m,b,w)=>(m[b]=w,p(b),!0),get:(m,b)=>(i.push(b),m[b])}),e.getters=new Proxy(r,{set:()=>!1,get:(m,b)=>{if(m[b])return h(b,!0)}}),e._gettersPlain=new Proxy(r,{set:()=>!1,get:(m,b)=>{if(m[b])return h(b,!1)}}),e.dispatch=(m,b)=>new Promise((w,g)=>{if(!a[m])throw g(),new Error(`Framework7: Store action "${m}" is not found`);const v=a[m]({state:e.state,dispatch:e.dispatch},b);w(v)}),e}const mg={name:"store",static:{createStore:eo},proto:{createStore:eo}},Bn=()=>{const t=fe();return t.Capacitor&&t.Capacitor.isNative&&t.Capacitor.Plugins&&t.Capacitor.Plugins.StatusBar},Ot={hide(){const t=fe();Ie().cordova&&t.StatusBar&&t.StatusBar.hide(),Bn()&&t.Capacitor.Plugins.StatusBar.hide()},show(){const t=fe();Ie().cordova&&t.StatusBar&&t.StatusBar.show(),Bn()&&t.Capacitor.Plugins.StatusBar.show()},onClick(){const t=this;let e;C(".popup.modal-in").length>0?e=C(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".panel.panel-in").length>0?e=C(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".views > .view.tab-active").length>0?e=C(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".views").length>0?e=C(".views").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):e=t.$el.children(".view").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"),e&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))},setTextColor(t){const e=fe();Ie().cordova&&e.StatusBar&&(t==="white"?e.StatusBar.styleLightContent():e.StatusBar.styleDefault()),Bn()&&(t==="white"?e.Capacitor.Plugins.StatusBar.setStyle({style:"DARK"}):e.Capacitor.Plugins.StatusBar.setStyle({style:"LIGHT"}))},setBackgroundColor(t){const e=fe();Ie().cordova&&e.StatusBar&&e.StatusBar.backgroundColorByHexString(t),Bn()&&e.Capacitor.Plugins.StatusBar.setBackgroundColor({color:t})},isVisible(){const t=fe(),e=Ie();return new Promise(n=>{e.cordova&&t.StatusBar&&n(t.StatusBar.isVisible),Bn()&&t.Capacitor.Plugins.StatusBar.getInfo().then(a=>{n(a.visible)}),n(!1)})},overlaysWebView(t){t===void 0&&(t=!0);const e=fe();Ie().cordova&&e.StatusBar&&e.StatusBar.overlaysWebView(t),Bn()&&e.Capacitor.Plugins.StatusBar.setOverlaysWebView({overlay:t})},init(){const t=this,e=fe(),n=Ie(),a=t.params.statusbar;if(!a.enabled)return;const r=n.cordova&&e.StatusBar,s=Bn();(r||s)&&(a.scrollTopOnClick&&C(e).on("statusTap",Ot.onClick.bind(t)),n.ios&&(a.iosOverlaysWebView?Ot.overlaysWebView(!0):Ot.overlaysWebView(!1),a.iosTextColor==="white"?Ot.setTextColor("white"):Ot.setTextColor("black")),n.android&&(a.androidOverlaysWebView?Ot.overlaysWebView(!0):Ot.overlaysWebView(!1),a.androidTextColor==="white"?Ot.setTextColor("white"):Ot.setTextColor("black"))),a.iosBackgroundColor&&n.ios&&Ot.setBackgroundColor(a.iosBackgroundColor),a.androidBackgroundColor&&n.android&&Ot.setBackgroundColor(a.androidBackgroundColor)}},gg={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create(){Ct(this,{statusbar:Ot})},on:{init(){const t=this;Ot.init.call(t)}}};function Ny(t){const e=C(".popover.modal-in .view"),n=C(".popup.modal-in .view"),a=C(".panel.panel-in .view");let r=C(".views");r.length===0&&(r=t.$el);let s=r.children(".view");if(s.length===0&&(s=r.children(".tabs").children(".view")),s.length>1&&s.hasClass("tab")&&(s=r.children(".view.tab-active"),s.length===0&&(s=r.children(".tabs").children(".view.tab-active"))),e.length>0&&e[0].f7View)return e[0].f7View;if(n.length>0&&n[0].f7View)return n[0].f7View;if(a.length>0&&a[0].f7View)return a[0].f7View;if(s.length>0){if(s.length===1&&s[0].f7View)return s[0].f7View;if(s.length>1)return t.views.main}}const bg={name:"view",params:{view:{init:!0,initRouterOnTabShow:!1,name:void 0,main:!1,router:!0,linksView:null,xhrCache:!0,xhrCacheIgnore:[],xhrCacheIgnoreGetParameters:!1,xhrCacheDuration:1e3*60*10,componentCache:!0,preloadPreviousPage:!0,allowDuplicateUrls:!1,reloadPages:!1,reloadDetail:!1,masterDetailBreakpoint:0,masterDetailResizable:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,restoreScrollTopOnBack:!0,unloadTabContent:!0,passRouteQueryToRequest:!0,passRouteParamsToRequest:!1,loadInitialPage:!0,iosSwipeBack:!0,iosSwipeBackAnimateShadow:!0,iosSwipeBackAnimateOpacity:!0,iosSwipeBackActiveArea:30,iosSwipeBackThreshold:0,mdSwipeBack:!1,mdSwipeBackAnimateShadow:!0,mdSwipeBackAnimateOpacity:!1,mdSwipeBackActiveArea:30,mdSwipeBackThreshold:0,browserHistory:!1,browserHistoryRoot:void 0,browserHistoryAnimate:!0,browserHistoryAnimateOnLoad:!1,browserHistorySeparator:"#!",browserHistoryOnLoad:!0,browserHistoryInitialMatch:!1,browserHistoryStoreHistory:!0,browserHistoryTabs:"replace",animate:!0,iosDynamicNavbar:!0,iosAnimateNavbarBackIcon:!0,iosPageLoadDelay:0,mdPageLoadDelay:0,routesBeforeEnter:null,routesBeforeLeave:null}},static:{View:hr},create(){const t=this;W(t,{views:W([],{create(e,n){return new hr(t,e,n)},get(e){const n=C(e);if(n.length&&n[0].f7View)return n[0].f7View}})}),Object.defineProperty(t.views,"current",{enumerable:!0,configurable:!0,get(){return Ny(t)}}),t.view=t.views},on:{init(){const t=this;C(".view-init").each(e=>{if(e.f7View)return;const n=C(e).dataset();t.views.create(e,n)})},"modalOpen panelOpen":function(e){const n=this;e.$el.find(".view-init").each(a=>{if(a.f7View)return;const r=C(a).dataset();n.views.create(a,r)})},"modalBeforeDestroy panelBeforeDestroy":function(e){!e||!e.$el||e.$el.find(".view-init").each(n=>{const a=n.f7View;a&&a.destroy()})}},vnode:{"view-init":{insert(t){const e=this,n=t.elm;if(n.f7View)return;const a=C(n).dataset();e.views.create(n,a)},destroy(t){const n=t.elm.f7View;n&&n.destroy()}}}},Vy={size(t){const e=this;let n=C(t);if(n.hasClass("navbars")){n=n.children(".navbar").each(T=>{e.navbar.size(T)});return}const a=n.children(".navbar-inner");if(!a.length)return;const r=a.hasClass("navbar-inner-centered-title")||e.params.navbar[`${e.theme}CenterTitle`],s=e.theme==="ios"&&!e.params.navbar[`${e.theme}CenterTitle`];if(!r&&!s||n.parents(".tab:not(.tab-active)").length>0||n.parents(".popup:not(.modal-in)").length>0)return;e.theme!=="ios"&&e.params.navbar[`${e.theme}CenterTitle`]&&a.addClass("navbar-inner-centered-title"),e.theme==="ios"&&!e.params.navbar.iosCenterTitle&&a.addClass("navbar-inner-left-title");const i=n.parents(".view").eq(0),o=e.rtl?a.children(".right"):a.children(".left"),l=e.rtl?a.children(".left"):a.children(".right"),c=a.children(".title"),d=a.children(".subnavbar"),u=o.length===0,p=l.length===0,f=u?0:o.outerWidth(!0),h=p?0:l.outerWidth(!0),m=c.outerWidth(!0),b=a.styles(),g=a[0].offsetWidth-parseInt(b.paddingLeft,10)-parseInt(b.paddingRight,10),v=n.hasClass("navbar-previous"),y=a.hasClass("sliding");let E,k;i.length>0&&i[0].f7View&&(E=i[0].f7View.router,k=E&&E.dynamicNavbar);let $,M;p&&($=g-m),u&&($=0),!u&&!p&&($=(g-h-m+f)/2);let x=(g-m)/2;g-f-h>m?(xg-h&&(x=g-h-m),M=x-$):M=0;const F=e.rtl?-1:1;if(k&&e.theme==="ios"){if(c.hasClass("sliding")||c.length>0&&y){let T=-($+M)*F;const I=(g-$-M-m)*F;if(v&&E&&E.params.iosAnimateNavbarBackIcon){const B=n.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");B.length>0&&(T+=B[0].offsetLeft)}c[0].f7NavbarLeftOffset=T,c[0].f7NavbarRightOffset=I}if(!u&&(o.hasClass("sliding")||y)){if(e.rtl)o[0].f7NavbarLeftOffset=-(g-o[0].offsetWidth)/2*F,o[0].f7NavbarRightOffset=f*F;else if(o[0].f7NavbarLeftOffset=-f,o[0].f7NavbarRightOffset=(g-o[0].offsetWidth)/2,E&&E.params.iosAnimateNavbarBackIcon&&o.find(".back .icon").length>0&&o.find(".back .icon ~ span").length){const T=o[0].f7NavbarLeftOffset,I=o[0].f7NavbarRightOffset;o[0].f7NavbarLeftOffset=0,o[0].f7NavbarRightOffset=0,o.find(".back .icon ~ span")[0].f7NavbarLeftOffset=T,o.find(".back .icon ~ span")[0].f7NavbarRightOffset=I-o.find(".back .icon")[0].offsetWidth}}!p&&(l.hasClass("sliding")||y)&&(e.rtl?(l[0].f7NavbarLeftOffset=-h*F,l[0].f7NavbarRightOffset=(g-l[0].offsetWidth)/2*F):(l[0].f7NavbarLeftOffset=-(g-l[0].offsetWidth)/2,l[0].f7NavbarRightOffset=h)),d.length&&(d.hasClass("sliding")||y)&&(d[0].f7NavbarLeftOffset=e.rtl?d[0].offsetWidth:-d[0].offsetWidth,d[0].f7NavbarRightOffset=-d[0].f7NavbarLeftOffset)}if(r){let T=M;e.rtl&&u&&p&&c.length>0&&(T=-T),c.css({left:`${T}px`})}},hide(t,e,n,a){e===void 0&&(e=!0),n===void 0&&(n=!1),a===void 0&&(a=!1);const r=this;let s=C(t);const i=s.hasClass("navbar")&&s.parent(".navbars").length&&!a;if(i&&(s=s.parents(".navbars")),!s.length||s.hasClass("navbar-hidden"))return;let o=`navbar-hidden${e?" navbar-transitioning":""}`;(i?s.find(".navbar-current .title-large").length:s.find(".title-large").length)&&(o+=" navbar-large-hidden"),n&&(o+=" navbar-hidden-statusbar"),s.transitionEnd(()=>{s.removeClass("navbar-transitioning")}),s.addClass(o),i?s.children(".navbar").each(c=>{C(c).trigger("navbar:hide"),r.emit("navbarHide",c)}):(s.trigger("navbar:hide"),r.emit("navbarHide",s[0]))},show(t,e,n){t===void 0&&(t=".navbar-hidden"),e===void 0&&(e=!0),n===void 0&&(n=!1);const a=this;let r=C(t);const s=r.hasClass("navbar")&&r.parent(".navbars").length&&!n;s&&(r=r.parents(".navbars")),r.length&&r.hasClass("navbar-hidden")&&(e&&(r.addClass("navbar-transitioning"),r.transitionEnd(()=>{r.removeClass("navbar-transitioning")})),r.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),s?r.children(".navbar").each(i=>{C(i).trigger("navbar:show"),a.emit("navbarShow",i)}):(r.trigger("navbar:show"),a.emit("navbarShow",r[0])))},getElByPage(t){let e,n,a;if(t.$navbarEl||t.$el?(a=t,e=t.$el):(e=C(t),e.length>0&&(a=e[0].f7Page)),a&&a.$navbarEl&&a.$navbarEl.length>0?n=a.$navbarEl:e&&(n=e.children(".navbar")),!(!n||n&&n.length===0))return n[0]},getPageByEl(t){const e=C(t);if(e.parents(".page").length)return e.parents(".page")[0];let n;return e.parents(".view").find(".page").each(a=>{a&&a.f7Page&&a.f7Page.navbarEl&&e[0]===a.f7Page.navbarEl&&(n=a)}),n},collapseLargeTitle(t){const e=this;let n=C(t);if(n.hasClass("navbars")&&(n=n.find(".navbar"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const a=C(e.navbar.getPageByEl(n));n.addClass("navbar-large-collapsed"),a.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),e.emit("pageNavbarLargeCollapsed",a[0]),n.trigger("navbar:collapse"),e.emit("navbarCollapse",n[0])},expandLargeTitle(t){const e=this;let n=C(t);if(n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const a=C(e.navbar.getPageByEl(n));n.removeClass("navbar-large-collapsed"),a.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),e.emit("pageNavbarLargeExpanded",a[0]),n.trigger("navbar:expand"),e.emit("navbarExpand",n[0])},toggleLargeTitle(t){const e=this;let n=C(t);n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length)||(n.hasClass("navbar-large-collapsed")?e.navbar.expandLargeTitle(n):e.navbar.collapseLargeTitle(n))},initNavbarOnScroll(t,e,n,a,r){const s=this,i=Ye(),o=C(t),l=C(e),c=l.find(".title-large"),d=c.length||l.hasClass(".navbar-large");let u=44;const p=s.params.navbar.snapPageScrollToLargeTitle,f=s.params.navbar.snapPageScrollToTransparentNavbar;let h,m,b,w,g,v,y,E,k,$;(a||n&&d)&&(k=l.css("--f7-navbar-large-title-height"),k&&k.indexOf("px")>=0?(k=parseInt(k,10),Number.isNaN(k)&&c.length?k=c[0].offsetHeight:Number.isNaN(k)&&(s.theme==="ios"?k=52:s.theme==="md"&&(k=88))):c.length?k=c[0].offsetHeight:s.theme==="ios"?k=52:s.theme==="md"&&(k=88)),n&&d&&(u+=k);let M,x,F,T;const I=70,B=300;function P(){o.find(".page-content").each(se=>{se.f7ScrollableDistance=se.scrollHeight-se.offsetHeight})}function R(){l.hasClass("with-searchbar-expandable-enabled")||!x||m<0||(m>=k/2&&m=$/2&&m<$?C(x).scrollTop($,100):m<$&&C(x).scrollTop(0,200))}function H(){const se=l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden");if(l.hasClass("with-searchbar-expandable-enabled")||se)return;$||($=e.offsetHeight);let ie=m/$;const le=l.hasClass("navbar-transparent-visible");if(ie=Math.max(Math.min(ie,1),0),le&&ie===1||!le&&ie===0){l.find(".navbar-bg, .title").css("opacity","");return}if(le&&ie===0){l.trigger("navbar:transparenthide"),s.emit("navbarTransparentHide",l[0]),l.removeClass("navbar-transparent-visible"),l.find(".navbar-bg, .title").css("opacity","");return}if(!le&&ie===1){l.trigger("navbar:transparentshow"),s.emit("navbarTransparentShow",l[0]),l.addClass("navbar-transparent-visible"),l.find(".navbar-bg, .title").css("opacity","");return}l.find(".navbar-bg, .title").css("opacity",ie),f&&(i.touch?T&&(clearTimeout(T),T=null,T=setTimeout(()=>{V(),clearTimeout(T),T=null},I)):(clearTimeout(F),F=setTimeout(()=>{V()},B)))}let D=null,O=null;function _(se){if(l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"))return;const ie=l.hasClass("navbar-large-transparent")||l.hasClass("navbar-large")&&l.hasClass("navbar-transparent");D=O;const le=Math.min(k,se.f7ScrollableDistance||k);O=Math.min(Math.max(m/le,0),1);const me=D>0&&D<1;if(l.hasClass("with-searchbar-expandable-enabled"))return;E=l.hasClass("navbar-large-collapsed");const ce=l.find(".navbar-bg");O===0&&E?s.navbar.expandLargeTitle(l[0]):O===1&&!E&&s.navbar.collapseLargeTitle(l[0]),O===0&&E||O===0&&me||O===1&&!E||O===1&&me?(s.theme==="md"&&l.find(".navbar-inner").css("overflow",""),l.find(".title").css("opacity",""),l.find(".title-large-text, .subnavbar").css("transform",""),l.find(".title-large-text").css("opacity",""),ie&&ce.css("opacity",""),ce.css("transform","")):O>0&&O<1&&(s.theme==="md"&&l.find(".navbar-inner").css("overflow","visible"),l.find(".title").css("opacity",-.5+O*1.5),l.find(".title-large-text, .subnavbar").css("transform",`translate3d(0px, ${-1*O*k}px, 0)`),l.find(".title-large-text").css("opacity",1-O*2),ie&&ce.css("opacity",O),ce.css("transform",`translate3d(0px, ${-1*O*k}px, 0)`)),p&&(i.touch?T&&(clearTimeout(T),T=null,T=setTimeout(()=>{R(),clearTimeout(T),T=null},I)):(clearTimeout(F),F=setTimeout(()=>{R()},B)))}function N(){o.hasClass("page-with-card-opened")||(b=x.scrollHeight,w=x.offsetHeight,g=m+w>=b,y=l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"),g?s.params.navbar.showOnPageScrollEnd&&(v="show"):h>m?s.params.navbar.showOnPageScrollTop||m<=u?v="show":v="hide":m>u?v="hide":v="show",v==="show"&&y?(s.navbar.show(l,!0,!0),y=!1):v==="hide"&&!y&&(s.navbar.hide(l,!0,!1,!0),y=!0),h=m)}function G(se){x=this,!(se&&se.target&&se.target!==x)&&(m=x.scrollTop,M=m,a?_(x):r&&H(),!o.hasClass("page-previous")&&n&&N())}function ee(){M=!1}function X(){clearTimeout(T),T=null,T=setTimeout(()=>{M!==!1&&(r&&!a?V():R(),clearTimeout(T),T=null)},I)}o.on("scroll",".page-content",G,!0),i.touch&&(a&&p||r&&f)&&(s.on("touchstart:passive",ee),s.on("touchend:passive",X)),P(),(a||r)&&o.find(".page-content").each(se=>{se.scrollTop>0&&G.call(se)}),s.on("resize",P),o[0].f7DetachNavbarScrollHandlers=function(){s.off("resize",P),delete o[0].f7DetachNavbarScrollHandlers,o.off("scroll",".page-content",G,!0),i.touch&&(a&&p||r&&f)&&(s.off("touchstart:passive",ee),s.off("touchend:passive",X))}}},vg={name:"navbar",create(){Ct(this,{navbar:Vy})},params:{navbar:{scrollTopOnTitleClick:!0,iosCenterTitle:!0,mdCenterTitle:!1,hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0,collapseLargeTitleOnScroll:!0,snapPageScrollToLargeTitle:!0,snapPageScrollToTransparentNavbar:!0}},on:{"panelBreakpoint panelCollapsedBreakpoint panelResize viewResize resize viewMasterDetailBreakpoint":function(){const e=this;C(".navbar").each(n=>{e.navbar.size(n)})},pageBeforeRemove(t){t.$el[0].f7DetachNavbarScrollHandlers&&t.$el[0].f7DetachNavbarScrollHandlers()},pageBeforeIn(t){const e=this;if(e.theme!=="ios")return;let n;const a=t.$el.parents(".view")[0].f7View,r=e.navbar.getElByPage(t);if(r?n=C(r).parents(".navbars"):n=t.$el.parents(".view").children(".navbars"),t.$el.hasClass("no-navbar")||a.router.dynamicNavbar&&!r){const s=!!(t.pageFrom&&t.router.history.length>0);e.navbar.hide(n,s)}else e.navbar.show(n)},pageReinit(t){const e=this,n=C(e.navbar.getElByPage(t));!n||n.length===0||e.navbar.size(n)},pageInit(t){const e=this,n=C(e.navbar.getElByPage(t));if(!n||n.length===0)return;e.navbar.size(n);let a;n.find(".title-large").length>0&&n.addClass("navbar-large"),n.hasClass("navbar-large")&&(e.params.navbar.collapseLargeTitleOnScroll&&(a=!0),t.$el.addClass("page-with-navbar-large"));let r;!a&&n.hasClass("navbar-transparent")&&(r=!0);let s;(e.params.navbar.hideOnPageScroll||t.$el.find(".hide-navbar-on-scroll").length||t.$el.hasClass("hide-navbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll"))&&(t.$el.find(".keep-navbar-on-scroll").length||t.$el.hasClass("keep-navbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll")?s=!1:s=!0),(a||s||r)&&e.navbar.initNavbarOnScroll(t.el,n[0],s,a,r)},"panelOpen panelSwipeOpen modalOpen":function(e){const n=this;e.$el.find(".navbar:not(.navbar-previous)").each(a=>{n.navbar.size(a)})},tabShow(t){const e=this;C(t).find(".navbar:not(.navbar-previous)").each(n=>{e.navbar.size(n)})}},clicks:{".navbar .title":function(e,n,a){if(!this.params.navbar.scrollTopOnTitleClick||C(a.target).closest("a, button").length>0)return;let s;const i=e.parents(".navbar"),o=i.parents(".navbars");s=i.parents(".page-content"),s.length===0&&(i.parents(".page").length>0&&(s=i.parents(".page").find(".page-content")),s.length===0&&o.length&&o.nextAll(".page-current").length>0&&(s=o.nextAll(".page-current").find(".page-content")),s.length===0&&i.nextAll(".page-current").length>0&&(s=i.nextAll(".page-current").find(".page-content"))),s&&s.length>0&&(s.hasClass("tab")&&(s=s.parent(".tabs").children(".page-content.tab-active")),s.length>0&&s.scrollTop(0,300))}},vnode:{navbar:{postpatch(t){this.navbar.size(t.elm)}}}},_y={setHighlight(t){const e=this,n=C(t);if(e.theme==="ios"&&!n.hasClass("tabbar-highlight")||n.length===0||!(n.hasClass("tabbar")||n.hasClass("tabbar-icons")))return;let a=n.find(".tab-link-highlight");const r=n.find(".tab-link").length;if(r===0){a.remove();return}a.length===0?(n.children(".toolbar-inner").append(''),a=n.find(".tab-link-highlight")):a.next().length&&n.children(".toolbar-inner").append(a);const s=n.find(".tab-link-active");let i,o;if(n.hasClass("tabbar-scrollable")&&s&&s[0])i=`${s[0].offsetWidth}px`,o=`${s[0].offsetLeft}px`;else{const l=s.index();i=`${100/r}%`,o=`${(e.rtl?-l:l)*100}%`}Tt(()=>{a.css("width",i).transform(`translate3d(${o},0,0)`)})},init(t){this.toolbar.setHighlight(t)},hide(t,e){e===void 0&&(e=!0);const n=this,a=C(t);if(a.hasClass("toolbar-hidden"))return;const r=`toolbar-hidden${e?" toolbar-transitioning":""}`;a.transitionEnd(()=>{a.removeClass("toolbar-transitioning")}),a.addClass(r),a.trigger("toolbar:hide"),n.emit("toolbarHide",a[0])},show(t,e){e===void 0&&(e=!0);const n=this,a=C(t);a.hasClass("toolbar-hidden")&&(e&&(a.addClass("toolbar-transitioning"),a.transitionEnd(()=>{a.removeClass("toolbar-transitioning")})),a.removeClass("toolbar-hidden"),a.trigger("toolbar:show"),n.emit("toolbarShow",a[0]))},initToolbarOnScroll(t){const e=this,n=C(t);let a=n.parents(".view").children(".toolbar");if(a.length===0&&(a=n.find(".toolbar")),a.length===0&&(a=n.parents(".views").children(".tabbar, .tabbar-icons")),a.length===0)return;let r,s,i,o,l,c,d;function u(p){if(n.hasClass("page-with-card-opened")||n.hasClass("page-previous"))return;const f=this;p&&p.target&&p.target!==f||(s=f.scrollTop,i=f.scrollHeight,o=f.offsetHeight,l=s+o>=i,d=a.hasClass("toolbar-hidden"),l?e.params.toolbar.showOnPageScrollEnd&&(c="show"):r>s?e.params.toolbar.showOnPageScrollTop||s<=44?c="show":c="hide":s>44?c="hide":c="show",c==="show"&&d?(e.toolbar.show(a),d=!1):c==="hide"&&!d&&(e.toolbar.hide(a),d=!0),r=s)}n.on("scroll",".page-content",u,!0),n[0].f7ScrollToolbarHandler=u}},wg={name:"toolbar",create(){Ct(this,{toolbar:_y})},params:{toolbar:{hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0}},on:{pageBeforeRemove(t){t.$el[0].f7ScrollToolbarHandler&&t.$el.off("scroll",".page-content",t.$el[0].f7ScrollToolbarHandler,!0)},pageBeforeIn(t){const e=this;let n=t.$el.parents(".view").children(".toolbar");n.length===0&&(n=t.$el.parents(".views").children(".tabbar, .tabbar-icons")),n.length===0&&(n=t.$el.find(".toolbar")),n.length!==0&&(t.$el.hasClass("no-toolbar")?e.toolbar.hide(n):e.toolbar.show(n))},pageInit(t){const e=this;if(t.$el.find(".tabbar, .tabbar-icons").each(n=>{e.toolbar.init(n)}),e.params.toolbar.hideOnPageScroll||t.$el.find(".hide-toolbar-on-scroll").length||t.$el.hasClass("hide-toolbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll")){if(t.$el.find(".keep-toolbar-on-scroll").length||t.$el.hasClass("keep-toolbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll"))return;e.toolbar.initToolbarOnScroll(t.el)}},init(){const t=this;t.$el.find(".tabbar, .tabbar-icons").each(e=>{t.toolbar.init(e)})}},vnode:{tabbar:{insert(t){this.toolbar.init(t.elm)}}}},yg={name:"subnavbar",on:{pageInit(t){t.$navbarEl&&t.$navbarEl.length&&t.$navbarEl.find(".subnavbar").length&&t.$el.addClass("page-with-subnavbar"),t.$el.find(".subnavbar").filter(n=>C(n).parents(".page")[0]===t.$el[0]).length&&t.$el.addClass("page-with-subnavbar")}}};let to=class{constructor(e,n,a,r){const s=this;if(!n)return;const{left:i,top:o,width:l,height:c}=n[0].getBoundingClientRect(),d={x:a-i,y:r-o};let u=Math.max((c**2+l**2)**.5,48),p=!1;const f=e.params.touch.touchRippleInsetElements||"";if(f&&n.is(f)&&(p=!0),p&&(u=Math.max(Math.min(l,c),48)),!p&&n.css("overflow")==="hidden"){const h=((d.x-l/2)**2+(d.y-c/2)**2)**.5,m=(u/2+h)/(u/2);s.rippleTransform=`translate3d(0px, 0px, 0) scale(${m*2})`}else s.rippleTransform=`translate3d(${-d.x+l/2}px, ${-d.y+c/2}px, 0) scale(1)`;return p&&n.addClass("ripple-inset"),s.$rippleWaveEl=C(`
`),n.prepend(s.$rippleWaveEl),s.$rippleWaveEl.animationEnd(()=>{s.$rippleWaveEl&&(s.$rippleWaveEl.hasClass("ripple-wave-out")||(s.$rippleWaveEl.addClass("ripple-wave-in"),s.shouldBeRemoved&&s.out()))}),s}destroy(){let e=this;e.$rippleWaveEl&&e.$rippleWaveEl.remove(),Object.keys(e).forEach(n=>{e[n]=null,delete e[n]}),e=null}out(){const e=this,{$rippleWaveEl:n}=this;clearTimeout(e.removeTimeout),n.addClass("ripple-wave-out"),e.removeTimeout=setTimeout(()=>{e.destroy()},300),n.animationEnd(()=>{clearTimeout(e.removeTimeout),e.destroy()})}remove(){const e=this;e.shouldBeRemoved||(e.removeTimeout=setTimeout(()=>{e.destroy()},400),e.shouldBeRemoved=!0,e.$rippleWaveEl.hasClass("ripple-wave-in")&&e.out())}};const Eg={name:"touch-ripple",static:{TouchRipple:to},create(){const t=this;t.touchRipple={create(){for(var e=arguments.length,n=new Array(e),a=0;a0?f=!0:ha.length>0&&ha.forEach(h=>{h.type==="dialog"&&(f=!0)}),f)return Gn.push(a),a}const d=i.parent(),u=i.parents(r).length>0;d.is(a.$containerEl)||(a.$containerEl.append(i),a.once(`${l}Closed`,()=>{u?d.append(i):i.remove()})),i.show(),a.params.backdrop&&(a.params.backdropUnique||a.forceBackdropUnique)&&a.$backdropEl&&a.$backdropEl.insertBefore(i),a._clientLeft=i[0].clientLeft;function p(){i.hasClass("modal-out")?a.onClosed():i.hasClass("modal-in")&&a.onOpened()}return c?(o&&(o.removeClass("not-animated"),o.addClass("backdrop-in")),i.animationEnd(()=>{p()}),i.transitionEnd(()=>{p()}),i.removeClass("modal-out not-animated").addClass("modal-in"),a.onOpen()):(o&&o.addClass("backdrop-in not-animated"),i.removeClass("modal-out").addClass("modal-in not-animated"),a.onOpen(),a.onOpened()),a}close(e){const n=this,a=n.$el,r=n.$backdropEl;let s=!0;if(typeof e<"u"?s=e:typeof n.params.animate<"u"&&(s=n.params.animate),!a||!a.hasClass("modal-in"))return Gn.indexOf(n)>=0&&Gn.splice(Gn.indexOf(n),1),n;if(r){let o=!0;n.type==="popup"&&n.$el.prevAll(".popup.modal-in").add(n.$el.nextAll(".popup.modal-in")).each(l=>{const c=l.f7Modal;c&&c.params.closeByBackdropClick&&c.params.backdrop&&c.backdropEl===n.backdropEl&&(o=!1)}),o&&(r[s?"removeClass":"addClass"]("not-animated"),r.removeClass("backdrop-in"))}a[s?"removeClass":"addClass"]("not-animated");function i(){a.hasClass("modal-out")?n.onClosed():a.hasClass("modal-in")&&n.onOpened()}return s?(a.animationEnd(()=>{i()}),a.transitionEnd(()=>{i()}),a.removeClass("modal-in").addClass("modal-out"),n.onClose()):(a.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),n.onClose(),n.onClosed()),n.type==="dialog"&&jy(),n}destroy(){const e=this;e.destroyed||(e.emit(`local::beforeDestroy modalBeforeDestroy ${e.type}BeforeDestroy`,e),e.$el&&(e.$el.trigger(`modal:beforedestroy ${e.type.toLowerCase()}:beforedestroy`),e.$el.length&&e.$el[0].f7Modal&&delete e.$el[0].f7Modal),Ze(e),e.destroyed=!0)}};class no extends en{constructor(e,n){const a=W({backdrop:!0,closeByBackdropClick:!0,on:{}},n);super(e,a);const r=this;r.params=a;let s;if(r.params.el?s=C(r.params.el):s=C(r.params.content),s&&s.length>0&&s[0].f7Modal)return s[0].f7Modal;if(s.length===0)return r.destroy();let i;r.params.backdrop&&(i=e.$el.children(".custom-modal-backdrop"),i.length===0&&(i=C('
'),e.$el.append(i)));function o(l){!r||r.destroyed||i&&l.target===i[0]&&r.close()}return r.on("customModalOpened",()=>{r.params.closeByBackdropClick&&r.params.backdrop&&e.on("click",o)}),r.on("customModalClose",()=>{r.params.closeByBackdropClick&&r.params.backdrop&&e.off("click",o)}),W(r,{app:e,$el:s,el:s[0],$backdropEl:i,backdropEl:i&&i[0],type:"customModal"}),s[0].f7Modal=r,r}}const Cg={name:"modal",static:{Modal:en,CustomModal:no},create(){const t=this;t.customModal={create(e){return new no(t,e)}}},params:{modal:{queueDialogs:!0}}};nt.use([rg,sg,ig,og,lg,pg,si,fg,hg,mg,gg,bg,vg,wg,yg,Eg,Cg]);function Ra(t){const e={};return Object.keys(t).forEach(n=>{typeof t[n]<"u"&&(e[n]=t[n])}),e}function He(t){return typeof t=="string"&&t!==""}function Ga(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object}function kg(){return Date.now()}function kn(){let t=!0,e,n;for(var a=arguments.length,r=new Array(a),s=0;s{typeof s=="object"&&s.constructor===Object?Object.keys(s).forEach(i=>{s[i]&&t.push(i)}):s&&t.push(s)});const r=[];return t.forEach(s=>{r.indexOf(s)<0&&r.push(s)}),r.join(" ")}let xs=0,Ss=0;function qy(){xs=0,Ss=0}function ao(){return xs+=1,`${kg()}_${xs}`}function nr(){return Ss+=1,`${kg()}_${Ss}`}let Y,Ft;const St={},vt={views:[],tabs:[],modals:null},$g=()=>{Y&&(St.ios=Y.theme==="ios",St.md=Y.theme==="md")},Wy=()=>{qy(),delete St.ios,delete St.md,vt.views=[],vt.tabs=[],vt.modals=null},Yy=()=>{Ft=new nt.Events},ro=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n=!0);const a=kn({},e,{el:t,init:n});if(typeof e.store<"u"&&(a.store=e.store),a.routes||(a.routes=[]),a.userAgent&&(a.theme==="auto"||!a.theme)){const s=nt.getDevice({userAgent:a.userAgent},!0);St.ios=!!s.ios,St.md=!St.ios}if(Y&&typeof window<"u")return;typeof window>"u"&&Wy();const r=new nt(a);Y=r,$g(),r.initialized?(Y=r,Ft.emit("ready",Y)):r.on("init",()=>{Y=r,Ft.emit("ready",Y)})},pt=t=>{t&&(Y&&Y.initialized?t(Y):Ft.once("ready",t))};function Fe(t){const{color:e,textColor:n,bgColor:a,borderColor:r,rippleColor:s,dark:i}=t;return{dark:i,[`color-${e}`]:e,[`text-color-${n}`]:n,[`bg-color-${a}`]:a,[`border-color-${r}`]:r,[`ripple-color-${s}`]:s}}const ze={color:String,colorTheme:String,textColor:String,bgColor:String,borderColor:String,rippleColor:String,dark:Boolean},Xy={icon:String,iconMaterial:String,iconF7:String,iconIos:String,iconMd:String,iconColor:String,iconSize:[String,Number],iconBadge:[String,Number],iconBadgeColor:String},xg={back:Boolean,external:Boolean,force:Boolean,animate:{type:Boolean,default:void 0},ignoreCache:Boolean,reloadCurrent:Boolean,reloadAll:Boolean,reloadPrevious:Boolean,reloadDetail:{type:Boolean,default:void 0},routeTabId:String,view:String,routeProps:Object,preventRouter:Boolean,transition:String,openIn:String};function Sg(t){const{force:e,reloadCurrent:n,reloadPrevious:a,reloadAll:r,reloadDetail:s,animate:i,ignoreCache:o,routeTabId:l,view:c,transition:d,openIn:u}=t;let p;"animate"in t&&typeof i<"u"&&(p=i.toString());let f;return"reloadDetail"in t&&typeof s<"u"&&(f=s.toString()),{"data-force":e||void 0,"data-reload-current":n||void 0,"data-reload-all":r||void 0,"data-reload-previous":a||void 0,"data-reload-detail":f,"data-animate":p,"data-ignore-cache":o||void 0,"data-route-tab-id":l||void 0,"data-view":He(c)?c:void 0,"data-transition":He(d)?d:void 0,"data-open-in":He(u)?u:void 0}}function Tg(t){const{back:e,linkBack:n,external:a,preventRouter:r}=t;return{back:e||n,external:a,"prevent-router":r}}const Pg={searchbarEnable:[Boolean,String],searchbarDisable:[Boolean,String],searchbarClear:[Boolean,String],searchbarToggle:[Boolean,String],panelOpen:[Boolean,String],panelClose:[Boolean,String],panelToggle:[Boolean,String],popupOpen:[Boolean,String],popupClose:[Boolean,String],actionsOpen:[Boolean,String],actionsClose:[Boolean,String],popoverOpen:[Boolean,String],popoverClose:[Boolean,String],loginScreenOpen:[Boolean,String],loginScreenClose:[Boolean,String],sheetOpen:[Boolean,String],sheetClose:[Boolean,String],sortableEnable:[Boolean,String],sortableDisable:[Boolean,String],sortableToggle:[Boolean,String],cardOpen:[Boolean,String],cardPreventOpen:[Boolean,String],cardClose:[Boolean,String]};function Mg(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:a,searchbarToggle:r,panelOpen:s,panelClose:i,panelToggle:o,popupOpen:l,popupClose:c,actionsOpen:d,actionsClose:u,popoverOpen:p,popoverClose:f,loginScreenOpen:h,loginScreenClose:m,sheetOpen:b,sheetClose:w,sortableEnable:g,sortableDisable:v,sortableToggle:y,cardOpen:E,cardClose:k}=t;return{"data-searchbar":He(e)&&e||He(n)&&n||He(a)&&a||He(r)&&r||void 0,"data-panel":He(s)&&s||He(i)&&i||He(o)&&o||void 0,"data-popup":He(l)&&l||He(c)&&c||void 0,"data-actions":He(d)&&d||He(u)&&u||void 0,"data-popover":He(p)&&p||He(f)&&f||void 0,"data-sheet":He(b)&&b||He(w)&&w||void 0,"data-login-screen":He(h)&&h||He(m)&&m||void 0,"data-sortable":He(g)&&g||He(v)&&v||He(y)&&y||void 0,"data-card":He(E)&&E||He(k)&&k||void 0}}function Bg(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:a,searchbarToggle:r,panelOpen:s,panelClose:i,panelToggle:o,popupOpen:l,popupClose:c,actionsClose:d,actionsOpen:u,popoverOpen:p,popoverClose:f,loginScreenOpen:h,loginScreenClose:m,sheetOpen:b,sheetClose:w,sortableEnable:g,sortableDisable:v,sortableToggle:y,cardOpen:E,cardPreventOpen:k,cardClose:$}=t;return{"searchbar-enable":e||e==="","searchbar-disable":n||n==="","searchbar-clear":a||a==="","searchbar-toggle":r||r==="","panel-close":i||i==="","panel-open":s||s==="","panel-toggle":o||o==="","popup-close":c||c==="","popup-open":l||l==="","actions-close":d||d==="","actions-open":u||u==="","popover-close":f||f==="","popover-open":p||p==="","sheet-close":w||w==="","sheet-open":b||b==="","login-screen-close":m||m==="","login-screen-open":h||h==="","sortable-enable":g||g==="","sortable-disable":v||v==="","sortable-toggle":y||y==="","card-close":$||$==="","card-open":E||E==="","card-prevent-open":k||k===""}}const Ir=function(t){let{isOpened:e,isClosing:n}=t===void 0?{}:t;return{"modal-in":e&&!n,"modal-out":n}};function Uy(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default")],2)}const Gy={name:"f7-popup",render:Uy,props:{tabletFullscreen:Boolean,opened:Boolean,animate:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},swipeToClose:{type:[Boolean,String],default:!1},swipeHandler:{type:[String,Object],default:void 0},push:Boolean,containerEl:{type:[String,Object],default:void 0},...ze},emits:["popup:swipestart","popup:swipemove","popup:swipeend","popup:swipeclose","popup:open","popup:opened","popup:close","popup:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=Le(null);let r=t.opened,s=!1;const i=Le(null),o=b=>{n("popup:swipestart",b)},l=b=>{n("popup:swipemove",b)},c=b=>{n("popup:swipeend",b)},d=b=>{n("popup:swipeclose",b)},u=b=>{r=!0,s=!1,n("popup:open",b),n("update:opened",!0)},p=b=>{n("popup:opened",b)},f=b=>{r=!1,s=!0,n("popup:close",b)},h=b=>{s=!1,n("popup:closed",b),n("update:opened",!1)};Rt(()=>t.opened,b=>{a.value&&(b?a.value.open():a.value.close())}),tt(()=>{if(!i.value)return;const b={el:i.value,on:{swipeStart:o,swipeMove:l,swipeEnd:c,swipeClose:d,open:u,opened:p,close:f,closed:h}},{closeByBackdropClick:w,closeOnEscape:g,animate:v,backdrop:y,backdropEl:E,swipeToClose:k,swipeHandler:$,containerEl:M}=t;typeof w<"u"&&(b.closeByBackdropClick=w),typeof g<"u"&&(b.closeOnEscape=g),typeof v<"u"&&(b.animate=v),typeof y<"u"&&(b.backdrop=y),typeof E<"u"&&(b.backdropEl=E),typeof k<"u"&&(b.swipeToClose=k),typeof $<"u"&&(b.swipeHandler=$),typeof M<"u"&&(b.containerEl=M),pt(()=>{a.value=Y.popup.create(b),t.opened&&a.value.open(!1,!0)})}),lt(()=>{a.value&&a.value.destroy(),a.value=null});const m=ge(()=>Ae("popup",{"popup-tablet-fullscreen":t.tabletFullscreen,"popup-push":t.push},Ir({isOpened:r,isClosing:s}),Fe(t)));return{elRef:i,classes:m}}},Or=(t,e)=>{const n=r=>{t.value===r&&e("tab:show",r)},a=r=>{t.value===r&&e("tab:hide",r)};tt(()=>{t.value&&pt(()=>{Y.on("tabShow",n),Y.on("tabHide",a)})}),lt(()=>{Y&&(Y.off("tabShow",n),Y.off("tabHide",a))})},Ky=(t,e)=>{let n;const{initialUrl:a}=t.getInitialUrl(),r=t.findMatchingRoute(a);let s={};r&&r.route&&r.route.options&&(s=r.route.options.props);const i=o=>o.master===!0?!0:typeof o.master=="function"?o.master(t.app):!1;return r&&r.route&&(r.route.component||r.route.asyncComponent)&&!i(r.route)&&(n={component:r.route.component||r.route.asyncComponent,initialComponent:e,id:nr(),isAsync:!!r.route.asyncComponent,props:{f7route:r,f7router:t,...s,...r.params}}),{initialPage:n,initialRoute:r}},Yn={name:"f7-view",props:{tab:Boolean,tabActive:Boolean,name:String,initRouterOnTabShow:{type:Boolean,default:void 0},router:{type:Boolean,default:!0},linksView:[Object,String],url:String,main:{type:Boolean,default:void 0},xhrCache:{type:Boolean,default:void 0},xhrCacheIgnore:Array,xhrCacheIgnoreGetParameters:{type:Boolean,default:void 0},xhrCacheDuration:Number,preloadPreviousPage:{type:Boolean,default:void 0},allowDuplicateUrls:{type:Boolean,default:void 0},reloadPages:{type:Boolean,default:void 0},reloadDetail:{type:Boolean,default:void 0},masterDetailResizable:{type:Boolean,default:void 0},masterDetailBreakpoint:Number,removeElements:{type:Boolean,default:void 0},removeElementsWithTimeout:{type:Boolean,default:void 0},removeElementsTimeout:Number,restoreScrollTopOnBack:{type:Boolean,default:void 0},loadInitialPage:{type:Boolean,default:void 0},iosSwipeBack:{type:Boolean,default:void 0},iosSwipeBackAnimateShadow:{type:Boolean,default:void 0},iosSwipeBackAnimateOpacity:{type:Boolean,default:void 0},iosSwipeBackActiveArea:Number,iosSwipeBackThreshold:Number,mdSwipeBack:{type:Boolean,default:void 0},mdSwipeBackAnimateShadow:{type:Boolean,default:void 0},mdSwipeBackAnimateOpacity:{type:Boolean,default:void 0},mdSwipeBackActiveArea:Number,mdSwipeBackThreshold:Number,browserHistory:{type:Boolean,default:void 0},browserHistoryRoot:String,browserHistoryAnimate:{type:Boolean,default:void 0},browserHistoryAnimateOnLoad:{type:Boolean,default:void 0},browserHistorySeparator:String,browserHistoryOnLoad:{type:Boolean,default:void 0},browserHistoryInitialMatch:{type:Boolean,default:!0},browserHistoryStoreHistory:{type:Boolean,default:void 0},animate:{type:Boolean,default:void 0},transition:String,iosDynamicNavbar:{type:Boolean,default:void 0},iosAnimateNavbarBackIcon:{type:Boolean,default:void 0},materialPageLoadDelay:Number,passRouteQueryToRequest:{type:Boolean,default:void 0},passRouteParamsToRequest:{type:Boolean,default:void 0},routes:Array,routesAdd:Array,routesBeforeEnter:[Function,Array],routesBeforeLeave:[Function,Array],unloadTabContent:{type:Boolean,default:void 0},init:{type:Boolean,default:!0},...ze},emits:["view:init","view:resize","swipeback:move","swipeback:beforechange","swipeback:afterchange","swipeback:beforereset","swipeback:afterreset","tab:hide","tab:show"],setup(t,e){let{emit:n,slots:a}=e;const r=null,s=!(t.initRouterOnTabShow&&t.tab&&!t.tabActive);let i=null;const o=Le(null);let l=null,c,d;const u=M=>{n("view:init",M),t.init||(l.instance=M,i=l.instance)},p=()=>{const M=Pe(t.routes||[]),x=Pe(t.routesAdd||[]);return Ra({...t,routes:M,routesAdd:x})};if(Y&&!i&&t.init){const M=ao();if(i=Y.views.create(o.value,{...p(),routerId:M,init:!1,on:{init:u}}),l={routerId:M,instance:i},vt.views.push(l),s&&i&&i.router&&(t.url||t.main)){const x=Ky(i.router,r);c=x.initialPage,d=x.initialRoute,d&&d.route&&d.route.masterRoute&&(c=void 0,d=void 0)}}const f=Le(c?[c]:[]),h=M=>{M.forEach(x=>{x.component=Pe(x.component)}),f.value=M},m=(M,x)=>{n("view:resize",x)},b=M=>{n("swipeback:move",M)},w=M=>{n("swipeback:beforechange",M)},g=M=>{n("swipeback:afterchange",M)},v=M=>{n("swipeback:beforereset",M)},y=M=>{n("swipeback:afterreset",M)};tt(()=>{pt(()=>{if(i)l.el=o.value,l.pages=f.value,l.setPages=M=>{h([...M])},c&&c.isAsync&&!c.initialComponent?c.component().then(()=>{setTimeout(()=>{i.init(o.value),c&&(c.el=i.router.currentPageEl,d&&d.route&&d.route.keepAlive&&(d.route.keepAliveData={pageEl:c.el}))},100)}):(i.init(o.value),c&&(c.el=i.router.currentPageEl,d&&d.route&&d.route.keepAlive&&(d.route.keepAliveData={pageEl:c.el})));else{const M=ao();l={el:o.value,routerId:M,pages:f.value,instance:i,setPages(x){h([...x])}},vt.views.push(l),l.instance=Y.views.create(o.value,{routerId:M,...p(),on:{init:u}}),i=l.instance}t.init&&(i.on("resize",m),i.on("swipebackMove",b),i.on("swipebackBeforeChange",w),i.on("swipebackAfterChange",g),i.on("swipebackBeforeReset",v),i.on("swipebackAfterReset",y))})}),lt(()=>{i&&(i.off("resize",m),i.off("swipebackMove",b),i.off("swipebackBeforeChange",w),i.off("swipebackAfterChange",g),i.off("swipebackBeforeReset",v),i.off("swipebackAfterReset",y),i.destroy&&i.destroy(),i=null),vt.views.splice(vt.views.indexOf(l),1),l=null}),xr(()=>{!l||!Y||Ft.emit("viewRouterDidUpdate",l)}),Or(o,n);const E=ge(()=>Ae("view",{"view-main":t.main,"tab-active":t.tabActive,tab:t.tab},Fe(t))),k=M=>Pe(M.component),$=M=>{const{component:x,props:F}=M;let T=[];const I={};return x&&x.props&&(Array.isArray(x.props)?T=x.props.filter(B=>typeof B=="string"):T=Object.keys(x.props)),T.forEach(B=>{B in F&&(I[B]=F[B])}),I};return()=>$e("div",{ref:o,class:E.value},[a.default&&a.default(),...f.value.map(M=>$e(k(M),{key:M.id,...$(M)}))])}};function Qy(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default")],2)}const Jy={name:"f7-login-screen",render:Qy,props:{opened:Boolean,animate:{type:Boolean,default:void 0},containerEl:{type:[String,Object],default:void 0},...ze},emits:["loginscreen:open","loginscreen:opened","loginscreen:close","loginscreen:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=Le(null);let r=t.opened,s=!1;const i=Le(null),o=p=>{r=!0,s=!1,n("loginscreen:open",p),n("update:opened",!0)},l=p=>{n("loginscreen:opened",p)},c=p=>{r=!1,s=!0,n("loginscreen:close",p)},d=p=>{s=!1,n("loginscreen:closed",p),n("update:opened",!1)};Rt(()=>t.opened,p=>{a.value&&(p?a.value.open():a.value.close())}),tt(()=>{i.value&&pt(()=>{const p={el:i.value,on:{open:o,opened:l,close:c,closed:d}};typeof t.animate<"u"&&(p.animate=t.animate),typeof t.containerEl<"u"&&(p.containerEl=t.containerEl),a.value=Y.loginScreen.create(p),t.opened&&a.value.open(!1)})}),lt(()=>{a.value&&a.value.destroy(),a.value=null});const u=ge(()=>Ae("login-screen",Ir({isOpened:r,isClosing:s}),Fe(t)));return{elRef:i,classes:u}}},Zy={name:"f7-sheet",props:{opened:Boolean,animate:{type:Boolean,default:void 0},top:Boolean,bottom:Boolean,position:String,backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeByOutsideClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},push:Boolean,swipeToClose:{type:Boolean,default:void 0},swipeToStep:{type:Boolean,default:void 0},swipeHandler:{type:[String,Object],default:void 0},containerEl:{type:[String,Object],default:void 0},breakpoints:{type:Array,default:()=>{}},backdropBreakpoint:{type:Number,default:void 0},pushBreakpoint:{type:Number,default:void 0},...ze},emits:["sheet:stepprogress","sheet:stepopen","sheet:stepclose","sheet:open","sheet:opened","sheet:close","sheet:closed","sheet:breakpoint","update:opened"],setup(t,e){let{emit:n,slots:a}=e,r=null,s=t.opened,i=!1;const o=Le(null),l=(g,v)=>{n("sheet:breakpoint",g,v)},c=(g,v)=>{n("sheet:stepprogress",g,v)},d=g=>{n("sheet:stepopen",g)},u=g=>{n("sheet:stepclose",g)},p=g=>{s=!0,i=!1,n("sheet:open",g),n("update:opened",!0)},f=g=>{n("sheet:opened",g)},h=g=>{s=!1,i=!0,n("sheet:close",g)},m=g=>{i=!1,n("sheet:closed",g),n("update:opened",!1)};tt(()=>{if(!o.value)return;const g={el:o.value,on:{open:p,opened:f,close:h,closed:m,stepOpen:d,stepClose:u,stepProgress:c,breakpoint:l}},{animate:v,backdrop:y,backdropEl:E,closeByBackdropClick:k,closeByOutsideClick:$,closeOnEscape:M,swipeToClose:x,swipeToStep:F,swipeHandler:T,containerEl:I,breakpoints:B,backdropBreakpoint:P,pushBreakpoint:R}=t;typeof v<"u"&&(g.animate=v),typeof y<"u"&&(g.backdrop=y),typeof E<"u"&&(g.backdropEl=E),typeof k<"u"&&(g.closeByBackdropClick=k),typeof $<"u"&&(g.closeByOutsideClick=$),typeof M<"u"&&(g.closeOnEscape=M),typeof x<"u"&&(g.swipeToClose=x),typeof F<"u"&&(g.swipeToStep=F),typeof T<"u"&&(g.swipeHandler=T),typeof I<"u"&&(g.containerEl=I),typeof B<"u"&&(g.breakpoints=B),typeof P<"u"&&(g.backdropBreakpoint=P),typeof R<"u"&&(g.pushBreakpoint=R),pt(()=>{r=Y.sheet.create(g),t.opened&&r.open(!1)})}),lt(()=>{r&&r.destroy(),r=null}),Rt(()=>t.opened,g=>{r&&(g?r.open():r.close())}),["closeByBackdropClick","closeByOutsideClick","closeOnEscape","swipeToClose"].forEach(g=>{Rt(()=>t[g],v=>{r&&(r.params[g]=v)})});const b=ge(()=>{let g="bottom";return t.position?g=t.position:t.top?g="top":t.bottom&&(g="bottom"),Ae("sheet-modal",`sheet-modal-${g}`,{"sheet-modal-push":t.push},Ir({isOpened:s,isClosing:i}),Fe(t))}),w="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index panel".split(" ").map(g=>`f7-${g}`);return()=>{const g=[],v=[];return a.default&&a.default().forEach(y=>{if(typeof y>"u")return;const E=y.type&&y.type.name?y.type.name:y.type;w.indexOf(E)>=0?g.push(y):v.push(y)}),$e("div",{class:b.value,ref:o},[g,a.fixed&&a.fixed(),$e("div",{class:"sheet-modal-inner"},[v,a.static&&a.static()])])}}},e1={key:0,class:"popover-arrow"},t1={class:"popover-inner"};function n1(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[t.arrow!==!1?(we(),Me("div",e1)):Qe("",!0),_e("div",t1,[Te(t.$slots,"default")])],2)}const a1={name:"f7-popover",render:n1,props:{opened:Boolean,animate:{type:Boolean,default:void 0},targetEl:{type:[String,Object],default:void 0},arrow:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeByOutsideClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},containerEl:{type:[String,Object],default:void 0},verticalPosition:{type:String,default:void 0},...ze},emits:["popover:open","popover:opened","popover:close","popover:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=Le(null);let r=t.opened,s=!1;const i=Le(null),o=p=>{r=!0,s=!1,n("popover:open",p),n("update:opened",!0)},l=p=>{n("popover:opened",p)},c=p=>{r=!1,s=!0,n("popover:close",p)},d=p=>{s=!1,n("popover:closed",p),n("update:opened",!1)};Rt(()=>t.opened,p=>{a.value&&(p?a.value.open():a.value.close())}),tt(()=>{if(!i.value)return;const p={el:i.value,on:{open:o,opened:l,close:c,closed:d}},{targetEl:f,closeByBackdropClick:h,closeByOutsideClick:m,closeOnEscape:b,arrow:w,backdrop:g,backdropEl:v,containerEl:y,verticalPosition:E}=t;typeof f<"u"&&(p.targetEl=f),typeof h<"u"&&(p.closeByBackdropClick=h),typeof m<"u"&&(p.closeByOutsideClick=m),typeof b<"u"&&(p.closeOnEscape=b),typeof w<"u"&&(p.arrow=w),typeof g<"u"&&(p.backdrop=g),typeof v<"u"&&(p.backdropEl=v),typeof y<"u"&&(p.containerEl=y),typeof E<"u"&&(p.verticalPosition=E),pt(()=>{a.value=Y.popover.create(p),t.opened&&a.value.open(f,!1)})}),lt(()=>{a.value&&a.value.destroy(),a.value=null});const u=ge(()=>Ae("popover",Ir({isOpened:r,isClosing:s}),Fe(t)));return{elRef:i,classes:u}}},r1={key:0,class:"panel-resize-handler"};function s1(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default"),t.resizable?(we(),Me("div",r1)):Qe("",!0)],2)}const i1={name:"f7-panel",render:s1,props:{side:String,effect:String,cover:Boolean,reveal:Boolean,push:Boolean,floating:Boolean,left:Boolean,right:Boolean,opened:Boolean,resizable:Boolean,backdrop:{type:Boolean,default:!0},backdropEl:{type:String,default:void 0},containerEl:{type:String,default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},visibleBreakpoint:{type:Number,default:void 0},collapsedBreakpoint:{type:Number,default:void 0},swipe:Boolean,swipeNoFollow:Boolean,swipeOnlyClose:Boolean,swipeActiveArea:{type:Number,default:0},swipeThreshold:{type:Number,default:0},...ze},emits:["panel:open","panel:opened","panel:close","panel:closed","click","panel:backdropclick","panel:swipe","panel:swipeopen","panel:breakpoint","panel:collapsedbreakpoint","panel:resize","update:opened"],setup(t,e){let{emit:n}=e,a=null;const r=Le(null);let s=!1,i=!1,o=!1,l=!1;const c=y=>{s=!0,i=!1,n("panel:open",y),n("update:opened",!0)},d=y=>{n("panel:opened",y)},u=y=>{s=!1,i=!0,n("panel:close",y)},p=y=>{i=!1,n("panel:closed",y),n("update:opened",!1)},f=y=>{n("click",y),n("panel:backdropclick",y)},h=y=>{n("panel:swipe",y)},m=y=>{n("panel:swipeopen",y)},b=y=>{l=!0,o=!1,n("panel:breakpoint",y)},w=y=>{l=!1,o=!0,n("panel:collapsedbreakpoint",y)},g=function(){for(var y=arguments.length,E=new Array(y),k=0;kt.resizable,y=>{a&&(y?a.enableResizable():a.disableResizable())}),Rt(()=>t.opened,y=>{a&&(y?a.open():a.close())}),tt(()=>{pt(()=>{const y=Y.$;if(!y)return;y(".panel-backdrop").length===0&&y('
').insertBefore(r.value);const E=Ra({el:r.value,resizable:t.resizable,backdrop:t.backdrop,backdropEl:t.backdropEl,containerEl:t.containerEl,closeByBackdropClick:t.containerEl,visibleBreakpoint:t.visibleBreakpoint,collapsedBreakpoint:t.collapsedBreakpoint,swipe:t.swipe,swipeNoFollow:t.swipeNoFollow,swipeOnlyClose:t.swipeOnlyClose,swipeActiveArea:t.swipeActiveArea,swipeThreshold:t.swipeThreshold,on:{open:c,opened:d,close:u,closed:p,backdropClick:f,swipe:h,swipeOpen:m,collapsedBreakpoint:w,breakpoint:b,resize:g}});a=Y.panel.create(E),t.opened&&a.open(!1)})}),lt(()=>{a&&a.destroy&&a.destroy(),a=null});const v=ge(()=>{const y=t.side||(t.left?"left":"right"),E=t.effect||(t.reveal?"reveal":t.push?"push":t.floating?"floating":"cover");return Ae("panel",{"panel-in":s&&!i&&!l,"panel-in-breakpoint":l,"panel-in-collapsed":o,"panel-resizable":t.resizable,[`panel-${y}`]:y,[`panel-${E}`]:E},Fe(t))});return{elRef:r,classes:v}}},o1=(t,e,n)=>{const a={url:e,route:{path:e,options:{...n,openIn:void 0}}},r={...n};if(n.openIn==="popup"&&(r.component={setup(){return()=>$e(Gy,{class:"popup-router-open-in","data-url":e},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.popup=r),n.openIn==="loginScreen"&&(r.component={setup(){return()=>$e(Jy,{class:"login-screen-router-open-in","data-url":e},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.loginScreen=r),n.openIn==="sheet"&&(r.component={setup(){return()=>$e(Zy,{class:"sheet-modal-router-open-in","data-url":e},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.sheet=r),n.openIn==="popover"&&(r.targetEl=n.clickedEl||n.targetEl,r.component={setup(){return()=>$e(a1,{class:"popover-router-open-in","data-url":e,targetEl:n.clickedEl||n.targetEl},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.popover=r),n.openIn.indexOf("panel")>=0){const s=n.openIn.split(":"),i=s[1]||"left",o=s[2]||"cover";r.component={setup(){return()=>$e(i1,{class:"panel-router-open-in","data-url":e,side:i,effect:o},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.panel=r}return t.navigate(a)},so=t=>{const e=[];for(let n=0;nt.length!==e.length?!1:new Set([...t,...e]).size===t.length,c1={proto:{openIn(t,e,n){return o1(t,e,n)},pageComponentLoader(t){let{routerEl:e,component:n,options:a,resolve:r,reject:s}=t;const i=this,o=i.id,l=e;let c;if(vt.views.forEach(h=>{(h.el&&h.el===e||h.routerId&&h.routerId===o)&&(c=h)}),!c){s();return}const d={component:n,id:nr(),props:kn({f7route:a.route,f7router:i},a.route.params,a.props||{})};let u;const p=so(l);function f(h){if(h!==c||u)return;const m=so(l);if(l1(p,m))return;Ft.off("viewRouterDidUpdate",f);const b=l.children[l.children.length-1];d.el=b,r(b),u=!0}Ft.on("viewRouterDidUpdate",f),c.pages.push(d),c.setPages(c.pages)},removePage(t){if(!t)return;const e=this;let n;if("length"in t&&t[0]?n=t[0].f7Page:n=t.f7Page,n&&n.route&&n.route.route&&n.route.route.keepAlive){e.app.$(t).remove();return}let a;vt.views.forEach(i=>{i.el&&i.el===e.el&&(a=i)});let r;if("length"in t){if(t.length===0)return;r=t[0]}else r=t;if(!r)return;let s;a.pages.forEach((i,o)=>{i.el===r&&(s=!0,a.pages.splice(o,1),a.setPages(a.pages))}),s||r.parentNode.removeChild(r)},tabComponentLoader(t){let{tabEl:e,component:n,options:a,resolve:r,reject:s}=t===void 0?{}:t;const i=this;e||s();let o;if(vt.tabs.forEach(p=>{p.el&&p.el===e&&(o=p)}),!o){s();return}const c={id:nr(),component:n,props:kn({f7route:a.route,f7router:i},a.route.route&&a.route.route.tab&&a.route.route.tab.options&&a.route.route.tab.options.props||{},a.route.params,a.props||{})};let d;function u(p){if(p!==o||d)return;Ft.off("tabRouterDidUpdate",u);const f=e.children[0];r(f),d=!0}Ft.on("tabRouterDidUpdate",u),o.setTabContent(c)},removeTabContent(t){if(!t)return;let e;if(vt.tabs.forEach(n=>{n.el&&n.el===t&&(e=n)}),!e){t.innerHTML="";return}e.setTabContent(null)},modalComponentLoader(t){let{component:e,options:n,resolve:a,reject:r}=t===void 0?{}:t;const s=this,i=vt.modals;if(!i){r();return}const o={component:e,id:nr(),props:kn({f7route:n.route,f7router:s},n.route.params,n.props||{})};let l;function c(){if(l)return;Ft.off("modalsRouterDidUpdate",c);const d=i.el.children[i.el.children.length-1];o.el=d,a(d),l=!0}Ft.on("modalsRouterDidUpdate",c),i.modals.push(o),i.setModals(i.modals)},removeModal(t){const e=vt.modals;if(!e)return;let n;e.modals.forEach(a=>{a.el===t&&(n=a)}),e.modals.splice(e.modals.indexOf(n),1),e.setModals(e.modals)}}},Ts={name:"vuePlugin",installed:!1,install(t){if(t===void 0&&(t={}),Ts.installed)return;Ts.installed=!0,Yy();const{theme:e,userAgent:n}=t;if(e==="md"&&(St.md=!0),e==="ios"&&(St.ios=!0),(typeof window>"u"?!!n:!0)&&(!e||e==="auto")){const r=nt.getDevice({userAgent:n},!0);St.ios=!!r.ios,St.md=!St.ios}pt(()=>{$g()}),nt.Router.use(c1)}};function d1(t,e){return we(),Me("div",{class:Re(t.classes)},[Te(t.$slots,"default")],2)}const u1={name:"f7-accordion-content",render:d1,props:{...ze},setup(t){return{classes:ge(()=>Ae("accordion-item-content",Fe(t)))}}},p1={name:"f7-routable-modals",setup(){const t=Le(null),e=Le([]),n=Le(null);tt(()=>{n.value={modals:e,el:t.value,setModals(s){s.forEach(i=>{i.component=Pe(i.component)}),e.value=[...s]}},vt.modals=n.value}),xr(()=>{!n.value||!Y||Ft.emit("modalsRouterDidUpdate",n.value)}),lt(()=>{n.value&&(vt.modals=null,n.value=null)});const a=s=>Pe(s.component),r=s=>{const{component:i,props:o}=s;let l=[];const c={};return i&&i.props&&(l=Object.keys(i.props)),l.forEach(d=>{d in o&&(c[d]=o[d])}),c};return()=>$e("div",{ref:t,class:"framework7-modals"},[...e.value.map(s=>$e(a(s),{key:s.id,...r(s)}))])}};function f1(t,e){const n=Ve("routable-modals");return we(),Me("div",{id:"framework7-root",ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default"),Se(n)],2)}const h1={name:"f7-app",render:f1,components:{RoutableModals:p1},inheritAttrs:!1,props:{name:{type:String,default:void 0},theme:{type:String,default:void 0},routes:{type:Array,default:()=>[]},store:Object,darkMode:{type:[Boolean,String],default:!1},colors:{type:Object,default:()=>{}},lazyModulesPath:{type:String,default:void 0},initOnDeviceReady:{type:Boolean,default:void 0},iosTranslucentBars:{type:Boolean,default:void 0},iosTranslucentModals:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},accordion:{type:Object,default:()=>{}},actions:{type:Object,default:()=>{}},areaChart:{type:Object,default:()=>{}},autocomplete:{type:Object,default:()=>{}},calendar:{type:Object,default:()=>{}},card:{type:Object,default:()=>{}},colorPicker:{type:Object,default:()=>{}},dialog:{type:Object,default:()=>{}},form:{type:Object,default:()=>{}},gauge:{type:Object,default:()=>{}},infiniteScroll:{type:Object,default:()=>{}},input:{type:Object,default:()=>{}},listIndex:{type:Object,default:()=>{}},loginScreen:{type:Object,default:()=>{}},messagebar:{type:Object,default:()=>{}},messages:{type:Object,default:()=>{}},navbar:{type:Object,default:()=>{}},notification:{type:Object,default:()=>{}},panel:{type:Object,default:()=>{}},photoBrowser:{type:Object,default:()=>{}},picker:{type:Object,default:()=>{}},pieChart:{type:Object,default:()=>{}},popover:{type:Object,default:()=>{}},popup:{type:Object,default:()=>{}},range:{type:Object,default:()=>{}},searchbar:{type:Object,default:()=>{}},sheet:{type:Object,default:()=>{}},smartSelect:{type:Object,default:()=>{}},sortable:{type:Object,default:()=>{}},statusbar:{type:Object,default:()=>{}},stepper:{type:Object,default:()=>{}},swipeout:{type:Object,default:()=>{}},textEditor:{type:Object,default:()=>{}},toast:{type:Object,default:()=>{}},toolbar:{type:Object,default:()=>{}},tooltip:{type:Object,default:()=>{}},view:{type:Object,default:()=>{}},virtualList:{type:Object,default:()=>{}},clicks:{type:Object,default:()=>{}},serviceWorker:{type:Object,default:()=>{}},touch:{type:Object,default:()=>{}},...ze},setup(t){const e=Le(null),n=Pe(t.routes);return(!Y||typeof window>"u")&&ro(e.value,Ra({...t,routes:n}),!1),tt(()=>{const r=e.value&&e.value.parentNode;if(typeof document<"u"&&r&&r!==document.body&&r.parentNode===document.body&&(r.style.height="100%"),Y){Y.init(e.value);return}ro(e.value,Ra({...t,routes:n}),!0)}),{classes:ge(()=>Ae("framework7-root",Fe(t))),elRef:e}}},Ar=(t,e)=>{let n=null;const{tooltip:a,tooltipTrigger:r}=e;tt(()=>{t.value&&a&&pt(()=>{n=Y.tooltip.create({targetEl:t.value,text:a,trigger:r})})}),lt(()=>{n&&n.destroy&&(n.destroy(),n=null)}),Rt(()=>e.tooltip,s=>{if(!s&&n){n.destroy(),n=null;return}if(s&&!n&&Y){n=Y.tooltip.create({targetEl:t.value,text:s,trigger:r});return}!s||!n||n.setText(s)})};function m1(t,e){return we(),Me("span",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default")],2)}const ii={name:"f7-badge",render:m1,props:{tooltip:String,tooltipTrigger:String,...ze},setup(t){const e=Le(null);Ar(e,t);const n=ge(()=>Ae("badge",Fe(t)));return{elRef:e,classes:n}}};function g1(t,e){return we(),Me("div",{class:Re(t.classes)},[Te(t.$slots,"default")],2)}const b1={name:"f7-block-header",render:g1,props:{...ze},setup(t){return{classes:ge(()=>Ae("block-header",Fe(t)))}}};function v1(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default")],2)}const w1={name:"f7-block",render:v1,props:{inset:Boolean,insetIos:Boolean,insetMd:Boolean,xsmallInset:Boolean,xsmallInsetIos:Boolean,xsmallInsetMd:Boolean,smallInset:Boolean,smallInsetIos:Boolean,smallInsetMd:Boolean,mediumInset:Boolean,mediumInsetIos:Boolean,mediumInsetMd:Boolean,largeInset:Boolean,largeInsetIos:Boolean,largeInsetMd:Boolean,xlargeInset:Boolean,xlargeInsetIos:Boolean,xlargeInsetMd:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,outline:Boolean,outlineIos:Boolean,outlineMd:Boolean,tabs:Boolean,tab:Boolean,tabActive:Boolean,accordionList:Boolean,accordionOpposite:Boolean,...ze},emits:["tab:hide","tab:show"],setup(t,e){let{emit:n}=e;const a=Le(null);Or(a,n);const r=ge(()=>{const{inset:s,insetIos:i,insetMd:o,xsmallInset:l,xsmallInsetIos:c,xsmallInsetMd:d,smallInset:u,smallInsetIos:p,smallInsetMd:f,mediumInset:h,mediumInsetIos:m,mediumInsetMd:b,largeInset:w,largeInsetIos:g,largeInsetMd:v,xlargeInset:y,xlargeInsetIos:E,xlargeInsetMd:k,strong:$,strongIos:M,strongMd:x,outline:F,outlineIos:T,outlineMd:I,accordionList:B,accordionOpposite:P,tabs:R,tab:V,tabActive:H}=t;return Ae("block",{inset:s,"inset-ios":i,"inset-md":o,"xsmall-inset":l,"xsmall-inset-ios":c,"xsmall-inset-md":d,"small-inset":u,"small-inset-ios":p,"small-inset-md":f,"medium-inset":h,"medium-inset-ios":m,"medium-inset-md":b,"large-inset":w,"large-inset-ios":g,"large-inset-md":v,"xlarge-inset":y,"xlarge-inset-ios":E,"xlarge-inset-md":k,"block-strong":$,"block-strong-ios":M,"block-strong-md":x,"accordion-list":B,"accordion-opposite":P,tabs:R,tab:V,"tab-active":H,"block-outline":F,"block-outline-md":I,"block-outline-ios":T},Fe(t))});return{elRef:a,classes:r}}},y1=function(t){t===void 0&&(t={});const{icon:e,iconMaterial:n,iconF7:a,iconMd:r,iconIos:s,iconColor:i,iconSize:o,iconBadge:l,badgeColor:c,iconBadgeColor:d}=t;return e||n||a||r||s?{props:{material:n,f7:a,icon:e,md:r,ios:s,color:i,size:o},badge:l||l===0?{props:{color:c||d},content:l}:null}:null},Ig=function(t,e){let{routeProps:n}=e===void 0?{}:e;tt(()=>{t.value&&n&&(t.value.f7RouteProps=n)}),xr(()=>{t.value&&n?t.value.f7RouteProps=n:t.value&&t.value.f7RouteProps&&delete t.value.f7RouteProps})},Na=()=>{const t=Le(Y?St:null);return Y||pt(()=>{t.value=St}),t},E1={key:0,class:"preloader-inner"},C1=_e("svg",{viewBox:"0 0 36 36"},[_e("circle",{cx:"18",cy:"18",r:"16"})],-1),k1=[C1],$1={key:1,class:"preloader-inner"},x1=Tv('',8),S1=[x1],T1={key:2,class:"preloader-inner"};function P1(t,e){return we(),Me("div",{class:Re(t.classes),style:oa(t.style)},[t.theme&&t.theme.md?(we(),Me("span",E1,k1)):t.theme&&t.theme.ios?(we(),Me("span",$1,S1)):t.theme?Qe("",!0):(we(),Me("span",T1))],6)}const M1={name:"f7-preloader",render:P1,props:{size:[Number,String],...ze},setup(t){const e=Na(),n=ge(()=>Ae("preloader",{preloader:!0},Fe(t))),a=ge(()=>{const r={};let s=t.size;return s&&typeof s=="string"&&s.indexOf("px")>=0&&(s=s.replace("px","")),s&&(r.width=`${s}px`,r.height=`${s}px`,r["--f7-preloader-size"]=`${s}px`),r});return{classes:n,style:a,theme:e}}};function B1(t,e){return we(),Me("i",{ref:"elRef",style:oa({fontSize:t.sizeComputed,width:t.sizeComputed,height:t.sizeComputed}),class:Re(t.classesComputed)},[yt(Zt(t.iconText)+" ",1),Te(t.$slots,"default")],6)}const Og={name:"f7-icon",render:B1,props:{material:String,f7:String,icon:String,ios:String,md:String,tooltip:String,tooltipTrigger:String,size:[String,Number],...ze},setup(t){const e=Le(null),n=Na();Ar(e,t);const a=ge(()=>{const{ios:i,md:o,f7:l,material:c,icon:d}=t;let u={icon:!0},p;if(n.value&&n.value.ios?p=i:n.value&&n.value.md&&(p=o),p){const f=p.split(":"),h=f[0],m=f[1];(h==="material"||h==="f7")&&(u["material-icons"]=h==="material",u["f7-icons"]=h==="f7"),h==="icon"&&(u[m]=!0),d&&(u[d]=!0)}else u={icon:!0,"material-icons":c,"f7-icons":l},d&&(u[d]=!0);return Ae(u,Fe(t))}),r=ge(()=>{let i=t.size;return(typeof t.size=="number"||parseFloat(t.size)===t.size*1)&&(i=`${t.size}px`),i}),s=ge(()=>{const{ios:i,md:o,f7:l,material:c}=t;let d=c||l;return o&&n.value&&n.value.md&&(o.indexOf("material:")>=0||o.indexOf("f7:")>=0)?d=o.split(":")[1]:i&&n.value&&n.value.ios&&(i.indexOf("material:")>=0||i.indexOf("f7:")>=0)&&(d=i.split(":")[1]),d});return{elRef:e,sizeComputed:r,classesComputed:a,iconText:s}}};function I1(t,e){const n=Ve("f7-badge"),a=Ve("f7-icon");return we(),Et(a,fi(Hl(t.icon.props)),{default:Ne(()=>[t.icon.badge?(we(),Et(n,fi(Tr({key:0},t.icon.badge.props)),{default:Ne(()=>[yt(Zt(t.icon.badge.content),1)]),_:1},16)):Qe("",!0)]),_:1},16)}const O1={name:"f7-use-icon",render:I1,components:{f7Icon:Og,f7Badge:ii},props:{icon:Object}},Ag=(t,e,n)=>{let a;tt(()=>{pt(()=>{if(t.smartSelect){const r=kn({el:n()},t.smartSelectParams||{});a=Y.smartSelect.create(r),e(a)}})}),lt(()=>{a&&a.destroy&&a.destroy(),a=null,e(a)})};function A1(t,e){const n=Ve("f7-use-icon"),a=Ve("f7-badge");return we(),Me("a",Tr({ref:"elRef",class:t.classes},t.attrs),[t.icon?(we(),Et(n,{key:0,icon:t.icon},null,8,["icon"])):Qe("",!0),t.text?(we(),Me("span",{key:1,class:Re(t.isTabbarIcons?"tabbar-label":"")},[yt(Zt(t.text)+" ",1),t.badge?(we(),Et(a,{key:0,color:t.badgeColor},{default:Ne(()=>[yt(Zt(t.badge),1)]),_:1},8,["color"])):Qe("",!0)],2)):Qe("",!0),Te(t.$slots,"default")],16)}const Dg={name:"f7-link",render:A1,components:{f7Badge:ii,f7UseIcon:O1},props:{noLinkClass:Boolean,text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,tabbarLabel:Boolean,iconOnly:Boolean,badge:[String,Number],badgeColor:[String],href:{type:[String,Boolean],default:"#"},target:String,tooltip:String,tooltipTrigger:String,smartSelect:Boolean,smartSelectParams:Object,...Xy,...ze,...Pg,...xg},setup(t,e){let{slots:n}=e;const a=Le(null);let r=null;Ar(a,t),Ig(a,t),Ag(t,d=>{r=d},()=>a.value);const s=Zn("TabbarContext",{value:{}}),i=ge(()=>t.tabbarLabel||s.value.tabbarHasIcons),o=ge(()=>{const{href:d,tabLink:u,target:p}=t;let f=d;return d===!0&&(f="#"),d===!1&&(f=void 0),{href:f,target:p,"data-tab":He(u)&&u||void 0,...Sg(t),...Mg(t)}}),l=ge(()=>{const{iconOnly:d,text:u,noLinkClass:p,tabLink:f,tabLinkActive:h,smartSelect:m}=t;let b;const w=n&&n.default;return d||!u&&!w?b=!0:b=!1,Ae({link:!(p||i.value),"icon-only":b,"tab-link":f||f==="","tab-link-active":h,"smart-select":m},Fe(t),Tg(t),Bg(t))}),c=ge(()=>y1(t));return{elRef:a,icon:c,isTabbarIcons:i,attrs:o,classes:l,f7SmartSelect:r}}},D1=function(t){let{props:e,slots:n,inputElRef:a,onChange:r,onClick:s,isMediaComputed:i,isSortableComputed:o,isSortableOppositeComputed:l,itemContentClasses:c}=t===void 0?{}:t;const{radio:d,checkbox:u,value:p,name:f,readonly:h,disabled:m,checked:b,required:w,media:g,header:v,footer:y,title:E,subtitle:k,text:$,after:M,badge:x,badgeColor:F,swipeout:T,sortable:I,accordionItem:B}=e;let P,R,V,H,D,O,_,N,G,ee,X,se,ne;if((d||u)&&(ee=$e("input",{ref:a,value:p,name:f,checked:b,readonly:h,disabled:m,required:w,type:d?"radio":"checkbox",onChange:r}),X=$e("i",{class:`icon icon-${d?"radio":"checkbox"}`})),g||n.media){let le;g&&(le=$e("img",{src:g})),G=$e("div",{class:"item-media"},[le,n.media&&n.media()])}return(v||n.header)&&(se=$e("div",{class:"item-header"},[v,n.header&&n.header()])),(y||n.footer)&&(ne=$e("div",{class:"item-footer"},[y,n.footer&&n.footer()])),(E||n.title||!i.value&&se||!i.value&&ne)&&(P=$e("div",{class:"item-title"},[!i.value&&se,E,n.title&&n.title(),!i.value&&ne])),(k||n.subtitle)&&(_=$e("div",{class:"item-subtitle"},[k,n.subtitle&&n.subtitle()])),($||n.text)&&(N=$e("div",{class:"item-text"},[$,n.text&&n.text()])),(M||x||n.after)&&(M&&(V=$e("span",[M])),x&&(H=$e(ii,{color:F},()=>x)),R=$e("div",{class:"item-after"},[n["after-start"]&&n["after-start"](),V,H,n.after&&n.after(),n["after-end"]&&n["after-end"]()])),i.value?(O=$e("div",{class:"item-title-row"},[n["before-title"]&&n["before-title"](),P,n["after-title"]&&n["after-title"](),R]),D=$e("div",{class:"item-inner"},[n["inner-start"]&&n["inner-start"],se,O,_,N,T||B?null:n.default&&n.default(),n.inner&&n.inner(),ne,n["inner-end"]&&n["inner-end"]])):D=$e("div",{class:"item-inner"},[n["inner-start"]&&n["inner-start"](),n["before-title"]&&n["before-title"](),P,n["after-title"]&&n["after-title"](),R,T||B?null:n.default&&n.default(),n.inner&&n.inner(),n["inner-end"]&&n["inner-end"]()]),$e(u||d?"label":"div",{class:c.value,onClick:s},[o.value&&I!==!1&&l.value&&$e("div",{class:"sortable-handler"}),n["content-start"]&&n["content-start"](),ee,X,G,D,n.content&&n.content(),n["content-end"]&&n["content-end"]()])},L1={name:"f7-list-item",props:{title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],tooltip:String,tooltipTrigger:String,link:[Boolean,String],target:String,tabLink:[Boolean,String],tabLinkActive:Boolean,selected:Boolean,after:[String,Number],badge:[String,Number],badgeColor:String,mediaItem:Boolean,mediaList:Boolean,groupTitle:Boolean,swipeout:Boolean,swipeoutOpened:Boolean,sortable:{type:Boolean,default:void 0},sortableOpposite:{type:Boolean,default:void 0},accordionItem:Boolean,accordionItemOpened:Boolean,smartSelect:Boolean,smartSelectParams:Object,noChevron:Boolean,chevronCenter:Boolean,checkbox:Boolean,radio:Boolean,radioIcon:String,checkboxIcon:String,checked:Boolean,indeterminate:Boolean,name:String,value:{type:[String,Number,Array],default:void 0},readonly:Boolean,required:Boolean,disabled:Boolean,virtualListIndex:Number,...ze,...Pg,...xg},emits:["click","swipeout","swipeout:overswipeenter","swipeout:overswipeexit","swipeout:deleted","swipeout:delete","swipeout:close","swipeout:closed","swipeout:open","swipeout:opened","accordion:beforeclose","accordion:close","accordion:closed","accordion:beforeopen","accordion:open","accordion:opened","change","update:checked"],setup(t,e){let{slots:n,emit:a}=e;const r=Zn("ListContext",{value:{listIsMedia:!1,listIsSortable:!1,listIsSortableOpposite:!1,listIsSimple:!1}}),s=ge(()=>r.value.listIsMedia||!1),i=ge(()=>r.value.listIsSortable||!1),o=ge(()=>r.value.listIsSortableOpposite||!1),l=ge(()=>r.value.listIsSimple||!1),c=Le(null),d=Le(null),u=Le(null),p=_=>{_.target.tagName.toLowerCase()!=="input"&&a("click",_)},f=_=>{c.value===_&&a("swipeout:overswipeenter")},h=_=>{c.value===_&&a("swipeout:overswipeexit")},m=_=>{c.value===_&&a("swipeout:deleted")},b=_=>{c.value===_&&a("swipeout:delete")},w=_=>{c.value===_&&a("swipeout:close")},g=_=>{c.value===_&&a("swipeout:closed")},v=_=>{c.value===_&&a("swipeout:open")},y=_=>{c.value===_&&a("swipeout:opened")},E=(_,N)=>{c.value===_&&a("swipeout",N)},k=(_,N)=>{c.value===_&&a("accordion:beforeclose",N)},$=_=>{c.value===_&&a("accordion:close")},M=_=>{c.value===_&&a("accordion:closed")},x=(_,N)=>{c.value===_&&a("accordion:beforeopen",N)},F=_=>{c.value===_&&a("accordion:open")},T=_=>{c.value===_&&a("accordion:opened")},I=_=>{a("change",_),a("update:checked",_.target.checked)};Ar(c,t),Ig(d,t),Ag(t,()=>{},()=>c.value.querySelector("a.smart-select")),Rt(()=>t.swipeoutOpened,_=>{!t.swipeout||!c.value||!Y||(_?Y.swipeout.open(c.value):Y.swipeout.close(c.value))}),tt(()=>{pt(()=>{t.swipeout&&(Y.on("swipeoutOpen",v),Y.on("swipeoutOpened",y),Y.on("swipeoutClose",w),Y.on("swipeoutClosed",g),Y.on("swipeoutDelete",b),Y.on("swipeoutDeleted",m),Y.on("swipeoutOverswipeEnter",f),Y.on("swipeoutOverswipeExit",h),Y.on("swipeout",E)),t.accordionItem&&(Y.on("accordionBeforeOpen",x),Y.on("accordionOpen",F),Y.on("accordionOpened",T),Y.on("accordionBeforeClose",k),Y.on("accordionClose",$),Y.on("accordionClosed",M)),t.swipeout&&t.swipeoutOpened&&Y.swipeout.open(c.value)}),t.checkbox&&u.value&&(u.value.indeterminate=!!t.indeterminate)}),lt(()=>{Y&&(Y.off("swipeoutOpen",v),Y.off("swipeoutOpened",y),Y.off("swipeoutClose",w),Y.off("swipeoutClosed",g),Y.off("swipeoutDelete",b),Y.off("swipeoutDeleted",m),Y.off("swipeoutOverswipeEnter",f),Y.off("swipeoutOverswipeExit",h),Y.off("swipeout",E),Y.off("accordionBeforeOpen",x),Y.off("accordionOpen",F),Y.off("accordionOpened",T),Y.off("accordionBeforeClose",k),Y.off("accordionClose",$),Y.off("accordionClosed",M))}),Rt(()=>t.indeterminate,_=>{u.value&&(u.value.indeterminate=!!_)});const B=ge(()=>t.mediaItem||t.mediaList||s.value),P=ge(()=>t.sortable===!0||t.sortable===!1?t.sortable:i.value),R=ge(()=>P.value&&(t.sortableOpposite||o.value)),V=ge(()=>({href:t.link===!0?"":t.link||t.href,target:t.target,"data-tab":He(t.tabLink)&&t.tabLink||void 0,...Sg(t),...Mg(t)})),H=ge(()=>Ae({"item-link":!0,"smart-select":t.smartSelect,"tab-link":t.tabLink||t.tabLink==="","tab-link-active":t.tabLinkActive,"item-selected":t.selected},Tg(t),Bg(t))),D=ge(()=>Ae("item-content",{"item-checkbox":t.checkbox,"item-radio":t.radio,"item-checkbox-icon-start":t.checkbox&&t.checkboxIcon==="start","item-checkbox-icon-end":t.checkbox&&t.checkboxIcon==="end","item-radio-icon-start":t.radio&&t.radioIcon==="start","item-radio-icon-end":t.radio&&t.radioIcon==="end"},Fe(t))),O=ge(()=>Ae({"list-group-title":t.groupTitle,"media-item":B.value,swipeout:t.swipeout,"accordion-item":t.accordionItem,"accordion-item-opened":t.accordionItemOpened,disabled:t.disabled&&!(t.radio||t.checkbox),"no-chevron":t.noChevron,"chevron-center":t.chevronCenter,"disallow-sorting":t.sortable===!1},Fe(t)));return()=>{let _,N;if(l.value||(N=D1({props:t,slots:n,inputElRef:u,onChange:I,onClick:t.link||t.href||t.accordionItem||t.smartSelect?void 0:p,isMediaComputed:B,isSortableComputed:P,isSortableOppositeComputed:R,itemContentClasses:D}),(t.link||t.href||t.accordionItem||t.smartSelect)&&(_=$e("a",{ref:d,class:H.value,...V.value,onClick:p},[N]))),t.groupTitle)return $e("li",{ref:c,class:O.value,"data-virtual-list-index":t.virtualListIndex,onClick:p},[t.title,n.default&&n.default()]);if(l.value)return $e("li",{ref:c,class:O.value,onClick:p,"data-virtual-list-index":t.virtualListIndex},[t.title,n.default&&n.default()]);const G=t.link||t.href||t.smartSelect||t.accordionItem?_:N;return $e("li",{ref:c,class:O.value,"data-virtual-list-index":t.virtualListIndex},[n["root-start"]&&n["root-start"](),t.swipeout?$e("div",{class:"swipeout-content"},[G]):G,P.value&&t.sortable!==!1&&!R.value&&$e("div",{class:"sortable-handler"}),(t.swipeout||t.accordionItem)&&n.default(),n.root&&n.root(),n["root-end"]&&n["root-end"]()])}}},R1={name:"f7-list",props:{inset:Boolean,insetIos:Boolean,insetMd:Boolean,xsmallInset:Boolean,xsmallInsetIos:Boolean,xsmallInsetMd:Boolean,smallInset:Boolean,smallInsetIos:Boolean,smallInsetMd:Boolean,mediumInset:Boolean,mediumInsetIos:Boolean,mediumInsetMd:Boolean,largeInset:Boolean,largeInsetIos:Boolean,largeInsetMd:Boolean,xlargeInset:Boolean,xlargeInsetIos:Boolean,xlargeInsetMd:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,outline:Boolean,outlineIos:Boolean,outlineMd:Boolean,dividers:Boolean,dividersIos:Boolean,dividersMd:Boolean,mediaList:Boolean,sortable:Boolean,sortableTapHold:Boolean,sortableEnabled:Boolean,sortableMoveElements:{type:Boolean,default:void 0},sortableOpposite:Boolean,accordionList:Boolean,accordionOpposite:Boolean,contactsList:Boolean,simpleList:Boolean,linksList:Boolean,menuList:Boolean,noChevron:Boolean,chevronCenter:Boolean,tab:Boolean,tabActive:Boolean,form:Boolean,formStoreData:Boolean,virtualList:Boolean,virtualListParams:Object,...ze},emits:["submit","sortable:enable","sortable:disable","sortable:sort","sortable:move","virtual:itembeforeinsert","virtual:beforeclear","virtual:itemsbeforeinsert","virtual:itemsafterinsert","tab:hide","tab:show"],setup(t,e){let{emit:n,slots:a}=e,r=null;const s=Le(null),i=h=>{n("submit",h)},o=h=>{s.value===h&&n("sortable:enable")},l=h=>{s.value===h&&n("sortable:disable")},c=(h,m,b)=>{s.value===b&&n("sortable:sort",m)},d=(h,m)=>{s.value===m&&n("sortable:move",h,m)};Or(s,n),tt(()=>{pt(()=>{if(Y.on("sortableEnable",o),Y.on("sortableDisable",l),Y.on("sortableSort",c),Y.on("sortableMove",d),!t.virtualList)return;const h=t.virtualListParams||{};!h.renderItem&&!h.renderExternal||(h.items&&(h.items=Pe(h.items)),r=Y.virtualList.create(kn({el:s.value,on:{itemBeforeInsert(m,b){n("virtual:itembeforeinsert",this,m,b)},beforeClear(m){n("virtual:beforeclear",this,m)},itemsBeforeInsert(m){n("virtual:itemsbeforeinsert",this,m)},itemsAfterInsert(m){n("virtual:itemsafterinsert",this,m)}}},h)))})}),lt(()=>{Y&&(Y.off("sortableEnable",o),Y.off("sortableDisable",l),Y.off("sortableSort",c),Y.off("sortableMove",d),t.virtualList&&r&&(r.destroy&&r.destroy(),r=null))});const u=ge(()=>Ae("list",{inset:t.inset,"inset-ios":t.insetIos,"inset-md":t.insetMd,"xsmall-inset":t.xsmallInset,"xsmall-inset-ios":t.xsmallInsetIos,"xsmall-inset-md":t.xsmallInsetMd,"small-inset":t.smallInset,"small-inset-ios":t.smallInsetIos,"small-inset-md":t.smallInsetMd,"medium-inset":t.mediumInset,"medium-inset-ios":t.mediumInsetIos,"medium-inset-md":t.mediumInsetMd,"large-inset":t.largeInset,"large-inset-ios":t.largeInsetIos,"large-inset-md":t.largeInsetMd,"xlarge-inset":t.xlargeInset,"xlarge-inset-ios":t.xlargeInsetIos,"xlarge-inset-md":t.xlargeInsetMd,"list-strong":t.strong,"list-strong-ios":t.strongIos,"list-strong-md":t.strongMd,"list-outline":t.outline,"list-outline-ios":t.outlineIos,"list-outline-md":t.outlineMd,"list-dividers":t.dividers,"list-dividers-ios":t.dividersIos,"list-dividers-md":t.dividersMd,"media-list":t.mediaList,"simple-list":t.simpleList,"links-list":t.linksList,"menu-list":t.menuList,sortable:t.sortable,"sortable-tap-hold":t.sortableTapHold,"sortable-enabled":t.sortableEnabled,"sortable-opposite":t.sortableOpposite,"accordion-list":t.accordionList,"accordion-opposite":t.accordionOpposite,"contacts-list":t.contactsList,"virtual-list":t.virtualList,tab:t.tab,"tab-active":t.tabActive,"form-store-data":t.formStoreData,"no-chevron":t.noChevron,"chevron-center":t.chevronCenter},Fe(t))),p=ge(()=>t.form?"form":"div"),f=ge(()=>({listIsMedia:t.mediaList,listIsSimple:t.simpleList,listIsSortable:t.sortable,listIsSortableOpposite:t.sortableOpposite}));return Gs("ListContext",f),()=>{const{list:h,default:m}=a,b=[],w=[],g=h&&typeof h=="function"?[h()]:[];let v=!1;return m&&m().forEach(y=>{if(typeof y>"u")return;const E=y.type&&y.type.name?y.type.name:y.type;E&&typeof E=="symbol"?(v=!0,g.push(y)):!E||E&&!(E==="li"||E.indexOf("f7-list-item")>=0||E.indexOf("f7-list-button")>=0||E.indexOf("f7-list-input")>=0)?v?w.push(y):b.push(y):E&&(v=!0,g.push(y))}),$e(p.value,{ref:s,class:u.value,"data-sortable-move-elements":typeof t.sortableMoveElements<"u"?t.sortableMoveElements.toString():void 0,onSubmit:i},[a["before-list"]&&a["before-list"](),b,g.length>0&&$e("ul",g),a["after-list"]&&a["after-list"](),w])}}};function H1(t,e){const n=Ve("f7-link");return we(),Me("div",{class:Re(t.classes)},[t.backLink?(we(),Et(n,{key:0,href:t.backLinkUrl||"#",back:"",icon:"icon-back",force:t.backLinkForce||void 0,class:Re(t.text?void 0:"icon-only"),text:t.text,onClick:t.onBackClick},null,8,["href","force","class","text","onClick"])):Qe("",!0),Te(t.$slots,"default")],2)}const Lg={name:"f7-nav-left",render:H1,components:{f7Link:Dg},props:{backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:Boolean,...ze},emits:["back:click","click:back"],setup(t,e){let{emit:n}=e;const a=o=>{n("back:click",o),n("click:back",o)},r=Na(),s=ge(()=>{let o=t.backLinkShowText;if(typeof o>"u"&&(o=!r.value.md),t.backLink)return t.backLink!==!0&&o?t.backLink:void 0});return{classes:ge(()=>Ae("left",{sliding:t.sliding},Fe(t))),onBackClick:a,text:s}}};function F1(t,e){return we(),Me("div",{class:Re(t.classes)},[Te(t.$slots,"default")],2)}const Rg={name:"f7-nav-right",render:F1,props:{sliding:Boolean,...ze},setup(t){return{classes:ge(()=>Ae("right",{sliding:t.sliding},Fe(t)))}}},z1={class:"title-large-text"};function N1(t,e){return we(),Me("div",{class:Re(t.classes)},[_e("div",z1,[Te(t.$slots,"default")])],2)}const V1={name:"f7-nav-title-large",render:N1,props:{...ze},setup(t){return{classes:ge(()=>Ae("title-large",Fe(t)))}}},_1={key:0,class:"subtitle"};function j1(t,e){return we(),Me("div",{class:Re(t.classes)},[Te(t.$slots,"default"),yt(" "+Zt(t.title)+" ",1),t.subtitle?(we(),Me("span",_1,Zt(t.subtitle),1)):Qe("",!0)],2)}const Hg={name:"f7-nav-title",render:j1,props:{title:String,subtitle:String,sliding:Boolean,...ze},setup(t){return{classes:ge(()=>Ae("title",{sliding:t.sliding},Fe(t)))}}},q1=_e("div",{class:"navbar-bg"},null,-1),W1={key:3,className:"title-large"},Y1={className:"title-large-text"};function X1(t,e){const n=Ve("f7-nav-left"),a=Ve("f7-nav-title"),r=Ve("f7-nav-right");return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[q1,Te(t.$slots,"before-inner"),_e("div",{class:Re(t.innerClasses)},[t.hasLeft?(we(),Et(n,{key:0,"back-link":t.backLink,"back-link-url":t.backLinkUrl,"back-link-force":t.backLinkForce,"back-link-show-text":t.backLinkShowText,"onBack:click":t.onBackClick},{default:Ne(()=>[Te(t.$slots,"nav-left"),Te(t.$slots,"left")]),_:3},8,["back-link","back-link-url","back-link-force","back-link-show-text","onBack:click"])):Qe("",!0),t.hasTitle?(we(),Et(a,{key:1,title:t.title,subtitle:t.subtitle},{default:Ne(()=>[Te(t.$slots,"title")]),_:3},8,["title","subtitle"])):Qe("",!0),t.hasRight?(we(),Et(r,{key:2},{default:Ne(()=>[Te(t.$slots,"nav-right"),Te(t.$slots,"right")]),_:3})):Qe("",!0),t.hasLargeTitle?(we(),Me("div",W1,[_e("div",Y1,[yt(Zt(t.largeTitle)+" ",1),Te(t.$slots,"title-large")])])):Qe("",!0),Te(t.$slots,"default")],2),Te(t.$slots,"after-inner")],2)}const U1={name:"f7-navbar",render:X1,components:{f7NavLeft:Lg,f7NavTitle:Hg,f7NavRight:Rg},props:{backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:{type:Boolean,default:!0},title:String,subtitle:String,hidden:Boolean,outline:{type:Boolean,default:!0},innerClass:String,innerClassName:String,large:Boolean,largeTransparent:Boolean,transparent:Boolean,titleLarge:String,...ze},emits:["navbar:hide","navbar:show","navbar:expand","navbar:collapse","navbar:transparentshow","navbar:transparenthide","click:back","back:click"],setup(t,e){let{emit:n,slots:a}=e,r="",s=!1,i=null,o=!1,l=!1,c=!1;const d=Le(null),u=Na(),p=G=>{d.value===G&&n("navbar:hide")},f=G=>{d.value===G&&n("navbar:show")},h=G=>{d.value===G&&(s=!1,n("navbar:expand"))},m=G=>{d.value===G&&(s=!0,n("navbar:collapse"))},b=G=>{d.value===G&&(c=!0,n("navbar:transparentshow"))},w=G=>{d.value===G&&(c=!1,n("navbar:transparenthide"))},g=(G,ee)=>{d.value===G&&(r=ee?`navbar-${ee}`:"")},v=(G,ee)=>{d.value===G&&(i=ee.role,o=ee.detailRoot)},y=G=>{d.value===G&&(l=!0)},E=G=>{d.value===G&&(l=!1)},k=G=>{Y&&Y.navbar.hide(d.value,G)},$=G=>{Y&&Y.navbar.show(d.value,G)},M=()=>{Y&&Y.navbar.size(d.value)},x=G=>{n("back:click",G),n("click:back",G)};tt(()=>{d.value&&pt(()=>{Y.navbar.size(d.value),Y.on("navbarShow",f),Y.on("navbarHide",p),Y.on("navbarCollapse",m),Y.on("navbarExpand",h),Y.on("navbarPosition",g),Y.on("navbarRole",v),Y.on("navbarMasterStack",y),Y.on("navbarMasterUnstack",E),Y.on("navbarTransparentShow",b),Y.on("navbarTransparentHide",w)})}),lt(()=>{Y&&(Y.off("navbarShow",f),Y.off("navbarHide",p),Y.off("navbarCollapse",m),Y.off("navbarExpand",h),Y.off("navbarPosition",g),Y.off("navbarRole",v),Y.off("navbarMasterStack",y),Y.off("navbarMasterUnstack",E),Y.off("navbarTransparentShow",b),Y.off("navbarTransparentHide",w))});const F=ge(()=>u.value&&u.value.ios&&Y&&!Y.params.navbar.iosCenterTitle),T=ge(()=>u.value&&u.value.md&&Y&&Y.params.navbar.mdCenterTitle),I=ge(()=>t.large||t.largeTransparent),B=ge(()=>t.transparent||I.value&&t.largeTransparent),P=ge(()=>B.value&&c),R=ge(()=>Ae("navbar",r,{"navbar-hidden":t.hidden,"navbar-large":I.value,"navbar-large-collapsed":I.value&&s,"navbar-transparent":B.value,"navbar-transparent-visible":P.value,"navbar-master":i==="master","navbar-master-detail":i==="detail","navbar-master-detail-root":o===!0,"navbar-master-stacked":l===!0,"no-outline":!t.outline},Fe(t))),V=ge(()=>{let G=t.titleLarge;return!G&&t.large&&t.title&&(G=t.title),G}),H=ge(()=>t.backLink||a["nav-left"]||a.left),D=ge(()=>t.title||t.subtitle||a.title),O=ge(()=>a["nav-right"]||a.right),_=ge(()=>V.value||a["title-large"]),N=ge(()=>Ae("navbar-inner",t.innerClass,t.innerClassName,{sliding:t.sliding,"navbar-inner-left-title":F.value,"navbar-inner-centered-title":T.value}));return{elRef:d,classes:R,innerClasses:N,hide:k,show:$,size:M,largeTitle:V,hasLeft:H,hasTitle:D,hasRight:O,hasLargeTitle:_,onBackClick:x}}},G1=["data-ptr-distance","data-ptr-mousewheel","data-infinite-distance"],K1={key:0,class:"ptr-preloader"},Q1=_e("div",{class:"ptr-arrow"},null,-1),J1={key:3,class:"ptr-preloader"},Z1=_e("div",{class:"ptr-arrow"},null,-1);function eE(t,e){const n=Ve("f7-preloader");return we(),Me("div",{ref:"elRef",class:Re(t.classes),"data-ptr-distance":t.ptrDistance||void 0,"data-ptr-mousewheel":t.ptrMousewheel||void 0,"data-infinite-distance":t.infiniteDistance||void 0},[t.ptr&&t.ptrPreloader&&!t.ptrBottom?(we(),Me("div",K1,[Se(n),Q1])):Qe("",!0),t.infinite&&t.infinitePreloader&&t.infiniteTop?(we(),Et(n,{key:1,class:"infinite-scroll-preloader"})):Qe("",!0),Te(t.$slots,"default"),t.infinite&&t.infinitePreloader&&!t.infiniteTop?(we(),Et(n,{key:2,class:"infinite-scroll-preloader"})):Qe("",!0),t.ptr&&t.ptrPreloader&&t.ptrBottom?(we(),Me("div",J1,[Se(n),Z1])):Qe("",!0)],10,G1)}const tE={name:"f7-page-content",render:eE,components:{f7Preloader:M1},props:{tab:Boolean,tabActive:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean,...ze},emits:["ptr:pullstart","ptr:pullmove","ptr:pullend","ptr:refresh","ptr:done","infinite","ptrPullStart","ptrPullMove","ptrPullEnd","ptrRefresh","ptrDone","tab:hide","tab:show"],setup(t,e){let{emit:n}=e;const a=Le(null),r=u=>{a.value===u&&(n("ptr:pullstart"),n("ptrPullStart"))},s=u=>{a.value===u&&(n("ptr:pullmove"),n("ptrPullMove"))},i=u=>{a.value===u&&(n("ptr:pullend"),n("ptrPullEnd"))},o=(u,p)=>{a.value===u&&(n("ptr:refresh",p),n("ptrRefresh",p))},l=u=>{a.value===u&&(n("ptr:done"),n("ptrDone"))},c=u=>{a.value===u&&n("infinite")};Or(a,n),tt(()=>{pt(()=>{t.ptr&&(Y.on("ptrPullStart",r),Y.on("ptrPullMove",s),Y.on("ptrPullEnd",i),Y.on("ptrRefresh",o),Y.on("ptrDone",l)),t.infinite&&Y.on("infinite",c)})}),lt(()=>{Y&&(Y.off("ptrPullStart",r),Y.off("ptrPullMove",s),Y.off("ptrPullEnd",i),Y.off("ptrRefresh",o),Y.off("ptrDone",l),Y.off("infinite",c))});const d=ge(()=>Ae("page-content",{tab:t.tab,"tab-active":t.tabActive,"ptr-content":t.ptr,"ptr-bottom":t.ptrBottom,"infinite-scroll-content":t.infinite,"infinite-scroll-top":t.infiniteTop,"hide-bars-on-scroll":t.hideBarsOnScroll,"hide-navbar-on-scroll":t.hideNavbarOnScroll,"hide-toolbar-on-scroll":t.hideToolbarOnScroll,"messages-content":t.messagesContent,"login-screen-content":t.loginScreen},Fe(t)));return{elRef:a,classes:d}}},nE={name:"f7-page",props:{name:String,withSubnavbar:{type:Boolean,default:void 0},subnavbar:{type:Boolean,default:void 0},withNavbarLarge:{type:Boolean,default:void 0},navbarLarge:{type:Boolean,default:void 0},noNavbar:Boolean,noToolbar:Boolean,tabs:Boolean,pageContent:{type:Boolean,default:!0},noSwipeback:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean,...ze},emits:["page:mounted","page:init","page:reinit","page:beforein","page:beforeout","page:afterout","page:afterin","page:beforeremove","page:beforeunmount","page:tabshow","page:tabhide","ptr:pullstart","ptr:pullmove","ptr:pullend","ptr:refresh","ptr:done","infinite"],setup(t,e){let{emit:n,slots:a}=e,r=!1,s=!1,i=!1,o=!1,l="",c=null,d=!1,u=!1;const p=Le(null),f=X=>{p.value===X.el&&n("page:mounted",X)},h=X=>{p.value===X.el&&(typeof t.withSubnavbar>"u"&&typeof t.subnavbar>"u"&&(X.$navbarEl&&X.$navbarEl.length&&X.$navbarEl.find(".subnavbar").length||X.$el.children(".navbar").find(".subnavbar").length)&&(r=!0),typeof t.withNavbarLarge>"u"&&typeof t.navbarLarge>"u"&&X.$navbarEl&&X.$navbarEl.hasClass("navbar-large")&&(s=!0),n("page:init",X))},m=X=>{p.value===X.el&&n("page:reinit",X)},b=X=>{p.value===X.el&&(X.swipeBack||(X.from==="next"&&(l="page-next"),X.from==="previous"&&(l="page-previous")),n("page:beforein",X))},w=X=>{p.value===X.el&&n("page:beforeout",X)},g=X=>{p.value===X.el&&(X.to==="next"&&(l="page-next"),X.to==="previous"&&(l="page-previous"),n("page:afterout",X))},v=X=>{p.value===X.el&&(l="page-current",n("page:afterin",X))},y=X=>{p.value===X.el&&n("page:beforeremove",X)},E=X=>{p.value===X.el&&n("page:beforeunmount",X)},k=(X,se)=>{p.value===X&&(l=`page-${se}`)},$=(X,se)=>{p.value===X&&(c=se.role,d=se.detailRoot)},M=X=>{p.value===X&&(u=!0)},x=X=>{p.value===X&&(u=!1)},F=X=>{p.value===X&&(i=!0)},T=X=>{p.value===X&&(i=!1)},I=(X,se)=>{p.value===se&&(o=!0)},B=(X,se)=>{p.value===se&&(o=!1)},P=X=>{p.value===X&&n("page:tabshow")},R=X=>{p.value===X&&n("page:tabhide")},V=()=>{n("ptr:pullstart")},H=()=>{n("ptr:pullmove")},D=()=>{n("ptr:pullend")},O=X=>{n("ptr:refresh",X)},_=()=>{n("ptr:done")},N=()=>{n("infinite")};tt(()=>{pt(()=>{Y.on("pageMounted",f),Y.on("pageInit",h),Y.on("pageReinit",m),Y.on("pageBeforeIn",b),Y.on("pageBeforeOut",w),Y.on("pageAfterOut",g),Y.on("pageAfterIn",v),Y.on("pageBeforeRemove",y),Y.on("pageBeforeUnmount",E),Y.on("pagePosition",k),Y.on("pageRole",$),Y.on("pageMasterStack",M),Y.on("pageMasterUnstack",x),Y.on("pageNavbarLargeCollapsed",F),Y.on("pageNavbarLargeExpanded",T),Y.on("cardOpened",I),Y.on("cardClose",B),Y.on("pageTabShow",P),Y.on("pageTabHide",R)})}),lt(()=>{Y&&(Y.off("pageMounted",f),Y.off("pageInit",h),Y.off("pageReinit",m),Y.off("pageBeforeIn",b),Y.off("pageBeforeOut",w),Y.off("pageAfterOut",g),Y.off("pageAfterIn",v),Y.off("pageBeforeRemove",y),Y.off("pageBeforeUnmount",E),Y.off("pagePosition",k),Y.off("pageRole",$),Y.off("pageMasterStack",M),Y.off("pageMasterUnstack",x),Y.off("pageNavbarLargeCollapsed",F),Y.off("pageNavbarLargeExpanded",T),Y.off("cardOpened",I),Y.off("cardClose",B),Y.off("pageTabShow",P),Y.off("pageTabHide",R))});const G=ge(()=>Ae("page",l,{tabs:t.tabs,"page-with-subnavbar":t.subnavbar||t.withSubnavbar,"page-with-navbar-large":t.navbarLarge||t.withNavbarLarge,"no-navbar":t.noNavbar,"no-toolbar":t.noToolbar,"no-swipeback":t.noSwipeback,"page-master":c==="master","page-master-detail":c==="detail","page-master-detail-root":d===!0,"page-master-stacked":u===!0,"page-with-navbar-large-collapsed":i===!0,"page-with-card-opened":o===!0,"login-screen-page":t.loginScreen},Fe(t))),ee="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index panel".split(" ").map(X=>`f7-${X}`);return()=>{const X=[],se=[],{static:ne,fixed:ie,default:le}=a;let me=!1,oe=!1,ce=t.messagesContent;const pe=le&&le();pe&&pe.forEach(A=>{if(typeof A>"u")return;const z=A.type&&A.type.name?A.type.name:A.type;let q=!1;if(!z){(t.pageContent||t.pageContent==="")&&se.push(A);return}z==="f7-subnavbar"&&(me=!0),z==="f7-navbar"&&A.props&&(A.props.large||A.props.large==="")&&(oe=!0),typeof ce>"u"&&z==="f7-messages"&&(ce=!0),ee.indexOf(z)>=0&&(q=!0),t.pageContent&&(q?X.push(A):se.push(A))});let L=G.value;return(me||r)&&typeof t.subnavbar>"u"&&typeof t.withSubnavbar>"u"&&L.indexOf("page-with-subnavbar")<0&&(L+=" page-with-subnavbar"),(oe||s)&&typeof t.navbarLarge>"u"&&typeof t.withNavbarLarge>"u"&&L.indexOf("page-with-navbar-large")<0&&(L+=" page-with-navbar-large"),t.pageContent?$e("div",{class:L,ref:p,"data-name":t.name},[X,ie&&ie(),$e(tE,{ptr:t.ptr,ptrDistance:t.ptrDistance,ptrPreloader:t.ptrPreloader,ptrBottom:t.ptrBottom,ptrMousewheel:t.ptrMousewheel,infinite:t.infinite,infiniteTop:t.infiniteTop,infiniteDistance:t.infiniteDistance,infinitePreloader:t.infinitePreloader,hideBarsOnScroll:t.hideBarsOnScroll,hideNavbarOnScroll:t.hideNavbarOnScroll,hideToolbarOnScroll:t.hideToolbarOnScroll,messagesContent:t.messagesContent||ce,loginScreen:t.loginScreen,onPtrPullStart:V,onPtrPullMove:H,onPtrPullEnd:D,onPtrRefresh:O,onPtrDone:_,onInfinite:N},()=>[ne&&ne(),se])]):$e("div",{class:L,ref:p,"data-name":t.name},[ie&&ie(),ne&&ne(),le&&pe])}}},aE={class:"searchbar-inner"},rE={class:"searchbar-input-wrap"},sE=["value","placeholder","spellcheck"],iE=_e("i",{class:"searchbar-icon"},null,-1);function oE(t,e){return we(),Et(Wb(t.tag),{ref:"elRef",class:Re(t.classes),onSubmit:t.onSubmit},{default:Ne(()=>[Te(t.$slots,"before-inner"),_e("div",aE,[Te(t.$slots,"inner-start"),_e("div",rE,[Te(t.$slots,"input-wrap-start"),_e("input",{value:t.value,placeholder:t.placeholder,spellcheck:t.spellcheck,type:"search",onInput:e[0]||(e[0]=function(){return t.onInput&&t.onInput(...arguments)}),onChange:e[1]||(e[1]=function(){return t.onChange&&t.onChange(...arguments)}),onFocus:e[2]||(e[2]=function(){return t.onFocus&&t.onFocus(...arguments)}),onBlur:e[3]||(e[3]=function(){return t.onBlur&&t.onBlur(...arguments)})},null,40,sE),iE,t.clearButton?(we(),Me("span",{key:0,class:"input-clear-button",onClick:e[4]||(e[4]=function(){return t.onClearButtonClick&&t.onClearButtonClick(...arguments)})})):Qe("",!0),Te(t.$slots,"input-wrap-end")]),t.disableButton?(we(),Me("span",{key:0,class:"searchbar-disable-button",onClick:e[5]||(e[5]=function(){return t.onDisableButtonClick&&t.onDisableButtonClick(...arguments)})},Zt(t.disableButtonText),1)):Qe("",!0),Te(t.$slots,"inner-end"),Te(t.$slots,"default")]),Te(t.$slots,"after-inner")]),_:3},40,["class","onSubmit"])}const lE={name:"f7-searchbar",render:oE,props:{outline:{type:Boolean,default:!0},form:{type:Boolean,default:!0},placeholder:{type:String,default:"Search"},spellcheck:{type:Boolean,default:void 0},disableButton:{type:Boolean,default:!0},disableButtonText:{type:String,default:"Cancel"},clearButton:{type:Boolean,default:!0},value:[String,Number,Array],inputEvents:{type:String,default:"change input compositionend"},expandable:Boolean,inline:Boolean,searchContainer:[String,Object],searchIn:{type:String,default:".item-title"},searchItem:{type:String,default:"li"},searchGroup:{type:String,default:".list-group"},searchGroupTitle:{type:String,default:".list-group-title"},foundEl:{type:[String,Object],default:".searchbar-found"},notFoundEl:{type:[String,Object],default:".searchbar-not-found"},backdrop:{type:Boolean,default:void 0},backdropEl:[String,Object],hideOnEnableEl:{type:[String,Object],default:".searchbar-hide-on-enable"},hideOnSearchEl:{type:[String,Object],default:".searchbar-hide-on-search"},ignore:{type:String,default:".searchbar-ignore"},customSearch:{type:Boolean,default:!1},removeDiacritics:{type:Boolean,default:!1},hideGroupTitles:{type:Boolean,default:!0},hideGroups:{type:Boolean,default:!0},init:{type:Boolean,default:!0},...ze},emits:["change","input","focus","blur","submit","click:clear","click:disable","searchbar:search","searchbar:clear","searchbar:enable","searchbar:disable","update:value"],setup(t,e){let{emit:n}=e,a=null;const r=Le(null),s=v=>{if(a)return a.search(v)},i=()=>{if(a)return a.enable()},o=()=>{if(a)return a.disable()},l=()=>{if(a)return a.toggle()},c=()=>{if(a)return a.clear()},d=v=>{n("change",v)},u=v=>{n("input",v),n("update:value",v.target.value)},p=v=>{n("focus",v)},f=v=>{n("blur",v)},h=v=>{n("submit",v)},m=v=>{n("click:clear",v)},b=v=>{n("click:disable",v)};tt(()=>{t.init&&pt(()=>{const v=Ra({el:r.value,inputEvents:t.inputEvents,searchContainer:t.searchContainer,searchIn:t.searchIn,searchItem:t.searchItem,searchGroup:t.searchGroup,searchGroupTitle:t.searchGroupTitle,hideOnEnableEl:t.hideOnEnableEl,hideOnSearchEl:t.hideOnSearchEl,foundEl:t.foundEl,notFoundEl:t.notFoundEl,backdrop:t.backdrop,backdropEl:t.backdropEl,disableButton:t.disableButton,ignore:t.ignore,customSearch:t.customSearch,removeDiacritics:t.removeDiacritics,hideGroupTitles:t.hideGroupTitles,hideGroups:t.hideGroups,expandable:t.expandable,inline:t.inline,on:{search(y,E,k){n("searchbar:search",y,E,k)},clear(y,E){n("searchbar:clear",y,E)},enable(y){n("searchbar:enable",y)},disable(y){n("searchbar:disable",y)}}});Object.keys(v).forEach(y=>{v[y]===""&&delete v[y]}),a=Y.searchbar.create(v)})}),lt(()=>{a&&a.destroy&&a.destroy(),a=null});const w=ge(()=>Ae("searchbar",{"searchbar-inline":t.inline,"no-outline":!t.outline,"searchbar-expandable":t.expandable},Fe(t))),g=ge(()=>t.form?"form":"div");return{elRef:r,tag:g,classes:w,search:s,enable:i,disable:o,toggle:l,clear:c,onChange:d,onInput:u,onFocus:p,onBlur:f,onSubmit:h,onClearButtonClick:m,onDisableButtonClick:b}}},cE={key:0,class:"subnavbar-inner"},dE={key:0,class:"subnavbar-title"};function uE(t,e){return we(),Me("div",{class:Re(t.classes)},[t.inner?(we(),Me("div",cE,[t.title?(we(),Me("div",dE,Zt(t.title),1)):Qe("",!0),Te(t.$slots,"default")])):Te(t.$slots,"default",{key:1})],2)}const pE={name:"f7-subnavbar",render:uE,props:{sliding:Boolean,title:String,inner:{type:Boolean,default:!0},...ze},setup(t){return{classes:ge(()=>Ae("subnavbar",{sliding:t.sliding},Fe(t)))}}},fE={key:0,className:"toolbar-inner"};function hE(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"before-inner"),t.inner?(we(),Me("div",fE,[Te(t.$slots,"default")])):Te(t.$slots,"default",{key:1}),Te(t.$slots,"after-inner")],2)}const mE={name:"f7-toolbar",render:hE,props:{tabbar:Boolean,icons:Boolean,scrollable:Boolean,hidden:Boolean,outline:{type:Boolean,default:!0},position:{type:String,default:void 0},topMd:{type:Boolean,default:void 0},topIos:{type:Boolean,default:void 0},top:{type:Boolean,default:void 0},bottomMd:{type:Boolean,default:void 0},bottomIos:{type:Boolean,default:void 0},bottom:{type:Boolean,default:void 0},inner:{type:Boolean,default:!0},...ze},emits:["toolbar:hide","toolbar:show"],setup(t,e){let{emit:n}=e;const a=Le(null),r=Na(),s=u=>{a.value===u&&n("toolbar:hide")},i=u=>{a.value===u&&n("toolbar:show")},o=u=>{Y&&Y.toolbar.hide(a.value,u)},l=u=>{Y&&Y.toolbar.show(a.value,u)};tt(()=>{t.tabbar&&Y&&a.value&&Y.toolbar.setHighlight(a.value),Y.on("toolbarShow",i),Y.on("toolbarHide",s)}),lt(()=>{Y.off("toolbarShow",i),Y.off("toolbarHide",s)});const c=ge(()=>({tabbarHasIcons:t.icons}));return Gs("TabbarContext",c),{classes:ge(()=>{const{tabbar:u,bottomMd:p,bottomIos:f,bottom:h,position:m,topMd:b,topIos:w,top:g,icons:v,scrollable:y,hidden:E,outline:k}=t;return Ae("toolbar",{tabbar:u,"toolbar-bottom":r.value&&r.value.md&&p||r.value&&r.value.ios&&f||h||m==="bottom","toolbar-top":r.value&&r.value.md&&b||r.value&&r.value.ios&&w||g||m==="top","tabbar-icons":v,"tabbar-scrollable":y,"toolbar-hidden":E,"no-outline":!k},Fe(t))}),elRef:a,hide:o,show:l}}},gE=(t,e)=>{const n=t.__vccOpts||t;for(const[a,r]of e)n[a]=r;return n},bE={name:"App",components:{f7App:h1,f7View:Yn,f7Navbar:U1,f7Page:nE,f7Searchbar:lE,f7Subnavbar:pE,f7Toolbar:mE,f7Link:Dg,f7List:R1,f7ListItem:L1,f7NavTitleLarge:V1,f7NavTitle:Hg,f7NavLeft:Lg,f7NavRight:Rg,f7Icon:Og,f7BlockHeader:b1,f7AccordionContent:u1,f7Block:w1},data(){return{blue:null,f7params:{name:"Shortcuts Glyphs",theme:"ios",darkMode:"auto"},search:"",glyphs:p0}},mounted(){this.blue=Y.colors.blue},methods:{alert(t,e){Y.dialog.alert(t,e)},copyToClipboard(t){navigator.clipboard.writeText(t),Y.dialog.alert(t,"Copied to Clipboard!")},glyphTitle(t){switch(t){case"airPods":return"AirPods";case"airPodsPro":return"AirPods Pro";case"QRCode":return"QR Code";case"QRViewFinder":return"QR View Finder"}let e=[],n="";for(let a=0;a1&&e.push(n),e=e.map(a=>{if(!a)return;let r=a.split("");const s=a[0].toUpperCase();return r.splice(0,1),s+r.join("")}),e.join(" ")}}},vE={class:"margin-top margin-bottom",style:{opacity:".5"}},wE=_e("p",null,[yt(" Set it as your Shortcut's icon in Cherri using a definition called "),_e("code",null,"glyph"),yt(". ")],-1),yE=_e("pre",null,"#define glyph identifier",-1),EE=_e("p",null,[yt(" Set it as your Shortcut's icon in Jelly using "),_e("code",null,"#Icon"),yt(". ")],-1),CE=_e("pre",null,"#Icon: identifier",-1);function kE(t,e,n,a,r,s){const i=Ve("f7-link"),o=Ve("f7-nav-left"),l=Ve("f7-nav-title-large"),c=Ve("f7-nav-title"),d=Ve("f7-searchbar"),u=Ve("f7-subnavbar"),p=Ve("f7-navbar"),f=Ve("f7-list-item"),h=Ve("f7-list"),m=Ve("f7-icon"),b=Ve("f7-block"),w=Ve("f7-accordion-content"),g=Ve("f7-page"),v=Ve("f7-view"),y=Ve("f7-app");return we(),Et(y,Tr(r.f7params,{theme:"ios"}),{default:Ne(()=>[Se(v,{main:""},{default:Ne(()=>[Se(g,null,{default:Ne(()=>[Se(p,{sliding:""},{default:Ne(()=>[Se(o,null,{default:Ne(()=>[Se(i,{"icon-f7":"info_circle",onClick:e[0]||(e[0]=E=>s.alert(`Glyphs sourced from github.com/atnbueno/shortcut-icons +${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length&&(o+=`?${Hn(r)}`)),o}findTabRouteUrl(e){const n=this,a=C(e),r=n.currentRoute.route.parentPath,s=a.attr("id"),i=n.flattenRoutes(n.routes);let o;return i.forEach(l=>{l.parentPath===r&&l.tab&&l.tab.id===s&&(n.currentRoute.params&&Object.keys(n.currentRoute.params).length>0?o=n.constructRouteUrl(l,{params:n.currentRoute.params,query:n.currentRoute.query}):o=l.path)}),o}findRouteByKey(e,n){const a=this,r=a.routes,s=a.flattenRoutes(r);let i;return s.forEach(o=>{i||o[e]===n&&(i=o)}),i}findMatchingRoute(e){if(!e)return;const n=this,a=n.routes,r=n.flattenRoutes(a),{path:s,query:i,hash:o,params:l}=n.parseRouteUrl(e);let c;return r.forEach(d=>{if(c)return;const u=[],p=[d.path||"/"];d.alias&&(typeof d.alias=="string"?p.push(d.alias):Array.isArray(d.alias)&&d.alias.forEach(h=>{p.push(h)}));let f;if(p.forEach(h=>{f||(f=dg(h,u).exec(s||"/"))}),f){u.forEach((m,b)=>{if(typeof m.name=="number")return;const w=f[b+1];typeof w>"u"||w===null?l[m.name]=w:l[m.name]=decodeURIComponent(w)});let h;d.parentPath&&(h=(s||"/").split("/").slice(0,d.parentPath.split("/").length-1).join("/")),c={query:i,hash:o,params:l,url:e,path:s||"/",parentPath:h,route:d,name:d.name}}}),c}replaceRequestUrlParams(e,n){e===void 0&&(e=""),n===void 0&&(n={});let a=e;return typeof a=="string"&&a.indexOf("{{")>=0&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&Object.keys(n.route.params).forEach(r=>{const s=new RegExp(`{{${r}}}`,"g");a=a.replace(s,n.route.params[r]||"")}),a}removeFromXhrCache(e){const a=this.cache.xhr;let r=!1;for(let s=0;s=0;return r.passRouteQueryToRequest&&n&&n.route&&n.route.query&&Object.keys(n.route.query).length&&(i+=`${o?"&":"?"}${Hn(n.route.query)}`,o=!0),r.passRouteParamsToRequest&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&(i+=`${o?"&":"?"}${Hn(n.route.params)}`,o=!0),i.indexOf("{{")>=0&&(i=a.replaceRequestUrlParams(i,n)),r.xhrCacheIgnoreGetParameters&&i.indexOf("?")>=0&&(i=i.split("?")[0]),new Promise((l,c)=>{if(r.xhrCache&&!s&&i.indexOf("nocache")<0&&r.xhrCacheIgnore.indexOf(i)<0)for(let u=0;u(d=u,u.text())).then(u=>{const{status:p}=d;a.emit("routerAjaxComplete",d),p!=="error"&&p!=="timeout"&&p>=200&&p<300||p===0?(r.xhrCache&&u!==""&&(a.removeFromXhrCache(i),a.cache.xhr.push({url:i,time:Bt(),content:u})),a.emit("routerAjaxSuccess",d,n),l(u)):(a.emit("routerAjaxError",d,n),c(d))}).catch(u=>{c(u)})})}setNavbarPosition(e,n,a){const r=this;e.removeClass("navbar-previous navbar-current navbar-next"),n&&e.addClass(`navbar-${n}`),a===!1?e.removeAttr("aria-hidden"):a===!0&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:n}),r.emit("navbarPosition",e[0],n)}setPagePosition(e,n,a){const r=this;e.removeClass("page-previous page-current page-next"),e.addClass(`page-${n}`),a===!1?e.removeAttr("aria-hidden"):a===!0&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:n}),r.emit("pagePosition",e[0],n)}removeThemeElements(e){const a=this.app.theme;let r;a==="ios"?r=".md-only, .if-md, .if-not-ios, .not-ios":a==="md"&&(r=".ios-only, .if-ios, .if-not-md, .not-md"),C(e).find(r).remove()}getPageData(e,n,a,r,s,i){s===void 0&&(s={});const o=this,l=C(e).eq(0),c=C(n).eq(0),d=l[0].f7Page||{};let u,p;if((a==="next"&&r==="current"||a==="current"&&r==="previous")&&(u="forward"),(a==="current"&&r==="next"||a==="previous"&&r==="current")&&(u="backward"),d&&!d.fromPage){const h=C(i);h.length&&(p=h[0].f7Page)}p=d.pageFrom||p,p&&p.pageFrom&&(p.pageFrom=null);const f={app:o.app,view:o.view,router:o,$el:l,el:l[0],$pageEl:l,pageEl:l[0],$navbarEl:c,navbarEl:c[0],name:l.attr("data-name"),position:a,from:a,to:r,direction:u,route:d.route?d.route:s,pageFrom:p};return l[0].f7Page=f,f}pageCallback(e,n,a,r,s,i,o){if(i===void 0&&(i={}),!n)return;const l=this,c=C(n);if(!c.length)return;const d=C(a),{route:u}=i,p=l.params.restoreScrollTopOnBack&&!(l.params.masterDetailBreakpoint>0&&c.hasClass("page-master")&&l.app.width>=l.params.masterDetailBreakpoint),f=c[0].f7Page&&c[0].f7Page.route&&c[0].f7Page.route.route&&c[0].f7Page.route.route.keepAlive;e==="beforeRemove"&&f&&(e="beforeUnmount");const h=`page${e[0].toUpperCase()+e.slice(1,e.length)}`,m=`page:${e.toLowerCase()}`;let b={};e==="beforeRemove"&&c[0].f7Page?b=W(c[0].f7Page,{from:r,to:s,position:r}):b=l.getPageData(c[0],d[0],r,s,u,o),b.swipeBack=!!i.swipeBack;const{on:w={},once:g={}}=i.route?i.route.route:{};i.on&&W(w,i.on),i.once&&W(g,i.once);function v(){c[0].f7RouteEventsAttached||(c[0].f7RouteEventsAttached=!0,w&&Object.keys(w).length>0&&(c[0].f7RouteEventsOn=w,Object.keys(w).forEach(E=>{w[E]=w[E].bind(l),c.on(ga(E),w[E])})),g&&Object.keys(g).length>0&&(c[0].f7RouteEventsOnce=g,Object.keys(g).forEach(E=>{g[E]=g[E].bind(l),c.once(ga(E),g[E])})))}function y(){c[0].f7RouteEventsAttached&&(c[0].f7RouteEventsOn&&Object.keys(c[0].f7RouteEventsOn).forEach(E=>{c.off(ga(E),c[0].f7RouteEventsOn[E])}),c[0].f7RouteEventsOnce&&Object.keys(c[0].f7RouteEventsOnce).forEach(E=>{c.off(ga(E),c[0].f7RouteEventsOnce[E])}),c[0].f7RouteEventsAttached=null,c[0].f7RouteEventsOn=null,c[0].f7RouteEventsOnce=null,delete c[0].f7RouteEventsAttached,delete c[0].f7RouteEventsOn,delete c[0].f7RouteEventsOnce)}if(e==="mounted"&&v(),e==="init"){if(p&&(r==="previous"||!r)&&s==="current"&&l.scrollHistory[b.route.url]&&!c.hasClass("no-restore-scroll")){let E=c.find(".page-content");E.length>0&&(E=E.filter(k=>C(k).parents(".tab:not(.tab-active)").length===0&&!C(k).is(".tab:not(.tab-active)"))),E.scrollTop(l.scrollHistory[b.route.url])}if(v(),c[0].f7PageInitialized){c.trigger("page:reinit",b),l.emit("pageReinit",b);return}c[0].f7PageInitialized=!0}if(p&&e==="beforeOut"&&r==="current"&&s==="previous"){let E=c.find(".page-content");E.length>0&&(E=E.filter(k=>C(k).parents(".tab:not(.tab-active)").length===0&&!C(k).is(".tab:not(.tab-active)"))),l.scrollHistory[b.route.url]=E.scrollTop()}p&&e==="beforeOut"&&r==="current"&&s==="next"&&delete l.scrollHistory[b.route.url],c.trigger(m,b),l.emit(h,b),(e==="beforeRemove"||e==="beforeUnmount")&&(y(),f||(c[0].f7Page&&c[0].f7Page.navbarEl&&delete c[0].f7Page.navbarEl.f7Page,c[0].f7Page=null))}saveHistory(){const e=this,n=fe();e.view.history=e.history,e.params.browserHistory&&e.params.browserHistoryStoreHistory&&n.localStorage&&(n.localStorage[`f7router-${e.view.id}-history`]=JSON.stringify(e.history))}restoreHistory(){const e=this,n=fe();e.params.browserHistory&&e.params.browserHistoryStoreHistory&&n.localStorage&&n.localStorage[`f7router-${e.view.id}-history`]&&(e.history=JSON.parse(n.localStorage[`f7router-${e.view.id}-history`]),e.view.history=e.history)}clearHistory(){const e=this;e.history=[],e.view&&(e.view.history=[]),e.saveHistory()}updateCurrentUrl(e){const n=this;la(n,"updateCurrentUrl"),n.history.length?n.history[n.history.length-1]=e:n.history.push(e);const{query:a,hash:r,params:s,url:i,path:o}=n.parseRouteUrl(e);if(n.currentRoute&&W(n.currentRoute,{query:a,hash:r,params:s,url:i,path:o}),n.params.browserHistory){const l=n.params.browserHistoryRoot||"";be.replace(n.view.id,{url:e},l+n.params.browserHistorySeparator+e)}n.saveHistory(),n.emit("routeUrlUpdate",n.currentRoute,n)}getInitialUrl(){const e=this;if(e.initialUrl)return{initialUrl:e.initialUrl,historyRestored:e.historyRestored};const{app:n,view:a}=e,r=ye(),s=fe(),i=n.params.url&&typeof n.params.url=="string"&&typeof URL<"u"?new URL(n.params.url):r.location;let o=e.params.url,l=i.href.split(i.origin)[1],c;const{browserHistory:d,browserHistoryOnLoad:u,browserHistorySeparator:p}=e.params;let{browserHistoryRoot:f}=e.params;return(s.cordova||s.Capacitor&&s.Capacitor.isNative)&&d&&!p&&!f&&i.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete browserHistory configuration, trying to guess browserHistoryRoot"),f=i.pathname.split("index.html")[0]),!d||!u?(o||(o=l),i.search&&o.indexOf("?")<0&&(o+=i.search),i.hash&&o.indexOf("#")<0&&(o+=i.hash)):(f&&l.indexOf(f)>=0&&(l=l.substring(l.indexOf(f)+f.length),l===""&&(l="/")),p.length>0&&l.indexOf(p)>=0?o=l.substring(l.indexOf(p)+p.length):o=l,e.restoreHistory(),e.history.indexOf(o)>=0?e.history=e.history.slice(0,e.history.indexOf(o)+1):e.params.url===o?e.history=[o]:be.state&&be.state[a.id]&&be.state[a.id].url===e.history[e.history.length-1]?o=e.history[e.history.length-1]:e.history=[l.split(p)[0]||"/",o],e.history.length>1?c=!0:e.history=[],e.saveHistory()),e.initialUrl=o,e.historyRestored=c,{initialUrl:o,historyRestored:c}}init(){const e=this,{app:n,view:a}=e,r=ye();e.mount();const{initialUrl:s,historyRestored:i}=e.getInitialUrl();(a&&e.params.iosSwipeBack&&n.theme==="ios"||a&&e.params.mdSwipeBack&&n.theme==="md")&&Py(e);const{browserHistory:o,browserHistoryOnLoad:l,browserHistoryAnimateOnLoad:c,browserHistoryInitialMatch:d}=e.params;let u;if(e.history.length>1){const p=d?s:e.history[0];u=e.findMatchingRoute(p),u||(u=W(e.parseRouteUrl(p),{route:{url:p,path:p.split("?")[0]}}))}else u=e.findMatchingRoute(s),u||(u=W(e.parseRouteUrl(s),{route:{url:s,path:s.split("?")[0]}}));if(e.$el.children(".page").length===0&&s&&e.params.loadInitialPage)e.navigate(s,{initial:!0,reloadCurrent:!0,browserHistory:!1,animate:!1,once:{modalOpen(){if(!i)return;(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0})},pageAfterIn(){if(!i)return;(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0})}}});else if(e.$el.children(".page").length){let p;e.currentRoute=u,e.$el.children(".page").each(f=>{const h=C(f);let m;e.setPagePosition(h,"current"),e.dynamicNavbar&&(m=h.children(".navbar"),m.length>0?(e.$navbarsEl.parents(r).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(m,"current"),e.$navbarsEl.append(m),m.children(".title-large").length&&m.addClass("navbar-large"),h.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),m.children(".title-large").length&&e.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),e.currentRoute&&e.currentRoute.route&&(e.currentRoute.route.master===!0||typeof e.currentRoute.route.master=="function"&&e.currentRoute.route.master(n,e))&&e.params.masterDetailBreakpoint>0&&(h.addClass("page-master"),h.trigger("page:role",{role:"master"}),m&&m.length&&m.addClass("navbar-master"),a.checkMasterDetailBreakpoint());const b={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&W(b,e.currentRoute.route.options),e.currentPageEl=h[0],e.dynamicNavbar&&m.length&&(e.currentNavbarEl=m[0]),e.removeThemeElements(h),e.dynamicNavbar&&m.length&&e.removeThemeElements(m),b.route.route.tab&&(p=!0,e.tabLoad(b.route.route.tab,W({},b))),e.pageCallback("init",h,m,"current",void 0,b),e.pageCallback("beforeIn",h,m,"current",void 0,b),e.pageCallback("afterIn",h,m,"current",void 0,b)}),i&&(d?(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0}):e.navigate(s,{initial:!0,browserHistory:!1,history:!1,animate:c,once:{pageAfterIn(){(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>2&&e.back({preload:!0})}}})),!i&&!p&&(e.history.push(s),e.saveHistory())}s&&o&&l&&(!be.state||!be.state[a.id])&&be.initViewState(a.id,{url:s}),e.emit("local::init routerInit",e)}destroy(){let e=this;e.emit("local::destroy routerDestroy",e),Object.keys(e).forEach(n=>{e[n]=null,delete e[n]}),e=null}}Xt.prototype.navigate=By;Xt.prototype.refreshPage=My;Xt.prototype.tabLoad=Iy;Xt.prototype.tabRemove=Oy;Xt.prototype.modalLoad=Ay;Xt.prototype.modalRemove=Dy;Xt.prototype.back=Ly;Xt.prototype.clearPreviousHistory=Hy;const si={name:"router",static:{Router:Xt},instance:{cache:{xhr:[],templates:[],components:[]}},create(){const t=this;t.app?t.params.router&&(t.router=new Xt(t.app,t)):t.router=new Xt(t)}};function Fy(t){const e=t.app,n=Ye();if(t.resizableInitialized)return;W(t,{resizable:!0,resizableWidth:null,resizableInitialized:!0});const a=C("html"),{$el:r}=t;if(!r)return;let s,i,o;const l={};let c,d,u,p;function f(y){if(!y)return null;if(y.indexOf("%")>=0||y.indexOf("vw")>=0)return parseInt(y,10)/100*e.width;const E=parseInt(y,10);return Number.isNaN(E)?null:E}function h(){return t.resizable&&r.hasClass("view-resizable")&&r.hasClass("view-master-detail")}function m(y){if(!h())return;l.x=y.type==="touchstart"?y.targetTouches[0].pageX:y.pageX,l.y=y.type==="touchstart"?y.targetTouches[0].pageY:y.pageY,o=!1,i=!0;const E=r.children(".page-master");u=f(E.css("min-width")),p=f(E.css("max-width"))}function b(y){if(!i)return;y.f7PreventSwipePanel=!0;const E=y.type==="touchmove"?y.targetTouches[0].pageX:y.pageX;o||(d=s[0].offsetLeft+s[0].offsetWidth,r.addClass("view-resizing"),a.css("cursor","col-resize")),o=!0,y.preventDefault(),c=E-l.x;let k=d+c;u&&!Number.isNaN(u)&&(k=Math.max(k,u)),p&&!Number.isNaN(p)&&(k=Math.min(k,p)),k=Math.min(Math.max(k,0),e.width),t.resizableWidth=k,a[0].style.setProperty("--f7-page-master-width",`${k}px`),r.trigger("view:resize",k),t.emit("local::resize viewResize",t,k)}function w(){if(C("html").css("cursor",""),!i||!o){i=!1,o=!1;return}i=!1,o=!1,a[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`),r.removeClass("view-resizing")}function g(){t.resizableWidth&&(u=f(s.css("min-width")),p=f(s.css("max-width")),u&&!Number.isNaN(u)&&t.resizableWidthp&&(t.resizableWidth=Math.min(t.resizableWidth,p)),t.resizableWidth=Math.min(Math.max(t.resizableWidth,0),e.width),a[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`))}s=t.$el.children(".view-resize-handler"),s.length||(t.$el.append('
'),s=t.$el.children(".view-resize-handler")),t.$resizeHandlerEl=s,r.addClass("view-resizable");const v=n.passiveListener?{passive:!0}:!1;t.$el.on(e.touchEvents.start,".view-resize-handler",m,v),e.on("touchmove:active",b),e.on("touchend:passive",w),e.on("resize",g),t.on("beforeOpen",g),t.once("viewDestroy",()=>{r.removeClass("view-resizable"),t.$resizeHandlerEl.remove(),t.$el.off(e.touchEvents.start,".view-resize-handler",m,v),e.off("touchmove:active",b),e.off("touchend:passive",w),e.off("resize",g),t.off("beforeOpen",g)})}let hr=class extends Xe{constructor(e,n,a){a===void 0&&(a={}),super(a,[e]);const r=this,s=r.params.routerId,i={routes:[],routesAdd:[]};if(!s&&!C(n).length){let c="Framework7: can't create a View instance because ";throw c+=typeof n=="string"?`the selector "${n}" didn't match any element`:"el must be an HTMLElement or Dom7 object",new Error(c)}r.params=W({el:n},i,e.params.view,a),r.params.routes.length>0?r.routes=r.params.routes:r.routes=[].concat(e.routes,r.params.routesAdd),W(!1,r,{app:e,name:r.params.name,main:r.params.main,history:[],scrollHistory:{}}),r.useModules(),e.views.push(r),r.main&&(e.views.main=r),r.name&&(e.views[r.name]=r),r.index=e.views.indexOf(r);let o;return r.name?o=`view_${r.name}`:r.main?o="view_main":o=`view_${r.index}`,r.id=o,r.params.init&&(e.initialized?r.init():e.on("init",()=>{r.init()})),r}destroy(){let e=this;const n=e.app;e.$el.trigger("view:beforedestroy"),e.emit("local::beforeDestroy viewBeforeDestroy",e),n.off("resize",e.checkMasterDetailBreakpoint),e.main?(n.views.main=null,delete n.views.main):e.name&&(n.views[e.name]=null,delete n.views[e.name]),e.$el[0].f7View=null,delete e.$el[0].f7View,n.views.splice(n.views.indexOf(e),1),e.params.router&&e.router&&e.router.destroy(),e.emit("local::destroy viewDestroy",e),Object.keys(e).forEach(a=>{e[a]=null,delete e[a]}),e=null}checkMasterDetailBreakpoint(e){const n=this,a=n.app,r=n.$el.hasClass("view-master-detail"),s=a.width>=n.params.masterDetailBreakpoint&&n.$el.children(".page-master").length;typeof e>"u"&&s||e===!0?(n.$el.addClass("view-master-detail"),r||(n.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",n),n.$el.trigger("view:masterDetailBreakpoint"))):(n.$el.removeClass("view-master-detail"),r&&(n.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",n),n.$el.trigger("view:masterDetailBreakpoint")))}initMasterDetail(){const e=this,n=e.app;e.checkMasterDetailBreakpoint=e.checkMasterDetailBreakpoint.bind(e),e.checkMasterDetailBreakpoint(),e.params.masterDetailResizable&&Fy(e),n.on("resize",e.checkMasterDetailBreakpoint)}mount(e){const n=this,a=n.app,r=n.params.el||e,s=C(r);let i;typeof r=="string"?i=r:i=(s.attr("id")?`#${s.attr("id")}`:"")+(s.attr("class")?`.${s.attr("class").replace(/ /g,".").replace(".active","")}`:"");let o;a.theme==="ios"&&n.params.iosDynamicNavbar&&(o=s.children(".navbars").eq(0),o.length===0&&(o=C(''))),W(n,{$el:s,el:s[0],main:n.main||s.hasClass("view-main"),$navbarsEl:o,navbarsEl:o?o[0]:void 0,selector:i}),n.main&&(a.views.main=n),s&&s[0]&&(s[0].f7View=n),n.emit("local::mount viewMount",n)}init(e){const n=this;n.mount(e),n.params.router&&(n.params.masterDetailBreakpoint>0&&n.initMasterDetail(),n.params.initRouterOnTabShow&&n.$el.hasClass("tab")&&!n.$el.hasClass("tab-active")?n.$el.once("tab:show",()=>{n.router.init()}):n.router.init(),n.$el.trigger("view:init"),n.emit("local::init viewInit",n))}};hr.use(si);function zy(t){function e(n){const a=fe(),r=C(n.target),s=r.closest("a"),i=s.length>0,o=i&&s.attr("href");if(i&&(s.is(t.params.clicks.externalLinks)||o&&o.indexOf("javascript:")>=0)){const d=s.attr("target");o&&a.cordova&&a.cordova.InAppBrowser&&(d==="_system"||d==="_blank")?(n.preventDefault(),a.cordova.InAppBrowser.open(o,d)):o&&a.Capacitor&&a.Capacitor.Plugins&&a.Capacitor.Plugins.Browser&&(d==="_system"||d==="_blank")&&(n.preventDefault(),a.Capacitor.Plugins.Browser.open({url:o}));return}Object.keys(t.modules).forEach(d=>{const u=t.modules[d].clicks;u&&(n.preventF7Router||Object.keys(u).forEach(p=>{const f=r.closest(p).eq(0);f.length>0&&u[p].call(t,f,f.dataset(),n)}))});let l={};if(i&&(n.preventDefault(),l=s.dataset()),l.clickedEl=s[0],n.preventF7Router||s.hasClass("prevent-router")||s.hasClass("router-prevent"))return;if(o&&o.length>0&&o[0]!=="#"||s.hasClass("back")){let d;if(l.view&&l.view==="current"?d=t.views.current:l.view?d=C(l.view)[0].f7View:(d=r.parents(".view")[0]&&r.parents(".view")[0].f7View,d&&d.params.linksView&&(!s.hasClass("back")||s.hasClass("back")&&d.router.history.length===1)&&(typeof d.params.linksView=="string"?d=C(d.params.linksView)[0].f7View:d.params.linksView instanceof hr&&(d=d.params.linksView))),d||t.views.main&&(d=t.views.main),!d||!d.router)return;s[0].f7RouteProps&&(l.props=s[0].f7RouteProps),s.hasClass("back")?d.router.back(o,l):d.router.navigate(o,l)}}t.on("click",e)}const pg={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init(){zy(this)}}},fg={name:"history",static:{history:be},on:{init(){be.init(this)}}},gn={registrations:[],register(t,e){const n=this;return!("serviceWorker"in fe().navigator)||!n.serviceWorker.container?new Promise((r,s)=>{s(new Error("Service worker is not supported"))}):new Promise((r,s)=>{n.serviceWorker.container.register(t,e?{scope:e}:{}).then(i=>{gn.registrations.push(i),n.emit("serviceWorkerRegisterSuccess",i),r(i)}).catch(i=>{n.emit("serviceWorkerRegisterError",i),s(i)})})},unregister(t){const e=this;if(!("serviceWorker"in fe().navigator)||!e.serviceWorker.container)return new Promise((r,s)=>{s(new Error("Service worker is not supported"))});let a;return t?Array.isArray(t)?a=t:a=[t]:a=gn.registrations,Promise.all(a.map(r=>new Promise((s,i)=>{r.unregister().then(()=>{gn.registrations.indexOf(r)>=0&&gn.registrations.splice(gn.registrations.indexOf(r),1),e.emit("serviceWorkerUnregisterSuccess",r),s()}).catch(o=>{e.emit("serviceWorkerUnregisterError",r,o),i(o)})})))}},hg={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create(){const t=this,e=fe();W(t,{serviceWorker:{container:"serviceWorker"in e.navigator?e.navigator.serviceWorker:void 0,registrations:gn.registrations,register:gn.register.bind(t),unregister:gn.unregister.bind(t)}})},on:{init(){const t=fe();if(!("serviceWorker"in t.navigator))return;const e=this;if(e.device.cordova||t.Capacitor&&t.Capacitor.isNative||!e.serviceWorker.container)return;const n=e.params.serviceWorker.path,a=e.params.serviceWorker.scope;if(!n||Array.isArray(n)&&!n.length)return;(Array.isArray(n)?n:[n]).forEach(s=>{e.serviceWorker.register(s,a)})}}};function eo(t){t===void 0&&(t={});const e={__store:!0},n={...t.state||{}},a={...t.actions||{}},r={...t.getters||{}},s=W({},n);let i=[];const o={},l={};Object.keys(r).forEach(m=>{o[m]=[],l[m]=[]});const c=m=>r[m]({state:e.state}),d=(m,b)=>{o[m]||(o[m]=[]),b.forEach(w=>{o[m].indexOf(w)<0&&o[m].push(w)})},u=(m,b)=>{l[m]||(l[m]=[]),l[m].push(b)},p=m=>{Object.keys(o).filter(w=>o[w].indexOf(m)>=0).forEach(w=>{!l[w]||!l[w].length||l[w].forEach(g=>{g(c(w))})})},f=m=>{Object.keys(l).forEach(b=>{const w=l[b];w.indexOf(m)>=0&&w.splice(w.indexOf(m),1)})};e.__removeCallback=m=>{f(m)};const h=function(m,b){if(b===void 0&&(b=!0),m==="constructor")return;i=[];const w=c(m);d(m,i);const v={value:w,onUpdated:E=>{u(m,E)}};if(!b)return v;const y=E=>{v.value=E};return v.__callback=y,u(m,y),v};return e.state=new Proxy(s,{set:(m,b,w)=>(m[b]=w,p(b),!0),get:(m,b)=>(i.push(b),m[b])}),e.getters=new Proxy(r,{set:()=>!1,get:(m,b)=>{if(m[b])return h(b,!0)}}),e._gettersPlain=new Proxy(r,{set:()=>!1,get:(m,b)=>{if(m[b])return h(b,!1)}}),e.dispatch=(m,b)=>new Promise((w,g)=>{if(!a[m])throw g(),new Error(`Framework7: Store action "${m}" is not found`);const v=a[m]({state:e.state,dispatch:e.dispatch},b);w(v)}),e}const mg={name:"store",static:{createStore:eo},proto:{createStore:eo}},Bn=()=>{const t=fe();return t.Capacitor&&t.Capacitor.isNative&&t.Capacitor.Plugins&&t.Capacitor.Plugins.StatusBar},Ot={hide(){const t=fe();Ie().cordova&&t.StatusBar&&t.StatusBar.hide(),Bn()&&t.Capacitor.Plugins.StatusBar.hide()},show(){const t=fe();Ie().cordova&&t.StatusBar&&t.StatusBar.show(),Bn()&&t.Capacitor.Plugins.StatusBar.show()},onClick(){const t=this;let e;C(".popup.modal-in").length>0?e=C(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".panel.panel-in").length>0?e=C(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".views > .view.tab-active").length>0?e=C(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".views").length>0?e=C(".views").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):e=t.$el.children(".view").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"),e&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))},setTextColor(t){const e=fe();Ie().cordova&&e.StatusBar&&(t==="white"?e.StatusBar.styleLightContent():e.StatusBar.styleDefault()),Bn()&&(t==="white"?e.Capacitor.Plugins.StatusBar.setStyle({style:"DARK"}):e.Capacitor.Plugins.StatusBar.setStyle({style:"LIGHT"}))},setBackgroundColor(t){const e=fe();Ie().cordova&&e.StatusBar&&e.StatusBar.backgroundColorByHexString(t),Bn()&&e.Capacitor.Plugins.StatusBar.setBackgroundColor({color:t})},isVisible(){const t=fe(),e=Ie();return new Promise(n=>{e.cordova&&t.StatusBar&&n(t.StatusBar.isVisible),Bn()&&t.Capacitor.Plugins.StatusBar.getInfo().then(a=>{n(a.visible)}),n(!1)})},overlaysWebView(t){t===void 0&&(t=!0);const e=fe();Ie().cordova&&e.StatusBar&&e.StatusBar.overlaysWebView(t),Bn()&&e.Capacitor.Plugins.StatusBar.setOverlaysWebView({overlay:t})},init(){const t=this,e=fe(),n=Ie(),a=t.params.statusbar;if(!a.enabled)return;const r=n.cordova&&e.StatusBar,s=Bn();(r||s)&&(a.scrollTopOnClick&&C(e).on("statusTap",Ot.onClick.bind(t)),n.ios&&(a.iosOverlaysWebView?Ot.overlaysWebView(!0):Ot.overlaysWebView(!1),a.iosTextColor==="white"?Ot.setTextColor("white"):Ot.setTextColor("black")),n.android&&(a.androidOverlaysWebView?Ot.overlaysWebView(!0):Ot.overlaysWebView(!1),a.androidTextColor==="white"?Ot.setTextColor("white"):Ot.setTextColor("black"))),a.iosBackgroundColor&&n.ios&&Ot.setBackgroundColor(a.iosBackgroundColor),a.androidBackgroundColor&&n.android&&Ot.setBackgroundColor(a.androidBackgroundColor)}},gg={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create(){Ct(this,{statusbar:Ot})},on:{init(){const t=this;Ot.init.call(t)}}};function Ny(t){const e=C(".popover.modal-in .view"),n=C(".popup.modal-in .view"),a=C(".panel.panel-in .view");let r=C(".views");r.length===0&&(r=t.$el);let s=r.children(".view");if(s.length===0&&(s=r.children(".tabs").children(".view")),s.length>1&&s.hasClass("tab")&&(s=r.children(".view.tab-active"),s.length===0&&(s=r.children(".tabs").children(".view.tab-active"))),e.length>0&&e[0].f7View)return e[0].f7View;if(n.length>0&&n[0].f7View)return n[0].f7View;if(a.length>0&&a[0].f7View)return a[0].f7View;if(s.length>0){if(s.length===1&&s[0].f7View)return s[0].f7View;if(s.length>1)return t.views.main}}const bg={name:"view",params:{view:{init:!0,initRouterOnTabShow:!1,name:void 0,main:!1,router:!0,linksView:null,xhrCache:!0,xhrCacheIgnore:[],xhrCacheIgnoreGetParameters:!1,xhrCacheDuration:1e3*60*10,componentCache:!0,preloadPreviousPage:!0,allowDuplicateUrls:!1,reloadPages:!1,reloadDetail:!1,masterDetailBreakpoint:0,masterDetailResizable:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,restoreScrollTopOnBack:!0,unloadTabContent:!0,passRouteQueryToRequest:!0,passRouteParamsToRequest:!1,loadInitialPage:!0,iosSwipeBack:!0,iosSwipeBackAnimateShadow:!0,iosSwipeBackAnimateOpacity:!0,iosSwipeBackActiveArea:30,iosSwipeBackThreshold:0,mdSwipeBack:!1,mdSwipeBackAnimateShadow:!0,mdSwipeBackAnimateOpacity:!1,mdSwipeBackActiveArea:30,mdSwipeBackThreshold:0,browserHistory:!1,browserHistoryRoot:void 0,browserHistoryAnimate:!0,browserHistoryAnimateOnLoad:!1,browserHistorySeparator:"#!",browserHistoryOnLoad:!0,browserHistoryInitialMatch:!1,browserHistoryStoreHistory:!0,browserHistoryTabs:"replace",animate:!0,iosDynamicNavbar:!0,iosAnimateNavbarBackIcon:!0,iosPageLoadDelay:0,mdPageLoadDelay:0,routesBeforeEnter:null,routesBeforeLeave:null}},static:{View:hr},create(){const t=this;W(t,{views:W([],{create(e,n){return new hr(t,e,n)},get(e){const n=C(e);if(n.length&&n[0].f7View)return n[0].f7View}})}),Object.defineProperty(t.views,"current",{enumerable:!0,configurable:!0,get(){return Ny(t)}}),t.view=t.views},on:{init(){const t=this;C(".view-init").each(e=>{if(e.f7View)return;const n=C(e).dataset();t.views.create(e,n)})},"modalOpen panelOpen":function(e){const n=this;e.$el.find(".view-init").each(a=>{if(a.f7View)return;const r=C(a).dataset();n.views.create(a,r)})},"modalBeforeDestroy panelBeforeDestroy":function(e){!e||!e.$el||e.$el.find(".view-init").each(n=>{const a=n.f7View;a&&a.destroy()})}},vnode:{"view-init":{insert(t){const e=this,n=t.elm;if(n.f7View)return;const a=C(n).dataset();e.views.create(n,a)},destroy(t){const n=t.elm.f7View;n&&n.destroy()}}}},Vy={size(t){const e=this;let n=C(t);if(n.hasClass("navbars")){n=n.children(".navbar").each(T=>{e.navbar.size(T)});return}const a=n.children(".navbar-inner");if(!a.length)return;const r=a.hasClass("navbar-inner-centered-title")||e.params.navbar[`${e.theme}CenterTitle`],s=e.theme==="ios"&&!e.params.navbar[`${e.theme}CenterTitle`];if(!r&&!s||n.parents(".tab:not(.tab-active)").length>0||n.parents(".popup:not(.modal-in)").length>0)return;e.theme!=="ios"&&e.params.navbar[`${e.theme}CenterTitle`]&&a.addClass("navbar-inner-centered-title"),e.theme==="ios"&&!e.params.navbar.iosCenterTitle&&a.addClass("navbar-inner-left-title");const i=n.parents(".view").eq(0),o=e.rtl?a.children(".right"):a.children(".left"),l=e.rtl?a.children(".left"):a.children(".right"),c=a.children(".title"),d=a.children(".subnavbar"),u=o.length===0,p=l.length===0,f=u?0:o.outerWidth(!0),h=p?0:l.outerWidth(!0),m=c.outerWidth(!0),b=a.styles(),g=a[0].offsetWidth-parseInt(b.paddingLeft,10)-parseInt(b.paddingRight,10),v=n.hasClass("navbar-previous"),y=a.hasClass("sliding");let E,k;i.length>0&&i[0].f7View&&(E=i[0].f7View.router,k=E&&E.dynamicNavbar);let $,M;p&&($=g-m),u&&($=0),!u&&!p&&($=(g-h-m+f)/2);let x=(g-m)/2;g-f-h>m?(xg-h&&(x=g-h-m),M=x-$):M=0;const F=e.rtl?-1:1;if(k&&e.theme==="ios"){if(c.hasClass("sliding")||c.length>0&&y){let T=-($+M)*F;const I=(g-$-M-m)*F;if(v&&E&&E.params.iosAnimateNavbarBackIcon){const B=n.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");B.length>0&&(T+=B[0].offsetLeft)}c[0].f7NavbarLeftOffset=T,c[0].f7NavbarRightOffset=I}if(!u&&(o.hasClass("sliding")||y)){if(e.rtl)o[0].f7NavbarLeftOffset=-(g-o[0].offsetWidth)/2*F,o[0].f7NavbarRightOffset=f*F;else if(o[0].f7NavbarLeftOffset=-f,o[0].f7NavbarRightOffset=(g-o[0].offsetWidth)/2,E&&E.params.iosAnimateNavbarBackIcon&&o.find(".back .icon").length>0&&o.find(".back .icon ~ span").length){const T=o[0].f7NavbarLeftOffset,I=o[0].f7NavbarRightOffset;o[0].f7NavbarLeftOffset=0,o[0].f7NavbarRightOffset=0,o.find(".back .icon ~ span")[0].f7NavbarLeftOffset=T,o.find(".back .icon ~ span")[0].f7NavbarRightOffset=I-o.find(".back .icon")[0].offsetWidth}}!p&&(l.hasClass("sliding")||y)&&(e.rtl?(l[0].f7NavbarLeftOffset=-h*F,l[0].f7NavbarRightOffset=(g-l[0].offsetWidth)/2*F):(l[0].f7NavbarLeftOffset=-(g-l[0].offsetWidth)/2,l[0].f7NavbarRightOffset=h)),d.length&&(d.hasClass("sliding")||y)&&(d[0].f7NavbarLeftOffset=e.rtl?d[0].offsetWidth:-d[0].offsetWidth,d[0].f7NavbarRightOffset=-d[0].f7NavbarLeftOffset)}if(r){let T=M;e.rtl&&u&&p&&c.length>0&&(T=-T),c.css({left:`${T}px`})}},hide(t,e,n,a){e===void 0&&(e=!0),n===void 0&&(n=!1),a===void 0&&(a=!1);const r=this;let s=C(t);const i=s.hasClass("navbar")&&s.parent(".navbars").length&&!a;if(i&&(s=s.parents(".navbars")),!s.length||s.hasClass("navbar-hidden"))return;let o=`navbar-hidden${e?" navbar-transitioning":""}`;(i?s.find(".navbar-current .title-large").length:s.find(".title-large").length)&&(o+=" navbar-large-hidden"),n&&(o+=" navbar-hidden-statusbar"),s.transitionEnd(()=>{s.removeClass("navbar-transitioning")}),s.addClass(o),i?s.children(".navbar").each(c=>{C(c).trigger("navbar:hide"),r.emit("navbarHide",c)}):(s.trigger("navbar:hide"),r.emit("navbarHide",s[0]))},show(t,e,n){t===void 0&&(t=".navbar-hidden"),e===void 0&&(e=!0),n===void 0&&(n=!1);const a=this;let r=C(t);const s=r.hasClass("navbar")&&r.parent(".navbars").length&&!n;s&&(r=r.parents(".navbars")),r.length&&r.hasClass("navbar-hidden")&&(e&&(r.addClass("navbar-transitioning"),r.transitionEnd(()=>{r.removeClass("navbar-transitioning")})),r.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),s?r.children(".navbar").each(i=>{C(i).trigger("navbar:show"),a.emit("navbarShow",i)}):(r.trigger("navbar:show"),a.emit("navbarShow",r[0])))},getElByPage(t){let e,n,a;if(t.$navbarEl||t.$el?(a=t,e=t.$el):(e=C(t),e.length>0&&(a=e[0].f7Page)),a&&a.$navbarEl&&a.$navbarEl.length>0?n=a.$navbarEl:e&&(n=e.children(".navbar")),!(!n||n&&n.length===0))return n[0]},getPageByEl(t){const e=C(t);if(e.parents(".page").length)return e.parents(".page")[0];let n;return e.parents(".view").find(".page").each(a=>{a&&a.f7Page&&a.f7Page.navbarEl&&e[0]===a.f7Page.navbarEl&&(n=a)}),n},collapseLargeTitle(t){const e=this;let n=C(t);if(n.hasClass("navbars")&&(n=n.find(".navbar"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const a=C(e.navbar.getPageByEl(n));n.addClass("navbar-large-collapsed"),a.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),e.emit("pageNavbarLargeCollapsed",a[0]),n.trigger("navbar:collapse"),e.emit("navbarCollapse",n[0])},expandLargeTitle(t){const e=this;let n=C(t);if(n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const a=C(e.navbar.getPageByEl(n));n.removeClass("navbar-large-collapsed"),a.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),e.emit("pageNavbarLargeExpanded",a[0]),n.trigger("navbar:expand"),e.emit("navbarExpand",n[0])},toggleLargeTitle(t){const e=this;let n=C(t);n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length)||(n.hasClass("navbar-large-collapsed")?e.navbar.expandLargeTitle(n):e.navbar.collapseLargeTitle(n))},initNavbarOnScroll(t,e,n,a,r){const s=this,i=Ye(),o=C(t),l=C(e),c=l.find(".title-large"),d=c.length||l.hasClass(".navbar-large");let u=44;const p=s.params.navbar.snapPageScrollToLargeTitle,f=s.params.navbar.snapPageScrollToTransparentNavbar;let h,m,b,w,g,v,y,E,k,$;(a||n&&d)&&(k=l.css("--f7-navbar-large-title-height"),k&&k.indexOf("px")>=0?(k=parseInt(k,10),Number.isNaN(k)&&c.length?k=c[0].offsetHeight:Number.isNaN(k)&&(s.theme==="ios"?k=52:s.theme==="md"&&(k=88))):c.length?k=c[0].offsetHeight:s.theme==="ios"?k=52:s.theme==="md"&&(k=88)),n&&d&&(u+=k);let M,x,F,T;const I=70,B=300;function P(){o.find(".page-content").each(se=>{se.f7ScrollableDistance=se.scrollHeight-se.offsetHeight})}function R(){l.hasClass("with-searchbar-expandable-enabled")||!x||m<0||(m>=k/2&&m=$/2&&m<$?C(x).scrollTop($,100):m<$&&C(x).scrollTop(0,200))}function H(){const se=l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden");if(l.hasClass("with-searchbar-expandable-enabled")||se)return;$||($=e.offsetHeight);let ie=m/$;const le=l.hasClass("navbar-transparent-visible");if(ie=Math.max(Math.min(ie,1),0),le&&ie===1||!le&&ie===0){l.find(".navbar-bg, .title").css("opacity","");return}if(le&&ie===0){l.trigger("navbar:transparenthide"),s.emit("navbarTransparentHide",l[0]),l.removeClass("navbar-transparent-visible"),l.find(".navbar-bg, .title").css("opacity","");return}if(!le&&ie===1){l.trigger("navbar:transparentshow"),s.emit("navbarTransparentShow",l[0]),l.addClass("navbar-transparent-visible"),l.find(".navbar-bg, .title").css("opacity","");return}l.find(".navbar-bg, .title").css("opacity",ie),f&&(i.touch?T&&(clearTimeout(T),T=null,T=setTimeout(()=>{V(),clearTimeout(T),T=null},I)):(clearTimeout(F),F=setTimeout(()=>{V()},B)))}let D=null,O=null;function _(se){if(l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"))return;const ie=l.hasClass("navbar-large-transparent")||l.hasClass("navbar-large")&&l.hasClass("navbar-transparent");D=O;const le=Math.min(k,se.f7ScrollableDistance||k);O=Math.min(Math.max(m/le,0),1);const me=D>0&&D<1;if(l.hasClass("with-searchbar-expandable-enabled"))return;E=l.hasClass("navbar-large-collapsed");const ce=l.find(".navbar-bg");O===0&&E?s.navbar.expandLargeTitle(l[0]):O===1&&!E&&s.navbar.collapseLargeTitle(l[0]),O===0&&E||O===0&&me||O===1&&!E||O===1&&me?(s.theme==="md"&&l.find(".navbar-inner").css("overflow",""),l.find(".title").css("opacity",""),l.find(".title-large-text, .subnavbar").css("transform",""),l.find(".title-large-text").css("opacity",""),ie&&ce.css("opacity",""),ce.css("transform","")):O>0&&O<1&&(s.theme==="md"&&l.find(".navbar-inner").css("overflow","visible"),l.find(".title").css("opacity",-.5+O*1.5),l.find(".title-large-text, .subnavbar").css("transform",`translate3d(0px, ${-1*O*k}px, 0)`),l.find(".title-large-text").css("opacity",1-O*2),ie&&ce.css("opacity",O),ce.css("transform",`translate3d(0px, ${-1*O*k}px, 0)`)),p&&(i.touch?T&&(clearTimeout(T),T=null,T=setTimeout(()=>{R(),clearTimeout(T),T=null},I)):(clearTimeout(F),F=setTimeout(()=>{R()},B)))}function N(){o.hasClass("page-with-card-opened")||(b=x.scrollHeight,w=x.offsetHeight,g=m+w>=b,y=l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"),g?s.params.navbar.showOnPageScrollEnd&&(v="show"):h>m?s.params.navbar.showOnPageScrollTop||m<=u?v="show":v="hide":m>u?v="hide":v="show",v==="show"&&y?(s.navbar.show(l,!0,!0),y=!1):v==="hide"&&!y&&(s.navbar.hide(l,!0,!1,!0),y=!0),h=m)}function G(se){x=this,!(se&&se.target&&se.target!==x)&&(m=x.scrollTop,M=m,a?_(x):r&&H(),!o.hasClass("page-previous")&&n&&N())}function ee(){M=!1}function X(){clearTimeout(T),T=null,T=setTimeout(()=>{M!==!1&&(r&&!a?V():R(),clearTimeout(T),T=null)},I)}o.on("scroll",".page-content",G,!0),i.touch&&(a&&p||r&&f)&&(s.on("touchstart:passive",ee),s.on("touchend:passive",X)),P(),(a||r)&&o.find(".page-content").each(se=>{se.scrollTop>0&&G.call(se)}),s.on("resize",P),o[0].f7DetachNavbarScrollHandlers=function(){s.off("resize",P),delete o[0].f7DetachNavbarScrollHandlers,o.off("scroll",".page-content",G,!0),i.touch&&(a&&p||r&&f)&&(s.off("touchstart:passive",ee),s.off("touchend:passive",X))}}},vg={name:"navbar",create(){Ct(this,{navbar:Vy})},params:{navbar:{scrollTopOnTitleClick:!0,iosCenterTitle:!0,mdCenterTitle:!1,hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0,collapseLargeTitleOnScroll:!0,snapPageScrollToLargeTitle:!0,snapPageScrollToTransparentNavbar:!0}},on:{"panelBreakpoint panelCollapsedBreakpoint panelResize viewResize resize viewMasterDetailBreakpoint":function(){const e=this;C(".navbar").each(n=>{e.navbar.size(n)})},pageBeforeRemove(t){t.$el[0].f7DetachNavbarScrollHandlers&&t.$el[0].f7DetachNavbarScrollHandlers()},pageBeforeIn(t){const e=this;if(e.theme!=="ios")return;let n;const a=t.$el.parents(".view")[0].f7View,r=e.navbar.getElByPage(t);if(r?n=C(r).parents(".navbars"):n=t.$el.parents(".view").children(".navbars"),t.$el.hasClass("no-navbar")||a.router.dynamicNavbar&&!r){const s=!!(t.pageFrom&&t.router.history.length>0);e.navbar.hide(n,s)}else e.navbar.show(n)},pageReinit(t){const e=this,n=C(e.navbar.getElByPage(t));!n||n.length===0||e.navbar.size(n)},pageInit(t){const e=this,n=C(e.navbar.getElByPage(t));if(!n||n.length===0)return;e.navbar.size(n);let a;n.find(".title-large").length>0&&n.addClass("navbar-large"),n.hasClass("navbar-large")&&(e.params.navbar.collapseLargeTitleOnScroll&&(a=!0),t.$el.addClass("page-with-navbar-large"));let r;!a&&n.hasClass("navbar-transparent")&&(r=!0);let s;(e.params.navbar.hideOnPageScroll||t.$el.find(".hide-navbar-on-scroll").length||t.$el.hasClass("hide-navbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll"))&&(t.$el.find(".keep-navbar-on-scroll").length||t.$el.hasClass("keep-navbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll")?s=!1:s=!0),(a||s||r)&&e.navbar.initNavbarOnScroll(t.el,n[0],s,a,r)},"panelOpen panelSwipeOpen modalOpen":function(e){const n=this;e.$el.find(".navbar:not(.navbar-previous)").each(a=>{n.navbar.size(a)})},tabShow(t){const e=this;C(t).find(".navbar:not(.navbar-previous)").each(n=>{e.navbar.size(n)})}},clicks:{".navbar .title":function(e,n,a){if(!this.params.navbar.scrollTopOnTitleClick||C(a.target).closest("a, button").length>0)return;let s;const i=e.parents(".navbar"),o=i.parents(".navbars");s=i.parents(".page-content"),s.length===0&&(i.parents(".page").length>0&&(s=i.parents(".page").find(".page-content")),s.length===0&&o.length&&o.nextAll(".page-current").length>0&&(s=o.nextAll(".page-current").find(".page-content")),s.length===0&&i.nextAll(".page-current").length>0&&(s=i.nextAll(".page-current").find(".page-content"))),s&&s.length>0&&(s.hasClass("tab")&&(s=s.parent(".tabs").children(".page-content.tab-active")),s.length>0&&s.scrollTop(0,300))}},vnode:{navbar:{postpatch(t){this.navbar.size(t.elm)}}}},_y={setHighlight(t){const e=this,n=C(t);if(e.theme==="ios"&&!n.hasClass("tabbar-highlight")||n.length===0||!(n.hasClass("tabbar")||n.hasClass("tabbar-icons")))return;let a=n.find(".tab-link-highlight");const r=n.find(".tab-link").length;if(r===0){a.remove();return}a.length===0?(n.children(".toolbar-inner").append(''),a=n.find(".tab-link-highlight")):a.next().length&&n.children(".toolbar-inner").append(a);const s=n.find(".tab-link-active");let i,o;if(n.hasClass("tabbar-scrollable")&&s&&s[0])i=`${s[0].offsetWidth}px`,o=`${s[0].offsetLeft}px`;else{const l=s.index();i=`${100/r}%`,o=`${(e.rtl?-l:l)*100}%`}Tt(()=>{a.css("width",i).transform(`translate3d(${o},0,0)`)})},init(t){this.toolbar.setHighlight(t)},hide(t,e){e===void 0&&(e=!0);const n=this,a=C(t);if(a.hasClass("toolbar-hidden"))return;const r=`toolbar-hidden${e?" toolbar-transitioning":""}`;a.transitionEnd(()=>{a.removeClass("toolbar-transitioning")}),a.addClass(r),a.trigger("toolbar:hide"),n.emit("toolbarHide",a[0])},show(t,e){e===void 0&&(e=!0);const n=this,a=C(t);a.hasClass("toolbar-hidden")&&(e&&(a.addClass("toolbar-transitioning"),a.transitionEnd(()=>{a.removeClass("toolbar-transitioning")})),a.removeClass("toolbar-hidden"),a.trigger("toolbar:show"),n.emit("toolbarShow",a[0]))},initToolbarOnScroll(t){const e=this,n=C(t);let a=n.parents(".view").children(".toolbar");if(a.length===0&&(a=n.find(".toolbar")),a.length===0&&(a=n.parents(".views").children(".tabbar, .tabbar-icons")),a.length===0)return;let r,s,i,o,l,c,d;function u(p){if(n.hasClass("page-with-card-opened")||n.hasClass("page-previous"))return;const f=this;p&&p.target&&p.target!==f||(s=f.scrollTop,i=f.scrollHeight,o=f.offsetHeight,l=s+o>=i,d=a.hasClass("toolbar-hidden"),l?e.params.toolbar.showOnPageScrollEnd&&(c="show"):r>s?e.params.toolbar.showOnPageScrollTop||s<=44?c="show":c="hide":s>44?c="hide":c="show",c==="show"&&d?(e.toolbar.show(a),d=!1):c==="hide"&&!d&&(e.toolbar.hide(a),d=!0),r=s)}n.on("scroll",".page-content",u,!0),n[0].f7ScrollToolbarHandler=u}},wg={name:"toolbar",create(){Ct(this,{toolbar:_y})},params:{toolbar:{hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0}},on:{pageBeforeRemove(t){t.$el[0].f7ScrollToolbarHandler&&t.$el.off("scroll",".page-content",t.$el[0].f7ScrollToolbarHandler,!0)},pageBeforeIn(t){const e=this;let n=t.$el.parents(".view").children(".toolbar");n.length===0&&(n=t.$el.parents(".views").children(".tabbar, .tabbar-icons")),n.length===0&&(n=t.$el.find(".toolbar")),n.length!==0&&(t.$el.hasClass("no-toolbar")?e.toolbar.hide(n):e.toolbar.show(n))},pageInit(t){const e=this;if(t.$el.find(".tabbar, .tabbar-icons").each(n=>{e.toolbar.init(n)}),e.params.toolbar.hideOnPageScroll||t.$el.find(".hide-toolbar-on-scroll").length||t.$el.hasClass("hide-toolbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll")){if(t.$el.find(".keep-toolbar-on-scroll").length||t.$el.hasClass("keep-toolbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll"))return;e.toolbar.initToolbarOnScroll(t.el)}},init(){const t=this;t.$el.find(".tabbar, .tabbar-icons").each(e=>{t.toolbar.init(e)})}},vnode:{tabbar:{insert(t){this.toolbar.init(t.elm)}}}},yg={name:"subnavbar",on:{pageInit(t){t.$navbarEl&&t.$navbarEl.length&&t.$navbarEl.find(".subnavbar").length&&t.$el.addClass("page-with-subnavbar"),t.$el.find(".subnavbar").filter(n=>C(n).parents(".page")[0]===t.$el[0]).length&&t.$el.addClass("page-with-subnavbar")}}};let to=class{constructor(e,n,a,r){const s=this;if(!n)return;const{left:i,top:o,width:l,height:c}=n[0].getBoundingClientRect(),d={x:a-i,y:r-o};let u=Math.max((c**2+l**2)**.5,48),p=!1;const f=e.params.touch.touchRippleInsetElements||"";if(f&&n.is(f)&&(p=!0),p&&(u=Math.max(Math.min(l,c),48)),!p&&n.css("overflow")==="hidden"){const h=((d.x-l/2)**2+(d.y-c/2)**2)**.5,m=(u/2+h)/(u/2);s.rippleTransform=`translate3d(0px, 0px, 0) scale(${m*2})`}else s.rippleTransform=`translate3d(${-d.x+l/2}px, ${-d.y+c/2}px, 0) scale(1)`;return p&&n.addClass("ripple-inset"),s.$rippleWaveEl=C(`
`),n.prepend(s.$rippleWaveEl),s.$rippleWaveEl.animationEnd(()=>{s.$rippleWaveEl&&(s.$rippleWaveEl.hasClass("ripple-wave-out")||(s.$rippleWaveEl.addClass("ripple-wave-in"),s.shouldBeRemoved&&s.out()))}),s}destroy(){let e=this;e.$rippleWaveEl&&e.$rippleWaveEl.remove(),Object.keys(e).forEach(n=>{e[n]=null,delete e[n]}),e=null}out(){const e=this,{$rippleWaveEl:n}=this;clearTimeout(e.removeTimeout),n.addClass("ripple-wave-out"),e.removeTimeout=setTimeout(()=>{e.destroy()},300),n.animationEnd(()=>{clearTimeout(e.removeTimeout),e.destroy()})}remove(){const e=this;e.shouldBeRemoved||(e.removeTimeout=setTimeout(()=>{e.destroy()},400),e.shouldBeRemoved=!0,e.$rippleWaveEl.hasClass("ripple-wave-in")&&e.out())}};const Eg={name:"touch-ripple",static:{TouchRipple:to},create(){const t=this;t.touchRipple={create(){for(var e=arguments.length,n=new Array(e),a=0;a0?f=!0:ha.length>0&&ha.forEach(h=>{h.type==="dialog"&&(f=!0)}),f)return Gn.push(a),a}const d=i.parent(),u=i.parents(r).length>0;d.is(a.$containerEl)||(a.$containerEl.append(i),a.once(`${l}Closed`,()=>{u?d.append(i):i.remove()})),i.show(),a.params.backdrop&&(a.params.backdropUnique||a.forceBackdropUnique)&&a.$backdropEl&&a.$backdropEl.insertBefore(i),a._clientLeft=i[0].clientLeft;function p(){i.hasClass("modal-out")?a.onClosed():i.hasClass("modal-in")&&a.onOpened()}return c?(o&&(o.removeClass("not-animated"),o.addClass("backdrop-in")),i.animationEnd(()=>{p()}),i.transitionEnd(()=>{p()}),i.removeClass("modal-out not-animated").addClass("modal-in"),a.onOpen()):(o&&o.addClass("backdrop-in not-animated"),i.removeClass("modal-out").addClass("modal-in not-animated"),a.onOpen(),a.onOpened()),a}close(e){const n=this,a=n.$el,r=n.$backdropEl;let s=!0;if(typeof e<"u"?s=e:typeof n.params.animate<"u"&&(s=n.params.animate),!a||!a.hasClass("modal-in"))return Gn.indexOf(n)>=0&&Gn.splice(Gn.indexOf(n),1),n;if(r){let o=!0;n.type==="popup"&&n.$el.prevAll(".popup.modal-in").add(n.$el.nextAll(".popup.modal-in")).each(l=>{const c=l.f7Modal;c&&c.params.closeByBackdropClick&&c.params.backdrop&&c.backdropEl===n.backdropEl&&(o=!1)}),o&&(r[s?"removeClass":"addClass"]("not-animated"),r.removeClass("backdrop-in"))}a[s?"removeClass":"addClass"]("not-animated");function i(){a.hasClass("modal-out")?n.onClosed():a.hasClass("modal-in")&&n.onOpened()}return s?(a.animationEnd(()=>{i()}),a.transitionEnd(()=>{i()}),a.removeClass("modal-in").addClass("modal-out"),n.onClose()):(a.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),n.onClose(),n.onClosed()),n.type==="dialog"&&jy(),n}destroy(){const e=this;e.destroyed||(e.emit(`local::beforeDestroy modalBeforeDestroy ${e.type}BeforeDestroy`,e),e.$el&&(e.$el.trigger(`modal:beforedestroy ${e.type.toLowerCase()}:beforedestroy`),e.$el.length&&e.$el[0].f7Modal&&delete e.$el[0].f7Modal),Ze(e),e.destroyed=!0)}};class no extends en{constructor(e,n){const a=W({backdrop:!0,closeByBackdropClick:!0,on:{}},n);super(e,a);const r=this;r.params=a;let s;if(r.params.el?s=C(r.params.el):s=C(r.params.content),s&&s.length>0&&s[0].f7Modal)return s[0].f7Modal;if(s.length===0)return r.destroy();let i;r.params.backdrop&&(i=e.$el.children(".custom-modal-backdrop"),i.length===0&&(i=C('
'),e.$el.append(i)));function o(l){!r||r.destroyed||i&&l.target===i[0]&&r.close()}return r.on("customModalOpened",()=>{r.params.closeByBackdropClick&&r.params.backdrop&&e.on("click",o)}),r.on("customModalClose",()=>{r.params.closeByBackdropClick&&r.params.backdrop&&e.off("click",o)}),W(r,{app:e,$el:s,el:s[0],$backdropEl:i,backdropEl:i&&i[0],type:"customModal"}),s[0].f7Modal=r,r}}const Cg={name:"modal",static:{Modal:en,CustomModal:no},create(){const t=this;t.customModal={create(e){return new no(t,e)}}},params:{modal:{queueDialogs:!0}}};nt.use([rg,sg,ig,og,lg,pg,si,fg,hg,mg,gg,bg,vg,wg,yg,Eg,Cg]);function Ra(t){const e={};return Object.keys(t).forEach(n=>{typeof t[n]<"u"&&(e[n]=t[n])}),e}function He(t){return typeof t=="string"&&t!==""}function Ga(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object}function kg(){return Date.now()}function kn(){let t=!0,e,n;for(var a=arguments.length,r=new Array(a),s=0;s{typeof s=="object"&&s.constructor===Object?Object.keys(s).forEach(i=>{s[i]&&t.push(i)}):s&&t.push(s)});const r=[];return t.forEach(s=>{r.indexOf(s)<0&&r.push(s)}),r.join(" ")}let xs=0,Ss=0;function qy(){xs=0,Ss=0}function ao(){return xs+=1,`${kg()}_${xs}`}function nr(){return Ss+=1,`${kg()}_${Ss}`}let Y,Ft;const St={},vt={views:[],tabs:[],modals:null},$g=()=>{Y&&(St.ios=Y.theme==="ios",St.md=Y.theme==="md")},Wy=()=>{qy(),delete St.ios,delete St.md,vt.views=[],vt.tabs=[],vt.modals=null},Yy=()=>{Ft=new nt.Events},ro=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n=!0);const a=kn({},e,{el:t,init:n});if(typeof e.store<"u"&&(a.store=e.store),a.routes||(a.routes=[]),a.userAgent&&(a.theme==="auto"||!a.theme)){const s=nt.getDevice({userAgent:a.userAgent},!0);St.ios=!!s.ios,St.md=!St.ios}if(Y&&typeof window<"u")return;typeof window>"u"&&Wy();const r=new nt(a);Y=r,$g(),r.initialized?(Y=r,Ft.emit("ready",Y)):r.on("init",()=>{Y=r,Ft.emit("ready",Y)})},pt=t=>{t&&(Y&&Y.initialized?t(Y):Ft.once("ready",t))};function Fe(t){const{color:e,textColor:n,bgColor:a,borderColor:r,rippleColor:s,dark:i}=t;return{dark:i,[`color-${e}`]:e,[`text-color-${n}`]:n,[`bg-color-${a}`]:a,[`border-color-${r}`]:r,[`ripple-color-${s}`]:s}}const ze={color:String,colorTheme:String,textColor:String,bgColor:String,borderColor:String,rippleColor:String,dark:Boolean},Xy={icon:String,iconMaterial:String,iconF7:String,iconIos:String,iconMd:String,iconColor:String,iconSize:[String,Number],iconBadge:[String,Number],iconBadgeColor:String},xg={back:Boolean,external:Boolean,force:Boolean,animate:{type:Boolean,default:void 0},ignoreCache:Boolean,reloadCurrent:Boolean,reloadAll:Boolean,reloadPrevious:Boolean,reloadDetail:{type:Boolean,default:void 0},routeTabId:String,view:String,routeProps:Object,preventRouter:Boolean,transition:String,openIn:String};function Sg(t){const{force:e,reloadCurrent:n,reloadPrevious:a,reloadAll:r,reloadDetail:s,animate:i,ignoreCache:o,routeTabId:l,view:c,transition:d,openIn:u}=t;let p;"animate"in t&&typeof i<"u"&&(p=i.toString());let f;return"reloadDetail"in t&&typeof s<"u"&&(f=s.toString()),{"data-force":e||void 0,"data-reload-current":n||void 0,"data-reload-all":r||void 0,"data-reload-previous":a||void 0,"data-reload-detail":f,"data-animate":p,"data-ignore-cache":o||void 0,"data-route-tab-id":l||void 0,"data-view":He(c)?c:void 0,"data-transition":He(d)?d:void 0,"data-open-in":He(u)?u:void 0}}function Tg(t){const{back:e,linkBack:n,external:a,preventRouter:r}=t;return{back:e||n,external:a,"prevent-router":r}}const Pg={searchbarEnable:[Boolean,String],searchbarDisable:[Boolean,String],searchbarClear:[Boolean,String],searchbarToggle:[Boolean,String],panelOpen:[Boolean,String],panelClose:[Boolean,String],panelToggle:[Boolean,String],popupOpen:[Boolean,String],popupClose:[Boolean,String],actionsOpen:[Boolean,String],actionsClose:[Boolean,String],popoverOpen:[Boolean,String],popoverClose:[Boolean,String],loginScreenOpen:[Boolean,String],loginScreenClose:[Boolean,String],sheetOpen:[Boolean,String],sheetClose:[Boolean,String],sortableEnable:[Boolean,String],sortableDisable:[Boolean,String],sortableToggle:[Boolean,String],cardOpen:[Boolean,String],cardPreventOpen:[Boolean,String],cardClose:[Boolean,String]};function Mg(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:a,searchbarToggle:r,panelOpen:s,panelClose:i,panelToggle:o,popupOpen:l,popupClose:c,actionsOpen:d,actionsClose:u,popoverOpen:p,popoverClose:f,loginScreenOpen:h,loginScreenClose:m,sheetOpen:b,sheetClose:w,sortableEnable:g,sortableDisable:v,sortableToggle:y,cardOpen:E,cardClose:k}=t;return{"data-searchbar":He(e)&&e||He(n)&&n||He(a)&&a||He(r)&&r||void 0,"data-panel":He(s)&&s||He(i)&&i||He(o)&&o||void 0,"data-popup":He(l)&&l||He(c)&&c||void 0,"data-actions":He(d)&&d||He(u)&&u||void 0,"data-popover":He(p)&&p||He(f)&&f||void 0,"data-sheet":He(b)&&b||He(w)&&w||void 0,"data-login-screen":He(h)&&h||He(m)&&m||void 0,"data-sortable":He(g)&&g||He(v)&&v||He(y)&&y||void 0,"data-card":He(E)&&E||He(k)&&k||void 0}}function Bg(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:a,searchbarToggle:r,panelOpen:s,panelClose:i,panelToggle:o,popupOpen:l,popupClose:c,actionsClose:d,actionsOpen:u,popoverOpen:p,popoverClose:f,loginScreenOpen:h,loginScreenClose:m,sheetOpen:b,sheetClose:w,sortableEnable:g,sortableDisable:v,sortableToggle:y,cardOpen:E,cardPreventOpen:k,cardClose:$}=t;return{"searchbar-enable":e||e==="","searchbar-disable":n||n==="","searchbar-clear":a||a==="","searchbar-toggle":r||r==="","panel-close":i||i==="","panel-open":s||s==="","panel-toggle":o||o==="","popup-close":c||c==="","popup-open":l||l==="","actions-close":d||d==="","actions-open":u||u==="","popover-close":f||f==="","popover-open":p||p==="","sheet-close":w||w==="","sheet-open":b||b==="","login-screen-close":m||m==="","login-screen-open":h||h==="","sortable-enable":g||g==="","sortable-disable":v||v==="","sortable-toggle":y||y==="","card-close":$||$==="","card-open":E||E==="","card-prevent-open":k||k===""}}const Ir=function(t){let{isOpened:e,isClosing:n}=t===void 0?{}:t;return{"modal-in":e&&!n,"modal-out":n}};function Uy(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default")],2)}const Gy={name:"f7-popup",render:Uy,props:{tabletFullscreen:Boolean,opened:Boolean,animate:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},swipeToClose:{type:[Boolean,String],default:!1},swipeHandler:{type:[String,Object],default:void 0},push:Boolean,containerEl:{type:[String,Object],default:void 0},...ze},emits:["popup:swipestart","popup:swipemove","popup:swipeend","popup:swipeclose","popup:open","popup:opened","popup:close","popup:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=Le(null);let r=t.opened,s=!1;const i=Le(null),o=b=>{n("popup:swipestart",b)},l=b=>{n("popup:swipemove",b)},c=b=>{n("popup:swipeend",b)},d=b=>{n("popup:swipeclose",b)},u=b=>{r=!0,s=!1,n("popup:open",b),n("update:opened",!0)},p=b=>{n("popup:opened",b)},f=b=>{r=!1,s=!0,n("popup:close",b)},h=b=>{s=!1,n("popup:closed",b),n("update:opened",!1)};Rt(()=>t.opened,b=>{a.value&&(b?a.value.open():a.value.close())}),tt(()=>{if(!i.value)return;const b={el:i.value,on:{swipeStart:o,swipeMove:l,swipeEnd:c,swipeClose:d,open:u,opened:p,close:f,closed:h}},{closeByBackdropClick:w,closeOnEscape:g,animate:v,backdrop:y,backdropEl:E,swipeToClose:k,swipeHandler:$,containerEl:M}=t;typeof w<"u"&&(b.closeByBackdropClick=w),typeof g<"u"&&(b.closeOnEscape=g),typeof v<"u"&&(b.animate=v),typeof y<"u"&&(b.backdrop=y),typeof E<"u"&&(b.backdropEl=E),typeof k<"u"&&(b.swipeToClose=k),typeof $<"u"&&(b.swipeHandler=$),typeof M<"u"&&(b.containerEl=M),pt(()=>{a.value=Y.popup.create(b),t.opened&&a.value.open(!1,!0)})}),lt(()=>{a.value&&a.value.destroy(),a.value=null});const m=ge(()=>Ae("popup",{"popup-tablet-fullscreen":t.tabletFullscreen,"popup-push":t.push},Ir({isOpened:r,isClosing:s}),Fe(t)));return{elRef:i,classes:m}}},Or=(t,e)=>{const n=r=>{t.value===r&&e("tab:show",r)},a=r=>{t.value===r&&e("tab:hide",r)};tt(()=>{t.value&&pt(()=>{Y.on("tabShow",n),Y.on("tabHide",a)})}),lt(()=>{Y&&(Y.off("tabShow",n),Y.off("tabHide",a))})},Ky=(t,e)=>{let n;const{initialUrl:a}=t.getInitialUrl(),r=t.findMatchingRoute(a);let s={};r&&r.route&&r.route.options&&(s=r.route.options.props);const i=o=>o.master===!0?!0:typeof o.master=="function"?o.master(t.app):!1;return r&&r.route&&(r.route.component||r.route.asyncComponent)&&!i(r.route)&&(n={component:r.route.component||r.route.asyncComponent,initialComponent:e,id:nr(),isAsync:!!r.route.asyncComponent,props:{f7route:r,f7router:t,...s,...r.params}}),{initialPage:n,initialRoute:r}},Yn={name:"f7-view",props:{tab:Boolean,tabActive:Boolean,name:String,initRouterOnTabShow:{type:Boolean,default:void 0},router:{type:Boolean,default:!0},linksView:[Object,String],url:String,main:{type:Boolean,default:void 0},xhrCache:{type:Boolean,default:void 0},xhrCacheIgnore:Array,xhrCacheIgnoreGetParameters:{type:Boolean,default:void 0},xhrCacheDuration:Number,preloadPreviousPage:{type:Boolean,default:void 0},allowDuplicateUrls:{type:Boolean,default:void 0},reloadPages:{type:Boolean,default:void 0},reloadDetail:{type:Boolean,default:void 0},masterDetailResizable:{type:Boolean,default:void 0},masterDetailBreakpoint:Number,removeElements:{type:Boolean,default:void 0},removeElementsWithTimeout:{type:Boolean,default:void 0},removeElementsTimeout:Number,restoreScrollTopOnBack:{type:Boolean,default:void 0},loadInitialPage:{type:Boolean,default:void 0},iosSwipeBack:{type:Boolean,default:void 0},iosSwipeBackAnimateShadow:{type:Boolean,default:void 0},iosSwipeBackAnimateOpacity:{type:Boolean,default:void 0},iosSwipeBackActiveArea:Number,iosSwipeBackThreshold:Number,mdSwipeBack:{type:Boolean,default:void 0},mdSwipeBackAnimateShadow:{type:Boolean,default:void 0},mdSwipeBackAnimateOpacity:{type:Boolean,default:void 0},mdSwipeBackActiveArea:Number,mdSwipeBackThreshold:Number,browserHistory:{type:Boolean,default:void 0},browserHistoryRoot:String,browserHistoryAnimate:{type:Boolean,default:void 0},browserHistoryAnimateOnLoad:{type:Boolean,default:void 0},browserHistorySeparator:String,browserHistoryOnLoad:{type:Boolean,default:void 0},browserHistoryInitialMatch:{type:Boolean,default:!0},browserHistoryStoreHistory:{type:Boolean,default:void 0},animate:{type:Boolean,default:void 0},transition:String,iosDynamicNavbar:{type:Boolean,default:void 0},iosAnimateNavbarBackIcon:{type:Boolean,default:void 0},materialPageLoadDelay:Number,passRouteQueryToRequest:{type:Boolean,default:void 0},passRouteParamsToRequest:{type:Boolean,default:void 0},routes:Array,routesAdd:Array,routesBeforeEnter:[Function,Array],routesBeforeLeave:[Function,Array],unloadTabContent:{type:Boolean,default:void 0},init:{type:Boolean,default:!0},...ze},emits:["view:init","view:resize","swipeback:move","swipeback:beforechange","swipeback:afterchange","swipeback:beforereset","swipeback:afterreset","tab:hide","tab:show"],setup(t,e){let{emit:n,slots:a}=e;const r=null,s=!(t.initRouterOnTabShow&&t.tab&&!t.tabActive);let i=null;const o=Le(null);let l=null,c,d;const u=M=>{n("view:init",M),t.init||(l.instance=M,i=l.instance)},p=()=>{const M=Pe(t.routes||[]),x=Pe(t.routesAdd||[]);return Ra({...t,routes:M,routesAdd:x})};if(Y&&!i&&t.init){const M=ao();if(i=Y.views.create(o.value,{...p(),routerId:M,init:!1,on:{init:u}}),l={routerId:M,instance:i},vt.views.push(l),s&&i&&i.router&&(t.url||t.main)){const x=Ky(i.router,r);c=x.initialPage,d=x.initialRoute,d&&d.route&&d.route.masterRoute&&(c=void 0,d=void 0)}}const f=Le(c?[c]:[]),h=M=>{M.forEach(x=>{x.component=Pe(x.component)}),f.value=M},m=(M,x)=>{n("view:resize",x)},b=M=>{n("swipeback:move",M)},w=M=>{n("swipeback:beforechange",M)},g=M=>{n("swipeback:afterchange",M)},v=M=>{n("swipeback:beforereset",M)},y=M=>{n("swipeback:afterreset",M)};tt(()=>{pt(()=>{if(i)l.el=o.value,l.pages=f.value,l.setPages=M=>{h([...M])},c&&c.isAsync&&!c.initialComponent?c.component().then(()=>{setTimeout(()=>{i.init(o.value),c&&(c.el=i.router.currentPageEl,d&&d.route&&d.route.keepAlive&&(d.route.keepAliveData={pageEl:c.el}))},100)}):(i.init(o.value),c&&(c.el=i.router.currentPageEl,d&&d.route&&d.route.keepAlive&&(d.route.keepAliveData={pageEl:c.el})));else{const M=ao();l={el:o.value,routerId:M,pages:f.value,instance:i,setPages(x){h([...x])}},vt.views.push(l),l.instance=Y.views.create(o.value,{routerId:M,...p(),on:{init:u}}),i=l.instance}t.init&&(i.on("resize",m),i.on("swipebackMove",b),i.on("swipebackBeforeChange",w),i.on("swipebackAfterChange",g),i.on("swipebackBeforeReset",v),i.on("swipebackAfterReset",y))})}),lt(()=>{i&&(i.off("resize",m),i.off("swipebackMove",b),i.off("swipebackBeforeChange",w),i.off("swipebackAfterChange",g),i.off("swipebackBeforeReset",v),i.off("swipebackAfterReset",y),i.destroy&&i.destroy(),i=null),vt.views.splice(vt.views.indexOf(l),1),l=null}),xr(()=>{!l||!Y||Ft.emit("viewRouterDidUpdate",l)}),Or(o,n);const E=ge(()=>Ae("view",{"view-main":t.main,"tab-active":t.tabActive,tab:t.tab},Fe(t))),k=M=>Pe(M.component),$=M=>{const{component:x,props:F}=M;let T=[];const I={};return x&&x.props&&(Array.isArray(x.props)?T=x.props.filter(B=>typeof B=="string"):T=Object.keys(x.props)),T.forEach(B=>{B in F&&(I[B]=F[B])}),I};return()=>$e("div",{ref:o,class:E.value},[a.default&&a.default(),...f.value.map(M=>$e(k(M),{key:M.id,...$(M)}))])}};function Qy(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default")],2)}const Jy={name:"f7-login-screen",render:Qy,props:{opened:Boolean,animate:{type:Boolean,default:void 0},containerEl:{type:[String,Object],default:void 0},...ze},emits:["loginscreen:open","loginscreen:opened","loginscreen:close","loginscreen:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=Le(null);let r=t.opened,s=!1;const i=Le(null),o=p=>{r=!0,s=!1,n("loginscreen:open",p),n("update:opened",!0)},l=p=>{n("loginscreen:opened",p)},c=p=>{r=!1,s=!0,n("loginscreen:close",p)},d=p=>{s=!1,n("loginscreen:closed",p),n("update:opened",!1)};Rt(()=>t.opened,p=>{a.value&&(p?a.value.open():a.value.close())}),tt(()=>{i.value&&pt(()=>{const p={el:i.value,on:{open:o,opened:l,close:c,closed:d}};typeof t.animate<"u"&&(p.animate=t.animate),typeof t.containerEl<"u"&&(p.containerEl=t.containerEl),a.value=Y.loginScreen.create(p),t.opened&&a.value.open(!1)})}),lt(()=>{a.value&&a.value.destroy(),a.value=null});const u=ge(()=>Ae("login-screen",Ir({isOpened:r,isClosing:s}),Fe(t)));return{elRef:i,classes:u}}},Zy={name:"f7-sheet",props:{opened:Boolean,animate:{type:Boolean,default:void 0},top:Boolean,bottom:Boolean,position:String,backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeByOutsideClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},push:Boolean,swipeToClose:{type:Boolean,default:void 0},swipeToStep:{type:Boolean,default:void 0},swipeHandler:{type:[String,Object],default:void 0},containerEl:{type:[String,Object],default:void 0},breakpoints:{type:Array,default:()=>{}},backdropBreakpoint:{type:Number,default:void 0},pushBreakpoint:{type:Number,default:void 0},...ze},emits:["sheet:stepprogress","sheet:stepopen","sheet:stepclose","sheet:open","sheet:opened","sheet:close","sheet:closed","sheet:breakpoint","update:opened"],setup(t,e){let{emit:n,slots:a}=e,r=null,s=t.opened,i=!1;const o=Le(null),l=(g,v)=>{n("sheet:breakpoint",g,v)},c=(g,v)=>{n("sheet:stepprogress",g,v)},d=g=>{n("sheet:stepopen",g)},u=g=>{n("sheet:stepclose",g)},p=g=>{s=!0,i=!1,n("sheet:open",g),n("update:opened",!0)},f=g=>{n("sheet:opened",g)},h=g=>{s=!1,i=!0,n("sheet:close",g)},m=g=>{i=!1,n("sheet:closed",g),n("update:opened",!1)};tt(()=>{if(!o.value)return;const g={el:o.value,on:{open:p,opened:f,close:h,closed:m,stepOpen:d,stepClose:u,stepProgress:c,breakpoint:l}},{animate:v,backdrop:y,backdropEl:E,closeByBackdropClick:k,closeByOutsideClick:$,closeOnEscape:M,swipeToClose:x,swipeToStep:F,swipeHandler:T,containerEl:I,breakpoints:B,backdropBreakpoint:P,pushBreakpoint:R}=t;typeof v<"u"&&(g.animate=v),typeof y<"u"&&(g.backdrop=y),typeof E<"u"&&(g.backdropEl=E),typeof k<"u"&&(g.closeByBackdropClick=k),typeof $<"u"&&(g.closeByOutsideClick=$),typeof M<"u"&&(g.closeOnEscape=M),typeof x<"u"&&(g.swipeToClose=x),typeof F<"u"&&(g.swipeToStep=F),typeof T<"u"&&(g.swipeHandler=T),typeof I<"u"&&(g.containerEl=I),typeof B<"u"&&(g.breakpoints=B),typeof P<"u"&&(g.backdropBreakpoint=P),typeof R<"u"&&(g.pushBreakpoint=R),pt(()=>{r=Y.sheet.create(g),t.opened&&r.open(!1)})}),lt(()=>{r&&r.destroy(),r=null}),Rt(()=>t.opened,g=>{r&&(g?r.open():r.close())}),["closeByBackdropClick","closeByOutsideClick","closeOnEscape","swipeToClose"].forEach(g=>{Rt(()=>t[g],v=>{r&&(r.params[g]=v)})});const b=ge(()=>{let g="bottom";return t.position?g=t.position:t.top?g="top":t.bottom&&(g="bottom"),Ae("sheet-modal",`sheet-modal-${g}`,{"sheet-modal-push":t.push},Ir({isOpened:s,isClosing:i}),Fe(t))}),w="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index panel".split(" ").map(g=>`f7-${g}`);return()=>{const g=[],v=[];return a.default&&a.default().forEach(y=>{if(typeof y>"u")return;const E=y.type&&y.type.name?y.type.name:y.type;w.indexOf(E)>=0?g.push(y):v.push(y)}),$e("div",{class:b.value,ref:o},[g,a.fixed&&a.fixed(),$e("div",{class:"sheet-modal-inner"},[v,a.static&&a.static()])])}}},e1={key:0,class:"popover-arrow"},t1={class:"popover-inner"};function n1(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[t.arrow!==!1?(we(),Me("div",e1)):Qe("",!0),_e("div",t1,[Te(t.$slots,"default")])],2)}const a1={name:"f7-popover",render:n1,props:{opened:Boolean,animate:{type:Boolean,default:void 0},targetEl:{type:[String,Object],default:void 0},arrow:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeByOutsideClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},containerEl:{type:[String,Object],default:void 0},verticalPosition:{type:String,default:void 0},...ze},emits:["popover:open","popover:opened","popover:close","popover:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=Le(null);let r=t.opened,s=!1;const i=Le(null),o=p=>{r=!0,s=!1,n("popover:open",p),n("update:opened",!0)},l=p=>{n("popover:opened",p)},c=p=>{r=!1,s=!0,n("popover:close",p)},d=p=>{s=!1,n("popover:closed",p),n("update:opened",!1)};Rt(()=>t.opened,p=>{a.value&&(p?a.value.open():a.value.close())}),tt(()=>{if(!i.value)return;const p={el:i.value,on:{open:o,opened:l,close:c,closed:d}},{targetEl:f,closeByBackdropClick:h,closeByOutsideClick:m,closeOnEscape:b,arrow:w,backdrop:g,backdropEl:v,containerEl:y,verticalPosition:E}=t;typeof f<"u"&&(p.targetEl=f),typeof h<"u"&&(p.closeByBackdropClick=h),typeof m<"u"&&(p.closeByOutsideClick=m),typeof b<"u"&&(p.closeOnEscape=b),typeof w<"u"&&(p.arrow=w),typeof g<"u"&&(p.backdrop=g),typeof v<"u"&&(p.backdropEl=v),typeof y<"u"&&(p.containerEl=y),typeof E<"u"&&(p.verticalPosition=E),pt(()=>{a.value=Y.popover.create(p),t.opened&&a.value.open(f,!1)})}),lt(()=>{a.value&&a.value.destroy(),a.value=null});const u=ge(()=>Ae("popover",Ir({isOpened:r,isClosing:s}),Fe(t)));return{elRef:i,classes:u}}},r1={key:0,class:"panel-resize-handler"};function s1(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default"),t.resizable?(we(),Me("div",r1)):Qe("",!0)],2)}const i1={name:"f7-panel",render:s1,props:{side:String,effect:String,cover:Boolean,reveal:Boolean,push:Boolean,floating:Boolean,left:Boolean,right:Boolean,opened:Boolean,resizable:Boolean,backdrop:{type:Boolean,default:!0},backdropEl:{type:String,default:void 0},containerEl:{type:String,default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},visibleBreakpoint:{type:Number,default:void 0},collapsedBreakpoint:{type:Number,default:void 0},swipe:Boolean,swipeNoFollow:Boolean,swipeOnlyClose:Boolean,swipeActiveArea:{type:Number,default:0},swipeThreshold:{type:Number,default:0},...ze},emits:["panel:open","panel:opened","panel:close","panel:closed","click","panel:backdropclick","panel:swipe","panel:swipeopen","panel:breakpoint","panel:collapsedbreakpoint","panel:resize","update:opened"],setup(t,e){let{emit:n}=e,a=null;const r=Le(null);let s=!1,i=!1,o=!1,l=!1;const c=y=>{s=!0,i=!1,n("panel:open",y),n("update:opened",!0)},d=y=>{n("panel:opened",y)},u=y=>{s=!1,i=!0,n("panel:close",y)},p=y=>{i=!1,n("panel:closed",y),n("update:opened",!1)},f=y=>{n("click",y),n("panel:backdropclick",y)},h=y=>{n("panel:swipe",y)},m=y=>{n("panel:swipeopen",y)},b=y=>{l=!0,o=!1,n("panel:breakpoint",y)},w=y=>{l=!1,o=!0,n("panel:collapsedbreakpoint",y)},g=function(){for(var y=arguments.length,E=new Array(y),k=0;kt.resizable,y=>{a&&(y?a.enableResizable():a.disableResizable())}),Rt(()=>t.opened,y=>{a&&(y?a.open():a.close())}),tt(()=>{pt(()=>{const y=Y.$;if(!y)return;y(".panel-backdrop").length===0&&y('
').insertBefore(r.value);const E=Ra({el:r.value,resizable:t.resizable,backdrop:t.backdrop,backdropEl:t.backdropEl,containerEl:t.containerEl,closeByBackdropClick:t.containerEl,visibleBreakpoint:t.visibleBreakpoint,collapsedBreakpoint:t.collapsedBreakpoint,swipe:t.swipe,swipeNoFollow:t.swipeNoFollow,swipeOnlyClose:t.swipeOnlyClose,swipeActiveArea:t.swipeActiveArea,swipeThreshold:t.swipeThreshold,on:{open:c,opened:d,close:u,closed:p,backdropClick:f,swipe:h,swipeOpen:m,collapsedBreakpoint:w,breakpoint:b,resize:g}});a=Y.panel.create(E),t.opened&&a.open(!1)})}),lt(()=>{a&&a.destroy&&a.destroy(),a=null});const v=ge(()=>{const y=t.side||(t.left?"left":"right"),E=t.effect||(t.reveal?"reveal":t.push?"push":t.floating?"floating":"cover");return Ae("panel",{"panel-in":s&&!i&&!l,"panel-in-breakpoint":l,"panel-in-collapsed":o,"panel-resizable":t.resizable,[`panel-${y}`]:y,[`panel-${E}`]:E},Fe(t))});return{elRef:r,classes:v}}},o1=(t,e,n)=>{const a={url:e,route:{path:e,options:{...n,openIn:void 0}}},r={...n};if(n.openIn==="popup"&&(r.component={setup(){return()=>$e(Gy,{class:"popup-router-open-in","data-url":e},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.popup=r),n.openIn==="loginScreen"&&(r.component={setup(){return()=>$e(Jy,{class:"login-screen-router-open-in","data-url":e},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.loginScreen=r),n.openIn==="sheet"&&(r.component={setup(){return()=>$e(Zy,{class:"sheet-modal-router-open-in","data-url":e},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.sheet=r),n.openIn==="popover"&&(r.targetEl=n.clickedEl||n.targetEl,r.component={setup(){return()=>$e(a1,{class:"popover-router-open-in","data-url":e,targetEl:n.clickedEl||n.targetEl},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.popover=r),n.openIn.indexOf("panel")>=0){const s=n.openIn.split(":"),i=s[1]||"left",o=s[2]||"cover";r.component={setup(){return()=>$e(i1,{class:"panel-router-open-in","data-url":e,side:i,effect:o},[$e(Yn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.panel=r}return t.navigate(a)},so=t=>{const e=[];for(let n=0;nt.length!==e.length?!1:new Set([...t,...e]).size===t.length,c1={proto:{openIn(t,e,n){return o1(t,e,n)},pageComponentLoader(t){let{routerEl:e,component:n,options:a,resolve:r,reject:s}=t;const i=this,o=i.id,l=e;let c;if(vt.views.forEach(h=>{(h.el&&h.el===e||h.routerId&&h.routerId===o)&&(c=h)}),!c){s();return}const d={component:n,id:nr(),props:kn({f7route:a.route,f7router:i},a.route.params,a.props||{})};let u;const p=so(l);function f(h){if(h!==c||u)return;const m=so(l);if(l1(p,m))return;Ft.off("viewRouterDidUpdate",f);const b=l.children[l.children.length-1];d.el=b,r(b),u=!0}Ft.on("viewRouterDidUpdate",f),c.pages.push(d),c.setPages(c.pages)},removePage(t){if(!t)return;const e=this;let n;if("length"in t&&t[0]?n=t[0].f7Page:n=t.f7Page,n&&n.route&&n.route.route&&n.route.route.keepAlive){e.app.$(t).remove();return}let a;vt.views.forEach(i=>{i.el&&i.el===e.el&&(a=i)});let r;if("length"in t){if(t.length===0)return;r=t[0]}else r=t;if(!r)return;let s;a.pages.forEach((i,o)=>{i.el===r&&(s=!0,a.pages.splice(o,1),a.setPages(a.pages))}),s||r.parentNode.removeChild(r)},tabComponentLoader(t){let{tabEl:e,component:n,options:a,resolve:r,reject:s}=t===void 0?{}:t;const i=this;e||s();let o;if(vt.tabs.forEach(p=>{p.el&&p.el===e&&(o=p)}),!o){s();return}const c={id:nr(),component:n,props:kn({f7route:a.route,f7router:i},a.route.route&&a.route.route.tab&&a.route.route.tab.options&&a.route.route.tab.options.props||{},a.route.params,a.props||{})};let d;function u(p){if(p!==o||d)return;Ft.off("tabRouterDidUpdate",u);const f=e.children[0];r(f),d=!0}Ft.on("tabRouterDidUpdate",u),o.setTabContent(c)},removeTabContent(t){if(!t)return;let e;if(vt.tabs.forEach(n=>{n.el&&n.el===t&&(e=n)}),!e){t.innerHTML="";return}e.setTabContent(null)},modalComponentLoader(t){let{component:e,options:n,resolve:a,reject:r}=t===void 0?{}:t;const s=this,i=vt.modals;if(!i){r();return}const o={component:e,id:nr(),props:kn({f7route:n.route,f7router:s},n.route.params,n.props||{})};let l;function c(){if(l)return;Ft.off("modalsRouterDidUpdate",c);const d=i.el.children[i.el.children.length-1];o.el=d,a(d),l=!0}Ft.on("modalsRouterDidUpdate",c),i.modals.push(o),i.setModals(i.modals)},removeModal(t){const e=vt.modals;if(!e)return;let n;e.modals.forEach(a=>{a.el===t&&(n=a)}),e.modals.splice(e.modals.indexOf(n),1),e.setModals(e.modals)}}},Ts={name:"vuePlugin",installed:!1,install(t){if(t===void 0&&(t={}),Ts.installed)return;Ts.installed=!0,Yy();const{theme:e,userAgent:n}=t;if(e==="md"&&(St.md=!0),e==="ios"&&(St.ios=!0),(typeof window>"u"?!!n:!0)&&(!e||e==="auto")){const r=nt.getDevice({userAgent:n},!0);St.ios=!!r.ios,St.md=!St.ios}pt(()=>{$g()}),nt.Router.use(c1)}};function d1(t,e){return we(),Me("div",{class:Re(t.classes)},[Te(t.$slots,"default")],2)}const u1={name:"f7-accordion-content",render:d1,props:{...ze},setup(t){return{classes:ge(()=>Ae("accordion-item-content",Fe(t)))}}},p1={name:"f7-routable-modals",setup(){const t=Le(null),e=Le([]),n=Le(null);tt(()=>{n.value={modals:e,el:t.value,setModals(s){s.forEach(i=>{i.component=Pe(i.component)}),e.value=[...s]}},vt.modals=n.value}),xr(()=>{!n.value||!Y||Ft.emit("modalsRouterDidUpdate",n.value)}),lt(()=>{n.value&&(vt.modals=null,n.value=null)});const a=s=>Pe(s.component),r=s=>{const{component:i,props:o}=s;let l=[];const c={};return i&&i.props&&(l=Object.keys(i.props)),l.forEach(d=>{d in o&&(c[d]=o[d])}),c};return()=>$e("div",{ref:t,class:"framework7-modals"},[...e.value.map(s=>$e(a(s),{key:s.id,...r(s)}))])}};function f1(t,e){const n=Ve("routable-modals");return we(),Me("div",{id:"framework7-root",ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default"),Se(n)],2)}const h1={name:"f7-app",render:f1,components:{RoutableModals:p1},inheritAttrs:!1,props:{name:{type:String,default:void 0},theme:{type:String,default:void 0},routes:{type:Array,default:()=>[]},store:Object,darkMode:{type:[Boolean,String],default:!1},colors:{type:Object,default:()=>{}},lazyModulesPath:{type:String,default:void 0},initOnDeviceReady:{type:Boolean,default:void 0},iosTranslucentBars:{type:Boolean,default:void 0},iosTranslucentModals:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},accordion:{type:Object,default:()=>{}},actions:{type:Object,default:()=>{}},areaChart:{type:Object,default:()=>{}},autocomplete:{type:Object,default:()=>{}},calendar:{type:Object,default:()=>{}},card:{type:Object,default:()=>{}},colorPicker:{type:Object,default:()=>{}},dialog:{type:Object,default:()=>{}},form:{type:Object,default:()=>{}},gauge:{type:Object,default:()=>{}},infiniteScroll:{type:Object,default:()=>{}},input:{type:Object,default:()=>{}},listIndex:{type:Object,default:()=>{}},loginScreen:{type:Object,default:()=>{}},messagebar:{type:Object,default:()=>{}},messages:{type:Object,default:()=>{}},navbar:{type:Object,default:()=>{}},notification:{type:Object,default:()=>{}},panel:{type:Object,default:()=>{}},photoBrowser:{type:Object,default:()=>{}},picker:{type:Object,default:()=>{}},pieChart:{type:Object,default:()=>{}},popover:{type:Object,default:()=>{}},popup:{type:Object,default:()=>{}},range:{type:Object,default:()=>{}},searchbar:{type:Object,default:()=>{}},sheet:{type:Object,default:()=>{}},smartSelect:{type:Object,default:()=>{}},sortable:{type:Object,default:()=>{}},statusbar:{type:Object,default:()=>{}},stepper:{type:Object,default:()=>{}},swipeout:{type:Object,default:()=>{}},textEditor:{type:Object,default:()=>{}},toast:{type:Object,default:()=>{}},toolbar:{type:Object,default:()=>{}},tooltip:{type:Object,default:()=>{}},view:{type:Object,default:()=>{}},virtualList:{type:Object,default:()=>{}},clicks:{type:Object,default:()=>{}},serviceWorker:{type:Object,default:()=>{}},touch:{type:Object,default:()=>{}},...ze},setup(t){const e=Le(null),n=Pe(t.routes);return(!Y||typeof window>"u")&&ro(e.value,Ra({...t,routes:n}),!1),tt(()=>{const r=e.value&&e.value.parentNode;if(typeof document<"u"&&r&&r!==document.body&&r.parentNode===document.body&&(r.style.height="100%"),Y){Y.init(e.value);return}ro(e.value,Ra({...t,routes:n}),!0)}),{classes:ge(()=>Ae("framework7-root",Fe(t))),elRef:e}}},Ar=(t,e)=>{let n=null;const{tooltip:a,tooltipTrigger:r}=e;tt(()=>{t.value&&a&&pt(()=>{n=Y.tooltip.create({targetEl:t.value,text:a,trigger:r})})}),lt(()=>{n&&n.destroy&&(n.destroy(),n=null)}),Rt(()=>e.tooltip,s=>{if(!s&&n){n.destroy(),n=null;return}if(s&&!n&&Y){n=Y.tooltip.create({targetEl:t.value,text:s,trigger:r});return}!s||!n||n.setText(s)})};function m1(t,e){return we(),Me("span",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default")],2)}const ii={name:"f7-badge",render:m1,props:{tooltip:String,tooltipTrigger:String,...ze},setup(t){const e=Le(null);Ar(e,t);const n=ge(()=>Ae("badge",Fe(t)));return{elRef:e,classes:n}}};function g1(t,e){return we(),Me("div",{class:Re(t.classes)},[Te(t.$slots,"default")],2)}const b1={name:"f7-block-header",render:g1,props:{...ze},setup(t){return{classes:ge(()=>Ae("block-header",Fe(t)))}}};function v1(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"default")],2)}const w1={name:"f7-block",render:v1,props:{inset:Boolean,insetIos:Boolean,insetMd:Boolean,xsmallInset:Boolean,xsmallInsetIos:Boolean,xsmallInsetMd:Boolean,smallInset:Boolean,smallInsetIos:Boolean,smallInsetMd:Boolean,mediumInset:Boolean,mediumInsetIos:Boolean,mediumInsetMd:Boolean,largeInset:Boolean,largeInsetIos:Boolean,largeInsetMd:Boolean,xlargeInset:Boolean,xlargeInsetIos:Boolean,xlargeInsetMd:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,outline:Boolean,outlineIos:Boolean,outlineMd:Boolean,tabs:Boolean,tab:Boolean,tabActive:Boolean,accordionList:Boolean,accordionOpposite:Boolean,...ze},emits:["tab:hide","tab:show"],setup(t,e){let{emit:n}=e;const a=Le(null);Or(a,n);const r=ge(()=>{const{inset:s,insetIos:i,insetMd:o,xsmallInset:l,xsmallInsetIos:c,xsmallInsetMd:d,smallInset:u,smallInsetIos:p,smallInsetMd:f,mediumInset:h,mediumInsetIos:m,mediumInsetMd:b,largeInset:w,largeInsetIos:g,largeInsetMd:v,xlargeInset:y,xlargeInsetIos:E,xlargeInsetMd:k,strong:$,strongIos:M,strongMd:x,outline:F,outlineIos:T,outlineMd:I,accordionList:B,accordionOpposite:P,tabs:R,tab:V,tabActive:H}=t;return Ae("block",{inset:s,"inset-ios":i,"inset-md":o,"xsmall-inset":l,"xsmall-inset-ios":c,"xsmall-inset-md":d,"small-inset":u,"small-inset-ios":p,"small-inset-md":f,"medium-inset":h,"medium-inset-ios":m,"medium-inset-md":b,"large-inset":w,"large-inset-ios":g,"large-inset-md":v,"xlarge-inset":y,"xlarge-inset-ios":E,"xlarge-inset-md":k,"block-strong":$,"block-strong-ios":M,"block-strong-md":x,"accordion-list":B,"accordion-opposite":P,tabs:R,tab:V,"tab-active":H,"block-outline":F,"block-outline-md":I,"block-outline-ios":T},Fe(t))});return{elRef:a,classes:r}}},y1=function(t){t===void 0&&(t={});const{icon:e,iconMaterial:n,iconF7:a,iconMd:r,iconIos:s,iconColor:i,iconSize:o,iconBadge:l,badgeColor:c,iconBadgeColor:d}=t;return e||n||a||r||s?{props:{material:n,f7:a,icon:e,md:r,ios:s,color:i,size:o},badge:l||l===0?{props:{color:c||d},content:l}:null}:null},Ig=function(t,e){let{routeProps:n}=e===void 0?{}:e;tt(()=>{t.value&&n&&(t.value.f7RouteProps=n)}),xr(()=>{t.value&&n?t.value.f7RouteProps=n:t.value&&t.value.f7RouteProps&&delete t.value.f7RouteProps})},Na=()=>{const t=Le(Y?St:null);return Y||pt(()=>{t.value=St}),t},E1={key:0,class:"preloader-inner"},C1=_e("svg",{viewBox:"0 0 36 36"},[_e("circle",{cx:"18",cy:"18",r:"16"})],-1),k1=[C1],$1={key:1,class:"preloader-inner"},x1=Tv('',8),S1=[x1],T1={key:2,class:"preloader-inner"};function P1(t,e){return we(),Me("div",{class:Re(t.classes),style:oa(t.style)},[t.theme&&t.theme.md?(we(),Me("span",E1,k1)):t.theme&&t.theme.ios?(we(),Me("span",$1,S1)):t.theme?Qe("",!0):(we(),Me("span",T1))],6)}const M1={name:"f7-preloader",render:P1,props:{size:[Number,String],...ze},setup(t){const e=Na(),n=ge(()=>Ae("preloader",{preloader:!0},Fe(t))),a=ge(()=>{const r={};let s=t.size;return s&&typeof s=="string"&&s.indexOf("px")>=0&&(s=s.replace("px","")),s&&(r.width=`${s}px`,r.height=`${s}px`,r["--f7-preloader-size"]=`${s}px`),r});return{classes:n,style:a,theme:e}}};function B1(t,e){return we(),Me("i",{ref:"elRef",style:oa({fontSize:t.sizeComputed,width:t.sizeComputed,height:t.sizeComputed}),class:Re(t.classesComputed)},[yt(Zt(t.iconText)+" ",1),Te(t.$slots,"default")],6)}const Og={name:"f7-icon",render:B1,props:{material:String,f7:String,icon:String,ios:String,md:String,tooltip:String,tooltipTrigger:String,size:[String,Number],...ze},setup(t){const e=Le(null),n=Na();Ar(e,t);const a=ge(()=>{const{ios:i,md:o,f7:l,material:c,icon:d}=t;let u={icon:!0},p;if(n.value&&n.value.ios?p=i:n.value&&n.value.md&&(p=o),p){const f=p.split(":"),h=f[0],m=f[1];(h==="material"||h==="f7")&&(u["material-icons"]=h==="material",u["f7-icons"]=h==="f7"),h==="icon"&&(u[m]=!0),d&&(u[d]=!0)}else u={icon:!0,"material-icons":c,"f7-icons":l},d&&(u[d]=!0);return Ae(u,Fe(t))}),r=ge(()=>{let i=t.size;return(typeof t.size=="number"||parseFloat(t.size)===t.size*1)&&(i=`${t.size}px`),i}),s=ge(()=>{const{ios:i,md:o,f7:l,material:c}=t;let d=c||l;return o&&n.value&&n.value.md&&(o.indexOf("material:")>=0||o.indexOf("f7:")>=0)?d=o.split(":")[1]:i&&n.value&&n.value.ios&&(i.indexOf("material:")>=0||i.indexOf("f7:")>=0)&&(d=i.split(":")[1]),d});return{elRef:e,sizeComputed:r,classesComputed:a,iconText:s}}};function I1(t,e){const n=Ve("f7-badge"),a=Ve("f7-icon");return we(),Et(a,fi(Hl(t.icon.props)),{default:Ne(()=>[t.icon.badge?(we(),Et(n,fi(Tr({key:0},t.icon.badge.props)),{default:Ne(()=>[yt(Zt(t.icon.badge.content),1)]),_:1},16)):Qe("",!0)]),_:1},16)}const O1={name:"f7-use-icon",render:I1,components:{f7Icon:Og,f7Badge:ii},props:{icon:Object}},Ag=(t,e,n)=>{let a;tt(()=>{pt(()=>{if(t.smartSelect){const r=kn({el:n()},t.smartSelectParams||{});a=Y.smartSelect.create(r),e(a)}})}),lt(()=>{a&&a.destroy&&a.destroy(),a=null,e(a)})};function A1(t,e){const n=Ve("f7-use-icon"),a=Ve("f7-badge");return we(),Me("a",Tr({ref:"elRef",class:t.classes},t.attrs),[t.icon?(we(),Et(n,{key:0,icon:t.icon},null,8,["icon"])):Qe("",!0),t.text?(we(),Me("span",{key:1,class:Re(t.isTabbarIcons?"tabbar-label":"")},[yt(Zt(t.text)+" ",1),t.badge?(we(),Et(a,{key:0,color:t.badgeColor},{default:Ne(()=>[yt(Zt(t.badge),1)]),_:1},8,["color"])):Qe("",!0)],2)):Qe("",!0),Te(t.$slots,"default")],16)}const Dg={name:"f7-link",render:A1,components:{f7Badge:ii,f7UseIcon:O1},props:{noLinkClass:Boolean,text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,tabbarLabel:Boolean,iconOnly:Boolean,badge:[String,Number],badgeColor:[String],href:{type:[String,Boolean],default:"#"},target:String,tooltip:String,tooltipTrigger:String,smartSelect:Boolean,smartSelectParams:Object,...Xy,...ze,...Pg,...xg},setup(t,e){let{slots:n}=e;const a=Le(null);let r=null;Ar(a,t),Ig(a,t),Ag(t,d=>{r=d},()=>a.value);const s=Zn("TabbarContext",{value:{}}),i=ge(()=>t.tabbarLabel||s.value.tabbarHasIcons),o=ge(()=>{const{href:d,tabLink:u,target:p}=t;let f=d;return d===!0&&(f="#"),d===!1&&(f=void 0),{href:f,target:p,"data-tab":He(u)&&u||void 0,...Sg(t),...Mg(t)}}),l=ge(()=>{const{iconOnly:d,text:u,noLinkClass:p,tabLink:f,tabLinkActive:h,smartSelect:m}=t;let b;const w=n&&n.default;return d||!u&&!w?b=!0:b=!1,Ae({link:!(p||i.value),"icon-only":b,"tab-link":f||f==="","tab-link-active":h,"smart-select":m},Fe(t),Tg(t),Bg(t))}),c=ge(()=>y1(t));return{elRef:a,icon:c,isTabbarIcons:i,attrs:o,classes:l,f7SmartSelect:r}}},D1=function(t){let{props:e,slots:n,inputElRef:a,onChange:r,onClick:s,isMediaComputed:i,isSortableComputed:o,isSortableOppositeComputed:l,itemContentClasses:c}=t===void 0?{}:t;const{radio:d,checkbox:u,value:p,name:f,readonly:h,disabled:m,checked:b,required:w,media:g,header:v,footer:y,title:E,subtitle:k,text:$,after:M,badge:x,badgeColor:F,swipeout:T,sortable:I,accordionItem:B}=e;let P,R,V,H,D,O,_,N,G,ee,X,se,ne;if((d||u)&&(ee=$e("input",{ref:a,value:p,name:f,checked:b,readonly:h,disabled:m,required:w,type:d?"radio":"checkbox",onChange:r}),X=$e("i",{class:`icon icon-${d?"radio":"checkbox"}`})),g||n.media){let le;g&&(le=$e("img",{src:g})),G=$e("div",{class:"item-media"},[le,n.media&&n.media()])}return(v||n.header)&&(se=$e("div",{class:"item-header"},[v,n.header&&n.header()])),(y||n.footer)&&(ne=$e("div",{class:"item-footer"},[y,n.footer&&n.footer()])),(E||n.title||!i.value&&se||!i.value&&ne)&&(P=$e("div",{class:"item-title"},[!i.value&&se,E,n.title&&n.title(),!i.value&&ne])),(k||n.subtitle)&&(_=$e("div",{class:"item-subtitle"},[k,n.subtitle&&n.subtitle()])),($||n.text)&&(N=$e("div",{class:"item-text"},[$,n.text&&n.text()])),(M||x||n.after)&&(M&&(V=$e("span",[M])),x&&(H=$e(ii,{color:F},()=>x)),R=$e("div",{class:"item-after"},[n["after-start"]&&n["after-start"](),V,H,n.after&&n.after(),n["after-end"]&&n["after-end"]()])),i.value?(O=$e("div",{class:"item-title-row"},[n["before-title"]&&n["before-title"](),P,n["after-title"]&&n["after-title"](),R]),D=$e("div",{class:"item-inner"},[n["inner-start"]&&n["inner-start"],se,O,_,N,T||B?null:n.default&&n.default(),n.inner&&n.inner(),ne,n["inner-end"]&&n["inner-end"]])):D=$e("div",{class:"item-inner"},[n["inner-start"]&&n["inner-start"](),n["before-title"]&&n["before-title"](),P,n["after-title"]&&n["after-title"](),R,T||B?null:n.default&&n.default(),n.inner&&n.inner(),n["inner-end"]&&n["inner-end"]()]),$e(u||d?"label":"div",{class:c.value,onClick:s},[o.value&&I!==!1&&l.value&&$e("div",{class:"sortable-handler"}),n["content-start"]&&n["content-start"](),ee,X,G,D,n.content&&n.content(),n["content-end"]&&n["content-end"]()])},L1={name:"f7-list-item",props:{title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],tooltip:String,tooltipTrigger:String,link:[Boolean,String],target:String,tabLink:[Boolean,String],tabLinkActive:Boolean,selected:Boolean,after:[String,Number],badge:[String,Number],badgeColor:String,mediaItem:Boolean,mediaList:Boolean,groupTitle:Boolean,swipeout:Boolean,swipeoutOpened:Boolean,sortable:{type:Boolean,default:void 0},sortableOpposite:{type:Boolean,default:void 0},accordionItem:Boolean,accordionItemOpened:Boolean,smartSelect:Boolean,smartSelectParams:Object,noChevron:Boolean,chevronCenter:Boolean,checkbox:Boolean,radio:Boolean,radioIcon:String,checkboxIcon:String,checked:Boolean,indeterminate:Boolean,name:String,value:{type:[String,Number,Array],default:void 0},readonly:Boolean,required:Boolean,disabled:Boolean,virtualListIndex:Number,...ze,...Pg,...xg},emits:["click","swipeout","swipeout:overswipeenter","swipeout:overswipeexit","swipeout:deleted","swipeout:delete","swipeout:close","swipeout:closed","swipeout:open","swipeout:opened","accordion:beforeclose","accordion:close","accordion:closed","accordion:beforeopen","accordion:open","accordion:opened","change","update:checked"],setup(t,e){let{slots:n,emit:a}=e;const r=Zn("ListContext",{value:{listIsMedia:!1,listIsSortable:!1,listIsSortableOpposite:!1,listIsSimple:!1}}),s=ge(()=>r.value.listIsMedia||!1),i=ge(()=>r.value.listIsSortable||!1),o=ge(()=>r.value.listIsSortableOpposite||!1),l=ge(()=>r.value.listIsSimple||!1),c=Le(null),d=Le(null),u=Le(null),p=_=>{_.target.tagName.toLowerCase()!=="input"&&a("click",_)},f=_=>{c.value===_&&a("swipeout:overswipeenter")},h=_=>{c.value===_&&a("swipeout:overswipeexit")},m=_=>{c.value===_&&a("swipeout:deleted")},b=_=>{c.value===_&&a("swipeout:delete")},w=_=>{c.value===_&&a("swipeout:close")},g=_=>{c.value===_&&a("swipeout:closed")},v=_=>{c.value===_&&a("swipeout:open")},y=_=>{c.value===_&&a("swipeout:opened")},E=(_,N)=>{c.value===_&&a("swipeout",N)},k=(_,N)=>{c.value===_&&a("accordion:beforeclose",N)},$=_=>{c.value===_&&a("accordion:close")},M=_=>{c.value===_&&a("accordion:closed")},x=(_,N)=>{c.value===_&&a("accordion:beforeopen",N)},F=_=>{c.value===_&&a("accordion:open")},T=_=>{c.value===_&&a("accordion:opened")},I=_=>{a("change",_),a("update:checked",_.target.checked)};Ar(c,t),Ig(d,t),Ag(t,()=>{},()=>c.value.querySelector("a.smart-select")),Rt(()=>t.swipeoutOpened,_=>{!t.swipeout||!c.value||!Y||(_?Y.swipeout.open(c.value):Y.swipeout.close(c.value))}),tt(()=>{pt(()=>{t.swipeout&&(Y.on("swipeoutOpen",v),Y.on("swipeoutOpened",y),Y.on("swipeoutClose",w),Y.on("swipeoutClosed",g),Y.on("swipeoutDelete",b),Y.on("swipeoutDeleted",m),Y.on("swipeoutOverswipeEnter",f),Y.on("swipeoutOverswipeExit",h),Y.on("swipeout",E)),t.accordionItem&&(Y.on("accordionBeforeOpen",x),Y.on("accordionOpen",F),Y.on("accordionOpened",T),Y.on("accordionBeforeClose",k),Y.on("accordionClose",$),Y.on("accordionClosed",M)),t.swipeout&&t.swipeoutOpened&&Y.swipeout.open(c.value)}),t.checkbox&&u.value&&(u.value.indeterminate=!!t.indeterminate)}),lt(()=>{Y&&(Y.off("swipeoutOpen",v),Y.off("swipeoutOpened",y),Y.off("swipeoutClose",w),Y.off("swipeoutClosed",g),Y.off("swipeoutDelete",b),Y.off("swipeoutDeleted",m),Y.off("swipeoutOverswipeEnter",f),Y.off("swipeoutOverswipeExit",h),Y.off("swipeout",E),Y.off("accordionBeforeOpen",x),Y.off("accordionOpen",F),Y.off("accordionOpened",T),Y.off("accordionBeforeClose",k),Y.off("accordionClose",$),Y.off("accordionClosed",M))}),Rt(()=>t.indeterminate,_=>{u.value&&(u.value.indeterminate=!!_)});const B=ge(()=>t.mediaItem||t.mediaList||s.value),P=ge(()=>t.sortable===!0||t.sortable===!1?t.sortable:i.value),R=ge(()=>P.value&&(t.sortableOpposite||o.value)),V=ge(()=>({href:t.link===!0?"":t.link||t.href,target:t.target,"data-tab":He(t.tabLink)&&t.tabLink||void 0,...Sg(t),...Mg(t)})),H=ge(()=>Ae({"item-link":!0,"smart-select":t.smartSelect,"tab-link":t.tabLink||t.tabLink==="","tab-link-active":t.tabLinkActive,"item-selected":t.selected},Tg(t),Bg(t))),D=ge(()=>Ae("item-content",{"item-checkbox":t.checkbox,"item-radio":t.radio,"item-checkbox-icon-start":t.checkbox&&t.checkboxIcon==="start","item-checkbox-icon-end":t.checkbox&&t.checkboxIcon==="end","item-radio-icon-start":t.radio&&t.radioIcon==="start","item-radio-icon-end":t.radio&&t.radioIcon==="end"},Fe(t))),O=ge(()=>Ae({"list-group-title":t.groupTitle,"media-item":B.value,swipeout:t.swipeout,"accordion-item":t.accordionItem,"accordion-item-opened":t.accordionItemOpened,disabled:t.disabled&&!(t.radio||t.checkbox),"no-chevron":t.noChevron,"chevron-center":t.chevronCenter,"disallow-sorting":t.sortable===!1},Fe(t)));return()=>{let _,N;if(l.value||(N=D1({props:t,slots:n,inputElRef:u,onChange:I,onClick:t.link||t.href||t.accordionItem||t.smartSelect?void 0:p,isMediaComputed:B,isSortableComputed:P,isSortableOppositeComputed:R,itemContentClasses:D}),(t.link||t.href||t.accordionItem||t.smartSelect)&&(_=$e("a",{ref:d,class:H.value,...V.value,onClick:p},[N]))),t.groupTitle)return $e("li",{ref:c,class:O.value,"data-virtual-list-index":t.virtualListIndex,onClick:p},[t.title,n.default&&n.default()]);if(l.value)return $e("li",{ref:c,class:O.value,onClick:p,"data-virtual-list-index":t.virtualListIndex},[t.title,n.default&&n.default()]);const G=t.link||t.href||t.smartSelect||t.accordionItem?_:N;return $e("li",{ref:c,class:O.value,"data-virtual-list-index":t.virtualListIndex},[n["root-start"]&&n["root-start"](),t.swipeout?$e("div",{class:"swipeout-content"},[G]):G,P.value&&t.sortable!==!1&&!R.value&&$e("div",{class:"sortable-handler"}),(t.swipeout||t.accordionItem)&&n.default(),n.root&&n.root(),n["root-end"]&&n["root-end"]()])}}},R1={name:"f7-list",props:{inset:Boolean,insetIos:Boolean,insetMd:Boolean,xsmallInset:Boolean,xsmallInsetIos:Boolean,xsmallInsetMd:Boolean,smallInset:Boolean,smallInsetIos:Boolean,smallInsetMd:Boolean,mediumInset:Boolean,mediumInsetIos:Boolean,mediumInsetMd:Boolean,largeInset:Boolean,largeInsetIos:Boolean,largeInsetMd:Boolean,xlargeInset:Boolean,xlargeInsetIos:Boolean,xlargeInsetMd:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,outline:Boolean,outlineIos:Boolean,outlineMd:Boolean,dividers:Boolean,dividersIos:Boolean,dividersMd:Boolean,mediaList:Boolean,sortable:Boolean,sortableTapHold:Boolean,sortableEnabled:Boolean,sortableMoveElements:{type:Boolean,default:void 0},sortableOpposite:Boolean,accordionList:Boolean,accordionOpposite:Boolean,contactsList:Boolean,simpleList:Boolean,linksList:Boolean,menuList:Boolean,noChevron:Boolean,chevronCenter:Boolean,tab:Boolean,tabActive:Boolean,form:Boolean,formStoreData:Boolean,virtualList:Boolean,virtualListParams:Object,...ze},emits:["submit","sortable:enable","sortable:disable","sortable:sort","sortable:move","virtual:itembeforeinsert","virtual:beforeclear","virtual:itemsbeforeinsert","virtual:itemsafterinsert","tab:hide","tab:show"],setup(t,e){let{emit:n,slots:a}=e,r=null;const s=Le(null),i=h=>{n("submit",h)},o=h=>{s.value===h&&n("sortable:enable")},l=h=>{s.value===h&&n("sortable:disable")},c=(h,m,b)=>{s.value===b&&n("sortable:sort",m)},d=(h,m)=>{s.value===m&&n("sortable:move",h,m)};Or(s,n),tt(()=>{pt(()=>{if(Y.on("sortableEnable",o),Y.on("sortableDisable",l),Y.on("sortableSort",c),Y.on("sortableMove",d),!t.virtualList)return;const h=t.virtualListParams||{};!h.renderItem&&!h.renderExternal||(h.items&&(h.items=Pe(h.items)),r=Y.virtualList.create(kn({el:s.value,on:{itemBeforeInsert(m,b){n("virtual:itembeforeinsert",this,m,b)},beforeClear(m){n("virtual:beforeclear",this,m)},itemsBeforeInsert(m){n("virtual:itemsbeforeinsert",this,m)},itemsAfterInsert(m){n("virtual:itemsafterinsert",this,m)}}},h)))})}),lt(()=>{Y&&(Y.off("sortableEnable",o),Y.off("sortableDisable",l),Y.off("sortableSort",c),Y.off("sortableMove",d),t.virtualList&&r&&(r.destroy&&r.destroy(),r=null))});const u=ge(()=>Ae("list",{inset:t.inset,"inset-ios":t.insetIos,"inset-md":t.insetMd,"xsmall-inset":t.xsmallInset,"xsmall-inset-ios":t.xsmallInsetIos,"xsmall-inset-md":t.xsmallInsetMd,"small-inset":t.smallInset,"small-inset-ios":t.smallInsetIos,"small-inset-md":t.smallInsetMd,"medium-inset":t.mediumInset,"medium-inset-ios":t.mediumInsetIos,"medium-inset-md":t.mediumInsetMd,"large-inset":t.largeInset,"large-inset-ios":t.largeInsetIos,"large-inset-md":t.largeInsetMd,"xlarge-inset":t.xlargeInset,"xlarge-inset-ios":t.xlargeInsetIos,"xlarge-inset-md":t.xlargeInsetMd,"list-strong":t.strong,"list-strong-ios":t.strongIos,"list-strong-md":t.strongMd,"list-outline":t.outline,"list-outline-ios":t.outlineIos,"list-outline-md":t.outlineMd,"list-dividers":t.dividers,"list-dividers-ios":t.dividersIos,"list-dividers-md":t.dividersMd,"media-list":t.mediaList,"simple-list":t.simpleList,"links-list":t.linksList,"menu-list":t.menuList,sortable:t.sortable,"sortable-tap-hold":t.sortableTapHold,"sortable-enabled":t.sortableEnabled,"sortable-opposite":t.sortableOpposite,"accordion-list":t.accordionList,"accordion-opposite":t.accordionOpposite,"contacts-list":t.contactsList,"virtual-list":t.virtualList,tab:t.tab,"tab-active":t.tabActive,"form-store-data":t.formStoreData,"no-chevron":t.noChevron,"chevron-center":t.chevronCenter},Fe(t))),p=ge(()=>t.form?"form":"div"),f=ge(()=>({listIsMedia:t.mediaList,listIsSimple:t.simpleList,listIsSortable:t.sortable,listIsSortableOpposite:t.sortableOpposite}));return Gs("ListContext",f),()=>{const{list:h,default:m}=a,b=[],w=[],g=h&&typeof h=="function"?[h()]:[];let v=!1;return m&&m().forEach(y=>{if(typeof y>"u")return;const E=y.type&&y.type.name?y.type.name:y.type;E&&typeof E=="symbol"?(v=!0,g.push(y)):!E||E&&!(E==="li"||E.indexOf("f7-list-item")>=0||E.indexOf("f7-list-button")>=0||E.indexOf("f7-list-input")>=0)?v?w.push(y):b.push(y):E&&(v=!0,g.push(y))}),$e(p.value,{ref:s,class:u.value,"data-sortable-move-elements":typeof t.sortableMoveElements<"u"?t.sortableMoveElements.toString():void 0,onSubmit:i},[a["before-list"]&&a["before-list"](),b,g.length>0&&$e("ul",g),a["after-list"]&&a["after-list"](),w])}}};function H1(t,e){const n=Ve("f7-link");return we(),Me("div",{class:Re(t.classes)},[t.backLink?(we(),Et(n,{key:0,href:t.backLinkUrl||"#",back:"",icon:"icon-back",force:t.backLinkForce||void 0,class:Re(t.text?void 0:"icon-only"),text:t.text,onClick:t.onBackClick},null,8,["href","force","class","text","onClick"])):Qe("",!0),Te(t.$slots,"default")],2)}const Lg={name:"f7-nav-left",render:H1,components:{f7Link:Dg},props:{backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:Boolean,...ze},emits:["back:click","click:back"],setup(t,e){let{emit:n}=e;const a=o=>{n("back:click",o),n("click:back",o)},r=Na(),s=ge(()=>{let o=t.backLinkShowText;if(typeof o>"u"&&(o=!r.value.md),t.backLink)return t.backLink!==!0&&o?t.backLink:void 0});return{classes:ge(()=>Ae("left",{sliding:t.sliding},Fe(t))),onBackClick:a,text:s}}};function F1(t,e){return we(),Me("div",{class:Re(t.classes)},[Te(t.$slots,"default")],2)}const Rg={name:"f7-nav-right",render:F1,props:{sliding:Boolean,...ze},setup(t){return{classes:ge(()=>Ae("right",{sliding:t.sliding},Fe(t)))}}},z1={class:"title-large-text"};function N1(t,e){return we(),Me("div",{class:Re(t.classes)},[_e("div",z1,[Te(t.$slots,"default")])],2)}const V1={name:"f7-nav-title-large",render:N1,props:{...ze},setup(t){return{classes:ge(()=>Ae("title-large",Fe(t)))}}},_1={key:0,class:"subtitle"};function j1(t,e){return we(),Me("div",{class:Re(t.classes)},[Te(t.$slots,"default"),yt(" "+Zt(t.title)+" ",1),t.subtitle?(we(),Me("span",_1,Zt(t.subtitle),1)):Qe("",!0)],2)}const Hg={name:"f7-nav-title",render:j1,props:{title:String,subtitle:String,sliding:Boolean,...ze},setup(t){return{classes:ge(()=>Ae("title",{sliding:t.sliding},Fe(t)))}}},q1=_e("div",{class:"navbar-bg"},null,-1),W1={key:3,className:"title-large"},Y1={className:"title-large-text"};function X1(t,e){const n=Ve("f7-nav-left"),a=Ve("f7-nav-title"),r=Ve("f7-nav-right");return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[q1,Te(t.$slots,"before-inner"),_e("div",{class:Re(t.innerClasses)},[t.hasLeft?(we(),Et(n,{key:0,"back-link":t.backLink,"back-link-url":t.backLinkUrl,"back-link-force":t.backLinkForce,"back-link-show-text":t.backLinkShowText,"onBack:click":t.onBackClick},{default:Ne(()=>[Te(t.$slots,"nav-left"),Te(t.$slots,"left")]),_:3},8,["back-link","back-link-url","back-link-force","back-link-show-text","onBack:click"])):Qe("",!0),t.hasTitle?(we(),Et(a,{key:1,title:t.title,subtitle:t.subtitle},{default:Ne(()=>[Te(t.$slots,"title")]),_:3},8,["title","subtitle"])):Qe("",!0),t.hasRight?(we(),Et(r,{key:2},{default:Ne(()=>[Te(t.$slots,"nav-right"),Te(t.$slots,"right")]),_:3})):Qe("",!0),t.hasLargeTitle?(we(),Me("div",W1,[_e("div",Y1,[yt(Zt(t.largeTitle)+" ",1),Te(t.$slots,"title-large")])])):Qe("",!0),Te(t.$slots,"default")],2),Te(t.$slots,"after-inner")],2)}const U1={name:"f7-navbar",render:X1,components:{f7NavLeft:Lg,f7NavTitle:Hg,f7NavRight:Rg},props:{backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:{type:Boolean,default:!0},title:String,subtitle:String,hidden:Boolean,outline:{type:Boolean,default:!0},innerClass:String,innerClassName:String,large:Boolean,largeTransparent:Boolean,transparent:Boolean,titleLarge:String,...ze},emits:["navbar:hide","navbar:show","navbar:expand","navbar:collapse","navbar:transparentshow","navbar:transparenthide","click:back","back:click"],setup(t,e){let{emit:n,slots:a}=e,r="",s=!1,i=null,o=!1,l=!1,c=!1;const d=Le(null),u=Na(),p=G=>{d.value===G&&n("navbar:hide")},f=G=>{d.value===G&&n("navbar:show")},h=G=>{d.value===G&&(s=!1,n("navbar:expand"))},m=G=>{d.value===G&&(s=!0,n("navbar:collapse"))},b=G=>{d.value===G&&(c=!0,n("navbar:transparentshow"))},w=G=>{d.value===G&&(c=!1,n("navbar:transparenthide"))},g=(G,ee)=>{d.value===G&&(r=ee?`navbar-${ee}`:"")},v=(G,ee)=>{d.value===G&&(i=ee.role,o=ee.detailRoot)},y=G=>{d.value===G&&(l=!0)},E=G=>{d.value===G&&(l=!1)},k=G=>{Y&&Y.navbar.hide(d.value,G)},$=G=>{Y&&Y.navbar.show(d.value,G)},M=()=>{Y&&Y.navbar.size(d.value)},x=G=>{n("back:click",G),n("click:back",G)};tt(()=>{d.value&&pt(()=>{Y.navbar.size(d.value),Y.on("navbarShow",f),Y.on("navbarHide",p),Y.on("navbarCollapse",m),Y.on("navbarExpand",h),Y.on("navbarPosition",g),Y.on("navbarRole",v),Y.on("navbarMasterStack",y),Y.on("navbarMasterUnstack",E),Y.on("navbarTransparentShow",b),Y.on("navbarTransparentHide",w)})}),lt(()=>{Y&&(Y.off("navbarShow",f),Y.off("navbarHide",p),Y.off("navbarCollapse",m),Y.off("navbarExpand",h),Y.off("navbarPosition",g),Y.off("navbarRole",v),Y.off("navbarMasterStack",y),Y.off("navbarMasterUnstack",E),Y.off("navbarTransparentShow",b),Y.off("navbarTransparentHide",w))});const F=ge(()=>u.value&&u.value.ios&&Y&&!Y.params.navbar.iosCenterTitle),T=ge(()=>u.value&&u.value.md&&Y&&Y.params.navbar.mdCenterTitle),I=ge(()=>t.large||t.largeTransparent),B=ge(()=>t.transparent||I.value&&t.largeTransparent),P=ge(()=>B.value&&c),R=ge(()=>Ae("navbar",r,{"navbar-hidden":t.hidden,"navbar-large":I.value,"navbar-large-collapsed":I.value&&s,"navbar-transparent":B.value,"navbar-transparent-visible":P.value,"navbar-master":i==="master","navbar-master-detail":i==="detail","navbar-master-detail-root":o===!0,"navbar-master-stacked":l===!0,"no-outline":!t.outline},Fe(t))),V=ge(()=>{let G=t.titleLarge;return!G&&t.large&&t.title&&(G=t.title),G}),H=ge(()=>t.backLink||a["nav-left"]||a.left),D=ge(()=>t.title||t.subtitle||a.title),O=ge(()=>a["nav-right"]||a.right),_=ge(()=>V.value||a["title-large"]),N=ge(()=>Ae("navbar-inner",t.innerClass,t.innerClassName,{sliding:t.sliding,"navbar-inner-left-title":F.value,"navbar-inner-centered-title":T.value}));return{elRef:d,classes:R,innerClasses:N,hide:k,show:$,size:M,largeTitle:V,hasLeft:H,hasTitle:D,hasRight:O,hasLargeTitle:_,onBackClick:x}}},G1=["data-ptr-distance","data-ptr-mousewheel","data-infinite-distance"],K1={key:0,class:"ptr-preloader"},Q1=_e("div",{class:"ptr-arrow"},null,-1),J1={key:3,class:"ptr-preloader"},Z1=_e("div",{class:"ptr-arrow"},null,-1);function eE(t,e){const n=Ve("f7-preloader");return we(),Me("div",{ref:"elRef",class:Re(t.classes),"data-ptr-distance":t.ptrDistance||void 0,"data-ptr-mousewheel":t.ptrMousewheel||void 0,"data-infinite-distance":t.infiniteDistance||void 0},[t.ptr&&t.ptrPreloader&&!t.ptrBottom?(we(),Me("div",K1,[Se(n),Q1])):Qe("",!0),t.infinite&&t.infinitePreloader&&t.infiniteTop?(we(),Et(n,{key:1,class:"infinite-scroll-preloader"})):Qe("",!0),Te(t.$slots,"default"),t.infinite&&t.infinitePreloader&&!t.infiniteTop?(we(),Et(n,{key:2,class:"infinite-scroll-preloader"})):Qe("",!0),t.ptr&&t.ptrPreloader&&t.ptrBottom?(we(),Me("div",J1,[Se(n),Z1])):Qe("",!0)],10,G1)}const tE={name:"f7-page-content",render:eE,components:{f7Preloader:M1},props:{tab:Boolean,tabActive:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean,...ze},emits:["ptr:pullstart","ptr:pullmove","ptr:pullend","ptr:refresh","ptr:done","infinite","ptrPullStart","ptrPullMove","ptrPullEnd","ptrRefresh","ptrDone","tab:hide","tab:show"],setup(t,e){let{emit:n}=e;const a=Le(null),r=u=>{a.value===u&&(n("ptr:pullstart"),n("ptrPullStart"))},s=u=>{a.value===u&&(n("ptr:pullmove"),n("ptrPullMove"))},i=u=>{a.value===u&&(n("ptr:pullend"),n("ptrPullEnd"))},o=(u,p)=>{a.value===u&&(n("ptr:refresh",p),n("ptrRefresh",p))},l=u=>{a.value===u&&(n("ptr:done"),n("ptrDone"))},c=u=>{a.value===u&&n("infinite")};Or(a,n),tt(()=>{pt(()=>{t.ptr&&(Y.on("ptrPullStart",r),Y.on("ptrPullMove",s),Y.on("ptrPullEnd",i),Y.on("ptrRefresh",o),Y.on("ptrDone",l)),t.infinite&&Y.on("infinite",c)})}),lt(()=>{Y&&(Y.off("ptrPullStart",r),Y.off("ptrPullMove",s),Y.off("ptrPullEnd",i),Y.off("ptrRefresh",o),Y.off("ptrDone",l),Y.off("infinite",c))});const d=ge(()=>Ae("page-content",{tab:t.tab,"tab-active":t.tabActive,"ptr-content":t.ptr,"ptr-bottom":t.ptrBottom,"infinite-scroll-content":t.infinite,"infinite-scroll-top":t.infiniteTop,"hide-bars-on-scroll":t.hideBarsOnScroll,"hide-navbar-on-scroll":t.hideNavbarOnScroll,"hide-toolbar-on-scroll":t.hideToolbarOnScroll,"messages-content":t.messagesContent,"login-screen-content":t.loginScreen},Fe(t)));return{elRef:a,classes:d}}},nE={name:"f7-page",props:{name:String,withSubnavbar:{type:Boolean,default:void 0},subnavbar:{type:Boolean,default:void 0},withNavbarLarge:{type:Boolean,default:void 0},navbarLarge:{type:Boolean,default:void 0},noNavbar:Boolean,noToolbar:Boolean,tabs:Boolean,pageContent:{type:Boolean,default:!0},noSwipeback:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean,...ze},emits:["page:mounted","page:init","page:reinit","page:beforein","page:beforeout","page:afterout","page:afterin","page:beforeremove","page:beforeunmount","page:tabshow","page:tabhide","ptr:pullstart","ptr:pullmove","ptr:pullend","ptr:refresh","ptr:done","infinite"],setup(t,e){let{emit:n,slots:a}=e,r=!1,s=!1,i=!1,o=!1,l="",c=null,d=!1,u=!1;const p=Le(null),f=X=>{p.value===X.el&&n("page:mounted",X)},h=X=>{p.value===X.el&&(typeof t.withSubnavbar>"u"&&typeof t.subnavbar>"u"&&(X.$navbarEl&&X.$navbarEl.length&&X.$navbarEl.find(".subnavbar").length||X.$el.children(".navbar").find(".subnavbar").length)&&(r=!0),typeof t.withNavbarLarge>"u"&&typeof t.navbarLarge>"u"&&X.$navbarEl&&X.$navbarEl.hasClass("navbar-large")&&(s=!0),n("page:init",X))},m=X=>{p.value===X.el&&n("page:reinit",X)},b=X=>{p.value===X.el&&(X.swipeBack||(X.from==="next"&&(l="page-next"),X.from==="previous"&&(l="page-previous")),n("page:beforein",X))},w=X=>{p.value===X.el&&n("page:beforeout",X)},g=X=>{p.value===X.el&&(X.to==="next"&&(l="page-next"),X.to==="previous"&&(l="page-previous"),n("page:afterout",X))},v=X=>{p.value===X.el&&(l="page-current",n("page:afterin",X))},y=X=>{p.value===X.el&&n("page:beforeremove",X)},E=X=>{p.value===X.el&&n("page:beforeunmount",X)},k=(X,se)=>{p.value===X&&(l=`page-${se}`)},$=(X,se)=>{p.value===X&&(c=se.role,d=se.detailRoot)},M=X=>{p.value===X&&(u=!0)},x=X=>{p.value===X&&(u=!1)},F=X=>{p.value===X&&(i=!0)},T=X=>{p.value===X&&(i=!1)},I=(X,se)=>{p.value===se&&(o=!0)},B=(X,se)=>{p.value===se&&(o=!1)},P=X=>{p.value===X&&n("page:tabshow")},R=X=>{p.value===X&&n("page:tabhide")},V=()=>{n("ptr:pullstart")},H=()=>{n("ptr:pullmove")},D=()=>{n("ptr:pullend")},O=X=>{n("ptr:refresh",X)},_=()=>{n("ptr:done")},N=()=>{n("infinite")};tt(()=>{pt(()=>{Y.on("pageMounted",f),Y.on("pageInit",h),Y.on("pageReinit",m),Y.on("pageBeforeIn",b),Y.on("pageBeforeOut",w),Y.on("pageAfterOut",g),Y.on("pageAfterIn",v),Y.on("pageBeforeRemove",y),Y.on("pageBeforeUnmount",E),Y.on("pagePosition",k),Y.on("pageRole",$),Y.on("pageMasterStack",M),Y.on("pageMasterUnstack",x),Y.on("pageNavbarLargeCollapsed",F),Y.on("pageNavbarLargeExpanded",T),Y.on("cardOpened",I),Y.on("cardClose",B),Y.on("pageTabShow",P),Y.on("pageTabHide",R)})}),lt(()=>{Y&&(Y.off("pageMounted",f),Y.off("pageInit",h),Y.off("pageReinit",m),Y.off("pageBeforeIn",b),Y.off("pageBeforeOut",w),Y.off("pageAfterOut",g),Y.off("pageAfterIn",v),Y.off("pageBeforeRemove",y),Y.off("pageBeforeUnmount",E),Y.off("pagePosition",k),Y.off("pageRole",$),Y.off("pageMasterStack",M),Y.off("pageMasterUnstack",x),Y.off("pageNavbarLargeCollapsed",F),Y.off("pageNavbarLargeExpanded",T),Y.off("cardOpened",I),Y.off("cardClose",B),Y.off("pageTabShow",P),Y.off("pageTabHide",R))});const G=ge(()=>Ae("page",l,{tabs:t.tabs,"page-with-subnavbar":t.subnavbar||t.withSubnavbar,"page-with-navbar-large":t.navbarLarge||t.withNavbarLarge,"no-navbar":t.noNavbar,"no-toolbar":t.noToolbar,"no-swipeback":t.noSwipeback,"page-master":c==="master","page-master-detail":c==="detail","page-master-detail-root":d===!0,"page-master-stacked":u===!0,"page-with-navbar-large-collapsed":i===!0,"page-with-card-opened":o===!0,"login-screen-page":t.loginScreen},Fe(t))),ee="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index panel".split(" ").map(X=>`f7-${X}`);return()=>{const X=[],se=[],{static:ne,fixed:ie,default:le}=a;let me=!1,oe=!1,ce=t.messagesContent;const pe=le&&le();pe&&pe.forEach(A=>{if(typeof A>"u")return;const z=A.type&&A.type.name?A.type.name:A.type;let q=!1;if(!z){(t.pageContent||t.pageContent==="")&&se.push(A);return}z==="f7-subnavbar"&&(me=!0),z==="f7-navbar"&&A.props&&(A.props.large||A.props.large==="")&&(oe=!0),typeof ce>"u"&&z==="f7-messages"&&(ce=!0),ee.indexOf(z)>=0&&(q=!0),t.pageContent&&(q?X.push(A):se.push(A))});let L=G.value;return(me||r)&&typeof t.subnavbar>"u"&&typeof t.withSubnavbar>"u"&&L.indexOf("page-with-subnavbar")<0&&(L+=" page-with-subnavbar"),(oe||s)&&typeof t.navbarLarge>"u"&&typeof t.withNavbarLarge>"u"&&L.indexOf("page-with-navbar-large")<0&&(L+=" page-with-navbar-large"),t.pageContent?$e("div",{class:L,ref:p,"data-name":t.name},[X,ie&&ie(),$e(tE,{ptr:t.ptr,ptrDistance:t.ptrDistance,ptrPreloader:t.ptrPreloader,ptrBottom:t.ptrBottom,ptrMousewheel:t.ptrMousewheel,infinite:t.infinite,infiniteTop:t.infiniteTop,infiniteDistance:t.infiniteDistance,infinitePreloader:t.infinitePreloader,hideBarsOnScroll:t.hideBarsOnScroll,hideNavbarOnScroll:t.hideNavbarOnScroll,hideToolbarOnScroll:t.hideToolbarOnScroll,messagesContent:t.messagesContent||ce,loginScreen:t.loginScreen,onPtrPullStart:V,onPtrPullMove:H,onPtrPullEnd:D,onPtrRefresh:O,onPtrDone:_,onInfinite:N},()=>[ne&&ne(),se])]):$e("div",{class:L,ref:p,"data-name":t.name},[ie&&ie(),ne&&ne(),le&&pe])}}},aE={class:"searchbar-inner"},rE={class:"searchbar-input-wrap"},sE=["value","placeholder","spellcheck"],iE=_e("i",{class:"searchbar-icon"},null,-1);function oE(t,e){return we(),Et(Wb(t.tag),{ref:"elRef",class:Re(t.classes),onSubmit:t.onSubmit},{default:Ne(()=>[Te(t.$slots,"before-inner"),_e("div",aE,[Te(t.$slots,"inner-start"),_e("div",rE,[Te(t.$slots,"input-wrap-start"),_e("input",{value:t.value,placeholder:t.placeholder,spellcheck:t.spellcheck,type:"search",onInput:e[0]||(e[0]=function(){return t.onInput&&t.onInput(...arguments)}),onChange:e[1]||(e[1]=function(){return t.onChange&&t.onChange(...arguments)}),onFocus:e[2]||(e[2]=function(){return t.onFocus&&t.onFocus(...arguments)}),onBlur:e[3]||(e[3]=function(){return t.onBlur&&t.onBlur(...arguments)})},null,40,sE),iE,t.clearButton?(we(),Me("span",{key:0,class:"input-clear-button",onClick:e[4]||(e[4]=function(){return t.onClearButtonClick&&t.onClearButtonClick(...arguments)})})):Qe("",!0),Te(t.$slots,"input-wrap-end")]),t.disableButton?(we(),Me("span",{key:0,class:"searchbar-disable-button",onClick:e[5]||(e[5]=function(){return t.onDisableButtonClick&&t.onDisableButtonClick(...arguments)})},Zt(t.disableButtonText),1)):Qe("",!0),Te(t.$slots,"inner-end"),Te(t.$slots,"default")]),Te(t.$slots,"after-inner")]),_:3},40,["class","onSubmit"])}const lE={name:"f7-searchbar",render:oE,props:{outline:{type:Boolean,default:!0},form:{type:Boolean,default:!0},placeholder:{type:String,default:"Search"},spellcheck:{type:Boolean,default:void 0},disableButton:{type:Boolean,default:!0},disableButtonText:{type:String,default:"Cancel"},clearButton:{type:Boolean,default:!0},value:[String,Number,Array],inputEvents:{type:String,default:"change input compositionend"},expandable:Boolean,inline:Boolean,searchContainer:[String,Object],searchIn:{type:String,default:".item-title"},searchItem:{type:String,default:"li"},searchGroup:{type:String,default:".list-group"},searchGroupTitle:{type:String,default:".list-group-title"},foundEl:{type:[String,Object],default:".searchbar-found"},notFoundEl:{type:[String,Object],default:".searchbar-not-found"},backdrop:{type:Boolean,default:void 0},backdropEl:[String,Object],hideOnEnableEl:{type:[String,Object],default:".searchbar-hide-on-enable"},hideOnSearchEl:{type:[String,Object],default:".searchbar-hide-on-search"},ignore:{type:String,default:".searchbar-ignore"},customSearch:{type:Boolean,default:!1},removeDiacritics:{type:Boolean,default:!1},hideGroupTitles:{type:Boolean,default:!0},hideGroups:{type:Boolean,default:!0},init:{type:Boolean,default:!0},...ze},emits:["change","input","focus","blur","submit","click:clear","click:disable","searchbar:search","searchbar:clear","searchbar:enable","searchbar:disable","update:value"],setup(t,e){let{emit:n}=e,a=null;const r=Le(null),s=v=>{if(a)return a.search(v)},i=()=>{if(a)return a.enable()},o=()=>{if(a)return a.disable()},l=()=>{if(a)return a.toggle()},c=()=>{if(a)return a.clear()},d=v=>{n("change",v)},u=v=>{n("input",v),n("update:value",v.target.value)},p=v=>{n("focus",v)},f=v=>{n("blur",v)},h=v=>{n("submit",v)},m=v=>{n("click:clear",v)},b=v=>{n("click:disable",v)};tt(()=>{t.init&&pt(()=>{const v=Ra({el:r.value,inputEvents:t.inputEvents,searchContainer:t.searchContainer,searchIn:t.searchIn,searchItem:t.searchItem,searchGroup:t.searchGroup,searchGroupTitle:t.searchGroupTitle,hideOnEnableEl:t.hideOnEnableEl,hideOnSearchEl:t.hideOnSearchEl,foundEl:t.foundEl,notFoundEl:t.notFoundEl,backdrop:t.backdrop,backdropEl:t.backdropEl,disableButton:t.disableButton,ignore:t.ignore,customSearch:t.customSearch,removeDiacritics:t.removeDiacritics,hideGroupTitles:t.hideGroupTitles,hideGroups:t.hideGroups,expandable:t.expandable,inline:t.inline,on:{search(y,E,k){n("searchbar:search",y,E,k)},clear(y,E){n("searchbar:clear",y,E)},enable(y){n("searchbar:enable",y)},disable(y){n("searchbar:disable",y)}}});Object.keys(v).forEach(y=>{v[y]===""&&delete v[y]}),a=Y.searchbar.create(v)})}),lt(()=>{a&&a.destroy&&a.destroy(),a=null});const w=ge(()=>Ae("searchbar",{"searchbar-inline":t.inline,"no-outline":!t.outline,"searchbar-expandable":t.expandable},Fe(t))),g=ge(()=>t.form?"form":"div");return{elRef:r,tag:g,classes:w,search:s,enable:i,disable:o,toggle:l,clear:c,onChange:d,onInput:u,onFocus:p,onBlur:f,onSubmit:h,onClearButtonClick:m,onDisableButtonClick:b}}},cE={key:0,class:"subnavbar-inner"},dE={key:0,class:"subnavbar-title"};function uE(t,e){return we(),Me("div",{class:Re(t.classes)},[t.inner?(we(),Me("div",cE,[t.title?(we(),Me("div",dE,Zt(t.title),1)):Qe("",!0),Te(t.$slots,"default")])):Te(t.$slots,"default",{key:1})],2)}const pE={name:"f7-subnavbar",render:uE,props:{sliding:Boolean,title:String,inner:{type:Boolean,default:!0},...ze},setup(t){return{classes:ge(()=>Ae("subnavbar",{sliding:t.sliding},Fe(t)))}}},fE={key:0,className:"toolbar-inner"};function hE(t,e){return we(),Me("div",{ref:"elRef",class:Re(t.classes)},[Te(t.$slots,"before-inner"),t.inner?(we(),Me("div",fE,[Te(t.$slots,"default")])):Te(t.$slots,"default",{key:1}),Te(t.$slots,"after-inner")],2)}const mE={name:"f7-toolbar",render:hE,props:{tabbar:Boolean,icons:Boolean,scrollable:Boolean,hidden:Boolean,outline:{type:Boolean,default:!0},position:{type:String,default:void 0},topMd:{type:Boolean,default:void 0},topIos:{type:Boolean,default:void 0},top:{type:Boolean,default:void 0},bottomMd:{type:Boolean,default:void 0},bottomIos:{type:Boolean,default:void 0},bottom:{type:Boolean,default:void 0},inner:{type:Boolean,default:!0},...ze},emits:["toolbar:hide","toolbar:show"],setup(t,e){let{emit:n}=e;const a=Le(null),r=Na(),s=u=>{a.value===u&&n("toolbar:hide")},i=u=>{a.value===u&&n("toolbar:show")},o=u=>{Y&&Y.toolbar.hide(a.value,u)},l=u=>{Y&&Y.toolbar.show(a.value,u)};tt(()=>{t.tabbar&&Y&&a.value&&Y.toolbar.setHighlight(a.value),Y.on("toolbarShow",i),Y.on("toolbarHide",s)}),lt(()=>{Y.off("toolbarShow",i),Y.off("toolbarHide",s)});const c=ge(()=>({tabbarHasIcons:t.icons}));return Gs("TabbarContext",c),{classes:ge(()=>{const{tabbar:u,bottomMd:p,bottomIos:f,bottom:h,position:m,topMd:b,topIos:w,top:g,icons:v,scrollable:y,hidden:E,outline:k}=t;return Ae("toolbar",{tabbar:u,"toolbar-bottom":r.value&&r.value.md&&p||r.value&&r.value.ios&&f||h||m==="bottom","toolbar-top":r.value&&r.value.md&&b||r.value&&r.value.ios&&w||g||m==="top","tabbar-icons":v,"tabbar-scrollable":y,"toolbar-hidden":E,"no-outline":!k},Fe(t))}),elRef:a,hide:o,show:l}}},gE=(t,e)=>{const n=t.__vccOpts||t;for(const[a,r]of e)n[a]=r;return n},bE={name:"App",components:{f7App:h1,f7View:Yn,f7Navbar:U1,f7Page:nE,f7Searchbar:lE,f7Subnavbar:pE,f7Toolbar:mE,f7Link:Dg,f7List:R1,f7ListItem:L1,f7NavTitleLarge:V1,f7NavTitle:Hg,f7NavLeft:Lg,f7NavRight:Rg,f7Icon:Og,f7BlockHeader:b1,f7AccordionContent:u1,f7Block:w1},data(){return{blue:null,f7params:{name:"Shortcuts Glyphs",theme:"ios",darkMode:"auto"},search:"",glyphs:p0}},mounted(){this.blue=Y.colors.blue},methods:{alert(t,e){Y.dialog.alert(t,e)},copyToClipboard(t){navigator.clipboard.writeText(t),Y.dialog.alert(t,"Copied to Clipboard!")},glyphTitle(t){switch(t){case"airPods":return"AirPods";case"airPodsPro":return"AirPods Pro";case"QRCode":return"QR Code";case"QRViewFinder":return"QR View Finder"}let e=[],n="";for(let a=0;a1&&e.push(n),e=e.map(a=>{if(!a)return;let r=a.split("");const s=a[0].toUpperCase();return r.splice(0,1),s+r.join("")}),e.join(" ")}}},vE={class:"margin-top margin-bottom",style:{opacity:".5"}},wE=_e("p",null,[yt(" Set it as your Shortcut's icon in Cherri using a definition called "),_e("code",null,"glyph"),yt(". ")],-1),yE=_e("pre",null,"#define glyph identifier",-1),EE=_e("p",null,[yt(" Set it as your Shortcut's icon in Jelly using "),_e("code",null,"#Icon"),yt(". ")],-1),CE=_e("pre",null,"#Icon: identifier",-1);function kE(t,e,n,a,r,s){const i=Ve("f7-link"),o=Ve("f7-nav-left"),l=Ve("f7-nav-title-large"),c=Ve("f7-nav-title"),d=Ve("f7-searchbar"),u=Ve("f7-subnavbar"),p=Ve("f7-navbar"),f=Ve("f7-icon"),h=Ve("f7-block"),m=Ve("f7-accordion-content"),b=Ve("f7-list-item"),w=Ve("f7-list"),g=Ve("f7-page"),v=Ve("f7-view"),y=Ve("f7-app");return we(),Et(y,Tr(r.f7params,{theme:"ios"}),{default:Ne(()=>[Se(v,{main:""},{default:Ne(()=>[Se(g,null,{default:Ne(()=>[Se(p,{sliding:""},{default:Ne(()=>[Se(o,null,{default:Ne(()=>[Se(i,{"icon-f7":"info_circle",onClick:e[0]||(e[0]=E=>s.alert(`Glyphs sourced from github.com/atnbueno/shortcut-icons -github.com/OpenJelly/Open-Jellycore`,"Credits ❤️"))})]),_:1}),Se(l,null,{default:Ne(()=>[yt(Zt(r.f7params.name),1)]),_:1}),Se(c,{title:r.f7params.name},null,8,["title"]),Se(u,null,{default:Ne(()=>[Se(d,{"search-container":".search-list",class:"searchbar",outline:!1,placeholder:"Find Glyphs","search-in":".item-title"})]),_:1})]),_:1}),Se(h,{strong:"",inset:"",class:"searchbar-not-found"},{default:Ne(()=>[Se(f,{title:"No glyphs found!"})]),_:1}),Se(h,{strong:"",inset:"","accordion-list":""},{default:Ne(()=>[Se(f,{title:"How to Use","media-item":"","accordion-item":""},{media:Ne(()=>[Se(m,{f7:"question_circle",size:"24px",color:r.blue},null,8,["color"])]),default:Ne(()=>[Se(w,null,{default:Ne(()=>[Se(b,null,{default:Ne(()=>[_e("p",vE,[Se(m,{f7:"doc_on_clipboard_fill",size:"1rem"}),yt(" Click one of the glyphs in the list below to copy the identifier to your clipboard. ")]),_e("h3",null,[Se(i,{href:"https://cherrilang.org",external:"",target:"_blank"},{default:Ne(()=>[yt(" Cherri ")]),_:1})]),wE,yE,_e("h3",null,[Se(i,{href:"https://jellycuts.com",rel:"noopener noreferrer",external:"",target:"_blank"},{default:Ne(()=>[yt(" Jelly ")]),_:1})]),EE,CE]),_:1})]),_:1})]),_:1})]),_:1}),Se(h,{strong:"",dividers:"",inset:"","media-list":"",class:"search-list searchbar-found"},{default:Ne(()=>[(we(!0),Me(Lt,null,iv(r.glyphs,(E,k)=>(we(),Me(Lt,null,[typeof E!="object"?(we(),Et(f,{key:0,title:s.glyphTitle(k),text:k,link:"#",onClick:$=>s.copyToClipboard(k)},{media:Ne(()=>[_e("div",{class:Re(["shortcut-icon s43","g"+E])},null,2)]),_:2},1032,["title","text","onClick"])):Qe("",!0)],64))),256))]),_:1})]),_:1})]),_:1})]),_:1},16)}const $E=gE(bE,[["render",kE]]);let nn=class extends en{constructor(e,n){const a=W({title:e.params.dialog.title,text:void 0,content:"",buttons:[],verticalButtons:!1,onClick:void 0,cssClass:void 0,destroyOnClose:!1,on:{}},n);typeof a.closeByBackdropClick>"u"&&(a.closeByBackdropClick=e.params.dialog.closeByBackdropClick),typeof a.backdrop>"u"&&(a.backdrop=e.params.dialog.backdrop),super(e,a);const r=this,s=Ie(),i=ye(),{title:o,text:l,content:c,buttons:d,verticalButtons:u,cssClass:p,backdrop:f}=a;r.params=a;let h;if(r.params.el)h=C(r.params.el);else{const y=["dialog"];d.length===0&&y.push("dialog-no-buttons"),d.length>0&&y.push(`dialog-buttons-${d.length}`),u&&y.push("dialog-buttons-vertical"),p&&y.push(p);let E="";d.length>0&&(E=S("div",{class:"dialog-buttons"},d.map($=>S("span",{class:`dialog-button${$.strong?" dialog-button-strong":""}${$.color?` color-${$.color}`:""}${$.cssClass?` ${$.cssClass}`:""}`},$.text))));const k=S("div",{class:y.join(" ")},S("div",{class:"dialog-inner"},o&&S("div",{class:"dialog-title"},o),l&&S("div",{class:"dialog-text"},l),c),E);h=C(k)}if(h&&h.length>0&&h[0].f7Modal)return h[0].f7Modal;if(h.length===0)return r.destroy();let m;f&&(m=e.$el.children(".dialog-backdrop"),m.length===0&&(m=C('
'),e.$el.append(m)));function b(y){const k=C(this).index(),$=d[k];$.onClick&&$.onClick(r,y),r.params.onClick&&r.params.onClick(r,k),$.close!==!1&&r.close()}let w;function g(y){const E=y.keyCode;d.forEach((k,$)=>{k.keyCodes&&k.keyCodes.indexOf(E)>=0&&(i.activeElement&&i.activeElement.blur(),k.onClick&&k.onClick(r,y),r.params.onClick&&r.params.onClick(r,$),k.close!==!1&&r.close())})}d&&d.length>0&&(r.on("open",()=>{h.find(".dialog-button").each((y,E)=>{d[E].keyCodes&&(w=!0),C(y).on("click",b)}),w&&!s.ios&&!s.android&&!s.cordova&&!s.capacitor&&C(i).on("keydown",g)}),r.on("close",()=>{h.find(".dialog-button").each(y=>{C(y).off("click",b)}),w&&!s.ios&&!s.android&&!s.cordova&&!s.capacitor&&C(i).off("keydown",g),w=!1})),W(r,{app:e,$el:h,el:h[0],$backdropEl:m,backdropEl:m&&m[0],type:"dialog",setProgress(y,E){return e.progressbar.set(h.find(".progressbar"),y,E),r},setText(y){let E=h.find(".dialog-text");return E.length===0&&(E=C('
'),typeof o<"u"?E.insertAfter(h.find(".dialog-title")):h.find(".dialog-inner").prepend(E)),E.html(y),r.params.text=y,r},setTitle(y){let E=h.find(".dialog-title");return E.length===0&&(E=C('
'),h.find(".dialog-inner").prepend(E)),E.html(y),r.params.title=y,r}});function v(y){const E=y.target;C(E).closest(r.el).length===0&&r.params.closeByBackdropClick&&r.backdropEl&&r.backdropEl===E&&r.close()}return r.on("opened",()=>{r.params.closeByBackdropClick&&e.on("click",v)}),r.on("close",()=>{r.params.closeByBackdropClick&&e.off("click",v)}),h[0].f7Modal=r,r.params.destroyOnClose&&r.once("closed",()=>{setTimeout(()=>{r.destroy()},0)}),r}};const xE={name:"dialog",params:{dialog:{title:void 0,buttonOk:"OK",buttonCancel:"Cancel",usernamePlaceholder:"Username",passwordPlaceholder:"Password",preloaderTitle:"Loading... ",progressTitle:"Loading... ",backdrop:!0,closeByBackdropClick:!1,destroyPredefinedDialogs:!0,keyboardActions:!0,autoFocus:!0}},static:{Dialog:nn},create(){const t=this;function e(){return t.params.dialog.title||t.name}const n=t.params.dialog.destroyPredefinedDialogs,a=t.params.dialog.keyboardActions,s=t.params.dialog.autoFocus?{on:{opened(o){o.$el.find("input").eq(0).focus()}}}:{},i=t.theme==="ios";t.dialog=W(un({app:t,constructor:nn,defaultSelector:".dialog.modal-in"}),{alert(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,buttons:[{text:t.params.dialog.buttonOk,strong:i,onClick:p,keyCodes:a?[13,27]:null}],destroyOnClose:n}).open()},prompt(){for(var o=arguments.length,l=new Array(o),c=0;c"u"||h===null?"":h,new nn(t,{title:typeof u>"u"?e():u,text:d,content:`
`,buttons:[{text:t.params.dialog.buttonCancel,keyCodes:a?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:i,keyCodes:a?[13]:null}],onClick(m,b){const w=m.$el.find(".dialog-input").val();b===0&&f&&f(w),b===1&&p&&p(w)},destroyOnClose:n,...s}).open()},confirm(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,buttons:[{text:t.params.dialog.buttonCancel,onClick:f,keyCodes:a?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:i,onClick:p,keyCodes:a?[13]:null}],destroyOnClose:n}).open()},login(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,content:` +github.com/OpenJelly/Open-Jellycore`,"Credits ❤️"))})]),_:1}),Se(l,null,{default:Ne(()=>[yt(Zt(r.f7params.name),1)]),_:1}),Se(c,{title:r.f7params.name},null,8,["title"]),Se(u,null,{default:Ne(()=>[Se(d,{"search-container":".search-list",class:"searchbar",outline:!1,placeholder:"Find Glyphs","search-in":".item-title"})]),_:1})]),_:1}),Se(w,{strong:"",inset:"","accordion-list":""},{default:Ne(()=>[Se(b,{title:"How to Use","media-item":"","accordion-item":""},{media:Ne(()=>[Se(f,{f7:"question_circle",size:"24px",color:r.blue},null,8,["color"])]),default:Ne(()=>[Se(m,null,{default:Ne(()=>[Se(h,null,{default:Ne(()=>[_e("p",vE,[Se(f,{f7:"doc_on_clipboard_fill",size:"1rem"}),yt(" Click one of the glyphs in the list below to copy the identifier to your clipboard. ")]),_e("h3",null,[Se(i,{href:"https://cherrilang.org",external:"",target:"_blank"},{default:Ne(()=>[yt(" Cherri ")]),_:1})]),wE,yE,_e("h3",null,[Se(i,{href:"https://jellycuts.com",rel:"noopener noreferrer",external:"",target:"_blank"},{default:Ne(()=>[yt(" Jelly ")]),_:1})]),EE,CE]),_:1})]),_:1})]),_:1})]),_:1}),Se(w,{strong:"",inset:"",class:"searchbar-not-found"},{default:Ne(()=>[Se(b,{title:"No glyphs found!"})]),_:1}),Se(w,{strong:"",dividers:"",inset:"","media-list":"",class:"search-list searchbar-found"},{default:Ne(()=>[(we(!0),Me(Lt,null,iv(r.glyphs,(E,k)=>(we(),Me(Lt,null,[typeof E!="object"?(we(),Et(b,{key:0,title:s.glyphTitle(k),text:k,link:"#",onClick:$=>s.copyToClipboard(k)},{media:Ne(()=>[_e("div",{class:Re(["shortcut-icon s43","g"+E])},null,2)]),_:2},1032,["title","text","onClick"])):Qe("",!0)],64))),256))]),_:1})]),_:1})]),_:1})]),_:1},16)}const $E=gE(bE,[["render",kE]]);let nn=class extends en{constructor(e,n){const a=W({title:e.params.dialog.title,text:void 0,content:"",buttons:[],verticalButtons:!1,onClick:void 0,cssClass:void 0,destroyOnClose:!1,on:{}},n);typeof a.closeByBackdropClick>"u"&&(a.closeByBackdropClick=e.params.dialog.closeByBackdropClick),typeof a.backdrop>"u"&&(a.backdrop=e.params.dialog.backdrop),super(e,a);const r=this,s=Ie(),i=ye(),{title:o,text:l,content:c,buttons:d,verticalButtons:u,cssClass:p,backdrop:f}=a;r.params=a;let h;if(r.params.el)h=C(r.params.el);else{const y=["dialog"];d.length===0&&y.push("dialog-no-buttons"),d.length>0&&y.push(`dialog-buttons-${d.length}`),u&&y.push("dialog-buttons-vertical"),p&&y.push(p);let E="";d.length>0&&(E=S("div",{class:"dialog-buttons"},d.map($=>S("span",{class:`dialog-button${$.strong?" dialog-button-strong":""}${$.color?` color-${$.color}`:""}${$.cssClass?` ${$.cssClass}`:""}`},$.text))));const k=S("div",{class:y.join(" ")},S("div",{class:"dialog-inner"},o&&S("div",{class:"dialog-title"},o),l&&S("div",{class:"dialog-text"},l),c),E);h=C(k)}if(h&&h.length>0&&h[0].f7Modal)return h[0].f7Modal;if(h.length===0)return r.destroy();let m;f&&(m=e.$el.children(".dialog-backdrop"),m.length===0&&(m=C('
'),e.$el.append(m)));function b(y){const k=C(this).index(),$=d[k];$.onClick&&$.onClick(r,y),r.params.onClick&&r.params.onClick(r,k),$.close!==!1&&r.close()}let w;function g(y){const E=y.keyCode;d.forEach((k,$)=>{k.keyCodes&&k.keyCodes.indexOf(E)>=0&&(i.activeElement&&i.activeElement.blur(),k.onClick&&k.onClick(r,y),r.params.onClick&&r.params.onClick(r,$),k.close!==!1&&r.close())})}d&&d.length>0&&(r.on("open",()=>{h.find(".dialog-button").each((y,E)=>{d[E].keyCodes&&(w=!0),C(y).on("click",b)}),w&&!s.ios&&!s.android&&!s.cordova&&!s.capacitor&&C(i).on("keydown",g)}),r.on("close",()=>{h.find(".dialog-button").each(y=>{C(y).off("click",b)}),w&&!s.ios&&!s.android&&!s.cordova&&!s.capacitor&&C(i).off("keydown",g),w=!1})),W(r,{app:e,$el:h,el:h[0],$backdropEl:m,backdropEl:m&&m[0],type:"dialog",setProgress(y,E){return e.progressbar.set(h.find(".progressbar"),y,E),r},setText(y){let E=h.find(".dialog-text");return E.length===0&&(E=C('
'),typeof o<"u"?E.insertAfter(h.find(".dialog-title")):h.find(".dialog-inner").prepend(E)),E.html(y),r.params.text=y,r},setTitle(y){let E=h.find(".dialog-title");return E.length===0&&(E=C('
'),h.find(".dialog-inner").prepend(E)),E.html(y),r.params.title=y,r}});function v(y){const E=y.target;C(E).closest(r.el).length===0&&r.params.closeByBackdropClick&&r.backdropEl&&r.backdropEl===E&&r.close()}return r.on("opened",()=>{r.params.closeByBackdropClick&&e.on("click",v)}),r.on("close",()=>{r.params.closeByBackdropClick&&e.off("click",v)}),h[0].f7Modal=r,r.params.destroyOnClose&&r.once("closed",()=>{setTimeout(()=>{r.destroy()},0)}),r}};const xE={name:"dialog",params:{dialog:{title:void 0,buttonOk:"OK",buttonCancel:"Cancel",usernamePlaceholder:"Username",passwordPlaceholder:"Password",preloaderTitle:"Loading... ",progressTitle:"Loading... ",backdrop:!0,closeByBackdropClick:!1,destroyPredefinedDialogs:!0,keyboardActions:!0,autoFocus:!0}},static:{Dialog:nn},create(){const t=this;function e(){return t.params.dialog.title||t.name}const n=t.params.dialog.destroyPredefinedDialogs,a=t.params.dialog.keyboardActions,s=t.params.dialog.autoFocus?{on:{opened(o){o.$el.find("input").eq(0).focus()}}}:{},i=t.theme==="ios";t.dialog=W(un({app:t,constructor:nn,defaultSelector:".dialog.modal-in"}),{alert(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,buttons:[{text:t.params.dialog.buttonOk,strong:i,onClick:p,keyCodes:a?[13,27]:null}],destroyOnClose:n}).open()},prompt(){for(var o=arguments.length,l=new Array(o),c=0;c"u"||h===null?"":h,new nn(t,{title:typeof u>"u"?e():u,text:d,content:`
`,buttons:[{text:t.params.dialog.buttonCancel,keyCodes:a?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:i,keyCodes:a?[13]:null}],onClick(m,b){const w=m.$el.find(".dialog-input").val();b===0&&f&&f(w),b===1&&p&&p(w)},destroyOnClose:n,...s}).open()},confirm(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,buttons:[{text:t.params.dialog.buttonCancel,onClick:f,keyCodes:a?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:i,onClick:p,keyCodes:a?[13]:null}],destroyOnClose:n}).open()},login(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,content:`
diff --git a/index.html b/index.html index 286a611..32331cf 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Shortcuts Glyph Search - +