=200&&n.status<300||0===n.status?(r.xhrCache&&""!==n.responseText&&(a.removeFromXhrCache(o),a.cache.xhr.push({url:o,time:Ye(),content:n.responseText})),a.emit("routerAjaxSuccess",n,t),e(n.responseText)):(a.emit("routerAjaxError",n,t),i(n))},error:function(e){a.emit("routerAjaxError",e,t),i(e)}})}))},a.setNavbarPosition=function(e,t,a){e.removeClass("navbar-previous navbar-current navbar-next"),t&&e.addClass("navbar-"+t),!1===a?e.removeAttr("aria-hidden"):!0===a&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:t}),this.emit("navbarPosition",e[0],t)},a.setPagePosition=function(e,t,a){e.removeClass("page-previous page-current page-next"),e.addClass("page-"+t),!1===a?e.removeAttr("aria-hidden"):!0===a&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:t}),this.emit("pagePosition",e[0],t)},a.removeThemeElements=function(e){var t,a=this.app.theme;"ios"===a?t=".md-only, .aurora-only, .if-md, .if-aurora, .if-not-ios, .not-ios":"md"===a?t=".ios-only, .aurora-only, .if-ios, .if-aurora, .if-not-md, .not-md":"aurora"===a&&(t=".ios-only, .md-only, .if-ios, .if-md, .if-not-aurora, .not-aurora"),Ee(e).find(t).remove()},a.getPageData=function(e,t,a,r,n,o){void 0===n&&(n={});var i,s,l=this,c=Ee(e).eq(0),p=Ee(t).eq(0),d=c[0].f7Page||{};if(("next"===a&&"current"===r||"current"===a&&"previous"===r)&&(i="forward"),("current"===a&&"next"===r||"previous"===a&&"current"===r)&&(i="backward"),d&&!d.fromPage){var u=Ee(o);u.length&&(s=u[0].f7Page)}(s=d.pageFrom||s)&&s.pageFrom&&(s.pageFrom=null);var h={app:l.app,view:l.view,router:l,$el:c,el:c[0],$pageEl:c,pageEl:c[0],$navbarEl:p,navbarEl:p[0],name:c.attr("data-name"),position:a,from:a,to:r,direction:i,route:d.route?d.route:n,pageFrom:s};return c[0].f7Page=h,h},a.pageCallback=function(e,t,a,r,n,o,i){if(void 0===o&&(o={}),t){var s=this,l=Ee(t);if(l.length){var c=Ee(a),p=o.route,d=s.params.restoreScrollTopOnBack&&!(s.params.masterDetailBreakpoint>0&&l.hasClass("page-master")&&s.app.width>=s.params.masterDetailBreakpoint),u=l[0].f7Page&&l[0].f7Page.route&&l[0].f7Page.route.route&&l[0].f7Page.route.route.keepAlive;"beforeRemove"===e&&u&&(e="beforeUnmount");var h="page"+(e[0].toUpperCase()+e.slice(1,e.length)),f="page:"+e.toLowerCase(),v={};(v="beforeRemove"===e&&l[0].f7Page?Qe(l[0].f7Page,{from:r,to:n,position:r}):s.getPageData(l[0],c[0],r,n,p,i)).swipeBack=!!o.swipeBack;var m=o.route?o.route.route:{},g=m.on,b=void 0===g?{}:g,y=m.once,w=void 0===y?{}:y;if(o.on&&Qe(b,o.on),o.once&&Qe(w,o.once),"mounted"===e&&k(),"init"===e){if(d&&("previous"===r||!r)&&"current"===n&&s.scrollHistory[v.route.url]&&!l.hasClass("no-restore-scroll")){var C=l.find(".page-content");C.length>0&&(C=C.filter((function(e){return 0===Ee(e).parents(".tab:not(.tab-active)").length&&!Ee(e).is(".tab:not(.tab-active)")}))),C.scrollTop(s.scrollHistory[v.route.url])}if(k(),l[0].f7PageInitialized)return l.trigger("page:reinit",v),void s.emit("pageReinit",v);l[0].f7PageInitialized=!0}if(d&&"beforeOut"===e&&"current"===r&&"previous"===n){var E=l.find(".page-content");E.length>0&&(E=E.filter((function(e){return 0===Ee(e).parents(".tab:not(.tab-active)").length&&!Ee(e).is(".tab:not(.tab-active)")}))),s.scrollHistory[v.route.url]=E.scrollTop()}d&&"beforeOut"===e&&"current"===r&&"next"===n&&delete s.scrollHistory[v.route.url],l.trigger(f,v),s.emit(h,v),"beforeRemove"!==e&&"beforeUnmount"!==e||(l[0].f7RouteEventsAttached&&(l[0].f7RouteEventsOn&&Object.keys(l[0].f7RouteEventsOn).forEach((function(e){l.off(Ve(e),l[0].f7RouteEventsOn[e])})),l[0].f7RouteEventsOnce&&Object.keys(l[0].f7RouteEventsOnce).forEach((function(e){l.off(Ve(e),l[0].f7RouteEventsOnce[e])})),l[0].f7RouteEventsAttached=null,l[0].f7RouteEventsOn=null,l[0].f7RouteEventsOnce=null,delete l[0].f7RouteEventsAttached,delete l[0].f7RouteEventsOn,delete l[0].f7RouteEventsOnce),u||(l[0].f7Page&&l[0].f7Page.navbarEl&&delete l[0].f7Page.navbarEl.f7Page,l[0].f7Page=null))}}function k(){l[0].f7RouteEventsAttached||(l[0].f7RouteEventsAttached=!0,b&&Object.keys(b).length>0&&(l[0].f7RouteEventsOn=b,Object.keys(b).forEach((function(e){b[e]=b[e].bind(s),l.on(Ve(e),b[e])}))),w&&Object.keys(w).length>0&&(l[0].f7RouteEventsOnce=w,Object.keys(w).forEach((function(e){w[e]=w[e].bind(s),l.once(Ve(e),w[e])}))))}},a.saveHistory=function(){var e=this,t=o();e.view.history=e.history,e.params.browserHistory&&e.params.browserHistoryStoreHistory&&t.localStorage&&(t.localStorage["f7router-"+e.view.id+"-history"]=JSON.stringify(e.history))},a.restoreHistory=function(){var e=this,t=o();e.params.browserHistory&&e.params.browserHistoryStoreHistory&&t.localStorage&&t.localStorage["f7router-"+e.view.id+"-history"]&&(e.history=JSON.parse(t.localStorage["f7router-"+e.view.id+"-history"]),e.view.history=e.history)},a.clearHistory=function(){var e=this;e.history=[],e.view&&(e.view.history=[]),e.saveHistory()},a.updateCurrentUrl=function(e){var t=this;Vt(t,"updateCurrentUrl"),t.history.length?t.history[t.history.length-1]=e:t.history.push(e);var a=t.parseRouteUrl(e),r=a.query,n=a.hash,o=a.params,i=a.url,s=a.path;if(t.currentRoute&&Qe(t.currentRoute,{query:r,hash:n,params:o,url:i,path:s}),t.params.browserHistory){var l=t.params.browserHistoryRoot||"";Rt.replace(t.view.id,{url:e},l+t.params.browserHistorySeparator+e)}t.saveHistory(),t.emit("routeUrlUpdate",t.currentRoute,t)},a.getInitialUrl=function(){var e=this;if(e.initialUrl)return{initialUrl:e.initialUrl,historyRestored:e.historyRestored};var t,a=e.app,n=e.view,i=r(),s=o(),l=a.params.url&&"string"==typeof a.params.url&&"undefined"!=typeof URL?new URL(a.params.url):i.location,c=e.params.url,p=l.href.split(l.origin)[1],d=e.params,u=d.browserHistory,h=d.browserHistoryOnLoad,f=d.browserHistorySeparator,v=e.params.browserHistoryRoot;return(s.cordova||s.Capacitor&&s.Capacitor.isNative)&&u&&!f&&!v&&l.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete browserHistory configuration, trying to guess browserHistoryRoot"),v=l.pathname.split("index.html")[0]),u&&h?(v&&p.indexOf(v)>=0&&""===(p=p.split(v)[1])&&(p="/"),c=f.length>0&&p.indexOf(f)>=0?p.split(f)[1]:p,e.restoreHistory(),e.history.indexOf(c)>=0?e.history=e.history.slice(0,e.history.indexOf(c)+1):e.params.url===c?e.history=[c]:Rt.state&&Rt.state[n.id]&&Rt.state[n.id].url===e.history[e.history.length-1]?c=e.history[e.history.length-1]:e.history=[p.split(f)[0]||"/",c],e.history.length>1?t=!0:e.history=[],e.saveHistory()):(c||(c=p),l.search&&c.indexOf("?")<0&&(c+=l.search),l.hash&&c.indexOf("#")<0&&(c+=l.hash)),e.initialUrl=c,e.historyRestored=t,{initialUrl:c,historyRestored:t}},a.init=function(){var e=this,t=e.app,a=e.view,n=r();e.mount();var o=e.getInitialUrl(),i=o.initialUrl,s=o.historyRestored;(a&&e.params.iosSwipeBack&&"ios"===t.theme||a&&e.params.mdSwipeBack&&"md"===t.theme||a&&e.params.auroraSwipeBack&&"aurora"===t.theme)&&At(e);var l,c=e.params,p=c.browserHistory,d=c.browserHistoryOnLoad,u=c.browserHistoryAnimateOnLoad,h=c.browserHistoryInitialMatch;if(e.history.length>1){var f=h?i:e.history[0];(l=e.findMatchingRoute(f))||(l=Qe(e.parseRouteUrl(f),{route:{url:f,path:f.split("?")[0]}}))}else(l=e.findMatchingRoute(i))||(l=Qe(e.parseRouteUrl(i),{route:{url:i,path:i.split("?")[0]}}));if(e.params.stackPages&&e.$el.children(".page").each((function(t){var a=Ee(t);e.initialPages.push(a[0]),e.dynamicNavbar&&a.children(".navbar").length>0&&e.initialNavbars.push(a.children(".navbar")[0])})),0===e.$el.children(".page:not(.stacked)").length&&i&&e.params.loadInitialPage)e.navigate(i,{initial:!0,reloadCurrent:!0,browserHistory:!1,animate:!1,once:{modalOpen:function(){s&&((e.params.preloadPreviousPage||e.params[t.theme+"SwipeBack"])&&e.history.length>1&&e.back({preload:!0}))},pageAfterIn:function(){s&&((e.params.preloadPreviousPage||e.params[t.theme+"SwipeBack"])&&e.history.length>1&&e.back({preload:!0}))}}});else if(e.$el.children(".page:not(.stacked)").length){var v;if(e.currentRoute=l,e.$el.children(".page:not(.stacked)").each((function(r){var o,i=Ee(r);e.setPagePosition(i,"current"),e.dynamicNavbar&&((o=i.children(".navbar")).length>0?(e.$navbarsEl.parents(n).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(o,"current"),e.$navbarsEl.append(o),o.children(".title-large").length&&o.addClass("navbar-large"),i.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),o.children(".title-large").length&&e.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),e.currentRoute&&e.currentRoute.route&&(!0===e.currentRoute.route.master||"function"==typeof e.currentRoute.route.master&&e.currentRoute.route.master(t,e))&&e.params.masterDetailBreakpoint>0&&(i.addClass("page-master"),i.trigger("page:role",{role:"master"}),o&&o.length&&o.addClass("navbar-master"),a.checkMasterDetailBreakpoint());var s={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&Qe(s,e.currentRoute.route.options),e.currentPageEl=i[0],e.dynamicNavbar&&o.length&&(e.currentNavbarEl=o[0]),e.removeThemeElements(i),e.dynamicNavbar&&o.length&&e.removeThemeElements(o),s.route.route.tab&&(v=!0,e.tabLoad(s.route.route.tab,Qe({},s))),e.pageCallback("init",i,o,"current",void 0,s),e.pageCallback("beforeIn",i,o,"current",void 0,s),e.pageCallback("afterIn",i,o,"current",void 0,s)})),s)if(h)(e.params.preloadPreviousPage||e.params[t.theme+"SwipeBack"])&&e.history.length>1&&e.back({preload:!0});else e.navigate(i,{initial:!0,browserHistory:!1,history:!1,animate:u,once:{pageAfterIn:function(){(e.params.preloadPreviousPage||e.params[t.theme+"SwipeBack"])&&e.history.length>2&&e.back({preload:!0})}}});s||v||(e.history.push(i),e.saveHistory())}!(i&&p&&d)||Rt.state&&Rt.state[a.id]||Rt.initViewState(a.id,{url:i}),e.emit("local::init routerInit",e)},a.destroy=function(){var e=this;e.emit("local::destroy routerDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null},t}(ut);Wt.prototype.navigate=function(e,t){void 0===t&&(t={});var a,r,n,o,i,s,l,c=this;if(c.swipeBackActive)return c;if("string"==typeof e?a=e:(a=e.url,r=e.route,n=e.name,o=e.path,i=e.query,s=e.params),n||o)return(a=c.generateUrl({path:o,name:n,params:s,query:i}))?c.navigate(a,t):c;var p=c.app;if(Vt(c,"navigate"),"#"===a||""===a)return c;var d=a.replace("./","");if("/"!==d[0]&&0!==d.indexOf("#")){var u=c.currentRoute.parentPath||c.currentRoute.path;d=((u?u+"/":"/")+d).replace("///","/").replace("//","/")}if(!(l=r?Qe(c.parseRouteUrl(d),{route:Qe({},r)}):c.findMatchingRoute(d)))return c;if(l.route&&l.route.viewName){var h=l.route.viewName,f=p.views[h];if(!f)throw new Error('Framework7: There is no View with "'+h+'" name that was specified in this route');if(f!==c.view)return f.router.navigate(e,t)}if(l.route.redirect)return Dt.call(c,"forward",l,t);var v={};if(l.route.options?Qe(v,l.route.options,t):Qe(v,t),v.openIn&&(!c.params.ignoreOpenIn||c.params.ignoreOpenIn&&c.history.length>0))return function(e,t,a){var r={url:t,route:{path:t,options:Se({},a,{openIn:void 0})}},n=Se({},a);if("popup"===a.openIn&&(n.content='',r.route.popup=n),"loginScreen"===a.openIn&&(n.content='',r.route.loginScreen=n),"sheet"===a.openIn&&(n.content='',r.route.sheet=n),"popover"===a.openIn&&(n.targetEl=a.clickedEl||a.targetEl,n.content='',r.route.popover=n),a.openIn.indexOf("panel")>=0){var o=a.openIn.split(":"),i=o[1]||"left",s=o[2]||"cover";n.targetEl=a.clickedEl||a.targetEl,n.content='',r.route.panel=n}return e.navigate(r)}(c,d,v);function m(){var e=!1;function t(e,t){c.allowPageChange=!1;var a=!1;"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(r){if(e[r]){a=!0;var n=Qe({},l,{route:e});c.allowPageChange=!0,c.modalLoad(r,n,Qe(v,t),"forward")}})),a||jt(c,e,Qe(v,t),!0)}function a(){c.allowPageChange=!0}"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(t){l.route[t]&&!e&&(e=!0,c.modalLoad(t,l,v,"forward"))})),l.route.keepAlive&&l.route.keepAliveData&&(jt(c,{el:l.route.keepAliveData.pageEl},v,!1),e=!0),"url content component pageName el componentUrl".split(" ").forEach((function(t){var a;l.route[t]&&!e&&(e=!0,jt(c,((a={})[t]=l.route[t],a),v,!1))})),e||(l.route.async&&(c.allowPageChange=!1,l.route.async.call(c,{router:c,to:v.route,from:c.currentRoute,resolve:t,reject:a,direction:"forward",app:p})),l.route.asyncComponent&&Ft(c,l.route.asyncComponent,t,a))}function g(){c.allowPageChange=!0}if(v.route=l,c.params.masterDetailBreakpoint>0&&l.route.masterRoute){var b=!0,y=!1;if(c.currentRoute&&c.currentRoute.route&&(!(!0===c.currentRoute.route.master||"function"==typeof c.currentRoute.route.master&&c.currentRoute.route.master(p,c))||c.currentRoute.route!==l.route.masterRoute&&c.currentRoute.route.path!==l.route.masterRoute.path||(b=!1),!c.currentRoute.route.masterRoute||c.currentRoute.route.masterRoute!==l.route.masterRoute&&c.currentRoute.route.masterRoute.path!==l.route.masterRoute.path||(b=!1,y=!0)),b||y&&t.reloadAll)return c.navigate({path:l.route.masterRoute.path,params:l.params||{}},{animate:!1,reloadAll:t.reloadAll,reloadCurrent:t.reloadCurrent,reloadPrevious:t.reloadPrevious,browserHistory:!t.initial,history:!t.initial,once:{pageAfterIn:function(){c.navigate(e,Qe({},t,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!t.initial,browserHistory:!t.initial}))}}}),c}return Nt.call(c,l,c.currentRoute,(function(){l.route.modules?p.loadModules(Array.isArray(l.route.modules)?l.route.modules:[l.route.modules]).then((function(){m()})).catch((function(){g()})):m()}),(function(){g()}),"forward"),c},Wt.prototype.refreshPage=function(){var e=this;return Vt(e,"refreshPage"),e.navigate(e.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0})},Wt.prototype.tabLoad=function(e,t){void 0===t&&(t={});var a,r,n=this,o=Qe({animate:n.params.animate,browserHistory:!0,history:!0,parentPageEl:null,preload:!1,on:{}},t);o.route&&(o.preload||o.route===n.currentRoute||(r=n.previousRoute,n.currentRoute=o.route),o.preload?(a=o.route,r=n.currentRoute):(a=n.currentRoute,r||(r=n.previousRoute)),n.params.browserHistory&&o.browserHistory&&!o.reloadPrevious&&Rt.replace(n.view.id,{url:o.route.url},(n.params.browserHistoryRoot||"")+n.params.browserHistorySeparator+o.route.url),o.history&&(n.history[Math.max(n.history.length-1,0)]=o.route.url,n.saveHistory()));var i,s=Ee(o.parentPageEl||n.currentPageEl);i=s.length&&s.find("#"+e.id).length?s.find("#"+e.id).eq(0):n.view.selector?n.view.selector+" #"+e.id:"#"+e.id;var l,c=n.app.tab.show({tabEl:i,animate:o.animate,tabRoute:o.route}),p=c.$newTabEl,d=c.$oldTabEl,u=c.animated,h=c.onTabsChanged;if(p&&p.parents(".page").length>0&&o.route){var f=p.parents(".page")[0].f7Page;f&&o.route&&(f.route=o.route)}if(p[0].f7RouterTabLoaded)return d&&d.length?(u?h((function(){n.emit("routeChanged",n.currentRoute,n.previousRoute,n)})):n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n):n;function v(t,a){var r=t.url,o=t.content,i=t.el,s=t.component,l=t.componentUrl;function c(t){n.allowPageChange=!0,t&&("string"==typeof t?p.html(t):(p.html(""),t.f7Component?t.f7Component.mount((function(e){p.append(e)})):p.append(t)),p[0].f7RouterTabLoaded=!0,function(t){n.removeThemeElements(p);var a=p;"string"!=typeof t&&(a=Ee(t)),a.trigger("tab:init tab:mounted",e),n.emit("tabInit tabMounted",p[0],e),d&&d.length&&(u?h((function(){n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(d,p,e)})):(n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(d,p,e)))}(t))}if(o)c(o);else if(i)c(i);else if(s||l)try{n.tabComponentLoader({tabEl:p[0],component:s,componentUrl:l,options:a,resolve:c,reject:function(){return n.allowPageChange=!0,n}})}catch(e){throw n.allowPageChange=!0,e}else r&&(n.xhrAbortController&&(n.xhrAbortController.abort(),n.xhrAbortController=!1),n.xhrRequest(r,a).then((function(e){c(e)})).catch((function(){n.allowPageChange=!0})))}function m(e,t){v(e,Qe(o,t))}function g(){n.allowPageChange=!0}return"url content component el componentUrl".split(" ").forEach((function(t){var a;e[t]&&(l=!0,v(((a={})[t]=e[t],a),o))})),e.async?e.async.call(n,{router:n,to:a,from:r,resolve:m,reject:g,app:n.app}):e.asyncComponent?Ft(n,e.asyncComponent,m,g):l||(n.allowPageChange=!0),n},Wt.prototype.tabRemove=function(e,t,a){var r;e[0]&&(e[0].f7RouterTabLoaded=!1,delete e[0].f7RouterTabLoaded),e.children().each((function(e){e.f7Component&&(r=!0,Ee(e).trigger("tab:beforeremove",a),e.f7Component.destroy())})),r||e.trigger("tab:beforeremove",a),this.emit("tabBeforeRemove",e[0],t[0],a),this.removeTabContent(e[0],a)},Wt.prototype.modalLoad=function(e,t,a,r){void 0===a&&(a={});var n,o=this,i=o.app,s="panel"===e,l=s?"panel":"modal",c=Qe({animate:o.params.animate,browserHistory:!0,history:!0,on:{},once:{}},a),p=Qe({},t.route[e]),d=t.route,u=function(e,t){var a,r=c.on,n=c.once;"open"===t&&(a=r.modalOpen||n.modalOpen||r.panelOpen||n.panelOpen),"close"===t&&(a=r.modalClose||n.modalClose||r.panelClose||n.panelClose),"closed"===t&&(a=r.modalClosed||n.modalClosed||r.panelClosed||n.panelClosed),a&&a(e)};function h(){var a=i[e].create(p);d.modalInstance=a;var r=a.el;function n(){a.close()}a.on(l+"Open",(function(){r||(o.removeThemeElements(a.el),a.$el.trigger(e.toLowerCase()+":init "+e.toLowerCase()+":mounted",t,a),o.emit((s?"":"modalInit")+" "+e+"Init "+e+"Mounted",a.el,t,a)),o.once("swipeBackMove",n),u(a,"open")})),a.on(l+"Close",(function(){o.off("swipeBackMove",n),a.closeByRouter||o.back(),u(a,"close")})),a.on(l+"Closed",(function(){a.$el.trigger(e.toLowerCase()+":beforeremove",t,a),a.emit((s?"":"modalBeforeRemove ")+e+"BeforeRemove",a.el,t,a);var r=a.el.f7Component;u(a,"closed"),r&&r.destroy(),je((function(){(r||p.component||p.asyncComponent)&&o.removeModal(a.el),a.destroy(),delete a.route,delete d.modalInstance}))})),c.route&&(o.params.browserHistory&&c.browserHistory&&Rt.push(o.view.id,{url:c.route.url,modal:e},(o.params.browserHistoryRoot||"")+o.params.browserHistorySeparator+c.route.url),c.route!==o.currentRoute&&(a.route=Qe(c.route,{modal:a}),o.currentRoute=a.route),c.history&&!c.reloadCurrent&&(o.history.push(c.route.url),o.saveHistory())),r&&(o.removeThemeElements(a.el),a.$el.trigger(e.toLowerCase()+":init "+e.toLowerCase()+":mounted",t,a),o.emit(l+"Init "+e+"Init "+e+"Mounted",a.el,t,a)),a.open(!1===c.animate||!0===c.animate?c.animate:void 0)}function f(e,t){var a=e.url,r=e.content,n=e.component,s=e.componentUrl;function l(e){e&&("string"==typeof e?p.content=e:e.f7Component?e.f7Component.mount((function(e){p.el=e,i.$el.append(e)})):p.el=e,h())}if(r)l(r);else if(n||s)try{o.modalComponentLoader({rootEl:i.el,component:n,componentUrl:s,options:t,resolve:l,reject:function(){return o.allowPageChange=!0,o}})}catch(e){throw o.allowPageChange=!0,e}else a?(o.xhrAbortController&&(o.xhrAbortController.abort(),o.xhrAbortController=!1),o.xhrRequest(a,t).then((function(e){p.content=e,h()})).catch((function(){o.allowPageChange=!0}))):h()}function v(e,t){f(e,Qe(c,t))}function m(){o.allowPageChange=!0}return"url content component el componentUrl template".split(" ").forEach((function(e){var t;p[e]&&!n&&(n=!0,f(((t={})[e]=p[e],t),c))})),n||"actions"!==e||h(),p.async&&p.async.call(o,{router:o,to:c.route,from:o.currentRoute,resolve:v,reject:m,direction:r,app:i}),p.asyncComponent&&Ft(o,p.asyncComponent,v,m),o},Wt.prototype.modalRemove=function(e){Qe(e,{closeByRouter:!0}),e.close()},Wt.prototype.back=function(){var e,t,a,r=this,n=pt();if(r.swipeBackActive)return r;"object"==typeof(arguments.length<=0?void 0:arguments[0])?t=(arguments.length<=0?void 0:arguments[0])||{}:(e=arguments.length<=0?void 0:arguments[0],t=(arguments.length<=1?void 0:arguments[1])||{});var o=t,i=o.name,s=o.params,l=o.query;if(i)return(e=r.generateUrl({name:i,params:s,query:l}))?r.back(e,Qe({},t,{name:null,params:null,query:null})):r;var c=r.app;Vt(r,"back");var p,d=r.currentRoute.modal;if(d||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(e){r.currentRoute.route[e]&&(d=!0,p=e)})),d&&!t.preload){var u,h=r.currentRoute.modal||r.currentRoute.route.modalInstance||c[p].get(),f=r.history[r.history.length-2];if(h&&h.$el){var v=h.$el.prevAll(".modal-in");if(v.length&&v[0].f7Modal){var m=v[0];r.$el.parents(m).length||(u=m.f7Modal.route)}}if(u||(u=r.findMatchingRoute(f)),!u&&f&&(u={url:f,path:f.split("?")[0],query:We(f),route:{path:f.split("?")[0],url:f}}),!(e&&0!==e.replace(/[# ]/g,"").trim().length||u&&h))return r;var g=t.force&&u&&e;if(u&&h){var b=n.ie||n.edge||n.firefox&&!n.ios,y=r.params.browserHistory&&!1!==t.browserHistory,w=r.currentRoute&&r.currentRoute.route&&r.currentRoute.route.options&&!1===r.currentRoute.route.options.browserHistory;!y||b||w||Rt.back(),r.currentRoute=u,r.history.pop(),r.saveHistory(),y&&b&&!w&&Rt.back(),r.modalRemove(h),g&&r.navigate(e,{reloadCurrent:!0})}else h&&(r.modalRemove(h),e&&r.navigate(e,{reloadCurrent:!0}));return r}var C,E=r.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0);if(r.params.masterDetailBreakpoint>0){var k=[];r.$el.children(".page").each((function(e){k.push(e.className)}));var x=r.$el.children(".page-current").prevAll(".page-master").eq(0);if(x.length){var $=r.history[r.history.length-2],T=r.findMatchingRoute($);T&&x[0].f7Page&&T.route===x[0].f7Page.route.route&&(E=x,t.preload||(C=c.width>=r.params.masterDetailBreakpoint))}}if(!t.force&&E.length&&!C){if(r.params.browserHistory&&E[0].f7Page&&r.history[r.history.length-2]!==E[0].f7Page.route.url)return r.back(r.history[r.history.length-2],Qe(t,{force:!0})),r;var S=E[0].f7Page.route;return t.preload&&E.hasClass("stacked")?(Yt(r,{el:E},Qe(t,{route:S})),r):(Nt.call(r,S,r.currentRoute,(function(){Yt(r,{el:E},Qe(t,{route:S}))}),(function(){}),"backward"),r)}if("#"===e&&(e=void 0),e&&"/"!==e[0]&&0!==e.indexOf("#")&&(e=((r.path||"/")+e).replace("//","/")),!e&&r.history.length>1&&(e=r.history[r.history.length-2]),C&&!t.force&&r.history[r.history.length-3])return r.back(r.history[r.history.length-3],Qe({},t||{},{force:!0,animate:!1}));if(C&&!t.force)return r;if((a=r.findMatchingRoute(e))||e&&(a={url:e,path:e.split("?")[0],query:We(e),route:{path:e.split("?")[0],url:e}}),!a)return r;if(a.route.redirect)return Dt.call(r,"backward",a,t);var M,P={};if(a.route.options?Qe(P,a.route.options,t):Qe(P,t),P.route=a,P.force&&r.params.stackPages&&(r.$el.children(".page-previous.stacked").each((function(e){e.f7Page&&e.f7Page.route&&e.f7Page.route.url===a.url&&(M=!0,Yt(r,{el:e},P))})),M))return r;function O(){var e=!1;function t(e,t){r.allowPageChange=!1,Yt(r,e,Qe(P,t),!0)}function n(){r.allowPageChange=!0}a.route.keepAlive&&a.route.keepAliveData&&(Yt(r,{el:a.route.keepAliveData.pageEl},P),e=!0),"url content component pageName el componentUrl".split(" ").forEach((function(t){var n;a.route[t]&&!e&&(e=!0,Yt(r,((n={})[t]=a.route[t],n),P))})),e||(a.route.async&&(r.allowPageChange=!1,a.route.async.call(r,{router:r,to:a,from:r.currentRoute,resolve:t,reject:n,direction:"backward",app:c})),a.route.asyncComponent&&Ft(r,a.route.asyncComponent,t,n))}function I(){r.allowPageChange=!0}return P.preload?O():Nt.call(r,a,r.currentRoute,(function(){a.route.modules?c.loadModules(Array.isArray(a.route.modules)?a.route.modules:[a.route.modules]).then((function(){O()})).catch((function(){I()})):O()}),(function(){I()}),"backward"),r},Wt.prototype.clearPreviousHistory=function(){var e=this;Vt(e,"clearPreviousHistory");var t=e.history[e.history.length-1];!function(e){Vt(e,"clearPreviousPages");var t=e.app,a=e.dynamicNavbar;e.$el.children(".page").filter((function(t){return!(!e.currentRoute||!e.currentRoute.modal&&!e.currentRoute.panel)||t!==e.currentPageEl})).each((function(r){var n=Ee(r),o=Ee(t.navbar.getElByPage(n));e.params.stackPages&&e.initialPages.indexOf(n[0])>=0?(n.addClass("stacked"),a&&o.addClass("stacked")):(e.pageCallback("beforeRemove",n,o,"previous",void 0,{}),e.removePage(n),a&&o.length&&e.removeNavbar(o))}))}(e),e.history=[t],e.view.history=[t],e.saveHistory()};var Xt={name:"router",static:{Router:Wt},instance:{cache:{xhr:[],templates:[],components:[]}},create:function(){var e=this;e.app?e.params.router&&(e.router=new Wt(e.app,e)):e.router=new Wt(e)}};function Gt(e){var t=e.app,a=ct();if(!e.resizableInitialized){Qe(e,{resizable:!0,resizableWidth:null,resizableInitialized:!0});var r=Ee("html"),n=e.$el;if(n){var o,i,s,l,c,p,d,u={};(o=e.$el.children(".view-resize-handler")).length||(e.$el.append(''),o=e.$el.children(".view-resize-handler")),e.$resizeHandlerEl=o,n.addClass("view-resizable");var h=!!a.passiveListener&&{passive:!0};e.$el.on(t.touchEvents.start,".view-resize-handler",v,h),t.on("touchmove:active",m),t.on("touchend:passive",g),t.on("resize",b),e.on("beforeOpen",b),e.once("viewDestroy",(function(){n.removeClass("view-resizable"),e.$resizeHandlerEl.remove(),e.$el.off(t.touchEvents.start,".view-resize-handler",v,h),t.off("touchmove:active",m),t.off("touchend:passive",g),t.off("resize",b),e.off("beforeOpen",b)}))}}function f(e){if(!e)return null;if(e.indexOf("%")>=0||e.indexOf("vw")>=0)return parseInt(e,10)/100*t.width;var a=parseInt(e,10);return Number.isNaN(a)?null:a}function v(t){if(e.resizable&&n.hasClass("view-resizable")&&n.hasClass("view-master-detail")){u.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,u.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,s=!1,i=!0;var a=n.children(".page-master");p=f(a.css("min-width")),d=f(a.css("max-width"))}}function m(a){if(i){a.f7PreventSwipePanel=!0;var h="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX;s||(c=o[0].offsetLeft+o[0].offsetWidth,n.addClass("view-resizing"),r.css("cursor","col-resize")),s=!0,a.preventDefault(),l=h-u.x;var f=c+l;p&&!Number.isNaN(p)&&(f=Math.max(f,p)),d&&!Number.isNaN(d)&&(f=Math.min(f,d)),f=Math.min(Math.max(f,0),t.width),e.resizableWidth=f,r[0].style.setProperty("--f7-page-master-width",f+"px"),n.trigger("view:resize",f),e.emit("local::resize viewResize",e,f)}}function g(){if(Ee("html").css("cursor",""),!i||!s)return i=!1,void(s=!1);i=!1,s=!1,r[0].style.setProperty("--f7-page-master-width",e.resizableWidth+"px"),n.removeClass("view-resizing")}function b(){e.resizableWidth&&(p=f(o.css("min-width")),d=f(o.css("max-width")),p&&!Number.isNaN(p)&&e.resizableWidthd&&(e.resizableWidth=Math.min(e.resizableWidth,d)),e.resizableWidth=Math.min(Math.max(e.resizableWidth,0),t.width),r[0].style.setProperty("--f7-page-master-width",e.resizableWidth+"px"))}}var Ut=function(e){function t(t,a,r){var n;void 0===r&&(r={});var o,i=ze(n=e.call(this,r,[t])||this);if(!i.params.routerId&&!Ee(a).length){var s="Framework7: can't create a View instance because ";throw new Error(s+="string"==typeof a?'the selector "'+a+"\" didn't match any element":"el must be an HTMLElement or Dom7 object")}return i.params=Qe({el:a},{routes:[],routesAdd:[]},t.params.view,r),i.params.routes.length>0?i.routes=i.params.routes:i.routes=[].concat(t.routes,i.params.routesAdd),Qe(!1,i,{app:t,name:i.params.name,main:i.params.main,history:[],scrollHistory:{}}),i.useModules(),t.views.push(i),i.main&&(t.views.main=i),i.name&&(t.views[i.name]=i),i.index=t.views.indexOf(i),o=i.name?"view_"+i.name:i.main?"view_main":"view_"+i.index,i.id=o,i.params.init?(t.initialized?i.init():t.on("init",(function(){i.init()})),i||ze(n)):i||ze(n)}Me(t,e);var a=t.prototype;return a.destroy=function(){var e=this,t=e.app;e.$el.trigger("view:beforedestroy"),e.emit("local::beforeDestroy viewBeforeDestroy",e),t.off("resize",e.checkMasterDetailBreakpoint),e.main?(t.views.main=null,delete t.views.main):e.name&&(t.views[e.name]=null,delete t.views[e.name]),e.$el[0].f7View=null,delete e.$el[0].f7View,t.views.splice(t.views.indexOf(e),1),e.params.router&&e.router&&e.router.destroy(),e.emit("local::destroy viewDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null},a.checkMasterDetailBreakpoint=function(e){var t=this,a=t.app,r=t.$el.hasClass("view-master-detail"),n=a.width>=t.params.masterDetailBreakpoint&&t.$el.children(".page-master").length;void 0===e&&n||!0===e?(t.$el.addClass("view-master-detail"),r||(t.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",t),t.$el.trigger("view:masterDetailBreakpoint"))):(t.$el.removeClass("view-master-detail"),r&&(t.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",t),t.$el.trigger("view:masterDetailBreakpoint")))},a.initMasterDetail=function(){var e=this,t=e.app;e.checkMasterDetailBreakpoint=e.checkMasterDetailBreakpoint.bind(e),e.checkMasterDetailBreakpoint(),e.params.masterDetailResizable&&Gt(e),t.on("resize",e.checkMasterDetailBreakpoint)},a.mount=function(e){var t,a,r=this,n=r.app,o=r.params.el||e,i=Ee(o);t="string"==typeof o?o:(i.attr("id")?"#"+i.attr("id"):"")+(i.attr("class")?"."+i.attr("class").replace(/ /g,".").replace(".active",""):""),"ios"===n.theme&&r.params.iosDynamicNavbar&&0===(a=i.children(".navbars").eq(0)).length&&(a=Ee('
')),Qe(r,{$el:i,el:i[0],main:r.main||i.hasClass("view-main"),$navbarsEl:a,navbarsEl:a?a[0]:void 0,selector:t}),r.main&&(n.views.main=r),i&&i[0]&&(i[0].f7View=r),r.emit("local::mount viewMount",r)},a.init=function(e){var t=this;t.mount(e),t.params.router&&(t.params.masterDetailBreakpoint>0&&t.initMasterDetail(),t.router.init(),t.$el.trigger("view:init"),t.emit("local::init viewInit",t))},t}(ut);Ut.use(Xt);var Kt={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init:function(){!function(e){e.on("click",(function(t){var a=o(),r=Ee(t.target),n=r.closest("a"),i=n.length>0,s=i&&n.attr("href");if(i&&(n.is(e.params.clicks.externalLinks)||s&&s.indexOf("javascript:")>=0)){var l=n.attr("target");s&&a.cordova&&a.cordova.InAppBrowser&&("_system"===l||"_blank"===l)?(t.preventDefault(),a.cordova.InAppBrowser.open(s,l)):s&&a.Capacitor&&a.Capacitor.Plugins&&a.Capacitor.Plugins.Browser&&("_system"===l||"_blank"===l)&&(t.preventDefault(),a.Capacitor.Plugins.Browser.open({url:s}))}else{Object.keys(e.modules).forEach((function(a){var n=e.modules[a].clicks;n&&(t.preventF7Router||Object.keys(n).forEach((function(a){var o=r.closest(a).eq(0);o.length>0&&n[a].call(e,o,o.dataset(),t)})))}));var c={};if(i&&(t.preventDefault(),c=n.dataset()),c.clickedEl=n[0],!t.preventF7Router&&!n.hasClass("prevent-router")&&!n.hasClass("router-prevent")&&(s&&s.length>0&&"#"!==s[0]||n.hasClass("back"))){var p;if(c.view&&"current"===c.view?p=e.views.current:c.view?p=Ee(c.view)[0].f7View:(p=r.parents(".view")[0]&&r.parents(".view")[0].f7View,!n.hasClass("back")&&p&&p.params.linksView&&("string"==typeof p.params.linksView?p=Ee(p.params.linksView)[0].f7View:p.params.linksView instanceof Ut&&(p=p.params.linksView))),p||e.views.main&&(p=e.views.main),!p||!p.router)return;n[0].f7RouteProps&&(c.props=n[0].f7RouteProps),n.hasClass("back")?p.router.back(s,c):p.router.navigate(s,c)}}}))}(this)}}},Qt={name:"routerComponentLoader",proto:{componentLoader:function(e,t,a,r,n){void 0===a&&(a={});var o,i=this,s=i.app,l="string"==typeof e?e:t,c=i.replaceRequestUrlParams(l,a);function p(e){var t=a.context||{};if("function"==typeof t)t=t.call(i);else if("string"==typeof t)try{t=JSON.parse(t)}catch(e){throw n(e),e}var o,l,c=Ke({},t,{f7route:a.route,f7router:i}),p=Ke(a.route&&a.route.params||{},a.props||{},a.routeProps||{});a.componentOptions&&a.componentOptions.el&&(o=a.componentOptions.el),a.componentOptions&&a.componentOptions.root&&(l=a.componentOptions.root),s.component.create(e,p,{context:c,el:o,root:l}).then((function(e){r(e.el)})).catch((function(e){throw n(e),new Error(e)}))}c&&i.params.componentCache&&i.cache.components.forEach((function(e){e.url===c&&(o=e.component)})),c&&o?p(o):c&&!o?(i.xhrAbortController&&(i.xhrAbortController.abort(),i.xhrAbortController=!1),i.xhrRequest(l,a).then((function(e){var t=s.component.parse(e);i.params.componentCache&&i.cache.components.push({url:c,component:t}),p(t)})).catch((function(e){throw n(),e}))):p(e)},modalComponentLoader:function(e){var t=void 0===e?{}:e,a=t.component,r=t.componentUrl,n=t.options,o=t.resolve,i=t.reject;this.componentLoader(a,r,n,(function(e){o(e)}),i)},tabComponentLoader:function(e){var t=void 0===e?{}:e,a=t.component,r=t.componentUrl,n=t.options,o=t.resolve,i=t.reject;this.componentLoader(a,r,n,(function(e){o(e)}),i)},pageComponentLoader:function(e){var t=void 0===e?{}:e,a=t.component,r=t.componentUrl,n=t.options,o=t.resolve,i=t.reject;this.componentLoader(a,r,n,(function(e,t){void 0===t&&(t={}),o(e,t)}),i)}}},Jt=function e(t,a,r,n){var o;a[0]=0;for(var i=1;i=5&&((n||!e&&5===r)&&(i.push(r,0,n,a),r=6),e&&(i.push(r,e,0,a),r=6)),n=""},l=0;l"===t?(r=1,n=""):n=t+n[0]:o?t===o?o="":n+=t:'"'===t||"'"===t?o=t:">"===t?(s(),r=1):r&&("="===t?(r=5,a=n,n=""):"/"===t&&(r<5||">"===e[l][c+1])?(s(),3===r&&(i=i[0]),r=i,(i=i[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(s(),r=2):n+=t),3===r&&"!--"===n&&(r=4,i=i[0])}return s(),i}(e)),t),arguments,[])).length>1?t:t[0]}.bind((function(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n0&&sa[e]};function va(e,t,a,r,n){var o={},i=[],s=[],l=[],c=[],p=!1,d=da(e);t&&t.attrs&&t.attrs.component&&(t.attrs.component,function(e){throw new TypeError('"'+e+'" is read-only')}("tagName"),delete t.attrs.component,p=!0);var u=fa(e.type);if(u&&(i.push((function(r){(r.sel===d||p)&&function(e){var t=e.f7,a=e.treeNode,r=e.vnode,n=e.data,o="function"==typeof a.type?a.type:sa[a.type];t.component.create(o,ha(n.attrs||{},n.props||{}),{el:r.elm,children:a.children}).then((function(e){r.data&&r.data.on&&e&&e.$el&&Object.keys(r.data.on).forEach((function(t){e.$el.on(t,r.data.on[t])})),r.elm.__component__=e}))}({f7:a,treeNode:e,vnode:r,data:t})})),s.push((function(e){!function(e){var t=e&&e.elm&&e.elm.__component__;if(t){var a=t.el,r=t.$el;e.data&&e.data.on&&r&&Object.keys(e.data.on).forEach((function(t){r.off(t,e.data.on[t])})),t.destroy&&t.destroy(),a&&a.parentNode&&a.parentNode.removeChild(a),delete e.elm.__component__}}(e)})),l.push((function(e,t){!function(e){var t=e&&e.elm&&e.elm.__component__;if(t){var a=ha(e.data.attrs||{},e.data.props||{});t.children=e.data.treeNode.children,Object.assign(t.props,a),t.update()}}(t)}))),!u){if(!t||!t.attrs||!t.attrs.class)return o;t.attrs.class.split(" ").forEach((function(e){r||i.push.apply(i,a.getVnodeHooks("insert",e)),s.push.apply(s,a.getVnodeHooks("destroy",e)),l.push.apply(l,a.getVnodeHooks("update",e)),c.push.apply(c,a.getVnodeHooks("postpatch",e))}))}return n&&!r&&c.push((function(e,t){var a=t||e;a&&a.data&&a.data.component&&a.data.component.hook("onUpdated")})),0===i.length&&0===s.length&&0===l.length&&0===c.length||(i.length&&(o.insert=function(e){i.forEach((function(t){return t(e)}))}),s.length&&(o.destroy=function(e){s.forEach((function(t){return t(e)}))}),l.length&&(o.update=function(e,t){l.forEach((function(a){return a(e,t)}))}),c.length&&(o.postpatch=function(e,t){c.forEach((function(a){return a(e,t)}))})),o}var ma=function(e,t,a,r){if(e&&e.type&&la.indexOf(e.type)>=0)return[];for(var n=[],o=e.children,i=0;i=0)o.props||(o.props={}),"readonly"===t&&(t="readOnly"),"routeProps"===t&&(t="f7RouteProps"),"option"===i&&"value"===t&&(o.attrs||(o.attrs={}),o.attrs.value=a),pa.indexOf(t)>=0?o.props[t]=!1!==a:o.props[t]=a;else if("key"===t)o.key=a;else if(0===t.indexOf("@")||0===t.indexOf("on")&&t.length>2){o.on||(o.on={});var r=0===t.indexOf("@")?t.substr(1):Ve(t.substr(2)),s=!1,l=!1,c=!1;r.indexOf(".")>=0&&r.split(".").forEach((function(e,t){0===t?r=e:("stop"===e&&(s=!0),"prevent"===e&&(l=!0),"once"===e&&(c=!0))})),o.on[r]=function(e,t){var a=void 0===t?{}:t,r=a.stop,n=a.prevent,o=a.once,i=!1;return function(){var t=arguments.length<=0?void 0:arguments[0];o&&i||(r&&t.stopPropagation(),n&&t.preventDefault(),i=!0,e.apply(void 0,arguments))}}(a,{stop:s,prevent:l,once:c})}else"style"===t?"string"!=typeof a?o.style=a:(o.attrs||(o.attrs={}),o.attrs.style=a):(o.attrs||(o.attrs={}),o.attrs[t]=a,"id"!==t||o.key||n||(o.key=a))}));var s=va(e,o,a,r,n);return s.prepatch=function(e,t){e&&t&&e&&e.data&&e.data.props&&Object.keys(e.data.props).forEach((function(a){pa.indexOf(a)<0||(t.data||(t.data={}),t.data.props||(t.data.props={}),!0!==e.data.props[a]||a in t.data.props||(t.data.props[a]=!1))}))},o.hook=s,o}(e,t,a,r,n),i=fa(e.type)?[]:ma(e,t,a,r);return ia(da(e),o,i)};function ya(e,t,a){return void 0===e&&(e={}),ba(e,t,t.f7,a,!0)}var wa={createElement:function(e){return document.createElement(e)},createElementNS:function(e,t){return document.createElementNS(e,t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,a){a&&a.parentNode!==e&&a.__component__&&(a=a.__component__.el),e.insertBefore(t,a)},removeChild:function(e,t){e&&e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Ca(e){return void 0===e}function Ea(e){return void 0!==e}var ka=aa("",{},[],void 0,void 0);function xa(e,t){return e.key===t.key&&e.sel===t.sel}function $a(e,t,a){var r,n,o,i={};for(r=t;r<=a;++r)null!=(o=e[r])&&void 0!==(n=o.key)&&(i[n]=r);return i}var Ta=["create","update","remove","destroy","pre","post"];function Sa(e,t){var a,r=t.elm,n=e.data.attrs,o=t.data.attrs;if((n||o)&&n!==o){for(a in n=n||{},o=o||{}){var i=o[a];n[a]!==i&&(!0===i?r.setAttribute(a,""):!1===i?r.removeAttribute(a):120!==a.charCodeAt(0)?r.setAttribute(a,i):58===a.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",a,i):58===a.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",a,i):r.setAttribute(a,i))}for(a in n)a in o||r.removeAttribute(a)}}var Ma={create:Sa,update:Sa};function Pa(e,t){var a,r,n=t.elm,o=e.data.props,i=t.data.props;if((o||i)&&o!==i){for(a in i=i||{},o=o||{})i[a]||delete n[a];for(a in i)r=i[a],o[a]===r||"value"===a&&n[a]===r||(n[a]=r)}}var Oa={create:Pa,update:Pa},Ia="undefined"!=typeof window&&window.requestAnimationFrame||setTimeout;function Ba(e,t,a){var r;r=function(){e[t]=a},Ia((function(){Ia(r)}))}function La(e,t){var a,r,n=t.elm,o=e.data.style,i=t.data.style;if((o||i)&&o!==i){i=i||{};var s="delayed"in(o=o||{});for(r in o)i[r]||("-"===r[0]&&"-"===r[1]?n.style.removeProperty(r):n.style[r]="");for(r in i)if(a=i[r],"delayed"===r&&i.delayed)for(var l in i.delayed)a=i.delayed[l],s&&a===o.delayed[l]||Ba(n.style,l,a);else"remove"!==r&&a!==o[r]&&("-"===r[0]&&"-"===r[1]?n.style.setProperty(r,a):n.style[r]=a)}}function za(e,t,a){var r=e.type,n=a.data.on;n&&n[r]&&function(e,t,a){"function"==typeof e&&e.apply(void 0,[t].concat(a))}(n[r],e,t)}function Ra(e,t){var a=e.data.on,r=e.listener,n=e.elm,o=t&&t.data.on,i=t&&t.elm;if(a!==o&&(a&&r&&(o?Object.keys(a).forEach((function(e){o[e]||Ee(n).off(e,r)})):Object.keys(a).forEach((function(e){Ee(n).off(e,r)}))),o)){var s=e.listener||function e(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n0?l:s.length,u=p>0?p:s.length,h=-1!==l||-1!==p?s.slice(0,Math.min(d,u)):s,f=e.elm=Ea(r)&&Ea(a=r.ns)?o.createElementNS(a,h):o.createElement(h);for(d0&&f.setAttribute("class",s.slice(u+1).replace(/\./g," ")),a=0;af?p(e,null==a[g+1]?null:a[g+1].elm,a,d,g,r):u(e,t,l,f))}(s,l,d,a):Ea(d)?(Ea(e.text)&&o.setTextContent(s,""),p(s,null,d,0,d.length-1,a)):Ea(l)?u(s,l,0,l.length-1):Ea(e.text)&&o.setTextContent(s,""):e.text!==t.text&&o.setTextContent(s,t.text),Ea(i)&&Ea(r=i.postpatch)&&r(e,t)}}return function(e,t){var a,r,i,l=[];for(a=0;a1?t-1:0),r=1;r/)&&(t=e.split(//).filter((function(e,t){return t>0})).join("").split("").filter((function(e,t,a){return t").replace(/{{#raw}}([ \n]*)([ \n]*){{\/raw}}/g,"/template>{{/raw}}").replace(/([ \n])([ \n])/g,"/template>{{/raw}}$1"));var l,c=null;if(e.indexOf("")[0]),e.indexOf("")[0]),e.indexOf("