(function framework7ComponentLoader(r,s){void 0===s&&(s=!0);document,window;var l=r.$,e=(r.Template7,r.utils),n=(r.device,r.support,r.Class,r.Modal,r.ConstructorMethods,r.ModalMethods,{set:function(){for(var r,s=[],e=arguments.length;e--;)s[e]=arguments[e];var n=s[0],t=s[1],o=s[2];if("number"==typeof s[0]&&(t=(r=s)[0],o=r[1],n=this.root),null==t)return n;t||(t=0);var a=l(n||this.root);if(0===a.length)return n;var i,p=Math.min(Math.max(t,0),100);if(0===(i=a.hasClass("progressbar")?a.eq(0):a.children(".progressbar")).length||i.hasClass("progressbar-infinite"))return i;var g=i.children("span");return 0===g.length&&(g=l("<span></span>"),i.append(g)),g.transition(void 0!==o?o:"").transform("translate3d("+(-100+p)+"%,0,0)"),i[0]},show:function(){for(var r,s,e=[],n=arguments.length;n--;)e[n]=arguments[n];var t=this,o=e[0],a=e[1],i=e[2],p="determined";2===e.length?"string"!=typeof e[0]&&"object"!=typeof e[0]||"string"!=typeof e[1]?"number"==typeof e[0]&&"string"==typeof e[1]&&(a=(s=e)[0],i=s[1],o=t.root):(o=(r=e)[0],i=r[1],a=r[2],p="infinite"):1===e.length?"number"==typeof e[0]?(o=t.root,a=e[0]):"string"==typeof e[0]&&(p="infinite",o=t.root,i=e[0]):0===e.length&&(p="infinite",o=t.root);var g,h=l(o);if(0!==h.length)return h.hasClass("progressbar")||h.hasClass("progressbar-infinite")?g=h:0===(g=h.children(".progressbar:not(.progressbar-out), .progressbar-infinite:not(.progressbar-out)")).length&&(g=l('\n          <span class="progressbar'+("infinite"===p?"-infinite":"")+(i?" color-"+i:"")+' progressbar-in">\n            '+("infinite"===p?"":"<span></span>")+"\n          </span>"),h.append(g)),void 0!==a&&t.progressbar.set(g,a),g[0]},hide:function(r,s){void 0===s&&(s=!0);var e,n=l(r||this.root);if(0!==n.length)return 0===(e=n.hasClass("progressbar")||n.hasClass("progressbar-infinite")?n:n.children(".progressbar, .progressbar-infinite")).length||!e.hasClass("progressbar-in")||e.hasClass("progressbar-out")||e.removeClass("progressbar-in").addClass("progressbar-out").animationEnd(function(){s&&e.remove()}),e}}),t={name:"progressbar",create:function(){var r=this;e.extend(r,{progressbar:{set:n.set.bind(r),show:n.show.bind(r),hide:n.hide.bind(r)}})},on:{pageInit:function(r){var n=this;r.$el.find(".progressbar").each(function(r,s){var e=l(s);n.progressbar.set(e,e.attr("data-progress"))})}}};if(s){if(r.prototype.modules&&r.prototype.modules[t.name])return;r.use(t),r.instance&&(r.instance.useModuleParams(t,r.instance.params),r.instance.useModule(t))}return t}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))