From b34f6b2f418caa33095c70956462c1ee8b32ad68 Mon Sep 17 00:00:00 2001 From: Ghislain Beaulac Date: Wed, 30 Sep 2020 10:27:35 -0400 Subject: [PATCH] (demo): update github demo page --- ....js => app.9883a652eacc04388de5.bundle.js} | 62 +++++++++---------- ...ap => app.9883a652eacc04388de5.bundle.map} | 2 +- docs/app.c10091e04e32aeeff903.bundle.css | 2 +- docs/index.html | 2 +- 4 files changed, 34 insertions(+), 34 deletions(-) rename docs/{app.c8fe60b224efe2eaaf05.bundle.js => app.9883a652eacc04388de5.bundle.js} (63%) rename docs/{app.c8fe60b224efe2eaaf05.bundle.map => app.9883a652eacc04388de5.bundle.map} (99%) diff --git a/docs/app.c8fe60b224efe2eaaf05.bundle.js b/docs/app.9883a652eacc04388de5.bundle.js similarity index 63% rename from docs/app.c8fe60b224efe2eaaf05.bundle.js rename to docs/app.9883a652eacc04388de5.bundle.js index 848d22fa2..03ab11b51 100644 --- a/docs/app.c8fe60b224efe2eaaf05.bundle.js +++ b/docs/app.9883a652eacc04388de5.bundle.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=129)}([function(e,t,n){"use strict";n.d(t,"i",(function(){return r.a})),n.d(t,"x",(function(){return V})),n.d(t,"c",(function(){return o.CaseType})),n.d(t,"r",(function(){return o.FieldType})),n.d(t,"n",(function(){return o.EventNamingStyle})),n.d(t,"s",(function(){return o.FileType})),n.d(t,"o",(function(){return o.ExtensionName})),n.d(t,"Q",(function(){return o.SortDirectionNumber})),n.d(t,"P",(function(){return o.SortDirection})),n.d(t,"I",(function(){return o.OperatorType})),n.d(t,"C",(function(){return o.GridStateType})),n.d(t,"Y",(function(){return U.p})),n.d(t,"jb",(function(){return U.B})),n.d(t,"lb",(function(){return U.D})),n.d(t,"g",(function(){return U.a})),n.d(t,"Z",(function(){return U.q})),n.d(t,"p",(function(){return U.b})),n.d(t,"u",(function(){return U.c})),n.d(t,"A",(function(){return U.e})),n.d(t,"y",(function(){return U.d})),n.d(t,"B",(function(){return U.f})),n.d(t,"F",(function(){return U.g})),n.d(t,"J",(function(){return U.h})),n.d(t,"M",(function(){return U.i})),n.d(t,"R",(function(){return U.j})),n.d(t,"S",(function(){return U.k})),n.d(t,"U",(function(){return U.l})),n.d(t,"V",(function(){return U.m})),n.d(t,"W",(function(){return U.n})),n.d(t,"X",(function(){return U.o})),n.d(t,"ab",(function(){return U.r})),n.d(t,"fb",(function(){return U.x})),n.d(t,"bb",(function(){return U.t})),n.d(t,"cb",(function(){return U.u})),n.d(t,"eb",(function(){return U.w})),n.d(t,"gb",(function(){return U.y})),n.d(t,"ib",(function(){return U.A})),n.d(t,"hb",(function(){return U.z})),n.d(t,"kb",(function(){return U.C})),n.d(t,"mb",(function(){return U.E})),n.d(t,"nb",(function(){return U.F})),n.d(t,"ob",(function(){return U.G})),n.d(t,"pb",(function(){return U.H})),n.d(t,"db",(function(){return U.v})),n.d(t,"a",(function(){return R})),n.d(t,"l",(function(){return pe})),n.d(t,"b",(function(){return ue})),n.d(t,"d",(function(){return ge})),n.d(t,"e",(function(){return fe})),n.d(t,"f",(function(){return be})),n.d(t,"h",(function(){return Be})),n.d(t,"j",(function(){return ke})),n.d(t,"k",(function(){return ye})),n.d(t,"q",(function(){return De})),n.d(t,"z",(function(){return $e.a})),n.d(t,"D",(function(){return Ee})),n.d(t,"G",(function(){return Me})),n.d(t,"H",(function(){return Ve})),n.d(t,"K",(function(){return ze})),n.d(t,"L",(function(){return Ue})),n.d(t,"v",(function(){return H})),n.d(t,"t",(function(){return L})),n.d(t,"w",(function(){return We})),n.d(t,"E",(function(){return Ge})),n.d(t,"O",(function(){return Re.a})),n.d(t,"m",(function(){return o})),n.d(t,"T",(function(){return Ye})),n.d(t,"N",(function(){return _e}));n(141);var i,r=n(4),o=n(1),a=n(47),l=n(48),s=n(29),d=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n){var i=e.call(this,t,n,!1)||this;return i.translaterService=t,i.collectionService=n,i}return d(t,e),t}(s.a),A=n(49),p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(e){function t(t,n){var i=e.call(this,t,n,!0)||this;return i.translaterService=t,i.collectionService=n,i}return p(t,e),t}(s.a),C=n(21),g=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(e){function t(){var t=e.call(this)||this;return t.inputType="password",t}return g(t,e),t}(C.a),m=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(e){function t(){var t=e.call(this)||this;return t.inputType="number",t}return m(t,e),t}(C.a),b=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),B=function(e){function t(){var t=e.call(this)||this;return t.inputType="text",t}return b(t,e),Object.defineProperty(t.prototype,"inputMask",{get:function(){return this._inputMask},enumerable:!1,configurable:!0}),t.prototype.init=function(e){var t=this;if(!e)throw new Error('[Slickgrid-Universal] A filter must always have an "init()" with valid arguments.');if(this.grid=e.grid,this.callback=e.callback,this.columnDef=e.columnDef,this.searchTerms=(e.hasOwnProperty("searchTerms")?e.searchTerms:[])||[],this.columnDef&&this.columnDef.params&&this.columnDef.params.mask?this._inputMask=this.columnDef.params.mask:this.columnFilter&&this.columnFilter.params&&this.columnFilter.params.mask&&(this._inputMask=this.columnFilter.params.mask),!this._inputMask)throw new Error("[Slickgrid-Universal] The Filters.inputMask requires the mask to be passed in the filter params or the column definition params\n for example:: this.columnDefinitions: [{ id: 'phone', field: 'phone', filter: { model: Filters.inputMask, params: { mask: '000-000-0000' }}}]");var n=Array.isArray(this.searchTerms)&&this.searchTerms.length>=0?this.searchTerms[0]:"",i=this.buildTemplateHtmlString();this.$filterElm=this.createDomElement(i,n),this.$filterElm.on("keyup input change",(function(e){var n="";if(e&&e.target&&e.target.value){var i=e.target.value,r=t.gridOptions.enableFilterTrimWhiteSpace||t.columnFilter.enableTrimWhiteSpace;"string"==typeof i&&r&&(i=i.trim());var o=t.unmaskValue(i),a=t.maskValue(o);n=o,e.keyCode>=48&&(t.$filterElm.val(a),e.preventDefault())}t._clearFilterTriggered?(t.callback(e,{columnDef:t.columnDef,clearFilterTriggered:t._clearFilterTriggered,shouldTriggerQuery:t._shouldTriggerQuery}),t.$filterElm.removeClass("filled")):(t.$filterElm.addClass("filled"),t.callback(e,{columnDef:t.columnDef,operator:t.operator,searchTerms:[n],shouldTriggerQuery:t._shouldTriggerQuery})),t._clearFilterTriggered=!1,t._shouldTriggerQuery=!0}))},t.prototype.maskValue=function(e){var t=0,n="";return this._inputMask&&(n=this._inputMask.replace(/[09A]/gi,(function(n){return(("0"===n||"9"===n)&&/\d+/g.test(e[t])||"A"===n.toUpperCase()&&/[^\d]+/gi.test(e[t]))&&e[t++]||""}))),n},t.prototype.unmaskValue=function(e){for(var t=e.replace(/[^0-9a-z]*/gi,""),n=this._inputMask.replace(/[^0-9a-z]*/gi,""),i="",r=0;rthis._max)&&(this._max=parseFloat(t))},e.prototype.storeResult=function(e){e&&void 0!==e[this._type]||(e[this._type]={}),e[this._type][this._field]=this._max},e}(),q=function(){function e(e){this._type="distinct",this._field=e}return Object.defineProperty(e.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.init=function(){this._distinctValues=[]},e.prototype.accumulate=function(e){var t=e&&e.hasOwnProperty(this._field)?e[this._field]:void 0;-1===this._distinctValues.indexOf(t)&&void 0!==t&&this._distinctValues.push(t)},e.prototype.storeResult=function(e){e&&void 0!==e[this._type]||(e[this._type]={}),e[this._type][this._field]=this._distinctValues},e}(),I=function(){function e(e){this._type="min",this._field=e}return Object.defineProperty(e.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.init=function(){this._min=null},e.prototype.accumulate=function(e){var t=e&&e.hasOwnProperty(this._field)?e[this._field]:null;null===t||""===t||isNaN(t)||(null===this._min||t0,r=this.validate(null,t),o=r&&r.valid?t:"";i?Object(O.setDeepValue)(e,n,o):n&&(e[n]=o)}},e.prototype.isValueChanged=function(){var e=this._input.value,t=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||t!==Q.a.ENTER)||!(""===e&&(null===this._originalValue||void 0===this._originalValue))&&e!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t){var n=(null==t?void 0:t.indexOf("."))>0?Object(O.getDescendantProperty)(e,t):e.hasOwnProperty(t)&&e[t]||"";this._originalValue=n,this._input.value=this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){return this._input.value},e.prototype.validate=function(e,t){var n;if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};var i=void 0!==t?t:this._input&&this._input.value;return Object(_.a)(i,{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minLength:this.columnEditor.minLength,maxLength:this.columnEditor.maxLength,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(N(N({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,r=this.grid.getActiveCell(),o=this.args.column,a=null!==(i=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==i?i:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(N(N({},r),{item:l,grid:s,column:o,formValues:t.formValues}),N(N({},new Slick.EventData),e))},e.prototype.handleOnKeyUp=function(e){var t,n,i=this,r=this.args.compositeEditorOptions;if(r){var o=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(O.debounce)((function(){return i.handleChangeOnCompositeEditor(e,r)}),o)()}},e}(),T=n(60),P=n(34),j=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Z=function(e){function t(t){var n=e.call(this,t,!1)||this;return n.args=t,n}return j(t,e),t}(P.a),K=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),X=function(e){function t(t){var n=e.call(this,t,!0)||this;return n.args=t,n}return K(t,e),t}(P.a),J=n(62);function ee(e,t){var n=isNaN(e)?null:parseInt(e,10);null!==n&&isNaN(n)&&(n=null);var i=t.errorMessage,o=t.required,a=t.minValue,l=t.maxValue,s=t.operatorConditionalType||"inclusive",d={"{{minValue}}":a,"{{maxValue}}":l},c=!0,A="";if(t.validator)return t.validator(e,t.editorArgs);if(o&&""===e)c=!1,A=i||r.a.VALIDATION_REQUIRED_FIELD;else if(""===e||!isNaN(e)&&/^[+-]?\d+$/.test(e)){if(void 0!==a&&void 0!==l&&null!==n&&("exclusive"===s&&(n<=a||n>=l)||"inclusive"===s&&(nl)))c=!1,A=i||r.a.VALIDATION_EDITOR_INTEGER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return d[e]}));else if(void 0!==a&&null!==n&&("exclusive"===s&&n<=a||"inclusive"===s&&null!==n&&n=l||"inclusive"===s&&null!==n&&n>l)){c=!1;p="inclusive"===s?r.a.VALIDATION_EDITOR_INTEGER_MAX_INCLUSIVE:r.a.VALIDATION_EDITOR_INTEGER_MAX;A=i||p.replace(/{{maxValue}}/gi,(function(e){return d[e]}))}}else c=!1,A=i||r.a.VALIDATION_EDITOR_VALID_INTEGER;return{valid:c,msg:A}}var te=function(){return(te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0,r=this.validate(null,t),o=r&&r.valid?t:"";i?Object(O.setDeepValue)(e,n,o):e[n]=o}},e.prototype.isValueChanged=function(){var e=this._input.value,t=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||t!==o.KeyCode.ENTER)||!(""===e&&(null===this._originalValue||void 0===this._originalValue))&&e!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t){var n=(null==t?void 0:t.indexOf("."))>0?Object(O.getDescendantProperty)(e,t):e[t];this._originalValue=isNaN(n)||null==n?n:""+n,this._input.value=""+this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){var e=this._input.value;if(""===e||isNaN(+e))return e;var t=isNaN(+e)?e:parseInt(e,10);return isNaN(+t)?e:t},e.prototype.validate=function(e,t){var n;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:ee(void 0!==t?t:this.getValue(),{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minValue:this.columnEditor.minValue,maxValue:this.columnEditor.maxValue,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(te(te({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,r=this.grid.getActiveCell(),o=this.args.column,a=null!==(i=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==i?i:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(te(te({},r),{item:l,grid:s,column:o,formValues:t.formValues}),te(te({},new Slick.EventData),e))},e.prototype.handleOnChange=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnKeyUp=function(e){var t,n,i=this,r=this.args.compositeEditorOptions;if(r){var o=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(O.debounce)((function(){return i.handleChangeOnCompositeEditor(e,r)}),o)()}},e}();function ie(e,t){var n=isNaN(e)?null:parseFloat(e),i=t.decimal||0,o=t.required,a=t.minValue,l=t.maxValue,s=t.operatorConditionalType||"inclusive",d=t.errorMessage,c={"{{minValue}}":a,"{{maxValue}}":l,"{{minDecimal}}":0,"{{maxDecimal}}":i},A=!0,p="";if("function"==typeof t.validator)return t.validator(e,t.editorArgs);if(o&&""===e)A=!1,p=d||r.a.VALIDATION_REQUIRED_FIELD;else if(""!==e&&(isNaN(e)||0===i&&!/^[-+]?(\d*(\.)?(\d)*)$/.test(e)))A=!1,p=d||r.a.VALIDATION_EDITOR_VALID_NUMBER;else if(void 0!==a&&void 0!==l&&null!==n&&("exclusive"===s&&(n<=a||n>=l)||"inclusive"===s&&(nl)))A=!1,p=d||r.a.VALIDATION_EDITOR_NUMBER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return c[e]}));else if(void 0!==a&&null!==n&&("exclusive"===s&&n<=a||"inclusive"===s&&n=l||"inclusive"===s&&n>l)){A=!1;u="inclusive"===s?r.a.VALIDATION_EDITOR_NUMBER_MAX_INCLUSIVE:r.a.VALIDATION_EDITOR_NUMBER_MAX;p=d||u.replace(/{{maxValue}}/gi,(function(e){return c[e]}))}else i>0&&!new RegExp("^[-+]?(\\d*(\\.)?(\\d){0,"+i+"})$").test(e)&&(A=!1,p=d||r.a.VALIDATION_EDITOR_DECIMAL_BETWEEN.replace(/{{minDecimal}}|{{maxDecimal}}/gi,(function(e){return c[e]})));return{valid:A,msg:p}}var re=function(){return(re=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0?"0."+t+"1":"1"},e.prototype.getValue=function(){return this._input.value||""},e.prototype.setValue=function(e){this._input.value=""+e},e.prototype.applyValue=function(e,t){var n=this.columnDef&&this.columnDef.field;if(void 0!==n){var i=(null==n?void 0:n.indexOf("."))>0,r=this.validate(null,t),o=r&&r.valid?t:"";i?Object(O.setDeepValue)(e,n,o):e[n]=o}},e.prototype.isValueChanged=function(){var e=this._input.value,t=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||t!==o.KeyCode.ENTER)||!(""===e&&(null===this._originalValue||void 0===this._originalValue))&&e!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(void 0!==t&&e&&void 0!==t){var n=(null==t?void 0:t.indexOf("."))>0?Object(O.getDescendantProperty)(e,t):e[t];this._originalValue=n;var i=this.getDecimalPlaces();null!==i&&(this._originalValue||0===this._originalValue)&&(+this._originalValue).toFixed&&(this._originalValue=(+this._originalValue).toFixed(i)),this._input.value=""+this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){var e=this._input.value;if(""===e||isNaN(+e))return e;var t=parseFloat(e),n=this.getDecimalPlaces();return null!==n&&(t||0===t)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t},e.prototype.validate=function(e,t){var n;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:ie(void 0!==t?t:this._input&&this._input.value,{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,decimal:this.getDecimalPlaces(),minValue:this.columnEditor.minValue,maxValue:this.columnEditor.maxValue,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(re(re({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,r=this.grid.getActiveCell(),o=this.args.column,a=null!==(i=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==i?i:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(re(re({},r),{item:l,grid:s,column:o,formValues:t.formValues}),re(re({},new Slick.EventData),e))},e.prototype.handleOnChange=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnKeyUp=function(e){var t,n,i=this,r=this.args.compositeEditorOptions;if(r){var o=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(O.debounce)((function(){return i.handleChangeOnCompositeEditor(e,r)}),o)()}},e}(),ae=n(63),le=function(){return(le=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0,r=this.validate(null,t),o=r&&r.valid?t:"";i?Object(O.setDeepValue)(e,n,o):e[n]=o}},e.prototype.isValueChanged=function(){return this.serializeValue()!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t){var n=(null==t?void 0:t.indexOf("."))>0?Object(O.getDescendantProperty)(e,t):e[t];this._originalValue=n,this._input.checked=!!this._originalValue}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){return this._input.checked},e.prototype.validate=function(e,t){var n,i=!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,o=void 0!==t?t:this._input.checked,a=this.columnEditor.errorMessage;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:this.validator?this.validator(o,this.args):i&&!o?{valid:!1,msg:a||r.a.VALIDATION_REQUIRED_FIELD}:{valid:!0,msg:null}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(le(le({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,r=this.grid.getActiveCell(),o=this.args.column,a=null!==(i=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==i?i:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(le(le({},r),{item:l,grid:s,column:o,formValues:t.formValues}),le(le({},new Slick.EventData),e))},e}(),de=n(64),ce=(n(61),function(){return(ce=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&n.forEach((function(t){return t.removeEventListener("focusout",e.handleFocusOut.bind(e))}))},e.prototype.createInput=function(e){var t,n=this.editorParams[e],i=this.columnDef&&this.columnDef.id,r=this.gridOptions.datasetIdPropertyName||"id",o=(null===(t=this.args)||void 0===t?void 0:t.item[r])||0,a=n.type||"text";"float"!==a&&"integer"!==a||(a="number");var l=document.createElement("input");return l.id="item-"+o+"-"+e,l.className="dual-editor-text editor-"+i+" "+e.replace(/input/gi,""),"readonly"===a&&(l.readOnly=!0,a="text"),l.type=a||"text",l.setAttribute("role","presentation"),l.autocomplete="off",l.placeholder=n.placeholder||"",l.title=n.title||"","number"===a&&(l.step=this.getInputDecimalSteps(e)),l},e.prototype.disable=function(e){var t,n;void 0===e&&(e=!0);var i=this.disabled;this.disabled=e,this._leftInput&&this._rightInput&&(e?(this._leftInput.setAttribute("disabled","disabled"),this._rightInput.setAttribute("disabled","disabled"),i!==e&&(null===(t=this.args)||void 0===t?void 0:t.compositeEditorOptions)&&(this._originalLeftValue="",this._originalRightValue="",this._leftInput.value="",this._rightInput.value="",this.handleChangeOnCompositeEditor(null,null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions))):(this._leftInput.removeAttribute("disabled"),this._rightInput.removeAttribute("disabled")))},e.prototype.focus=function(){},e.prototype.show=function(){var e;!!(null===(e=this.args)||void 0===e?void 0:e.compositeEditorOptions)&&this.applyInputUsabilityState()},e.prototype.getValues=function(){var e={},t=this._leftInput.value,n=this._rightInput.value,i=this.editorParams.leftInput&&("float"===this.editorParams.leftInput.type||"integer"===this.editorParams.leftInput.type),r=this.editorParams.rightInput&&("float"===this.editorParams.rightInput.type||"integer"===this.editorParams.rightInput.type),o=""!==t&&i?+this._leftInput.value:t||"",a=""!==n&&r?+this._rightInput.value:n||"";return Object(O.setDeepValue)(e,this._leftFieldName,o),Object(O.setDeepValue)(e,this._rightFieldName,a),e},e.prototype.setValues=function(e){Array.isArray(e)&&2===e.length&&(this._leftInput.value=""+e[0],this._rightInput.value=""+e[1])},e.prototype.applyValue=function(e,t){this.applyValueByPosition(e,t,"leftInput"),this.applyValueByPosition(e,t,"rightInput")},e.prototype.applyValueByPosition=function(e,t,n){var i="leftInput"===n?this._leftFieldName:this._rightFieldName;if(void 0!==i){var r=(null==i?void 0:i.indexOf("."))>0,o=i;if(r){var a=i.split(/\.(.*)/);o=a.length>1?a[1]:a}var l=r?Object(O.getDescendantProperty)(t,o):t[i],s=this.validate(null,{position:n,inputValue:l});if(r){var d=Object(O.getDescendantProperty)(t,o),c=s&&s.valid?d:"";Object(O.setDeepValue)(e,i,c)}else i&&(e[i]=s&&s.valid?t[i]:"")}},e.prototype.isValueChanged=function(){var e=this._leftInput.value,t=this._rightInput.value,n=this.editorParams&&this.editorParams.leftInput,i=this.editorParams&&this.editorParams.rightInput,r=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;if((n&&n.alwaysSaveOnEnterKey||i&&i.alwaysSaveOnEnterKey)&&r===Q.a.ENTER)return!0;var o=!(""===e&&(null===this._originalLeftValue||void 0===this._originalLeftValue))&&e!==this._originalLeftValue,a=!(""===t&&(null===this._originalRightValue||void 0===this._originalRightValue))&&t!==this._originalRightValue;return o||a},e.prototype.loadValue=function(e){this.loadValueByPosition(e,"leftInput"),this.loadValueByPosition(e,"rightInput"),this._leftInput.select()},e.prototype.loadValueByPosition=function(e,t){var n="leftInput"===t?this._leftFieldName:this._rightFieldName,i="leftInput"===t?"_originalLeftValue":"_originalRightValue",r="leftInput"===t?"_leftInput":"_rightInput";if(e&&void 0!==n){var o=(null==n?void 0:n.indexOf("."))>0?Object(O.getDescendantProperty)(e,n):e.hasOwnProperty(n)?e[n]:"";if(this[i]=o,"float"===this.editorParams[t].type){var a=this.getDecimalPlaces(t);null!==a&&(this[i]||0===this[i])&&(+this[i]).toFixed&&(this[i]=(+this[i]).toFixed(a))}this[r]&&(this[r].value=""+this[i])}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this._isValueSaveCalled||(this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges(),this._isValueSaveCalled=!0)},e.prototype.serializeValue=function(){var e={},t=this.serializeValueByPosition("leftInput"),n=this.serializeValueByPosition("rightInput");return Object(O.setDeepValue)(e,this._leftFieldName,t),Object(O.setDeepValue)(e,this._rightFieldName,n),e},e.prototype.serializeValueByPosition=function(e){var t="leftInput"===e?this._leftInput.value:this._rightInput.value;if(""===t||isNaN(+t))return t;var n=parseFloat(t),i=this.getDecimalPlaces(e);return null!==i&&(n||0===n)&&n.toFixed&&(n=parseFloat(n.toFixed(i))),n},e.prototype.getDecimalPlaces=function(e){var t="leftInput"===e?"leftInput":"rightInput",n=this.editorParams[t],i=null==n?void 0:n.decimal;return void 0===i?0:i},e.prototype.getInputDecimalSteps=function(e){for(var t=this.getDecimalPlaces(e),n="",i=1;i0?"0."+n+"1":"1"},e.prototype.validate=function(e,t){if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};if(t){var n=this.validateByPosition(t.position,t.inputValue);if(!n.valid)return"leftInput"===t.position?this._leftInput.select():this._rightInput.select(),n}else{var i=this.validateByPosition("leftInput"),r=this.validateByPosition("rightInput");if(!i.valid)return this._leftInput.select(),i;if(!r.valid)return this._rightInput.select(),r}return{valid:!0,msg:""}},e.prototype.validateByPosition=function(e,t){var n,i=this.editorParams[e],r="";if(t)r=t;else{var o="leftInput"===e?this._leftInput:this._rightInput;r=o&&o.value}var a=this.validator;r="function"==typeof a?this.getValues():r;var l={editorArgs:this.args,errorMessage:i.errorMessage,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&i.required,validator:"function"==typeof a?a:i.validator};switch(i.type){case"float":return ie(r,ce(ce({},l),{decimal:this.getDecimalPlaces(e),minValue:i.minValue,maxValue:i.maxValue,operatorConditionalType:i.operatorConditionalType}));case"integer":return ee(r,ce(ce({},l),{minValue:i.minValue,maxValue:i.maxValue,operatorConditionalType:i.operatorConditionalType}));case"text":case"password":default:return Object(_.a)(r,l)}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(ce(ce({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,r,o,a,l,s=this.grid.getActiveCell(),d=this.args.column,c=null!==(r=null===(i=null===(n=this.columnEditor.params)||void 0===n?void 0:n.leftInput)||void 0===i?void 0:i.field)&&void 0!==r?r:"",A=null!==(l=null===(a=null===(o=this.columnEditor.params)||void 0===o?void 0:o.rightInput)||void 0===a?void 0:a.field)&&void 0!==l?l:"",p=this.args.item,u=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(c)&&delete t.formValues[c],this.disabled&&t.formValues.hasOwnProperty(A)&&delete t.formValues[A],u.onCompositeEditorChange.notify(ce(ce({},s),{item:p,grid:u,column:d,formValues:t.formValues}),ce(ce({},new Slick.EventData),e))},e}(),pe={autoComplete:ae.a,checkbox:se,date:de.a,dualInput:Ae,float:oe,integer:ne,longText:J.a,multipleSelect:X,singleSelect:Z,slider:T.a,text:Y},ue=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&this._addon.destroy()},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){if(this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){this.extensionUtility.loadExtensionDynamically(o.ExtensionName.autoTooltip);var e=this.sharedService.gridOptions.autoTooltipOptions;return this._addon=new Slick.AutoTooltips(e),this._addon&&this.sharedService.slickGrid.registerPlugin(this._addon),this._addon}return null},e}(),Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e._commandQueue.length)){var n=e._commandQueue[t];t++,n&&Slick.GlobalEditorLock.cancelCurrentEdit()&&n.execute()}}}},e.prototype.getDefaultOptions=function(){var e=this,t=0;return{clipboardCommandHandler:function(t){e._undoRedoBuffer.queueAndExecuteCommand.call(e._undoRedoBuffer,t)},dataItemColumnValueExtractor:function(t,n){if(!e.sharedService.gridOptions.editable||!n.editor){var i=void 0!==n.exportWithFormatter?n.exportWithFormatter:e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.exportWithFormatter;if(n.formatter&&i){var r=n.formatter(0,0,t[n.field],n,t,e.sharedService.slickGrid);if(n.sanitizeDataExport||e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.sanitizeDataExport){var o=r;return r&&"object"==typeof r&&r.hasOwnProperty("text")&&(o=r.text),null===o&&(o=""),Object(O.sanitizeHtmlToText)(o)}return r}}return null},readOnlyMode:!1,includeHeaderWhenCopying:!1,newRowCreator:function(n){for(var i=0;i0?e.splice(r,0,i):e.unshift(i)}return this._addon}return null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(e){var t=this;return this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions?(this.sharedService.slickGrid.registerPlugin(this._addon),e&&this.sharedService.slickGrid.getSelectionModel()||(this.extensionUtility.loadExtensionDynamically(he.a.rowSelection),e=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this.sharedService.slickGrid.setSelectionModel(e)),this.sharedService.gridOptions.preselectedRows&&e&&this.sharedService.slickGrid.getSelectionModel()&&setTimeout((function(){var e;return null===(e=t._addon)||void 0===e?void 0:e.selectRows(t.sharedService.gridOptions.preselectedRows||[])})),e):null},e}(),Be=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t,this._eventHandler=new Slick.EventHandler}return Object.defineProperty(e.prototype,"eventHandler",{get:function(){return this._eventHandler},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&this._addon.destroy()},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){var e=this;if(this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){this.extensionUtility.loadExtensionDynamically(he.a.columnPicker);var t=this.extensionUtility.getPickerTitleOutputString("columnTitle","columnPicker"),n=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),i=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","columnPicker");if(this.sharedService.gridOptions.columnPicker=this.sharedService.gridOptions.columnPicker||{},this.sharedService.gridOptions.columnPicker.columnTitle=this.sharedService.gridOptions.columnPicker.columnTitle||t,this.sharedService.gridOptions.columnPicker.forceFitTitle=this.sharedService.gridOptions.columnPicker.forceFitTitle||n,this.sharedService.gridOptions.columnPicker.syncResizeTitle=this.sharedService.gridOptions.columnPicker.syncResizeTitle||i,this._addon=new Slick.Controls.ColumnPicker(this.sharedService.allColumns,this.sharedService.slickGrid,this.sharedService.gridOptions),this.sharedService.slickGrid&&this.sharedService.gridOptions.enableColumnPicker){this._addon&&this.sharedService.gridOptions.columnPicker.onExtensionRegistered&&this.sharedService.gridOptions.columnPicker.onExtensionRegistered(this._addon);var r=this._addon.onColumnsChanged;this._eventHandler.subscribe(r,(function(t,n){e.sharedService.gridOptions.columnPicker&&"function"==typeof e.sharedService.gridOptions.columnPicker.onColumnsChanged&&e.sharedService.gridOptions.columnPicker.onColumnsChanged(t,n),n&&Array.isArray(n.columns)&&n.columns.length!==e.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=n.columns)}))}return this._addon}return null},e.prototype.translateColumnPicker=function(){var e,t,n;this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions&&(this.sharedService.gridOptions.columnPicker&&(this.emptyColumnPickerTitles(),this.sharedService.gridOptions.columnPicker.columnTitle=this.extensionUtility.getPickerTitleOutputString("columnTitle","columnPicker"),this.sharedService.gridOptions.columnPicker.forceFitTitle=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),this.sharedService.gridOptions.columnPicker.syncResizeTitle=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","columnPicker")),this.extensionUtility.translateItems(this.sharedService.allColumns,"nameKey","name"),(null===(e=this._addon)||void 0===e?void 0:e.updateAllTitles)&&(null===(n=null===(t=this.sharedService)||void 0===t?void 0:t.gridOptions)||void 0===n?void 0:n.columnPicker)&&this._addon.updateAllTitles(this.sharedService.gridOptions.columnPicker))},e.prototype.emptyColumnPickerTitles=function(){this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.columnPicker&&(this.sharedService.gridOptions.columnPicker.columnTitle="",this.sharedService.gridOptions.columnPicker.forceFitTitle="",this.sharedService.gridOptions.columnPicker.syncResizeTitle="")},e}(),xe=n(57),we=function(){return(we=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0}})}if(r&&a&&!a.hideCollapseAllGroups){e.find((function(e){return e.hasOwnProperty("command")&&"collapse-all-groups"===e.command}))||i.push({iconCssClass:a.iconCollapseAllGroupsCommand||"fa fa-compress",title:this.extensionUtility.translateWhenEnabledAndServiceExist(s+"COLLAPSE_ALL_GROUPS","TEXT_COLLAPSE_ALL_GROUPS"),disabled:!1,command:"collapse-all-groups",positionOrder:56,action:function(){r.enableTreeData?n.treeDataService.toggleTreeDataCollapse(!0):l.collapseAllGroups()},itemUsabilityOverride:function(){if(r.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}if(r&&a&&!a.hideExpandAllGroups){e.find((function(e){return e.hasOwnProperty("command")&&"expand-all-groups"===e.command}))||i.push({iconCssClass:a.iconExpandAllGroupsCommand||"fa fa-expand",title:this.extensionUtility.translateWhenEnabledAndServiceExist(s+"EXPAND_ALL_GROUPS","TEXT_EXPAND_ALL_GROUPS"),disabled:!1,command:"expand-all-groups",positionOrder:57,action:function(){r.enableTreeData?n.treeDataService.toggleTreeDataCollapse(!1):l.expandAllGroups()},itemUsabilityOverride:function(){if(r.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}}return i},e.prototype.copyToClipboard=function(e){try{if(e&&e.grid&&e.command){var t=this.sharedService&&this.sharedService.gridOptions||{},n=e&&e.cell||0,i=e&&e.row||0,r=e&&e.column,o=e&&e.dataContext,a=this.sharedService&&this.sharedService.slickGrid,l=t&&(t.excelExportOptions||t.exportOptions),s=Object(xe.a)(i,n,o,r,a,l);"function"==typeof r.queryFieldNameGetterFn&&(s=this.getCellValueFromQueryFieldGetter(r,o));var d=document.createElement("textarea");if(d&&document.body)d.style.position="absolute",d.style.left="-1000px",d.style.top="-1000px",d.value=s,document.body.appendChild(d),d.select(),document.execCommand("copy",!1,s)&&d.remove()}}catch(e){}},e.prototype.getCellValueFromQueryFieldGetter=function(e,t){var n="";if("function"==typeof e.queryFieldNameGetterFn){var i=e.queryFieldNameGetterFn(t);n=(null==i?void 0:i.indexOf("."))>=0?Object(O.getDescendantProperty)(t,i):t[i]}return n},e}(),ye=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t,this._eventHandler=new Slick.EventHandler}return Object.defineProperty(e.prototype,"eventHandler",{get:function(){return this._eventHandler},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&this._addon.destroy()},e.prototype.create=function(e){return e?(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.draggableGrouping),this._addon||(this._addon=new Slick.DraggableGrouping(e.draggableGrouping)),this._addon):null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){var e=this;if(this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.sharedService.slickGrid.registerPlugin(this._addon),this.sharedService.slickGrid&&this.sharedService.gridOptions.draggableGrouping&&(this._addon&&this.sharedService.gridOptions.draggableGrouping.onExtensionRegistered&&this.sharedService.gridOptions.draggableGrouping.onExtensionRegistered(this._addon),this._addon&&this._addon.onGroupChanged)){var t=this._addon.onGroupChanged;this._eventHandler.subscribe(t,(function(t,n){e.sharedService.gridOptions.draggableGrouping&&"function"==typeof e.sharedService.gridOptions.draggableGrouping.onGroupChanged&&e.sharedService.gridOptions.draggableGrouping.onGroupChanged(t,n)}))}return this._addon}return null},e}(),De=function(){function e(e,t){this.sharedService=e,this.translaterService=t}return e.prototype.loadExtensionDynamically=function(e){try{switch(e){case he.a.autoTooltip:n(209);break;case he.a.cellExternalCopyManager:n(210);break;case he.a.checkboxSelector:n(211);break;case he.a.cellMenu:n(212);break;case he.a.columnPicker:n(213);break;case he.a.contextMenu:n(214);break;case he.a.draggableGrouping:n(215);break;case he.a.gridMenu:n(216);break;case he.a.groupItemMetaProvider:n(217);break;case he.a.headerButton:n(218);break;case he.a.headerMenu:n(219);break;case he.a.rowSelection:n(220);break;case he.a.rowDetailView:n(221);break;case he.a.rowMoveManager:n(222)}}catch(e){}},e.prototype.getPickerTitleOutputString=function(e,t){var n,i,o,a,l,s,d,c,A;if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate&&(!this.translaterService||!this.translaterService.translate))throw new Error('[Slickgrid-Universal] requires a Translate Service to be installed and configured when the grid option "enableTranslate" is enabled.');var p="",u=this.sharedService.gridOptions&&this.sharedService.gridOptions[t]||{},C=this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate||!1,g=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.locales||r.a.locales,h=u&&u[e],m=u&&u[e+"Key"],f=this.sharedService.gridOptions,b=Object(O.getTranslationPrefix)(f);if(m&&(null===(n=this.translaterService)||void 0===n?void 0:n.translate))p=this.translaterService.translate(m||" ");else switch(e){case"customTitle":p=h||C&&(null===(i=this.translaterService)||void 0===i?void 0:i.getCurrentLanguage)&&(null===(o=this.translaterService)||void 0===o?void 0:o.translate(b+"COMMANDS"||!1))||(null==g?void 0:g.TEXT_COMMANDS);break;case"columnTitle":p=h||C&&(null===(a=this.translaterService)||void 0===a?void 0:a.getCurrentLanguage)&&(null===(l=this.translaterService)||void 0===l?void 0:l.translate(b+"COLUMNS"||!1))||(null==g?void 0:g.TEXT_COLUMNS);break;case"forceFitTitle":p=h||C&&(null===(s=this.translaterService)||void 0===s?void 0:s.getCurrentLanguage)&&(null===(d=this.translaterService)||void 0===d?void 0:d.translate(b+"FORCE_FIT_COLUMNS"||!1))||(null==g?void 0:g.TEXT_FORCE_FIT_COLUMNS);break;case"syncResizeTitle":p=h||C&&(null===(c=this.translaterService)||void 0===c?void 0:c.getCurrentLanguage)&&(null===(A=this.translaterService)||void 0===A?void 0:A.translate(b+"SYNCHRONOUS_RESIZE"||!1))||(null==g?void 0:g.TEXT_SYNCHRONOUS_RESIZE);break;default:p=h}return p},e.prototype.sortItems=function(e,t){Array.isArray(e)&&e.sort((function(e,n){return e&&n&&e.hasOwnProperty(t)&&n.hasOwnProperty(t)?e[t]-n[t]:0}))},e.prototype.translateItems=function(e,t,n){if(Array.isArray(e))for(var i=0,r=e;i0?e.splice(l,0,a):e.unshift(a)}return this._addon}return null},e.prototype.loadAddonWhenNotExists=function(e,t){return Array.isArray(e)&&t?(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.rowMoveManager),this._addon||(this._addon=new Slick.RowMoveManager((null==t?void 0:t.rowMoveManager)||{cancelEditOnDrag:!0})),this._addon):null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(e){var t=this;if(this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.rowMoveManager),e&&this.sharedService.slickGrid.getSelectionModel()||(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.rowSelection),e=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this.sharedService.slickGrid.setSelectionModel(e)),this.sharedService.slickGrid.registerPlugin(this._addon),this._addon&&this.sharedService.slickGrid&&this.sharedService.gridOptions.rowMoveManager){this.sharedService.gridOptions.rowMoveManager.onExtensionRegistered&&this.sharedService.gridOptions.rowMoveManager.onExtensionRegistered(this._addon);var n=this._addon.onBeforeMoveRows;n&&this._eventHandler.subscribe(n,(function(e,n){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows&&t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows(e,n)}));var i=this._addon.onMoveRows;i&&this._eventHandler.subscribe(i,(function(e,n){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onMoveRows&&t.sharedService.gridOptions.rowMoveManager.onMoveRows(e,n)}))}return this._addon}return null},e}(),Ue=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&this._addon.destroy()},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){return this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions?(this.extensionUtility.loadExtensionDynamically(he.a.rowSelection),this._addon=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this._addon&&this.sharedService.slickGrid.setSelectionModel(this._addon),this._addon):null},e}(),Fe=(n(43),n(45),function(e,t,n,i,r){if(n&&Array.isArray(n)&&n.length>0){var o=n.join(", ");return''+o+""}return n}),Se=n(13);function qe(e,t,n,i){var r=n&&"function"==typeof n.getOptions?n.getOptions():{},o=t&&t.params;return o&&o.hasOwnProperty(e)?o[e]:r.formatterOptions&&r.formatterOptions.hasOwnProperty(e)?r.formatterOptions[e]:i}function Ie(e,t){var n=Object(O.mapMomentDateFormatWithFieldType)(e);return function(e,i,r,o,a,l){var s,d,c,A,p=l&&"function"==typeof l.getOptions?l.getOptions():{},u=null!==(d=null===(s=null==p?void 0:p.formatterOptions)||void 0===s?void 0:s.dateSeparator)&&void 0!==d?d:t,C=null!==(A=null===(c=null==o?void 0:o.params)||void 0===c?void 0:c.parseDateAsUtc)&&void 0!==A&&A,g=Se(r,n,!1).isValid(),h=r;if(r&&g&&(h=C?Se.utc(r).format(n):Se(r).format(n)),h&&u!==t){var m=new RegExp(t,"ig");h=h.replace(m,u)}return h}}var We={arrayObjectToCsv:function(e,t,n,i,r){var o=i&&i.params||{},a=o.propertyNames,l=o.dataContextProperty;if(l||(l=i&&i.field&&i.field.split(".")[0]),!a||!Array.isArray(a)||!l)throw new Error('Formatters.arrayObjectToCsv requires you to pass an array of "propertyNames" (declared in "params") that you want to pull the data from.\n For example, if we have an array of user objects that have the property of firstName & lastName then we need to pass in your column definition:: { params: { propertyNames: [\'firtName\'] }}.\n Optionally, you can also pass the "dataContextProperty" if you wish to run this on another completely different field of the dataContext object.');if(r[l]&&Array.isArray(r[l])&&Array.isArray(r[l])&&r[l].length>0){var s=[];r[l].forEach((function(e){var t=[];a.forEach((function(n){t.push(e[n])})),s.push(t.join(" "))}));var d=s.join(", ");return''+d+""}return n},arrayToCsv:Fe,bold:function(e,t,n,i,r){return n?""+n+"":""},center:function(e,t,n){return void 0!==n&&"string"!=typeof n&&(n+=""),"
"+n+"
"},checkbox:function(e,t,n,i,r){return n?"☑":""},checkmark:function(e,t,n,i,r){var o=!1,a=null!=n&&""!==n&&!isNaN(+n);return a&&(n=+n),(!0===n||a&&+n>0||"string"==typeof n&&n.length>0&&"false"!==n.toLowerCase()&&"0"!==n)&&(o=!0),o?'':""},checkmarkMaterial:function(e,t,n,i,r){var o=!1,a=null!=n&&""!==n&&!isNaN(+n);return a&&(n=+n),(!0===n||a&&+n>0||"string"==typeof n&&n.length>0&&"false"!==n.toLowerCase()&&"0"!==n)&&(o=!0),o?'':""},complexObject:function(e,t,n,i,r){if(!i)return"";var o=i.params||{},a=o&&o.complexFieldLabel||i.field;if(!a)throw new Error("For the Formatters.complexObject to work properly, you need to tell it which property of the complex object to use.\n There are 3 ways to provide it:\n 1- via the generic \"params\" with a \"complexFieldLabel\" property on your Column Definition, example: this.columnDefs = [{ id: 'user', field: 'user', params: { complexFieldLabel: 'user.firstName' } }]\n 2- via the generic \"params\" with a \"complexFieldLabel\" and a \"labelKey\" property on your Column Definition, example: this.columnDefs = [{ id: 'user', field: 'user', labelKey: 'firstName' params: { complexFieldLabel: 'user' } }]\n 3- via the field name that includes a dot notation, example: this.columnDefs = [{ id: 'user', field: 'user.firstName'}] ");return i.labelKey&&r.hasOwnProperty(a)?r[a]&&r[a][i.labelKey]:"string"==typeof a&&a.indexOf(".")>0?a.split(".").reduce((function(e,t){return e&&e.hasOwnProperty(t)?e[t]:n}),r):n},collection:function(e,t,n,i,r){if(!(n&&i&&i.params&&i.params.collection&&i.params.collection.length))return n;var o=i.params,a=i.params.collection,l=o.customStructure?o.customStructure.label:"label",s=o.customStructure?o.customStructure.value:"value";return Array.isArray(n)?Fe(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t[s]===e}))[l]}))):Object(U.s)(a,(function(e){return e[s]===n}))[l]||""},collectionEditor:function(e,t,n,i,r){if(!(n&&i&&i.internalColumnEditor&&i.internalColumnEditor.collection&&i.internalColumnEditor.collection.length))return n;var o=i.internalColumnEditor,a=i.internalColumnEditor.collection,l=o.customStructure?o.customStructure.label:"label",s=o.customStructure?o.customStructure.value:"value";return Array.isArray(n)?a.every((function(e){return"string"==typeof e}))?Fe(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t===e}))}))):Fe(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t[s]===e}))[l]}))):Object(U.s)(a,(function(e){return e[s]===n}))[l]||""},dateIso:Ie(o.FieldType.dateIso,"-"),dateTimeIso:Ie(o.FieldType.dateTimeIso,"-"),dateTimeShortIso:Ie(o.FieldType.dateTimeShortIso,"-"),dateTimeIsoAmPm:Ie(o.FieldType.dateTimeIsoAmPm,"-"),dateEuro:Ie(o.FieldType.dateEuro,"/"),dateTimeEuro:Ie(o.FieldType.dateTimeEuro,"/"),dateTimeShortEuro:Ie(o.FieldType.dateTimeShortEuro,"/"),dateTimeEuroAmPm:Ie(o.FieldType.dateTimeEuroAmPm,"/"),dateUs:Ie(o.FieldType.dateUs,"/"),dateTimeUs:Ie(o.FieldType.dateTimeUs,"/"),dateTimeShortUs:Ie(o.FieldType.dateTimeShortUs,"/"),dateTimeUsAmPm:Ie(o.FieldType.dateTimeUsAmPm,"/"),deleteIcon:function(e,t,n,i,r){return''},decimal:function(e,t,n,i,r,o){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,o,2),s=qe("maxDecimal",i,o,2),d=qe("decimalSeparator",i,o,"."),c=qe("thousandSeparator",i,o,""),A=qe("displayNegativeNumberWithParentheses",i,o,!1);return a?Object(O.formatNumber)(n,l,s,A,"","",d,c):n},dollar:function(e,t,n,i,r,o){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,o,2),s=qe("maxDecimal",i,o,4),d=qe("decimalSeparator",i,o,"."),c=qe("thousandSeparator",i,o,""),A=qe("displayNegativeNumberWithParentheses",i,o,!1);return a?Object(O.formatNumber)(n,l,s,A,"$","",d,c):n},dollarColored:function(e,t,n,i,r,o){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,o,2),s=qe("maxDecimal",i,o,4),d=qe("decimalSeparator",i,o,"."),c=qe("thousandSeparator",i,o,""),A=qe("displayNegativeNumberWithParentheses",i,o,!1);return a?''+Object(O.formatNumber)(n,l,s,A,"$","",d,c)+"":n},dollarColoredBold:function(e,t,n,i,r,o){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,o,2),s=qe("maxDecimal",i,o,4),d=qe("decimalSeparator",i,o,"."),c=qe("thousandSeparator",i,o,""),A=qe("displayNegativeNumberWithParentheses",i,o,!1);return a?''+Object(O.formatNumber)(n,l,s,A,"$","",d,c)+"":n},editIcon:function(e,t,n,i,r){return''},hyperlink:function(e,t,n,i,r,o){var a=i&&i.params||{},l=o&&"function"==typeof o.getOptions?o.getOptions():{},s=a.hyperlinkText?a.hyperlinkText:n;s=Object(O.sanitizeTextByAvailableSanitizer)(l,s);var d=a.hyperlinkUrl?a.hyperlinkUrl:n,c=(d=Object(O.sanitizeTextByAvailableSanitizer)(l,d)).match(/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/i);return c&&Array.isArray(c)&&c.length>0?''+s+"":n},icon:function(e,t,n,i,r){var o=i&&i.params||{},a=o.icon||o.formatterIcon;if(!a)throw new Error('You must provide the "icon" or "formatterIcon" via the generic "params" options (e.g.: { formatter: Formatters.icon, params: { formatterIcon: \'fa fa-search\' }}');return''},infoIcon:function(e,t,n,i,r){return''},italic:function(e,t,n,i,r){return n?""+n+"":""},lowercase:function(e,t,n,i,r){return void 0!==n&&"string"!=typeof n&&(n+=""),n?n.toLowerCase():""},mask:function(e,t,n,i,r){var o=(i.params||{}).mask;if(!o)throw new Error('You must provide a "mask" via the generic "params" options (e.g.: { formatter: Formatters.mask, params: { mask: \'000-000\' }}');if(n){var a=0,l=n.toString();return o.replace(/[09A]/gi,(function(){return l[a++]||""}))}return n},multiple:function(e,t,n,i,r,o){var a=i.params||{};if(!a.formatters||!Array.isArray(a.formatters))throw new Error('The multiple formatter requires the "formatters" to be provided as a column params.\n For example: this.columnDefinitions = [{ id: title, field: title, formatter: Formatters.multiple, params: { formatters: [Formatters.lowercase, Formatters.uppercase] }');for(var l=n,s=0,d=a.formatters;s'+(n>100?"100%":u)+""}return n},percentCompleteBar:function(e,t,n,i,r){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var o=parseFloat(n);return o>100&&(o=100),''},percentCompleteBarWithText:function(e,t,n,i,r){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var o=parseFloat(n);return o>100&&(o=100),'
'+o+"%
"},percentSymbol:function(e,t,n,i,r,o){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,o),s=qe("maxDecimal",i,o),d=qe("decimalSeparator",i,o,"."),c=qe("thousandSeparator",i,o,""),A=qe("displayNegativeNumberWithParentheses",i,o,!1);return a?Object(O.formatNumber)(n,l,s,A,"","%",d,c):n},progressBar:function(e,t,n,i,r){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var o="",a=parseFloat(n);return a>100&&(a=100),('
\n
\n '+a+"%\n
\n
").replace(/\s{2,}/g," ").trim()},translate:function(e,t,n,i,r,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).i18n||i&&i.params&&i.params.i18n;if(!a||"function"!=typeof a.translate)throw new Error('The translate formatter requires the Translate Service to be provided as a Grid Options or Column Definition "i18n".\n For example: this.gridOptions = { enableTranslate: true, i18n: this.translateService }');return null!=n&&"string"!=typeof n&&(n+=""),n?a.translate(n):""},translateBoolean:function(e,t,n,i,r,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).i18n||i&&i.params&&i.params.i18n;if(!a||"function"!=typeof a.translate)throw new Error('The translate formatter requires the Translate Service to be provided as a Grid Options or Column Definition "i18n".\n For example: this.gridOptions = { enableTranslate: true, i18n: this.translateService }');return null!=n&&"string"!=typeof n&&(n+=""),n?a.translate(n.toUpperCase()):""},tree:function(e,t,n,i,r,o){var a=null==o?void 0:o.getData(),l=null==o?void 0:o.getOptions(),s=null==l?void 0:l.treeDataOptions,d=(null==s?void 0:s.levelPropName)||"__treeLevel",c=(null==s?void 0:s.indentMarginLeft)||15,A=n;if("function"==typeof i.queryFieldNameGetterFn){var p=i.queryFieldNameGetterFn(r);A=(null==p?void 0:p.indexOf("."))>=0?Object(O.getDescendantProperty)(r,p):r.hasOwnProperty(p)?r[p]:n}if(null==A||void 0===r)return"";if(!r.hasOwnProperty(d))throw new Error('You must provide valid "treeDataOptions" in your Grid Options and it seems that there are no tree level found in this row');if(a&&a.getIdxById&&a.getItemByIdx){"string"==typeof A&&(A=Object(O.htmlEncode)(A));var u=a.getIdPropertyName()||"id",C='',g=a.getIdxById(r[u]),h=a.getItemByIdx((g||0)+1);return h&&h[d]>r[d]?r.__collapsed?C+' '+A:C+' '+A:C+' '+A}return""},uppercase:function(e,t,n,i,r){return void 0!==n&&"string"!=typeof n&&(n+=""),n?n.toUpperCase():""},yesNo:function(e,t,n,i,r){return n?"Yes":"No"}},Ge={avgTotals:function(e,t,n){var i=t.field||"",r=e.avg&&e.avg[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);if(null!==r&&!isNaN(+r)){if(r<0){if(r=Math.abs(r),p)return isNaN(s)&&isNaN(d)?a+"("+Object(O.thousandSeparatorFormatted)(Math.round(r),A)+")"+l:a+"("+Object(O.decimalFormatted)(r,s,d,c,A)+")"+l;a+="-"}return isNaN(s)&&isNaN(d)?""+a+Object(O.thousandSeparatorFormatted)(Math.round(r),A)+l:""+a+Object(O.decimalFormatted)(r,s,d,c,A)+l}return""},avgTotalsDollar:function(e,t,n){var i=t.field||"",r=e.avg&&e.avg[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":""+a+Object(O.formatNumber)(r,s,d,p,"$","",c,A)+l},avgTotalsPercentage:function(e,t,n){var i=t.field||"",r=e.avg&&e.avg[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);if(null!==r&&!isNaN(+r)){if(r<0){if(r=Math.abs(r),p)return isNaN(s)&&isNaN(d)?a+"("+Object(O.thousandSeparatorFormatted)(Math.round(r),A)+"%)"+l:a+"("+Object(O.decimalFormatted)(r,s,d,c,A)+"%)"+l;a+="-"}return isNaN(s)&&isNaN(d)?""+a+Object(O.thousandSeparatorFormatted)(Math.round(r),A)+"%"+l:""+a+Object(O.decimalFormatted)(r,s,d,c,A)+"%"+l}return""},maxTotals:function(e,t,n){var i=t.field||"",r=e.max&&e.max[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":""+a+Object(O.formatNumber)(r,s,d,p,"","",c,A)+l},minTotals:function(e,t,n){var i=t.field||"",r=e.min&&e.min[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":""+a+Object(O.formatNumber)(r,s,d,p,"","",c,A)+l},sumTotals:function(e,t,n){var i=t.field||"",r=e.sum&&e.sum[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":""+a+Object(O.formatNumber)(r,s,d,p,"","",c,A)+l},sumTotalsBold:function(e,t,n){var i=t.field||"",r=e.sum&&e.sum[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":""+a+Object(O.formatNumber)(r,s,d,p,"","",c,A)+l+""},sumTotalsColored:function(e,t,n){var i=t.field||"",r=e.sum&&e.sum[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":''+a+Object(O.formatNumber)(r,s,d,p,"","",c,A)+l+""},sumTotalsDollar:function(e,t,n){var i=t.field||"",r=e.sum&&e.sum[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":""+a+Object(O.formatNumber)(r,s,d,p,"$","",c,A)+l},sumTotalsDollarBold:function(e,t,n){var i=t.field||"",r=e.sum&&e.sum[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":""+a+Object(O.formatNumber)(r,s,d,p,"$","",c,A)+l+""},sumTotalsDollarColored:function(e,t,n){var i=t.field||"",r=e.sum&&e.sum[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":''+a+Object(O.formatNumber)(r,s,d,p,"$","",c,A)+l+""},sumTotalsDollarColoredBold:function(e,t,n){var i=t.field||"",r=e.sum&&e.sum[i],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===r||isNaN(+r)?"":''+a+Object(O.formatNumber)(r,s,d,p,"$","",c,A)+l+""}},Re=n(39),Qe=(n(44),n(16)),Oe=n(20),_e=function(){this.options=V},Ne=function(){return(Ne=Object.assign||function(e){for(var t,n=1,i=arguments.length;n":">",'"':""","'":"'"};return(e||"").toString().replace(/[&<>"']/g,(function(e){return t[e]}))}function b(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}))}function B(e,t){var n=e.length,i=f(e);if(n0&&(l+=".");l.length-l.indexOf(".")<=o;)l+="0";var s,d,c=l.split(".");s=r?c.length>=1?F(c[0],r):void 0:c.length>=1?c[0]:l,c.length>1&&(d=c[1]);var A="";return void 0!==s&&void 0!==d?A=""+s+i+d:null!=s&&(A=s),A}function w(e,t,n,i,r,o,a,l){if(void 0===r&&(r=""),void 0===o&&(o=""),void 0===a&&(a="."),void 0===l&&(l=""),isNaN(+e))return e;var s=Math.round(1e6*parseFloat(e))/1e6;if(s<0){var d=Math.abs(s);return i?isNaN(t)&&isNaN(n)?"("+r+F(""+d,l)+o+")":"("+r+x(d,t,n,a,l)+o+")":isNaN(t)&&isNaN(n)?"-"+r+F(""+d,l)+o:"-"+r+x(d,t,n,a,l)+o}return isNaN(t)&&isNaN(n)?""+r+F(""+e,l)+o:""+r+x(e,t,n,a,l)+o}function v(e,t){return e&&t?t.split(".").reduce((function(e,t){return e&&e[t]}),e):e}function k(e){return e&&e.translationNamespace?e.translationNamespace+(e.translationNamespaceSeparator||""):""}function y(e){var t;switch(e){case o.FieldType.dateTime:case o.FieldType.dateTimeIso:t="YYYY-MM-DD HH:mm:ss";break;case o.FieldType.dateTimeIsoAmPm:t="YYYY-MM-DD hh:mm:ss a";break;case o.FieldType.dateTimeIsoAM_PM:t="YYYY-MM-DD hh:mm:ss A";break;case o.FieldType.dateTimeShortIso:t="YYYY-MM-DD HH:mm";break;case o.FieldType.dateEuro:t="DD/MM/YYYY";break;case o.FieldType.dateEuroShort:t="D/M/YY";break;case o.FieldType.dateTimeEuro:t="DD/MM/YYYY HH:mm:ss";break;case o.FieldType.dateTimeShortEuro:t="DD/MM/YYYY HH:mm";break;case o.FieldType.dateTimeEuroAmPm:t="DD/MM/YYYY hh:mm:ss a";break;case o.FieldType.dateTimeEuroAM_PM:t="DD/MM/YYYY hh:mm:ss A";break;case o.FieldType.dateTimeEuroShort:t="D/M/YY H:m:s";break;case o.FieldType.dateTimeEuroShortAmPm:t="D/M/YY h:m:s a";break;case o.FieldType.dateUs:t="MM/DD/YYYY";break;case o.FieldType.dateUsShort:t="M/D/YY";break;case o.FieldType.dateTimeUs:t="MM/DD/YYYY HH:mm:ss";break;case o.FieldType.dateTimeUsAmPm:t="MM/DD/YYYY hh:mm:ss a";break;case o.FieldType.dateTimeUsAM_PM:t="MM/DD/YYYY hh:mm:ss A";break;case o.FieldType.dateTimeUsShort:t="M/D/YY H:m:s";break;case o.FieldType.dateTimeUsShortAmPm:t="M/D/YY h:m:s a";break;case o.FieldType.dateTimeShortUs:t="MM/DD/YYYY HH:mm";break;case o.FieldType.dateUtc:t="YYYY-MM-DDTHH:mm:ss.SSSZ";break;case o.FieldType.date:case o.FieldType.dateIso:default:t="YYYY-MM-DD"}return t}function D(e){var t;switch(e){case o.FieldType.dateTime:case o.FieldType.dateTimeIso:t="Y-m-d H:i:S";break;case o.FieldType.dateTimeShortIso:t="Y-m-d H:i";break;case o.FieldType.dateTimeIsoAmPm:case o.FieldType.dateTimeIsoAM_PM:t="Y-m-d h:i:S K";break;case o.FieldType.dateEuro:t="d/m/Y";break;case o.FieldType.dateEuroShort:t="d/m/y";break;case o.FieldType.dateTimeEuro:t="d/m/Y H:i:S";break;case o.FieldType.dateTimeShortEuro:t="d/m/y H:i";break;case o.FieldType.dateTimeEuroAmPm:t="d/m/Y h:i:S K";break;case o.FieldType.dateTimeEuroAM_PM:t="d/m/Y h:i:s K";break;case o.FieldType.dateTimeEuroShort:t="d/m/y H:i:s";break;case o.FieldType.dateTimeEuroShortAmPm:t="d/m/y h:i:s K";break;case o.FieldType.dateUs:t="m/d/Y";break;case o.FieldType.dateUsShort:t="m/d/y";break;case o.FieldType.dateTimeUs:t="m/d/Y H:i:S";break;case o.FieldType.dateTimeShortUs:t="m/d/y H:i";break;case o.FieldType.dateTimeUsAmPm:t="m/d/Y h:i:S K";break;case o.FieldType.dateTimeUsAM_PM:t="m/d/Y h:i:s K";break;case o.FieldType.dateTimeUsShort:t="m/d/y H:i:s";break;case o.FieldType.dateTimeUsShortAmPm:t="m/d/y h:i:s K";break;case o.FieldType.dateUtc:t="Z";break;case o.FieldType.date:case o.FieldType.dateIso:default:t="Y-m-d"}return t}function $(e){var t;switch(e){case"<":case"LT":t=o.OperatorType.lessThan;break;case"<=":case"LE":t=o.OperatorType.lessThanOrEqual;break;case">":case"GT":t=o.OperatorType.greaterThan;break;case">=":case"GE":t=o.OperatorType.greaterThanOrEqual;break;case"<>":case"!=":case"NE":t=o.OperatorType.notEqual;break;case"*":case"a*":case"StartsWith":t=o.OperatorType.startsWith;break;case"*z":case"EndsWith":t=o.OperatorType.endsWith;break;case"=":case"==":case"EQ":t=o.OperatorType.equal;break;case"IN":t=o.OperatorType.in;break;case"NIN":case"NOT_IN":t=o.OperatorType.notIn;break;case"Not_Contains":case"NOT_CONTAINS":t=o.OperatorType.notContains;break;case"Contains":case"CONTAINS":default:t=o.OperatorType.contains}return t}function E(e){var t="";switch(e){case o.OperatorType.greaterThan:case">":t=">";break;case o.OperatorType.greaterThanOrEqual:case">=":t=">=";break;case o.OperatorType.lessThan:case"<":t="<";break;case o.OperatorType.lessThanOrEqual:case"<=":t="<=";break;case o.OperatorType.notEqual:case"<>":t="<>";break;case o.OperatorType.equal:case"=":case"==":case"EQ":t="=";break;case o.OperatorType.startsWith:case"a*":case"*":t="a*";break;case o.OperatorType.endsWith:case"*z":t="*z";break;default:t=e}return t}function M(e){var t;switch(e){case o.FieldType.unknown:case o.FieldType.string:case o.FieldType.text:case o.FieldType.password:case o.FieldType.readonly:t=o.OperatorType.contains;break;case o.FieldType.float:case o.FieldType.number:case o.FieldType.date:case o.FieldType.dateIso:case o.FieldType.dateUtc:case o.FieldType.dateTime:case o.FieldType.dateTimeIso:case o.FieldType.dateTimeIsoAmPm:case o.FieldType.dateTimeIsoAM_PM:case o.FieldType.dateEuro:case o.FieldType.dateEuroShort:case o.FieldType.dateTimeEuro:case o.FieldType.dateTimeEuroAmPm:case o.FieldType.dateTimeEuroAM_PM:case o.FieldType.dateTimeEuroShort:case o.FieldType.dateTimeEuroShortAmPm:case o.FieldType.dateTimeEuroShortAM_PM:case o.FieldType.dateUs:case o.FieldType.dateUsShort:case o.FieldType.dateTimeUs:case o.FieldType.dateTimeUsAmPm:case o.FieldType.dateTimeUsAM_PM:case o.FieldType.dateTimeUsShort:case o.FieldType.dateTimeUsShortAmPm:case o.FieldType.dateTimeUsShortAM_PM:default:t=o.OperatorType.equal}return t}function H(e){return/(true|1)/i.test(e+"")}function L(e,t){var n="";if("string"==typeof e&&/^[0-9\-\/]*$/.test(e)){var i=decodeURIComponent(e),r=l(new Date(i));r.isValid()&&4===r.year().toString().length&&(n=t?r.utc().format():r.format())}return n}function V(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}function z(e,t,n){var i=t;return e&&"function"==typeof e.sanitizer?i=e.sanitizer(t||""):"function"==typeof a.sanitize&&(i=(a.sanitize(t||"",n||{})||"").toString()),i}function U(e,t,n){if("string"==typeof t&&(t=t.split(".")),t.length>1){var i=t.shift();e&&void 0!==i&&U(e[i]="[object Object]"===Object.prototype.toString.call(e[i])?e[i]:{},t,n)}else e&&t[0]&&(e[t[0]]=n)}function F(e,t){if(void 0===t&&(t=","),null!=e){var n=""+e,i=n.split(".");return 2===i.length?i[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+"."+i[1]:n.replace(/\B(?=(\d{3})+(?!\d))/g,t)}return e}function S(e,t){return void 0===t&&(t=!1),"string"==typeof e?t?e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})):e.charAt(0).toUpperCase()+e.slice(1):e}function q(e){return"string"==typeof e?e.replace(/(?:^\w|[A-Z]|\b\w|[\s+\-_\/])/g,(function(e,t){return/[\s+\-_\/]/.test(e)?"":0===t?e.toLowerCase():e.toUpperCase()})):e}function I(e){return"string"==typeof e?q(e).replace(/([A-Z])/g,"-$1").toLowerCase():e}function W(e,t,n){if(void 0===n&&(n=!1),!(e&&t&&Array.isArray(e)&&Array.isArray(e)))return!1;if(e.length!==t.length)return!1;!n&&e.sort&&t.sort&&(e.sort(),t.sort());for(var i=0;i0?e.filter((function(t,n){return e.indexOf(t)>=n})):e}function _(e,t){if(void 0===t&&(t="id"),Array.isArray(e)&&e.length>0){for(var n=[],i=new Map,r=0,o=e;r=0?this.searchTerms[0]:"",i=this.buildTemplateHtmlString();this.$filterElm=this.createDomElement(i,n),this.$filterElm.on("keyup input change",(function(e){var n="";if(e&&e.target&&e.target.value){var i=e.target.value,o=t.gridOptions.enableFilterTrimWhiteSpace||t.columnFilter.enableTrimWhiteSpace;"string"==typeof i&&o&&(i=i.trim());var r=t.unmaskValue(i),a=t.maskValue(r);n=r,e.keyCode>=48&&(t.$filterElm.val(a),e.preventDefault())}t._clearFilterTriggered?(t.callback(e,{columnDef:t.columnDef,clearFilterTriggered:t._clearFilterTriggered,shouldTriggerQuery:t._shouldTriggerQuery}),t.$filterElm.removeClass("filled")):(t.$filterElm.addClass("filled"),t.callback(e,{columnDef:t.columnDef,operator:t.operator,searchTerms:[n],shouldTriggerQuery:t._shouldTriggerQuery})),t._clearFilterTriggered=!1,t._shouldTriggerQuery=!0}))},t.prototype.maskValue=function(e){var t=0,n="";return this._inputMask&&(n=this._inputMask.replace(/[09A]/gi,(function(n){return(("0"===n||"9"===n)&&/\d+/g.test(e[t])||"A"===n.toUpperCase()&&/[^\d]+/gi.test(e[t]))&&e[t++]||""}))),n},t.prototype.unmaskValue=function(e){for(var t=e.replace(/[^0-9a-z]*/gi,""),n=this._inputMask.replace(/[^0-9a-z]*/gi,""),i="",o=0;othis._max)&&(this._max=parseFloat(t))},e.prototype.storeResult=function(e){e&&void 0!==e[this._type]||(e[this._type]={}),e[this._type][this._field]=this._max},e}(),q=function(){function e(e){this._type="distinct",this._field=e}return Object.defineProperty(e.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.init=function(){this._distinctValues=[]},e.prototype.accumulate=function(e){var t=e&&e.hasOwnProperty(this._field)?e[this._field]:void 0;-1===this._distinctValues.indexOf(t)&&void 0!==t&&this._distinctValues.push(t)},e.prototype.storeResult=function(e){e&&void 0!==e[this._type]||(e[this._type]={}),e[this._type][this._field]=this._distinctValues},e}(),I=function(){function e(e){this._type="min",this._field=e}return Object.defineProperty(e.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.init=function(){this._min=null},e.prototype.accumulate=function(e){var t=e&&e.hasOwnProperty(this._field)?e[this._field]:null;null===t||""===t||isNaN(t)||(null===this._min||t0,o=this.validate(null,t),r=o&&o.valid?t:"";i?Object(O.setDeepValue)(e,n,r):n&&(e[n]=r)}},e.prototype.isValueChanged=function(){var e=this._input.value,t=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||t!==Q.a.ENTER)||!(""===e&&(null===this._originalValue||void 0===this._originalValue))&&e!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t){var n=(null==t?void 0:t.indexOf("."))>0?Object(O.getDescendantProperty)(e,t):e.hasOwnProperty(t)&&e[t]||"";this._originalValue=n,this._input.value=this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){return this._input.value},e.prototype.validate=function(e,t){var n;if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};var i=void 0!==t?t:this._input&&this._input.value;return Object(_.a)(i,{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minLength:this.columnEditor.minLength,maxLength:this.columnEditor.maxLength,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(N(N({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,o=this.grid.getActiveCell(),r=this.args.column,a=null!==(i=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==i?i:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(N(N({},o),{item:l,grid:s,column:r,formValues:t.formValues}),N(N({},new Slick.EventData),e))},e.prototype.handleOnKeyUp=function(e){var t,n,i=this,o=this.args.compositeEditorOptions;if(o){var r=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(O.debounce)((function(){return i.handleChangeOnCompositeEditor(e,o)}),r)()}},e}(),T=n(60),P=n(34),j=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Z=function(e){function t(t){var n=e.call(this,t,!1)||this;return n.args=t,n}return j(t,e),t}(P.a),K=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),X=function(e){function t(t){var n=e.call(this,t,!0)||this;return n.args=t,n}return K(t,e),t}(P.a),J=n(62);function ee(e,t){var n=isNaN(e)?null:parseInt(e,10);null!==n&&isNaN(n)&&(n=null);var i=t.errorMessage,r=t.required,a=t.minValue,l=t.maxValue,s=t.operatorConditionalType||"inclusive",d={"{{minValue}}":a,"{{maxValue}}":l},c=!0,A="";if(t.validator)return t.validator(e,t.editorArgs);if(r&&""===e)c=!1,A=i||o.a.VALIDATION_REQUIRED_FIELD;else if(""===e||!isNaN(e)&&/^[+-]?\d+$/.test(e)){if(void 0!==a&&void 0!==l&&null!==n&&("exclusive"===s&&(n<=a||n>=l)||"inclusive"===s&&(nl)))c=!1,A=i||o.a.VALIDATION_EDITOR_INTEGER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return d[e]}));else if(void 0!==a&&null!==n&&("exclusive"===s&&n<=a||"inclusive"===s&&null!==n&&n=l||"inclusive"===s&&null!==n&&n>l)){c=!1;p="inclusive"===s?o.a.VALIDATION_EDITOR_INTEGER_MAX_INCLUSIVE:o.a.VALIDATION_EDITOR_INTEGER_MAX;A=i||p.replace(/{{maxValue}}/gi,(function(e){return d[e]}))}}else c=!1,A=i||o.a.VALIDATION_EDITOR_VALID_INTEGER;return{valid:c,msg:A}}var te=function(){return(te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0,o=this.validate(null,t),r=o&&o.valid?t:"";i?Object(O.setDeepValue)(e,n,r):e[n]=r}},e.prototype.isValueChanged=function(){var e=this._input.value,t=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||t!==r.KeyCode.ENTER)||!(""===e&&(null===this._originalValue||void 0===this._originalValue))&&e!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t){var n=(null==t?void 0:t.indexOf("."))>0?Object(O.getDescendantProperty)(e,t):e[t];this._originalValue=isNaN(n)||null==n?n:""+n,this._input.value=""+this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){var e=this._input.value;if(""===e||isNaN(+e))return e;var t=isNaN(+e)?e:parseInt(e,10);return isNaN(+t)?e:t},e.prototype.validate=function(e,t){var n;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:ee(void 0!==t?t:this.getValue(),{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minValue:this.columnEditor.minValue,maxValue:this.columnEditor.maxValue,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(te(te({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,o=this.grid.getActiveCell(),r=this.args.column,a=null!==(i=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==i?i:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(te(te({},o),{item:l,grid:s,column:r,formValues:t.formValues}),te(te({},new Slick.EventData),e))},e.prototype.handleOnChange=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnKeyUp=function(e){var t,n,i=this,o=this.args.compositeEditorOptions;if(o){var r=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(O.debounce)((function(){return i.handleChangeOnCompositeEditor(e,o)}),r)()}},e}();function ie(e,t){var n=isNaN(e)?null:parseFloat(e),i=t.decimal||0,r=t.required,a=t.minValue,l=t.maxValue,s=t.operatorConditionalType||"inclusive",d=t.errorMessage,c={"{{minValue}}":a,"{{maxValue}}":l,"{{minDecimal}}":0,"{{maxDecimal}}":i},A=!0,p="";if("function"==typeof t.validator)return t.validator(e,t.editorArgs);if(r&&""===e)A=!1,p=d||o.a.VALIDATION_REQUIRED_FIELD;else if(""!==e&&(isNaN(e)||0===i&&!/^[-+]?(\d*(\.)?(\d)*)$/.test(e)))A=!1,p=d||o.a.VALIDATION_EDITOR_VALID_NUMBER;else if(void 0!==a&&void 0!==l&&null!==n&&("exclusive"===s&&(n<=a||n>=l)||"inclusive"===s&&(nl)))A=!1,p=d||o.a.VALIDATION_EDITOR_NUMBER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return c[e]}));else if(void 0!==a&&null!==n&&("exclusive"===s&&n<=a||"inclusive"===s&&n=l||"inclusive"===s&&n>l)){A=!1;u="inclusive"===s?o.a.VALIDATION_EDITOR_NUMBER_MAX_INCLUSIVE:o.a.VALIDATION_EDITOR_NUMBER_MAX;p=d||u.replace(/{{maxValue}}/gi,(function(e){return c[e]}))}else i>0&&!new RegExp("^[-+]?(\\d*(\\.)?(\\d){0,"+i+"})$").test(e)&&(A=!1,p=d||o.a.VALIDATION_EDITOR_DECIMAL_BETWEEN.replace(/{{minDecimal}}|{{maxDecimal}}/gi,(function(e){return c[e]})));return{valid:A,msg:p}}var oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0?"0."+t+"1":"1"},e.prototype.getValue=function(){return this._input.value||""},e.prototype.setValue=function(e){this._input.value=""+e},e.prototype.applyValue=function(e,t){var n=this.columnDef&&this.columnDef.field;if(void 0!==n){var i=(null==n?void 0:n.indexOf("."))>0,o=this.validate(null,t),r=o&&o.valid?t:"";i?Object(O.setDeepValue)(e,n,r):e[n]=r}},e.prototype.isValueChanged=function(){var e=this._input.value,t=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||t!==r.KeyCode.ENTER)||!(""===e&&(null===this._originalValue||void 0===this._originalValue))&&e!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(void 0!==t&&e&&void 0!==t){var n=(null==t?void 0:t.indexOf("."))>0?Object(O.getDescendantProperty)(e,t):e[t];this._originalValue=n;var i=this.getDecimalPlaces();null!==i&&(this._originalValue||0===this._originalValue)&&(+this._originalValue).toFixed&&(this._originalValue=(+this._originalValue).toFixed(i)),this._input.value=""+this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){var e=this._input.value;if(""===e||isNaN(+e))return e;var t=parseFloat(e),n=this.getDecimalPlaces();return null!==n&&(t||0===t)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t},e.prototype.validate=function(e,t){var n;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:ie(void 0!==t?t:this._input&&this._input.value,{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,decimal:this.getDecimalPlaces(),minValue:this.columnEditor.minValue,maxValue:this.columnEditor.maxValue,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(oe(oe({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,o=this.grid.getActiveCell(),r=this.args.column,a=null!==(i=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==i?i:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(oe(oe({},o),{item:l,grid:s,column:r,formValues:t.formValues}),oe(oe({},new Slick.EventData),e))},e.prototype.handleOnChange=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnKeyUp=function(e){var t,n,i=this,o=this.args.compositeEditorOptions;if(o){var r=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(O.debounce)((function(){return i.handleChangeOnCompositeEditor(e,o)}),r)()}},e}(),ae=n(63),le=function(){return(le=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0,o=this.validate(null,t),r=o&&o.valid?t:"";i?Object(O.setDeepValue)(e,n,r):e[n]=r}},e.prototype.isValueChanged=function(){return this.serializeValue()!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t){var n=(null==t?void 0:t.indexOf("."))>0?Object(O.getDescendantProperty)(e,t):e[t];this._originalValue=n,this._input.checked=!!this._originalValue}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){return this._input.checked},e.prototype.validate=function(e,t){var n,i=!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,r=void 0!==t?t:this._input.checked,a=this.columnEditor.errorMessage;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:this.validator?this.validator(r,this.args):i&&!r?{valid:!1,msg:a||o.a.VALIDATION_REQUIRED_FIELD}:{valid:!0,msg:null}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(le(le({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,o=this.grid.getActiveCell(),r=this.args.column,a=null!==(i=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==i?i:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(le(le({},o),{item:l,grid:s,column:r,formValues:t.formValues}),le(le({},new Slick.EventData),e))},e}(),de=n(64),ce=(n(61),function(){return(ce=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&n.forEach((function(t){return t.removeEventListener("focusout",e.handleFocusOut.bind(e))}))},e.prototype.createInput=function(e){var t,n=this.editorParams[e],i=this.columnDef&&this.columnDef.id,o=this.gridOptions.datasetIdPropertyName||"id",r=(null===(t=this.args)||void 0===t?void 0:t.item[o])||0,a=n.type||"text";"float"!==a&&"integer"!==a||(a="number");var l=document.createElement("input");return l.id="item-"+r+"-"+e,l.className="dual-editor-text editor-"+i+" "+e.replace(/input/gi,""),"readonly"===a&&(l.readOnly=!0,a="text"),l.type=a||"text",l.setAttribute("role","presentation"),l.autocomplete="off",l.placeholder=n.placeholder||"",l.title=n.title||"","number"===a&&(l.step=this.getInputDecimalSteps(e)),l},e.prototype.disable=function(e){var t,n;void 0===e&&(e=!0);var i=this.disabled;this.disabled=e,this._leftInput&&this._rightInput&&(e?(this._leftInput.setAttribute("disabled","disabled"),this._rightInput.setAttribute("disabled","disabled"),i!==e&&(null===(t=this.args)||void 0===t?void 0:t.compositeEditorOptions)&&(this._originalLeftValue="",this._originalRightValue="",this._leftInput.value="",this._rightInput.value="",this.handleChangeOnCompositeEditor(null,null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions))):(this._leftInput.removeAttribute("disabled"),this._rightInput.removeAttribute("disabled")))},e.prototype.focus=function(){},e.prototype.show=function(){var e;!!(null===(e=this.args)||void 0===e?void 0:e.compositeEditorOptions)&&this.applyInputUsabilityState()},e.prototype.getValues=function(){var e={},t=this._leftInput.value,n=this._rightInput.value,i=this.editorParams.leftInput&&("float"===this.editorParams.leftInput.type||"integer"===this.editorParams.leftInput.type),o=this.editorParams.rightInput&&("float"===this.editorParams.rightInput.type||"integer"===this.editorParams.rightInput.type),r=""!==t&&i?+this._leftInput.value:t||"",a=""!==n&&o?+this._rightInput.value:n||"";return Object(O.setDeepValue)(e,this._leftFieldName,r),Object(O.setDeepValue)(e,this._rightFieldName,a),e},e.prototype.setValues=function(e){Array.isArray(e)&&2===e.length&&(this._leftInput.value=""+e[0],this._rightInput.value=""+e[1])},e.prototype.applyValue=function(e,t){this.applyValueByPosition(e,t,"leftInput"),this.applyValueByPosition(e,t,"rightInput")},e.prototype.applyValueByPosition=function(e,t,n){var i="leftInput"===n?this._leftFieldName:this._rightFieldName;if(void 0!==i){var o=(null==i?void 0:i.indexOf("."))>0,r=i;if(o){var a=i.split(/\.(.*)/);r=a.length>1?a[1]:a}var l=o?Object(O.getDescendantProperty)(t,r):t[i],s=this.validate(null,{position:n,inputValue:l});if(o){var d=Object(O.getDescendantProperty)(t,r),c=s&&s.valid?d:"";Object(O.setDeepValue)(e,i,c)}else i&&(e[i]=s&&s.valid?t[i]:"")}},e.prototype.isValueChanged=function(){var e=this._leftInput.value,t=this._rightInput.value,n=this.editorParams&&this.editorParams.leftInput,i=this.editorParams&&this.editorParams.rightInput,o=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;if((n&&n.alwaysSaveOnEnterKey||i&&i.alwaysSaveOnEnterKey)&&o===Q.a.ENTER)return!0;var r=!(""===e&&(null===this._originalLeftValue||void 0===this._originalLeftValue))&&e!==this._originalLeftValue,a=!(""===t&&(null===this._originalRightValue||void 0===this._originalRightValue))&&t!==this._originalRightValue;return r||a},e.prototype.loadValue=function(e){this.loadValueByPosition(e,"leftInput"),this.loadValueByPosition(e,"rightInput"),this._leftInput.select()},e.prototype.loadValueByPosition=function(e,t){var n="leftInput"===t?this._leftFieldName:this._rightFieldName,i="leftInput"===t?"_originalLeftValue":"_originalRightValue",o="leftInput"===t?"_leftInput":"_rightInput";if(e&&void 0!==n){var r=(null==n?void 0:n.indexOf("."))>0?Object(O.getDescendantProperty)(e,n):e.hasOwnProperty(n)?e[n]:"";if(this[i]=r,"float"===this.editorParams[t].type){var a=this.getDecimalPlaces(t);null!==a&&(this[i]||0===this[i])&&(+this[i]).toFixed&&(this[i]=(+this[i]).toFixed(a))}this[o]&&(this[o].value=""+this[i])}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this._isValueSaveCalled||(this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges(),this._isValueSaveCalled=!0)},e.prototype.serializeValue=function(){var e={},t=this.serializeValueByPosition("leftInput"),n=this.serializeValueByPosition("rightInput");return Object(O.setDeepValue)(e,this._leftFieldName,t),Object(O.setDeepValue)(e,this._rightFieldName,n),e},e.prototype.serializeValueByPosition=function(e){var t="leftInput"===e?this._leftInput.value:this._rightInput.value;if(""===t||isNaN(+t))return t;var n=parseFloat(t),i=this.getDecimalPlaces(e);return null!==i&&(n||0===n)&&n.toFixed&&(n=parseFloat(n.toFixed(i))),n},e.prototype.getDecimalPlaces=function(e){var t="leftInput"===e?"leftInput":"rightInput",n=this.editorParams[t],i=null==n?void 0:n.decimal;return void 0===i?0:i},e.prototype.getInputDecimalSteps=function(e){for(var t=this.getDecimalPlaces(e),n="",i=1;i0?"0."+n+"1":"1"},e.prototype.validate=function(e,t){if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};if(t){var n=this.validateByPosition(t.position,t.inputValue);if(!n.valid)return"leftInput"===t.position?this._leftInput.select():this._rightInput.select(),n}else{var i=this.validateByPosition("leftInput"),o=this.validateByPosition("rightInput");if(!i.valid)return this._leftInput.select(),i;if(!o.valid)return this._rightInput.select(),o}return{valid:!0,msg:""}},e.prototype.validateByPosition=function(e,t){var n,i=this.editorParams[e],o="";if(t)o=t;else{var r="leftInput"===e?this._leftInput:this._rightInput;o=r&&r.value}var a=this.validator;o="function"==typeof a?this.getValues():o;var l={editorArgs:this.args,errorMessage:i.errorMessage,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&i.required,validator:"function"==typeof a?a:i.validator};switch(i.type){case"float":return ie(o,ce(ce({},l),{decimal:this.getDecimalPlaces(e),minValue:i.minValue,maxValue:i.maxValue,operatorConditionalType:i.operatorConditionalType}));case"integer":return ee(o,ce(ce({},l),{minValue:i.minValue,maxValue:i.maxValue,operatorConditionalType:i.operatorConditionalType}));case"text":case"password":default:return Object(_.a)(o,l)}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(ce(ce({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,i,o,r,a,l,s=this.grid.getActiveCell(),d=this.args.column,c=null!==(o=null===(i=null===(n=this.columnEditor.params)||void 0===n?void 0:n.leftInput)||void 0===i?void 0:i.field)&&void 0!==o?o:"",A=null!==(l=null===(a=null===(r=this.columnEditor.params)||void 0===r?void 0:r.rightInput)||void 0===a?void 0:a.field)&&void 0!==l?l:"",p=this.args.item,u=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(c)&&delete t.formValues[c],this.disabled&&t.formValues.hasOwnProperty(A)&&delete t.formValues[A],u.onCompositeEditorChange.notify(ce(ce({},s),{item:p,grid:u,column:d,formValues:t.formValues}),ce(ce({},new Slick.EventData),e))},e}(),pe={autoComplete:ae.a,checkbox:se,date:de.a,dualInput:Ae,float:re,integer:ne,longText:J.a,multipleSelect:X,singleSelect:Z,slider:T.a,text:Y},ue=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&this._addon.destroy()},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){if(this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){this.extensionUtility.loadExtensionDynamically(r.ExtensionName.autoTooltip);var e=this.sharedService.gridOptions.autoTooltipOptions;return this._addon=new Slick.AutoTooltips(e),this._addon&&this.sharedService.slickGrid.registerPlugin(this._addon),this._addon}return null},e}(),Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e._commandQueue.length)){var n=e._commandQueue[t];t++,n&&Slick.GlobalEditorLock.cancelCurrentEdit()&&n.execute()}}}},e.prototype.getDefaultOptions=function(){var e=this,t=0;return{clipboardCommandHandler:function(t){e._undoRedoBuffer.queueAndExecuteCommand.call(e._undoRedoBuffer,t)},dataItemColumnValueExtractor:function(t,n){if(!e.sharedService.gridOptions.editable||!n.editor){var i=void 0!==n.exportWithFormatter?n.exportWithFormatter:e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.exportWithFormatter;if(n.formatter&&i){var o=n.formatter(0,0,t[n.field],n,t,e.sharedService.slickGrid);if(n.sanitizeDataExport||e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.sanitizeDataExport){var r=o;return o&&"object"==typeof o&&o.hasOwnProperty("text")&&(r=o.text),null===r&&(r=""),Object(O.sanitizeHtmlToText)(r)}return o}}return null},readOnlyMode:!1,includeHeaderWhenCopying:!1,newRowCreator:function(n){for(var i=0;i0?e.splice(o,0,i):e.unshift(i)}return this._addon}return null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(e){var t=this;return this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions?(this.sharedService.slickGrid.registerPlugin(this._addon),e&&this.sharedService.slickGrid.getSelectionModel()||(this.extensionUtility.loadExtensionDynamically(he.a.rowSelection),e=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this.sharedService.slickGrid.setSelectionModel(e)),this.sharedService.gridOptions.preselectedRows&&e&&this.sharedService.slickGrid.getSelectionModel()&&setTimeout((function(){var e;return null===(e=t._addon)||void 0===e?void 0:e.selectRows(t.sharedService.gridOptions.preselectedRows||[])})),e):null},e}(),Be=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t,this._eventHandler=new Slick.EventHandler}return Object.defineProperty(e.prototype,"eventHandler",{get:function(){return this._eventHandler},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&this._addon.destroy()},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){var e=this;if(this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){this.extensionUtility.loadExtensionDynamically(he.a.columnPicker);var t=this.extensionUtility.getPickerTitleOutputString("columnTitle","columnPicker"),n=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),i=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","columnPicker");if(this.sharedService.gridOptions.columnPicker=this.sharedService.gridOptions.columnPicker||{},this.sharedService.gridOptions.columnPicker.columnTitle=this.sharedService.gridOptions.columnPicker.columnTitle||t,this.sharedService.gridOptions.columnPicker.forceFitTitle=this.sharedService.gridOptions.columnPicker.forceFitTitle||n,this.sharedService.gridOptions.columnPicker.syncResizeTitle=this.sharedService.gridOptions.columnPicker.syncResizeTitle||i,this._addon=new Slick.Controls.ColumnPicker(this.sharedService.allColumns,this.sharedService.slickGrid,this.sharedService.gridOptions),this.sharedService.slickGrid&&this.sharedService.gridOptions.enableColumnPicker){this._addon&&this.sharedService.gridOptions.columnPicker.onExtensionRegistered&&this.sharedService.gridOptions.columnPicker.onExtensionRegistered(this._addon);var o=this._addon.onColumnsChanged;this._eventHandler.subscribe(o,(function(t,n){e.sharedService.gridOptions.columnPicker&&"function"==typeof e.sharedService.gridOptions.columnPicker.onColumnsChanged&&e.sharedService.gridOptions.columnPicker.onColumnsChanged(t,n),n&&Array.isArray(n.columns)&&n.columns.length!==e.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=n.columns)}))}return this._addon}return null},e.prototype.translateColumnPicker=function(){var e,t,n;this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions&&(this.sharedService.gridOptions.columnPicker&&(this.emptyColumnPickerTitles(),this.sharedService.gridOptions.columnPicker.columnTitle=this.extensionUtility.getPickerTitleOutputString("columnTitle","columnPicker"),this.sharedService.gridOptions.columnPicker.forceFitTitle=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),this.sharedService.gridOptions.columnPicker.syncResizeTitle=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","columnPicker")),this.extensionUtility.translateItems(this.sharedService.allColumns,"nameKey","name"),(null===(e=this._addon)||void 0===e?void 0:e.updateAllTitles)&&(null===(n=null===(t=this.sharedService)||void 0===t?void 0:t.gridOptions)||void 0===n?void 0:n.columnPicker)&&this._addon.updateAllTitles(this.sharedService.gridOptions.columnPicker))},e.prototype.emptyColumnPickerTitles=function(){this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.columnPicker&&(this.sharedService.gridOptions.columnPicker.columnTitle="",this.sharedService.gridOptions.columnPicker.forceFitTitle="",this.sharedService.gridOptions.columnPicker.syncResizeTitle="")},e}(),xe=n(57),we=function(){return(we=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0}})}if(o&&a&&!a.hideCollapseAllGroups){e.find((function(e){return e.hasOwnProperty("command")&&"collapse-all-groups"===e.command}))||i.push({iconCssClass:a.iconCollapseAllGroupsCommand||"fa fa-compress",title:this.extensionUtility.translateWhenEnabledAndServiceExist(s+"COLLAPSE_ALL_GROUPS","TEXT_COLLAPSE_ALL_GROUPS"),disabled:!1,command:"collapse-all-groups",positionOrder:56,action:function(){o.enableTreeData?n.treeDataService.toggleTreeDataCollapse(!0):l.collapseAllGroups()},itemUsabilityOverride:function(){if(o.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}if(o&&a&&!a.hideExpandAllGroups){e.find((function(e){return e.hasOwnProperty("command")&&"expand-all-groups"===e.command}))||i.push({iconCssClass:a.iconExpandAllGroupsCommand||"fa fa-expand",title:this.extensionUtility.translateWhenEnabledAndServiceExist(s+"EXPAND_ALL_GROUPS","TEXT_EXPAND_ALL_GROUPS"),disabled:!1,command:"expand-all-groups",positionOrder:57,action:function(){o.enableTreeData?n.treeDataService.toggleTreeDataCollapse(!1):l.expandAllGroups()},itemUsabilityOverride:function(){if(o.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}}return i},e.prototype.copyToClipboard=function(e){try{if(e&&e.grid&&e.command){var t=this.sharedService&&this.sharedService.gridOptions||{},n=e&&e.cell||0,i=e&&e.row||0,o=e&&e.column,r=e&&e.dataContext,a=this.sharedService&&this.sharedService.slickGrid,l=t&&(t.excelExportOptions||t.exportOptions),s=Object(xe.a)(i,n,r,o,a,l);"function"==typeof o.queryFieldNameGetterFn&&(s=this.getCellValueFromQueryFieldGetter(o,r));var d=document.createElement("textarea");if(d&&document.body)d.style.position="absolute",d.style.left="-1000px",d.style.top="-1000px",d.value=s,document.body.appendChild(d),d.select(),document.execCommand("copy",!1,s)&&d.remove()}}catch(e){}},e.prototype.getCellValueFromQueryFieldGetter=function(e,t){var n="";if("function"==typeof e.queryFieldNameGetterFn){var i=e.queryFieldNameGetterFn(t);n=(null==i?void 0:i.indexOf("."))>=0?Object(O.getDescendantProperty)(t,i):t[i]}return n},e}(),ye=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t,this._eventHandler=new Slick.EventHandler}return Object.defineProperty(e.prototype,"eventHandler",{get:function(){return this._eventHandler},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&this._addon.destroy()},e.prototype.create=function(e){return e?(this.extensionUtility.loadExtensionDynamically(r.ExtensionName.draggableGrouping),this._addon||(this._addon=new Slick.DraggableGrouping(e.draggableGrouping)),this._addon):null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){var e=this;if(this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.sharedService.slickGrid.registerPlugin(this._addon),this.sharedService.slickGrid&&this.sharedService.gridOptions.draggableGrouping&&(this._addon&&this.sharedService.gridOptions.draggableGrouping.onExtensionRegistered&&this.sharedService.gridOptions.draggableGrouping.onExtensionRegistered(this._addon),this._addon&&this._addon.onGroupChanged)){var t=this._addon.onGroupChanged;this._eventHandler.subscribe(t,(function(t,n){e.sharedService.gridOptions.draggableGrouping&&"function"==typeof e.sharedService.gridOptions.draggableGrouping.onGroupChanged&&e.sharedService.gridOptions.draggableGrouping.onGroupChanged(t,n)}))}return this._addon}return null},e}(),De=function(){function e(e,t){this.sharedService=e,this.translaterService=t}return e.prototype.loadExtensionDynamically=function(e){try{switch(e){case he.a.autoTooltip:n(209);break;case he.a.cellExternalCopyManager:n(210);break;case he.a.checkboxSelector:n(211);break;case he.a.cellMenu:n(212);break;case he.a.columnPicker:n(213);break;case he.a.contextMenu:n(214);break;case he.a.draggableGrouping:n(215);break;case he.a.gridMenu:n(216);break;case he.a.groupItemMetaProvider:n(217);break;case he.a.headerButton:n(218);break;case he.a.headerMenu:n(219);break;case he.a.rowSelection:n(220);break;case he.a.rowDetailView:n(221);break;case he.a.rowMoveManager:n(222)}}catch(e){}},e.prototype.getPickerTitleOutputString=function(e,t){var n,i,r,a,l,s,d,c,A;if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate&&(!this.translaterService||!this.translaterService.translate))throw new Error('[Slickgrid-Universal] requires a Translate Service to be installed and configured when the grid option "enableTranslate" is enabled.');var p="",u=this.sharedService.gridOptions&&this.sharedService.gridOptions[t]||{},C=this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate||!1,g=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.locales||o.a.locales,h=u&&u[e],m=u&&u[e+"Key"],f=this.sharedService.gridOptions,b=Object(O.getTranslationPrefix)(f);if(m&&(null===(n=this.translaterService)||void 0===n?void 0:n.translate))p=this.translaterService.translate(m||" ");else switch(e){case"customTitle":p=h||C&&(null===(i=this.translaterService)||void 0===i?void 0:i.getCurrentLanguage)&&(null===(r=this.translaterService)||void 0===r?void 0:r.translate(b+"COMMANDS"||!1))||(null==g?void 0:g.TEXT_COMMANDS);break;case"columnTitle":p=h||C&&(null===(a=this.translaterService)||void 0===a?void 0:a.getCurrentLanguage)&&(null===(l=this.translaterService)||void 0===l?void 0:l.translate(b+"COLUMNS"||!1))||(null==g?void 0:g.TEXT_COLUMNS);break;case"forceFitTitle":p=h||C&&(null===(s=this.translaterService)||void 0===s?void 0:s.getCurrentLanguage)&&(null===(d=this.translaterService)||void 0===d?void 0:d.translate(b+"FORCE_FIT_COLUMNS"||!1))||(null==g?void 0:g.TEXT_FORCE_FIT_COLUMNS);break;case"syncResizeTitle":p=h||C&&(null===(c=this.translaterService)||void 0===c?void 0:c.getCurrentLanguage)&&(null===(A=this.translaterService)||void 0===A?void 0:A.translate(b+"SYNCHRONOUS_RESIZE"||!1))||(null==g?void 0:g.TEXT_SYNCHRONOUS_RESIZE);break;default:p=h}return p},e.prototype.sortItems=function(e,t){Array.isArray(e)&&e.sort((function(e,n){return e&&n&&e.hasOwnProperty(t)&&n.hasOwnProperty(t)?e[t]-n[t]:0}))},e.prototype.translateItems=function(e,t,n){if(Array.isArray(e))for(var i=0,o=e;i0?e.splice(l,0,a):e.unshift(a)}return this._addon}return null},e.prototype.loadAddonWhenNotExists=function(e,t){return Array.isArray(e)&&t?(this.extensionUtility.loadExtensionDynamically(r.ExtensionName.rowMoveManager),this._addon||(this._addon=new Slick.RowMoveManager((null==t?void 0:t.rowMoveManager)||{cancelEditOnDrag:!0})),this._addon):null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(e){var t=this;if(this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.extensionUtility.loadExtensionDynamically(r.ExtensionName.rowMoveManager),e&&this.sharedService.slickGrid.getSelectionModel()||(this.extensionUtility.loadExtensionDynamically(r.ExtensionName.rowSelection),e=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this.sharedService.slickGrid.setSelectionModel(e)),this.sharedService.slickGrid.registerPlugin(this._addon),this._addon&&this.sharedService.slickGrid&&this.sharedService.gridOptions.rowMoveManager){this.sharedService.gridOptions.rowMoveManager.onExtensionRegistered&&this.sharedService.gridOptions.rowMoveManager.onExtensionRegistered(this._addon);var n=this._addon.onBeforeMoveRows;n&&this._eventHandler.subscribe(n,(function(e,n){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows&&t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows(e,n)}));var i=this._addon.onMoveRows;i&&this._eventHandler.subscribe(i,(function(e,n){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onMoveRows&&t.sharedService.gridOptions.rowMoveManager.onMoveRows(e,n)}))}return this._addon}return null},e}(),Ue=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&this._addon.destroy()},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){return this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions?(this.extensionUtility.loadExtensionDynamically(he.a.rowSelection),this._addon=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this._addon&&this.sharedService.slickGrid.setSelectionModel(this._addon),this._addon):null},e}(),Fe=(n(43),n(45),function(e,t,n,i,o){if(n&&Array.isArray(n)&&n.length>0){var r=n.join(", ");return''+r+""}return n}),Se=n(13);function qe(e,t,n,i){var o=n&&"function"==typeof n.getOptions?n.getOptions():{},r=t&&t.params;return r&&r.hasOwnProperty(e)?r[e]:o.formatterOptions&&o.formatterOptions.hasOwnProperty(e)?o.formatterOptions[e]:i}function Ie(e,t){var n=Object(O.mapMomentDateFormatWithFieldType)(e);return function(e,i,o,r,a,l){var s,d,c,A,p=l&&"function"==typeof l.getOptions?l.getOptions():{},u=null!==(d=null===(s=null==p?void 0:p.formatterOptions)||void 0===s?void 0:s.dateSeparator)&&void 0!==d?d:t,C=null!==(A=null===(c=null==r?void 0:r.params)||void 0===c?void 0:c.parseDateAsUtc)&&void 0!==A&&A,g=Se(o,n,!1).isValid(),h=o;if(o&&g&&(h=C?Se.utc(o).format(n):Se(o).format(n)),h&&u!==t){var m=new RegExp(t,"ig");h=h.replace(m,u)}return h}}var We={arrayObjectToCsv:function(e,t,n,i,o){var r=i&&i.params||{},a=r.propertyNames,l=r.dataContextProperty;if(l||(l=i&&i.field&&i.field.split(".")[0]),!a||!Array.isArray(a)||!l)throw new Error('Formatters.arrayObjectToCsv requires you to pass an array of "propertyNames" (declared in "params") that you want to pull the data from.\n For example, if we have an array of user objects that have the property of firstName & lastName then we need to pass in your column definition:: { params: { propertyNames: [\'firtName\'] }}.\n Optionally, you can also pass the "dataContextProperty" if you wish to run this on another completely different field of the dataContext object.');if(o[l]&&Array.isArray(o[l])&&Array.isArray(o[l])&&o[l].length>0){var s=[];o[l].forEach((function(e){var t=[];a.forEach((function(n){t.push(e[n])})),s.push(t.join(" "))}));var d=s.join(", ");return''+d+""}return n},arrayToCsv:Fe,bold:function(e,t,n,i,o){return n?""+n+"":""},center:function(e,t,n){return void 0!==n&&"string"!=typeof n&&(n+=""),"
"+n+"
"},checkbox:function(e,t,n,i,o){return n?"☑":""},checkmark:function(e,t,n,i,o){var r=!1,a=null!=n&&""!==n&&!isNaN(+n);return a&&(n=+n),(!0===n||a&&+n>0||"string"==typeof n&&n.length>0&&"false"!==n.toLowerCase()&&"0"!==n)&&(r=!0),r?'':""},checkmarkMaterial:function(e,t,n,i,o){var r=!1,a=null!=n&&""!==n&&!isNaN(+n);return a&&(n=+n),(!0===n||a&&+n>0||"string"==typeof n&&n.length>0&&"false"!==n.toLowerCase()&&"0"!==n)&&(r=!0),r?'':""},complexObject:function(e,t,n,i,o){if(!i)return"";var r=i.params||{},a=r&&r.complexFieldLabel||i.field;if(!a)throw new Error("For the Formatters.complexObject to work properly, you need to tell it which property of the complex object to use.\n There are 3 ways to provide it:\n 1- via the generic \"params\" with a \"complexFieldLabel\" property on your Column Definition, example: this.columnDefs = [{ id: 'user', field: 'user', params: { complexFieldLabel: 'user.firstName' } }]\n 2- via the generic \"params\" with a \"complexFieldLabel\" and a \"labelKey\" property on your Column Definition, example: this.columnDefs = [{ id: 'user', field: 'user', labelKey: 'firstName' params: { complexFieldLabel: 'user' } }]\n 3- via the field name that includes a dot notation, example: this.columnDefs = [{ id: 'user', field: 'user.firstName'}] ");return i.labelKey&&o.hasOwnProperty(a)?o[a]&&o[a][i.labelKey]:"string"==typeof a&&a.indexOf(".")>0?a.split(".").reduce((function(e,t){return e&&e.hasOwnProperty(t)?e[t]:n}),o):n},collection:function(e,t,n,i,o){if(!(n&&i&&i.params&&i.params.collection&&i.params.collection.length))return n;var r=i.params,a=i.params.collection,l=r.customStructure?r.customStructure.label:"label",s=r.customStructure?r.customStructure.value:"value";return Array.isArray(n)?Fe(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t[s]===e}))[l]}))):Object(U.s)(a,(function(e){return e[s]===n}))[l]||""},collectionEditor:function(e,t,n,i,o){if(!(n&&i&&i.internalColumnEditor&&i.internalColumnEditor.collection&&i.internalColumnEditor.collection.length))return n;var r=i.internalColumnEditor,a=i.internalColumnEditor.collection,l=r.customStructure?r.customStructure.label:"label",s=r.customStructure?r.customStructure.value:"value";return Array.isArray(n)?a.every((function(e){return"string"==typeof e}))?Fe(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t===e}))}))):Fe(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t[s]===e}))[l]}))):Object(U.s)(a,(function(e){return e[s]===n}))[l]||""},dateIso:Ie(r.FieldType.dateIso,"-"),dateTimeIso:Ie(r.FieldType.dateTimeIso,"-"),dateTimeShortIso:Ie(r.FieldType.dateTimeShortIso,"-"),dateTimeIsoAmPm:Ie(r.FieldType.dateTimeIsoAmPm,"-"),dateEuro:Ie(r.FieldType.dateEuro,"/"),dateTimeEuro:Ie(r.FieldType.dateTimeEuro,"/"),dateTimeShortEuro:Ie(r.FieldType.dateTimeShortEuro,"/"),dateTimeEuroAmPm:Ie(r.FieldType.dateTimeEuroAmPm,"/"),dateUs:Ie(r.FieldType.dateUs,"/"),dateTimeUs:Ie(r.FieldType.dateTimeUs,"/"),dateTimeShortUs:Ie(r.FieldType.dateTimeShortUs,"/"),dateTimeUsAmPm:Ie(r.FieldType.dateTimeUsAmPm,"/"),deleteIcon:function(e,t,n,i,o){return''},decimal:function(e,t,n,i,o,r){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,r,2),s=qe("maxDecimal",i,r,2),d=qe("decimalSeparator",i,r,"."),c=qe("thousandSeparator",i,r,""),A=qe("displayNegativeNumberWithParentheses",i,r,!1);return a?Object(O.formatNumber)(n,l,s,A,"","",d,c):n},dollar:function(e,t,n,i,o,r){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,r,2),s=qe("maxDecimal",i,r,4),d=qe("decimalSeparator",i,r,"."),c=qe("thousandSeparator",i,r,""),A=qe("displayNegativeNumberWithParentheses",i,r,!1);return a?Object(O.formatNumber)(n,l,s,A,"$","",d,c):n},dollarColored:function(e,t,n,i,o,r){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,r,2),s=qe("maxDecimal",i,r,4),d=qe("decimalSeparator",i,r,"."),c=qe("thousandSeparator",i,r,""),A=qe("displayNegativeNumberWithParentheses",i,r,!1);return a?''+Object(O.formatNumber)(n,l,s,A,"$","",d,c)+"":n},dollarColoredBold:function(e,t,n,i,o,r){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,r,2),s=qe("maxDecimal",i,r,4),d=qe("decimalSeparator",i,r,"."),c=qe("thousandSeparator",i,r,""),A=qe("displayNegativeNumberWithParentheses",i,r,!1);return a?''+Object(O.formatNumber)(n,l,s,A,"$","",d,c)+"":n},editIcon:function(e,t,n,i,o){return''},hyperlink:function(e,t,n,i,o,r){var a=i&&i.params||{},l=r&&"function"==typeof r.getOptions?r.getOptions():{},s=a.hyperlinkText?a.hyperlinkText:n;s=Object(O.sanitizeTextByAvailableSanitizer)(l,s);var d=a.hyperlinkUrl?a.hyperlinkUrl:n,c=(d=Object(O.sanitizeTextByAvailableSanitizer)(l,d)).match(/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/i);return c&&Array.isArray(c)&&c.length>0?''+s+"":n},icon:function(e,t,n,i,o){var r=i&&i.params||{},a=r.icon||r.formatterIcon;if(!a)throw new Error('You must provide the "icon" or "formatterIcon" via the generic "params" options (e.g.: { formatter: Formatters.icon, params: { formatterIcon: \'fa fa-search\' }}');return''},infoIcon:function(e,t,n,i,o){return''},italic:function(e,t,n,i,o){return n?""+n+"":""},lowercase:function(e,t,n,i,o){return void 0!==n&&"string"!=typeof n&&(n+=""),n?n.toLowerCase():""},mask:function(e,t,n,i,o){var r=(i.params||{}).mask;if(!r)throw new Error('You must provide a "mask" via the generic "params" options (e.g.: { formatter: Formatters.mask, params: { mask: \'000-000\' }}');if(n){var a=0,l=n.toString();return r.replace(/[09A]/gi,(function(){return l[a++]||""}))}return n},multiple:function(e,t,n,i,o,r){var a=i.params||{};if(!a.formatters||!Array.isArray(a.formatters))throw new Error('The multiple formatter requires the "formatters" to be provided as a column params.\n For example: this.columnDefinitions = [{ id: title, field: title, formatter: Formatters.multiple, params: { formatters: [Formatters.lowercase, Formatters.uppercase] }');for(var l=n,s=0,d=a.formatters;s'+(n>100?"100%":u)+""}return n},percentCompleteBar:function(e,t,n,i,o){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var r=parseFloat(n);return r>100&&(r=100),''},percentCompleteBarWithText:function(e,t,n,i,o){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var r=parseFloat(n);return r>100&&(r=100),'
'+r+"%
"},percentSymbol:function(e,t,n,i,o,r){var a=null!=n&&""!==n&&!isNaN(+n),l=qe("minDecimal",i,r),s=qe("maxDecimal",i,r),d=qe("decimalSeparator",i,r,"."),c=qe("thousandSeparator",i,r,""),A=qe("displayNegativeNumberWithParentheses",i,r,!1);return a?Object(O.formatNumber)(n,l,s,A,"","%",d,c):n},progressBar:function(e,t,n,i,o){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var r="",a=parseFloat(n);return a>100&&(a=100),('
\n
\n '+a+"%\n
\n
").replace(/\s{2,}/g," ").trim()},translate:function(e,t,n,i,o,r){var a=(r&&"function"==typeof r.getOptions?r.getOptions():{}).i18n||i&&i.params&&i.params.i18n;if(!a||"function"!=typeof a.translate)throw new Error('The translate formatter requires the Translate Service to be provided as a Grid Options or Column Definition "i18n".\n For example: this.gridOptions = { enableTranslate: true, i18n: this.translateService }');return null!=n&&"string"!=typeof n&&(n+=""),n?a.translate(n):""},translateBoolean:function(e,t,n,i,o,r){var a=(r&&"function"==typeof r.getOptions?r.getOptions():{}).i18n||i&&i.params&&i.params.i18n;if(!a||"function"!=typeof a.translate)throw new Error('The translate formatter requires the Translate Service to be provided as a Grid Options or Column Definition "i18n".\n For example: this.gridOptions = { enableTranslate: true, i18n: this.translateService }');return null!=n&&"string"!=typeof n&&(n+=""),n?a.translate(n.toUpperCase()):""},tree:function(e,t,n,i,o,r){var a=null==r?void 0:r.getData(),l=null==r?void 0:r.getOptions(),s=null==l?void 0:l.treeDataOptions,d=(null==s?void 0:s.levelPropName)||"__treeLevel",c=(null==s?void 0:s.indentMarginLeft)||15,A=n;if("function"==typeof i.queryFieldNameGetterFn){var p=i.queryFieldNameGetterFn(o);A=(null==p?void 0:p.indexOf("."))>=0?Object(O.getDescendantProperty)(o,p):o.hasOwnProperty(p)?o[p]:n}if(null==A||void 0===o)return"";if(!o.hasOwnProperty(d))throw new Error('You must provide valid "treeDataOptions" in your Grid Options and it seems that there are no tree level found in this row');if(a&&a.getIdxById&&a.getItemByIdx){"string"==typeof A&&(A=Object(O.htmlEncode)(A));var u=a.getIdPropertyName()||"id",C='',g=a.getIdxById(o[u]),h=a.getItemByIdx((g||0)+1);return h&&h[d]>o[d]?o.__collapsed?C+' '+A:C+' '+A:C+' '+A}return""},uppercase:function(e,t,n,i,o){return void 0!==n&&"string"!=typeof n&&(n+=""),n?n.toUpperCase():""},yesNo:function(e,t,n,i,o){return n?"Yes":"No"}},Ge={avgTotals:function(e,t,n){var i=t.field||"",o=e.avg&&e.avg[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);if(null!==o&&!isNaN(+o)){if(o<0){if(o=Math.abs(o),p)return isNaN(s)&&isNaN(d)?a+"("+Object(O.thousandSeparatorFormatted)(Math.round(o),A)+")"+l:a+"("+Object(O.decimalFormatted)(o,s,d,c,A)+")"+l;a+="-"}return isNaN(s)&&isNaN(d)?""+a+Object(O.thousandSeparatorFormatted)(Math.round(o),A)+l:""+a+Object(O.decimalFormatted)(o,s,d,c,A)+l}return""},avgTotalsDollar:function(e,t,n){var i=t.field||"",o=e.avg&&e.avg[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":""+a+Object(O.formatNumber)(o,s,d,p,"$","",c,A)+l},avgTotalsPercentage:function(e,t,n){var i=t.field||"",o=e.avg&&e.avg[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);if(null!==o&&!isNaN(+o)){if(o<0){if(o=Math.abs(o),p)return isNaN(s)&&isNaN(d)?a+"("+Object(O.thousandSeparatorFormatted)(Math.round(o),A)+"%)"+l:a+"("+Object(O.decimalFormatted)(o,s,d,c,A)+"%)"+l;a+="-"}return isNaN(s)&&isNaN(d)?""+a+Object(O.thousandSeparatorFormatted)(Math.round(o),A)+"%"+l:""+a+Object(O.decimalFormatted)(o,s,d,c,A)+"%"+l}return""},maxTotals:function(e,t,n){var i=t.field||"",o=e.max&&e.max[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":""+a+Object(O.formatNumber)(o,s,d,p,"","",c,A)+l},minTotals:function(e,t,n){var i=t.field||"",o=e.min&&e.min[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":""+a+Object(O.formatNumber)(o,s,d,p,"","",c,A)+l},sumTotals:function(e,t,n){var i=t.field||"",o=e.sum&&e.sum[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":""+a+Object(O.formatNumber)(o,s,d,p,"","",c,A)+l},sumTotalsBold:function(e,t,n){var i=t.field||"",o=e.sum&&e.sum[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":""+a+Object(O.formatNumber)(o,s,d,p,"","",c,A)+l+""},sumTotalsColored:function(e,t,n){var i=t.field||"",o=e.sum&&e.sum[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n),d=qe("maxDecimal",t,n),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":''+a+Object(O.formatNumber)(o,s,d,p,"","",c,A)+l+""},sumTotalsDollar:function(e,t,n){var i=t.field||"",o=e.sum&&e.sum[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":""+a+Object(O.formatNumber)(o,s,d,p,"$","",c,A)+l},sumTotalsDollarBold:function(e,t,n){var i=t.field||"",o=e.sum&&e.sum[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":""+a+Object(O.formatNumber)(o,s,d,p,"$","",c,A)+l+""},sumTotalsDollarColored:function(e,t,n){var i=t.field||"",o=e.sum&&e.sum[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":''+a+Object(O.formatNumber)(o,s,d,p,"$","",c,A)+l+""},sumTotalsDollarColoredBold:function(e,t,n){var i=t.field||"",o=e.sum&&e.sum[i],r=t&&t.params,a=r&&r.groupFormatterPrefix||"",l=r&&r.groupFormatterSuffix||"",s=qe("minDecimal",t,n,2),d=qe("maxDecimal",t,n,4),c=qe("decimalSeparator",t,n,"."),A=qe("thousandSeparator",t,n,""),p=qe("displayNegativeNumberWithParentheses",t,n,!1);return null===o||isNaN(+o)?"":''+a+Object(O.formatNumber)(o,s,d,p,"$","",c,A)+l+""}},Re=n(39),Qe=(n(44),n(16)),Oe=n(20),_e=function(){this.options=V},Ne=function(){return(Ne=Object.assign||function(e){for(var t,n=1,i=arguments.length;n":">",'"':""","'":"'"};return(e||"").toString().replace(/[&<>"']/g,(function(e){return t[e]}))}function b(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}))}function B(e,t){var n=e.length,i=f(e);if(n0&&(l+=".");l.length-l.indexOf(".")<=r;)l+="0";var s,d,c=l.split(".");s=o?c.length>=1?F(c[0],o):void 0:c.length>=1?c[0]:l,c.length>1&&(d=c[1]);var A="";return void 0!==s&&void 0!==d?A=""+s+i+d:null!=s&&(A=s),A}function w(e,t,n,i,o,r,a,l){if(void 0===o&&(o=""),void 0===r&&(r=""),void 0===a&&(a="."),void 0===l&&(l=""),isNaN(+e))return e;var s=Math.round(1e6*parseFloat(e))/1e6;if(s<0){var d=Math.abs(s);return i?isNaN(t)&&isNaN(n)?"("+o+F(""+d,l)+r+")":"("+o+x(d,t,n,a,l)+r+")":isNaN(t)&&isNaN(n)?"-"+o+F(""+d,l)+r:"-"+o+x(d,t,n,a,l)+r}return isNaN(t)&&isNaN(n)?""+o+F(""+e,l)+r:""+o+x(e,t,n,a,l)+r}function v(e,t){return e&&t?t.split(".").reduce((function(e,t){return e&&e[t]}),e):e}function k(e){return e&&e.translationNamespace?e.translationNamespace+(e.translationNamespaceSeparator||""):""}function y(e){var t;switch(e){case r.FieldType.dateTime:case r.FieldType.dateTimeIso:t="YYYY-MM-DD HH:mm:ss";break;case r.FieldType.dateTimeIsoAmPm:t="YYYY-MM-DD hh:mm:ss a";break;case r.FieldType.dateTimeIsoAM_PM:t="YYYY-MM-DD hh:mm:ss A";break;case r.FieldType.dateTimeShortIso:t="YYYY-MM-DD HH:mm";break;case r.FieldType.dateEuro:t="DD/MM/YYYY";break;case r.FieldType.dateEuroShort:t="D/M/YY";break;case r.FieldType.dateTimeEuro:t="DD/MM/YYYY HH:mm:ss";break;case r.FieldType.dateTimeShortEuro:t="DD/MM/YYYY HH:mm";break;case r.FieldType.dateTimeEuroAmPm:t="DD/MM/YYYY hh:mm:ss a";break;case r.FieldType.dateTimeEuroAM_PM:t="DD/MM/YYYY hh:mm:ss A";break;case r.FieldType.dateTimeEuroShort:t="D/M/YY H:m:s";break;case r.FieldType.dateTimeEuroShortAmPm:t="D/M/YY h:m:s a";break;case r.FieldType.dateUs:t="MM/DD/YYYY";break;case r.FieldType.dateUsShort:t="M/D/YY";break;case r.FieldType.dateTimeUs:t="MM/DD/YYYY HH:mm:ss";break;case r.FieldType.dateTimeUsAmPm:t="MM/DD/YYYY hh:mm:ss a";break;case r.FieldType.dateTimeUsAM_PM:t="MM/DD/YYYY hh:mm:ss A";break;case r.FieldType.dateTimeUsShort:t="M/D/YY H:m:s";break;case r.FieldType.dateTimeUsShortAmPm:t="M/D/YY h:m:s a";break;case r.FieldType.dateTimeShortUs:t="MM/DD/YYYY HH:mm";break;case r.FieldType.dateUtc:t="YYYY-MM-DDTHH:mm:ss.SSSZ";break;case r.FieldType.date:case r.FieldType.dateIso:default:t="YYYY-MM-DD"}return t}function D(e){var t;switch(e){case r.FieldType.dateTime:case r.FieldType.dateTimeIso:t="Y-m-d H:i:S";break;case r.FieldType.dateTimeShortIso:t="Y-m-d H:i";break;case r.FieldType.dateTimeIsoAmPm:case r.FieldType.dateTimeIsoAM_PM:t="Y-m-d h:i:S K";break;case r.FieldType.dateEuro:t="d/m/Y";break;case r.FieldType.dateEuroShort:t="d/m/y";break;case r.FieldType.dateTimeEuro:t="d/m/Y H:i:S";break;case r.FieldType.dateTimeShortEuro:t="d/m/y H:i";break;case r.FieldType.dateTimeEuroAmPm:t="d/m/Y h:i:S K";break;case r.FieldType.dateTimeEuroAM_PM:t="d/m/Y h:i:s K";break;case r.FieldType.dateTimeEuroShort:t="d/m/y H:i:s";break;case r.FieldType.dateTimeEuroShortAmPm:t="d/m/y h:i:s K";break;case r.FieldType.dateUs:t="m/d/Y";break;case r.FieldType.dateUsShort:t="m/d/y";break;case r.FieldType.dateTimeUs:t="m/d/Y H:i:S";break;case r.FieldType.dateTimeShortUs:t="m/d/y H:i";break;case r.FieldType.dateTimeUsAmPm:t="m/d/Y h:i:S K";break;case r.FieldType.dateTimeUsAM_PM:t="m/d/Y h:i:s K";break;case r.FieldType.dateTimeUsShort:t="m/d/y H:i:s";break;case r.FieldType.dateTimeUsShortAmPm:t="m/d/y h:i:s K";break;case r.FieldType.dateUtc:t="Z";break;case r.FieldType.date:case r.FieldType.dateIso:default:t="Y-m-d"}return t}function $(e){var t;switch(e){case"<":case"LT":t=r.OperatorType.lessThan;break;case"<=":case"LE":t=r.OperatorType.lessThanOrEqual;break;case">":case"GT":t=r.OperatorType.greaterThan;break;case">=":case"GE":t=r.OperatorType.greaterThanOrEqual;break;case"<>":case"!=":case"NE":t=r.OperatorType.notEqual;break;case"*":case"a*":case"StartsWith":t=r.OperatorType.startsWith;break;case"*z":case"EndsWith":t=r.OperatorType.endsWith;break;case"=":case"==":case"EQ":t=r.OperatorType.equal;break;case"IN":t=r.OperatorType.in;break;case"NIN":case"NOT_IN":t=r.OperatorType.notIn;break;case"Not_Contains":case"NOT_CONTAINS":t=r.OperatorType.notContains;break;case"Contains":case"CONTAINS":default:t=r.OperatorType.contains}return t}function E(e){var t="";switch(e){case r.OperatorType.greaterThan:case">":t=">";break;case r.OperatorType.greaterThanOrEqual:case">=":t=">=";break;case r.OperatorType.lessThan:case"<":t="<";break;case r.OperatorType.lessThanOrEqual:case"<=":t="<=";break;case r.OperatorType.notEqual:case"<>":t="<>";break;case r.OperatorType.equal:case"=":case"==":case"EQ":t="=";break;case r.OperatorType.startsWith:case"a*":case"*":t="a*";break;case r.OperatorType.endsWith:case"*z":t="*z";break;default:t=e}return t}function M(e){var t;switch(e){case r.FieldType.unknown:case r.FieldType.string:case r.FieldType.text:case r.FieldType.password:case r.FieldType.readonly:t=r.OperatorType.contains;break;case r.FieldType.float:case r.FieldType.number:case r.FieldType.date:case r.FieldType.dateIso:case r.FieldType.dateUtc:case r.FieldType.dateTime:case r.FieldType.dateTimeIso:case r.FieldType.dateTimeIsoAmPm:case r.FieldType.dateTimeIsoAM_PM:case r.FieldType.dateEuro:case r.FieldType.dateEuroShort:case r.FieldType.dateTimeEuro:case r.FieldType.dateTimeEuroAmPm:case r.FieldType.dateTimeEuroAM_PM:case r.FieldType.dateTimeEuroShort:case r.FieldType.dateTimeEuroShortAmPm:case r.FieldType.dateTimeEuroShortAM_PM:case r.FieldType.dateUs:case r.FieldType.dateUsShort:case r.FieldType.dateTimeUs:case r.FieldType.dateTimeUsAmPm:case r.FieldType.dateTimeUsAM_PM:case r.FieldType.dateTimeUsShort:case r.FieldType.dateTimeUsShortAmPm:case r.FieldType.dateTimeUsShortAM_PM:default:t=r.OperatorType.equal}return t}function H(e){return/(true|1)/i.test(e+"")}function L(e,t){var n="";if("string"==typeof e&&/^[0-9\-\/]*$/.test(e)){var i=decodeURIComponent(e),o=l(new Date(i));o.isValid()&&4===o.year().toString().length&&(n=t?o.utc().format():o.format())}return n}function V(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}function z(e,t,n){var i=t;return e&&"function"==typeof e.sanitizer?i=e.sanitizer(t||""):"function"==typeof a.sanitize&&(i=(a.sanitize(t||"",n||{})||"").toString()),i}function U(e,t,n){if("string"==typeof t&&(t=t.split(".")),t.length>1){var i=t.shift();e&&void 0!==i&&U(e[i]="[object Object]"===Object.prototype.toString.call(e[i])?e[i]:{},t,n)}else e&&t[0]&&(e[t[0]]=n)}function F(e,t){if(void 0===t&&(t=","),null!=e){var n=""+e,i=n.split(".");return 2===i.length?i[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+"."+i[1]:n.replace(/\B(?=(\d{3})+(?!\d))/g,t)}return e}function S(e,t){return void 0===t&&(t=!1),"string"==typeof e?t?e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})):e.charAt(0).toUpperCase()+e.slice(1):e}function q(e){return"string"==typeof e?e.replace(/(?:^\w|[A-Z]|\b\w|[\s+\-_\/])/g,(function(e,t){return/[\s+\-_\/]/.test(e)?"":0===t?e.toLowerCase():e.toUpperCase()})):e}function I(e){return"string"==typeof e?q(e).replace(/([A-Z])/g,"-$1").toLowerCase():e}function W(e,t,n){if(void 0===n&&(n=!1),!(e&&t&&Array.isArray(e)&&Array.isArray(e)))return!1;if(e.length!==t.length)return!1;!n&&e.sort&&t.sort&&(e.sort(),t.sort());for(var i=0;i0?e.filter((function(t,n){return e.indexOf(t)>=n})):e}function _(e,t){if(void 0===t&&(t="id"),Array.isArray(e)&&e.length>0){for(var n=[],i=new Map,o=0,r=e;o0&&t-1 in e)}v.fn=v.prototype={jquery:"3.5.1",constructor:v,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(v.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(v.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n0&&t-1 in e)}v.fn=v.prototype={jquery:"3.5.1",constructor:v,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(v.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(v.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+q+")"+q+"*"),N=new RegExp(q+"|>"),Y=new RegExp(G),T=new RegExp("^"+I+"$"),P={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},j=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=Be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{z.apply(H=U.call(x.childNodes),x.childNodes),H[x.childNodes.length].nodeType}catch(e){z={apply:H.length?function(e,t){V.apply(e,U.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function le(e,t,i,r){var o,l,d,c,A,C,m,f=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!r&&(p(t),t=t||u,g)){if(11!==x&&(A=J.exec(e)))if(o=A[1]){if(9===x){if(!(d=t.getElementById(o)))return i;if(d.id===o)return i.push(d),i}else if(f&&(d=f.getElementById(o))&&b(t,d)&&d.id===o)return i.push(d),i}else{if(A[2])return z.apply(i,t.getElementsByTagName(e)),i;if((o=A[3])&&n.getElementsByClassName&&t.getElementsByClassName)return z.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!$[e+" "]&&(!h||!h.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(m=e,f=t,1===x&&(N.test(e)||_.test(e))){for((f=ee.test(e)&&me(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,re):t.setAttribute("id",c=B)),l=(C=a(e)).length;l--;)C[l]=(c?"#"+c:":scope")+" "+be(C[l]);m=C.join(",")}try{return z.apply(i,f.querySelectorAll(m)),i}catch(t){$(e,!0)}finally{c===B&&t.removeAttribute("id")}}}return s(e.replace(Q,"$1"),t,i,r)}function se(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function de(e){return e[B]=!0,e}function ce(e){var t=u.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function Ae(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function Ce(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return de((function(t){return t=+t,de((function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=le.support={},o=le.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!j.test(t||n&&n.nodeName||"HTML")},p=le.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:x;return a!=u&&9===a.nodeType&&a.documentElement?(C=(u=a).documentElement,g=!o(u),x!=u&&(r=u.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.scope=ce((function(e){return C.appendChild(e).appendChild(u.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(u.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(u.getElementsByClassName),n.getById=ce((function(e){return C.appendChild(e).id=B,!u.getElementsByName||!u.getElementsByName(B).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},m=[],h=[],(n.qsa=X.test(u.querySelectorAll))&&(ce((function(e){var t;C.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+q+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+q+"*(?:value|"+S+")"),e.querySelectorAll("[id~="+B+"-]").length||h.push("~="),(t=u.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+q+"*name"+q+"*="+q+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+B+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="";var t=u.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+q+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),C.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")}))),(n.matchesSelector=X.test(f=C.matches||C.webkitMatchesSelector||C.mozMatchesSelector||C.oMatchesSelector||C.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=f.call(e,"*"),f.call(e,"[s!='']:x"),m.push("!=",G)})),h=h.length&&new RegExp(h.join("|")),m=m.length&&new RegExp(m.join("|")),t=X.test(C.compareDocumentPosition),b=t||X.test(C.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return A=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==u||e.ownerDocument==x&&b(x,e)?-1:t==u||t.ownerDocument==x&&b(x,t)?1:c?F(c,e)-F(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],l=[t];if(!r||!o)return e==u?-1:t==u?1:r?-1:o?1:c?F(c,e)-F(c,t):0;if(r===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?pe(a[i],l[i]):a[i]==x?-1:l[i]==x?1:0},u):u},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&g&&!$[t+" "]&&(!m||!m.test(t))&&(!h||!h.test(t)))try{var i=f.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){$(t,!0)}return le(t,u,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!=u&&p(e),b(e,t)},le.attr=function(e,t){(e.ownerDocument||e)!=u&&p(e);var r=i.attrHandle[t.toLowerCase()],o=r&&M.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},le.escape=function(e){return(e+"").replace(ie,re)},le.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},le.uniqueSort=function(e){var t,i=[],r=0,o=0;if(A=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(E),A){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=le.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=le.selectors={cacheLength:50,createPseudo:de,match:P,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||le.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&le.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return P.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+q+")"+e+"("+q+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=le.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),l="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,s){var d,c,A,p,u,C,g=o!==a?"nextSibling":"previousSibling",h=t.parentNode,m=l&&t.nodeName.toLowerCase(),f=!s&&!l,b=!1;if(h){if(o){for(;g;){for(p=t;p=p[g];)if(l?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;C=g="only"===e&&!C&&"nextSibling"}return!0}if(C=[a?h.firstChild:h.lastChild],a&&f){for(b=(u=(d=(c=(A=(p=h)[B]||(p[B]={}))[p.uniqueID]||(A[p.uniqueID]={}))[e]||[])[0]===w&&d[1])&&d[2],p=u&&h.childNodes[u];p=++u&&p&&p[g]||(b=u=0)||C.pop();)if(1===p.nodeType&&++b&&p===t){c[e]=[w,u,b];break}}else if(f&&(b=u=(d=(c=(A=(p=t)[B]||(p[B]={}))[p.uniqueID]||(A[p.uniqueID]={}))[e]||[])[0]===w&&d[1]),!1===b)for(;(p=++u&&p&&p[g]||(b=u=0)||C.pop())&&((l?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++b||(f&&((c=(A=p[B]||(p[B]={}))[p.uniqueID]||(A[p.uniqueID]={}))[e]=[w,b]),p!==t)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||le.error("unsupported pseudo: "+e);return r[B]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?de((function(e,n){for(var i,o=r(e,t),a=o.length;a--;)e[i=F(e,o[a])]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:de((function(e){var t=[],n=[],i=l(e.replace(Q,"$1"));return i[B]?de((function(e,t,n,r){for(var o,a=i(e,null,r,[]),l=e.length;l--;)(o=a[l])&&(e[l]=!(t[l]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:de((function(e){return function(t){return le(e,t).length>0}})),contains:de((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}})),lang:de((function(e){return T.test(e||"")||le.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===C},focus:function(e){return e===u.activeElement&&(!u.hasFocus||u.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;nt?t:n;--i>=0;)e.push(i);return e})),gt:he((function(e,t,n){for(var i=n<0?n+t:n;++i1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function we(e,t,n,i,r){for(var o,a=[],l=0,s=e.length,d=null!=t;l-1&&(o[d]=!(a[d]=A))}}else m=we(m===a?m.splice(C,m.length):m),r?r(null,a,m,s):z.apply(a,m)}))}function ke(e){for(var t,n,r,o=e.length,a=i.relative[e[0].type],l=a||i.relative[" "],s=a?1:0,c=Be((function(e){return e===t}),l,!0),A=Be((function(e){return F(t,e)>-1}),l,!0),p=[function(e,n,i){var r=!a&&(i||n!==d)||((t=n).nodeType?c(e,n,i):A(e,n,i));return t=null,r}];s1&&xe(p),s>1&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Q,"$1"),n,s0,r=e.length>0,o=function(o,a,l,s,c){var A,C,h,m=0,f="0",b=o&&[],B=[],x=d,v=o||r&&i.find.TAG("*",c),k=w+=null==x?1:Math.random()||.1,y=v.length;for(c&&(d=a==u||a||c);f!==y&&null!=(A=v[f]);f++){if(r&&A){for(C=0,a||A.ownerDocument==u||(p(A),l=!g);h=e[C++];)if(h(A,a||u,l)){s.push(A);break}c&&(w=k)}n&&((A=!h&&A)&&m--,o&&b.push(A))}if(m+=f,n&&f!==m){for(C=0;h=t[C++];)h(b,B,a,l);if(o){if(m>0)for(;f--;)b[f]||B[f]||(B[f]=L.call(s));B=we(B)}z.apply(s,B),c&&!o&&B.length>0&&m+t.length>1&&le.uniqueSort(s)}return c&&(w=k,d=x),b};return n?de(o):o}(o,r))).selector=e}return l},s=le.select=function(e,t,n,r){var o,s,d,c,A,p="function"==typeof e&&e,u=!r&&a(e=p.selector||e);if(n=n||[],1===u.length){if((s=u[0]=u[0].slice(0)).length>2&&"ID"===(d=s[0]).type&&9===t.nodeType&&g&&i.relative[s[1].type]){if(!(t=(i.find.ID(d.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=P.needsContext.test(e)?0:s.length;o--&&(d=s[o],!i.relative[c=d.type]);)if((A=i.find[c])&&(r=A(d.matches[0].replace(te,ne),ee.test(s[0].type)&&me(t.parentNode)||t))){if(s.splice(o,1),!(e=r.length&&be(s)))return z.apply(n,r),n;break}}return(p||l(e,u))(r,t,!g,n,!t||ee.test(e)&&me(t.parentNode)||t),n},n.sortStable=B.split("").sort(E).join("")===B,n.detectDuplicates=!!A,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(u.createElement("fieldset"))})),ce((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||Ae("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||Ae("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||Ae(S,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),le}(n);v.find=y,v.expr=y.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=y.uniqueSort,v.text=y.getText,v.isXMLDoc=y.isXML,v.contains=y.contains,v.escapeSelector=y.escape;var D=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&v(e).is(n))break;i.push(e)}return i},$=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},E=v.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return m(t)?v.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?v.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?v.grep(e,(function(e){return c.call(t,e)>-1!==n})):v.filter(t,e,n)}v.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?v.find.matchesSelector(i,e)?[i]:[]:v.find.matches(e,v.grep(t,(function(e){return 1===e.nodeType})))},v.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(v(e).filter((function(){for(t=0;t1?v.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&E.test(e)?v(e):e||[],!1).length}});var V,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||V,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:z.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),H.test(i[1])&&v.isPlainObject(t))for(i in t)m(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(v):v.makeArray(e,this)}).prototype=v.fn,V=v(b);var U=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function S(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&v.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?v.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(v(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return D(e,"parentNode")},parentsUntil:function(e,t,n){return D(e,"parentNode",n)},next:function(e){return S(e,"nextSibling")},prev:function(e){return S(e,"previousSibling")},nextAll:function(e){return D(e,"nextSibling")},prevAll:function(e){return D(e,"previousSibling")},nextUntil:function(e,t,n){return D(e,"nextSibling",n)},prevUntil:function(e,t,n){return D(e,"previousSibling",n)},siblings:function(e){return $((e.parentNode||{}).firstChild,e)},children:function(e){return $(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),v.merge([],e.childNodes))}},(function(e,t){v.fn[e]=function(n,i){var r=v.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=v.filter(i,r)),this.length>1&&(F[e]||v.uniqueSort(r),U.test(e)&&r.reverse()),this.pushStack(r)}}));var q=/[^\x20\t\r\n\f]+/g;function I(e){return e}function W(e){throw e}function G(e,t,n,i){var r;try{e&&m(r=e.promise)?r.call(e).done(t).fail(n):e&&m(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}v.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return v.each(e.match(q)||[],(function(e,n){t[n]=!0})),t}(e):v.extend({},e);var t,n,i,r,o=[],a=[],l=-1,s=function(){for(r=r||e.once,i=t=!0;a.length;l=-1)for(n=a.shift();++l-1;)o.splice(n,1),n<=l&&l--})),this},has:function(e){return e?v.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||s()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},v.extend({Deferred:function(e){var t=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return v.Deferred((function(n){v.each(t,(function(t,i){var r=m(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&m(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,r){var o=0;function a(e,t,i,r){return function(){var l=this,s=arguments,d=function(){var n,d;if(!(e=o&&(i!==W&&(l=void 0,s=[n]),t.rejectWith(l,s))}};e?c():(v.Deferred.getStackHook&&(c.stackTrace=v.Deferred.getStackHook()),n.setTimeout(c))}}return v.Deferred((function(n){t[0][3].add(a(0,n,m(r)?r:I,n.notifyWith)),t[1][3].add(a(0,n,m(e)?e:I)),t[2][3].add(a(0,n,m(i)?i:W))})).promise()},promise:function(e){return null!=e?v.extend(e,r):r}},o={};return v.each(t,(function(e,n){var a=n[2],l=n[5];r[n[1]]=a.add,l&&a.add((function(){i=l}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=l.call(arguments),o=v.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?l.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(G(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||m(r[n]&&r[n].then)))return o.then();for(;n--;)G(r[n],a(n),o.reject);return o.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&R.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},v.readyException=function(e){n.setTimeout((function(){throw e}))};var Q=v.Deferred();function O(){b.removeEventListener("DOMContentLoaded",O),n.removeEventListener("load",O),v.ready()}v.fn.ready=function(e){return Q.then(e).catch((function(e){v.readyException(e)})),this},v.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||Q.resolveWith(b,[v]))}}),v.ready.then=Q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(v.ready):(b.addEventListener("DOMContentLoaded",O),n.addEventListener("load",O));var _=function(e,t,n,i,r,o,a){var l=0,s=e.length,d=null==n;if("object"===w(n))for(l in r=!0,n)_(e,t,l,n[l],!0,o,a);else if(void 0!==i&&(r=!0,m(i)||(a=!0),d&&(a?(t.call(e,i),t=null):(d=t,t=function(e,t,n){return d.call(v(e),n)})),t))for(;l1,null,!0)},removeData:function(e){return this.each((function(){X.remove(this,e)}))}}),v.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=K.get(e,t),n&&(!i||Array.isArray(n)?i=K.access(e,t,v.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),i=n.length,r=n.shift(),o=v._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){v.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:v.Callbacks("once memory").add((function(){K.remove(e,[t+"queue",n])}))})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;ue=b.createDocumentFragment().appendChild(b.createElement("div")),(Ce=b.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),ue.appendChild(Ce),h.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",h.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",h.option=!!ue.lastChild;var fe={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?v.merge([e],n):n}function Be(e,t){for(var n=0,i=e.length;n",""]);var xe=/<|&#?\w+;/;function we(e,t,n,i,r){for(var o,a,l,s,d,c,A=t.createDocumentFragment(),p=[],u=0,C=e.length;u-1)r&&r.push(o);else if(d=ae(o),a=be(A.appendChild(o),"script"),d&&Be(a),n)for(c=0;o=a[c++];)me.test(o.type||"")&&n.push(o);return A}var ve=/^key/,ke=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ye=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function $e(){return!1}function Ee(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,i,r,o){var a,l;if("object"==typeof t){for(l in"string"!=typeof n&&(i=i||n,n=void 0),t)Me(e,l,n,i,t[l],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=$e;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return v().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=v.guid++)),e.each((function(){v.event.add(this,t,r,i,n)}))}function He(e,t,n){n?(K.set(e,t,!1),v.event.add(e,t,{namespace:!1,handler:function(e){var i,r,o=K.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(v.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=l.call(arguments),K.set(this,t,o),i=n(this,t),this[t](),o!==(r=K.get(this,t))||i?K.set(this,t,!1):r={},o!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else o.length&&(K.set(this,t,{value:v.event.trigger(v.extend(o[0],v.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&v.event.add(e,t,De)}v.event={global:{},add:function(e,t,n,i,r){var o,a,l,s,d,c,A,p,u,C,g,h=K.get(e);if(j(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&v.find.matchesSelector(oe,r),n.guid||(n.guid=v.guid++),(s=h.events)||(s=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(q)||[""]).length;d--;)u=g=(l=ye.exec(t[d])||[])[1],C=(l[2]||"").split(".").sort(),u&&(A=v.event.special[u]||{},u=(r?A.delegateType:A.bindType)||u,A=v.event.special[u]||{},c=v.extend({type:u,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&v.expr.match.needsContext.test(r),namespace:C.join(".")},o),(p=s[u])||((p=s[u]=[]).delegateCount=0,A.setup&&!1!==A.setup.call(e,i,C,a)||e.addEventListener&&e.addEventListener(u,a)),A.add&&(A.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),v.event.global[u]=!0)},remove:function(e,t,n,i,r){var o,a,l,s,d,c,A,p,u,C,g,h=K.hasData(e)&&K.get(e);if(h&&(s=h.events)){for(d=(t=(t||"").match(q)||[""]).length;d--;)if(u=g=(l=ye.exec(t[d])||[])[1],C=(l[2]||"").split(".").sort(),u){for(A=v.event.special[u]||{},p=s[u=(i?A.delegateType:A.bindType)||u]||[],l=l[2]&&new RegExp("(^|\\.)"+C.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!r&&g!==c.origType||n&&n.guid!==c.guid||l&&!l.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,A.remove&&A.remove.call(e,c));a&&!p.length&&(A.teardown&&!1!==A.teardown.call(e,C,h.handle)||v.removeEvent(e,u,h.handle),delete s[u])}else for(u in s)v.event.remove(e,u+t[d],n,i,!0);v.isEmptyObject(s)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,l=new Array(arguments.length),s=v.event.fix(e),d=(K.get(this,"events")||Object.create(null))[s.type]||[],c=v.event.special[s.type]||{};for(l[0]=s,t=1;t=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(o=[],a={},n=0;n-1:v.find(r,this,null,[d]).length),a[r]&&o.push(i);o.length&&l.push({elem:d,handlers:o})}return d=this,s\s*$/g;function Ue(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&v(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Se(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function qe(e,t){var n,i,r,o,a,l;if(1===t.nodeType){if(K.hasData(e)&&(l=K.get(e).events))for(r in K.remove(t,"handle events"),l)for(n=0,i=l[r].length;n1&&"string"==typeof C&&!h.checkClone&&Ve.test(C))return e.each((function(r){var o=e.eq(r);g&&(t[0]=C.call(this,r,o.html())),We(o,t,n,i)}));if(p&&(o=(r=we(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(l=(a=v.map(be(r,"script"),Fe)).length;A0&&Be(a,!s&&be(e,"script")),l},cleanData:function(e){for(var t,n,i,r=v.event.special,o=0;void 0!==(n=e[o]);o++)if(j(n)){if(t=n[K.expando]){if(t.events)for(i in t.events)r[i]?v.event.remove(n,i):v.removeEvent(n,i,t.handle);n[K.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),v.fn.extend({detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return _(this,(function(e){return void 0===e?v.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ue(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ue(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(v.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return v.clone(this,e,t)}))},html:function(e){return _(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!fe[(he.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n3,oe.removeChild(e)),l}}))}();var Te=["Webkit","Moz","ms"],Pe=b.createElement("div").style,je={};function Ze(e){var t=v.cssProps[e]||je[e];return t||(e in Pe?e:je[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Te.length;n--;)if((e=Te[n]+t)in Pe)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var i=ie.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function nt(e,t,n,i,r,o){var a="width"===t?1:0,l=0,s=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(s+=v.css(e,n+re[a],!0,r)),i?("content"===n&&(s-=v.css(e,"padding"+re[a],!0,r)),"margin"!==n&&(s-=v.css(e,"border"+re[a]+"Width",!0,r))):(s+=v.css(e,"padding"+re[a],!0,r),"padding"!==n?s+=v.css(e,"border"+re[a]+"Width",!0,r):l+=v.css(e,"border"+re[a]+"Width",!0,r));return!i&&o>=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-s-l-.5))||0),s}function it(e,t,n){var i=Qe(e),r=(!h.boxSizingReliable()||n)&&"border-box"===v.css(e,"boxSizing",!1,i),o=r,a=Ne(e,t,i),l="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&r||!h.reliableTrDimensions()&&M(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===v.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===v.css(e,"boxSizing",!1,i),(o=l in e)&&(a=e[l])),(a=parseFloat(a)||0)+nt(e,t,n||(r?"border":"content"),o,i,a)+"px"}function rt(e,t,n,i,r){return new rt.prototype.init(e,t,n,i,r)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ne(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,l=P(t),s=Xe.test(t),d=e.style;if(s||(t=Ze(l)),a=v.cssHooks[t]||v.cssHooks[l],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:d[t];"string"===(o=typeof n)&&(r=ie.exec(n))&&r[1]&&(n=de(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||s||(n+=r&&r[3]||(v.cssNumber[l]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(d[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(s?d.setProperty(t,n):d[t]=n))}},css:function(e,t,n,i){var r,o,a,l=P(t);return Xe.test(t)||(t=Ze(l)),(a=v.cssHooks[t]||v.cssHooks[l])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ne(e,t,i)),"normal"===r&&t in et&&(r=et[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),v.each(["height","width"],(function(e,t){v.cssHooks[t]={get:function(e,n,i){if(n)return!Ke.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,i):Oe(e,Je,(function(){return it(e,t,i)}))},set:function(e,n,i){var r,o=Qe(e),a=!h.scrollboxSize()&&"absolute"===o.position,l=(a||i)&&"border-box"===v.css(e,"boxSizing",!1,o),s=i?nt(e,t,i,l,o):0;return l&&a&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-nt(e,t,"border",!1,o)-.5)),s&&(r=ie.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),tt(0,n,s)}}})),v.cssHooks.marginLeft=Ye(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ne(e,"marginLeft"))||e.getBoundingClientRect().left-Oe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),v.each({margin:"",padding:"",border:"Width"},(function(e,t){v.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+re[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(v.cssHooks[e+t].set=tt)})),v.fn.extend({css:function(e,t){return _(this,(function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=Qe(e),r=t.length;a1)}}),v.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(v.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||!v.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=rt.prototype.init,v.fx.step={};var ot,at,lt=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function dt(){at&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(dt):n.setTimeout(dt,v.fx.interval),v.fx.tick())}function ct(){return n.setTimeout((function(){ot=void 0})),ot=Date.now()}function At(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=re[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function pt(e,t,n){for(var i,r=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,a=r.length;o1)},removeAttr:function(e){return this.each((function(){v.removeAttr(this,e)}))}}),v.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?v.prop(e,t,n):(1===o&&v.isXMLDoc(e)||(r=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?Ct:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=v.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(q);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),Ct={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=gt[t]||v.find.attr;gt[t]=function(e,t,i){var r,o,a=t.toLowerCase();return i||(o=gt[a],gt[a]=r,r=null!=n(e,t,i)?a:null,gt[a]=o),r}}));var ht=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function ft(e){return(e.match(q)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function Bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(q)||[]}v.fn.extend({prop:function(e,t){return _(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[v.propFix[e]||e]}))}}),v.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&v.isXMLDoc(e)||(t=v.propFix[t]||t,r=v.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){v.propFix[this.toLowerCase()]=this})),v.fn.extend({addClass:function(e){var t,n,i,r,o,a,l,s=0;if(m(e))return this.each((function(t){v(this).addClass(e.call(this,t,bt(this)))}));if((t=Bt(e)).length)for(;n=this[s++];)if(r=bt(n),i=1===n.nodeType&&" "+ft(r)+" "){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(l=ft(i))&&n.setAttribute("class",l)}return this},removeClass:function(e){var t,n,i,r,o,a,l,s=0;if(m(e))return this.each((function(t){v(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=Bt(e)).length)for(;n=this[s++];)if(r=bt(n),i=1===n.nodeType&&" "+ft(r)+" "){for(a=0;o=t[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(l=ft(i))&&n.setAttribute("class",l)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):m(e)?this.each((function(n){v(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,r,o,a;if(i)for(r=0,o=v(this),a=Bt(e);t=a[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+ft(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;v.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=m(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,v(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=v.map(r,(function(e){return null==e?"":e+""}))),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=v.valHooks[r.type]||v.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(xt,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:ft(v.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,a="select-one"===e.type,l=a?null:[],s=a?o+1:r.length;for(i=o<0?s:a?o:0;i-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),v.each(["radio","checkbox"],(function(){v.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},h.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in n;var wt=/^(?:focusinfocus|focusoutblur)$/,vt=function(e){e.stopPropagation()};v.extend(v.event,{trigger:function(e,t,i,r){var o,a,l,s,d,c,A,p,C=[i||b],g=u.call(e,"type")?e.type:e,h=u.call(e,"namespace")?e.namespace.split("."):[];if(a=p=l=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!wt.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(h=g.split("."),g=h.shift(),h.sort()),d=g.indexOf(":")<0&&"on"+g,(e=e[v.expando]?e:new v.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:v.makeArray(t,[e]),A=v.event.special[g]||{},r||!A.trigger||!1!==A.trigger.apply(i,t))){if(!r&&!A.noBubble&&!f(i)){for(s=A.delegateType||g,wt.test(s+g)||(a=a.parentNode);a;a=a.parentNode)C.push(a),l=a;l===(i.ownerDocument||b)&&C.push(l.defaultView||l.parentWindow||n)}for(o=0;(a=C[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?s:A.bindType||g,(c=(K.get(a,"events")||Object.create(null))[e.type]&&K.get(a,"handle"))&&c.apply(a,t),(c=d&&a[d])&&c.apply&&j(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||A._default&&!1!==A._default.apply(C.pop(),t)||!j(i)||d&&m(i[g])&&!f(i)&&((l=i[d])&&(i[d]=null),v.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,vt),i[g](),e.isPropagationStopped()&&p.removeEventListener(g,vt),v.event.triggered=void 0,l&&(i[d]=l)),e.result}},simulate:function(e,t,n){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(i,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each((function(){v.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),h.focusin||v.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=K.access(i,t);r||i.addEventListener(e,n,!0),K.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=K.access(i,t)-1;r?K.access(i,t,r):(i.removeEventListener(e,n,!0),K.remove(i,t))}}}));var kt=n.location,yt={guid:Date.now()},Dt=/\?/;v.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+e),t};var $t=/\[\]$/,Et=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Ht=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,i){var r;if(Array.isArray(t))v.each(t,(function(t,r){n||$t.test(e)?i(e,r):Lt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==w(t))i(e,t);else for(r in t)Lt(e+"["+r+"]",t[r],n,i)}v.param=function(e,t){var n,i=[],r=function(e,t){var n=m(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,(function(){r(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,r);return i.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&Ht.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=v(this).val();return null==n?null:Array.isArray(n)?v.map(n,(function(e){return{name:t.name,value:e.replace(Et,"\r\n")}})):{name:t.name,value:n.replace(Et,"\r\n")}})).get()}});var Vt=/%20/g,zt=/#.*$/,Ut=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:GET|HEAD)$/,qt=/^\/\//,It={},Wt={},Gt="*/".concat("*"),Rt=b.createElement("a");function Qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(q)||[];if(m(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Ot(e,t,n,i){var r={},o=e===Wt;function a(l){var s;return r[l]=!0,v.each(e[l]||[],(function(e,l){var d=l(t,n,i);return"string"!=typeof d||o||r[d]?o?!(s=d):void 0:(t.dataTypes.unshift(d),a(d),!1)})),s}return a(t.dataTypes[0])||!r["*"]&&a("*")}function _t(e,t){var n,i,r=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&v.extend(!0,e,i),e}Rt.href=kt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_t(_t(e,v.ajaxSettings),t):_t(v.ajaxSettings,e)},ajaxPrefilter:Qt(It),ajaxTransport:Qt(Wt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,a,l,s,d,c,A,p,u=v.ajaxSetup({},t),C=u.context||u,g=u.context&&(C.nodeType||C.jquery)?v(C):v.event,h=v.Deferred(),m=v.Callbacks("once memory"),f=u.statusCode||{},B={},x={},w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(d){if(!a)for(a={};t=Ft.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return d?o:null},setRequestHeader:function(e,t){return null==d&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,B[e]=t),this},overrideMimeType:function(e){return null==d&&(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)k.always(e[k.status]);else for(t in e)f[t]=[f[t],e[t]];return this},abort:function(e){var t=e||w;return i&&i.abort(t),y(0,t),this}};if(h.promise(k),u.url=((e||u.url||kt.href)+"").replace(qt,kt.protocol+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(q)||[""],null==u.crossDomain){s=b.createElement("a");try{s.href=u.url,s.href=s.href,u.crossDomain=Rt.protocol+"//"+Rt.host!=s.protocol+"//"+s.host}catch(e){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=v.param(u.data,u.traditional)),Ot(It,u,t,k),d)return k;for(A in(c=v.event&&u.global)&&0==v.active++&&v.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!St.test(u.type),r=u.url.replace(zt,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(Vt,"+")):(p=u.url.slice(r.length),u.data&&(u.processData||"string"==typeof u.data)&&(r+=(Dt.test(r)?"&":"?")+u.data,delete u.data),!1===u.cache&&(r=r.replace(Ut,"$1"),p=(Dt.test(r)?"&":"?")+"_="+yt.guid+++p),u.url=r+p),u.ifModified&&(v.lastModified[r]&&k.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&k.setRequestHeader("If-None-Match",v.etag[r])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&k.setRequestHeader("Content-Type",u.contentType),k.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+Gt+"; q=0.01":""):u.accepts["*"]),u.headers)k.setRequestHeader(A,u.headers[A]);if(u.beforeSend&&(!1===u.beforeSend.call(C,k,u)||d))return k.abort();if(w="abort",m.add(u.complete),k.done(u.success),k.fail(u.error),i=Ot(Wt,u,t,k)){if(k.readyState=1,c&&g.trigger("ajaxSend",[k,u]),d)return k;u.async&&u.timeout>0&&(l=n.setTimeout((function(){k.abort("timeout")}),u.timeout));try{d=!1,i.send(B,y)}catch(e){if(d)throw e;y(-1,e)}}else y(-1,"No Transport");function y(e,t,a,s){var A,p,b,B,x,w=t;d||(d=!0,l&&n.clearTimeout(l),i=void 0,o=s||"",k.readyState=e>0?4:0,A=e>=200&&e<300||304===e,a&&(B=function(e,t,n){for(var i,r,o,a,l=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in l)if(l[r]&&l[r].test(i)){s.unshift(r);break}if(s[0]in n)o=s[0];else{for(r in n){if(!s[0]||e.converters[r+" "+s[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==s[0]&&s.unshift(o),n[o]}(u,k,a)),!A&&v.inArray("script",u.dataTypes)>-1&&(u.converters["text script"]=function(){}),B=function(e,t,n,i){var r,o,a,l,s,d={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)d[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!s&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=o,o=c.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(!(a=d[s+" "+o]||d["* "+o]))for(r in d)if((l=r.split(" "))[1]===o&&(a=d[s+" "+l[0]]||d["* "+l[0]])){!0===a?a=d[r]:!0!==d[r]&&(o=l[0],c.unshift(l[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+s+" to "+o}}}return{state:"success",data:t}}(u,B,k,A),A?(u.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(v.lastModified[r]=x),(x=k.getResponseHeader("etag"))&&(v.etag[r]=x)),204===e||"HEAD"===u.type?w="nocontent":304===e?w="notmodified":(w=B.state,p=B.data,A=!(b=B.error))):(b=w,!e&&w||(w="error",e<0&&(e=0))),k.status=e,k.statusText=(t||w)+"",A?h.resolveWith(C,[p,w,k]):h.rejectWith(C,[k,w,b]),k.statusCode(f),f=void 0,c&&g.trigger(A?"ajaxSuccess":"ajaxError",[k,u,A?p:b]),m.fireWith(C,[k,w]),c&&(g.trigger("ajaxComplete",[k,u]),--v.active||v.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],(function(e,t){v[t]=function(e,n,i,r){return m(n)&&(r=r||i,i=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:r,data:n,success:i},v.isPlainObject(e)&&e))}})),v.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),v._evalUrl=function(e,t,n){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){v.globalEval(e,t,n)}})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return m(e)?this.each((function(t){v(this).wrapInner(e.call(this,t))})):this.each((function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=m(e);return this.each((function(n){v(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){v(this).replaceWith(this.childNodes)})),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Nt={0:200,1223:204},Yt=v.ajaxSettings.xhr();h.cors=!!Yt&&"withCredentials"in Yt,h.ajax=Yt=!!Yt,v.ajaxTransport((function(e){var t,i;if(h.cors||Yt&&!e.crossDomain)return{send:function(r,o){var a,l=e.xhr();if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)l[a]=e.xhrFields[a];for(a in e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)l.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=i=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?o(0,"error"):o(l.status,l.statusText):o(Nt[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=t(),i=l.onerror=l.ontimeout=t("error"),void 0!==l.onabort?l.onabort=i:l.onreadystatechange=function(){4===l.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{l.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),v.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),v.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=v("
LOADING...
\ No newline at end of file +Slickgrid-Universal
LOADING...
\ No newline at end of file