/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ /* * jQuery Hotkeys Plugin * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * * Based upon the plugin by Tzury Bar Yochay: * https://github.com/tzuryby/jquery.hotkeys * * Original idea by: * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/ */ /* MediaMatch v.2.0.2 - Testing css media queries in Javascript. Authors & copyright (c) 2013: WebLinc, David Knight. */ // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. /*! * Bootstrap v3.3.5 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under the MIT license */ /* ======================================================================== * Bootstrap: transition.js v3.3.5 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: alert.js v3.3.5 * http://getbootstrap.com/javascript/#alerts * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: button.js v3.3.5 * http://getbootstrap.com/javascript/#buttons * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: carousel.js v3.3.5 * http://getbootstrap.com/javascript/#carousel * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: collapse.js v3.3.5 * http://getbootstrap.com/javascript/#collapse * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: dropdown.js v3.3.5 * http://getbootstrap.com/javascript/#dropdowns * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: modal.js v3.3.5 * http://getbootstrap.com/javascript/#modals * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: tooltip.js v3.3.5 * http://getbootstrap.com/javascript/#tooltip * Inspired by the original jQuery.tipsy by Jason Frame * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: popover.js v3.3.5 * http://getbootstrap.com/javascript/#popovers * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: scrollspy.js v3.3.5 * http://getbootstrap.com/javascript/#scrollspy * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: tab.js v3.3.5 * http://getbootstrap.com/javascript/#tabs * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* ======================================================================== * Bootstrap: affix.js v3.3.5 * http://getbootstrap.com/javascript/#affix * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* Copyright 2012 Igor Vaynberg Version: 3.5.2 Timestamp: Sat Nov 1 14:43:36 EDT 2014 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU General Public License version 2 (the "GPL License"). You may choose either license to govern your use of this software only upon the condition that you accept all of the terms of either the Apache License or the GPL License. You may obtain a copy of the Apache License and the GPL License at: http://www.apache.org/licenses/LICENSE-2.0 http://www.gnu.org/licenses/gpl-2.0.html Unless required by applicable law or agreed to in writing, software distributed under the Apache License or the GPL License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for the specific language governing permissions and limitations under the Apache License and the GPL License. */ /* * jQuery.bind-first library v0.2.3 * Copyright (c) 2013 Vladimir Zhuravlev * * Released under MIT License * @license * * Date: Thu Feb 6 10:13:59 ICT 2014 **/ //! moment.js //! version : 2.10.6 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com /*! version : 4.17.37 ========================================================= bootstrap-datetimejs https://github.com/Eonasdan/bootstrap-datetimepicker Copyright (c) 2015 Jonathan Peterson ========================================================= */ /* jQuery Masked Input Plugin Copyright (c) 2007 - 2015 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.4.1 */ /* highlight v3 Highlights arbitrary terms. MIT license. Johann Burkard */ /* * jQuery.plainOverlay * https://github.com/anseki/jquery-plainoverlay * * Copyright (c) 2015 anseki * Licensed under the MIT license. */ /** * bootbox.js [v4.4.0] * * http://bootboxjs.com/license.txt */ /** * jQuery Validation Plugin 1.9.0 * * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ * http://docs.jquery.com/Plugins/Validation * * Copyright (c) 2006 - 2011 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ /*! * jQuery Form Plugin * version: 3.51.0-2014.06.20 * Requires jQuery v1.5 or later * Copyright (c) 2014 M. Alsup * Examples and documentation at: http://malsup.com/jquery/form/ * Project repository: https://github.com/malsup/form * Dual licensed under the MIT and GPL licenses. * https://github.com/malsup/form#copyright-and-license */ /*! Magnific Popup - v0.9.9 - 2013-11-15 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2013 Dmitry Semenov; */ /*! Copyright (c) 2011 by Jonas Mosbech - https://github.com/jmosbech/StickyTableHeaders MIT license info: https://github.com/jmosbech/StickyTableHeaders/blob/master/license.txt */ /* --- MooTools: the javascript framework web build: - http://mootools.net/core/8e92641ac7975f557a40e8521965672c packager build: - packager build Core/Event Core/Class Core/Class.Extras copyrights: - [MooTools](http://mootools.net) licenses: - [MIT License](http://mootools.net/license.txt) ... */ /* * jQuery Templating Plugin * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. */ // (c) Steven Sanderson - http://knockoutjs.com/ // License: MIT (http://www.opensource.org/licenses/mit-license.php) if(define("pgui.localizer",[],function(){var e=null,t={translations:{}};return{load:function(){return e=e||$.getJSON("components/js/jslang.php").done(function(e){t=e})},getString:function(e,n){return"undefined"!=typeof t.translations[e]?t.translations[e]:n||e},getFirstDayOfWeek:function(){return t.firstDayOfWeek||0}}}),!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t="length"in e&&e.length,n=re.type(e);return"function"===n||re.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(re.isFunction(t))return re.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return re.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(he.test(t))return re.filter(t,e,n);t=re.filter(t,e)}return re.grep(e,function(e){return re.inArray(e,t)>=0!==n})}function r(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t=we[e]={};return re.each(e.match(be)||[],function(e,n){t[n]=!0}),t}function a(){pe.addEventListener?(pe.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(pe.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(pe.addEventListener||"load"===event.type||"complete"===pe.readyState)&&(a(),re.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(Ee,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Te.test(n)?re.parseJSON(n):n}catch(r){}re.data(e,t,n)}else n=void 0}return n}function c(e){var t;for(t in e)if(("data"!==t||!re.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(e,t,n,i){if(re.acceptData(e)){var r,o,a=re.expando,s=e.nodeType,l=s?re.cache:e,c=s?e[a]:e[a]&&a;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof t)return c||(c=s?e[a]=G.pop()||re.guid++:a),l[c]||(l[c]=s?{}:{toJSON:re.noop}),("object"==typeof t||"function"==typeof t)&&(i?l[c]=re.extend(l[c],t):l[c].data=re.extend(l[c].data,t)),o=l[c],i||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[re.camelCase(t)]=n),"string"==typeof t?(r=o[t],null==r&&(r=o[re.camelCase(t)])):r=o,r}}function d(e,t,n){if(re.acceptData(e)){var i,r,o=e.nodeType,a=o?re.cache:e,s=o?e[re.expando]:re.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){re.isArray(t)?t=t.concat(re.map(t,re.camelCase)):t in i?t=[t]:(t=re.camelCase(t),t=t in i?[t]:t.split(" ")),r=t.length;for(;r--;)delete i[t[r]];if(n?!c(i):!re.isEmptyObject(i))return}(n||(delete a[s].data,c(a[s])))&&(o?re.cleanData([e],!0):ne.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function h(){return!0}function f(){return!1}function p(){try{return pe.activeElement}catch(e){}}function m(e){var t=Pe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,i,r=0,o=typeof e.getElementsByTagName!==ke?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==ke?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||re.nodeName(i,t)?o.push(i):re.merge(o,g(i,t));return void 0===t||t&&re.nodeName(e,t)?re.merge([e],o):o}function v(e){Oe.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return re.nodeName(e,"table")&&re.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==re.find.attr(e,"type"))+"/"+e.type,e}function w(e){var t=Ve.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function x(e,t){for(var n,i=0;null!=(n=e[i]);i++)re._data(n,"globalEval",!t||re._data(t[i],"globalEval"))}function C(e,t){if(1===t.nodeType&&re.hasData(e)){var n,i,r,o=re._data(e),a=re._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(i=0,r=s[n].length;r>i;i++)re.event.add(t,n,s[n][i])}a.data&&(a.data=re.extend({},a.data))}}function k(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ne.noCloneEvent&&t[re.expando]){r=re._data(t);for(i in r.events)re.removeEvent(t,i,r.handle);t.removeAttribute(re.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,w(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ne.html5Clone&&e.innerHTML&&!re.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Oe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function T(t,n){var i,r=re(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(r[0]))?i.display:re.css(r[0],"display");return r.detach(),o}function E(e){var t=pe,n=Je[e];return n||(n=T(e,t),"none"!==n&&n||(Ze=(Ze||re("").attr("src",this.getUrl()),n=this;return e.each(this._defaults.iframeOptions,function(e){"undefined"!=typeof n.options.iframeOptions[e]&&t.attr(e,n.options.iframeOptions[e])}),t},getContent:function(){if(this.getUrl())switch(this.options.type){case"iframe":this.content=this.getIframe();break;case"html":try{this.content=e(this.getUrl()),this.content.is(":visible")||this.content.show()}catch(t){throw new Error("Unable to get popover content. Invalid selector specified.")}}else if(!this.content){var n="";if(n=e.isFunction(this.options.content)?this.options.content.apply(this.$element[0],[this]):this.options.content,this.content=this.$element.attr("data-content")||n,!this.content){var i=this.$element.next();i&&i.hasClass(r+"-content")&&(this.content=i)}}return this.content},setContent:function(e){var t=this.getTarget(),n=this.getContentElement();"string"==typeof e?n.html(e):e instanceof jQuery&&(n.html(""),this.options.cache?e.removeClass(r+"-content").appendTo(n):e.clone(!0,!0).removeClass(r+"-content").appendTo(n)),this.$target=t},isAsync:function(){return"async"===this.options.type},setContentASync:function(t){var n=this;this.xhr||(this.xhr=e.ajax({url:this.getUrl(),type:this.options.async.type,cache:this.getCache(),beforeSend:function(e){n.options.async.before&&n.options.async.before(n,e)},success:function(i){n.bindBodyEvents(),t&&e.isFunction(t)?n.content=t.apply(n.$element[0],[i]):n.content=i,n.setContent(n.content);var r=n.getContentElement();r.removeAttr("style"),n.displayContent(),n.options.async.success&&n.options.async.success(n,i)},complete:function(){n.xhr=null},error:function(e,t){n.options.async.error&&n.options.async.error(n,e,t)}}))},bindBodyEvents:function(){u||(this.options.dismissible&&"click"===this.getTrigger()?(h.off("keyup.webui-popover").on("keyup.webui-popover",e.proxy(this.escapeHandler,this)),h.off("click.webui-popover touchend.webui-popover").on("click.webui-popover touchend.webui-popover",e.proxy(this.bodyClickHandler,this))):"hover"===this.getTrigger()&&h.off("touchend.webui-popover").on("touchend.webui-popover",e.proxy(this.bodyClickHandler,this)))},mouseenterHandler:function(){var e=this;e._timeout&&clearTimeout(e._timeout),e._enterTimeout=setTimeout(function(){e.getTarget().is(":visible")||e.show()},this.getDelayShow())},mouseleaveHandler:function(){var e=this;clearTimeout(e._enterTimeout),e._timeout=setTimeout(function(){e.hide()},this.getHideDelay())},escapeHandler:function(e){27===e.keyCode&&this.hideAll()},bodyClickHandler:function(e){u=!0;for(var t=!0,n=0;n=r&&c.x<=a&&c.y>=o&&c.y<=l;if(d){t=!1;break}}}t&&m()},initTargetEvents:function(){"hover"===this.getTrigger()&&this.$target.off("mouseenter mouseleave").on("mouseenter",e.proxy(this.mouseenterHandler,this)).on("mouseleave",e.proxy(this.mouseleaveHandler,this)),this.$target.find(".close").off("click").on("click",e.proxy(this.hide,this,!0))},getPlacement:function(e){var t,n=this.options.container,i=n.innerWidth(),r=n.innerHeight(),o=n.scrollTop(),a=n.scrollLeft(),s=Math.max(0,e.left-a),l=Math.max(0,e.top-o);t="function"==typeof this.options.placement?this.options.placement.call(this,this.getTarget()[0],this.$element[0]):this.$element.data("placement")||this.options.placement;var c="horizontal"===t,u="vertical"===t,d="auto"===t||c||u;return d?t=i/3>s?r/3>l?c?"right-bottom":"bottom-right":2*r/3>l?u?r/2>=l?"bottom-right":"top-right":"right":c?"right-top":"top-right":2*i/3>s?r/3>l?c?i/2>=s?"right-bottom":"left-bottom":"bottom":2*r/3>l?c?i/2>=s?"right":"left":r/2>=l?"bottom":"top":c?i/2>=s?"right-top":"left-top":"top":r/3>l?c?"left-bottom":"bottom-left":2*r/3>l?u?r/2>=l?"bottom-left":"top-left":"left":c?"left-top":"top-left":"auto-top"===t?t=i/3>s?"top-right":2*i/3>s?"top":"top-left":"auto-bottom"===t?t=i/3>s?"bottom-right":2*i/3>s?"bottom":"bottom-left":"auto-left"===t?t=r/3>l?"left-top":2*r/3>l?"left":"left-bottom":"auto-right"===t&&(t=r/3>l?"right-top":2*r/3>l?"right":"right-bottom"),t},getElementPosition:function(){return e.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTargetPositin:function(e,t,n,i){var r=e,o=this.options.container,a=o.innerWidth(),s=o.innerHeight(),l=this.$element.outerWidth(),c=this.$element.outerHeight(),u=o.scrollTop(),h=o.scrollLeft(),f={},p=null,m=this.options.arrow?20:0,g=10,v=m+g>l?m:0,y=m+g>c?m:0,b=0,w=s+u,x=a+h,C=r.left+r.width/2-v>0,k=r.left+r.width/2+v0,E=r.top+r.height/2+y0;t&&e.show().find(".js-caret:first").addClass("collapsed")}),0===n.length&&o.show()):i.find(".js-component").show(),s.toggle(e.length>0),a(i)}var o=i.find(".js-search-empty").hide(),s=i.find(".js-search-clear").hide();if(!this.isSearchEnabledFor(e))return void i.find(".js-search").hide();var l=i.find(".js-search-input"),c=n.getTitles();s.on("click",function(){return l.val("").trigger("change"),!1}),l.on("keyup change",r),r()},_getColumnGroupDOM:function(e,n){return t.toArray(t.mapObject(e.getChildren(),function(e,t){return o(n,t)?void 0:e.getDOM(t,n)}))},submit:function(){var e=JSON.stringify({isEnabled:this.filterComponent.isEnabled(),children:this.filterComponent.serializeEnabledComponents()});return $("
").attr("method","POST").append($('').val(e)).hide().appendTo($("body")).submit(),this},setEnabled:function(e){return this.filterComponent.setEnabled(e),this},reset:function(){return this.filterComponent=new l,this}}),l=n.Group.extend({getDOM:function(e,n){var a=n[e]||[],s=$(i("group")({label:$("
").html(e).text(),checked:this.isEnabled()})),l=s.find(".js-toggle-component").first(),c=s.find(".js-children").first(),u=t.filter(t.toArray(t.mapObject(this.getChildren(),function(e,t){ return o(a,t)?void 0:e.getDOM(t,a)})),function(e){return Boolean(e)});return 0!==u.length?(c.append(u),this._updateEnabledOnDOM(l,c),s.data("component",this).on("click",".js-caret:first",function(e){$(e.currentTarget).toggleClass("collapsed"),c.toggle(),e.preventDefault()}).on("change",".js-toggle-component",t.bind(function(e){var t=r($(e.currentTarget)).data("component");if(t===this){l.prop("indeterminate",!1);var n=$(e.currentTarget).prop("checked");this.setEnabled(n),c.find(".js-toggle-component").prop("checked",n),c.find(".js-component").each(function(e,t){$(t).data("component").setEnabled(n)})}else this._updateEnabledOnDOM(l,c)},this))):void 0},_updateEnabledOnDOM:function(e,t,n){var i=t.find(".js-toggle-component:checked").length,r=i===t.find(".js-toggle-component").length;e.prop("indeterminate",i>0&&!r),e.prop("checked",r),this.setEnabled(i>0)},createCondition:function(){return new c},serializeEnabledComponents:function(){return t.reduce(this.children,function(e,t,n){return t.isEnabled()&&(e[n]=t.serializeEnabledComponents()),e},{})},setEnabledDeep:function(e){return this.setEnabled(e),t.each(this.children,function(t){t.setEnabledDeep(e)}),this},getTitles:function(){return t.reduce(this.children,function(e,n,i){return e.push({title:$("
").html(i).text(),component:n}),e.push(n.getTitles()),t.flatten(e)},[])}}),c=n.Condition.extend({init:function(e,t,n){this._super(e,t,n),this.hasDivider=!1,this.ignoreSelectAll=null},getDOM:function(e){return $(i("condition")({ignoreSelectAll:this.ignoreSelectAll,hasDivider:this.hasDivider,label:$("
").html(e).text(),checked:this.isEnabled()})).data("component",this).on("change",".js-toggle-component",t.bind(function(e){this.setEnabled($(e.currentTarget).prop("checked"))},this))},serializeEnabledComponents:function(){return{}},setEnabledDeep:function(e){return this.setEnabled(e),this},getTitles:function(){return[]},serialize:function(){var e=this._super();return e.hasDivider=this.hasDivider,e.ignoreSelectAll=this.ignoreSelectAll,e},deserialize:function(e,t){return this.hasDivider=t.hasDivider||!1,this.ignoreSelectAll=t.ignoreSelectAll||!1,this._super(e,t)}}),u={content:"#columnFilterContentTemplate",group:"#columnFilterGroupTemplate",condition:"#columnFilterConditionTemplate"},d={};return{Group:l,Condition:c,create:function(e){return new s(e)}}}),jQuery.fn.highlight=function(e,t,n){function i(e,t,n,r){var o=0;if(3==e.nodeType){var a=-1;a="END"==n?e.data.toUpperCase().lastIndexOf(t):e.data.toUpperCase().indexOf(t);var s=e.data.toUpperCase().length;if(a>=0&&"ALL"==n||0==a&&"START"==n||a>=0&&a>=s-t.length&&"END"==n){var l=document.createElement("span");l.title=r.hint,l.className="highlight";var c=e.splitText(a),u=(c.splitText(t.length),c.cloneNode(!0));l.appendChild(u),c.parentNode.replaceChild(l,c),o=1}}else if(1==e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName))for(var d=0;d').append(this.$input.clone()).hide().appendTo("body").submit(),this}})}),!function(e,t){"use strict";function n(n,i,r){var o=this,a=n.get(0);o.duration=i.duration,o.opacity=i.opacity,o.isShown=!1,o.jqTargetOrg=n,e.isWindow(a)||9===a.nodeType?o.jqTarget=e("body"):"iframe"===a.nodeName.toLowerCase()||"frame"===a.nodeName.toLowerCase()?(o.jqWin=e(a.contentWindow),o.elmDoc=a.contentWindow.document,o.jqTarget=e("body",o.elmDoc),o.isFrame=!0):o.jqTarget=n,o.jqWin=o.jqWin||e(window),o.elmDoc=o.elmDoc||document,o.isBody="body"===o.jqTarget.get(0).nodeName.toLowerCase(),r&&(r.jqProgress&&(r.timer&&clearTimeout(r.timer),r.jqProgress.remove(),delete r.jqProgress),r.reset(!0),r.jqOverlay.stop()),o.jqOverlay=(r&&r.jqOverlay||e('
').css({position:o.isBody?"fixed":"absolute",left:0,top:0,display:"none",cursor:"wait"}).appendTo(o.jqTarget).on("touchmove",function(){return!1})).css({backgroundColor:i.fillColor,zIndex:i.zIndex}),(o.jqProgress=i.progress===!1?t:"function"==typeof i.progress?i.progress.call(o.jqTarget,i):d(o))&&o.jqProgress.css({position:o.isBody?"fixed":"absolute",display:"none",zIndex:i.zIndex+1,cursor:"wait"}).appendTo(o.jqTarget).on("touchmove",function(){return!1}),o.callAdjust=function(e){return e.adjustProgress?function(){e.adjustProgress(),e.adjust()}:function(){e.adjust()}}(o),o.avoidFocus=function(t){return function(n){return e(t.elmDoc.activeElement).blur(),n.preventDefault(),!1}}(o),o.avoidScroll=function(e){return function(t){return function(t){t.scrollLeft(e.scrLeft).scrollTop(e.scrTop)}(e.isBody?e.jqWin:e.jqTarget),t.preventDefault(),!1}}(o),r&&(r.timer&&clearTimeout(r.timer),r=t)}function i(t,i){var r=e.extend({duration:200,opacity:.6,zIndex:9e3},i);return r.fillColor=r.fillColor||r.color||"#888",t.each(function(){var t=e(this);t.data(s,new n(t,r,t.data(s))),"function"==typeof r.show&&t.off(c,r.show).on(c,r.show),"function"==typeof r.hide&&t.off(u,r.hide).on(u,r.hide)})}function r(t,n){return t.each(function(){var t,r=e(this);(n||!(t=r.data(s)))&&(t=i(r,n).data(s)),t.show()})}function o(t){return t.each(function(){var t=e(this).data(s);t&&t.hide()})}function a(e,n,r){var o,a=e.length?e.eq(0):t;return a&&(o=a.data(s)||i(a).data(s),o.hasOwnProperty(n))?(null!=r&&(o[n]=r),o[n]):void 0}var s="plainOverlay",l=s.toLowerCase(),c=l+"show",u=l+"hide",d=function(){function n(n,i,r,o){return o=o===t?";":o,e.map(n,function(t){return e.map(i,function(e){return(r||"")+e+t}).join(o)}).join(o)}var i,r="jQuery-"+s,o=["-webkit-","-moz-","-ms-","-o-",""],a=r+"-progress",l="."+a+"{"+n(["box-sizing:border-box"],["-webkit-","-moz-",""])+";width:100%;height:100%;border-top:3px solid #17f29b;"+n(["border-radius:50%"],o)+";-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);box-shadow:0 0 1px rgba(0,0,0,0);"+n(["animation-name:"+r+"-spin","animation-duration:1s","animation-timing-function:linear","animation-iteration-count:infinite"],o)+"}"+n(["keyframes "+r+"-spin{from{"+n(["transform:rotate(0deg)"],o)+"}to{"+n(["transform:rotate(360deg)"],o)+"}}"],o,"@","")+"."+a+"-legacy{width:100%;height:50%;padding-top:25%;text-align:center;white-space:nowrap;*zoom:1}."+a+"-legacy:after,."+a+'-legacy:before{content:" ";display:table}.'+a+"-legacy:after{clear:both}."+a+"-legacy div{width:18%;height:100%;margin:0 1%;background-color:#17f29b;float:left;visibility:hidden}."+a+"-1 div."+a+"-1,."+a+"-2 div."+a+"-1,."+a+"-2 div."+a+"-2,."+a+"-3 div."+a+"-1,."+a+"-3 div."+a+"-2,."+a+"-3 div."+a+"-3{visibility:visible}",c=function(){var e=Math.min(300,.9*(this.isBody?Math.min(this.jqWin.width(),this.jqWin.height()):Math.min(this.jqTarget.innerWidth(),this.jqTarget.innerHeight())));this.jqProgress.width(e).height(e),this.showProgress||this.jqProgress.children("."+a).css("borderTopWidth",Math.max(3,e/30))},u=function(e){var t=this;t.timer&&clearTimeout(t.timer),t.progressCnt&&t.jqProgress.removeClass(a+"-"+t.progressCnt),t.isShown&&(t.progressCnt=!e&&t.progressCnt<3?t.progressCnt+1:0,t.progressCnt&&t.jqProgress.addClass(a+"-"+t.progressCnt),t.timer=setTimeout(function(){t.showProgress()},500))};return function(n){var o,s;return"boolean"!=typeof i&&(i=function(){function e(e,t){return!!~(""+e).indexOf(t)}function n(n){var i;for(i in n)if(!e(n[i],"-")&&s[n[i]]!==t)return!0;return!1}function i(e){var t=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+c.join(t+" ")+t).split(" ");return n(i)}var r,o,a=document.createElement("modernizr"),s=a.style,l="Webkit Moz O ms",c=l.split(" "),u={},d={}.hasOwnProperty,h=d!==t&&d.call!==t?function(e,t){return d.call(e,t)}:function(e,n){return n in e&&e.constructor.prototype[n]===t};u.borderradius=function(){return i("borderRadius")},u.cssanimations=function(){return i("animationName")},u.csstransforms=function(){return!!i("transform")},r=!1;for(o in u)if(h(u,o)&&!u[o]()){r=!0;break}return s.cssText="",a=null,r}()),n.elmDoc.getElementById(r)||(n.elmDoc.createStyleSheet?(s=n.elmDoc.createStyleSheet(),s.owningElement.id=r,s.cssText=l):(s=(n.elmDoc.getElementsByTagName("head")[0]||n.elmDoc.documentElement).appendChild(n.elmDoc.createElement("style")),s.type="text/css",s.id=r,s.textContent=l)),i?(o=e('
'),n.showProgress=u):o=e('
'),n.adjustProgress=c,o}}();n.prototype.show=function(){var n,i,r,o,a,s=this;s.reset(!0),n=s.jqTarget.get(0).style,s.orgPosition=n.position,i=s.jqTarget.css("position"),"relative"!==i&&"absolute"!==i&&"fixed"!==i&&s.jqTarget.css("position","relative"),s.orgOverflow=n.overflow,r=s.jqTarget.prop("clientWidth"),o=s.jqTarget.prop("clientHeight"),s.jqTarget.css("overflow","hidden"),r-=s.jqTarget.prop("clientWidth"),o-=s.jqTarget.prop("clientHeight"),s.addMarginR=s.addMarginB=0,0>r&&(s.addMarginR=-r),0>o&&(s.addMarginB=-o),s.isBody?(s.addMarginR&&(s.orgMarginR=n.marginRight,s.jqTarget.css("marginRight","+="+s.addMarginR)),s.addMarginB&&(s.orgMarginB=n.marginBottom,s.jqTarget.css("marginBottom","+="+s.addMarginB))):(s.addMarginR&&(s.orgMarginR=n.paddingRight,s.orgWidth=n.width),s.addMarginB&&(s.orgMarginB=n.paddingBottom,s.orgHeight=n.height)),s.jqActive=t,a=e(s.elmDoc.activeElement),s.isBody&&!s.isFrame?s.jqActive=a.blur():s.jqTarget.has(a.get(0)).length&&a.blur(),s.jqTarget.focusin(s.avoidFocus),function(e){s.scrLeft=e.scrollLeft(),s.scrTop=e.scrollTop(),e.scroll(s.avoidScroll)}(s.isBody?s.jqWin:s.jqTarget),s.jqWin.resize(s.callAdjust),s.callAdjust(),s.isShown=!0,s.jqOverlay.stop().fadeTo(s.duration,s.opacity,function(){s.jqTargetOrg.trigger(c)}),s.jqProgress&&(s.showProgress&&s.showProgress(!0),s.jqProgress.fadeIn(s.duration))},n.prototype.hide=function(){var e=this;e.isShown&&(e.jqOverlay.stop().fadeOut(e.duration,function(){e.reset(),e.jqTargetOrg.trigger(u)}),e.jqProgress&&e.jqProgress.fadeOut(e.duration))},n.prototype.adjust=function(){var e,t;this.isBody?(e=this.jqWin.width(),t=this.jqWin.height(),this.jqOverlay.width(e).height(t),this.jqProgress&&this.jqProgress.css({left:(e-this.jqProgress.outerWidth())/2,top:(t-this.jqProgress.outerHeight())/2})):(this.addMarginR&&(e=this.jqTarget.css({paddingRight:this.orgMarginR,width:this.orgWidth}).width(),this.jqTarget.css("paddingRight","+="+this.addMarginR).width(e-this.addMarginR)),this.addMarginB&&(t=this.jqTarget.css({paddingBottom:this.orgMarginB,height:this.orgHeight}).height(),this.jqTarget.css("paddingBottom","+="+this.addMarginB).height(t-this.addMarginB)),e=Math.max(this.jqTarget.prop("scrollWidth"),this.jqTarget.innerWidth()),t=Math.max(this.jqTarget.prop("scrollHeight"),this.jqTarget.innerHeight()),this.jqOverlay.width(e).height(t),this.jqProgress&&(e=this.jqTarget.innerWidth(),t=this.jqTarget.innerHeight(),this.jqProgress.css({left:(e-this.jqProgress.outerWidth())/2+this.scrLeft,top:(t-this.jqProgress.outerHeight())/2+this.scrTop})))},n.prototype.reset=function(e){var t=this;e&&(t.jqOverlay.css("display","none"),t.jqProgress&&t.jqProgress.css("display","none")),t.isShown&&(t.jqTarget.css({position:t.orgPosition,overflow:t.orgOverflow}),t.isBody?(t.addMarginR&&t.jqTarget.css("marginRight",t.orgMarginR),t.addMarginB&&t.jqTarget.css("marginBottom",t.orgMarginB)):(t.addMarginR&&t.jqTarget.css({paddingRight:t.orgMarginR,width:t.orgWidth}),t.addMarginB&&t.jqTarget.css({paddingBottom:t.orgMarginB,height:t.orgHeight})),t.jqTarget.off("focusin",t.avoidFocus),t.jqActive&&t.jqActive.length&&t.jqActive.focus(),function(e){e.off("scroll",t.avoidScroll).scrollLeft(t.scrLeft).scrollTop(t.scrTop)}(t.isBody?t.jqWin:t.jqTarget),t.jqWin.off("resize",t.callAdjust),t.isShown=!1)},e.fn[s]=function(e,t,n){return"show"===e?r(this,t):"hide"===e?o(this):"option"===e?a(this,t,n):i(this,e)}}(jQuery),define("jquery.plainoverlay",function(){}),define("pgui.overlay",["jquery.plainoverlay"],function(){return window.overlay={showOverlay:function(e,t){$("body").plainOverlay("show",{progress:function(){return $('
'+t+"
")}})},hideOverlay:function(){$("body").plainOverlay("hide")}},window.overlay}),define("multiple_sorting",["class","pgui.localizer"],function(e,t){return e.extend({init:function(e,t){var n=this;this.sorter=e,this.$sortDialog=t,this.$table=t.find(".multiple-sorting-table"),this.$addLevelButton=t.find(".add-sorting-level"),this.$deleteLevelButton=t.find(".delete-sorting-level"),this.$initialLevels=this.$table.find("tr.sorting-level").clone(),this.$sortDialog.on("click",".sort-button",function(e){e.preventDefault();var t=n.$table.find("tr.sorting-level");n.sorter.clear(),t.each(function(){var e=$(this).find(".multi-sort-name").val();n.sorter.deleteColumn(e),n.sorter.addColumn(e,$(this).find(".multi-sort-order").val())}),n.sorter.applySort()}),this.$sortDialog.on("hidden.bs.modal",function(){n.$table.find("tr.sorting-level").remove(),n.$table.find("tbody").append(n.$initialLevels),n._updateButtons()}),this.$addLevelButton.on("click",function(){n._addLevel()}),this.$deleteLevelButton.on("click",function(){n._deleteLevel()}),this._updateButtons()},_addLevel:function(){var e=t.getString("SortBy"),n=this.$table.find("tr.sorting-level").length;n>0&&(e=t.getString("ThenBy"));var i=$("").addClass("multi-sort-order form-control").append($("