diff --git a/build/css/metro-all.css b/build/css/metro-all.css index 22929799f..f2f05f1e7 100644 --- a/build/css/metro-all.css +++ b/build/css/metro-all.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:50 + * Built at 21/06/2020 20:32:20 * Licensed under MIT */ *, diff --git a/build/css/metro-animations.css b/build/css/metro-animations.css index 1ba435ddd..f58bf7d9d 100644 --- a/build/css/metro-animations.css +++ b/build/css/metro-animations.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ .ani-spin, diff --git a/build/css/metro-colors.css b/build/css/metro-colors.css index 2a48f8253..b3919608d 100644 --- a/build/css/metro-colors.css +++ b/build/css/metro-colors.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ .bg-transparent { diff --git a/build/css/metro-common.css b/build/css/metro-common.css index d2ab908e3..466c0ef1f 100644 --- a/build/css/metro-common.css +++ b/build/css/metro-common.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ .button.primary, diff --git a/build/css/metro-components.css b/build/css/metro-components.css index 065ac9b51..1d2fe9d30 100644 --- a/build/css/metro-components.css +++ b/build/css/metro-components.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ .accordion { diff --git a/build/css/metro-icons.css b/build/css/metro-icons.css index c161f3641..7d68c3b89 100644 --- a/build/css/metro-icons.css +++ b/build/css/metro-icons.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ @font-face { diff --git a/build/css/metro-reset.css b/build/css/metro-reset.css index b4aec1e61..7de2387f5 100644 --- a/build/css/metro-reset.css +++ b/build/css/metro-reset.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ *, diff --git a/build/css/metro.css b/build/css/metro.css index a03117bf2..eea84cc53 100644 --- a/build/css/metro.css +++ b/build/css/metro.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ *, diff --git a/build/css/schemes/darcula.css b/build/css/schemes/darcula.css index 930ff9312..76628cdca 100644 --- a/build/css/schemes/darcula.css +++ b/build/css/schemes/darcula.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ .bg-scheme { diff --git a/build/css/schemes/red-alert.css b/build/css/schemes/red-alert.css index 2b3b92f95..fb9790725 100644 --- a/build/css/schemes/red-alert.css +++ b/build/css/schemes/red-alert.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ .bg-scheme { diff --git a/build/css/schemes/red-dark.css b/build/css/schemes/red-dark.css index 8b843ce18..33498f3df 100644 --- a/build/css/schemes/red-dark.css +++ b/build/css/schemes/red-dark.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ .bg-scheme { diff --git a/build/css/schemes/red-mirohost.css b/build/css/schemes/red-mirohost.css index c9fa35ecc..65ffe60b9 100644 --- a/build/css/schemes/red-mirohost.css +++ b/build/css/schemes/red-mirohost.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ .bg-scheme { diff --git a/build/css/schemes/sky-net.css b/build/css/schemes/sky-net.css index ea882215b..c16533da3 100644 --- a/build/css/schemes/sky-net.css +++ b/build/css/schemes/sky-net.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:40 + * Built at 21/06/2020 20:32:07 * Licensed under MIT */ .bg-scheme { diff --git a/build/js/metro.js b/build/js/metro.js index 9323580c6..d06f2436c 100644 --- a/build/js/metro.js +++ b/build/js/metro.js @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:50 + * Built at 21/06/2020 20:32:20 * Licensed under MIT */ (function (global, undefined) { @@ -4493,7 +4493,7 @@ $.noConflict = function() { var Metro = { version: "4.3.8", - compileTime: "21/06/2020 20:07:59", + compileTime: "21/06/2020 20:32:30", buildNumber: "746", isTouchable: isTouch, fullScreenEnabled: document.fullscreenEnabled, diff --git a/build/js/metro.min.js b/build/js/metro.min.js index 6e4d843a8..2b7144e89 100644 --- a/build/js/metro.min.js +++ b/build/js/metro.min.js @@ -1,9 +1,9 @@ /* * Metro 4 Components Library v4.3.8 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov - * Built at 21/06/2020 20:07:53 + * Built at 21/06/2020 20:32:24 * Licensed under MIT */ -!function(e,y){"use strict";var i=["opacity","zIndex"];function o(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function I(e){return e===y||null===e}function g(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}function w(e){var t;return!(!e||"[object Object]"!==Object.prototype.toString.call(e))&&(!(t=e.prototype!==y)||t.constructor&&"function"==typeof t.constructor)}function C(e){for(var t in e)if(c(e,t))return!1;return!0}function a(e){return e instanceof Object&&"length"in e}function s(e,t){return t=t||" ",e.split(t).map(function(e){return(""+e).trim()}).filter(function(e){return""!==e})}function m(e,t){return t||(t=[0,""]),e=String(e),t[0]=parseFloat(e),t[1]=e.match(/[\d.\-+]*\s*(.*)/)[1]||"",t}function v(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);return void 0!==n[1]?n[1]:t}function r(e,t,n){t=g(t),-1<["scrollLeft","scrollTop"].indexOf(t)?e[t]=parseInt(n):e.style[t]=isNaN(n)||-1=e.interval)&&(e.fn(),e.lastTime=d())})};this.intervalTicking=!0,i()}return this.intervalId},clearInterval:function(e){for(var t=0;t:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i.exec(e))o.push(document.createElement(i[1]));else{a.innerHTML=e;for(var r=0;rE.animation.elements[x].loop?setTimeout(function(){S()},p):T()):"alternate"!==f||y?T():(b="normal"===b?"reverse":"normal",y=!0,S()))};0
M4Q - "+m4q.version+"
";d.infobox.create(e)},info:function(){console.info("Metro 4 - v"+d.version+". "+d.showCompileTime()),console.info("m4q - "+m4q.version)},showCompileTime:function(){return"Built at: "+d.compileTime},aboutDlg:function(){alert("Metro 4 - v"+d.version+". "+d.showCompileTime())},ver:function(){return d.version},build:function(){return d.build},compile:function(){return d.compileTime},observe:function(){new MutationObserver(function(e){e.map(function(t){if("attributes"===t.type&&"data-role"!==t.attributeName)if("data-hotkey"===t.attributeName)d.initHotkeys([t.target],!0);else{var n,i=c(t.target),e=i.data("metroComponent");void 0!==e&&c.each(e,function(){var e=d.getPlugin(i,this);e&&"function"==typeof e.changeAttribute&&(n=i.attr(t.attributeName),e.changeAttribute(t.attributeName,n,t.oldValue))})}else if("childList"===t.type&&0/gi.test(e)},isColor:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isEmbedObject:function(e){var t=!1;return o.each(["iframe","object","embed","video"],function(){"string"==typeof e&&e.toLowerCase()===this?t=!0:void 0!==e.nodeType&&e.tagName.toLowerCase()===this&&(t=!0)}),t},isVideoUrl:function(e){return/youtu\.be|youtube|vimeo/gi.test(e)},isDate:function(e,t){return!!this.isDateObject(e)||"Invalid Date"!==(this.isValue(t)?String(e).toDate(t):String(new Date(e)))},isDateObject:function(e){return"object"==typeof e&&void 0!==e.getMonth},isInt:function(e){return!isNaN(e)&&+e%1==0},isFloat:function(e){return!isNaN(e)&&+e%1!=0||/^\d*\.\d+$/.test(e)},isTouchDevice:function(){return"ontouchstart"in window||0"+o(e)[0].outerHTML+""},embedUrl:function(e){return-1!==e.indexOf("youtu.be")&&(e="https://www.youtube.com/embed/"+e.split("/").pop()),"
"},secondsToTime:function(e){var t=e%3600,n=t%60;return{h:Math.floor(e/3600),m:Math.floor(t/60),s:Math.ceil(n)}},hex2rgba:function(e,t){var n;if(t=isNaN(t)?1:t,/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n].join(",")+","+t+")";throw new Error("Hex2rgba error. Bad Hex value")},elementId:function(e){return e+"-"+(new Date).getTime()+o.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),i=Math.floor((t-3600*n)/60),s=t-3600*n-60*i;return n<10&&(n="0"+n),i<10&&(i="0"+i),s<10&&(s="0"+s),[n,i,s].join(":")},func:function(e){return new Function("a",e)},exec:function(e,t,n){var i;if(null==e)return!1;var s=this.isFunc(e);!1===s&&(s=this.func(e));try{i=s.apply(n,t)}catch(e){if(!(i=null)===METRO_THROWS)throw e}return i},isOutsider:function(e){var t,n=o(e),i=n.clone();return i.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),n.parent().append(i),t=i[0].getBoundingClientRect(),i.remove(),0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},inViewport:function(e){var t=this.rect(e);return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},rect:function(e){return e.getBoundingClientRect()},getCursorPosition:function(e,t){var n=this.rect(e);return{x:this.pageXY(t).x-n.left-window.pageXOffset,y:this.pageXY(t).y-n.top-window.pageYOffset}},getCursorPositionX:function(e,t){return this.getCursorPosition(e,t).x},getCursorPositionY:function(e,t){return this.getCursorPosition(e,t).y},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var i=100*t/e;return!0===n?Math.round(i):Math.round(100*i)/100},objectShift:function(e){var t=0;return o.each(e,function(e){0===t?t=e:e>16&255,t>>8&255,255&t]):[0,0,0]},hexColorToRgbA:function(e,t){var n;return/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)?(3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n,t||1].join(",")+")"):"rgba(0,0,0,1)"},getInlineStyles:function(e){var t,n,i={},s=o(e)[0];for(t=0,n=s.style.length;t>16)+r)?l=255:l<0&&(l=0),255<(d=(h>>8&255)+r)?d=255:d<0&&(d=0),255<(c=(255&h)+r)?c=255:c<0&&(c=0),a?t--:t++,(i="#"+(c|d<<8|l<<16).toString(16)).length<7;);return this.toColor(i,n,s)},hueShift:function(e,t){var n,i=this.toHSV(e),s=this.colorType(e).toLowerCase(),a=i.h;for(a+=t;360<=a;)a-=360;for(;a<0;)a+=360;return i.h=a,s!==p&&s!==f||(n=e.a),this.toColor(i,s,n)},createScheme:function(e,t,n,i){var s,a,o,r,l,c,d=v.extend({},g,i),u=[],h=this;if(r=(a=this.toHSV(e)).h,l=a.s,c=a.v,!1===this.isHSV(a))return console.warn("The value is a not supported color format!"),!1;function p(e,t,n){return Math.max(t,Math.min(e,n))}function f(e,t,n){return e>>32-t}function l(e,t){var n,i,s,a,o;return s=2147483648&e,a=2147483648&t,o=(1073741823&e)+(1073741823&t),(n=1073741824&e)&(i=1073741824&t)?2147483648^o^s^a:n|i?1073741824&o?3221225472^o^s^a:1073741824^o^s^a:o^s^a}function t(e,t,n,i,s,a,o){return l(r(e=l(e,l(l(function(e,t,n){return e&t|~e&n}(t,n,i),s),o)),a),t)}function n(e,t,n,i,s,a,o){return l(r(e=l(e,l(l(function(e,t,n){return e&n|t&~n}(t,n,i),s),o)),a),t)}function i(e,t,n,i,s,a,o){return l(r(e=l(e,l(l(function(e,t,n){return e^t^n}(t,n,i),s),o)),a),t)}function s(e,t,n,i,s,a,o){return l(r(e=l(e,l(l(function(e,t,n){return t^(e|~n)}(t,n,i),s),o)),a),t)}function a(e){var t,n="",i="";for(t=0;t<=3;t++)n+=(i="0"+(e>>>8*t&255).toString(16)).substr(i.length-2,2);return n}var o,c,d,u,h,p,f,m,v,g;for(o=function(e){for(var t,n=e.length,i=n+8,s=16*(1+(i-i%64)/64),a=Array(s-1),o=0,r=0;r>>29,a}(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n>6|192):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128)),t+=String.fromCharCode(63&i|128))}return t}(e)),f=1732584193,m=4023233417,v=2562383102,g=271733878,c=0;c").addClass("circle").appendTo(n)}();break;case"square":!function(){for(e=0;e<4;e++)a("
").addClass("square").appendTo(n)}();break;case"cycle":a("
").addClass("cycle").appendTo(n);break;case"simple":a('').appendTo(n);break;default:!function(){for(e=0;e<5;e++)t=a("
").addClass("wrap").appendTo(n),a("
").addClass("circle").appendTo(t)}()}this._fireEvent("activity-create",{element:n})},changeAttribute:function(e){},destroy:function(){return this.element}}),s.activity={open:function(e){var t=e||{},n='
',i=t.text?'
'+t.text+"
":"";return s.dialog.create({content:n+i,defaultAction:!1,clsContent:"d-flex flex-column flex-justify-center flex-align-center bg-transparent no-shadow w-auto",clsDialog:"no-border no-shadow bg-transparent global-dialog",autoHide:t.autoHide?t.autoHide:0,overlayClickClose:!0===t.overlayClickClose,overlayColor:t.overlayColor?t.overlayColor:"#000000",overlayAlpha:t.overlayAlpha?t.overlayAlpha:.5,clsOverlay:"global-overlay"})},close:function(e){s.dialog.close(e)}}}(Metro,m4q),function(e,r){"use strict";var l=e.utils,t={adblockDeferred:0,checkInterval:1e3,fireOnce:!0,checkStop:10,onAlert:e.noop,onFishingStart:e.noop,onFishingDone:e.noop};e.adblockSetup=function(e){t=r.extend({},t,e)},window.metroAdblockSetup,e.adblockSetup(window.metroAdblockSetup);var c={bite:function(){r("
").addClass("adblock-bite adsense google-adsense dblclick advert topad top_ads topAds textads sponsoredtextlink_container show_ads right-banner rekl mpu module-ad mid_ad mediaget horizontal_ad headerAd contentAd brand-link bottombanner bottom_ad_block block_ad bannertop banner-right banner-body b-banner b-article-aside__banner b-advert adwrapper adverts advertisment advertisement:not(body) advertise advert_list adtable adsense adpic adlist adleft adinfo adi adholder adframe addiv ad_text ad_space ad_right ad_links ad_body ad_block ad_Right adTitle adText".split(" ").shuffle().join(" ")).css({position:"fixed",height:1,width:1,overflow:"hidden",visibility:"visible",top:0,left:0}).append(r("").html("dblclick.net")).appendTo("body"),c.options.adblockDeferred?setTimeout(function(){c.fishing()},c.options.adblockDeferred):this.fishing()},fishing:function(){function e(){function e(){clearInterval(o),l.exec(i.onFishingDone),r(window).fire("fishing-done"),t.remove()}var t=r(".adsense.google-adsense.dblclick.advert.adblock-bite"),n=t.find("a");!t.length||!n.length||-1").attr("type","button").addClass("hamburger menu-down");for(var s=0;s<3;s++)o("").addClass("line").appendTo(e);!0===r.isLight(l.computedRgbToHex(l.getStyleOne(n,"background-color")))&&e.addClass("dark")}n.prepend(e),0===(t=n.find(".app-bar-menu")).length?e.css("display","none"):l.addCssRule(a.sheet,".app-bar-menu li","list-style: none!important;"),"block"===e.css("display")?(t.hide().addClass("collapsed"),e.removeClass("hidden")):e.addClass("hidden"),!0===i.expand?(n.addClass("app-bar-expand"),e.addClass("hidden")):l.isValue(i.expandPoint)&&l.mediaExist(i.expandPoint)&&(n.addClass("app-bar-expand"),e.addClass("hidden"))},_createEvents:function(){var e=this,t=this.element,n=this.options,i=t.find(".app-bar-menu"),s=t.find(".hamburger");t.on(a.events.click,".hamburger",function(){0!==i.length&&(i.hasClass("collapsed")?e.open():e.close())}),o(window).on(a.events.resize,function(){!0!==n.expand&&(l.isValue(n.expandPoint)&&l.mediaExist(n.expandPoint)?(t.addClass("app-bar-expand"),l.exec(n.onMenuExpand,null,t[0]),t.fire("menuexpand")):(t.removeClass("app-bar-expand"),l.exec(n.onMenuCollapse,null,t[0]),t.fire("menucollapse"))),0!==i.length&&("block"!==s.css("display")?(i.show(function(){o(this).removeStyleProperty("display")}),s.addClass("hidden")):(s.removeClass("hidden"),s.hasClass("active")?i.show().removeClass("collapsed"):i.hide().addClass("collapsed")))},{ns:this.id})},close:function(){var e=this.element,t=this.options,n=e.find(".app-bar-menu"),i=e.find(".hamburger");n.slideUp(t.duration,function(){n.addClass("collapsed").removeClass("opened"),i.removeClass("active")}),l.exec(t.onMenuClose,[n[0]],e[0]),e.fire("menuclose",{menu:n[0]})},open:function(){var e=this.element,t=this.options,n=e.find(".app-bar-menu"),i=e.find(".hamburger");n.slideDown(t.duration,function(){n.removeClass("collapsed").addClass("opened"),i.addClass("active")}),l.exec(t.onMenuOpen,[n[0]],e[0]),e.fire("menuopen",{menu:n[0]})},changeAttribute:function(e){},destroy:function(){var e=this.element;return e.off(a.events.click,".hamburger"),o(window).off(a.events.resize,{ns:this.id}),e}})}(Metro,m4q),function(s,t){"use strict";var a=s.utils,n={audioVolume:.5,audioSrc:"",onAudioStart:s.noop,onAudioEnd:s.noop,onAudioButtonCreate:s.noop};s.audioButtonSetup=function(e){n=t.extend({},n,e)},window.metroAudioButtonSetup,s.audioButtonSetup(window.metroAudioButtonSetup),s.Component("audio-button",{init:function(e,t){return this._super(t,e,n,{audio:null,canPlay:null,id:a.elementId("audioButton")}),this},_create:function(){var e=this.element;this._createStructure(),this._createEvents(),this._fireEvent("audioButtonCreate",{element:e})},_createStructure:function(){var e=this.options;this.audio=new Audio(e.audioSrc),this.audio.volume=e.audioVolume},_createEvents:function(){var e=this,t=this.element,n=this.options,i=this.audio;i.addEventListener("loadeddata",function(){e.canPlay=!0}),i.addEventListener("ended",function(){e._fireEvent("audioEnd",{src:n.audioSrc,audio:i})}),t.on(s.events.click,function(){e.play()},{ns:this.id})},play:function(e){var t=this.element,n=this.options,i=this.audio;""!==n.audioSrc&&this.audio.duration&&this.canPlay&&(this._fireEvent("audioStart",{src:n.audioSrc,audio:i}),i.pause(),i.currentTime=0,i.play(),a.exec(e,[i],t[0]))},stop:function(e){var t=this.element,n=this.options,i=this.audio;i.pause(),i.currentTime=0,this._fireEvent("audioEnd",{src:n.audioSrc,audio:i}),a.exec(e,[i],t[0])},changeAttribute:function(e){var t,n,i=this.element,s=this.options,a=this.audio;"data-audio-src"===e&&(t=i.attr("data-audio-src"))&&""!==t.trim()&&(s.audioSrc=t,a.src=t),"data-audio-volume"===e&&(n=parseFloat(i.attr("data-audio-volume")),isNaN(n)||(s.audioVolume=n,a.volume=n))},destroy:function(){this.element.off(s.events.click,{ns:this.id})}}),s.playSound=function(e){var t,n="string"==typeof e?e:e.audioSrc,i=e&&e.audioVolume?e.audioVolume:.5;n&&((t=new Audio(n)).volume=parseFloat(i),t.addEventListener("loadeddata",function(){e&&e.onAudioStart&&a.exec(e.onAudioStart,[n],this),this.play()}),t.addEventListener("ended",function(){e&&e.onAudioEnd&&a.exec(e.onAudioEnd,[null],this)}))}}(Metro,m4q),function(h,p){"use strict";var o=h.utils,n={audioDeferred:0,playlist:null,src:null,volume:.5,loop:!1,autoplay:!1,showLoop:!0,showPlay:!0,showStop:!0,showMute:!0,showFull:!0,showStream:!0,showVolume:!0,showInfo:!0,showPlaylist:!0,showNext:!0,showPrev:!0,showFirst:!0,showLast:!0,showForward:!0,showBackward:!0,showShuffle:!0,showRandom:!0,loopIcon:"",stopIcon:"",playIcon:"",pauseIcon:"",muteIcon:"",volumeLowIcon:"",volumeMediumIcon:"",volumeHighIcon:"",playlistIcon:"",nextIcon:"",prevIcon:"",firstIcon:"",lastIcon:"",forwardIcon:"",backwardIcon:"",shuffleIcon:"",randomIcon:"",onPlay:h.noop,onPause:h.noop,onStop:h.noop,onEnd:h.noop,onMetadata:h.noop,onTime:h.noop,onAudioPlayerCreate:h.noop};h.audioPlayerSetup=function(e){n=p.extend({},n,e)},window.metroAudioPlayerSetup,h.audioPlayerSetup(window.metroAudioPlayerSetup),h.Component("audio-player",{init:function(e,t){return this._super(t,e,n,{preloader:null,player:null,audio:t,stream:null,volume:null,volumeBackup:0,muted:!1}),this},_create:function(){var e=this.element,t=this.options;this._createPlayer(),this._createControls(),this._createEvents(),!0===t.autoplay&&this.play(),this._fireEvent("audio-player-create",{element:e,player:this.player})},_createPlayer:function(){var e=this.element,t=this.options,n=this.audio,i=e.prev(),s=e.parent(),a=p("
").addClass("media-player audio-player "+e[0].className);0===i.length?s.prepend(a):a.insertAfter(i),e.appendTo(a),p.each(["muted","autoplay","controls","height","width","loop","poster","preload"],function(){e.removeAttr(this)}),e.attr("preload","auto"),n.volume=t.volume,null!==t.src&&this._setSource(t.src),e[0].className="",this.player=a},_setSource:function(e){var t=this.element;t.find("source").remove(),t.removeAttr("src"),Array.isArray(e)?p.each(e,function(){void 0!==this.src&&p("").attr("src",this.src).attr("type",void 0!==this.type?this.type:"").appendTo(t)}):t.attr("src",e)},_createControls:function(){var e,t=this,n=this.element,i=this.options,s=this.elem,a=p("
").addClass("controls").addClass(i.clsControls).insertAfter(n),o=p("
").addClass("stream").appendTo(a),r=p("").addClass("stream-slider ultra-thin cycle-marker").appendTo(o),l=p("
").addClass("load-audio").appendTo(o),c=p("
").addClass("volume").appendTo(a),d=p("").addClass("volume-slider ultra-thin cycle-marker").appendTo(c),u=p("
").addClass("info-box").appendTo(a);!0!==i.showInfo&&u.hide(),l.activity({type:"metro",style:"color"}),l.hide(0),this.preloader=l,h.makePlugin(r,"slider",{clsMarker:"bg-red",clsHint:"bg-cyan fg-white",clsComplete:"bg-cyan",hint:!0,onStart:function(){s.paused||s.pause()},onStop:function(e){0").attr("type","button").addClass("button square loop").html(i.loopIcon).appendTo(a)),!0===i.showPlay&&p("").appendTo(n),a[i.view[e]["index-view"]]=n}),t=0;t").addClass("table-inspector")).attr("for",this.element.attr("id")),C("
"+a.inspectorTitle+"
").appendTo(e),t=C("
").addClass("table-wrap").appendTo(e),n=C("").addClass("table subcompact"),i=C("").appendTo(n),n.appendTo(t),this._createInspectorItems(i),s=C("
").appendTo(e),C("
").addClass(a.clsHeadRow).appendTo(o),C.each(this.service,function(){var e=[];i=C("").addClass(i.clsFooter);n.find("tfoot").remove(),0!==this.foots.length&&(e=C("").addClass(i.clsHeadRow).appendTo(s),C.each(this.foots,function(){t=C("").addClass(h.clsBodyRow)).data("original",o),l=t%2==0,s=C("").appendTo(f),g=[];if("function"==typeof y.tableToCSV){for(t=b.isValue(t)?t.toLowerCase():"all-filtered",n=b.isValue(n)?n:b.elementId("table")+"-export.csv",l=C(""),o=this.heads,a=0;a"),b.isValue(this.title)&&c.html(this.title),g[h.view[e]["index-view"]]=c)}),a=0;a"),o=r[s],a=0;a").html(this),g[h.view[e]["index-view"]]=c)}),a=0;a").addClass("tabs-material-wrapper").addClass(t.clsComponent).insertBefore(e);!0===t.appBar&&s.addClass("app-bar-present"),"more"===t.appBar&&s.addClass("app-bar-present-more"),e.appendTo(s),e.addClass("tabs-material").addClass(t.clsTabs),n.addClass(t.clsTab),!0===t.deep&&e.addClass("deep"),!0===t.fixedTabs&&e.addClass("fixed-tabs"),this.marker=e.find(".tab-marker"),0===this.marker.length&&(this.marker=h("").addClass("tab-marker").addClass(t.clsMarker).appendTo(e)),this.openTab(0===i.length?n[0]:i[0])},_createEvents:function(){var a=this,o=this.element,r=this.options;o.on(t.events.click,"li",function(e){var t=h(this),n=o.find("li.active"),i=t.index()>n.index(),s=t.children("a").attr("href");if(p.isValue(s)&&"#"===s[0]){if(t.hasClass("active"))return;if(t.hasClass("disabled"))return;if(!1===p.exec(r.onBeforeTabOpen,[t,s,i],this))return;a.openTab(t,i),e.preventDefault()}}),o.on(t.events.scroll,function(){var e=this.scroll;this.scrollDir=this.scrolln.index(i);this.openTab(s,a)},changeAttribute:function(){},destroy:function(){var e=this.element;return e.off(t.events.click,"li"),e.off(t.events.scroll),e}})}(Metro,m4q),function(n,l){"use strict";var c=n.utils,d=n.colors,i={tabsDeferred:0,expand:!1,expandPoint:null,tabsPosition:"top",tabsType:"default",clsTabs:"",clsTabsList:"",clsTabsListItem:"",clsTabsListItemActive:"",onTab:n.noop,onBeforeTab:n.noop_true,onTabsCreate:n.noop};n.tabsSetup=function(e){i=l.extend({},i,e)},window.metroTabsSetup,n.tabsSetup(window.metroTabsSetup),n.Component("tabs",{init:function(e,t){return this._super(t,e,i,{_targets:[],id:c.elementId("tabs")}),this},_create:function(){var e=this.element,t=0").addClass("tabs tabs-wrapper");if(o.addClass(i.tabsPosition.replace(["-","_","+"]," ")),n.addClass("tabs-list"),"default"!==i.tabsType&&n.addClass("tabs-"+i.tabsType),a||(o.insertBefore(n),n.appendTo(o)),n.data("expanded",!1),e=l("
").addClass("expand-title"),o.prepend(e),0===(t=o.find(".hamburger")).length){t=l("
").appendTo(t),b.isValue(this.title)&&i.html(this.title),b.isValue(this.size)&&i.css({width:this.size}),b.isValue(this.cls)&&e.push(this.cls),e.push(a.clsHeadCell),i.addClass(e.join(" "))}),n=this.heads,e=0;e")).data("index",e),b.isValue(t.title)&&i.html(t.title),b.isValue(t.format)&&i.attr("data-format",t.format),b.isValue(t.name)&&i.attr("data-name",t.name),b.isValue(t.colspan)&&i.attr("colspan",t.colspan),b.isValue(l[e].size)&&i.css({width:l[e].size}),!0===t.sortable&&(n.push("sortable-column"),b.isValue(t.sortDir)&&n.push("sort-"+t.sortDir)),b.isValue(t.cls)&&C.each(t.cls.toArray(),function(){n.push(this)}),!1===b.bool(l[e].show)&&-1===n.indexOf("hidden")&&n.push("hidden"),n.push(a.clsHeadCell),b.bool(l[e].show)&&b.arrayDelete(n,"hidden"),i.addClass(n.join(" ")),r[l[e]["index-view"]]=i}),e=0;e").addClass(this.options.clsBody).insertAfter(e)},_createTableFooter:function(){var e,t,n=this.element,i=this.options,s=C("
").appendTo(e),void 0!==this.title&&t.html(this.title),void 0!==this.name&&t.addClass("foot-column-name-"+this.name),void 0!==this.cls&&t.addClass(this.cls),b.isValue(this.colspan)&&t.attr("colspan",this.colspan),t.appendTo(e)})),n.append(s)},_createTopBlock:function(){var e,t,n,i,s=this,a=this.element,o=this.options,r=C("
").addClass("table-top").addClass(o.clsTableTop).insertBefore(a.parent());return(e=b.isValue(this.wrapperSearch)?this.wrapperSearch:C("
").addClass("table-search-block").addClass(o.clsSearch).appendTo(r)).addClass(o.clsSearch),t=C("").attr("type","text").appendTo(e),w.makePlugin(t,"input",{prepend:o.tableSearchTitle}),!0!==o.showSearch&&e.hide(),(n=b.isValue(this.wrapperRows)?this.wrapperRows:C("
").addClass("table-rows-block").appendTo(r)).addClass(o.clsRowsCount),i=C("").addClass("input table-skip-input").addClass(s.clsTableSkipInput).appendTo(n),C("
").html(t+1),void 0!==d.service[0].clsColumn&&s.addClass(d.service[0].clsColumn),s.appendTo(i),s=C(""),a="checkbox"===h.checkType?C(""):C(""),b.isValue(v)&&Array.isArray(v)&&-1");b.isValue(d.heads[e].template)&&(t=d.heads[e].template.replace("%VAL%",t)),n.html(t),n.addClass(h.clsBodyCell),b.isValue(d.heads[e].clsColumn)&&n.addClass(d.heads[e].clsColumn),!1===b.bool(g[e].show)&&n.addClass("hidden"),b.bool(g[e].show)&&n.removeClass("hidden"),n.data("original",this),r[g[e]["index-view"]]=n,b.exec(h.onDrawCell,[n,t,e,d.heads[e],o],n[0]),u.fire("drawcell",{td:n,val:t,cellIndex:e,head:d.heads[e],items:o}),!0===h.cellWrapper&&(t=C("
").addClass("data-wrapper").addClass(h.clsCellWrapper).html(n.html()),n.html("").append(t))}),n=0;n").addClass(h.clsBodyRow).appendTo(p),(s=C("
").attr("colspan",n).addClass("text-center").html(C("").addClass(h.clsEmptyTableTitle).html(h.emptyTableTitle))).appendTo(i);this._info(1+f,1+m,c.length),this._paging(c.length),this.activity&&this.activity.hide(),b.exec(h.onDraw,[u],u[0]),u.fire("draw",u[0]),void 0!==e&&b.exec(e,[u],u[0])}else console.warn("Heads is not defined for table ID "+u.attr("id"))},_getItemContent:function(e){var t,n=this.options,i=e[this.sort.colIndex],s=this.heads[this.sort.colIndex].format,a=b.isNull(this.heads)||b.isNull(this.heads[this.sort.colIndex])||!b.isValue(this.heads[this.sort.colIndex].formatMask)?"%Y-%m-%d":this.heads[this.sort.colIndex].formatMask,o=this.heads&&this.heads[this.sort.colIndex]&&this.heads[this.sort.colIndex].thousandSeparator?this.heads[this.sort.colIndex].thousandSeparator:n.thousandSeparator,r=this.heads&&this.heads[this.sort.colIndex]&&this.heads[this.sort.colIndex].decimalSeparator?this.heads[this.sort.colIndex].decimalSeparator:n.decimalSeparator;if(t=(""+i).toLowerCase().replace(/[\n\r]+|[\s]{2,}/g," ").trim(),b.isValue(t)&&b.isValue(s))switch(-1!==["number","int","float","money"].indexOf(s)&&(t=b.parseNumber(t,o,r)),s){case"date":t=b.isValue(a)?t.toDate(a):new Date(t);break;case"number":t=Number(t);break;case"int":t=parseInt(t);break;case"float":t=parseFloat(t);break;case"money":t=b.parseMoney(t);break;case"card":t=b.parseCard(t);break;case"phone":t=b.parsePhone(t)}return t},addItem:function(e,t){if(!Array.isArray(e))return console.warn("Item is not an array and can't be added"),this;this.items.push(e),!1!==t&&this.draw()},addItems:function(e,t){if(!Array.isArray(e))return console.warn("Items is not an array and can't be added"),this;e.forEach(function(e){Array.isArray(e)&&this.items.push(e,!1)}),this.draw(),!1!==t&&this.draw()},updateItem:function(e,n,t){var i=this.items[this.index[e]],s=null;return b.isNull(i)?(console.warn("Item is undefined for update"),this):(isNaN(n)&&this.heads.forEach(function(e,t){e.name===n&&(s=t)}),b.isNull(s)?console.warn("Item is undefined for update. Field "+n+" not found in data structure"):(i[s]=t,this.items[this.index[e]]=i),this)},getItem:function(e){return this.items[this.index[e]]},deleteItem:function(e,t){var n,i=[],s=b.isFunc(t);for(n=0;nthis.pagesCount))return this._draw(),this;this.currentPage=this.pagesCount}},prev:function(){if(0!==this.items.length){if(this.currentPage--,0!==this.currentPage)return this._draw(),this;this.currentPage=1}},first:function(){if(0!==this.items.length)return this.currentPage=1,this._draw(),this},last:function(){if(0!==this.items.length)return this.currentPage=this.pagesCount,this._draw(),this},page:function(e){return e<=0&&(e=1),e>this.pagesCount&&(e=this.pagesCount),this.currentPage=e,this._draw(),this},addFilter:function(e,t){var n,i=null,s=b.isFunc(e);if(!1!==s){for(n=0;n").appendTo(f),v=C("