framework7
Version:
Full featured mobile HTML framework for building iOS & Android apps
13 lines (12 loc) • 187 kB
JavaScript
/**
* Framework7 7.0.9
* Full featured mobile HTML framework for building iOS & Android apps
* https://framework7.io/
*
* Copyright 2014-2022 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: November 21, 2022
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Framework7=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(r,a){void 0===r&&(r={}),void 0===a&&(a={}),Object.keys(a).forEach((n=>{void 0===r[n]?r[n]=a[n]:e(a[n])&&e(r[n])&&Object.keys(a[n]).length>0&&t(r[n],a[n])}))}const r={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,r),e}const n={document:r,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function o(){const e="undefined"!=typeof window?window:{};return t(e,n),e}class s extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function i(e){void 0===e&&(e=[]);const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...i(e)):t.push(e)})),t}function l(e,t){return Array.prototype.filter.call(e,t)}function c(e,t){const r=o(),n=a();let i=[];if(!t&&e instanceof s)return e;if(!e)return new s(i);if("string"==typeof e){const r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let e="div";0===r.indexOf("<li")&&(e="ul"),0===r.indexOf("<tr")&&(e="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(e="tr"),0===r.indexOf("<tbody")&&(e="table"),0===r.indexOf("<option")&&(e="select");const t=n.createElement(e);t.innerHTML=r;for(let e=0;e<t.childNodes.length;e+=1)i.push(t.childNodes[e])}else i=function(e,t){if("string"!=typeof e)return[e];const r=[],a=t.querySelectorAll(e);for(let e=0;e<a.length;e+=1)r.push(a[e]);return r}(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)i.push(e);else if(Array.isArray(e)){if(e instanceof s)return e;i=e}return new s(function(e){const t=[];for(let r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(i))}c.fn=s.prototype;const u="resize scroll".split(" ");function p(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];if(void 0===r[0]){for(let t=0;t<this.length;t+=1)u.indexOf(e)<0&&(e in this[t]?this[t][e]():c(this[t]).trigger(e));return this}return this.on(e,...r)}}const d=p("click"),h=p("blur"),f=p("focus"),m=p("focusin"),g=p("focusout"),v=p("keyup"),b=p("keydown"),y=p("keypress"),w=p("submit"),C=p("change"),k=p("mousedown"),E=p("mousemove"),$=p("mouseup"),x=p("mouseenter"),P=p("mouseleave"),O=p("mouseout"),R=p("mouseover"),T=p("touchstart"),S=p("touchend"),A=p("touchmove"),L=p("resize"),M=p("scroll");var B=Object.freeze({__proto__:null,default:c,$:c,add:function(){const e=this;let t,r;for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];for(t=0;t<n.length;t+=1){const a=c(n[t]);for(r=0;r<a.length;r+=1)e.push(a[r])}return e},addClass:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const a=i(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...a)})),this},animate:function(e,t){const r=o(),a=this,n={props:Object.assign({},e),params:Object.assign({duration:300,easing:"swing"},t),elements:a,animating:!1,que:[],easingProgress:(e,t)=>"swing"===e?.5-Math.cos(t*Math.PI)/2:"function"==typeof e?e(t):t,stop(){n.frameId&&r.cancelAnimationFrame(n.frameId),n.animating=!1,n.elements.each((e=>{delete e.dom7AnimateInstance})),n.que=[]},done(e){if(n.animating=!1,n.elements.each((e=>{delete e.dom7AnimateInstance})),e&&e(a),n.que.length>0){const e=n.que.shift();n.animate(e[0],e[1])}},animate(e,t){if(n.animating)return n.que.push([e,t]),n;const o=[];n.elements.each(((t,a)=>{let s,i,l,c,u;t.dom7AnimateInstance||(n.elements[a].dom7AnimateInstance=n),o[a]={container:t},Object.keys(e).forEach((n=>{s=r.getComputedStyle(t,null).getPropertyValue(n).replace(",","."),i=parseFloat(s),l=s.replace(i,""),c=parseFloat(e[n]),u=e[n]+l,o[a][n]={initialFullValue:s,initialValue:i,unit:l,finalValue:c,finalFullValue:u,currentValue:i}}))}));let s,i,l=null,c=0,u=0,p=!1;return n.animating=!0,n.frameId=r.requestAnimationFrame((function d(){let h,f;s=(new Date).getTime(),p||(p=!0,t.begin&&t.begin(a)),null===l&&(l=s),t.progress&&t.progress(a,Math.max(Math.min((s-l)/t.duration,1),0),l+t.duration-s<0?0:l+t.duration-s,l),o.forEach((r=>{const a=r;i||a.done||Object.keys(e).forEach((r=>{if(i||a.done)return;h=Math.max(Math.min((s-l)/t.duration,1),0),f=n.easingProgress(t.easing,h);const{initialValue:p,finalValue:d,unit:m}=a[r];a[r].currentValue=p+f*(d-p);const g=a[r].currentValue;(d>p&&g>=d||d<p&&g<=d)&&(a.container.style[r]=d+m,u+=1,u===Object.keys(e).length&&(a.done=!0,c+=1),c===o.length&&(i=!0)),i?n.done(t.complete):a.container.style[r]=g+m}))})),i||(n.frameId=r.requestAnimationFrame(d))})),n}};if(0===n.elements.length)return a;let s;for(let e=0;e<n.elements.length;e+=1)n.elements[e].dom7AnimateInstance?s=n.elements[e].dom7AnimateInstance:n.elements[e].dom7AnimateInstance=n;return s||(s=n),"stop"===e?s.stop():s.animate(n.props,n.params),a},animationEnd:function(e){const t=this;return e&&t.on("animationend",(function r(a){a.target===this&&(e.call(this,a),t.off("animationend",r))})),this},append:function(){let e;const t=a();for(let r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(let r=0;r<this.length;r+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e;a.firstChild;)this[r].appendChild(a.firstChild)}else if(e instanceof s)for(let t=0;t<e.length;t+=1)this[r].appendChild(e[t]);else this[r].appendChild(e)}return this},appendTo:function(e){return c(e).append(this),this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let r=0;r<this.length;r+=1)if(2===arguments.length)this[r].setAttribute(e,t);else for(const t in e)this[r][t]=e[t],this[r].setAttribute(t,e[t]);return this},blur:h,change:C,children:function(e){const t=[];for(let r=0;r<this.length;r+=1){const a=this[r].children;for(let r=0;r<a.length;r+=1)e&&!c(a[r]).is(e)||t.push(a[r])}return c(t)},click:d,closest:function(e){let t=this;return void 0===e?c([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},css:function(e,t){const r=o();let a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(const t in e)this[a].style[t]=e[t];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a+=1)this[a].style[e]=t;return this}return this},data:function(e,t){let r;if(void 0===t){if(r=this[0],!r)return;if(r.dom7ElementDataStorage&&e in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[e];const t=r.getAttribute(`data-${e}`);return t||void 0}for(let a=0;a<this.length;a+=1)r=this[a],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=t;return this},dataset:function(){const e=this[0];if(!e)return;const t={};if(e.dataset)for(const r in e.dataset)t[r]=e.dataset[r];else for(let a=0;a<e.attributes.length;a+=1){const n=e.attributes[a];n.name.indexOf("data-")>=0&&(t[(r=n.name.split("data-")[1],r.toLowerCase().replace(/-(.)/g,((e,t)=>t.toUpperCase())))]=n.value)}var r;for(const e in t)"false"===t[e]?t[e]=!1:"true"===t[e]?t[e]=!0:parseFloat(t[e])===1*t[e]&&(t[e]*=1);return t},detach:function(){return this.remove()},each:function(e){return e?(this.forEach(((t,r)=>{e.apply(t,[t,r])})),this):this},empty:function(){for(let e=0;e<this.length;e+=1){const t=this[e];if(1===t.nodeType){for(let e=0;e<t.childNodes.length;e+=1)t.childNodes[e].parentNode&&t.childNodes[e].parentNode.removeChild(t.childNodes[e]);t.textContent=""}}return this},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return c([]);if(e<0){const r=t+e;return c(r<0?[]:[this[r]])}return c([this[e]])},filter:function(e){return c(l(this,e))},find:function(e){const t=[];for(let r=0;r<this.length;r+=1){const a=this[r].querySelectorAll(e);for(let e=0;e<a.length;e+=1)t.push(a[e])}return c(t)},focus:f,focusin:m,focusout:g,hasClass:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const a=i(t.map((e=>e.split(" "))));return l(this,(e=>a.filter((t=>e.classList.contains(t))).length>0)).length>0},height:function(){const e=o();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null},hide:function(){for(let e=0;e<this.length;e+=1)this[e].style.display="none";return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},insertAfter:function(e){const t=c(e);for(let e=0;e<this.length;e+=1)if(1===t.length)t[0].parentNode.insertBefore(this[e],t[0].nextSibling);else if(t.length>1)for(let r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[e].cloneNode(!0),t[r].nextSibling)},insertBefore:function(e){const t=c(e);for(let e=0;e<this.length;e+=1)if(1===t.length)t[0].parentNode.insertBefore(this[e],t[0]);else if(t.length>1)for(let r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[e].cloneNode(!0),t[r])},is:function(e){const t=o(),r=a(),n=this[0];let i,l;if(!n||void 0===e)return!1;if("string"==typeof e){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(i=c(e),l=0;l<i.length;l+=1)if(i[l]===n)return!0;return!1}if(e===r)return n===r;if(e===t)return n===t;if(e.nodeType||e instanceof s){for(i=e.nodeType?[e]:e,l=0;l<i.length;l+=1)if(i[l]===n)return!0;return!1}return!1},keydown:b,keypress:y,keyup:v,mousedown:k,mouseenter:x,mouseleave:P,mousemove:E,mouseout:O,mouseover:R,mouseup:$,next:function(e){return this.length>0?e?this[0].nextElementSibling&&c(this[0].nextElementSibling).is(e)?c([this[0].nextElementSibling]):c([]):this[0].nextElementSibling?c([this[0].nextElementSibling]):c([]):c([])},nextAll:function(e){const t=[];let r=this[0];if(!r)return c([]);for(;r.nextElementSibling;){const a=r.nextElementSibling;e?c(a).is(e)&&t.push(a):t.push(a),r=a}return c(t)},off:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let[a,n,o,s]=t;"function"==typeof t[1]&&([a,o,s]=t,n=void 0),s||(s=!1);const i=a.split(" ");for(let e=0;e<i.length;e+=1){const t=i[e];for(let e=0;e<this.length;e+=1){const r=this[e];let a;if(!n&&r.dom7Listeners?a=r.dom7Listeners[t]:n&&r.dom7LiveListeners&&(a=r.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const n=a[e];o&&n.listener===o||o&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===o?(r.removeEventListener(t,n.proxyListener,s),a.splice(e,1)):o||(r.removeEventListener(t,n.proxyListener,s),a.splice(e,1))}}}return this},offset:function(){if(this.length>0){const e=o(),t=a(),r=this[0],n=r.getBoundingClientRect(),s=t.body,i=r.clientTop||s.clientTop||0,l=r.clientLeft||s.clientLeft||0,c=r===e?e.scrollY:r.scrollTop,u=r===e?e.scrollX:r.scrollLeft;return{top:n.top+c-i,left:n.left+u-l}}return null},on:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let[a,n,o,s]=t;function i(e){const t=e.target;if(!t)return;const r=e.target.dom7EventData||[];if(r.indexOf(e)<0&&r.unshift(e),c(t).is(n))o.apply(t,r);else{const e=c(t).parents();for(let t=0;t<e.length;t+=1)c(e[t]).is(n)&&o.apply(e[t],r)}}function l(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),o.apply(this,t)}"function"==typeof t[1]&&([a,o,s]=t,n=void 0),s||(s=!1);const u=a.split(" ");let p;for(let e=0;e<this.length;e+=1){const t=this[e];if(n)for(p=0;p<u.length;p+=1){const e=u[p];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:o,proxyListener:i}),t.addEventListener(e,i,s)}else for(p=0;p<u.length;p+=1){const e=u[p];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:o,proxyListener:l}),t.addEventListener(e,l,s)}}return this},once:function(){const e=this;for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];let[n,o,s,i]=r;function l(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];s.apply(this,r),e.off(n,o,l,i),l.dom7proxy&&delete l.dom7proxy}return"function"==typeof r[1]&&([n,s,i]=r,o=void 0),l.dom7proxy=s,e.on(n,o,l,i)},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},parent:function(e){const t=[];for(let r=0;r<this.length;r+=1)null!==this[r].parentNode&&(e?c(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return c(t)},parents:function(e){const t=[];for(let r=0;r<this.length;r+=1){let a=this[r].parentNode;for(;a;)e?c(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return c(t)},prepend:function(e){const t=a();let r,n;for(r=0;r<this.length;r+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e,n=a.childNodes.length-1;n>=0;n-=1)this[r].insertBefore(a.childNodes[n],this[r].childNodes[0])}else if(e instanceof s)for(n=0;n<e.length;n+=1)this[r].insertBefore(e[n],this[r].childNodes[0]);else this[r].insertBefore(e,this[r].childNodes[0]);return this},prependTo:function(e){return c(e).prepend(this),this},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&c(t.previousElementSibling).is(e)?c([t.previousElementSibling]):c([]):t.previousElementSibling?c([t.previousElementSibling]):c([])}return c([])},prevAll:function(e){const t=[];let r=this[0];if(!r)return c([]);for(;r.previousElementSibling;){const a=r.previousElementSibling;e?c(a).is(e)&&t.push(a):t.push(a),r=a}return c(t)},prop:function(e,t){if(1!==arguments.length||"string"!=typeof e){for(let r=0;r<this.length;r+=1)if(2===arguments.length)this[r][e]=t;else for(const t in e)this[r][t]=e[t];return this}return this[0]?this[0][e]:this},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},removeClass:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const a=i(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...a)})),this},removeData:function(e){for(let t=0;t<this.length;t+=1){const r=this[t];r.dom7ElementDataStorage&&r.dom7ElementDataStorage[e]&&(r.dom7ElementDataStorage[e]=null,delete r.dom7ElementDataStorage[e])}},resize:L,scroll:M,scrollLeft:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let[a,n,o,s]=t;3===t.length&&"function"==typeof o&&([a,n,s,o]=t);const i=this;return void 0===a?i.length>0?i[0].scrollLeft:null:i.scrollTo(a,void 0,n,o,s)},scrollTo:function(){const e=o();for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];let[n,s,i,l,c]=r;return 4===r.length&&"function"==typeof l&&(c=l,[n,s,i,c,l]=r),void 0===l&&(l="swing"),this.each((function(){const t=this;let r,a,o,u,p,d,h,f,m=s>0||0===s,g=n>0||0===n;if(void 0===l&&(l="swing"),m&&(r=t.scrollTop,i||(t.scrollTop=s)),g&&(a=t.scrollLeft,i||(t.scrollLeft=n)),!i)return;m&&(o=t.scrollHeight-t.offsetHeight,p=Math.max(Math.min(s,o),0)),g&&(u=t.scrollWidth-t.offsetWidth,d=Math.max(Math.min(n,u),0));let v=null;m&&p===r&&(m=!1),g&&d===a&&(g=!1),e.requestAnimationFrame((function n(o){void 0===o&&(o=(new Date).getTime()),null===v&&(v=o);const s=Math.max(Math.min((o-v)/i,1),0),u="linear"===l?s:.5-Math.cos(s*Math.PI)/2;let b;m&&(h=r+u*(p-r)),g&&(f=a+u*(d-a)),m&&p>r&&h>=p&&(t.scrollTop=p,b=!0),m&&p<r&&h<=p&&(t.scrollTop=p,b=!0),g&&d>a&&f>=d&&(t.scrollLeft=d,b=!0),g&&d<a&&f<=d&&(t.scrollLeft=d,b=!0),b?c&&c():(m&&(t.scrollTop=h),g&&(t.scrollLeft=f),e.requestAnimationFrame(n))}))}))},scrollTop:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let[a,n,o,s]=t;3===t.length&&"function"==typeof o&&([a,n,s,o]=t);const i=this;return void 0===a?i.length>0?i[0].scrollTop:null:i.scrollTo(void 0,a,n,o,s)},show:function(){const e=o();for(let t=0;t<this.length;t+=1){const r=this[t];"none"===r.style.display&&(r.style.display=""),"none"===e.getComputedStyle(r,null).getPropertyValue("display")&&(r.style.display="block")}return this},siblings:function(e){return this.nextAll(e).add(this.prevAll(e))},stop:function(){const e=this;for(let t=0;t<e.length;t+=1)e[t].dom7AnimateInstance&&e[t].dom7AnimateInstance.stop()},styles:function(){const e=o();return this[0]?e.getComputedStyle(this[0],null):{}},submit:w,text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},toggleClass:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const a=i(t.map((e=>e.split(" "))));this.forEach((e=>{a.forEach((t=>{e.classList.toggle(t)}))}))},touchend:S,touchmove:A,touchstart:T,transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function r(a){a.target===this&&(e.call(this,a),t.off("transitionend",r))})),this},trigger:function(){const e=o();for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];const n=r[0].split(" "),s=r[1];for(let t=0;t<n.length;t+=1){const a=n[t];for(let t=0;t<this.length;t+=1){const n=this[t];if(e.CustomEvent){const t=new e.CustomEvent(a,{detail:s,bubbles:!0,cancelable:!0});n.dom7EventData=r.filter(((e,t)=>t>0)),n.dispatchEvent(t),n.dom7EventData=[],delete n.dom7EventData}}}return this},val:function(e){if(void 0===e){const e=this[0];if(!e)return;if(e.multiple&&"select"===e.nodeName.toLowerCase()){const t=[];for(let r=0;r<e.selectedOptions.length;r+=1)t.push(e.selectedOptions[r].value);return t}return e.value}for(let t=0;t<this.length;t+=1){const r=this[t];if(Array.isArray(e)&&r.multiple&&"select"===r.nodeName.toLowerCase())for(let t=0;t<r.options.length;t+=1)r.options[t].selected=e.indexOf(r.options[t].value)>=0;else r.value=e}return this},value:function(e){return this.val(e)},width:function(){const e=o();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}});Object.keys(B).forEach((e=>{"$"!==e&&(c.fn[e]=B[e])}));var N=c;let H=0;function _(e,t){void 0===e&&(e="xxxxxxxxxx"),void 0===t&&(t="0123456789abcdef");const r=t.length;return e.replace(/x/g,(()=>t[Math.floor(Math.random()*r)]))}const D='\n <span class="preloader-inner">\n <svg viewBox="0 0 36 36">\n <circle cx="18" cy="18" r="16"></circle>\n </svg>\n </span>\n'.trim(),j=`\n <span class="preloader-inner">\n ${[0,1,2,3,4,5,6,7].map((()=>'<span class="preloader-inner-line"></span>')).join("")}\n </span>\n`.trim();function q(e){let t;return e.split("").map(((e,r)=>e.match(/[A-Z]/)&&0!==r&&!t?(t=!0,`:${e.toLowerCase()}`):e.toLowerCase())).join("")}function I(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}function U(e){return o().requestAnimationFrame(e)}function z(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function V(e){return U((()=>{U(e)}))}function W(){return Date.now()}function F(e){const t=o(),r={};let a,n,s,i,l=e||t.location.href;if("string"==typeof l&&l.length)for(l=l.indexOf("?")>-1?l.replace(/\S*\?/,""):"",n=l.split("&").filter((e=>""!==e)),i=n.length,a=0;a<i;a+=1)s=n[a].replace(/#\S+/g,"").split("="),r[decodeURIComponent(s[0])]=void 0===s[1]?void 0:decodeURIComponent(s.slice(1).join("="))||"";return r}function X(e,t){if(void 0===t&&(t=[]),"string"==typeof e)return e;const r=[];let a;function n(e){if(t.length>0){let r="";for(let e=0;e<t.length;e+=1)r+=0===e?t[e]:`[${encodeURIComponent(t[e])}]`;return`${r}[${encodeURIComponent(e)}]`}return encodeURIComponent(e)}function o(e){return encodeURIComponent(e)}return Object.keys(e).forEach((s=>{let i;if(Array.isArray(e[s])){i=[];for(let r=0;r<e[s].length;r+=1)Array.isArray(e[s][r])||"object"!=typeof e[s][r]?i.push(`${n(s)}[]=${o(e[s][r])}`):(a=t.slice(),a.push(s),a.push(String(r)),i.push(X(e[s][r],a)));i.length>0&&r.push(i.join("&"))}else null===e[s]||""===e[s]?r.push(`${n(s)}=`):"object"==typeof e[s]?(a=t.slice(),a.push(s),i=X(e[s],a),""!==i&&r.push(i)):void 0!==e[s]&&""!==e[s]?r.push(`${n(s)}=${o(e[s])}`):""===e[s]&&r.push(n(s))})),r.join("&")}function Q(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function Y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const a=t[0];t.splice(0,1);const n=t;for(let e=0;e<n.length;e+=1){const r=t[e];if(null!=r){const e=Object.keys(Object(r));for(let t=0,n=e.length;t<n;t+=1){const n=e[t],o=Object.getOwnPropertyDescriptor(r,n);void 0!==o&&o.enumerable&&(a[n]=r[n])}}}return a}function J(){let e,t,r=!0;for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];"boolean"==typeof n[0]?(r=n[0],e=n[1],n.splice(0,2),t=n):(e=n[0],n.splice(0,1),t=n);for(let a=0;a<t.length;a+=1){const t=n[a];if(null!=t){const a=Object.keys(Object(t));for(let n=0,o=a.length;n<o;n+=1){const o=a[n],s=Object.getOwnPropertyDescriptor(t,o);void 0!==s&&s.enumerable&&(r?Q(e[o])&&Q(t[o])?J(e[o],t[o]):!Q(e[o])&&Q(t[o])?(e[o]={},J(e[o],t[o])):e[o]=t[o]:e[o]=t[o])}}}return e}function G(e){const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,r,a)=>t+t+r+r+a+a)),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r?r.slice(1).map((e=>parseInt(e,16))):null}function K(e,t,r){const a=[e,t,r].map((e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t})).join("");return`#${a}`}function Z(e,t,r){e/=255,t/=255,r/=255;const a=Math.max(e,t,r),n=Math.min(e,t,r),o=a-n;let s;0===o?s=0:a===e?s=(t-r)/o%6:a===t?s=(r-e)/o+2:a===r&&(s=(e-t)/o+4);const i=(n+a)/2;return s<0&&(s=6+s),[60*s,0===o?0:o/(1-Math.abs(2*i-1)),i]}function ee(e,t,r){const a=(1-Math.abs(2*r-1))*t,n=e/60,o=a*(1-Math.abs(n%2-1));let s;Number.isNaN(e)||void 0===e?s=[0,0,0]:n<=1?s=[a,o,0]:n<=2?s=[o,a,0]:n<=3?s=[0,a,o]:n<=4?s=[0,o,a]:n<=5?s=[o,0,a]:n<=6&&(s=[a,0,o]);const i=r-a/2;return s.map((e=>Math.max(0,Math.min(255,Math.round(255*(e+i))))))}function te(e,t){Object.keys(t).forEach((r=>{Q(t[r])&&Object.keys(t[r]).forEach((a=>{"function"==typeof t[r][a]&&(t[r][a]=t[r][a].bind(e))})),e[r]=t[r]}))}function re(){const e=[];for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return r.forEach((t=>{Array.isArray(t)?e.push(...re(...t)):e.push(t)})),e}var ae=Object.freeze({__proto__:null,uniqueNumber:function(){return H+=1,H},id:_,mdPreloaderContent:D,iosPreloaderContent:j,auroraPreloaderContent:'\n <span class="preloader-inner">\n <span class="preloader-inner-circle"></span>\n </span>\n',eventNameToColonCase:q,deleteProps:I,requestAnimationFrame:U,cancelAnimationFrame:function(e){return o().cancelAnimationFrame(e)},nextTick:z,nextFrame:V,now:W,parseUrlQuery:F,getTranslate:function(e,t){void 0===t&&(t="x");const r=o();let a,n,s;const i=r.getComputedStyle(e,null);return r.WebKitCSSMatrix?(n=i.transform||i.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map((e=>e.replace(",","."))).join(", ")),s=new r.WebKitCSSMatrix("none"===n?"":n)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=s.toString().split(",")),"x"===t&&(n=r.WebKitCSSMatrix?s.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(n=r.WebKitCSSMatrix?s.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),n||0},serializeObject:X,isObject:Q,merge:Y,extend:J,colorHexToRgb:G,colorRgbToHex:K,colorRgbToHsl:Z,colorHslToRgb:ee,colorHsbToHsl:function(e,t,r){const a={h:e,s:0,l:0},n=t,o=r;return a.l=(2-n)*o/2,a.s=a.l&&a.l<1?n*o/(a.l<.5?2*a.l:2-2*a.l):a.s,[a.h,a.s,a.l]},colorHslToHsb:function(e,t,r){const a={h:e,s:0,b:0},n=r,o=t*(n<.5?n:1-n);return a.b=n+o,a.s=n>0?2*o/a.b:a.s,[a.h,a.s,a.b]},colorThemeCSSProperties:function(){let e,t;for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];if(1===a.length?(e=a[0],t=G(e)):3===a.length&&(t=a,e=K(...t)),!t)return{};const o=Z(...t),s=[o[0],o[1],Math.max(0,o[2]-.08)],i=[o[0],o[1],Math.max(0,o[2]+.08)],l=K(...ee(...s)),c=K(...ee(...i));return{"--f7-theme-color":e,"--f7-theme-color-rgb":t.join(", "),"--f7-theme-color-shade":l,"--f7-theme-color-tint":c}},bindMethods:te,flattenArray:re});let ne,oe;function se(){return ne||(ne=function(){const e=o(),t=a();return{touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!e.PointerEvent&&"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>=0,passiveListener:function(){let t=!1;try{const r=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,r)}catch(e){}return t}(),intersectionObserver:"IntersectionObserver"in e}}()),ne}function ie(e,t){return void 0===e&&(e={}),oe&&!t||(oe=function(e){let{userAgent:t}=void 0===e?{}:e;const r=se(),a=o(),n=a.navigator.platform,s=t||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},l=a.screen.width,c=a.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let p=s.match(/(iPad).*OS\s([\d_]+)/);const d=s.match(/(iPod)(.*OS\s([\d_]+))?/),h=!p&&s.match(/(iPhone\sOS|iOS|iPhone;\sCPU\sOS)\s([\d_]+)/),f=s.indexOf("MSIE ")>=0||s.indexOf("Trident/")>=0,m=s.indexOf("Edge/")>=0,g=s.indexOf("Gecko/")>=0&&s.indexOf("Firefox/")>=0,v="Win32"===n,b=s.toLowerCase().indexOf("electron")>=0,y="undefined"!=typeof nw&&"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.nw;let w="MacIntel"===n;return!p&&w&&r.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${c}`)>=0&&(p=s.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),w=!1),i.ie=f,i.edge=m,i.firefox=g,u&&(i.os="android",i.osVersion=u[2],i.android=!0,i.androidChrome=s.toLowerCase().indexOf("chrome")>=0),(p||h||d)&&(i.os="ios",i.ios=!0),h&&!d&&(i.osVersion=h[2].replace(/_/g,"."),i.iphone=!0),p&&(i.osVersion=p[2].replace(/_/g,"."),i.ipad=!0),d&&(i.osVersion=d[3]?d[3].replace(/_/g,"."):null,i.ipod=!0),i.ios&&i.osVersion&&s.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=s.toLowerCase().split("version/")[1].split(" ")[0]),i.webView=!(!(h||p||d)||!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)||b||y,i.desktop&&(i.electron=b,i.nwjs=y,i.macos=w,i.windows=v,i.macos&&(i.os="macos"),i.windows&&(i.os="windows")),i.pixelRatio=a.devicePixelRatio||1,i.prefersColorScheme=function(){let e;return a.matchMedia&&a.matchMedia("(prefers-color-scheme: light)").matches&&(e="light"),a.matchMedia&&a.matchMedia("(prefers-color-scheme: dark)").matches&&(e="dark"),e},i}(e)),oe}class le{constructor(e){void 0===e&&(e=[]);this.eventsParents=e,this.eventsListeners={}}on(e,t,r){const a=this;if("function"!=typeof t)return a;const n=r?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][n](t)})),a}once(e,t,r){const a=this;if("function"!=typeof t)return a;function n(){a.off(e,n),n.f7proxy&&delete n.f7proxy;for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];t.apply(a,o)}return n.f7proxy=t,a.on(e,n,r)}off(e,t){const r=this;return r.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].forEach(((a,n)=>{(a===t||a.f7proxy&&a.f7proxy===t)&&r.eventsListeners[e].splice(n,1)}))})),r):r}emit(){const e=this;if(!e.eventsListeners)return e;let t,r,a,n;for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];"string"==typeof s[0]||Array.isArray(s[0])?(t=s[0],r=s.slice(1,s.length),a=e,n=e.eventsParents):(t=s[0].events,r=s[0].data,a=s[0].context||e,n=s[0].local?[]:s[0].parents||e.eventsParents);const l=Array.isArray(t)?t:t.split(" "),c=l.map((e=>e.replace("local::",""))),u=l.filter((e=>e.indexOf("local::")<0));return c.forEach((t=>{if(e.eventsListeners&&e.eventsListeners[t]){const n=[];e.eventsListeners[t].forEach((e=>{n.push(e)})),n.forEach((e=>{e.apply(a,r)}))}})),n&&n.length>0&&n.forEach((e=>{e.emit(u,...r)})),e}}class ce extends le{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),super(t);const r=this;r.params=e,r.params&&r.params.on&&Object.keys(r.params.on).forEach((e=>{r.on(e,r.params.on[e])}))}useModuleParams(e,t){if(e.params){const r={};Object.keys(e.params).forEach((e=>{void 0!==t[e]&&(r[e]=J({},t[e]))})),J(t,e.params),Object.keys(r).forEach((e=>{J(t[e],r[e])}))}}useModulesParams(e){const t=this;t.modules&&Object.keys(t.modules).forEach((r=>{const a=t.modules[r];a.params&&J(e,a.params)}))}useModule(e,t){void 0===e&&(e=""),void 0===t&&(t={});const r=this;if(!r.modules)return;const a="string"==typeof e?r.modules[e]:e;a&&(a.instance&&Object.keys(a.instance).forEach((e=>{const t=a.instance[e];r[e]="function"==typeof t?t.bind(r):t})),a.on&&r.on&&Object.keys(a.on).forEach((e=>{r.on(e,a.on[e])})),a.vnode&&(r.vnodeHooks||(r.vnodeHooks={}),Object.keys(a.vnode).forEach((e=>{Object.keys(a.vnode[e]).forEach((t=>{const n=a.vnode[e][t];r.vnodeHooks[t]||(r.vnodeHooks[t]={}),r.vnodeHooks[t][e]||(r.vnodeHooks[t][e]=[]),r.vnodeHooks[t][e].push(n.bind(r))}))}))),a.create&&a.create.bind(r)(t))}useModules(e){void 0===e&&(e={});const t=this;t.modules&&Object.keys(t.modules).forEach((r=>{const a=e[r]||{};t.useModule(r,a)}))}static set components(e){this.use&&this.use(e)}static installModule(e){const t=this;t.prototype.modules||(t.prototype.modules={});const r=e.name||`${Object.keys(t.prototype.modules).length}_${W()}`;if(t.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach((r=>{t.prototype[r]=e.proto[r]})),e.static&&Object.keys(e.static).forEach((r=>{t[r]=e.static[r]})),e.install){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];e.install.apply(t,n)}return t}static use(e){const t=this;if(Array.isArray(e))return e.forEach((e=>t.installModule(e))),t;for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return t.installModule(e,...a)}}function ue(e){void 0===e&&(e={});const{defaultSelector:t,constructor:r,domProp:a,app:n,addMethods:o}=e,s={create(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return n?new r(n,...t):new r(...t)},get(e){if(void 0===e&&(e=t),e instanceof r)return e;const n=N(e);return 0!==n.length?n[0][a]:void 0},destroy(e){const t=s.get(e);if(t&&t.destroy)return t.destroy()}};return o&&Array.isArray(o)&&o.forEach((e=>{s[e]=function(r){void 0===r&&(r=t);const a=s.get(r);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];if(a&&a[e])return a[e](...o)}})),s}const pe=[];class de extends ce{constructor(e){if(void 0===e&&(e={}),super(e),de.instance&&"undefined"!=typeof window)throw new Error("Framework7 is already initialized and can't be initialized more than once");const t=ie({userAgent:e.userAgent||void 0}),r=se(),n=J({},e),s=this;s.device=t,s.support=r;const i=o(),l=a();de.instance=s;const c={version:"1.0.0",id:"io.framework7.myapp",el:"body",theme:"auto",language:i.navigator.language,routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,autoDarkMode:!1,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0,userAgent:null,url:null};return s.useModulesParams(c),s.params=J(c,e),J(s,{id:s.params.id,name:s.params.name,version:s.params.version,routes:s.params.routes,language:s.params.language,theme:"auto"===s.params.theme?t.ios?"ios":t.desktop&&t.electron?"aurora":"md":s.params.theme,passedParams:n,online:i.navigator.onLine}),e.store&&(s.params.store=e.store),s.$el&&s.$el[0]&&(s.$el[0].f7=s),s.useModules(),s.initStore(),s.params.init&&(t.cordova&&s.params.initOnDeviceReady?N(l).on("deviceready",(()=>{s.init()})):s.init()),s}mount(e){const t=this,r=o(),n=a(),s=N(e||t.params.el).eq(0);t.$el=s,t.$el&&t.$el[0]&&(t.el=t.$el[0],t.el.f7=t,t.rtl="rtl"===s.css("direction"));const i="(prefers-color-scheme: dark)",l="(prefers-color-scheme: light)";t.mq={},r.matchMedia&&(t.mq.dark=r.matchMedia(i),t.mq.light=r.matchMedia(l)),t.colorSchemeListener=function(e){let{matches:r,media:a}=e;if(!r)return;const o=n.querySelector("html");a===i?(o.classList.add("dark"),t.darkMode=!0,t.emit("darkModeChange",!0)):a===l&&(o.classList.remove("dark"),t.darkMode=!1,t.emit("darkModeChange",!1))},t.emit("mount")}initStore(){const e=this;void 0!==e.params.store&&e.params.store.__store?e.store=e.params.store:e.store=e.createStore(e.params.store)}enableAutoDarkMode(){const e=o(),t=a();if(!e.matchMedia)return;const r=this,n=t.querySelector("html");r.mq.dark&&r.mq.light&&(r.mq.dark.addListener(r.colorSchemeListener),r.mq.light.addListener(r.colorSchemeListener)),r.mq.dark&&r.mq.dark.matches?(n.classList.add("dark"),r.darkMode=!0,r.emit("darkModeChange",!0)):r.mq.light&&r.mq.light.matches&&(n.classList.remove("dark"),r.darkMode=!1,r.emit("darkModeChange",!1))}disableAutoDarkMode(){if(!o().matchMedia)return;const e=this;e.mq.dark&&e.mq.dark.removeListener(e.colorSchemeListener),e.mq.light&&e.mq.light.removeListener(e.colorSchemeListener)}initAppComponent(e){const t=this;t.router.componentLoader(t.params.component,t.params.componentUrl,{componentOptions:{el:t.$el[0]}},(r=>{t.$el=N(r),t.$el[0].f7=t,t.$elComponent=r.f7Component,t.el=t.$el[0],e&&e()}),(()=>{}))}init(e){const t=this;t.mount(e);const r=()=>{if(t.initialized)return;t.$el.addClass("framework7-initializing"),t.rtl&&N("html").attr("dir","rtl"),t.params.autoDarkMode&&t.enableAutoDarkMode();const e=o();e.addEventListener("offline",(()=>{t.online=!1,t.emit("offline"),t.emit("connection",!1)})),e.addEventListener("online",(()=>{t.online=!0,t.emit("online"),t.emit("connection",!0)})),t.$el.addClass("framework7-root"),N("html").removeClass("ios md aurora").addClass(t.theme);const r=t.device;t.params.iosTranslucentBars&&"ios"===t.theme&&r.ios&&N("html").addClass("ios-translucent-bars"),t.params.iosTranslucentModals&&"ios"===t.theme&&r.ios&&N("html").addClass("ios-translucent-modals"),V((()=>{t.$el.removeClass("framework7-initializing")})),t.initialized=!0,t.emit("init")};return t.params.component||t.params.componentUrl?t.initAppComponent((()=>{r()})):r(),t}loadModule(){return de.loadModule(...arguments)}loadModules(){return de.loadModules(...arguments)}getVnodeHooks(e,t){const r=this;return r.vnodeHooks&&r.vnodeHooks[e]&&r.vnodeHooks[e][t]||[]}get $(){return N}static get Dom7(){return N}static get $(){return N}static get device(){return ie()}static get support(){return se()}static get Class(){return ce}static get Events(){return le}}de.$jsx=function(e,t){const r=t||{};for(var a=arguments.length,n=new Array(a>2?a-2:0),o=2;o<a;o++)n[o-2]=arguments[o];const s=n||[],i=Object.keys(r).map((e=>"_"===e[0]?r[e]?e.replace("_",""):"":`${e}="${r[e]}"`)).filter((e=>!!e)).join(" ");if(["path","img","circle","polygon","line","input"].indexOf(e)>=0)return`<${e} ${i} />`.trim();const l=s.filter((e=>!!e)).map((e=>Array.isArray(e)?e.join(""):e)).join("");return`<${e} ${i}>${l}</${e}>`.trim()},de.ModalMethods=function(e){void 0===e&&(e={});const{defaultSelector:t,constructor:r,app:a}=e,n=J(ue({defaultSelector:t,constructor:r,app:a,domProp:"f7Modal"}),{open(e,t,n){let o=N(e);if(o.length>1&&n){const e=N(n).parents(".page");e.length&&o.each((t=>{const r=N(t);r.parents(e)[0]===e[0]&&(o=r)}))}if(o.length>1&&(o=o.eq(o.length-1)),!o.length)return;let s=o[0].f7Modal;if(!s){const e=o.dataset();s=new r(a,{el:o,...e})}return s.open(t)},close(e,n,o){void 0===e&&(e=t);let s=N(e);if(!s.length)return;if(s.length>1){let e;if(o){const t=N(o);t.length&&(e=t.parents(s))}s=e&&e.length>0?e:s.eq(s.length-1)}let i=s[0].f7Modal;if(!i){const e=s.dataset();i=new r(a,{el:s,...e})}return i.close(n)}});return n},de.ConstructorMethods=ue,de.loadModule=function(e){const t=this,r=o(),n=a();return new Promise(((a,o)=>{const s=t.instance;let i,l,c;if(e){if("string"==typeof e){const t=e.match(/([a-z0-9-]*)/i);if(e.indexOf(".")<0&&t&&t[0].length===e.length){if(!s||s&&!s.params.lazyModulesPath)return void o(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));i=`${s.params.lazyModulesPath}/${e}/${e}.lazy.js`}else i=e}else"function"==typeof e?c=e:l=e;if(c){const e=c(t,!1);if(!e)return void o(new Error("Framework7: Can't find Framework7 component in specified component function"));if(t.prototype.modules&&t.prototype.modules[e.name])return void a();u(e),a()}if(l){const e=l;if(!e)return void o(new Error("Framework7: Can't find Framework7 component in specified component"));if(t.prototype.modules&&t.prototype.modules[e.name])return void a();u(e),a()}if(i){if(pe.indexOf(i)>=0)return void a();pe.push(i);const e=new Promise(((e,a)=>{t.request.get(i,(o=>{const s=`f7_component_loader_callback_${_()}`,l=n.createElement("script");l.innerHTML=`window.${s} = function (Framework7, Framework7AutoInstallComponent) {return ${o.trim()}}`,N("head").append(l);const c=r[s];delete r[s],N(l).remove();const p=c(t,!1);p?(t.prototype.modules&&t.prototype.modules[p.name]||u(p),e()):a(new Error(`Framework7: Can't find Framework7 component in ${i} file`))}),((e,t)=>{a(e,t)}))})),l=new Promise((e=>{t.request.get(i.replace(".lazy.js",s.rtl?".rtl.css":".css").replace(".js",s.rtl?".rtl.css":".css"),(t=>{const r=n.createElement("style");r.innerHTML=t,N("head").append(r),e()}),(()=>{e()}))}));Promise.all([e,l]).then((()=>{a()})).catch((e=>{o(e)}))}}else o(new Error("Framework7: Lazy module must be specified"));function u(e){t.use(e),s&&(s.useModuleParams(e,s.params),s.useModule(e))}}))},de.loadModules=function(e){return Promise.all(e.map((e=>de.loadModule(e))))};var he={name:"device",static:{getDevice:ie},on:{init(){const e=a(),t=ie(),r=[],n=e.querySelector("html"),o=e.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');n&&(t.standalone&&t.ios&&o&&"black-translucent"===o.content&&r.push("device-full-viewport"),r.push(`device-pixel-ratio-${Math.floor(t.pixelRatio)}`),t.os&&!t.desktop?r.push(`device-${t.os}`):t.desktop&&(r.push("device-desktop"),t.os&&r.push(`device-${t.os}`)),t.cordova&&r.push("device-cordova"),t.capacitor&&r.push("device-capacitor"),r.forEach((e=>{n.classList.add(e)})))}}},fe={name:"support",static:{getSupport:se}},me={name:"utils",proto:{utils:ae},static:{utils:ae}},ge={name:"resize",create(){const e=this;e.getSize=()=>{if(!e.el)return{width:0,height:0,left:0,top:0};const t=e.$el.offset(),[r,a,n,o]=[e.el.offsetWidth,e.el.offsetHeight,t.left,t.top];return e.width=r,e.height=a,e.left=n,e.top=o,{width:r,height:a,left:n,top:o}}},on:{init(){const e=this,t=o();e.getSize(),t.addEventListener("resize",(()=>{e.emit("resize")}),!1),t.addEventListener("orientationchange",(()=>{e.emit("orientationchange")}))},orientationchange(){const e=a();ie().ipad&&(e.body.scrollLeft=0,setTimeout((()=>{e.body.scrollLeft=0}),0))},resize(){this.getSize()}}};const ve={};let be=0;class ye{constructor(e){Object.assign(this,e)}}class we extends Error{constructor(e){super(),Object.assign(this,e)}}const Ce=e=>new Promise(((t,r)=>{const n=o(),s=a(),i=J({},ve);"beforeCreate beforeOpen beforeSend error complete success statusCode".split(" ").forEach((e=>{delete i[e]}));const l=J({url:n.location.toString(),method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},i);let c;const u=J({},l,e);if(e.abortController&&(u.abortController=e.abortController),u.abortController&&u.abortController.canceled)return void r(new we({options:u,status:"canceled",message:"canceled"}));function p(e){let t,r;for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];return ve[e]&&(t=ve[e](...n)),u[e]&&(r=u[e](...n)),"boolean"!=typeof t&&(t=!0),"boolean"!=typeof r&&(r=!0),(!u.abortController||!u.abortController.canceled||"beforeCreate"!==e&&"beforeOpen"!==e&&"beforeSend"!==e)&&(t&&r)}if(c=p("beforeCreate",u),!1===c)return void r(new we({options:u,status:"canceled",message:"canceled"}));u.type&&(u.method=u.type);let d=u.url.indexOf("?")>=0?"&":"?";const h=u.method.toUpperCase();if(("GET"===h||"HEAD"===h||"OPTIONS"===h||"DELETE"===h)&&u.data){let e;e="string"==typeof u.data?u.data.indexOf("?")>=0?u.data.split("?")[1]:u.data:X(u.data),e.length&&(u.url+=d+e,"?"===d&&(d="&"))}if("json"===u.dataType&&u.url.indexOf("callback=")>=0){const e=`f7jsonp_${Date.now()+(be+=1)}`;let a;const o=u.url.split("callback=");let i=`${o[0]}callback=${e}`;if(o[1].indexOf("&")>=0){const e=o[1].split("&").filter((e=>e.indexOf("=")>0)).join("&");e.length>0&&(i+=`&${e}`)}let l=s.createElement("script");return l.type="text/javascript",l.onerror=function(){clearTimeout(a),p("error",null,"scripterror","scripterror"),r(new we({options:u,status:"scripterror",message:"scripterror"})),p("complete",null,"scripterror")},l.src=i,n[e]=function(r){clearTimeout(a),p("success",r),l.parentNode.removeChild(l),l=null,delete n[e],t(new ye({options:u,data:r}))},s.querySelector("head").appendChild(l),void(u.timeout>0&&(a=setTimeout((()=>{l.parentNode.removeChild(l),l=null,p("error",null,"timeout","timeout"),r(new we({options:u,status:"timeout",message:"timeout"}))}),u.timeout)))}"GET"!==h&&"HEAD"!==h&&"OPTIONS"!==h&&"DELETE"!==h||!1===u.cache&&(u.url+=`${d}_nocache${Date.now()}`);const f=new XMLHttpRequest;if(u.abortController){let e=!1;u.abortController.onAbort=()=>{e||(e=!0,f.abort(),r(new we({options:u,xhr:f,status:"canceled",message:"canceled"})))}}if(f.requestUrl=u.url,f.requestParameters=u,c=p("beforeOpen",f,u),!1===c)return void r(new we({options:u,xhr:f,status:"canceled",message:"canceled"}));f.open(h,u.url,u.async,u.user,u.password);let m=null;if(("POST"===h||"PUT"===h||"PATCH"===h)&&u.data)if(u.processData){if([ArrayBuffer,Blob,Document,FormData].indexOf(u.data.constructor)>=0)m=u.data;else{const e=`---------------------------${Date.now().toString(16)}`;"multipart/form-data"===u.contentType?f.setRequestHeader("Content-Type",`multipart/form-data; boundary=${e}`):f.setRequestHeader("Content-Type",u.contentType),m="";let t=X(u.data);if("multipart/form-data"===u.contentType){t=t.split("&");const r=[];for(let e=0;e<t.length;e+=1)r.push(`Content-Disposition: form-data; name="${t[e].split("=")[0]}"\r\n\r\n${t[e].split("=")[1]}\r\n`);m=`--${e}\r\n${r.join(`--${e}\r\n`)}--${e}--\r\n`}else m="application/json"===u.contentType?JSON.stringify(u.data):t}}else m=u.data,f.setRequestHeader("Content-Type",u.contentType);"json"!==u.dataType||u.headers&&u.headers.Accept||f.setRequestHeader("Accept","application/json"),u.headers&&Object.keys(u.headers).forEach((e=>{void 0!==u.headers[e]&&f.setRequestHeader(e,u.headers[e])})),void 0===u.crossDomain&&(u.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(u.url)&&RegExp.$2!==n.location.host),u.crossDomain||f.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.xhrFields&&J(f,u.xhrFields),f.onload=function(){if(f.status>=200&&f.status<300||0===f.status){let e;if("json"===u.dataType){let a;try{e=JSON.parse(f.responseText)}catch(e){a=!0}a?(p("error",f,"parseerror","parseerror"),r(new we({options:u,xhr:f,status:"parseerror",message:"parseerror"}))):(p("success",e,f.status,f),t(new ye({options:u,data:e,status:f.status,xhr:f})))}else e="text"===f.responseType||""===f.responseType?f.responseText:f.response,p("success",e,f.status,f),t(new ye({options:u,data:e,status:f.status,xhr:f}))}else p("error",f,f.status,f.statusText),r(new we({options:u,xhr:f,status:f.status,message:f.statusText}));u.statusCode&&(ve.statusCode&&ve.statusCode[f.status]&&ve.statusCode[f.status](f),u.statusCode[f.status]&&u.statusCode[f.status](f)),p("complete",f,f.status)},f.onerror=function(){p("error",f,f.status,f.status),r(new we({options:u,xhr:f,status:f.status,message:f.statusText})),p("complete",f,"error")},u.timeout>0&&(f.timeout=u.timeout,f.ontimeout=()=>{p("error",f,"timeout","timeout"),r(new we({options:u,xhr:f,status:"timeout",message:"timeout"})),p("complete",f,"timeout")}),c=p("beforeSend",f,u),!1!==c?f.send(m):r(new we({options:u,xhr:f,status:"canceled",message:"canceled"}))}));function ke(e){let[t,r,a,n,o]=[];for(var s=arguments.length,i=new Array(s>1?s-1:0),l=1;l<s;l++)i[l-1]=arguments[l];"function"==typeof i[1]?[t,a,n,o]=i:[t,r,a,n,o]=i,[a,n].forEach((e=>{"string"==typeof e&&(o=e,e===a?a=void 0:n=void 0)})),o=o||("json"===e||"postJSON"===e?"json":void 0);const c={url:t,method:"post"===e||"postJSON"===e?"POST":"GET",data:r,success:a,error:n,dataType:o};return"postJSON"===e&&J(c,{contentType:"application/json",processData:!1,crossDomain:!0,data:"string"==typeof r?r:JSON.stringify(r)}),Ce(c)}Object.assign(Ce,{get:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ke("get",...t)},post:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ke("post",...t)},json:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ke("json",...t)},getJSON:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ke("json",...t)},postJSON:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ke("postJSON",...t)}}),Ce.abortController=()=>{const e={canceled:!1,onAbort:null,abort(){e.canceled=!0,e.onAbort&&e.onAbort()}};return e},Ce.setup=function(e){e.type&&!e.method&&J(e,{method:e.type}),J(ve,e)};var Ee={name:"request",proto:{request:Ce},static:{request:Ce}};var $e={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, .menu-item, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,mdTouchRipple:!0,iosTouchRipple:!1,auroraTouchRipple:!1,touchRippleElements:".ripple, .link, .item-link, .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, .menu-item-content, .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 e=se();J(this,{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:function(){const e=this,t=ie(),r=se(),n=o(),s=a(),i=e.params.touch,l=i[`${e.theme}TouchRipple`];let c,u,p,d,h,f,m,g,v,b,y,w,C;function k(e){const t=N(e),r=t.parents(i.activeStateElements);if(t.closest(".no-active-state").length)return null;let a;if(t.is(i.activeStateElements)&&(a=t),r.length>0&&(a=a?a.add(r):r),a&&a.length>1){const e=[];let t;for(let r=0;r<a.length;r+=1)t||(e.push(a[r]),(a.eq(r).hasClass("prevent-active-state-propagation")||a.eq(r).hasClass("no-active-state-propagation"))&&(t=!0));a=N(e)}return a||t}function E(e){return e.parents(".page-content").length>0}function $(){g&&g.addClass("active-state")}function x(){g&&(g.removeClass("active-state"),g=null)}function P(t,r,a){t&&(b=e.touchRipple.create(e,t,r,a))}function O(){b&&(b.remove(),b=void 0,y=void 0)}function R(e){if(y=function(e){const t=i.touchRippleElements,r=N(e);if(r.is(t))return!r.hasClass("no-ripple")&&r;if(r.parents(t).length>0){const e=r.parents(t).eq(0);return!e.hasClass("no-ripple")&&e}return!1}(e),!y||0===y.length)return void(y=void 0);E(y)?(clearTimeout(w),w=setTimeout((()=>{O(),P(y,c,u)}),80)):(O(),P(y,c,u))}function T(){clearTimeout(w),O()}function S(){b||!y||d?O():(clearTimeout(w),P(y,c,u),setTimeout(O,0))}function A(){N(".active-state").removeClass("active-state"),l&&S()}t.ios&&t.webView&&n.addEventListener("touchstart",(()=>{}));let L=!1,M=null;const B=".dialog-button, .actions-button";let H=!1,_=null;function D(t,r){e.emit({events:t,data:[r]