/* * Metro 4 Components Library v4.4.3 (https://metroui.org.ua) * Copyright 2012-2020 Sergey Pimenov * Built at 27/12/2020 15:34:21 * Licensed under MIT */ !function(e,u){"use strict";var t,i,s,n,a,o,r,l,c,d,h,p,f,m,v,g=["opacity","zIndex"];function C(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function x(e){return e===u||null===e}function w(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}function b(e){return!(!e||"[object Object]"!==Object.prototype.toString.call(e))&&(!(e=e.prototype!==u)||e.constructor&&"function"==typeof e.constructor)}function y(e){for(var t in e)if(D(e,t))return!1;return!0}function _(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 T(e,t){return t=t||[0,""],e=String(e),t[0]=parseFloat(e),t[1]=e.match(/[\d.\-+]*\s*(.*)/)[1]||"",t}function k(e,t){e=/[+-]?\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!==e[1]?e[1]:t}function E(e,t,n){t=w(t),-1<["scrollLeft","scrollTop"].indexOf(t)?e[t]=parseInt(n):e.style[t]=isNaN(n)||-1=e.interval)&&(e.fn(),e.lastTime=X())})},this.intervalTicking=!0,n()),this.intervalId},clearInterval:function(e){for(var t=0;t:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i.exec(e))s.push(document.createElement(n[1]));else{i.innerHTML=e;for(var a=0;a$.animation.elements[y].loop?setTimeout(function(){_()},p):S()):"alternate"!==f||b?S():(w="normal"===w?"reverse":"normal",b=!0,_()))}};0
M4Q - "+m4q.version+"
";h.infobox.create(e)},info:function(){console.info("Metro 4 - v"+h.version+". "+h.showCompileTime()),console.info("m4q - "+m4q.version)},showCompileTime:function(){return"Built at: "+h.compileTime},aboutDlg:function(){alert("Metro 4 - v"+h.version+". "+h.showCompileTime())},ver:function(){return h.version},build:function(){return h.build},compile:function(){return h.compileTime},observe:function(){new MutationObserver(function(e){e.map(function(e){var t,n,i,s,a;if("attributes"===e.type&&"data-role"!==e.attributeName)"data-hotkey"===e.attributeName?h.initHotkeys([e.target],!0):(n=(t=u(e.target)).data("metroComponent"),i=e.attributeName,s=t.attr(i),a=e.oldValue,void 0!==n&&(t.fire("attr-change",{attr:i,newValue:s,oldValue:a,__this:t[0]}),u.each(n,function(){var e=h.getPlugin(t,this);e&&"function"==typeof e.changeAttribute&&e.changeAttribute(i,s,a)})));else if("childList"===e.type&&0/gi.test(e)},isEmbedObject:function(e){var t=!1;return o.each(["iframe","object","embed","video"],function(){("string"==typeof e&&e.toLowerCase()===this||void 0!==e.nodeType&&e.tagName.toLowerCase()===this)&&(t=!0)}),t},isVideoUrl:function(e){return/youtu\.be|youtube|twitch|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)},isFunc:function(e){return this.isType(e,"function")},isObject:function(e){return this.isType(e,"object")},isType:function(e,t){if(!this.isValue(e))return!1;if(typeof e===t)return e;if("tag"===(""+t).toLowerCase()&&this.isTag(e))return e;if("url"===(""+t).toLowerCase()&&this.isUrl(e))return e;if("array"===(""+t).toLowerCase()&&Array.isArray(e))return e;if(this.isTag(e)||this.isUrl(e))return!1;if(typeof window[e]===t)return window[e];if("string"==typeof e&&-1===e.indexOf("."))return!1;if("string"==typeof e&&/[/\s([]+/gm.test(e))return!1;if("number"==typeof e&&"number"!==t.toLowerCase())return!1;for(var n=e.split("."),i=window,s=0;s"},elementId:function(e){return e+"-"+(new Date).getTime()+o.random(1,1e3)},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)}},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),e=Math.floor((t-3600*n)/60),t=t-3600*n-60*e;return n<10&&(n="0"+n),e<10&&(e="0"+e),t<10&&(t="0"+t),[n,e,t].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)===window.METRO_THROWS)throw e}return i},isOutsider:function(e){var t=o(e),e=t.clone();return e.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),t.parent().append(e),t=this.inViewport(e[0]),e.remove(),!t},inViewport:function(e){e=this.rect(e);return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},rect:function(e){return e.getBoundingClientRect()},getCursorPosition:function(e,t){e=this.rect(e);return{x:this.pageXY(t).x-e.left-window.pageXOffset,y:this.pageXY(t).y-e.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;e=100*t/e;return!0===n?Math.round(e):Math.round(100*e)/100},objectShift:function(e){var t=0;return o.each(e,function(e){(0===t||e").addClass("circle").appendTo(n)}();break;case"square":!function(){for(e=0;e<4;e++)s("
").addClass("square").appendTo(n)}();break;case"cycle":s("
").addClass("cycle").appendTo(n);break;case"simple":s('').appendTo(n);break;case"atom":!function(){for(e=0;e<3;e++)s("").addClass("electron").appendTo(n)}();break;case"bars":!function(){for(e=0;e<6;e++)s("").addClass("bar").appendTo(n)}();break;default:!function(){for(e=0;e<5;e++)t=s("
").addClass("wrap").appendTo(n),s("
").addClass("circle").appendTo(t)}()}this._fireEvent("activity-create",{element:n})},changeAttribute:function(e){},destroy:function(){return this.element}}),i.activity={open:function(e){var t=e||{},n='
',e=t.text?'
'+t.text+"
":"";return i.dialog.create({content:n+e,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||0,overlayClickClose:!0===t.overlayClickClose,overlayColor:t.overlayColor||"#000000",overlayAlpha:t.overlayAlpha||.5,clsOverlay:"global-overlay"})},close:function(e){i.dialog.close(e)}}}(Metro,m4q),function(e,r){"use strict";var l=e.utils,t={adblockDeferred:0,checkInterval:1e3,fireOnce:!0,checkStop:10,localhost:!1,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");i.localhost||!r.localhost?!t.length||!n.length||-1").attr("type","button").addClass("hamburger menu-down");for(var s=0;s<3;s++)o("").addClass("line").appendTo(e);"rgba(0, 0, 0, 0)"!==i&&!0!==a.colors.isLight(i)||e.addClass("dark")}t.prepend(e),0===(i=t.find(".app-bar-menu")).length?e.css("display","none"):r.addCssRule(a.sheet,".app-bar-menu li","list-style: none!important;"),"block"===e.css("display")?(i.hide().addClass("collapsed"),e.removeClass("hidden")):e.addClass("hidden"),(!0===n.expand||r.isValue(n.expandPoint)&&r.mediaExist(n.expandPoint))&&(t.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&&(r.isValue(n.expandPoint)&&r.mediaExist(n.expandPoint)?(t.addClass("app-bar-expand"),e._fireEvent("menu-expand")):(t.removeClass("app-bar-expand"),e._fireEvent("menu-collapse"))),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,t=this.element,n=this.options,i=t.find(".app-bar-menu"),s=t.find(".hamburger");e._fireEvent("before-menu-close",{menu:i[0]}),i.slideUp(n.duration,function(){i.addClass("collapsed").removeClass("opened"),s.removeClass("active"),e._fireEvent("menu-close",{menu:i[0]})})},open:function(){var e=this,t=this.element,n=this.options,i=t.find(".app-bar-menu"),s=t.find(".hamburger");e._fireEvent("before-menu-open",{menu:i[0]}),i.slideDown(n.duration,function(){i.removeClass("collapsed").addClass("opened"),s.addClass("active"),e._fireEvent("menu-open",{menu:i[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");i.attr("for",this.element.attr("id")),b("
"+(n.inspectorTitle||this.locale.table.inspector)+"
").appendTo(i),e=b("
").addClass("table-wrap").appendTo(i),t=b("").addClass("table subcompact"),n=b("").appendTo(t),t.appendTo(e),this._createInspectorItems(n),n=b("
").appendTo(i),b("
").addClass(a.clsHeadRow).appendTo(o),b.each(this.service,function(){var e=[];i=b("").appendTo(n)),s.clear().addClass(i.clsFooter),0!==this.foots.length&&(e=b("").addClass(i.clsHeadRow).appendTo(s),b.each(this.foots,function(){t=b("").addClass(h.clsBodyRow)).data("original",o),l=t%2==0,s=b("").appendTo(m),C=[];if("function"==typeof h.tableToCSV){for(t=y.isValue(t)?t.toLowerCase():"all-filtered",n=y.isValue(n)?n:y.elementId("table")+"-export.csv",l=b(""),o=this.heads,a=0;a"),y.isValue(this.title)&&c.html(this.title),C[p.view[e]["index-view"]]=c)}),a=0;a"),o=r[s],a=0;a").html(this),C[p.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=d("").addClass("tab-marker").addClass(t.clsMarker).appendTo(e)),this.openTab((0===i.length?n:i)[0])},_createEvents:function(){var s=this,a=this.element,o=this.options;a.on(t.events.click,"li",function(e){var t=d(this),n=a.find("li.active"),i=t.index()>n.index(),n=t.children("a").attr("href");u.isValue(n)&&"#"===n[0]&&(t.hasClass("active")||t.hasClass("disabled")||!1!==u.exec(o.onBeforeTabOpen,[t,n,i],this)&&(s.openTab(t,i),e.preventDefault()))}),a.on(t.events.scroll,function(){var e=s.scroll;s.scrollDir=s.scrolln.index(t);this.openTab(e,t)},changeAttribute:function(){},destroy:function(){var e=this.element;return e.off(t.events.click,"li"),e.off(t.events.scroll),e}})}(Metro,m4q),function(r,l){"use strict";var c=r.utils,n={tabsDeferred:0,expand:!1,expandPoint:null,tabsPosition:"top",tabsType:"default",clsTabs:"",clsTabsList:"",clsTabsListItem:"",clsTabsListItemActive:"",onTab:r.noop,onBeforeTab:r.noop_true,onTabsCreate:r.noop};r.tabsSetup=function(e){n=l.extend({},n,e)},window.metroTabsSetup,r.tabsSetup(window.metroTabsSetup),r.Component("tabs",{init:function(e,t){return this._super(t,e,n,{_targets:[],id:c.elementId("tabs")}),this},_create:function(){var e=this.element,t=0").addClass("tabs tabs-wrapper");if(i.addClass(n.tabsPosition.replace(["-","_","+"]," ")),t.addClass("tabs-list"),"default"!==n.tabsType&&t.addClass("tabs-"+n.tabsType),s||(i.insertBefore(t),t.appendTo(i)),t.data("expanded",!1),s=l("
").addClass("expand-title"),i.prepend(s),0===(e=i.find(".hamburger")).length){e=l("
").appendTo(t),y.isValue(this.title)&&i.html(this.title),y.isValue(this.size)&&i.css({width:this.size}),y.isValue(this.cls)&&e.push(this.cls),e.push(a.clsHeadCell),i.addClass(e.join(" "))}),n=this.heads,e=0;e")).data("index",e),y.isValue(t.title)&&i.html(t.title),y.isValue(t.format)&&i.attr("data-format",t.format),y.isValue(t.name)&&i.attr("data-name",t.name),y.isValue(t.colspan)&&i.attr("colspan",t.colspan),y.isValue(l[e].size)&&i.css({width:l[e].size}),!0===t.sortable&&(n.push("sortable-column"),y.isValue(t.sortDir)&&n.push("sort-"+t.sortDir)),y.isValue(t.cls)&&b.each(t.cls.toArray(),function(){n.push(this)}),!1===y.bool(l[e].show)&&-1===n.indexOf("hidden")&&n.push("hidden"),n.push(a.clsHeadCell),y.bool(l[e].show)&&y.arrayDelete(n,"hidden"),i.addClass(n.join(" ")),r[l[e]["index-view"]]=i}),e=0;e").addClass(this.options.clsBody),0!==t.length?n.insertAfter(t):e.append(n)),n.clear()},_createTableFooter:function(){var e,t,n=this.element,i=this.options,s=n.find("tfoot");0===s.length&&(s=b("
").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),y.isValue(this.colspan)&&t.attr("colspan",this.colspan),t.appendTo(e)}))},_createTopBlock:function(){var n,i=this,e=this.element,s=this.options,t=b("
").addClass("table-top").addClass(s.clsTableTop).insertBefore(e.parent()),a=y.isValue(this.wrapperSearch)?this.wrapperSearch:b("
").addClass("table-search-block").addClass(s.clsSearch).appendTo(t);return a.addClass(s.clsSearch),e=b("").attr("type","text").appendTo(a),w.makePlugin(e,"input",{prepend:s.tableSearchTitle||i.locale.table.search}),!0!==s.showSearch&&a.hide(),(a=y.isValue(this.wrapperRows)?this.wrapperRows:b("
").addClass("table-rows-block").appendTo(t)).addClass(s.clsRowsCount),n=b("").addClass("input table-skip-input").addClass(t.clsTableSkipInput).appendTo(e),b("
").html(t+1),void 0!==d.service[0].clsColumn&&s.addClass(d.service[0].clsColumn),s.appendTo(i),s=b(""),a="checkbox"===h.checkType?b(""):b(""),y.isValue(v)&&Array.isArray(v)&&-1");y.isValue(d.heads[e].template)&&(t=d.heads[e].template.replace(/%VAL%/g,t)),n.html(t),n.addClass(h.clsBodyCell),y.isValue(d.heads[e].clsColumn)&&n.addClass(d.heads[e].clsColumn),!1===y.bool(g[e].show)&&n.addClass("hidden"),y.bool(g[e].show)&&n.removeClass("hidden"),n.data("original",this),r[g[e]["index-view"]]=n,d._fireEvent("draw-cell",{td:n,val:t,cellIndex:e,head:d.heads[e],items:o}),!0===h.cellWrapper&&(t=b("
").addClass("data-wrapper").addClass(h.clsCellWrapper).html(n.html()),n.html("").append(t))}),n=0;n").addClass(h.clsBodyRow).appendTo(p),(s=b("
").attr("colspan",n).addClass("text-center").html(b("").addClass(h.clsEmptyTableTitle).html(h.emptyTableTitle||d.locale.table.empty))).appendTo(i);this._info(1+f,1+m,c.length),this._paging(c.length),this.activity&&this.activity.hide(),this._fireEvent("draw"),void 0!==e&&y.exec(e,null,u[0])}else console.warn("Heads is not defined for table ID "+u.attr("id"))},_getItemContent:function(e){var t=this.options,n=e[this.sort.colIndex],i=this.heads[this.sort.colIndex].format,s=y.isNull(this.heads)||y.isNull(this.heads[this.sort.colIndex])||!y.isValue(this.heads[this.sort.colIndex].formatMask)?"%Y-%m-%d":this.heads[this.sort.colIndex].formatMask,e=(this.heads&&this.heads[this.sort.colIndex]&&this.heads[this.sort.colIndex].thousandSeparator?this.heads[this.sort.colIndex]:t).thousandSeparator,t=(this.heads&&this.heads[this.sort.colIndex]&&this.heads[this.sort.colIndex].decimalSeparator?this.heads[this.sort.colIndex]:t).decimalSeparator,a=(""+n).toLowerCase().replace(/[\n\r]+|[\s]{2,}/g," ").trim();if(y.isValue(a)&&y.isValue(i))switch(-1!==["number","int","float","money"].indexOf(i)&&(a=y.parseNumber(a,e,t)),i){case"date":a=y.isValue(s)?a.toDate(s):new Date(a);break;case"number":a=Number(a);break;case"int":a=parseInt(a);break;case"float":a=parseFloat(a);break;case"money":a=y.parseMoney(a);break;case"card":a=y.parseCard(a);break;case"phone":a=y.parsePhone(a)}return a},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 y.isNull(i)?(console.warn("Item is undefined for update"),this):(isNaN(n)&&this.heads.forEach(function(e,t){e.name===n&&(s=t)}),y.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){for(var n=[],i=y.isFunc(t),s=0;sthis.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=y.isFunc(e);if(!1!==s){for(n=0;n").appendTo(m),g=b("