luckyphoenix 2024.4.19 → 2024.4.20
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -4
- package/css/alist_skin_v3.css +1 -1
- package/css/{wallpaper.css → alist_wallpaper.css} +2 -2
- package/package.json +11 -3
- package/webfonts/lxgw-wenkai-webfont/package.json +33 -0
- package/ariang/LICENSE +0 -21
- package/ariang/css/aria-ng-c59c5f8a64.min.css +0 -4
- package/ariang/css/plugins-fb16b3b4db.min.css +0 -28
- package/ariang/favicon.ico +0 -0
- package/ariang/favicon.png +0 -0
- package/ariang/fonts/fontawesome-webfont.woff2 +0 -0
- package/ariang/index.html +0 -1
- package/ariang/js/angular-packages-1.6.10.min.js +0 -472
- package/ariang/js/aria-ng-9bc3ddfc9f.min.js +0 -5
- package/ariang/js/bootstrap-4.6.1.min.js +0 -6
- package/ariang/js/echarts-common-3.8.5.min.js +0 -1
- package/ariang/js/jquery-3.6.1.min.js +0 -2
- package/ariang/js/moment-with-locales-2.29.4.min.js +0 -1
- package/ariang/js/plugins-390b1f3333.min.js +0 -42
- package/ariang/langs/zh_Hans.txt +0 -736
- package/ariang/langs/zh_Hant.txt +0 -737
- package/ariang/logo512m.png +0 -0
- package/ariang/popup.html +0 -15
- package/ariang/robots.txt +0 -4
- package/ariang/tileicon.png +0 -0
- package/ariang/touchicon.png +0 -0
- package/ariang/webmanifest.json +0 -40
- package/bing/20240413@/350/212/261/345/274/200/346/255/243/346/273/241/346/236/235-/346/230/245/345/244/251/347/232/204/350/213/271/346/236/234/346/240/221/357/274/214/345/276/267/345/233/275 .jpg +0 -0
- package/bing/20240414@/345/262/251/347/237/263/344/277/235/351/276/204/347/220/203-/344/277/235/351/276/204/347/220/203/346/265/267/346/273/251/347/232/204/346/227/245/350/220/275/357/274/214/351/227/250/345/244/232/350/245/277/350/257/272/345/216/277/357/274/214/345/212/240/345/210/251/347/246/217/345/260/274/344/272/232/357/274/214/347/276/216/345/233/275 .jpg +0 -0
- package/bing/20240415@/344/273/213/344/272/216/346/226/207/350/211/272/345/244/215/345/205/264/344/270/216/347/213/254/345/210/233/346/200/247/344/271/213/351/227/264-/351/246/231/346/263/242/345/237/216/345/240/241/357/274/214/344/270/255/345/244/256-/345/215/242/347/223/246/345/260/224/346/262/263/350/260/267/345/244/247/345/214/272/357/274/214/346/263/225/345/233/275 .jpg +0 -0
- package/bing/20240416@/347/201/257/345/205/211/357/274/214/347/233/270/346/234/272/357/274/214/347/272/275/347/272/246/357/274/201-/346/232/256/350/211/262/344/270/255/347/232/204/346/233/274/345/223/210/351/241/277/344/270/213/345/237/216/350/201/224/345/220/210/345/271/277/345/234/272/357/274/214/347/272/275/347/272/246/357/274/214/347/276/216/345/233/275 .jpg +0 -0
- package/bing/20240417@/346/210/221/346/230/257/344/270/215/346/230/257/347/235/241/345/276/227/345/244/252/344/271/205/344/272/206/357/274/237-/346/230/245/345/244/251/347/232/204/347/276/216/346/264/262/351/273/221/347/206/212/345/271/274/345/264/275/357/274/214/344/273/231/347/272/263/345/272/246/345/233/275/345/256/266/345/205/254/345/233/255/357/274/214/345/274/227/345/220/211/345/260/274/344/272/232/345/267/236/357/274/214/347/276/216/345/233/275 .jpg +0 -0
- package/bing/20240418@/345/220/215/350/252/211/344/271/213/345/242/231-/344/270/255/344/270/226/347/272/252/345/237/216/345/242/231/357/274/214/351/230/277/347/273/264/346/213/211/357/274/214/350/245/277/347/217/255/347/211/231 .jpg +0 -0
- package/bing/20240419@/345/216/206/345/217/262/347/232/204/350/275/256/345/233/236-/345/270/203/347/275/227/345/276/267/345/212/240/347/216/257/357/274/214/345/245/245/345/205/213/345/260/274/345/262/233/357/274/214/350/213/217/346/240/274/345/205/260 .jpg +0 -0
- package/bing/FHD.jpg +0 -0
- package/bing/desktop.php +0 -28
- package/bing/mFHD.jpg +0 -0
- package/bing/mobile.php +0 -28
- package/phoenix.png +0 -0
- package/sub/chromego.json +0 -1075
- package/sub/chromego.txt +0 -1
- package/sub/chromego.yaml +0 -5467
- package/sub/neko-warp.nloli.xyz.yaml +0 -7039
- package/sub/sub.xf.free.hr.json +0 -10927
- package/sub/sub.xf.free.hr.txt +0 -31
- package/sub/sub.xf.free.hr.yaml +0 -9953
- package/sub/v2rayse.json +0 -570
- package/sub/v2rayse.txt +0 -1
- package/sub/v2rayse.yaml +0 -4007
- package/webfonts/lxgw-wenkai-webfont/.version +0 -1
@@ -1,42 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* AdminLTE v3.2.0 (https://adminlte.io)
|
3
|
-
* Copyright 2014-2022 Colorlib <https://colorlib.com>
|
4
|
-
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
|
5
|
-
*/
|
6
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).adminlte={},e.jQuery)}(this,(function(e,t){"use strict";var n=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(t),a="CardRefresh",r="lte.cardrefresh",i=n.default.fn[a],o='[data-card-widget="card-refresh"]',s={source:"",sourceSelector:"",params:{},trigger:o,content:".card-body",loadInContent:!0,loadOnInit:!0,loadErrorTemplate:!0,responseType:"",overlayTemplate:'<div class="overlay"><i class="fas fa-2x fa-sync-alt fa-spin"></i></div>',errorTemplate:'<span class="text-danger"></span>',onLoadStart:function(){},onLoadDone:function(e){return e},onLoadFail:function(e,t,n){}},l=function(){function e(e,t){if(this._element=e,this._parent=e.parents(".card").first(),this._settings=n.default.extend({},s,t),this._overlay=n.default(this._settings.overlayTemplate),e.hasClass("card")&&(this._parent=e),""===this._settings.source)throw new Error("Source url was not defined. Please specify a url in your CardRefresh source option.")}var t=e.prototype;return t.load=function(){var e=this;this._addOverlay(),this._settings.onLoadStart.call(n.default(this)),n.default.get(this._settings.source,this._settings.params,(function(t){e._settings.loadInContent&&(""!==e._settings.sourceSelector&&(t=n.default(t).find(e._settings.sourceSelector).html()),e._parent.find(e._settings.content).html(t)),e._settings.onLoadDone.call(n.default(e),t),e._removeOverlay()}),""!==this._settings.responseType&&this._settings.responseType).fail((function(t,a,r){if(e._removeOverlay(),e._settings.loadErrorTemplate){var i=n.default(e._settings.errorTemplate).text(r);e._parent.find(e._settings.content).empty().append(i)}e._settings.onLoadFail.call(n.default(e),t,a,r)})),n.default(this._element).trigger(n.default.Event("loaded.lte.cardrefresh"))},t._addOverlay=function(){this._parent.append(this._overlay),n.default(this._element).trigger(n.default.Event("overlay.added.lte.cardrefresh"))},t._removeOverlay=function(){this._parent.find(this._overlay).remove(),n.default(this._element).trigger(n.default.Event("overlay.removed.lte.cardrefresh"))},t._init=function(){var e=this;n.default(this).find(this._settings.trigger).on("click",(function(){e.load()})),this._settings.loadOnInit&&this.load()},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(r),i=n.default.extend({},s,"object"==typeof t?t:n.default(this).data());if(a)if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}else void 0===t&&a._init();else a=new e(n.default(this),i),n.default(this).data(r,a),a._init()}))},e}();n.default(document).on("click",o,(function(e){e&&e.preventDefault(),l._jQueryInterface.call(n.default(this),"load")})),n.default((function(){n.default(o).each((function(){l._jQueryInterface.call(n.default(this))}))})),n.default.fn[a]=l._jQueryInterface,n.default.fn[a].Constructor=l,n.default.fn[a].noConflict=function(){return n.default.fn[a]=i,l._jQueryInterface};var u="CardWidget",c="lte.cardwidget",d=n.default.fn[u],f="collapsed-card",h="collapsing-card",p="expanding-card",g="was-collapsed",m="maximized-card",v='[data-card-widget="remove"]',y='[data-card-widget="collapse"]',b='[data-card-widget="maximize"]',w={animationSpeed:"normal",collapseTrigger:y,removeTrigger:v,maximizeTrigger:b,collapseIcon:"fa-minus",expandIcon:"fa-plus",maximizeIcon:"fa-expand",minimizeIcon:"fa-compress"},C=function(){function e(e,t){this._element=e,this._parent=e.parents(".card").first(),e.hasClass("card")&&(this._parent=e),this._settings=n.default.extend({},w,t)}var t=e.prototype;return t.collapse=function(){var e=this;this._parent.addClass(h).children(".card-body, .card-footer").slideUp(this._settings.animationSpeed,(function(){e._parent.addClass(f).removeClass(h)})),this._parent.find("> .card-header "+this._settings.collapseTrigger+" ."+this._settings.collapseIcon).addClass(this._settings.expandIcon).removeClass(this._settings.collapseIcon),this._element.trigger(n.default.Event("collapsed.lte.cardwidget"),this._parent)},t.expand=function(){var e=this;this._parent.addClass(p).children(".card-body, .card-footer").slideDown(this._settings.animationSpeed,(function(){e._parent.removeClass(f).removeClass(p)})),this._parent.find("> .card-header "+this._settings.collapseTrigger+" ."+this._settings.expandIcon).addClass(this._settings.collapseIcon).removeClass(this._settings.expandIcon),this._element.trigger(n.default.Event("expanded.lte.cardwidget"),this._parent)},t.remove=function(){this._parent.slideUp(),this._element.trigger(n.default.Event("removed.lte.cardwidget"),this._parent)},t.toggle=function(){this._parent.hasClass(f)?this.expand():this.collapse()},t.maximize=function(){this._parent.find(this._settings.maximizeTrigger+" ."+this._settings.maximizeIcon).addClass(this._settings.minimizeIcon).removeClass(this._settings.maximizeIcon),this._parent.css({height:this._parent.height(),width:this._parent.width(),position:"fixed",transition:"all .15s"}).delay(150).queue((function(){var e=n.default(this);e.addClass(m),n.default("html").addClass(m),e.hasClass(f)&&e.addClass(g),e.dequeue()})),this._element.trigger(n.default.Event("maximized.lte.cardwidget"),this._parent)},t.minimize=function(){this._parent.find(this._settings.maximizeTrigger+" ."+this._settings.minimizeIcon).addClass(this._settings.maximizeIcon).removeClass(this._settings.minimizeIcon),this._parent.css("cssText","height: "+this._parent[0].style.height+" !important; width: "+this._parent[0].style.width+" !important; transition: all .15s;").delay(10).queue((function(){var e=n.default(this);e.removeClass(m),n.default("html").removeClass(m),e.css({height:"inherit",width:"inherit"}),e.hasClass(g)&&e.removeClass(g),e.dequeue()})),this._element.trigger(n.default.Event("minimized.lte.cardwidget"),this._parent)},t.toggleMaximize=function(){this._parent.hasClass(m)?this.minimize():this.maximize()},t._init=function(e){var t=this;this._parent=e,n.default(this).find(this._settings.collapseTrigger).click((function(){t.toggle()})),n.default(this).find(this._settings.maximizeTrigger).click((function(){t.toggleMaximize()})),n.default(this).find(this._settings.removeTrigger).click((function(){t.remove()}))},e._jQueryInterface=function(t){var a=n.default(this).data(c),r=n.default.extend({},w,n.default(this).data());a||(a=new e(n.default(this),r),n.default(this).data(c,"string"==typeof t?a:t)),"string"==typeof t&&/collapse|expand|remove|toggle|maximize|minimize|toggleMaximize/.test(t)?a[t]():"object"==typeof t&&a._init(n.default(this))},e}();n.default(document).on("click",y,(function(e){e&&e.preventDefault(),C._jQueryInterface.call(n.default(this),"toggle")})),n.default(document).on("click",v,(function(e){e&&e.preventDefault(),C._jQueryInterface.call(n.default(this),"remove")})),n.default(document).on("click",b,(function(e){e&&e.preventDefault(),C._jQueryInterface.call(n.default(this),"toggleMaximize")})),n.default.fn[u]=C._jQueryInterface,n.default.fn[u].Constructor=C,n.default.fn[u].noConflict=function(){return n.default.fn[u]=d,C._jQueryInterface};var _="ControlSidebar",S="lte.controlsidebar",T=n.default.fn[_],x=".control-sidebar",k=".control-sidebar-content",I='[data-widget="control-sidebar"]',E=".main-header",$=".main-footer",A="control-sidebar-animate",O="control-sidebar-open",M="control-sidebar-slide-open",L="layout-fixed",B={controlsidebarSlide:!0,scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l",target:x,animationSpeed:300},N=function(){function e(e,t){this._element=e,this._config=t}var t=e.prototype;return t.collapse=function(){var e=this,t=n.default("body"),a=n.default("html");this._config.controlsidebarSlide?(a.addClass(A),t.removeClass(M).delay(300).queue((function(){n.default(x).hide(),a.removeClass(A),n.default(this).dequeue()}))):t.removeClass(O),n.default(this._element).trigger(n.default.Event("collapsed.lte.controlsidebar")),setTimeout((function(){n.default(e._element).trigger(n.default.Event("collapsed-done.lte.controlsidebar"))}),this._config.animationSpeed)},t.show=function(e){void 0===e&&(e=!1);var t=n.default("body"),a=n.default("html");e&&n.default(x).hide(),this._config.controlsidebarSlide?(a.addClass(A),n.default(this._config.target).show().delay(10).queue((function(){t.addClass(M).delay(300).queue((function(){a.removeClass(A),n.default(this).dequeue()})),n.default(this).dequeue()}))):t.addClass(O),this._fixHeight(),this._fixScrollHeight(),n.default(this._element).trigger(n.default.Event("expanded.lte.controlsidebar"))},t.toggle=function(){var e=n.default("body"),t=this._config.target,a=!n.default(t).is(":visible"),r=e.hasClass(O)||e.hasClass(M),i=a&&(e.hasClass(O)||e.hasClass(M));a||i?this.show(a):r&&this.collapse()},t._init=function(){var e=this,t=n.default("body");t.hasClass(O)||t.hasClass(M)?(n.default(x).not(this._config.target).hide(),n.default(this._config.target).css("display","block")):n.default(x).hide(),this._fixHeight(),this._fixScrollHeight(),n.default(window).resize((function(){e._fixHeight(),e._fixScrollHeight()})),n.default(window).scroll((function(){var t=n.default("body");(t.hasClass(O)||t.hasClass(M))&&e._fixScrollHeight()}))},t._isNavbarFixed=function(){var e=n.default("body");return e.hasClass("layout-navbar-fixed")||e.hasClass("layout-sm-navbar-fixed")||e.hasClass("layout-md-navbar-fixed")||e.hasClass("layout-lg-navbar-fixed")||e.hasClass("layout-xl-navbar-fixed")},t._isFooterFixed=function(){var e=n.default("body");return e.hasClass("layout-footer-fixed")||e.hasClass("layout-sm-footer-fixed")||e.hasClass("layout-md-footer-fixed")||e.hasClass("layout-lg-footer-fixed")||e.hasClass("layout-xl-footer-fixed")},t._fixScrollHeight=function(){var e=n.default("body"),t=n.default(this._config.target);if(e.hasClass(L)){var a={scroll:n.default(document).height(),window:n.default(window).height(),header:n.default(E).outerHeight(),footer:n.default($).outerHeight()},r=Math.abs(a.window+n.default(window).scrollTop()-a.scroll),i=n.default(window).scrollTop(),o=this._isNavbarFixed()&&"fixed"===n.default(E).css("position"),s=this._isFooterFixed()&&"fixed"===n.default($).css("position"),l=n.default(this._config.target+", "+this._config.target+" "+k);if(0===i&&0===r)t.css({bottom:a.footer,top:a.header}),l.css("height",a.window-(a.header+a.footer));else if(r<=a.footer)if(!1===s){var u=a.header-i;t.css("bottom",a.footer-r).css("top",u>=0?u:0),l.css("height",a.window-(a.footer-r))}else t.css("bottom",a.footer);else i<=a.header?!1===o?(t.css("top",a.header-i),l.css("height",a.window-(a.header-i))):t.css("top",a.header):!1===o?(t.css("top",0),l.css("height",a.window)):t.css("top",a.header);s&&o?(l.css("height","100%"),t.css("height","")):(s||o)&&(l.css("height","100%"),l.css("height",""))}},t._fixHeight=function(){var e=n.default("body"),t=n.default(this._config.target+" "+k);if(e.hasClass(L)){var a=n.default(window).height(),r=n.default(E).outerHeight(),i=n.default($).outerHeight(),o=a-r;this._isFooterFixed()&&"fixed"===n.default($).css("position")&&(o=a-r-i),t.css("height",o),void 0!==n.default.fn.overlayScrollbars&&t.overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}})}else t.attr("style","")},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(S),r=n.default.extend({},B,"object"==typeof t?t:n.default(this).data());if(a)if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}else void 0===t&&a._init();else a=new e(n.default(this),r),n.default(this).data(S,a),a._init()}))},e}();n.default(document).on("click",I,(function(e){e.preventDefault(),N._jQueryInterface.call(n.default(this),"toggle")})),n.default(document).ready((function(){N._jQueryInterface.call(n.default(I),"_init")})),n.default.fn[_]=N._jQueryInterface,n.default.fn[_].Constructor=N,n.default.fn[_].noConflict=function(){return n.default.fn[_]=T,N._jQueryInterface};var j="DirectChat",D="lte.directchat",P=n.default.fn[j],F=function(){function e(e){this._element=e}return e.prototype.toggle=function(){n.default(this._element).parents(".direct-chat").first().toggleClass("direct-chat-contacts-open"),n.default(this._element).trigger(n.default.Event("toggled.lte.directchat"))},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(D);if(a)if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}else void 0===t&&a._init();else a=new e(n.default(this)),n.default(this).data(D,a)}))},e}();n.default(document).on("click",'[data-widget="chat-pane-toggle"]',(function(e){e&&e.preventDefault(),F._jQueryInterface.call(n.default(this),"toggle")})),n.default.fn[j]=F._jQueryInterface,n.default.fn[j].Constructor=F,n.default.fn[j].noConflict=function(){return n.default.fn[j]=P,F._jQueryInterface};var R="Dropdown",z="lte.dropdown",H=n.default.fn[R],q={},U=function(){function e(e,t){this._config=t,this._element=e}var t=e.prototype;return t.toggleSubmenu=function(){this._element.siblings().show().toggleClass("show"),this._element.next().hasClass("show")||this._element.parents(".dropdown-menu").first().find(".show").removeClass("show").hide(),this._element.parents("li.nav-item.dropdown.show").on("hidden.bs.dropdown",(function(){n.default(".dropdown-submenu .show").removeClass("show").hide()}))},t.fixPosition=function(){var e=n.default(".dropdown-menu.show");if(0!==e.length){e.hasClass("dropdown-menu-right")?e.css({left:"inherit",right:0}):e.css({left:0,right:"inherit"});var t=e.offset(),a=e.width(),r=n.default(window).width()-t.left;t.left<0?e.css({left:"inherit",right:t.left-5}):r<a&&e.css({left:"inherit",right:0})}},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(z),r=n.default.extend({},q,"object"==typeof t?t:n.default(this).data());if(a){if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}}else a=new e(n.default(this),r),n.default(this).data(z,a)}))},e}();n.default('.dropdown-menu [data-toggle="dropdown"]').on("click",(function(e){e.preventDefault(),e.stopPropagation(),U._jQueryInterface.call(n.default(this),"toggleSubmenu")})),n.default('.navbar [data-toggle="dropdown"]').on("click",(function(e){e.preventDefault(),n.default(e.target).parent().hasClass("dropdown-submenu")||setTimeout((function(){U._jQueryInterface.call(n.default(this),"fixPosition")}),1)})),n.default.fn[R]=U._jQueryInterface,n.default.fn[R].Constructor=U,n.default.fn[R].noConflict=function(){return n.default.fn[R]=H,U._jQueryInterface};var Q="ExpandableTable",V="lte.expandableTable",W=n.default.fn[Q],X=".expandable-body",G='[data-widget="expandable-table"]',K="aria-expanded",Y=function(){function e(e){this._element=e}var t=e.prototype;return t._init=function(){n.default(G).each((function(e,t){var a=n.default(t).attr(K),r=n.default(t).next(X).children().first().children();"true"===a?r.show():"false"===a&&(r.hide(),r.parent().parent().addClass("d-none"))}))},t.toggleRow=function(){var e=this._element;"TR"!==e[0].nodeName&&"TR"!==(e=e.parent())[0].nodeName&&(e=e.parent());var t=e.attr(K),a=e.next(X).children().first().children();a.stop(),"true"===t?(a.slideUp(500,(function(){e.next(X).addClass("d-none")})),e.attr(K,"false"),e.trigger(n.default.Event("collapsed.lte.expandableTable"))):"false"===t&&(e.next(X).removeClass("d-none"),a.slideDown(500),e.attr(K,"true"),e.trigger(n.default.Event("expanded.lte.expandableTable")))},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(V);a||(a=new e(n.default(this)),n.default(this).data(V,a)),"string"==typeof t&&/init|toggleRow/.test(t)&&a[t]()}))},e}();n.default(".expandable-table").ready((function(){Y._jQueryInterface.call(n.default(this),"_init")})),n.default(document).on("click",G,(function(){Y._jQueryInterface.call(n.default(this),"toggleRow")})),n.default.fn[Q]=Y._jQueryInterface,n.default.fn[Q].Constructor=Y,n.default.fn[Q].noConflict=function(){return n.default.fn[Q]=W,Y._jQueryInterface};var Z="Fullscreen",J="lte.fullscreen",ee=n.default.fn[Z],te='[data-widget="fullscreen"]',ne=te+" i",ae={minimizeIcon:"fa-compress-arrows-alt",maximizeIcon:"fa-expand-arrows-alt"},re=function(){function e(e,t){this.element=e,this.options=t}var t=e.prototype;return t.toggle=function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?this.windowed():this.fullscreen()},t.toggleIcon=function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?n.default(ne).removeClass(this.options.maximizeIcon).addClass(this.options.minimizeIcon):n.default(ne).removeClass(this.options.minimizeIcon).addClass(this.options.maximizeIcon)},t.fullscreen=function(){document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.webkitRequestFullscreen?document.documentElement.webkitRequestFullscreen():document.documentElement.msRequestFullscreen&&document.documentElement.msRequestFullscreen()},t.windowed=function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(J),r=n.default.extend({},ae,"object"==typeof t?t:n.default(this).data());if(a){if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}}else a=new e(n.default(this),r),n.default(this).data(J,a)}))},e}();function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ie.apply(this,arguments)}n.default(document).on("click",te,(function(){re._jQueryInterface.call(n.default(this),"toggle")})),n.default(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",(function(){re._jQueryInterface.call(n.default(te),"toggleIcon")})),n.default.fn[Z]=re._jQueryInterface,n.default.fn[Z].Constructor=re,n.default.fn[Z].noConflict=function(){return n.default.fn[Z]=ee,re._jQueryInterface};var oe="lte.iframe",se=n.default.fn.IFrame,le='[data-widget="iframe"]',ue='[data-widget="iframe-fullscreen"]',ce=".content-wrapper",de=".content-wrapper iframe",fe=".content-wrapper.iframe-mode .nav",he=".content-wrapper.iframe-mode .navbar-nav",pe=he+" .nav-item",ge=he+" .nav-link",me=".content-wrapper.iframe-mode .tab-content",ve=me+" .tab-empty",ye=me+" .tab-loading",be=me+" .tab-pane",we=".main-sidebar .nav-item > a.nav-link",Ce=".main-header .nav-item a.nav-link",_e=".main-header a.dropdown-item",Se="iframe-mode",Te="iframe-mode-fullscreen",xe={onTabClick:function(e){return e},onTabChanged:function(e){return e},onTabCreated:function(e){return e},autoIframeMode:!0,autoItemActive:!0,autoShowNewTab:!0,autoDarkMode:!1,allowDuplicates:!1,allowReload:!0,loadingScreen:!0,useNavbarItems:!0,scrollOffset:40,scrollBehaviorSwap:!1,iconMaximize:"fa-expand",iconMinimize:"fa-compress"},ke=function(){function e(e,t){this._config=t,this._element=e,this._init()}var t=e.prototype;return t.onTabClick=function(e){this._config.onTabClick(e)},t.onTabChanged=function(e){this._config.onTabChanged(e)},t.onTabCreated=function(e){this._config.onTabCreated(e)},t.createTab=function(e,t,a,r){var i=this,o="panel-"+a,s="tab-"+a;this._config.allowDuplicates&&(o+="-"+Math.floor(1e3*Math.random()),s+="-"+Math.floor(1e3*Math.random()));var l='<li class="nav-item" role="presentation"><a href="#" class="btn-iframe-close" data-widget="iframe-close" data-type="only-this"><i class="fas fa-times"></i></a><a class="nav-link" data-toggle="row" id="'+s+'" href="#'+o+'" role="tab" aria-controls="'+o+'" aria-selected="false">'+e+"</a></li>";n.default(he).append(unescape(escape(l)));var u='<div class="tab-pane fade" id="'+o+'" role="tabpanel" aria-labelledby="'+s+'"><iframe src="'+t+'"></iframe></div>';if(n.default(me).append(unescape(escape(u))),r)if(this._config.loadingScreen){var c=n.default(ye);c.is(":animated")||c.fadeIn(),n.default(o+" iframe").ready((function(){"number"==typeof i._config.loadingScreen?(i.switchTab("#"+s),setTimeout((function(){c.fadeOut()}),i._config.loadingScreen)):(i.switchTab("#"+s),c.fadeOut())}))}else this.switchTab("#"+s);this.onTabCreated(n.default("#"+s))},t.openTabSidebar=function(e,t){void 0===t&&(t=this._config.autoShowNewTab);var a=n.default(e).clone();void 0===a.attr("href")&&(a=n.default(e).parent("a").clone()),a.find(".right, .search-path").remove();var r=a.find("p").text();""===r&&(r=a.text());var i=a.attr("href");if("#"!==i&&""!==i&&void 0!==i){var o=unescape(i).replace("./","").replace(/["#&'./:=?[\]]/gi,"-").replace(/(--)/gi,""),s="tab-"+o;if(!this._config.allowDuplicates&&n.default("#"+s).length>0)return this.switchTab("#"+s,this._config.allowReload);(!this._config.allowDuplicates&&0===n.default("#"+s).length||this._config.allowDuplicates)&&this.createTab(r,i,o,t)}},t.switchTab=function(e,t){var a=this;void 0===t&&(t=!1);var r=n.default(e),i=r.attr("href");if(n.default(ve).hide(),t){var o=n.default(ye);this._config.loadingScreen?o.show(0,(function(){n.default(i+" iframe").attr("src",n.default(i+" iframe").attr("src")).ready((function(){a._config.loadingScreen&&("number"==typeof a._config.loadingScreen?setTimeout((function(){o.fadeOut()}),a._config.loadingScreen):o.fadeOut())}))})):n.default(i+" iframe").attr("src",n.default(i+" iframe").attr("src"))}n.default(he+" .active").tab("dispose").removeClass("active"),this._fixHeight(),r.tab("show"),r.parents("li").addClass("active"),this.onTabChanged(r),this._config.autoItemActive&&this._setItemActive(n.default(i+" iframe").attr("src"))},t.removeActiveTab=function(e,t){if("all"==e)n.default(pe).remove(),n.default(be).remove(),n.default(ve).show();else if("all-other"==e)n.default(pe+":not(.active)").remove(),n.default(be+":not(.active)").remove();else if("only-this"==e){var a=n.default(t),r=a.parent(".nav-item"),i=r.parent(),o=r.index(),s=a.siblings(".nav-link").attr("aria-controls");if(r.remove(),n.default("#"+s).remove(),n.default(me).children().length==n.default(ve+", "+ye).length)n.default(ve).show();else{var l=o-1;this.switchTab(i.children().eq(l).find("a.nav-link"))}}else{var u=n.default(pe+".active"),c=u.parent(),d=u.index();if(u.remove(),n.default(be+".active").remove(),n.default(me).children().length==n.default(ve+", "+ye).length)n.default(ve).show();else{var f=d-1;this.switchTab(c.children().eq(f).find("a.nav-link"))}}},t.toggleFullscreen=function(){n.default("body").hasClass(Te)?(n.default(ue+" i").removeClass(this._config.iconMinimize).addClass(this._config.iconMaximize),n.default("body").removeClass(Te),n.default(ve+", "+ye).height("100%"),n.default(ce).height("100%"),n.default(de).height("100%")):(n.default(ue+" i").removeClass(this._config.iconMaximize).addClass(this._config.iconMinimize),n.default("body").addClass(Te)),n.default(window).trigger("resize"),this._fixHeight(!0)},t._init=function(){var e=n.default(me).children().length>2;if(this._setupListeners(),this._fixHeight(!0),e){var t="#tab-"+n.default(""+be).first().attr("id").replace("panel-","");this.switchTab(t,!0)}},t._initFrameElement=function(){if(window.frameElement&&this._config&&this._config.autoIframeMode){var e=n.default("body");e.addClass(Se),this._config.autoDarkMode&&e.addClass("dark-mode")}},t._navScroll=function(e){var t=n.default(he).scrollLeft();n.default(he).animate({scrollLeft:t+e},250,"linear")},t._setupListeners=function(){var e=this;n.default(window).on("resize",(function(){setTimeout((function(){e._fixHeight()}),1)})),n.default(ce).hasClass(Se)&&(n.default(document).on("click",we+", .sidebar-search-results .list-group-item",(function(t){t.preventDefault(),e.openTabSidebar(t.target)})),this._config.useNavbarItems&&n.default(document).on("click",Ce+", "+_e,(function(t){t.preventDefault(),e.openTabSidebar(t.target)}))),n.default(document).on("click",ge,(function(t){t.preventDefault(),e.onTabClick(t.target),e.switchTab(t.target)})),n.default(document).on("click",ge,(function(t){t.preventDefault(),e.onTabClick(t.target),e.switchTab(t.target)})),n.default(document).on("click",'[data-widget="iframe-close"]',(function(t){t.preventDefault();var n=t.target;"I"===n.nodeName&&(n=t.target.offsetParent),e.removeActiveTab(n.attributes["data-type"]?n.attributes["data-type"].nodeValue:null,n)})),n.default(document).on("click",ue,(function(t){t.preventDefault(),e.toggleFullscreen()}));var t=!1,a=null;n.default(document).on("mousedown",'[data-widget="iframe-scrollleft"]',(function(n){n.preventDefault(),clearInterval(a);var r=e._config.scrollOffset;e._config.scrollBehaviorSwap||(r=-r),t=!0,e._navScroll(r),a=setInterval((function(){e._navScroll(r)}),250)})),n.default(document).on("mousedown",'[data-widget="iframe-scrollright"]',(function(n){n.preventDefault(),clearInterval(a);var r=e._config.scrollOffset;e._config.scrollBehaviorSwap&&(r=-r),t=!0,e._navScroll(r),a=setInterval((function(){e._navScroll(r)}),250)})),n.default(document).on("mouseup",(function(){t&&(t=!1,clearInterval(a),a=null)}))},t._setItemActive=function(e){n.default(we+", "+_e).removeClass("active"),n.default(Ce).parent().removeClass("active");var t=n.default(Ce+'[href$="'+e+'"]'),a=n.default('.main-header a.dropdown-item[href$="'+e+'"]'),r=n.default(we+'[href$="'+e+'"]');t.each((function(e,t){n.default(t).parent().addClass("active")})),a.each((function(e,t){n.default(t).addClass("active")})),r.each((function(e,t){n.default(t).addClass("active"),n.default(t).parents(".nav-treeview").prevAll(".nav-link").addClass("active")}))},t._fixHeight=function(e){if(void 0===e&&(e=!1),n.default("body").hasClass(Te)){var t=n.default(window).height(),a=n.default(fe).outerHeight();n.default(ve+", "+ye+", "+de).height(t-a),n.default(ce).height(t)}else{var r=parseFloat(n.default(ce).css("height")),i=n.default(fe).outerHeight();1==e?setTimeout((function(){n.default(ve+", "+ye).height(r-i)}),50):n.default(de).height(r-i)}},e._jQueryInterface=function(t,a,r,i,o){if(n.default(le).length>0){var s=n.default(this).data(oe);s||(s=n.default(this).data());var l=n.default.extend({},xe,"object"==typeof t?t:s);localStorage.setItem("AdminLTE:IFrame:Options",JSON.stringify(l));var u=new e(n.default(this),l);window.iFrameInstance=u,n.default(this).data(oe,"object"==typeof t?t:ie({link:r,name:a,id:i,reload:o},s)),"string"==typeof t&&/createTab|openTabSidebar|switchTab|removeActiveTab/.test(t)&&u[t](a,r,i,o)}else window.iFrameInstance=new e(n.default(this),JSON.parse(localStorage.getItem("AdminLTE:IFrame:Options")))._initFrameElement()},e}();n.default(window).on("load",(function(){ke._jQueryInterface.call(n.default(le))})),n.default.fn.IFrame=ke._jQueryInterface,n.default.fn.IFrame.Constructor=ke,n.default.fn.IFrame.noConflict=function(){return n.default.fn.IFrame=se,ke._jQueryInterface};var Ie="lte.layout",Ee=n.default.fn.Layout,$e=".main-header",Ae=".main-sidebar",Oe=".main-sidebar .sidebar",Me=".main-footer",Le="sidebar-focused",Be={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l",panelAutoHeight:!0,panelAutoHeightMode:"min-height",preloadDuration:200,loginRegisterAutoHeight:!0},Ne=function(){function e(e,t){this._config=t,this._element=e}var t=e.prototype;return t.fixLayoutHeight=function(e){void 0===e&&(e=null);var t=n.default("body"),a=0;(t.hasClass("control-sidebar-slide-open")||t.hasClass("control-sidebar-open")||"control_sidebar"===e)&&(a=n.default(".control-sidebar-content").outerHeight());var r={window:n.default(window).height(),header:n.default($e).length>0?n.default($e).outerHeight():0,footer:n.default(Me).length>0?n.default(Me).outerHeight():0,sidebar:n.default(Oe).length>0?n.default(Oe).height():0,controlSidebar:a},i=this._max(r),o=this._config.panelAutoHeight;!0===o&&(o=0);var s=n.default(".content-wrapper");!1!==o&&(i===r.controlSidebar?s.css(this._config.panelAutoHeightMode,i+o):i===r.window?s.css(this._config.panelAutoHeightMode,i+o-r.header-r.footer):s.css(this._config.panelAutoHeightMode,i+o-r.header),this._isFooterFixed()&&s.css(this._config.panelAutoHeightMode,parseFloat(s.css(this._config.panelAutoHeightMode))+r.footer)),t.hasClass("layout-fixed")&&(void 0!==n.default.fn.overlayScrollbars?n.default(Oe).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}):n.default(Oe).css("overflow-y","auto"))},t.fixLoginRegisterHeight=function(){var e=n.default("body"),t=n.default(".login-box, .register-box");if(e.hasClass("iframe-mode"))e.css("height","100%"),n.default(".wrapper").css("height","100%"),n.default("html").css("height","100%");else if(0===t.length)e.css("height","auto"),n.default("html").css("height","auto");else{var a=t.height();e.css(this._config.panelAutoHeightMode)!==a&&e.css(this._config.panelAutoHeightMode,a)}},t._init=function(){var e=this;this.fixLayoutHeight(),!0===this._config.loginRegisterAutoHeight?this.fixLoginRegisterHeight():this._config.loginRegisterAutoHeight===parseInt(this._config.loginRegisterAutoHeight,10)&&setInterval(this.fixLoginRegisterHeight,this._config.loginRegisterAutoHeight),n.default(Oe).on("collapsed.lte.treeview expanded.lte.treeview",(function(){e.fixLayoutHeight()})),n.default(Ae).on("mouseenter mouseleave",(function(){n.default("body").hasClass("sidebar-collapse")&&e.fixLayoutHeight()})),n.default('[data-widget="pushmenu"]').on("collapsed.lte.pushmenu shown.lte.pushmenu",(function(){setTimeout((function(){e.fixLayoutHeight()}),300)})),n.default('[data-widget="control-sidebar"]').on("collapsed.lte.controlsidebar",(function(){e.fixLayoutHeight()})).on("expanded.lte.controlsidebar",(function(){e.fixLayoutHeight("control_sidebar")})),n.default(window).resize((function(){e.fixLayoutHeight()})),setTimeout((function(){n.default("body.hold-transition").removeClass("hold-transition")}),50),setTimeout((function(){var e=n.default(".preloader");e&&(e.css("height",0),setTimeout((function(){e.children().hide()}),200))}),this._config.preloadDuration)},t._max=function(e){var t=0;return Object.keys(e).forEach((function(n){e[n]>t&&(t=e[n])})),t},t._isFooterFixed=function(){return"fixed"===n.default(Me).css("position")},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(Ie),r=n.default.extend({},Be,"object"==typeof t?t:n.default(this).data());if(a)if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}else void 0===t&&a._init();else a=new e(n.default(this),r),n.default(this).data(Ie,a),a._init()}))},e}();n.default(window).on("load",(function(){Ne._jQueryInterface.call(n.default("body"))})),n.default(Oe+" a").on("focusin",(function(){n.default(Ae).addClass(Le)})).on("focusout",(function(){n.default(Ae).removeClass(Le)})),n.default.fn.Layout=Ne._jQueryInterface,n.default.fn.Layout.Constructor=Ne,n.default.fn.Layout.noConflict=function(){return n.default.fn.Layout=Ee,Ne._jQueryInterface};var je="PushMenu",De="lte.pushmenu",Pe="."+De,Fe=n.default.fn[je],Re='[data-widget="pushmenu"]',ze="body",He="sidebar-collapse",qe="sidebar-open",Ue="sidebar-is-opening",Qe="sidebar-closed",Ve={autoCollapseSize:992,enableRemember:!1,noTransitionAfterReload:!0,animationSpeed:300},We=function(){function e(e,t){this._element=e,this._options=t,0===n.default("#sidebar-overlay").length&&this._addOverlay(),this._init()}var t=e.prototype;return t.expand=function(){var e=n.default(ze);this._options.autoCollapseSize&&n.default(window).width()<=this._options.autoCollapseSize&&e.addClass(qe),e.addClass(Ue).removeClass("sidebar-collapse sidebar-closed").delay(50).queue((function(){e.removeClass(Ue),n.default(this).dequeue()})),this._options.enableRemember&&localStorage.setItem("remember"+Pe,qe),n.default(this._element).trigger(n.default.Event("shown.lte.pushmenu"))},t.collapse=function(){var e=this,t=n.default(ze);this._options.autoCollapseSize&&n.default(window).width()<=this._options.autoCollapseSize&&t.removeClass(qe).addClass(Qe),t.addClass(He),this._options.enableRemember&&localStorage.setItem("remember"+Pe,He),n.default(this._element).trigger(n.default.Event("collapsed.lte.pushmenu")),setTimeout((function(){n.default(e._element).trigger(n.default.Event("collapsed-done.lte.pushmenu"))}),this._options.animationSpeed)},t.toggle=function(){n.default(ze).hasClass(He)?this.expand():this.collapse()},t.autoCollapse=function(e){if(void 0===e&&(e=!1),this._options.autoCollapseSize){var t=n.default(ze);n.default(window).width()<=this._options.autoCollapseSize?t.hasClass(qe)||this.collapse():!0===e&&(t.hasClass(qe)?t.removeClass(qe):t.hasClass(Qe)&&this.expand())}},t.remember=function(){if(this._options.enableRemember){var e=n.default("body");localStorage.getItem("remember"+Pe)===He?this._options.noTransitionAfterReload?e.addClass("hold-transition").addClass(He).delay(50).queue((function(){n.default(this).removeClass("hold-transition"),n.default(this).dequeue()})):e.addClass(He):this._options.noTransitionAfterReload?e.addClass("hold-transition").removeClass(He).delay(50).queue((function(){n.default(this).removeClass("hold-transition"),n.default(this).dequeue()})):e.removeClass(He)}},t._init=function(){var e=this;this.remember(),this.autoCollapse(),n.default(window).resize((function(){e.autoCollapse(!0)}))},t._addOverlay=function(){var e=this,t=n.default("<div />",{id:"sidebar-overlay"});t.on("click",(function(){e.collapse()})),n.default(".wrapper").append(t)},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(De),r=n.default.extend({},Ve,"object"==typeof t?t:n.default(this).data());if(a)if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}else void 0===t&&a._init();else a=new e(n.default(this),r),n.default(this).data(De,a),a._init()}))},e}();n.default(document).on("click",Re,(function(e){e.preventDefault();var t=e.currentTarget;"pushmenu"!==n.default(t).data("widget")&&(t=n.default(t).closest(Re)),We._jQueryInterface.call(n.default(t),"toggle")})),n.default(window).on("load",(function(){We._jQueryInterface.call(n.default(Re))})),n.default.fn[je]=We._jQueryInterface,n.default.fn[je].Constructor=We,n.default.fn[je].noConflict=function(){return n.default.fn[je]=Fe,We._jQueryInterface};var Xe="SidebarSearch",Ge="lte.sidebar-search",Ke=n.default.fn[Xe],Ye="sidebar-search-open",Ze="fa-search",Je="fa-times",et='[data-widget="sidebar-search"]',tt=et+" .form-control",nt=et+" .btn",at=nt+" i",rt=".sidebar-search-results",it=".sidebar-search-results .list-group",ot={arrowSign:"->",minLength:3,maxResults:7,highlightName:!0,highlightPath:!1,highlightClass:"text-light",notFoundText:"No element found!"},st=[],lt=function(){function e(e,t){this.element=e,this.options=n.default.extend({},ot,t),this.items=[]}var a=e.prototype;return a._init=function(){var e=this;0!==n.default(et).length&&(0===n.default(et).next(rt).length&&n.default(et).after(n.default("<div />",{class:"sidebar-search-results"})),0===n.default(rt).children(".list-group").length&&n.default(rt).append(n.default("<div />",{class:"list-group"})),this._addNotFound(),n.default(".main-sidebar .nav-sidebar").children().each((function(t,n){e._parseItem(n)})))},a.search=function(){var e=this,t=n.default(tt).val().toLowerCase();if(t.length<this.options.minLength)return n.default(it).empty(),this._addNotFound(),void this.close();var a=st.filter((function(e){return e.name.toLowerCase().includes(t)})),r=n.default(a.slice(0,this.options.maxResults));n.default(it).empty(),0===r.length?this._addNotFound():r.each((function(t,a){n.default(it).append(e._renderItem(escape(a.name),encodeURI(a.link),a.path))})),this.open()},a.open=function(){n.default(et).parent().addClass(Ye),n.default(at).removeClass(Ze).addClass(Je)},a.close=function(){n.default(et).parent().removeClass(Ye),n.default(at).removeClass(Je).addClass(Ze)},a.toggle=function(){n.default(et).parent().hasClass(Ye)?this.close():this.open()},a._parseItem=function(e,t){var a=this;if(void 0===t&&(t=[]),!n.default(e).hasClass("nav-header")){var r={},i=n.default(e).clone().find("> .nav-link"),o=n.default(e).clone().find("> .nav-treeview"),s=i.attr("href"),l=i.find("p").children().remove().end().text();if(r.name=this._trimText(l),r.link=s,r.path=t,0===o.length)st.push(r);else{var u=r.path.concat([r.name]);o.children().each((function(e,t){a._parseItem(t,u)}))}}},a._trimText=function(e){return t.trim(e.replace(/(\r\n|\n|\r)/gm," "))},a._renderItem=function(e,t,a){var r=this;if(a=a.join(" "+this.options.arrowSign+" "),e=unescape(e),t=decodeURI(t),this.options.highlightName||this.options.highlightPath){var i=n.default(tt).val().toLowerCase(),o=new RegExp(i,"gi");this.options.highlightName&&(e=e.replace(o,(function(e){return'<strong class="'+r.options.highlightClass+'">'+e+"</strong>"}))),this.options.highlightPath&&(a=a.replace(o,(function(e){return'<strong class="'+r.options.highlightClass+'">'+e+"</strong>"})))}var s=n.default("<a/>",{href:decodeURIComponent(t),class:"list-group-item"}),l=n.default("<div/>",{class:"search-title"}).html(e),u=n.default("<div/>",{class:"search-path"}).html(a);return s.append(l).append(u),s},a._addNotFound=function(){n.default(it).append(this._renderItem(this.options.notFoundText,"#",[]))},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(Ge),r=n.default.extend({},ot,"object"==typeof t?t:n.default(this).data());if(a)if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}else void 0===t&&a._init();else a=new e(n.default(this),r),n.default(this).data(Ge,a),a._init()}))},e}();n.default(document).on("click",nt,(function(e){e.preventDefault(),lt._jQueryInterface.call(n.default(et),"toggle")})),n.default(document).on("keyup",tt,(function(e){return 38==e.keyCode?(e.preventDefault(),void n.default(it).children().last().focus()):40==e.keyCode?(e.preventDefault(),void n.default(it).children().first().focus()):void setTimeout((function(){lt._jQueryInterface.call(n.default(et),"search")}),100)})),n.default(document).on("keydown",it,(function(e){var t=n.default(":focus");38==e.keyCode&&(e.preventDefault(),t.is(":first-child")?t.siblings().last().focus():t.prev().focus()),40==e.keyCode&&(e.preventDefault(),t.is(":last-child")?t.siblings().first().focus():t.next().focus())})),n.default(window).on("load",(function(){lt._jQueryInterface.call(n.default(et),"init")})),n.default.fn[Xe]=lt._jQueryInterface,n.default.fn[Xe].Constructor=lt,n.default.fn[Xe].noConflict=function(){return n.default.fn[Xe]=Ke,lt._jQueryInterface};var ut="NavbarSearch",ct="lte.navbar-search",dt=n.default.fn[ut],ft='[data-widget="navbar-search"]',ht=".form-control",pt="navbar-search-open",gt={resetOnClose:!0,target:".navbar-search-block"},mt=function(){function e(e,t){this._element=e,this._config=t}var t=e.prototype;return t.open=function(){n.default(this._config.target).css("display","flex").hide().fadeIn().addClass(pt),n.default(this._config.target+" "+ht).focus()},t.close=function(){n.default(this._config.target).fadeOut().removeClass(pt),this._config.resetOnClose&&n.default(this._config.target+" "+ht).val("")},t.toggle=function(){n.default(this._config.target).hasClass(pt)?this.close():this.open()},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(ct),r=n.default.extend({},gt,"object"==typeof t?t:n.default(this).data());if(a){if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}}else a=new e(n.default(this),r),n.default(this).data(ct,a)}))},e}();n.default(document).on("click",ft,(function(e){e.preventDefault();var t=n.default(e.currentTarget);"navbar-search"!==t.data("widget")&&(t=t.closest(ft)),mt._jQueryInterface.call(t,"toggle")})),n.default.fn[ut]=mt._jQueryInterface,n.default.fn[ut].Constructor=mt,n.default.fn[ut].noConflict=function(){return n.default.fn[ut]=dt,mt._jQueryInterface};var vt=n.default.fn.Toasts,yt="topRight",bt="topLeft",wt="bottomRight",Ct="bottomLeft",_t={position:yt,fixed:!0,autohide:!1,autoremove:!0,delay:1e3,fade:!0,icon:null,image:null,imageAlt:null,imageHeight:"25px",title:null,subtitle:null,close:!0,body:null,class:null},St=function(){function e(e,t){this._config=t,this._prepareContainer(),n.default("body").trigger(n.default.Event("init.lte.toasts"))}var t=e.prototype;return t.create=function(){var e=n.default('<div class="toast" role="alert" aria-live="assertive" aria-atomic="true"/>');e.data("autohide",this._config.autohide),e.data("animation",this._config.fade),this._config.class&&e.addClass(this._config.class),this._config.delay&&500!=this._config.delay&&e.data("delay",this._config.delay);var t=n.default('<div class="toast-header">');if(null!=this._config.image){var a=n.default("<img />").addClass("rounded mr-2").attr("src",this._config.image).attr("alt",this._config.imageAlt);null!=this._config.imageHeight&&a.height(this._config.imageHeight).width("auto"),t.append(a)}if(null!=this._config.icon&&t.append(n.default("<i />").addClass("mr-2").addClass(this._config.icon)),null!=this._config.title&&t.append(n.default("<strong />").addClass("mr-auto").html(this._config.title)),null!=this._config.subtitle&&t.append(n.default("<small />").html(this._config.subtitle)),1==this._config.close){var r=n.default('<button data-dismiss="toast" />').attr("type","button").addClass("ml-2 mb-1 close").attr("aria-label","Close").append('<span aria-hidden="true">×</span>');null==this._config.title&&r.toggleClass("ml-2 ml-auto"),t.append(r)}e.append(t),null!=this._config.body&&e.append(n.default('<div class="toast-body" />').html(this._config.body)),n.default(this._getContainerId()).prepend(e);var i=n.default("body");i.trigger(n.default.Event("created.lte.toasts")),e.toast("show"),this._config.autoremove&&e.on("hidden.bs.toast",(function(){n.default(this).delay(200).remove(),i.trigger(n.default.Event("removed.lte.toasts"))}))},t._getContainerId=function(){return this._config.position===yt?"#toastsContainerTopRight":this._config.position===bt?"#toastsContainerTopLeft":this._config.position===wt?"#toastsContainerBottomRight":this._config.position===Ct?"#toastsContainerBottomLeft":void 0},t._prepareContainer=function(){if(0===n.default(this._getContainerId()).length){var e=n.default("<div />").attr("id",this._getContainerId().replace("#",""));this._config.position==yt?e.addClass("toasts-top-right"):this._config.position==bt?e.addClass("toasts-top-left"):this._config.position==wt?e.addClass("toasts-bottom-right"):this._config.position==Ct&&e.addClass("toasts-bottom-left"),n.default("body").append(e)}this._config.fixed?n.default(this._getContainerId()).addClass("fixed"):n.default(this._getContainerId()).removeClass("fixed")},e._jQueryInterface=function(t,a){return this.each((function(){var r=n.default.extend({},_t,a),i=new e(n.default(this),r);"create"===t&&i[t]()}))},e}();n.default.fn.Toasts=St._jQueryInterface,n.default.fn.Toasts.Constructor=St,n.default.fn.Toasts.noConflict=function(){return n.default.fn.Toasts=vt,St._jQueryInterface};var Tt="TodoList",xt="lte.todolist",kt=n.default.fn[Tt],It="done",Et={onCheck:function(e){return e},onUnCheck:function(e){return e}},$t=function(){function e(e,t){this._config=t,this._element=e,this._init()}var t=e.prototype;return t.toggle=function(e){e.parents("li").toggleClass(It),n.default(e).prop("checked")?this.check(e):this.unCheck(e)},t.check=function(e){this._config.onCheck(e)},t.unCheck=function(e){this._config.onUnCheck(e)},t._init=function(){var e=this,t=this._element;t.find("input:checkbox:checked").parents("li").toggleClass(It),t.on("change","input:checkbox",(function(t){e.toggle(n.default(t.target))}))},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(xt),r=n.default.extend({},Et,"object"==typeof t?t:n.default(this).data());if(a)if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}else void 0===t&&a._init();else a=new e(n.default(this),r),n.default(this).data(xt,a),a._init()}))},e}();n.default(window).on("load",(function(){$t._jQueryInterface.call(n.default('[data-widget="todo-list"]'))})),n.default.fn[Tt]=$t._jQueryInterface,n.default.fn[Tt].Constructor=$t,n.default.fn[Tt].noConflict=function(){return n.default.fn[Tt]=kt,$t._jQueryInterface};var At="Treeview",Ot="lte.treeview",Mt=n.default.fn[At],Lt=".nav-item",Bt=".nav-treeview",Nt=".menu-open",jt='[data-widget="treeview"]',Dt="menu-open",Pt={trigger:jt+" .nav-link",animationSpeed:300,accordion:!0,expandSidebar:!1,sidebarButtonSelector:'[data-widget="pushmenu"]'},Ft=function(){function e(e,t){this._config=t,this._element=e}var t=e.prototype;return t._init=function(){n.default(".nav-item.menu-open .nav-treeview.menu-open").css("display","block"),this._setupListeners()},t.expand=function(e,t){var a=this,r=n.default.Event("expanded.lte.treeview");if(this._config.accordion){var i=t.siblings(Nt).first(),o=i.find(Bt).first();this.collapse(o,i)}t.addClass("menu-is-opening"),e.stop().slideDown(this._config.animationSpeed,(function(){t.addClass(Dt),n.default(a._element).trigger(r)})),this._config.expandSidebar&&this._expandSidebar()},t.collapse=function(e,t){var a=this,r=n.default.Event("collapsed.lte.treeview");t.removeClass("menu-is-opening menu-open"),e.stop().slideUp(this._config.animationSpeed,(function(){n.default(a._element).trigger(r),e.find(".menu-open > .nav-treeview").slideUp(),e.find(Nt).removeClass("menu-is-opening menu-open")}))},t.toggle=function(e){var t=n.default(e.currentTarget),a=t.parent(),r=a.find("> .nav-treeview");if(r.is(Bt)||(a.is(Lt)||(r=a.parent().find("> .nav-treeview")),r.is(Bt))){e.preventDefault();var i=t.parents(Lt).first();i.hasClass(Dt)?this.collapse(n.default(r),i):this.expand(n.default(r),i)}},t._setupListeners=function(){var e=this,t=void 0!==this._element.attr("id")?"#"+this._element.attr("id"):"";n.default(document).on("click",""+t+this._config.trigger,(function(t){e.toggle(t)}))},t._expandSidebar=function(){n.default("body").hasClass("sidebar-collapse")&&n.default(this._config.sidebarButtonSelector).PushMenu("expand")},e._jQueryInterface=function(t){return this.each((function(){var a=n.default(this).data(Ot),r=n.default.extend({},Pt,"object"==typeof t?t:n.default(this).data());if(a)if("string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}else void 0===t&&a._init();else a=new e(n.default(this),r),n.default(this).data(Ot,a),a._init()}))},e}();n.default(window).on("load.lte.treeview",(function(){n.default(jt).each((function(){Ft._jQueryInterface.call(n.default(this),"init")}))})),n.default.fn[At]=Ft._jQueryInterface,n.default.fn[At].Constructor=Ft,n.default.fn[At].noConflict=function(){return n.default.fn[At]=Mt,Ft._jQueryInterface},e.CardRefresh=l,e.CardWidget=C,e.ControlSidebar=N,e.DirectChat=F,e.Dropdown=U,e.ExpandableTable=Y,e.Fullscreen=re,e.IFrame=ke,e.Layout=Ne,e.NavbarSearch=mt,e.PushMenu=We,e.SidebarSearch=lt,e.Toasts=St,e.TodoList=$t,e.Treeview=Ft,Object.defineProperty(e,"__esModule",{value:!0})})),
|
7
|
-
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
|
8
|
-
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
9
|
-
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
10
|
-
*
|
11
|
-
* Version: 1.3.8
|
12
|
-
*
|
13
|
-
*/
|
14
|
-
function(e){e.fn.extend({slimScroll:function(n){var a=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},n);return this.each((function(){function r(t){if(u){var n=0;(t=t||window.event).wheelDelta&&(n=-t.wheelDelta/120),t.detail&&(n=t.detail/3),e(t.target||t.srcTarget||t.srcElement).closest("."+a.wrapperClass).is(y.parent())&&i(n,!0),t.preventDefault&&!v&&t.preventDefault(),v||(t.returnValue=!1)}}function i(e,t,n){v=!1;var r=y.outerHeight()-w.outerHeight();t&&(t=parseInt(w.css("top"))+e*parseInt(a.wheelStep)/100*w.outerHeight(),t=Math.min(Math.max(t,0),r),t=0<e?Math.ceil(t):Math.floor(t),w.css({top:t+"px"})),t=(g=parseInt(w.css("top"))/(y.outerHeight()-w.outerHeight()))*(y[0].scrollHeight-y.outerHeight()),n&&(e=(t=e)/y[0].scrollHeight*y.outerHeight(),e=Math.min(Math.max(e,0),r),w.css({top:e+"px"})),y.scrollTop(t),y.trigger("slimscrolling",~~t),s(),l()}function o(){p=Math.max(y.outerHeight()/y[0].scrollHeight*y.outerHeight(),30),w.css({height:p+"px"});var e=p==y.outerHeight()?"none":"block";w.css({display:e})}function s(){o(),clearTimeout(f),g==~~g?(v=a.allowPageScroll,m!=g&&y.trigger("slimscroll",0==~~g?"top":"bottom")):v=!1,m=g,p>=y.outerHeight()?v=!0:(w.stop(!0,!0).fadeIn("fast"),a.railVisible&&C.stop(!0,!0).fadeIn("fast"))}function l(){a.alwaysVisible||(f=setTimeout((function(){a.disableFadeOut&&u||c||d||(w.fadeOut("slow"),C.fadeOut("slow"))}),1e3))}var u,c,d,f,h,p,g,m,v=!1,y=e(this);if(y.parent().hasClass(a.wrapperClass)){var b=y.scrollTop(),w=y.siblings("."+a.barClass),C=y.siblings("."+a.railClass);if(o(),e.isPlainObject(n)){if("height"in n&&"auto"==n.height){y.parent().css("height","auto"),y.css("height","auto");var _=y.parent().parent().height();y.parent().css("height",_),y.css("height",_)}else"height"in n&&(_=n.height,y.parent().css("height",_),y.css("height",_));if("scrollTo"in n)b=parseInt(a.scrollTo);else if("scrollBy"in n)b+=parseInt(a.scrollBy);else if("destroy"in n)return w.remove(),C.remove(),void y.unwrap();i(b,!1,!0)}}else if(!e.isPlainObject(n)||!("destroy"in n)){a.height="auto"==a.height?y.parent().height():a.height,b=e("<div></div>").addClass(a.wrapperClass).css({position:"relative",overflow:"hidden",width:a.width,height:a.height}),y.css({overflow:"hidden",width:a.width,height:a.height});C=e("<div></div>").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),w=e("<div></div>").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius,WebkitBorderRadius:a.borderRadius,zIndex:99}),_="right"==a.position?{right:a.distance}:{left:a.distance};C.css(_),w.css(_),y.wrap(b),y.parent().append(w),y.parent().append(C),a.railDraggable&&w.bind("mousedown",(function(n){var a=e(document);return d=!0,t=parseFloat(w.css("top")),pageY=n.pageY,a.bind("mousemove.slimscroll",(function(e){currTop=t+e.pageY-pageY,w.css("top",currTop),i(0,w.position().top,!1)})),a.bind("mouseup.slimscroll",(function(e){d=!1,l(),a.unbind(".slimscroll")})),!1})).bind("selectstart.slimscroll",(function(e){return e.stopPropagation(),e.preventDefault(),!1})),C.hover((function(){s()}),(function(){l()})),w.hover((function(){c=!0}),(function(){c=!1})),y.hover((function(){u=!0,s(),l()}),(function(){u=!1,l()})),y.bind("touchstart",(function(e,t){e.originalEvent.touches.length&&(h=e.originalEvent.touches[0].pageY)})),y.bind("touchmove",(function(e){v||e.originalEvent.preventDefault(),e.originalEvent.touches.length&&(i((h-e.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),h=e.originalEvent.touches[0].pageY)})),o(),"bottom"===a.start?(w.css({top:y.outerHeight()-w.outerHeight()}),i(0,!0)):"top"!==a.start&&(i(e(a.start).position().top,null,!0),a.alwaysVisible||w.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",r,!1),this.addEventListener("mousewheel",r,!1)):document.attachEvent("onmousewheel",r)}})),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery),function(e,t,n){"use strict";!function e(t,n,a){function r(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){var n=t[o][1][e];return r(n||e)}),c,c.exports,e,t,n,a)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<a.length;o++)r(a[o]);return r}({1:[function(a,r,i){var o=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});var s,l,u,c,d=a("./modules/handle-dom"),f=a("./modules/utils"),h=a("./modules/handle-swal-dom"),p=a("./modules/handle-click"),g=o(a("./modules/handle-key")),m=o(a("./modules/default-params")),v=o(a("./modules/set-params"));i.default=u=c=function(){function a(e){var t=r;return t[e]===n?m.default[e]:t[e]}var r=arguments[0];if(d.addClass(t.body,"stop-scrolling"),h.resetInput(),r===n)return f.logStr("SweetAlert expects at least 1 attribute!"),!1;var i=f.extend({},m.default);switch(typeof r){case"string":i.title=r,i.text=arguments[1]||"",i.type=arguments[2]||"";break;case"object":if(r.title===n)return f.logStr('Missing "title" argument!'),!1;for(var o in i.title=r.title,m.default)i[o]=a(o);i.confirmButtonText=i.showCancelButton?"Confirm":m.default.confirmButtonText,i.confirmButtonText=a("confirmButtonText"),i.doneFunction=arguments[1]||null;break;default:return f.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof r),!1}v.default(i),h.fixVerticalPosition(),h.openModal(arguments[1]);for(var u=h.getModal(),y=u.querySelectorAll("button"),b=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],w=function(e){return p.handleButton(e,i,u)},C=0;C<y.length;C++)for(var _=0;_<b.length;_++){var S=b[_];y[C][S]=w}h.getOverlay().onclick=w,s=e.onkeydown;var T=function(e){return g.default(e,i,u)};e.onkeydown=T,e.onfocus=function(){setTimeout((function(){l!==n&&(l.focus(),l=n)}),0)},c.enableButtons()},u.setDefaults=c.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");f.extend(m.default,e)},u.close=c.close=function(){var a=h.getModal();d.fadeOut(h.getOverlay(),5),d.fadeOut(a,5),d.removeClass(a,"showSweetAlert"),d.addClass(a,"hideSweetAlert"),d.removeClass(a,"visible");var r=a.querySelector(".sa-icon.sa-success");d.removeClass(r,"animate"),d.removeClass(r.querySelector(".sa-tip"),"animateSuccessTip"),d.removeClass(r.querySelector(".sa-long"),"animateSuccessLong");var i=a.querySelector(".sa-icon.sa-error");d.removeClass(i,"animateErrorIcon"),d.removeClass(i.querySelector(".sa-x-mark"),"animateXMark");var o=a.querySelector(".sa-icon.sa-warning");return d.removeClass(o,"pulseWarning"),d.removeClass(o.querySelector(".sa-body"),"pulseWarningIns"),d.removeClass(o.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout((function(){var e=a.getAttribute("data-custom-class");d.removeClass(a,e)}),300),d.removeClass(t.body,"stop-scrolling"),e.onkeydown=s,e.previousActiveElement&&e.previousActiveElement.focus(),l=n,clearTimeout(a.timeout),!0},u.showInputError=c.showInputError=function(e){var t=h.getModal(),n=t.querySelector(".sa-input-error");d.addClass(n,"show");var a=t.querySelector(".sa-error-container");d.addClass(a,"show"),a.querySelector("p").innerHTML=e,setTimeout((function(){u.enableButtons()}),1),t.querySelector("input").focus()},u.resetInputError=c.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=h.getModal(),n=t.querySelector(".sa-input-error");d.removeClass(n,"show");var a=t.querySelector(".sa-error-container");d.removeClass(a,"show")},u.disableButtons=c.disableButtons=function(){var e=h.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!0,n.disabled=!0},u.enableButtons=c.enableButtons=function(){var e=h.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!1,n.disabled=!1},void 0!==e?e.sweetAlert=e.swal=u:f.logStr("SweetAlert is a frontend module!"),r.exports=i.default},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.default={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#8CD4F5",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1},t.exports=n.default},{}],3:[function(t,n,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t("./utils"),i=(t("./handle-swal-dom"),t("./handle-dom")),o=function(e,t){var n=!0;i.hasClass(e,"show-input")&&((n=e.querySelector("input").value)||(n="")),t.doneFunction(n),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},s=function(e,t){var n=String(t.doneFunction).replace(/\s/g,"");"function("===n.substring(0,9)&&")"!==n.substring(9,10)&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};a.default={handleButton:function(t,n,a){function l(e){p&&n.confirmButtonColor&&(h.style.backgroundColor=e)}var u,c,d,f=t||e.event,h=f.target||f.srcElement,p=-1!==h.className.indexOf("confirm"),g=-1!==h.className.indexOf("sweet-overlay"),m=i.hasClass(a,"visible"),v=n.doneFunction&&"true"===a.getAttribute("data-has-done-function");switch(p&&n.confirmButtonColor&&(u=n.confirmButtonColor,c=r.colorLuminance(u,-.04),d=r.colorLuminance(u,-.14)),f.type){case"mouseover":case"mouseup":l(c);break;case"mouseout":l(u);break;case"mousedown":l(d);break;case"focus":var y=a.querySelector("button.confirm"),b=a.querySelector("button.cancel");p?b.style.boxShadow="none":y.style.boxShadow="none";break;case"click":var w=a===h,C=i.isDescendant(a,h);if(!w&&!C&&m&&!n.allowOutsideClick)break;p&&v&&m?o(a,n):v&&m||g?s(a,n):i.isDescendant(a,h)&&"BUTTON"===h.tagName&&sweetAlert.close()}},handleConfirm:o,handleCancel:s},n.exports=a.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(n,a,r){Object.defineProperty(r,"__esModule",{value:!0});var i=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},o=function(e){e.style.opacity="",e.style.display="block"},s=function(e){e.style.opacity="",e.style.display="none"};r.hasClass=i,r.addClass=function(e,t){i(e,t)||(e.className+=" "+t)},r.removeClass=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(i(e,t)){for(;n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},r.escapeHtml=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},r._show=o,r.show=function(e){if(e&&!e.length)return o(e);for(var t=0;t<e.length;++t)o(e[t])},r._hide=s,r.hide=function(e){if(e&&!e.length)return s(e);for(var t=0;t<e.length;++t)s(e[t])},r.isDescendant=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},r.getTopMargin=function(e){e.style.left="-9999px",e.style.display="block";var t,n=e.clientHeight;return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((n+t)/2)+"px"},r.fadeIn=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,a=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity<1&&setTimeout(a,t)}));a()}e.style.display="block"},r.fadeOut=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,a=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,+e.style.opacity>0?setTimeout(a,t):e.style.display="none"}));a()},r.fireClick=function(n){if("function"==typeof MouseEvent){var a=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(a)}else if(t.createEvent){var r=t.createEvent("MouseEvents");r.initEvent("click",!1,!1),n.dispatchEvent(r)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},r.stopEventPropagation=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)}},{}],5:[function(t,a,r){Object.defineProperty(r,"__esModule",{value:!0});var i=t("./handle-dom"),o=t("./handle-swal-dom");r.default=function(t,a,r){var s=t||e.event,l=s.keyCode||s.which,u=r.querySelector("button.confirm"),c=r.querySelector("button.cancel"),d=r.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(l)){for(var f=s.target||s.srcElement,h=-1,p=0;p<d.length;p++)if(f===d[p]){h=p;break}9===l?(f=-1===h?u:h===d.length-1?d[0]:d[h+1],i.stopEventPropagation(s),f.focus(),a.confirmButtonColor&&o.setFocusStyle(f,a.confirmButtonColor)):13===l?("INPUT"===f.tagName&&(f=u,u.focus()),f=-1===h?u:n):27===l&&!0===a.allowEscapeKey?(f=c,i.fireClick(f,s)):f=n}},a.exports=r.default},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(n,a,r){var i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var o=n("./utils"),s=n("./handle-dom"),l=i(n("./default-params")),u=i(n("./injected-html")),c=function(){var e=t.createElement("div");for(e.innerHTML=u.default;e.firstChild;)t.body.appendChild(e.firstChild)},d=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=t.querySelector(".sweet-alert");return e||(c(),e=d()),e})),f=function(){var e=d();return e?e.querySelector("input"):void 0},h=function(){return t.querySelector(".sweet-overlay")},p=function(e){if(e&&13===e.keyCode)return!1;var t=d(),n=t.querySelector(".sa-input-error");s.removeClass(n,"show");var a=t.querySelector(".sa-error-container");s.removeClass(a,"show")};r.sweetAlertInitialize=c,r.getModal=d,r.getOverlay=h,r.getInput=f,r.setFocusStyle=function(e,t){var n=o.hexToRgb(t);e.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},r.openModal=function(n){var a=d();s.fadeIn(h(),10),s.show(a),s.addClass(a,"showSweetAlert"),s.removeClass(a,"hideSweetAlert"),e.previousActiveElement=t.activeElement,a.querySelector("button.confirm").focus(),setTimeout((function(){s.addClass(a,"visible")}),500);var r=a.getAttribute("data-timer");if("null"!==r&&""!==r){var i=n;a.timeout=setTimeout((function(){(i?"true"===a.getAttribute("data-has-done-function"):null)?i(null):sweetAlert.close()}),r)}},r.resetInput=function(){var e=d(),t=f();s.removeClass(e,"show-input"),t.value=l.default.inputValue,t.setAttribute("type",l.default.inputType),t.setAttribute("placeholder",l.default.inputPlaceholder),p()},r.resetInputError=p,r.fixVerticalPosition=function(){d().style.marginTop=s.getTopMargin(d())}},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.default='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">\n <span class="sa-x-mark">\n <span class="sa-line sa-left"></span>\n <span class="sa-line sa-right"></span>\n </span>\n </div><div class="sa-icon sa-warning">\n <span class="sa-body"></span>\n <span class="sa-dot"></span>\n </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n <span class="sa-line sa-tip"></span>\n <span class="sa-line sa-long"></span>\n\n <div class="sa-placeholder"></div>\n <div class="sa-fix"></div>\n </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n <p>Text</p>\n <fieldset>\n <input type="text" tabIndex="3" />\n <div class="sa-input-error"></div>\n </fieldset><div class="sa-error-container">\n <div class="icon">!</div>\n <p>Not valid!</p>\n </div><div class="sa-button-container">\n <button class="cancel" tabIndex="2">Cancel</button>\n <div class="sa-confirm-button-container">\n <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div></div>',t.exports=n.default},{}],8:[function(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});var r=e("./utils"),i=e("./handle-swal-dom"),o=e("./handle-dom"),s=["error","warning","info","success","input","prompt"];a.default=function(e){var t=i.getModal(),a=t.querySelector("h2"),l=t.querySelector("p"),u=t.querySelector("button.cancel"),c=t.querySelector("button.confirm");if(a.innerHTML=e.html?e.title:o.escapeHtml(e.title).split("\n").join("<br>"),l.innerHTML=e.html?e.text:o.escapeHtml(e.text||"").split("\n").join("<br>"),e.text&&o.show(l),e.customClass)o.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var d=t.getAttribute("data-custom-class");o.removeClass(t,d),t.setAttribute("data-custom-class","")}if(o.hide(t.querySelectorAll(".sa-icon")),e.type&&!r.isIE8()){var f=function(){for(var a=!1,r=0;r<s.length;r++)if(e.type===s[r]){a=!0;break}if(!a)return logStr("Unknown alert type: "+e.type),{v:!1};var l=n;-1!==["success","error","warning","info"].indexOf(e.type)&&(l=t.querySelector(".sa-icon.sa-"+e.type),o.show(l));var u=i.getInput();switch(e.type){case"success":o.addClass(l,"animate"),o.addClass(l.querySelector(".sa-tip"),"animateSuccessTip"),o.addClass(l.querySelector(".sa-long"),"animateSuccessLong");break;case"error":o.addClass(l,"animateErrorIcon"),o.addClass(l.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":o.addClass(l,"pulseWarning"),o.addClass(l.querySelector(".sa-body"),"pulseWarningIns"),o.addClass(l.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":u.setAttribute("type",e.inputType),u.value=e.inputValue,u.setAttribute("placeholder",e.inputPlaceholder),o.addClass(t,"show-input"),setTimeout((function(){u.focus(),u.addEventListener("keyup",swal.resetInputError)}),400)}}();if("object"==typeof f)return f.v}if(e.imageUrl){var h=t.querySelector(".sa-icon.sa-custom");h.style.backgroundImage="url("+e.imageUrl+")",o.show(h);var p=80,g=80;if(e.imageSize){var m=e.imageSize.toString().split("x"),v=m[0],y=m[1];v&&y?(p=v,g=y):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+e.imageSize)}h.setAttribute("style",h.getAttribute("style")+"width:"+p+"px; height:"+g+"px")}t.setAttribute("data-has-cancel-button",e.showCancelButton),e.showCancelButton?u.style.display="inline-block":o.hide(u),t.setAttribute("data-has-confirm-button",e.showConfirmButton),e.showConfirmButton?c.style.display="inline-block":o.hide(c),e.cancelButtonText&&(u.innerHTML=o.escapeHtml(e.cancelButtonText)),e.confirmButtonText&&(c.innerHTML=o.escapeHtml(e.confirmButtonText)),e.confirmButtonColor&&(c.style.backgroundColor=e.confirmButtonColor,c.style.borderLeftColor=e.confirmLoadingButtonColor,c.style.borderRightColor=e.confirmLoadingButtonColor,i.setFocusStyle(c,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var b=!!e.doneFunction;t.setAttribute("data-has-done-function",b),e.animation?"string"==typeof e.animation?t.setAttribute("data-animation",e.animation):t.setAttribute("data-animation","pop"):t.setAttribute("data-animation","none"),t.setAttribute("data-timer",e.timer)},t.exports=a.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(t,n,a){Object.defineProperty(a,"__esModule",{value:!0});a.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},a.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},a.isIE8=function(){return e.attachEvent&&!e.addEventListener},a.logStr=function(t){e.console&&e.console.log("SweetAlert: "+t)},a.colorLuminance=function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,a,r="#";for(a=0;3>a;a++)n=parseInt(e.substr(2*a,2),16),r+=("00"+(n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16))).substr(n.length);return r}},{}]},{},[1]),"function"==typeof define&&define.amd?define((function(){return sweetAlert})):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),function(e){"use strict";var t='[data-toggle="context"]',n=function(t,n){this.$element=e(t),this.before=n.before||this.before,this.onItem=n.onItem||this.onItem,this.scopes=n.scopes||null,n.target&&this.$element.data("target",n.target),this.listen()};n.prototype={constructor:n,show:function(t){var n,a,r={relatedTarget:this,target:t.currentTarget};if(!this.isDisabled()&&(this.closemenu(),!1!==this.before.call(this,t,e(t.currentTarget))))return(n=this.getMenu()).trigger(e.Event("show.bs.context",r)),a=this.getPosition(t,n),"li:not(.divider)",n.attr("style","").css(a).addClass("open").on("click.context.data-api","li:not(.divider)",e.proxy(this.onItem,this,e(t.currentTarget))).trigger("shown.bs.context",r),e("html").on("click.context.data-api",n.selector,e.proxy(this.closemenu,this)),!1},closemenu:function(t){var n,a;(n=this.getMenu()).hasClass("open")&&(a={relatedTarget:this},n.trigger(e.Event("hide.bs.context",a)),"li:not(.divider)",n.removeClass("open").off("click.context.data-api","li:not(.divider)").trigger("hidden.bs.context",a),e("html").off("click.context.data-api",n.selector),t&&t.stopPropagation())},keydown:function(e){27==e.which&&this.closemenu(e)},before:function(e){return!0},onItem:function(e){return!0},listen:function(){this.$element.on("contextmenu.context.data-api",this.scopes,e.proxy(this.show,this)),e("html").on("click.context.data-api",e.proxy(this.closemenu,this)),e("html").on("keydown.context.data-api",e.proxy(this.keydown,this))},destroy:function(){this.$element.off(".context.data-api").removeData("context"),e("html").off(".context.data-api")},isDisabled:function(){return this.$element.hasClass("disabled")||this.$element.attr("disabled")},getMenu:function(){var t,n=this.$element.data("target");return n||(n=(n=this.$element.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),(t=e(n))&&t.length?t:this.$element.find(n)},getPosition:function(t,n){var a,r,i,o=t.clientX,s=t.clientY,l=e(window).width(),u=e(window).height(),c=n.find(".dropdown-menu").outerWidth(),d=n.find(".dropdown-menu").outerHeight();return a=s+d>u?{top:s-d+e(window).scrollTop()}:{top:s+e(window).scrollTop()},r=o+c>l&&o-c>0?{left:o-c+e(window).scrollLeft()}:{left:o+e(window).scrollLeft()},i=n.offsetParent().offset(),r.left=r.left-i.left,a.top=a.top-i.top,e.extend({position:"absolute","z-index":9999},a,r)}},e.fn.contextmenu=function(t,a){return this.each((function(){var r=e(this),i=r.data("context"),o="object"==typeof t&&t;i||r.data("context",i=new n(r,o)),"string"==typeof t&&i[t].call(i,a)}))},e.fn.contextmenu.Constructor=n,e(document).on("contextmenu.context.data-api",(function(){e(t).each((function(){var t=e(this).data("context");t&&t.closemenu()}))})).on("contextmenu.context.data-api",t,(function(t){e(this).contextmenu("show",t),t.preventDefault(),t.stopPropagation()}))}(jQuery);
|
15
|
-
/*
|
16
|
-
* @version 1.4.0
|
17
|
-
* @date 2015-10-26
|
18
|
-
* @stability 3 - Stable
|
19
|
-
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
20
|
-
* @license MIT License
|
21
|
-
*/
|
22
|
-
var naturalCompare=function(e,t){var n,a,r=1,i=0,o=0,s=String.alphabet;function l(e,t,a){if(a){for(n=t;(a=l(e,n))<76&&a>65;)++n;return+e.slice(t-1,n)}return(a=s&&s.indexOf(e.charAt(t)))>-1?a+76:(a=e.charCodeAt(t)||0)<45||a>127?a:a<46?65:a<48?a-1:a<58?a+18:a<65?a-11:a<91?a+11:a<97?a-37:a<123?a+5:a-63}if((e+="")!=(t+=""))for(;r;)if(a=l(e,i++),r=l(t,o++),a<76&&r<76&&a>66&&r>66&&(a=l(e,i,i),r=l(t,o,i=n),o=n),a!=r)return a<r?-1:1;return 0};try{module.exports=naturalCompare}catch(e){String.naturalCompare=naturalCompare}
|
23
|
-
/*!
|
24
|
-
* angular-translate - v2.19.0 - 2021-09-02
|
25
|
-
*
|
26
|
-
* Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT
|
27
|
-
*/function Base64(){var e,t;angular.module("utf8-base64",[]).constant("base64",(e={alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lookup:null,ie:/MSIE /.test(navigator.userAgent),ieo:/MSIE [67]/.test(navigator.userAgent),encode:function(t){var n,a,r,i,o=e.toUtf8(t),s=-1,l=o.length,u=[,,,];if(e.ie){for(n=[];++s<l;)a=o[s],r=o[++s],u[0]=a>>2,u[1]=(3&a)<<4|r>>4,isNaN(r)?u[2]=u[3]=64:(i=o[++s],u[2]=(15&r)<<2|i>>6,u[3]=isNaN(i)?64:63&i),n.push(e.alphabet.charAt(u[0]),e.alphabet.charAt(u[1]),e.alphabet.charAt(u[2]),e.alphabet.charAt(u[3]));return n.join("")}for(n="";++s<l;)a=o[s],r=o[++s],u[0]=a>>2,u[1]=(3&a)<<4|r>>4,isNaN(r)?u[2]=u[3]=64:(i=o[++s],u[2]=(15&r)<<2|i>>6,u[3]=isNaN(i)?64:63&i),n+=e.alphabet[u[0]]+e.alphabet[u[1]]+e.alphabet[u[2]]+e.alphabet[u[3]];return n},decode:function(t){if((t=t.replace(/\s/g,"")).length%4)throw new Error("InvalidLengthError: decode failed: The string to be decoded is not the correct length for a base64 encoded string.");if(/[^A-Za-z0-9+\/=\s]/g.test(t))throw new Error("InvalidCharacterError: decode failed: The string contains characters invalid in a base64 encoded string.");var n,a=e.fromUtf8(t),r=0,i=a.length;if(e.ieo){for(n=[];r<i;)a[r]<128?n.push(String.fromCharCode(a[r++])):a[r]>191&&a[r]<224?n.push(String.fromCharCode((31&a[r++])<<6|63&a[r++])):n.push(String.fromCharCode((15&a[r++])<<12|(63&a[r++])<<6|63&a[r++]));return n.join("")}for(n="";r<i;)a[r]<128?n+=String.fromCharCode(a[r++]):a[r]>191&&a[r]<224?n+=String.fromCharCode((31&a[r++])<<6|63&a[r++]):n+=String.fromCharCode((15&a[r++])<<12|(63&a[r++])<<6|63&a[r++]);return n},toUtf8:function(e){var t,n=-1,a=e.length,r=[];if(/^[\x00-\x7f]*$/.test(e))for(;++n<a;)r.push(e.charCodeAt(n));else for(;++n<a;)(t=e.charCodeAt(n))<128?r.push(t):t<2048?r.push(t>>6|192,63&t|128):r.push(t>>12|224,t>>6&63|128,63&t|128);return r},fromUtf8:function(t){var n,a=-1,r=[],i=[,,,];if(!e.lookup){for(n=e.alphabet.length,e.lookup={};++a<n;)e.lookup[e.alphabet.charAt(a)]=a;a=-1}for(n=t.length;++a<n&&(i[0]=e.lookup[t.charAt(a)],i[1]=e.lookup[t.charAt(++a)],r.push(i[0]<<2|i[1]>>4),i[2]=e.lookup[t.charAt(++a)],64!==i[2])&&(r.push((15&i[1])<<4|i[2]>>2),i[3]=e.lookup[t.charAt(++a)],64!==i[3]);)r.push((3&i[2])<<6|i[3]);return r}},t={decode:function(t){var n=(t=t.replace(/-/g,"+").replace(/_/g,"/")).length%4;if(n){if(1===n)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");t+=new Array(5-n).join("=")}return e.decode(t)},encode:function(t){return e.encode(t).replace(/\+/g,"-").replace(/\//g,"_").split("=",1)[0]}},{decode:e.decode,encode:e.encode,urldecode:t.decode,urlencode:t.encode}))}!function(e,t){"function"==typeof define&&define.amd?define([],(function(){return t()})):"object"==typeof module&&module.exports?module.exports=t():t()}(0,(function(){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),a=function(){var a=e.preferredLanguage();angular.isString(a)?e.use(a):n.put(t,e.use())};a.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t)).catch(a):a():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(e,t,n,a){"use strict";var r,i,o,s,l,u,c,d,f,h,p,g,m,v,y,b,w={},C=[],_=e,S=[],T="translate-cloak",x=!1,k=!1,I=!0,E=".",$=!1,A=!1,O=0,M=!0,L="default",B={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return 1<n.length?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");switch(n.length){case 1:n[0]=n[0].toLowerCase();break;case 2:n[0]=n[0].toLowerCase(),4===n[1].length?n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase():n[1]=n[1].toUpperCase();break;case 3:n[0]=n[0].toLowerCase(),n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase(),n[2]=n[2].toUpperCase();break;default:return t}return n.join("-")},"iso639-1":function(e){return(e||"").split("_").join("-").split("-")[0].toLowerCase()}},N=function(){if(angular.isFunction(a.getLocale))return a.getLocale();var e,n,r=t.$get().navigator,i=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(r.languages))for(e=0;e<r.languages.length;e++)if((n=r.languages[e])&&n.length)return n;for(e=0;e<i.length;e++)if((n=r[i[e]])&&n.length)return n;return null};N.displayName="angular-translate/service: getFirstBrowserLanguage";var j=function(){var e=N()||"";return B[L]&&(e=B[L](e)),e};j.displayName="angular-translate/service: getLocale";var D=function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},P=function(){return this.toString().replace(/^\s+|\s+$/g,"")},F=function(e){return angular.isString(e)?e.toLowerCase():e},R=function(e){if(e){for(var t,n=[],a=F(e),r=0,o=C.length;r<o;r++)n.push(F(C[r]));if(-1<(r=D(n,a)))return C[r];if(i)for(var s in i)if(i.hasOwnProperty(s)){var l=!1,u=Object.prototype.hasOwnProperty.call(i,s)&&F(s)===F(e);if("*"===s.slice(-1)&&(l=F(s.slice(0,-1))===F(e.slice(0,s.length-1))),(u||l)&&(t=i[s],-1<D(n,F(t))))return t}var c=e.split("_");return 1<c.length&&-1<D(n,F(c[0]))?c[0]:void 0}},z=function(e,t){if(!e&&!t)return w;if(e&&!t){if(angular.isString(e))return w[e]}else angular.isObject(w[e])||(w[e]={}),angular.extend(w[e],H(t));return this};this.translations=z,this.cloakClassName=function(e){return e?(T=e,this):T},this.allowNamespaces=function(e){return void 0===e?I:(I=e,this)},this.nestedObjectDelimeter=function(e){return e?(E=e,this):E};var H=function(e,t,n,a){var r,i,o;if(t||(t=[]),n||(n={}),!I)return e;for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o=e[r],angular.isObject(o)?H(o,t.concat(r),n,r):(i=t.length?""+t.join(E)+E+r:r,t.length&&r===a&&(n[""+t.join(E)]="@:"+i),n[i]=o));return n};H.displayName="flatObject",this.addInterpolation=function(e){return S.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return h=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(q(e),this):r};var q=function(e){return e&&(r=e),r};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(m=e,this):m},this.translationNotFoundIndicatorRight=function(e){return e?(v=e,this):v},this.fallbackLanguage=function(e){return U(e),this};var U=function(e){return e?(angular.isString(e)?(s=!0,o=[e]):angular.isArray(e)&&(s=!1,o=e),angular.isString(r)&&D(o,r)<0&&o.push(r),this):s?o[0]:o};this.use=function(e){if(e){if(!w[e]&&!p)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return l=e,this}return l},this.resolveClientLocale=function(){return j()};var Q=function(e){return e?(_=e,this):d?d+_:_};this.storageKey=Q,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return p=e,g=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return c=e,this},this.storagePrefix=function(e){return e?(d=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return f=e,this},this.usePostCompiling=function(e){return x=!!e,this},this.forceAsyncReload=function(e){return k=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},L=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():j();return r=C.length&&R(t)||t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(C=e,t&&(i=t),this):C},this.useLoaderCache=function(e){return!1===e?y=void 0:!0===e?y=!0:void 0===e?y="$translationCache":e&&(y=e),this},this.directivePriority=function(e){return void 0===e?O:(O=e,this)},this.statefulFilter=function(e){return void 0===e?M:(M=e,this)},this.postProcess=function(e){return b=e||void 0,this},this.keepContent=function(e){return A=!!e,this},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,a){var i,d,L,B=t.get(h||"$translateDefaultInterpolation"),N=!1,F={},V={},W=function(e,t,n,s,u,f){!l&&r&&(l=r);var h=u&&u!==l?R(u)||u:l;if(u&&oe(u),angular.isArray(e))return function(e){for(var r={},i=[],o=function(e){var i=a.defer(),o=function(t){r[e]=t,i.resolve([e,t])};return W(e,t,n,s,u,f).then(o,o),i.promise},l=0,c=e.length;l<c;l++)i.push(o(e[l]));return a.all(i).then((function(){return r}))}(e);var p=a.defer();if(!e)throw new TypeError("translationId must be a not empty string");e=P.apply(e);var g=function(){var e=V[h]||V[r];if(d=0,c&&!e){var t=i.get(_);if(e=V[t],o&&o.length){var n=D(o,t);d=0===n?1:0,D(o,r)<0&&o.push(r)}}return e}();if(g){var m=function(){u||(h=l),ae(e,t,n,s,h,f).then(p.resolve,p.reject)};m.displayName="promiseResolved",g.finally(m).catch(angular.noop)}else ae(e,t,n,s,h,f).then(p.resolve,p.reject);return p.promise},X=function(e){return m&&(e=[m,e].join(" ")),v&&(e=[e,v].join(" ")),e},G=function(e){l=e,c&&i.put(W.storageKey(),l),n.$emit("$translateChangeSuccess",{language:e}),B.setLocale(l);var t=function(e,t){F[t].setLocale(l)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(F,t),n.$emit("$translateChangeEnd",{language:e})},K=function(e){if(!e)throw"No language key specified for loading.";var r=a.defer();n.$emit("$translateLoadingStart",{language:e}),N=!0;var i=y;"string"==typeof i&&(i=t.get(i));var o=angular.extend({},g,{key:e,$http:angular.extend({},{cache:i},g.$http)}),s=function(t){var a={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,(function(e){angular.extend(a,H(e))})):angular.extend(a,H(t)),N=!1,r.resolve({key:e,table:a}),n.$emit("$translateLoadingEnd",{language:e})};s.displayName="onLoaderSuccess";var l=function(e){n.$emit("$translateLoadingError",{language:e}),r.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return l.displayName="onLoaderError",t.get(p)(o).then(s,l),r.promise};if(c&&(!(i=t.get(c)).get||!i.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(S.length){var Y=function(e){var n=t.get(e);n.setLocale(r||l),F[n.getInterpolationIdentifier()]=n};Y.displayName="interpolationFactoryAdder",angular.forEach(S,Y)}var Z=function(e,t,n,r,i){var o=a.defer(),s=function(a){if(Object.prototype.hasOwnProperty.call(a,t)&&null!==a[t]){r.setLocale(e);var s=a[t];if("@:"===s.substr(0,2))Z(e,s.substr(2),n,r,i).then(o.resolve,o.reject);else{var u=r.interpolate(a[t],n,"service",i,t);u=ie(t,a[t],u,n,e),o.resolve(u)}r.setLocale(l)}else o.reject()};return s.displayName="fallbackTranslationResolver",function(e){var t=a.defer();if(Object.prototype.hasOwnProperty.call(w,e))t.resolve(w[e]);else if(V[e]){var n=function(e){z(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",V[e].then(n,t.reject)}else t.reject();return t.promise}(e).then(s,o.reject),o.promise},J=function(e,t,n,a,r){var i,o=w[e];if(o&&Object.prototype.hasOwnProperty.call(o,t)&&null!==o[t]){if(a.setLocale(e),i=a.interpolate(o[t],n,"filter",r,t),i=ie(t,o[t],i,n,e,r),!angular.isString(i)&&angular.isFunction(i.$$unwrapTrustedValue)){var s=i.$$unwrapTrustedValue();if("@:"===s.substr(0,2))return J(e,s.substr(2),n,a,r)}else if("@:"===i.substr(0,2))return J(e,i.substr(2),n,a,r);a.setLocale(l)}return i},ee=function(e,n,a,r){return f?t.get(f)(e,l,n,a,r):e},te=function(e,t,n,r,i,s){var l=a.defer();if(e<o.length){var u=o[e];Z(u,t,n,r,s).then((function(e){l.resolve(e)}),(function(){return te(e+1,t,n,r,i,s).then(l.resolve,l.reject)}))}else if(i)l.resolve(i);else{var c=ee(t,n,i);f&&c?l.resolve(c):l.reject(X(t))}return l.promise},ne=function(e,t,n,a,r){var i;if(e<o.length){var s=o[e];(i=J(s,t,n,a,r))||""===i||(i=ne(e+1,t,n,a))}return i},ae=function(e,t,n,r,i,s){var l,u,c,h,p,g=a.defer(),m=i?w[i]:w,v=n?F[n]:B;if(m&&Object.prototype.hasOwnProperty.call(m,e)&&null!==m[e]){var y=m[e];if("@:"===y.substr(0,2))W(y.substr(2),t,n,r,i,s).then(g.resolve,g.reject);else{var b=v.interpolate(y,t,"service",s,e);b=ie(e,y,b,t,i),g.resolve(b)}}else{var C;f&&!N&&(C=ee(e,t,r)),i&&o&&o.length?(l=e,u=t,c=v,h=r,p=s,te(0<L?L:d,l,u,c,h,p)).then((function(e){g.resolve(e)}),(function(e){g.reject(X(e))})):f&&!N&&C?r?g.resolve(r):g.resolve(C):r?g.resolve(r):g.reject(X(e))}return g.promise},re=function(e,t,n,a,r){var i,s=a?w[a]:w,l=B;if(F&&Object.prototype.hasOwnProperty.call(F,n)&&(l=F[n]),s&&Object.prototype.hasOwnProperty.call(s,e)&&null!==s[e]){var u=s[e];i="@:"===u.substr(0,2)?re(u.substr(2),t,n,a,r):(i=l.interpolate(u,t,"filter",r,e),ie(e,u,i,t,a,r))}else{var c;f&&!N&&(c=ee(e,t,r)),i=a&&o&&o.length?ne((d=0)<L?L:d,e,t,l,r):f&&!N&&c?c:X(e)}return i},ie=function(e,n,a,r,i,o){var s=b;return s&&("string"==typeof s&&(s=t.get(s)),s)?s(e,n,a,r,i,o):a},oe=function(e){w[e]||!p||V[e]||(V[e]=K(e).then((function(e){return z(e.key,e.table),e})))};W.preferredLanguage=function(e){return e&&q(e),r},W.cloakClassName=function(){return T},W.allowNamespaces=function(){return I},W.nestedObjectDelimeter=function(){return E},W.fallbackLanguage=function(e){if(null!=e){if(U(e),p&&o&&o.length)for(var t=0,n=o.length;t<n;t++)V[o[t]]||(V[o[t]]=K(o[t]));W.use(W.use())}return s?o[0]:o},W.useFallbackLanguage=function(e){if(null!=e)if(e){var t=D(o,e);-1<t&&(L=t)}else L=0},W.proposedLanguage=function(){return u},W.storage=function(){return i},W.negotiateLocale=R,W.use=function(e){if(!e)return l;var t=a.defer();t.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:e});var r=R(e);return 0<C.length&&!r?a.reject(e):(r&&(e=r),u=e,!k&&w[e]||!p||V[e]?V[e]?V[e].then((function(e){return u===e.key&&G(e.key),t.resolve(e.key),e}),(function(e){return!l&&o&&0<o.length&&o[0]!==e?W.use(o[0]).then(t.resolve,t.reject):t.reject(e)})):(t.resolve(e),G(e)):(V[e]=K(e).then((function(n){return z(n.key,n.table),t.resolve(n.key),u===e&&G(n.key),n}),(function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),a.reject(e)})),V[e].finally((function(){var t;u===(t=e)&&(u=void 0),V[t]=void 0})).catch(angular.noop)),t.promise)},W.resolveClientLocale=function(){return j()},W.storageKey=function(){return Q()},W.isPostCompilingEnabled=function(){return x},W.isForceAsyncReloadEnabled=function(){return k},W.isKeepContent=function(){return A},W.refresh=function(e){if(!p)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:e});var t=a.defer(),r={};function i(e){var t=K(e);return(V[e]=t).then((function(t){w[e]={},z(e,t.table),r[e]=!0}),angular.noop),t}if(t.promise.then((function(){for(var e in w)w.hasOwnProperty(e)&&(e in r||delete w[e]);l&&G(l)}),angular.noop).finally((function(){n.$emit("$translateRefreshEnd",{language:e})})),e)w[e]?i(e).then(t.resolve,t.reject):t.reject();else{var s=o&&o.slice()||[];l&&-1===s.indexOf(l)&&s.push(l),a.all(s.map(i)).then(t.resolve,t.reject)}return t.promise},W.instant=function(e,t,n,a,i){var s=a&&a!==l?R(a)||a:l;if(null===e||angular.isUndefined(e))return e;if(a&&oe(a),angular.isArray(e)){for(var u={},c=0,d=e.length;c<d;c++)u[e[c]]=W.instant(e[c],t,n,a,i);return u}if(angular.isString(e)&&e.length<1)return e;e&&(e=P.apply(e));var h,p,g=[];r&&g.push(r),s&&g.push(s),o&&o.length&&(g=g.concat(o));for(var y=0,b=g.length;y<b;y++){var C=g[y];if(w[C]&&void 0!==w[C][e]&&(h=re(e,t,n,s,i)),void 0!==h)break}return h||""===h||(m||v?h=X(e):(h=B.interpolate(e,t,"filter",i),f&&!N&&(p=ee(e,t,i)),f&&!N&&p&&(h=p))),h},W.versionInfo=function(){return"2.19.0"},W.loaderCache=function(){return y},W.directivePriority=function(){return O},W.statefulFilter=function(){return M},W.isReady=function(){return $};var se=a.defer();se.promise.then((function(){$=!0})),W.onReady=function(e){var t=a.defer();return angular.isFunction(e)&&t.promise.then(e),$?t.resolve():se.promise.then(t.resolve),t.promise},W.getAvailableLanguageKeys=function(){return 0<C.length?C:null},W.getTranslationTable=function(e){return(e=e||W.use())&&w[e]?angular.copy(w[e]):null};var le=n.$on("$translateReady",(function(){se.resolve(),le(),le=null})),ue=n.$on("$translateChangeEnd",(function(){se.resolve(),ue(),ue=null}));if(p){if(angular.equals(w,{})&&W.use()&&W.use(W.use()),o&&o.length)for(var ce=function(e){return z(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},de=0,fe=o.length;de<fe;de++){var he=o[de];!k&&w[he]||(V[he]=K(he).then(ce))}}else n.$emit("$translateReady",{language:W.use()});return W}]}function n(e,t){"use strict";var n={setLocale:function(e){},getInterpolationIdentifier:function(){return"default"},useSanitizeValueStrategy:function(e){return t.useStrategy(e),this},interpolate:function(n,a,r,i,o){var s;return a=a||{},a=t.sanitize(a,"params",i,r),angular.isNumber(n)?""+n:angular.isString(n)?(s=e(n)(a),t.sanitize(s,"text",i,r)):""}};return n}function a(e,t,n,a,r){"use strict";var i=function(e){return angular.isString(e)?e.toLowerCase():e};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(o,s){var l=s.translateValues?s.translateValues:void 0,u=s.translateInterpolation?s.translateInterpolation:void 0,c=s.translateSanitizeStrategy?s.translateSanitizeStrategy:void 0,d=o[0].outerHTML.match(/translate-value-+/i),f="^(.*)("+t.startSymbol()+".*"+t.endSymbol()+")(.*)",h="^(.*)"+t.startSymbol()+"(.*)"+t.endSymbol()+"(.*)";return function(o,p,g){o.interpolateParams={},o.preText="",o.postText="",o.translateNamespace=function e(t){return t.translateNamespace?t.translateNamespace:t.$parent?e(t.$parent):void 0}(o);var m={},v=function(e){if(angular.isFunction(v._unwatchOld)&&(v._unwatchOld(),v._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var n=function(){return this.toString().replace(/^\s+|\s+$/g,"")}.apply(p.text()).replace(/\n/g," "),a=n.match(f);if(angular.isArray(a)){o.preText=a[1],o.postText=a[3],m.translate=t(a[2])(o.$parent);var r=n.match(h);angular.isArray(r)&&r[2]&&r[2].length&&(v._unwatchOld=o.$watch(r[2],(function(e){m.translate=e,S()})))}else m.translate=n||void 0}else m.translate=e;S()},y=function(e){g.$observe(e,(function(t){m[e]=t,S()}))};!function(e,t,n){if(t.translateValues&&angular.extend(e,a(t.translateValues)(o.$parent)),d)for(var r in n)Object.prototype.hasOwnProperty.call(t,r)&&"translateValue"===r.substr(0,14)&&"translateValues"!==r&&(e[i(r.substr(14,1))+r.substr(15)]=n[r])}(o.interpolateParams,g,s);var b=!0;for(var w in g.$observe("translate",(function(e){void 0===e?v(""):""===e&&b||(m.translate=e,S()),b=!1})),g)g.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&13<w.length&&y(w);if(g.$observe("translateDefault",(function(e){o.defaultText=e,S()})),c&&g.$observe("translateSanitizeStrategy",(function(e){o.sanitizeStrategy=a(e)(o.$parent),S()})),l&&g.$observe("translateValues",(function(e){e&&o.$parent.$watch((function(){angular.extend(o.interpolateParams,a(e)(o.$parent))}))})),d){var C=function(e){g.$observe(e,(function(t){var n=i(e.substr(14,1))+e.substr(15);o.interpolateParams[n]=t}))};for(var _ in g)Object.prototype.hasOwnProperty.call(g,_)&&"translateValue"===_.substr(0,14)&&"translateValues"!==_&&C(_)}var S=function(){for(var e in m)m.hasOwnProperty(e)&&void 0!==m[e]&&T(e,m[e],o,o.interpolateParams,o.defaultText,o.translateNamespace)},T=function(t,n,a,r,i,o){n?(o&&"."===n.charAt(0)&&(n=o+n),e(n,r,u,i,a.translateLanguage,a.sanitizeStrategy).then((function(e){x(e,a,!0,t)}),(function(e){x(e,a,!1,t)}))):x(n,a,!1,t)},x=function(t,a,r,i){if(r||void 0!==a.defaultText&&(t=a.defaultText),"translate"===i){(r||!r&&!e.isKeepContent()&&void 0===g.translateKeepContent)&&p.empty().append(a.preText+t+a.postText);var o=e.isPostCompilingEnabled(),l=void 0!==s.translateCompile,u=l&&"false"!==s.translateCompile;(o&&!l||u)&&n(p.contents())(a)}else{var c=g.$attr[i];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),p.attr(c,t)}};(l||d||g.translateDefault)&&o.$watch("interpolateParams",S,!0),o.$on("translateLanguageChanged",S);var k=r.$on("$translateChangeSuccess",S);p.text().length?g.translate?v(g.translate):v(""):g.translate&&v(g.translate),S(),o.$on("$destroy",k)}}}}function r(e,t){"use strict";return{restrict:"A",priority:e.directivePriority(),link:function(n,a,r){var o,s,l,u={},c=function(){angular.forEach(o,(function(t,i){t&&(u[i]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),e(t,s,r.translateInterpolation,void 0,n.translateLanguage,l).then((function(e){a.attr(i,e)}),(function(e){a.attr(i,e)})))})),angular.forEach(u,(function(e,t){o[t]||(a.removeAttr(t),delete u[t])}))};i(n,r.translateAttr,(function(e){o=e}),c),i(n,r.translateValues,(function(e){s=e}),c),i(n,r.translateSanitizeStrategy,(function(e){l=e}),c),r.translateValues&&n.$watch(r.translateValues,c,!0),n.$on("translateLanguageChanged",c);var d=t.$on("$translateChangeSuccess",c);c(),n.$on("$destroy",d)}}}function i(e,t,n,a){"use strict";t&&("::"===t.substr(0,2)?t=t.substr(2):e.$watch(t,(function(e){n(e),a()}),!0),n(e.$eval(t)))}function o(e,t){"use strict";return{compile:function(n){var a=function(t){t.addClass(e.cloakClassName())};return a(n),function(n,r,i){var o=function(t){t.removeClass(e.cloakClassName())}.bind(this,r),s=a.bind(this,r);i.translateCloak&&i.translateCloak.length?(i.$observe("translateCloak",(function(t){e(t).then(o,s)})),t.$on("$translateChangeSuccess",(function(){e(i.translateCloak).then(o,s)}))):e.onReady(o)}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=function e(t){return t.translateNamespace?t.translateNamespace:t.$parent?e(t.$parent):void 0}(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function l(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",(function(t){e.translateLanguage=t})),e.$watch("translateLanguage",(function(){e.$broadcast("translateLanguageChanged")}))}}}}function u(e,t){"use strict";var n=function(n,a,r,i){if(!angular.isObject(a)){var o=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};a=e(a)(o)}return t.instant(n,a,r,i)};return t.statefulFilter()&&(n.$stateful=!0),n}function c(e){"use strict";return e("translations")}return e.$inject=["$translate"],t.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.$inject=["$interpolate","$translateSanitization"],a.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],r.$inject=["$translate","$rootScope"],o.$inject=["$translate","$rootScope"],u.$inject=["$parse","$translate"],c.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",(function(){"use strict";var e,t,n,a=null,r=!1,i=!1;(n={sanitize:function(e,t){return"text"===t&&(e=s(e)),e},escape:function(e,t){return"text"===t&&(e=o(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=u(e,s)),e},escapeParameters:function(e,t){return"params"===t&&(e=u(e,o)),e},sce:function(e,t,n){return"text"===t?e=l(e):"params"===t&&"filter"!==n&&(e=u(e,o)),e},sceParameters:function(e,t){return"params"===t&&(e=u(e,l)),e}}).escaped=n.escapeParameters,this.addStrategy=function(e,t){return n[e]=t,this},this.removeStrategy=function(e){return delete n[e],this},this.useStrategy=function(e){return r=!0,a=e,this},this.$get=["$injector","$log",function(o,s){var l,u={};return o.has("$sanitize")&&(e=o.get("$sanitize")),o.has("$sce")&&(t=o.get("$sce")),{useStrategy:(l=this,function(e){l.useStrategy(e)}),sanitize:function(e,t,l,c){if(a||r||i||(s.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),i=!0),l||null===l||(l=a),!l)return e;c||(c="service");var d,f,h,p,g=angular.isArray(l)?l:[l];return d=e,f=t,h=c,p=g,angular.forEach(p,(function(e){if(angular.isFunction(e))d=e(d,f,h);else if(angular.isFunction(n[e]))d=n[e](d,f,h);else{if(!angular.isString(n[e]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+e+"'");if(!u[n[e]])try{u[n[e]]=o.get(n[e])}catch(t){throw u[n[e]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+e+"'")}d=u[n[e]](d,f,h)}})),d}}}];var o=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},s=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return e(t)},l=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return t.trustAsHtml(e)},u=function(e,t,n){if(angular.isDate(e))return e;if(angular.isObject(e)){var a=angular.isArray(e)?[]:{};if(n){if(-1<n.indexOf(e))throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(e),angular.forEach(e,(function(e,r){angular.isFunction(e)||(a[r]=u(e,t,n))})),n.splice(-1,1),a}return angular.isNumber(e)||!0===e||!1===e||angular.isUndefined(e)||null===e?e:t(e)}})),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",t),t.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",n),n.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",a),a.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",r),r.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",o),o.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",s),s.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",l),l.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",u),u.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",c),c.displayName="$translationCache","pascalprecht.translate"})),function(){"use strict";function e(e){return angular.isUndefined(e)||null===e}function t(t,n){if(void 0===n){if("function"!=typeof require)throw new Error("Moment cannot be found by angular-moment! Please reference to: https://github.com/urish/angular-moment");n=function(){try{return require("moment")}catch(e){throw new Error("Please install moment via npm. Please reference to: https://github.com/urish/angular-moment")}}()}return t.module("angularMoment",[]).constant("angularMomentConfig",{preprocess:null,timezone:null,format:null,statefulFilters:!0}).constant("moment",n).constant("amTimeAgoConfig",{withoutSuffix:!1,serverTime:null,titleFormat:null,fullDateThreshold:null,fullDateFormat:null,fullDateThresholdUnit:"day"}).directive("amTimeAgo",["$window","moment","amMoment","amTimeAgoConfig",function(n,a,r,i){return function(o,s,l){function u(){var e;if(g)e=g;else if(i.serverTime){var t=(new Date).getTime()-_+i.serverTime;e=a(t)}else e=a();return e}function c(){m&&(n.clearTimeout(m),m=null)}function d(e){var t=u().diff(e,C),a=b&&t>=b;if(a?s.text(e.format(w)):s.text(e.from(u(),v)),y&&x&&s.attr("title",e.format(y)),!a){var r=Math.abs(u().diff(e,"minute")),i=3600;r<1?i=1:r<60?i=30:r<180&&(i=300),m=n.setTimeout((function(){d(e)}),1e3*i)}}function f(e){T&&s.attr("datetime",e)}function h(){if(c(),p){var e=r.preprocessDate(p);d(e),f(e.toISOString())}}var p,g,m=null,v=i.withoutSuffix,y=i.titleFormat,b=i.fullDateThreshold,w=i.fullDateFormat,C=i.fullDateThresholdUnit,_=(new Date).getTime(),S=l.amTimeAgo,T="TIME"===s[0].nodeName.toUpperCase(),x=!s.attr("title");o.$watch(S,(function(t){return e(t)||""===t?(c(),void(p&&(s.text(""),f(""),p=null))):(p=t,void h())})),t.isDefined(l.amFrom)&&o.$watch(l.amFrom,(function(t){g=e(t)||""===t?null:a(t),h()})),t.isDefined(l.amWithoutSuffix)&&o.$watch(l.amWithoutSuffix,(function(e){"boolean"==typeof e?(v=e,h()):v=i.withoutSuffix})),l.$observe("amFullDateThreshold",(function(e){b=e,h()})),l.$observe("amFullDateFormat",(function(e){w=e,h()})),l.$observe("amFullDateThresholdUnit",(function(e){C=e,h()})),o.$on("$destroy",(function(){c()})),o.$on("amMoment:localeChanged",(function(){h()}))}}]).service("amMoment",["moment","$rootScope","$log","angularMomentConfig",function(e,n,a,r){var i=null;this.changeLocale=function(a,r){var i=e.locale(a,r);return t.isDefined(a)&&n.$broadcast("amMoment:localeChanged"),i},this.changeTimezone=function(t){e.tz&&e.tz.setDefault?(e.tz.setDefault(t),n.$broadcast("amMoment:timezoneChanged")):a.warn("angular-moment: changeTimezone() works only with moment-timezone.js v0.3.0 or greater."),r.timezone=t,i=t},this.preprocessDate=function(t){return i!==r.timezone&&this.changeTimezone(r.timezone),r.preprocess?r.preprocess(t):e(!isNaN(parseFloat(t))&&isFinite(t)?parseInt(t,10):t)}}]).filter("amParse",["moment",function(e){return function(t,n){return e(t,n)}}]).filter("amFromUnix",["moment",function(e){return function(t){return e.unix(t)}}]).filter("amUtc",["moment",function(e){return function(t){return e.utc(t)}}]).filter("amUtcOffset",["amMoment",function(e){return function(t,n){return e.preprocessDate(t).utcOffset(n)}}]).filter("amLocal",["moment",function(e){return function(t){return e.isMoment(t)?t.local():null}}]).filter("amTimezone",["amMoment","angularMomentConfig","$log",function(e,t,n){return function(t,a){var r=e.preprocessDate(t);return a?r.tz?r.tz(a):(n.warn("angular-moment: named timezone specified but moment.tz() is undefined. Did you forget to include moment-timezone.js ?"),r):r}}]).filter("amCalendar",["moment","amMoment","angularMomentConfig",function(t,n,a){function r(t,a,r){if(e(t))return"";var i=n.preprocessDate(t);return i.isValid()?i.calendar(a,r):""}return r.$stateful=a.statefulFilters,r}]).filter("amDifference",["moment","amMoment","angularMomentConfig",function(t,n,a){function r(a,r,i,o){if(e(a))return"";var s=n.preprocessDate(a),l=e(r)?t():n.preprocessDate(r);return s.isValid()&&l.isValid()?s.diff(l,i,o):""}return r.$stateful=a.statefulFilters,r}]).filter("amDateFormat",["moment","amMoment","angularMomentConfig",function(t,n,a){function r(t,a){if(e(t))return"";var r=n.preprocessDate(t);return r.isValid()?r.format(a):""}return r.$stateful=a.statefulFilters,r}]).filter("amDurationFormat",["moment","angularMomentConfig",function(t,n){function a(n,a,r){return e(n)?"":t.duration(n,a).humanize(r)}return a.$stateful=n.statefulFilters,a}]).filter("amTimeAgo",["moment","amMoment","angularMomentConfig",function(t,n,a){function r(a,r,i){var o,s;return e(a)?"":(a=n.preprocessDate(a),(o=t(a)).isValid()?(s=t(i),!e(i)&&s.isValid()?o.from(s,r):o.fromNow(r)):"")}return r.$stateful=a.statefulFilters,r}]).filter("amSubtract",["moment","angularMomentConfig",function(t,n){function a(n,a,r){return e(n)?"":t(n).subtract(parseInt(a,10),r)}return a.$stateful=n.statefulFilters,a}]).filter("amAdd",["moment","angularMomentConfig",function(t,n){function a(n,a,r){return e(n)?"":t(n).add(parseInt(a,10),r)}return a.$stateful=n.statefulFilters,a}]).filter("amStartOf",["moment","angularMomentConfig",function(t,n){function a(n,a){return e(n)?"":t(n).startOf(a)}return a.$stateful=n.statefulFilters,a}]).filter("amEndOf",["moment","angularMomentConfig",function(t,n){function a(n,a){return e(n)?"":t(n).endOf(a)}return a.$stateful=n.statefulFilters,a}]),"angularMoment"}var n=window&&window.process&&window.process.type;"function"==typeof define&&define.amd?define(["angular","moment"],t):"undefined"!=typeof module&&module&&module.exports&&"function"==typeof require&&!n?module.exports=t(require("angular"),require("moment")):t(angular,("undefined"!=typeof global&&void 0!==global.moment?global:window).moment)}(),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports","angular","ws"],t);else if("undefined"!=typeof exports)t(module,exports,require("angular"),require("ws"));else{var n={exports:{}};t(n,n.exports,e.angular,e.ws),e.angularWebsocket=n.exports}}(this,(function(e,t,n,a){"use strict";function r(e,t,n,a){function r(t,n,a){a||!g(n)||m(n)||(a=n,n=void 0),this.protocols=n,this.url=t||"Missing URL",this.ssl=/(wss)/i.test(this.url),this.scope=a&&a.scope||e,this.rootScopeFailover=a&&a.rootScopeFailover&&!0,this.useApplyAsync=a&&a.useApplyAsync||!1,this.initialTimeout=a&&a.initialTimeout||500,this.maxTimeout=a&&a.maxTimeout||3e5,this.reconnectIfNotNormalClose=a&&a.reconnectIfNotNormalClose||!1,this.binaryType=a&&a.binaryType||"blob",this._reconnectAttempts=0,this.sendQueue=[],this.onOpenCallbacks=[],this.onMessageCallbacks=[],this.onErrorCallbacks=[],this.onCloseCallbacks=[],c(this._readyStateConstants),t?this._connect():this._setInternalState(0)}return r.prototype._readyStateConstants={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3,RECONNECT_ABORTED:4},r.prototype._normalCloseCode=1e3,r.prototype._reconnectableStatusCodes=[4e3],r.prototype.safeDigest=function(e){e&&!this.scope.$$phase&&this.scope.$digest()},r.prototype.bindToScope=function(t){var n=this;return t&&(this.scope=t,this.rootScopeFailover&&this.scope.$on("$destroy",(function(){n.scope=e}))),n},r.prototype._connect=function(e){!e&&this.socket&&this.socket.readyState===this._readyStateConstants.OPEN||(this.socket=a.create(this.url,this.protocols),this.socket.onmessage=s.default.bind(this,this._onMessageHandler),this.socket.onopen=s.default.bind(this,this._onOpenHandler),this.socket.onerror=s.default.bind(this,this._onErrorHandler),this.socket.onclose=s.default.bind(this,this._onCloseHandler),this.socket.binaryType=this.binaryType)},r.prototype.fireQueue=function(){for(;this.sendQueue.length&&this.socket.readyState===this._readyStateConstants.OPEN;){var e=this.sendQueue.shift();this.socket.send(f(e.message)||"blob"!=this.binaryType?e.message:JSON.stringify(e.message)),e.deferred.resolve()}},r.prototype.notifyOpenCallbacks=function(e){for(var t=0;t<this.onOpenCallbacks.length;t++)this.onOpenCallbacks[t].call(this,e)},r.prototype.notifyCloseCallbacks=function(e){for(var t=0;t<this.onCloseCallbacks.length;t++)this.onCloseCallbacks[t].call(this,e)},r.prototype.notifyErrorCallbacks=function(e){for(var t=0;t<this.onErrorCallbacks.length;t++)this.onErrorCallbacks[t].call(this,e)},r.prototype.onOpen=function(e){return this.onOpenCallbacks.push(e),this},r.prototype.onClose=function(e){return this.onCloseCallbacks.push(e),this},r.prototype.onError=function(e){return this.onErrorCallbacks.push(e),this},r.prototype.onMessage=function(e,t){if(!h(e))throw new Error("Callback must be a function");if(t&&p(t.filter)&&!f(t.filter)&&!(t.filter instanceof RegExp))throw new Error("Pattern must be a string or regular expression");return this.onMessageCallbacks.push({fn:e,pattern:t?t.filter:void 0,autoApply:!t||t.autoApply}),this},r.prototype._onOpenHandler=function(e){this._reconnectAttempts=0,this.notifyOpenCallbacks(e),this.fireQueue()},r.prototype._onCloseHandler=function(e){var t=this;t.useApplyAsync?t.scope.$applyAsync((function(){t.notifyCloseCallbacks(e)})):(t.notifyCloseCallbacks(e),t.safeDigest(!0)),(this.reconnectIfNotNormalClose&&e.code!==this._normalCloseCode||this._reconnectableStatusCodes.indexOf(e.code)>-1)&&this.reconnect()},r.prototype._onErrorHandler=function(e){var t=this;t.useApplyAsync?t.scope.$applyAsync((function(){t.notifyErrorCallbacks(e)})):(t.notifyErrorCallbacks(e),t.safeDigest(!0))},r.prototype._onMessageHandler=function(e){function t(e,t,n){n=y.call(arguments,2),r.useApplyAsync?r.scope.$applyAsync((function(){e.apply(r,n)})):(e.apply(r,n),r.safeDigest(t))}for(var n,a,r=this,i=0;i<r.onMessageCallbacks.length;i++)(n=(a=r.onMessageCallbacks[i]).pattern)?(f(n)&&e.data===n||n instanceof RegExp&&n.exec(e.data))&&t(a.fn,a.autoApply,e):t(a.fn,a.autoApply,e)},r.prototype.close=function(e){return!e&&this.socket.bufferedAmount||this.socket.close(),this},r.prototype.send=function(e){function n(t){return i.sendQueue.splice(i.sendQueue.indexOf(e),1),r.reject(t),i}var r=t.defer(),i=this,o=function e(t){t.cancel=n;var a=t.then;return t.then=function(){var t=a.apply(this,arguments);return e(t)},t}(r.promise);return i.readyState===i._readyStateConstants.RECONNECT_ABORTED?r.reject("Socket connection has been closed"):(i.sendQueue.push({message:e,deferred:r}),i.fireQueue()),a.isMocked&&a.isMocked()&&a.isConnected(this.url)&&this._onMessageHandler(a.mockSend()),o},r.prototype.reconnect=function(){this.close();var e=this._getBackoffDelay(++this._reconnectAttempts),t=e/1e3;return console.log("Reconnecting in "+t+" seconds"),n(s.default.bind(this,this._connect),e),this},r.prototype._getBackoffDelay=function(e){var t=Math.random()+1,n=this.initialTimeout,a=e,r=this.maxTimeout;return Math.floor(Math.min(t*n*Math.pow(2,a),r))},r.prototype._setInternalState=function(e){if(Math.floor(e)!==e||0>e||e>4)throw new Error("state must be an integer between 0 and 4, got: "+e);d||(this.readyState=e||this.socket.readyState),this._internalConnectionState=e,v(this.sendQueue,(function(e){e.deferred.reject("Message cancelled due to closed socket connection")}))},d&&d(r.prototype,"readyState",{get:function(){return this._internalConnectionState||this.socket.readyState},set:function(){throw new Error("The readyState property is read-only")}}),function(e,t,n){return new r(e,t,n)}}function i(e){this.create=function(e,t){if(!/wss?:\/\//.exec(e))throw new Error("Invalid url provided");return t?new o(e,t):new o(e)},this.createWebSocketBackend=function(t,n){return e.warn("Deprecated: Please use .create(url, protocols)"),this.create(t,n)}}Object.defineProperty(t,"__esModule",{value:!0});var o,s=function(e){return e&&e.__esModule?e:{default:e}}(n),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};if("object"===(void 0===t?"undefined":l(t))&&"function"==typeof require)try{o=a.Client||a.client||a}catch(e){}o=o||window.WebSocket||window.MozWebSocket;var u=s.default.noop,c=Object.freeze?Object.freeze:u,d=Object.defineProperty,f=s.default.isString,h=s.default.isFunction,p=s.default.isDefined,g=s.default.isObject,m=s.default.isArray,v=s.default.forEach,y=Array.prototype.slice;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,n=Number(arguments[1])||0;for(0>(n=0>n?Math.ceil(n):Math.floor(n))&&(n+=t);t>n;n++)if(n in this&&this[n]===e)return n;return-1}),s.default.module("ngWebSocket",[]).factory("$websocket",["$rootScope","$q","$timeout","$websocketBackend",r]).factory("WebSocket",["$rootScope","$q","$timeout","WebsocketBackend",r]).service("$websocketBackend",["$log",i]).service("WebSocketBackend",["$log",i]),s.default.module("angular-websocket",["ngWebSocket"]),t.default=s.default.module("ngWebSocket"),e.exports=t.default})),"undefined"!=typeof module&&module.exports?module.exports=new Base64:Base64()
|
28
|
-
/**
|
29
|
-
* An Angular module that gives you access to the browsers local storage
|
30
|
-
* @version v0.7.1 - 2017-06-21
|
31
|
-
* @link https://github.com/grevory/angular-local-storage
|
32
|
-
* @author grevory <greg@gregpike.ca>
|
33
|
-
* @license MIT License, http://www.opensource.org/licenses/MIT
|
34
|
-
*/,function(e,t){var n=t.isDefined,a=t.isUndefined,r=t.isNumber,i=t.isObject,o=t.isArray,s=t.isString,l=t.extend,u=t.toJson;t.module("LocalStorageModule",[]).provider("localStorageService",(function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/",secure:!1},this.defaultToCookie=!0,this.notify={setItem:!0,removeItem:!1},this.setPrefix=function(e){return this.prefix=e,this},this.setStorageType=function(e){return this.storageType=e,this},this.setDefaultToCookie=function(e){return this.defaultToCookie=!!e,this},this.setStorageCookie=function(e,t,n){return this.cookie.expiry=e,this.cookie.path=t,this.cookie.secure=n,this},this.setStorageCookieDomain=function(e){return this.cookie.domain=e,this},this.setNotify=function(e,t){return this.notify={setItem:e,removeItem:t},this},this.$get=["$rootScope","$window","$document","$parse","$timeout",function(e,t,c,d,f){function h(n){if(n||(n=t.event),y.setItem&&s(n.key)&&_(n.key)){var a=C(n.key);f((function(){e.$broadcast("LocalStorageModule.notification.changed",{key:a,newvalue:n.newValue,storageType:g.storageType})}))}}var p,g=this,m=g.prefix,v=g.cookie,y=g.notify,b=g.storageType;c?c[0]&&(c=c[0]):c=document,"."!==m.substr(-1)&&(m=m?m+".":"");var w=function(e){return m+e},C=function(e){return e.replace(new RegExp("^"+m,"g"),"")},_=function(e){return 0===e.indexOf(m)},S=function(){try{var n=b in t&&null!==t[b],a=w("__"+Math.round(1e7*Math.random()));return n&&((p=t[b]).setItem(a,""),p.removeItem(a)),n}catch(t){return g.defaultToCookie&&(b="cookie"),e.$broadcast("LocalStorageModule.notification.error",t.message),!1}},T=S(),x=function(t,n,r){var i=L();try{if(B(r),n=a(n)?null:u(n),!T&&g.defaultToCookie||"cookie"===g.storageType)return T||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),y.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),$(t,n);try{p&&p.setItem(w(t),n),y.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:g.storageType})}catch(a){return e.$broadcast("LocalStorageModule.notification.error",a.message),$(t,n)}return!0}finally{B(i)}},k=function(t,n){var a=L();try{if(B(n),!T&&g.defaultToCookie||"cookie"===g.storageType)return T||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),A(t);var r=p?p.getItem(w(t)):null;if(!r||"null"===r)return null;try{return JSON.parse(r)}catch(e){return r}}finally{B(a)}},I=function(){var t=L();try{var n,a,r=0;for(arguments.length>=1&&("localStorage"===arguments[arguments.length-1]||"sessionStorage"===arguments[arguments.length-1])&&(r=1,B(arguments[arguments.length-1])),n=0;n<arguments.length-r;n++)if(a=arguments[n],!T&&g.defaultToCookie||"cookie"===g.storageType)T||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),y.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:a,storageType:"cookie"}),O(a);else try{p.removeItem(w(a)),y.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:a,storageType:g.storageType})}catch(t){e.$broadcast("LocalStorageModule.notification.error",t.message),O(a)}}finally{B(t)}},E=function(){try{return t.navigator.cookieEnabled||"cookie"in c&&(c.cookie.length>0||(c.cookie="test").indexOf.call(c.cookie,"test")>-1)}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),$=function(t,n,s,l){if(a(n))return!1;if((o(n)||i(n))&&(n=u(n)),!E)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var d="",f=new Date,h="";if(null===n?(f.setTime(f.getTime()+-864e5),d="; expires="+f.toGMTString(),n=""):r(s)&&0!==s?(f.setTime(f.getTime()+24*s*60*60*1e3),d="; expires="+f.toGMTString()):0!==v.expiry&&(f.setTime(f.getTime()+24*v.expiry*60*60*1e3),d="; expires="+f.toGMTString()),t){var p="; path="+v.path;v.domain&&(h="; domain="+v.domain),"boolean"==typeof l?!0===l&&(h+="; secure"):!0===v.secure&&(h+="; secure"),c.cookie=w(t)+"="+encodeURIComponent(n)+d+p+h}}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}return!0},A=function(t){if(!E)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var n=c.cookie&&c.cookie.split(";")||[],a=0;a<n.length;a++){for(var r=n[a];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(w(t)+"=")){var i=decodeURIComponent(r.substring(m.length+t.length+1,r.length));try{var o=JSON.parse(i);return"number"==typeof o?i:o}catch(e){return i}}}return null},O=function(e){$(e,null)},M=function(){for(var e=null,t=m.length,n=c.cookie.split(";"),a=0;a<n.length;a++){for(e=n[a];" "===e.charAt(0);)e=e.substring(1,e.length);var r=e.substring(t,e.indexOf("="));O(r)}},L=function(){return b},B=function(e){return e&&b!==e&&(b=e,T=S()),T};T&&(t.addEventListener?(t.addEventListener("storage",h,!1),e.$on("$destroy",(function(){t.removeEventListener("storage",h)}))):t.attachEvent&&(t.attachEvent("onstorage",h),e.$on("$destroy",(function(){t.detachEvent("onstorage",h)}))));return{isSupported:T,getStorageType:L,setStorageType:B,setPrefix:function(e){m=e},set:x,add:x,get:k,keys:function(t){var n=L();try{if(B(t),!T)return e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),[];var a=m.length,r=[];for(var i in p)if(i.substr(0,a)===m)try{r.push(i.substr(a))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.Description),[]}return r}finally{B(n)}},remove:I,clearAll:function(t,n){var a=L();try{B(n);var r=m?new RegExp("^"+m):new RegExp,i=t?new RegExp(t):new RegExp;if(!T&&g.defaultToCookie||"cookie"===g.storageType)return T||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),M();if(!T&&!g.defaultToCookie)return!1;var o=m.length;for(var s in p)if(r.test(s)&&i.test(s.substr(o)))try{I(s.substr(o))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),M()}return!0}finally{B(a)}},bind:function(e,t,a,r,o){var s=k(r=r||t,o);return null===s&&n(a)?s=a:i(s)&&i(a)&&(s=l(s,a)),d(t).assign(e,s),e.$watch(t,(function(e){x(r,e,o)}),i(e[t]))},deriveKey:w,underiveKey:C,length:function(e){var n=L();try{B(e);for(var a=0,r=t[b],i=0;i<r.length;i++)0===r.key(i).indexOf(m)&&a++;return a}finally{B(n)}},defaultToCookie:this.defaultToCookie,cookie:{isSupported:E,set:$,add:$,get:A,remove:O,clearAll:M}}}]}))}(window,window.angular),
|
35
|
-
/**
|
36
|
-
* angular-ui-notification - Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
|
37
|
-
* @author Alex_Crack
|
38
|
-
* @version v0.3.6
|
39
|
-
* @link https://github.com/alexcrack/angular-ui-notification
|
40
|
-
* @license MIT
|
41
|
-
*/
|
42
|
-
angular.module("ui-notification",[]),angular.module("ui-notification").provider("Notification",(function(){this.options={delay:5e3,startTop:10,startRight:10,verticalSpacing:10,horizontalSpacing:10,positionX:"right",positionY:"top",replaceMessage:!1,templateUrl:"angular-ui-notification.html",onClose:void 0,closeOnClick:!0,maxCount:0,container:"body",priority:10},this.setOptions=function(e){if(!angular.isObject(e))throw new Error("Options should be an object!");this.options=angular.extend({},this.options,e)},this.$get=["$timeout","$http","$compile","$templateCache","$rootScope","$injector","$sce","$q","$window",function(e,t,n,a,r,i,o,s,l){var u=this.options,c=u.startTop,d=u.startRight,f=u.verticalSpacing,h=u.horizontalSpacing,p=u.delay,g=[],m=!1,v=function(i,v){function y(t){function a(e){["-webkit-transition","-o-transition","transition"].forEach((function(t){y.css(t,e)}))}var r=i.scope.$new();r.message=o.trustAsHtml(i.message),r.title=o.trustAsHtml(i.title),r.t=i.type.substr(0,1),r.delay=i.delay,r.onClose=i.onClose;var s=function(e,t){return e._priority-t._priority},p=function(e,t){return t._priority-e._priority},v=function(){var e=0,t=0,n=d,a=[];"top"===i.positionY?g.sort(s):"bottom"===i.positionY&&g.sort(p);for(var r=g.length-1;r>=0;r--){var o=g[r];if(i.replaceMessage&&r<g.length-1)o.addClass("killed");else{var l=parseInt(o[0].offsetHeight),m=parseInt(o[0].offsetWidth),v=a[o._positionY+o._positionX];y+l>window.innerHeight&&(v=c,t++,e=0);var y=v?0===e?v:v+f:c,b=n+t*(h+m);o.css(o._positionY,y+"px"),"center"==o._positionX?o.css("left",parseInt(window.innerWidth/2-m/2)+"px"):o.css(o._positionX,b+"px"),a[o._positionY+o._positionX]=y+l,u.maxCount>0&&g.length>u.maxCount&&0===r&&o.scope().kill(!0),e++}}},y=n(t)(r);y._positionY=i.positionY,y._positionX=i.positionX,y._priority=i.priority,y.addClass(i.type);var w=function(e){("click"===(e=e.originalEvent||e).type||"opacity"===e.propertyName&&e.elapsedTime>=1)&&(r.onClose&&r.$apply(r.onClose(y)),y.remove(),g.splice(g.indexOf(y),1),r.$destroy(),v())};i.closeOnClick&&(y.addClass("clickable"),y.bind("click",w)),y.bind("webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd",w),angular.isNumber(i.delay)&&e((function(){y.addClass("killed")}),i.delay),a("none"),angular.element(document.querySelector(i.container)).append(y);var C=-(parseInt(y[0].offsetHeight)+50);if(y.css(y._positionY,C+"px"),g.push(y),"center"==i.positionX){var _=parseInt(y[0].offsetWidth);y.css("left",parseInt(window.innerWidth/2-_/2)+"px")}e((function(){a("")})),r._templateElement=y,r.kill=function(t){t?(r.onClose&&r.$apply(r.onClose(r._templateElement)),g.splice(g.indexOf(r._templateElement),1),r._templateElement.remove(),r.$destroy(),e(v)):r._templateElement.addClass("killed")},e(v),m||(angular.element(l).bind("resize",(function(t){e(v)})),m=!0),b.resolve(r)}var b=s.defer();"object"==typeof i&&null!==i||(i={message:i}),i.scope=i.scope?i.scope:r,i.template=i.templateUrl?i.templateUrl:u.templateUrl,i.delay=angular.isUndefined(i.delay)?p:i.delay,i.type=v||i.type||u.type||"",i.positionY=i.positionY?i.positionY:u.positionY,i.positionX=i.positionX?i.positionX:u.positionX,i.replaceMessage=i.replaceMessage?i.replaceMessage:u.replaceMessage,i.onClose=i.onClose?i.onClose:u.onClose,i.closeOnClick=null!==i.closeOnClick&&void 0!==i.closeOnClick?i.closeOnClick:u.closeOnClick,i.container=i.container?i.container:u.container,i.priority=i.priority?i.priority:u.priority;var w=a.get(i.template);return w?y(w):t.get(i.template,{cache:!0}).then((function(e){y(e.data)})).catch((function(e){throw new Error("Template ("+i.template+") could not be loaded. "+e)})),b.promise};return v.primary=function(e){return this(e,"primary")},v.error=function(e){return this(e,"error")},v.success=function(e){return this(e,"success")},v.info=function(e){return this(e,"info")},v.warning=function(e){return this(e,"warning")},v.clearAll=function(){angular.forEach(g,(function(e){e.addClass("killed")}))},v}]})),angular.module("ui-notification").run(["$templateCache",function(e){e.put("angular-ui-notification.html",'<div class="ui-notification"><h3 ng-show="title" ng-bind-html="title"></h3><div class="message" ng-bind-html="message"></div></div>')}]),angular.module("angularBittorrentPeerid",[]),angular.module("angularBittorrentPeerid").run((function(){"function"!=typeof String.prototype.endsWith&&(String.prototype.endsWith=function(e){return this.slice(-e.length)===e}),"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e,t){return t=t||0,this.slice(t,t+e.length)===e})})),angular.module("angularBittorrentPeerid").factory("peeridUtils",(function(){function e(e){var t=e.charCodeAt(0);return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)}function t(e){var t=e.toLowerCase().charCodeAt(0);return t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)}function n(e,t){t=t||0;for(var n=""+(255&e);n.length<t;)n="0"+n;return n}return{getUtf8Data:function(e){for(var t=[],n=0;n<e.length;n++){var a=e.charCodeAt(n);a<128?t.push(a):a<2048?t.push(a>>6|192,63&a|128):t.push(a>>12|224,a>>6&63|128,63&a|128)}return t},isAzStyle:function(e){return"-"===e.charAt(0)&&("-"===e.charAt(7)||!!["FG","LH","NE","KT","SP"].includes(e.substring(1,3)))},isShadowStyle:function(n){if("-"!==n.charAt(5))return!1;if(!t(n.charAt(0)))return!1;if(!e(n.charAt(1))&&"-"!==n.charAt(1))return!1;for(var a,r=4;r>0&&"-"===n.charAt(r);r--);for(var i=1;i<=r;i++){var o=n.charAt(i);if("-"===o)return!1;if(null===(e(a=o)||t(a)||"."===a))return!1}return!0},isMainlineStyle:function(e){return"-"===e.charAt(2)&&"-"===e.charAt(7)&&("-"===e.charAt(4)||"-"===e.charAt(5))},isPossibleSpoofClient:function(e){return e.endsWith("UDP0")||e.endsWith("HTTPBT")},decodeNumericValueOfByte:n,getAzStyleVersionNumber:function(e,t){return"function"==typeof t?t(e):null},getShadowStyleVersionNumber:function(e){return null},decodeBitSpiritClient:function(e,t){if("BS"!==e.substring(2,4))return null;var n=""+t[1];return"0"===n&&(n=1),{client:"BitSpirit",version:n}},decodeBitCometClient:function(e,t){var a="";if(e.startsWith("exbc"))a="";else if(e.startsWith("FUTB"))a="(Solidox Mod)";else{if(!e.startsWith("xUTB"))return null;a="(Mod 2)"}var r="LORD"===e.substring(6,10),i=r?"BitLord":"BitComet",o=n(t[4]),s=r&&"0"!==o?1:2;return{client:i+(a?" "+a:""),version:o+"."+n(t[5],s)}},identifyAwkwardClient:function(e,t){var n,a=20;for(n=0;n<20;++n)if(t[n]>0){a=n;break}if(0===a){var r=!0;for(n=0;n<16;++n)if(0===t[n]){r=!1;break}if(r){for(n=16;n<20;++n)if(t[n]!==(t[n%16]^t[15-n%16])){r=!1;break}if(r)return{client:"Shareaza"}}}return 9===a&&3===t[9]&&3===t[10]&&3===t[11]?{client:"I2PSnark"}:12===a&&97===t[12]&&97===t[13]?{client:"Experimental",version:"3.2.1b2"}:12===a&&0===t[12]&&0===t[13]?{client:"Experimental",version:"3.1"}:12===a?{client:"Mainline"}:null}}})),angular.module("angularBittorrentPeerid").provider("bittorrentPeeridService",(function(){var e={},t={},n={},a={},r={},i=[],o=function(e){return e[0]+"."+e[1]+"."+e[2]},s=function(e){return isNaN(e[2])?e[0]+"."+e[1]+".1"+"ABCDE".indexOf(e[2]):e[0]+"."+e[1]+"."+e[2]},l=function(e){var t=e[3];return t="B"===t?"Beta":"A"===t?"Alpha":"",e[0]+"."+e[1]+"."+e[2]+" "+t},u=function(e){return e[0]+"."+e[1]+"."+e[2]+"."+e[3]},c=function(e){return e[0]+e[1]+"."+e[2]+e[3]},d=function(e){return e[1]+"."+e[2]+e[3]},f=function(e){return"0"===e[0]&&"0"===e[1]&&"0"===e[2]?"0."+e[3]:"0"===e[0]&&"0"===e[1]?"0."+e[2]+e[3]:e[0]+"."+e[1]+e[2]+("Z"===e[3]||"X"===e[3]?"+":"")},h=function(e){var t="";return"0"===e[0]?t+=e[1]+".":t+=""+e[0]+e[1]+".","0"===e[2]?t+=e[3]:t+=""+e[2]+e[3],t},p=this.addAzStyle=function(n,a,r){r=r||u,e[n]=a,t[a]=r},g=this.addShadowStyle=function(e,t,r){r=r||o,n[e]=t,a[t]=r},m=this.addMainlineStyle=function(e,t){r[e]=t},v=this.addSimpleClient=function(e,t,n,a){"number"!=typeof n&&void 0!==n||(a=n,n=t,t=void 0),i.push({id:n,client:e,version:t,position:a||0})};p("A~","Ares",o),p("AG","Ares",o),p("AN","Ares",u),p("AR","Ares"),p("AV","Avicora"),p("AX","BitPump",c),p("AT","Artemis"),p("AZ","Vuze",u),p("BB","BitBuddy","1.234"),p("BC","BitComet",d),p("BE","BitTorrent SDK"),p("BF","BitFlu","NO_VERSION"),p("BG","BTG",u),p("bk","BitKitten (libtorrent)"),p("BR","BitRocket","1.2(34)"),p("BS","BTSlave"),p("BT","BitTorrent",l),p("BW","BitWombat"),p("BX","BittorrentX"),p("CB","Shareaza Plus"),p("CD","Enhanced CTorrent",c),p("CT","CTorrent","1.2.34"),p("DP","Propogate Data Client"),p("DE","Deluge",s),p("EB","EBit"),p("ES","Electric Sheep",o),p("FC","FileCroc"),p("FG","FlashGet",d),p("FX","Freebox BitTorrent"),p("FT","FoxTorrent/RedSwoosh"),p("GR","GetRight","1.2"),p("GS","GSTorrent"),p("HL","Halite",o),p("HN","Hydranode"),p("KG","KGet"),p("KT","KTorrent","1.2.3=[RD].4"),p("LC","LeechCraft"),p("LH","LH-ABC"),p("LK","linkage",o),p("LP","Lphant",c),p("LT","libtorrent (Rasterbar)","2.33.4"),p("lt","libTorrent (Rakshasa)","2.33.4"),p("LW","LimeWire","NO_VERSION"),p("MO","MonoTorrent"),p("MP","MooPolice",o),p("MR","Miro"),p("MT","MoonlightTorrent"),p("NE","BT Next Evolution",o),p("NX","Net Transport"),p("OS","OneSwarm",u),p("OT","OmegaTorrent"),p("PC","CacheLogic","12.3-4"),p("PT","Popcorn Time"),p("PD","Pando"),p("PE","PeerProject"),p("pX","pHoeniX"),p("qB","qBittorrent",s),p("QD","qqdownload"),p("RT","Retriever"),p("RZ","RezTorrent"),p("S~","Shareaza alpha/beta"),p("SB","SwiftBit"),p("SD","迅雷在线 (Xunlei)"),p("SG","GS Torrent",u),p("SN","ShareNET"),p("SP","BitSpirit",o),p("SS","SwarmScope"),p("ST","SymTorrent","2.34"),p("st","SharkTorrent"),p("SZ","Shareaza"),p("TG","Torrent GO"),p("TN","Torrent.NET"),p("TR","Transmission",f),p("TS","TorrentStorm"),p("TT","TuoTu",o),p("UL","uLeecher!"),p("UE","µTorrent Embedded",l),p("UT","µTorrent",l),p("UM","µTorrent Mac",l),p("UW","µTorrent Web",l),p("WD","WebTorrent Desktop",h),p("WT","Bitlet"),p("WW","WebTorrent",h),p("WY","FireTorrent"),p("VG","哇嘎 (Vagaa)",u),p("XL","迅雷在线 (Xunlei)"),p("XT","XanTorrent"),p("XF","Xfplay",f),p("XX","XTorrent","1.2.34"),p("XC","XTorrent","1.2.34"),p("ZT","ZipTorrent"),p("7T","aTorrent"),p("ZO","Zona",u),p("#@","Invalid PeerID"),g("A","ABC"),g("O","Osprey Permaseed"),g("Q","BTQueue"),g("R","Tribler"),g("S","Shad0w"),g("T","BitTornado"),g("U","UPnP NAT"),m("M","Mainline"),m("Q","Queen Bee"),v("µTorrent","1.7.0 RC","-UT170-"),v("Azureus","1","Azureus"),v("Azureus","2.0.3.2","Azureus",5),v("Aria","2","-aria2-"),v("BitTorrent Plus!","II","PRC.P---"),v("BitTorrent Plus!","P87.P---"),v("BitTorrent Plus!","S587Plus"),v("BitTyrant (Azureus Mod)","AZ2500BT"),v("Blizzard Downloader","BLZ"),v("BTGetit","BG",10),v("BTugaXP","btuga"),v("BTugaXP","BTuga",5),v("BTugaXP","oernu"),v("Deadman Walking","BTDWV-"),v("Deadman","Deadman Walking-"),v("External Webseed","Ext"),v("G3 Torrent","-G3"),v("GreedBT","2.7.1","271-"),v("Hurricane Electric","arclight"),v("HTTP Seed","-WS"),v("JVtorrent","10-------"),v("Limewire","LIME"),v("Martini Man","martini"),v("Pando","Pando"),v("PeerApp","PEERAPP"),v("SimpleBT","btfans",4),v("Swarmy","a00---0"),v("Swarmy","a02---0"),v("Teeweety","T00---0"),v("TorrentTopia","346-"),v("XanTorrent","DansClient"),v("MediaGet","-MG1"),v("MediaGet","2.1","-MG21"),v("Amazon AWS S3","S3-"),v("BitTorrent DNA","DNA"),v("Opera","OP"),v("Opera","O"),v("Burst!","Mbrst"),v("TurboBT","turbobt"),v("BT Protocol Daemon","btpd"),v("Plus!","Plus"),v("XBT","XBT"),v("BitsOnWheels","-BOW"),v("eXeem","eX"),v("MLdonkey","-ML"),v("Bitlet","BitLet"),v("AllPeers","AP"),v("BTuga Revolution","BTM"),v("Rufus","RS",2),v("BitMagnet","BM",2),v("QVOD","QVOD"),v("Top-BT","TB"),v("Tixati","TIX"),v("folx","-FL"),v("µTorrent Mac","-UM"),v("µTorrent","-UT"),this.$get=["peeridUtils",function(a){return{parseClient:function(o){var s=a.getUtf8Data(o),l=null;if(a.isPossibleSpoofClient(o))return(l=a.decodeBitSpiritClient(o,s))||(l=a.decodeBitCometClient(o,s))?l:{client:"BitSpirit?"};if(a.isAzStyle(o)&&(l=function(t){return e[t.substring(1,3)]}(o))){var u=function(e,n){var r=t[e];return r?a.getAzStyleVersionNumber(n.substring(3,7),r):null}(l,o);return l.startsWith("ZipTorrent")&&o.startsWith("bLAde",8)?{client:"Unknown [Fake: ZipTorrent]",version:u}:"µTorrent"===l&&"6.0 Beta"===u?{client:"Mainline",version:"6.0 Beta"}:l.startsWith("libTorrent (Rakshasa)")?{client:l+" / rTorrent*",version:u}:{client:l,version:u}}if(a.isShadowStyle(o)&&(l=function(e){return n[e.substring(0,1)]}(o)))return{client:l};if(a.isMainlineStyle(o)&&(l=function(e){return r[e.substring(0,1)]}(o)))return{client:l};if(l=a.decodeBitSpiritClient(o,s))return l;if(l=a.decodeBitCometClient(o,s))return l;var c=function(e){for(var t=0;t<i.length;++t){var n=i[t];if(e.startsWith(n.id,n.position))return n}return null}(o);return c?{client:l=c.client,version:c.version}:(l=a.identifyAwkwardClient(o,s))?l:{client:"unknown"}}}}]})),angular.module("cgBusy",[]),angular.module("cgBusy").factory("_cgBusyTrackerFactory",["$timeout","$q",function(e,t){return function(){var n={promises:[],delayPromise:null,durationPromise:null,delayJustFinished:!1,reset:function(t){n.minDuration=t.minDuration,n.promises=[],angular.forEach(t.promises,(function(e){e&&!e.$cgBusyFulfilled&&a(e)})),0!==n.promises.length&&(n.delayJustFinished=!1,t.delay&&(n.delayPromise=e((function(){n.delayPromise=null,n.delayJustFinished=!0}),parseInt(t.delay,10))),t.minDuration&&(n.durationPromise=e((function(){n.durationPromise=null}),parseInt(t.minDuration,10)+(t.delay?parseInt(t.delay,10):0))))},isPromise:function(e){return void 0!==(e&&(e.then||e.$then||e.$promise&&e.$promise.then))},callThen:function(e,n,a){var r;e.then||e.$then?r=e:e.$promise?r=e.$promise:e.denodeify&&(r=t.when(e)),(r.then||r.$then).call(r,n,a)}},a=function(e){if(!n.isPromise(e))throw new Error("cgBusy expects a promise (or something that has a .promise or .$promise");-1===n.promises.indexOf(e)&&(n.promises.push(e),n.callThen(e,(function(){e.$cgBusyFulfilled=!0,-1!==n.promises.indexOf(e)&&n.promises.splice(n.promises.indexOf(e),1)}),(function(){e.$cgBusyFulfilled=!0,-1!==n.promises.indexOf(e)&&n.promises.splice(n.promises.indexOf(e),1)})))};return n.active=function(){return!n.delayPromise&&(n.delayJustFinished?(n.delayJustFinished=!1,0===n.promises.length&&(n.durationPromise=null),n.promises.length>0):!!n.durationPromise||n.promises.length>0)},n}}]),angular.module("cgBusy").value("cgBusyDefaults",{}),angular.module("cgBusy").directive("cgBusy",["$compile","$templateCache","cgBusyDefaults","$http","_cgBusyTrackerFactory",function(e,t,n,a,r){return{restrict:"A",link:function(i,o,s){var l=o.css("position");("static"===l||""===l||void 0===l)&&o.css("position","relative");var u,c,d,f,h,p=r(),g={templateUrl:"angular-busy.html",delay:0,minDuration:0,backdrop:!0,message:"Please Wait...",wrapperClass:"cg-busy cg-busy-animation"};angular.extend(g,n),i.$watchCollection(s.cgBusy,(function(n){if(n||(n={promise:null}),angular.isString(n))throw new Error("Invalid value for cg-busy. cgBusy no longer accepts string ids to represent promises/trackers.");(angular.isArray(n)||p.isPromise(n))&&(n={promise:n}),(n=angular.extend(angular.copy(g),n)).templateUrl||(n.templateUrl=g.templateUrl),angular.isArray(n.promise)||(n.promise=[n.promise]),f||(f=i.$new()),f.$message=n.message,angular.equals(p.promises,n.promise)||p.reset({promises:n.promise,delay:n.delay,minDuration:n.minDuration}),f.$cgBusyIsActive=function(){return p.active()},u&&d===n.templateUrl&&h===n.backdrop||(u&&u.remove(),c&&c.remove(),d=n.templateUrl,h=n.backdrop,a.get(d,{cache:t}).then((function(t){if(n.backdrop=void 0===n.backdrop||n.backdrop,n.backdrop){c=e('<div class="cg-busy cg-busy-backdrop cg-busy-backdrop-animation ng-hide" ng-show="$cgBusyIsActive()"></div>')(f),o.append(c)}var a='<div class="'+n.wrapperClass+' ng-hide" ng-show="$cgBusyIsActive()">'+t.data+"</div>";u=e(a)(f),angular.element(u.children()[0]).css("position","absolute").css("top",0).css("left",0).css("right",0).css("bottom",0),o.append(u)}),(function(e){throw new Error("Template specified for cgBusy ("+n.templateUrl+") could not be loaded. "+e)})))}),!0)}}}]),angular.module("cgBusy").run(["$templateCache",function(e){"use strict";e.put("angular-busy.html",'<div class="cg-busy-default-wrapper">\n\n <div class="cg-busy-default-sign">\n\n <div class="cg-busy-default-spinner">\n <div class="bar1"></div>\n <div class="bar2"></div>\n <div class="bar3"></div>\n <div class="bar4"></div>\n <div class="bar5"></div>\n <div class="bar6"></div>\n <div class="bar7"></div>\n <div class="bar8"></div>\n <div class="bar9"></div>\n <div class="bar10"></div>\n <div class="bar11"></div>\n <div class="bar12"></div>\n </div>\n\n <div class="cg-busy-default-text">{{$message}}</div>\n\n </div>\n\n</div>')}]),angular.module("angularPromiseButtons",[]),angular.module("angularPromiseButtons").directive("promiseBtn",["angularPromiseButtons","$parse","$timeout","$compile",function(e,t,n,a){"use strict";return{restrict:"EA",priority:e.config.priority,scope:{promiseBtn:"=",promiseBtnOptions:"=?",ngDisabled:"=?"},link:function(r,i,o){function s(e){b.btnLoadingClass&&!b.addClassToCurrentBtnOnly&&e.addClass(b.btnLoadingClass),b.disableBtn&&!b.disableCurrentBtnOnly&&e.attr("disabled","disabled")}function l(e){b.minDuration&&!v||!y||(b.btnLoadingClass&&e.removeClass(b.btnLoadingClass),b.disableBtn&&!r.ngDisabled&&e.removeAttr("disabled"))}function u(e,t){r.$watch(e,(function(e){v=!1,y=!1,b.minDuration&&(m=n((function(){v=!0,l(t)}),b.minDuration)),e&&e.then?(s(t),e.finally?e.finally((function(){y=!0,l(t)})):e.then((function(){y=!0,l(t)})).catch((function(){y=!0,l(t)}))):e&&e.$promise&&(s(t),e.$promise.finally((function(){y=!0,l(t)})))}))}function c(e){return e.split(";").map((function(e){return t(e)}))}function d(e){e.append(a(b.spinnerTpl)(r))}function f(e){b.addClassToCurrentBtnOnly&&e.on(b.CLICK_EVENT,(function(){e.addClass(b.btnLoadingClass)})),b.disableCurrentBtnOnly&&e.on(b.CLICK_EVENT,(function(){e.attr("disabled","disabled")}))}function h(e,t,n){var a=c(o[t]);i.off(e),i.on(e,(function(e){r.$apply((function(){a.forEach((function(t){var a=t(r.$parent,{$event:e});g||(g=u((function(){return a}),n))}))}))}))}function p(e,t,n){b.priority>0?h(e,t,n):r.$evalAsync((function(){h(e,t,n)}))}var g,m,v,y,b=e.config;if(o.promiseBtn)d(i),f(i),u((function(){return r.promiseBtn}),i);else if(o.hasOwnProperty(b.CLICK_ATTR))d(i),f(i),p(b.CLICK_EVENT,b.CLICK_ATTR,i);else if(o.hasOwnProperty(b.SUBMIT_ATTR)){var w=function(t){for(var n=[],a=t.find(e.config.BTN_SELECTOR),r=0;r<a.length;r++){var i=a[r];"submit"===angular.element(i).attr("type")&&n.push(i)}return angular.element(n)}(i);d(w),f(w),p(b.SUBMIT_EVENT,b.SUBMIT_ATTR,w)}r.$watch("promiseBtnOptions",(function(e){angular.isObject(e)&&(b=angular.extend({},b,e))}),!0),r.$on("$destroy",(function(){n.cancel(m)}))}}}]),angular.module("angularPromiseButtons").provider("angularPromiseButtons",(function(){"use strict";var e={spinnerTpl:'<span class="btn-spinner"></span>',priority:10,disableBtn:!0,btnLoadingClass:"is-loading",addClassToCurrentBtnOnly:!1,disableCurrentBtnOnly:!1,minDuration:!1,CLICK_EVENT:"click",CLICK_ATTR:"ngClick",SUBMIT_EVENT:"submit",SUBMIT_ATTR:"ngSubmit",BTN_SELECTOR:"button"};return{extendConfig:function(t){e=angular.extend(e,t)},$get:function(){return{config:e}}}})),function(e,t){"function"==typeof define&&define.amd?define(["angular"],t):"object"==typeof module&&module.exports?module.exports=t(require("angular")):e.angularClipboard=t(e.angular)}(this,(function(e){return e.module("angular-clipboard",[]).factory("clipboard",["$document","$window",function(e,t){return{copyText:function(n,a){var r=t.pageXOffset||e[0].documentElement.scrollLeft,i=t.pageYOffset||e[0].documentElement.scrollTop,o=a&&a.container||e[0].body,s=function(n,a){var r=e[0].createElement("textarea");return r.style.position="absolute",r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.left="-10000px",r.style.top=(t.pageYOffset||e[0].documentElement.scrollTop)+"px",r.textContent=n,r}(n);o.appendChild(s),function(t){try{e[0].body.style.webkitUserSelect="initial";var n=e[0].getSelection();n.removeAllRanges();var a=document.createRange();a.selectNodeContents(t),n.addRange(a),t.select(),t.setSelectionRange(0,999999);try{if(!e[0].execCommand("copy"))throw"failure copy"}finally{n.removeAllRanges()}}finally{e[0].body.style.webkitUserSelect=""}}(s),t.scrollTo(r,i),o.removeChild(s)},supported:"queryCommandSupported"in e[0]&&e[0].queryCommandSupported("copy")}}]).directive("clipboard",["clipboard",function(t){return{restrict:"A",scope:{onCopied:"&",onError:"&",text:"=",supported:"=?"},link:function(n,a){n.supported=t.supported,a.on("click",(function(r){try{t.copyText(n.text,a[0]),e.isFunction(n.onCopied)&&n.$evalAsync(n.onCopied())}catch(t){e.isFunction(n.onError)&&n.$evalAsync(n.onError({err:t}))}}))}}}])})),angular.module("inputDropdown",[]).directive("inputDropdown",[function(){return{restrict:"E",scope:{defaultDropdownItems:"=",selectedItem:"=",allowCustomInput:"=",inputRequired:"=",disabled:"=",inputName:"@",inputClassName:"@",inputPlaceholder:"@",onlyShowNonEmptyDropdown:"@",filterListMethod:"&",valueChangedMethod:"&",itemSelectedMethod:"&"},template:'<div class="input-dropdown"><input type="text"name="{{inputName}}"placeholder="{{inputPlaceholder}}"autocomplete="off"ng-model="inputValue"class="{{inputClassName}}"ng-required="inputRequired"ng-change="inputChange()"ng-focus="inputFocus()"ng-blur="inputBlur($event)"ng-disabled="disabled"input-dropdown-validator><ul ng-show="dropdownVisible && dropdownItems && dropdownItems.length"><li ng-repeat="item in dropdownItems"ng-click="selectItem(item)"ng-mouseenter="setActive($index)"ng-mousedown="dropdownPressed()"ng-class="{\'active\': activeItemIndex === $index}"><span ng-if="item.readableName">{{item.readableName}}</span><span ng-if="!item.readableName">{{item}}</span></li></ul></div>',controller:["$scope",function(e){this.getSelectedItem=function(){return e.selectedItem},this.isRequired=function(){return e.inputRequired},this.customInputAllowed=function(){return e.allowCustomInput},this.getInput=function(){return e.inputValue}}],link:function(e,t){var n=!1,a=t.find("input").isolateScope();e.activeItemIndex=0,e.inputValue="",e.dropdownVisible=!1,e.dropdownItems=e.defaultDropdownItems||[],e.$watch("dropdownItems",(function(t,n){angular.equals(t,n)||(e.allowCustomInput?e.setInputActive():e.setActive(0))})),e.$watch("selectedItem",(function(t,n){a.updateInputValidity(),angular.equals(t,n)||t&&(e.inputValue="string"==typeof t?t:t.readableName)})),e.setInputActive=function(){e.setActive(-1)},e.setActive=function(t){e.activeItemIndex=t},e.inputChange=function(){if(e.selectedItem=null,r(),u(e.inputValue,"input"),e.inputValue){if(e.allowCustomInput&&a.updateInputValidity(),e.filterListMethod){var t=e.filterListMethod({userInput:e.inputValue});t&&t.then((function(t){e.dropdownItems=t}))}}else e.dropdownItems=e.defaultDropdownItems||[]},e.inputFocus=function(){e.allowCustomInput?e.setInputActive():e.setActive(0),r()},e.inputBlur=function(e){n?n=!1:i()},e.dropdownPressed=function(){n=!0},e.selectItem=function(t){e.selectedItem=t,i(),e.dropdownItems=[t],u(t,"select"),e.itemSelectedMethod&&e.itemSelectedMethod({item:t})};var r=function(){(!e.onlyShowNonEmptyDropdown||e.dropdownItems&&e.dropdownItems.length)&&(e.dropdownVisible=!0)},i=function(){e.dropdownVisible=!1},o=function(){var t=e.activeItemIndex-1;t>=0?e.setActive(t):e.allowCustomInput&&e.setInputActive()},s=function(){var t=e.activeItemIndex+1;t<e.dropdownItems.length&&e.setActive(t)},l=function(){e.activeItemIndex>=0&&e.activeItemIndex<e.dropdownItems.length?e.selectItem(e.dropdownItems[e.activeItemIndex]):e.allowCustomInput&&e.activeItemIndex},u=function(t,n){e.valueChangedMethod&&e.valueChangedMethod({value:t,from:n})};t.bind("keydown keypress",(function(t){switch(t.which){case 38:e.$apply(o);break;case 40:e.$apply(s);break;case 13:e.dropdownVisible&&e.dropdownItems&&e.dropdownItems.length>0&&-1!==e.activeItemIndex&&(t.preventDefault(),e.$apply(l));break;case 9:e.dropdownVisible&&e.dropdownItems&&e.dropdownItems.length>0&&-1!==e.activeItemIndex&&e.$apply(l)}}))}}}]),angular.module("inputDropdown").directive("inputDropdownValidator",(function(){return{require:["^inputDropdown","ngModel"],restrict:"A",scope:{},link:function(e,t,n,a){var r=a[0],i=a[1];e.updateInputValidity=function(){var e=r.getSelectedItem(),t=!1;r.isRequired()?(r.customInputAllowed()&&r.getInput()||e)&&(t=!0):t=!0,i.$setValidity("itemSelectedValid",t)}}}})),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).angularDragula=e()}}((function(){return function e(t,n,a){function r(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){var n=t[o][1][e];return r(n||e)}),c,c.exports,e,t,n,a)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<a.length;o++)r(a[o]);return r}({1:[function(e,t,n){"use strict";var a=e("./service"),r=e("./directive");t.exports=function(e){var t=e.module("dragula",["ng"]);return t.factory("dragulaService",a(e)),t.directive("dragula",r(e)),"dragula"}},{"./directive":2,"./service":13}],2:[function(e,t,n){"use strict";var a=e("dragula");t.exports=function(e){return["dragulaService",function(e){return{restrict:"A",scope:{dragulaScope:"=",dragulaModel:"="},link:function(t,n,r){var i,o=t.dragulaScope||t.$parent,s=n[0],l=t.$eval(r.dragula),u=e.find(o,l);u?(i=u.drake).containers.push(s):(i=a({containers:[s]}),e.add(o,l,i)),t.$watch("dragulaModel",(function(t,n){if(t){if(i.models){var a=n?i.models.indexOf(n):-1;a>=0?i.models.splice(a,1,t):i.models.push(t)}else i.models=[t];e.handleModels(o,i)}}))}}}]}},{dragula:10}],3:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],4:[function(e,t,n){"use strict";var a=e("ticky");t.exports=function(e,t,n){e&&a((function(){e.apply(n||null,t||[])}))}},{ticky:11}],5:[function(e,t,n){"use strict";var a=e("atoa"),r=e("./debounce");t.exports=function(e,t){var n=t||{},i={};return void 0===e&&(e={}),e.on=function(t,n){return i[t]?i[t].push(n):i[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var a=arguments.length;if(1===a)delete i[t];else if(0===a)i={};else{var r=i[t];if(!r)return e;r.splice(r.indexOf(n),1)}return e},e.emit=function(){var t=a(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var o=(i[t]||[]).slice(0);return function(){var i=a(arguments),s=this||e;if("error"===t&&!1!==n.throws&&!o.length)throw 1===i.length?i[0]:i;return o.forEach((function(a){n.async?r(a,i,s):a.apply(s,i),a._once&&e.off(t,a)})),e}},e}},{"./debounce":4,atoa:3}],6:[function(e,t,n){(function(n){"use strict";function a(e,t,a){return function(t){var r=t||n.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,a.call(e,r)}}function r(e,t,n){var a=function(e,t,n){var a,r;for(a=0;a<c.length;a++)if((r=c[a]).element===e&&r.type===t&&r.fn===n)return a}(e,t,n);if(a){var r=c[a].wrapper;return c.splice(a,1),r}}var i=e("custom-event"),o=e("./eventmap"),s=n.document,l=function(e,t,n,a){return e.addEventListener(t,n,a)},u=function(e,t,n,a){return e.removeEventListener(t,n,a)},c=[];n.addEventListener||(l=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var i=r(e,t,n)||a(e,t,n);return c.push({wrapper:i,element:e,type:t,fn:n}),i}(e,t,n))},u=function(e,t,n){var a=r(e,t,n);return a?e.detachEvent("on"+t,a):void 0}),t.exports={add:l,remove:u,fabricate:function(e,t,n){var a=-1===o.indexOf(t)?new i(t,{detail:n}):function(){var e;return s.createEvent?(e=s.createEvent("Event")).initEvent(t,!0,!0):s.createEventObject&&(e=s.createEventObject()),e}();e.dispatchEvent?e.dispatchEvent(a):e.fireEvent("on"+t,a)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(e,t,n){(function(e){"use strict";var n=[],a="",r=/^on/;for(a in e)r.test(a)&&n.push(a.slice(2));t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,n){(function(e){var n=e.CustomEvent;t.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,n){"use strict";function a(e){var t=r[e];return t?t.lastIndex=0:r[e]=t=new RegExp(i+e+o,"g"),t}var r={},i="(?:^|\\s)",o="(?:\\s|$)";t.exports={add:function(e,t){var n=e.className;n.length?a(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(a(t)," ").trim()}}},{}],10:[function(e,t,n){(function(n){"use strict";function a(e,t,a,r){n.navigator.pointerEnabled?y[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[a],r):n.navigator.msPointerEnabled?y[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[a],r):(y[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[a],r),y[t](e,a,r))}function r(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function i(e){var t=e.getBoundingClientRect();return{left:t.left+o("scrollLeft","pageXOffset"),top:t.top+o("scrollTop","pageYOffset")}}function o(e,t){return void 0!==n[t]?n[t]:C.clientHeight?C[e]:w.body[e]}function s(e,t,n){var a,r=e||{},i=r.className;return r.className+=" gu-hide",a=w.elementFromPoint(t,n),r.className=i,a}function l(){return!1}function u(){return!0}function c(e){return e.width||e.right-e.left}function d(e){return e.height||e.bottom-e.top}function f(e){return e.parentNode===w?null:e.parentNode}function h(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||p(e)}function p(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||p(f(e))))}function g(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function m(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),a={pageX:"clientX",pageY:"clientY"};return e in a&&!(e in n)&&a[e]in n&&(e=a[e]),n[e]}var v=e("contra/emitter"),y=e("crossvent"),b=e("./classes"),w=document,C=w.documentElement;t.exports=function(e,t){function n(e){return-1!==ce.containers.indexOf(e)||ue.isContainer(e)}function o(e){var t=e?"remove":"add";a(C,t,"mousedown",x),a(C,t,"mouseup",B)}function p(e){a(C,e?"remove":"add","mousemove",k)}function _(e){var t=e?"remove":"add";y[t](C,"selectstart",T),y[t](C,"click",T)}function S(){o(!0),B({})}function T(e){se&&e.preventDefault()}function x(e){if(te=e.clientX,ne=e.clientY,!(1!==r(e)||e.metaKey||e.ctrlKey)){var t=e.target,n=I(t);n&&(se=n,p(),"mousedown"===e.type&&(h(t)?t.focus():e.preventDefault()))}}function k(e){if(se){if(0===r(e))return void B({});if(void 0===e.clientX||e.clientX!==te||void 0===e.clientY||e.clientY!==ne){if(ue.ignoreInputTextSelection){var t=m("clientX",e),n=m("clientY",e);if(h(w.elementFromPoint(t,n)))return}var a=se;p(!0),_(),M(),A(a);var o=i(Z);J=m("pageX",e)-o.left,ee=m("pageY",e)-o.top,b.add(ie||Z,"gu-transit"),U(),z(e)}}}function I(e){if(!(ce.dragging&&K||n(e))){for(var t=e;f(e)&&!1===n(f(e));){if(ue.invalid(e,t))return;if(!(e=f(e)))return}var a=f(e);if(a&&!ue.invalid(e,t))if(ue.moves(e,a,t,g(e)))return{item:e,source:a}}}function E(e){return!!I(e)}function $(e){var t=I(e);t&&A(t)}function A(e){X(e.item,e.source)&&(ie=e.item.cloneNode(!0),ce.emit("cloned",ie,e.item,"copy")),Y=e.source,Z=e.item,ae=re=g(e.item),ce.dragging=!0,ce.emit("drag",Z,Y)}function O(){return!1}function M(){if(ce.dragging){var e=ie||Z;N(e,f(e))}}function L(){se=!1,p(!0),_(!0)}function B(e){if(L(),ce.dragging){var t=ie||Z,n=m("clientX",e),a=m("clientY",e),r=R(s(K,n,a),n,a);r&&(ie&&ue.copySortSource||!ie||r!==Y)?N(t,r):ue.removeOnSpill?j():D()}}function N(e,t){var n=f(e);ie&&ue.copySortSource&&t===Y&&n.removeChild(Z),F(t)?ce.emit("cancel",e,Y,Y):ce.emit("drop",e,t,Y,re),P()}function j(){if(ce.dragging){var e=ie||Z,t=f(e);t&&t.removeChild(e),ce.emit(ie?"cancel":"remove",e,t,Y),P()}}function D(e){if(ce.dragging){var t=arguments.length>0?e:ue.revertOnSpill,n=ie||Z,a=f(n),r=F(a);!1===r&&t&&(ie?a&&a.removeChild(ie):Y.insertBefore(n,ae)),r||t?ce.emit("cancel",n,Y,Y):ce.emit("drop",n,a,Y,re),P()}}function P(){var e=ie||Z;L(),Q(),e&&b.rm(e,"gu-transit"),oe&&clearTimeout(oe),ce.dragging=!1,le&&ce.emit("out",e,le,Y),ce.emit("dragend",e),Y=Z=ie=ae=re=oe=le=null}function F(e,t){var n;return n=void 0!==t?t:K?re:g(ie||Z),e===Y&&n===ae}function R(e,t,a){function r(){if(!1===n(i))return!1;var r=V(i,e),o=W(i,r,t,a);return!!F(i,o)||ue.accepts(Z,i,Y,o)}for(var i=e;i&&!r();)i=f(i);return i}function z(e){function t(e){ce.emit(e,o,le,Y)}if(K){e.preventDefault();var n=m("clientX",e),a=m("clientY",e),r=n-J,i=a-ee;K.style.left=r+"px",K.style.top=i+"px";var o=ie||Z,l=s(K,n,a),u=R(l,n,a),c=null!==u&&u!==le;(c||null===u)&&(le&&t("out"),le=u,c&&t("over"));var d=f(o);if(u===Y&&ie&&!ue.copySortSource)return void(d&&d.removeChild(o));var h,p=V(u,l);if(null!==p)h=W(u,p,n,a);else{if(!0!==ue.revertOnSpill||ie)return void(ie&&d&&d.removeChild(o));h=ae,u=Y}(null===h&&c||h!==o&&h!==g(o))&&(re=h,u.insertBefore(o,h),ce.emit("shadow",o,u,Y))}}function H(e){b.rm(e,"gu-hide")}function q(e){ce.dragging&&b.add(e,"gu-hide")}function U(){if(!K){var e=Z.getBoundingClientRect();(K=Z.cloneNode(!0)).style.width=c(e)+"px",K.style.height=d(e)+"px",b.rm(K,"gu-transit"),b.add(K,"gu-mirror"),ue.mirrorContainer.appendChild(K),a(C,"add","mousemove",z),b.add(ue.mirrorContainer,"gu-unselectable"),ce.emit("cloned",K,Z,"mirror")}}function Q(){K&&(b.rm(ue.mirrorContainer,"gu-unselectable"),a(C,"remove","mousemove",z),f(K).removeChild(K),K=null)}function V(e,t){for(var n=t;n!==e&&f(n)!==e;)n=f(n);return n===C?null:n}function W(e,t,n,a){var r="horizontal"===ue.direction,i=t!==e?function(){var e=t.getBoundingClientRect();return function(e){return e?g(t):t}(r?n>e.left+c(e)/2:a>e.top+d(e)/2)}():function(){var t,i,o,s=e.children.length;for(t=0;s>t;t++){if(o=(i=e.children[t]).getBoundingClientRect(),r&&o.left+o.width/2>n)return i;if(!r&&o.top+o.height/2>a)return i}return null}();return i}function X(e,t){return"boolean"==typeof ue.copy?ue.copy:ue.copy(e,t)}var G=arguments.length;1===G&&!1===Array.isArray(e)&&(t=e,e=[]);var K,Y,Z,J,ee,te,ne,ae,re,ie,oe,se,le=null,ue=t||{};void 0===ue.moves&&(ue.moves=u),void 0===ue.accepts&&(ue.accepts=u),void 0===ue.invalid&&(ue.invalid=O),void 0===ue.containers&&(ue.containers=e||[]),void 0===ue.isContainer&&(ue.isContainer=l),void 0===ue.copy&&(ue.copy=!1),void 0===ue.copySortSource&&(ue.copySortSource=!1),void 0===ue.revertOnSpill&&(ue.revertOnSpill=!1),void 0===ue.removeOnSpill&&(ue.removeOnSpill=!1),void 0===ue.direction&&(ue.direction="vertical"),void 0===ue.ignoreInputTextSelection&&(ue.ignoreInputTextSelection=!0),void 0===ue.mirrorContainer&&(ue.mirrorContainer=w.body);var ce=v({containers:ue.containers,start:$,end:M,cancel:D,remove:j,destroy:S,canMove:E,dragging:!1});return!0===ue.removeOnSpill&&ce.on("over",H).on("out",q),o(),ce}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":9,"contra/emitter":5,crossvent:6}],11:[function(e,t,n){var a;a="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},t.exports=a},{}],12:[function(e,t,n){"use strict";var a=e("atoa"),r=["cancel","cloned","drag","dragend","drop","out","over","remove","shadow","drop-model","remove-model"];t.exports=function(e,t,n){function i(t){return e.isElement(t)?e.element(t):t}r.forEach((function(e){t.drake.on(e,(function(){var r=a(arguments).map(i);r.unshift(t.name+"."+e),n.$emit.apply(n,r)}))}))}},{atoa:3}],13:[function(e,t,n){"use strict";var a=e("dragula"),r="$$dragula",i=e("./replicate-events");t.exports=function(e){return[function(){function t(t,n){var a,r,i,s;n.registered||(n.on("remove",(function(e,a){n.models&&(s=n.models[n.containers.indexOf(a)],t.$applyAsync((function(){s.splice(r,1),n.emit("remove-model",e,a)})))})),n.on("drag",(function(e,t){a=e,r=o(e,t)})),n.on("drop",(function(l,u,c){n.models&&(i=o(l,u),t.$applyAsync((function(){if(s=n.models[n.containers.indexOf(c)],u===c)s.splice(i,0,s.splice(r,1)[0]);else{var t=a===l,o=n.models[n.containers.indexOf(u)],d=t?s[r]:e.copy(s[r]);t&&s.splice(r,1),o.splice(i,0,d),u.removeChild(l)}n.emit("drop-model",l,u,c)})))})),n.registered=!0)}function n(e){var t=e[r];return t||(t=e[r]={bags:[]}),t}function o(t,n){return Array.prototype.indexOf.call(e.element(n).children(),t)}function s(a,r,o){var s=l(a,r);if(s)throw new Error('Bag named: "'+r+'" already exists in same angular scope.');return s={name:r,drake:o},n(a).bags.push(s),i(e,s,a),o.models&&t(a,o),s}function l(e,t){for(var a=n(e).bags,r=0;r<a.length;r++)if(a[r].name===t)return a[r]}return{add:s,find:l,options:function(e,n,r){t(e,s(e,n,a(r)).drake)},destroy:function(e,t){var a=n(e).bags,r=l(e,t),i=a.indexOf(r);a.splice(i,1),r.drake.destroy()},handleModels:t}}]}},{"./replicate-events":12,dragula:10}]},{},[1])(1)})),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["angular","sweetalert"],t):"object"==typeof module&&module.exports?module.exports=t(require("angular"),require("sweetalert")):t(e.angular,e.swal)}(this,(function(e,t){"use strict";e.module("oitozero.ngSweetAlert",[]).factory("SweetAlert",["$rootScope",function(e){return{swal:function(n,a,r){e.$evalAsync((function(){t(n,"function"==typeof a?function(t){e.$evalAsync((function(){a(t)}))}:a,r)}))},success:function(n,a){e.$evalAsync((function(){t(n,a,"success")}))},error:function(n,a){e.$evalAsync((function(){t(n,a,"error")}))},warning:function(n,a){e.$evalAsync((function(){t(n,a,"warning")}))},info:function(n,a){e.$evalAsync((function(){t(n,a,"info")}))},showInputError:function(n){e.$evalAsync((function(){t.showInputError(n)}))},close:function(){e.$evalAsync((function(){t.close()}))}}}])}));
|