diff --git a/docs/app.6fc2770a7f97f4264053.bundle.js b/docs/app.33c8b2288d79aa055b7e.bundle.js similarity index 66% rename from docs/app.6fc2770a7f97f4264053.bundle.js rename to docs/app.33c8b2288d79aa055b7e.bundle.js index 07aedd5be..dfd837f58 100644 --- a/docs/app.6fc2770a7f97f4264053.bundle.js +++ b/docs/app.33c8b2288d79aa055b7e.bundle.js @@ -1,4 +1,4 @@ -!function(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=141)}([function(e,t,i){"use strict";i.d(t,"j",(function(){return l.a})),i.d(t,"y",(function(){return I})),i.d(t,"d",(function(){return c.CaseType})),i.d(t,"o",(function(){return c.EventNamingStyle})),i.d(t,"p",(function(){return c.ExtensionName})),i.d(t,"s",(function(){return c.FieldType})),i.d(t,"t",(function(){return c.FileType})),i.d(t,"D",(function(){return c.GridStateType})),i.d(t,"J",(function(){return c.OperatorType})),i.d(t,"R",(function(){return c.SortDirection})),i.d(t,"S",(function(){return c.SortDirectionNumber})),i.d(t,"ab",(function(){return R.q})),i.d(t,"lb",(function(){return R.C})),i.d(t,"nb",(function(){return R.E})),i.d(t,"c",(function(){return R.a})),i.d(t,"h",(function(){return R.b})),i.d(t,"bb",(function(){return R.r})),i.d(t,"q",(function(){return R.c})),i.d(t,"v",(function(){return R.d})),i.d(t,"B",(function(){return R.f})),i.d(t,"z",(function(){return R.e})),i.d(t,"C",(function(){return R.g})),i.d(t,"G",(function(){return R.h})),i.d(t,"K",(function(){return R.i})),i.d(t,"O",(function(){return R.j})),i.d(t,"T",(function(){return R.k})),i.d(t,"U",(function(){return R.l})),i.d(t,"W",(function(){return R.m})),i.d(t,"X",(function(){return R.n})),i.d(t,"Y",(function(){return R.o})),i.d(t,"Z",(function(){return R.p})),i.d(t,"cb",(function(){return R.s})),i.d(t,"hb",(function(){return R.y})),i.d(t,"db",(function(){return R.u})),i.d(t,"eb",(function(){return R.v})),i.d(t,"gb",(function(){return R.x})),i.d(t,"ib",(function(){return R.z})),i.d(t,"kb",(function(){return R.B})),i.d(t,"jb",(function(){return R.A})),i.d(t,"mb",(function(){return R.D})),i.d(t,"ob",(function(){return R.F})),i.d(t,"pb",(function(){return R.G})),i.d(t,"qb",(function(){return R.H})),i.d(t,"rb",(function(){return R.I})),i.d(t,"fb",(function(){return R.w})),i.d(t,"a",(function(){return z})),i.d(t,"m",(function(){return me})),i.d(t,"b",(function(){return ge})),i.d(t,"e",(function(){return fe})),i.d(t,"f",(function(){return be})),i.d(t,"g",(function(){return xe})),i.d(t,"i",(function(){return we})),i.d(t,"k",(function(){return Ee})),i.d(t,"l",(function(){return De})),i.d(t,"r",(function(){return Pe})),i.d(t,"A",(function(){return $e})),i.d(t,"E",(function(){return Se})),i.d(t,"H",(function(){return Le})),i.d(t,"I",(function(){return Re})),i.d(t,"L",(function(){return Fe})),i.d(t,"M",(function(){return Ue})),i.d(t,"N",(function(){return Qe})),i.d(t,"w",(function(){return S})),i.d(t,"u",(function(){return L})),i.d(t,"x",(function(){return Ge})),i.d(t,"F",(function(){return Ye})),i.d(t,"Q",(function(){return Ze.a})),i.d(t,"n",(function(){return c})),i.d(t,"V",(function(){return Je})),i.d(t,"P",(function(){return Ke}));i(143);var r,n=i(18),o=i(2),a=i(22),l=i(4),c=i(1),d=i(51),s=i(52),_=i(31),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),A=function(e){function t(t,i){var r=e.call(this,t,i,!1)||this;return r.translaterService=t,r.collectionService=i,r}return u(t,e),t}(_.a),p=i(53),m=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),g=function(e){function t(t,i){var r=e.call(this,t,i,!0)||this;return r.translaterService=t,r.collectionService=i,r}return m(t,e),t}(_.a),C=i(23),f=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(e){function t(){var t=e.call(this)||this;return t.inputType="password",t}return f(t,e),t}(C.a),B=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),b=function(e){function t(){var t=e.call(this)||this;return t.inputType="number",t}return B(t,e),t}(C.a),x=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=function(e){function t(){var t=e.call(this)||this;return t.inputType="text",t}return x(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 i=Array.isArray(this.searchTerms)&&this.searchTerms.length>=0?this.searchTerms[0]:"",r=this.buildTemplateHtmlString();this.$filterElm=this.createDomElement(r,i),this.$filterElm.on("input change",(function(e){var i="";if(e&&e.target&&e.target.value){var r=e.target.value,n=t.gridOptions.enableFilterTrimWhiteSpace||t.columnFilter.enableTrimWhiteSpace;"string"==typeof r&&n&&(r=r.trim());var o=t.unmaskValue(r),a=t.maskValue(o);i=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:[i],shouldTriggerQuery:t._shouldTriggerQuery})),t._clearFilterTriggered=!1,t._shouldTriggerQuery=!0}))},t.prototype.maskValue=function(e){var t=0,i="";return this._inputMask&&(i=this._inputMask.replace(/[09A]/gi,(function(i){return(("0"===i||"9"===i)&&/\d+/g.test(e[t])||"A"===i.toUpperCase()&&/[^\d]+/gi.test(e[t]))&&e[t++]||""}))),i},t.prototype.unmaskValue=function(e){for(var t=e.replace(/[^0-9a-z]*/gi,""),i=this._inputMask.replace(/[^0-9a-z]*/gi,""),r="",n=0;nthis._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}(),V=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,n=this.validate(null,t),a=n&&n.valid?t:"";r?Object(o.setDeepValue)(e,i,a):i&&(e[i]=a)}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,i=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||i!==O.a.ENTER)||!(""===t&&(null===this._originalValue||void 0===this._originalValue))&&t!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t&&this._input){var i=(null==t?void 0:t.indexOf("."))>0?Object(o.getDescendantProperty)(e,t):e.hasOwnProperty(t)&&e[t]||"";this._originalValue=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;return null===(e=this._input)||void 0===e?void 0:e.value},e.prototype.validate=function(e,t){var i;if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};var r=void 0!==t?t:this._input&&this._input.value;return Object(W.a)(r,{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minLength:this.columnEditor.minLength,maxLength:this.columnEditor.maxLength,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(i=this.args)||void 0===i?void 0:i.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(Y(Y({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var i,r,n=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(i=this.columnDef)||void 0===i?void 0:i.id)&&void 0!==r?r:"",l=this.args.item,c=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],c.onCompositeEditorChange.notify(Y(Y({},n),{item:l,grid:c,column:o,formValues:t.formValues,editors:t.editors}),Y(Y({},new Slick.EventData),e))},e.prototype.handleOnInputChange=function(e){var t,i,r=this,n=this.args.compositeEditorOptions;if(n){var a=null!==(i=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==i?i:500;Object(o.debounce)((function(){return r.handleChangeOnCompositeEditor(e,n)}),a)()}},e}(),K=i(61),j=i(36),J=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),X=function(e){function t(t){var i=e.call(this,t,!1)||this;return i.args=t,i}return J(t,e),t}(j.a),ee=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),te=function(e){function t(t){var i=e.call(this,t,!0)||this;return i.args=t,i}return ee(t,e),t}(j.a),ie=i(63);function re(e,t){var i=isNaN(e)?null:parseInt(e,10);null!==i&&isNaN(i)&&(i=null);var r=t.errorMessage,n=t.required,o=t.minValue,a=t.maxValue,c=t.operatorConditionalType||"inclusive",d={"{{minValue}}":o,"{{maxValue}}":a},s=!0,_="";if(t.validator)return t.validator(e,t.editorArgs);if(n&&""===e)s=!1,_=r||l.a.VALIDATION_REQUIRED_FIELD;else if(""===e||!isNaN(e)&&/^[+-]?\d+$/.test(e)){if(void 0!==o&&void 0!==a&&null!==i&&("exclusive"===c&&(i<=o||i>=a)||"inclusive"===c&&(ia)))s=!1,_=r||l.a.VALIDATION_EDITOR_INTEGER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return d[e]}));else if(void 0!==o&&null!==i&&("exclusive"===c&&i<=o||"inclusive"===c&&null!==i&&i=a||"inclusive"===c&&null!==i&&i>a)){s=!1;u="inclusive"===c?l.a.VALIDATION_EDITOR_INTEGER_MAX_INCLUSIVE:l.a.VALIDATION_EDITOR_INTEGER_MAX;_=r||u.replace(/{{maxValue}}/gi,(function(e){return d[e]}))}}else s=!1,_=r||l.a.VALIDATION_EDITOR_VALID_INTEGER;return{valid:s,msg:_}}var ne=function(){return(ne=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0,n=this.validate(null,t),a=n&&n.valid?t:"";r?Object(o.setDeepValue)(e,i,a):e[i]=a}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,i=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||i!==c.KeyCode.ENTER)||!(""===t&&(null===this._originalValue||void 0===this._originalValue))&&t!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t&&this._input){var i=(null==t?void 0:t.indexOf("."))>0?Object(o.getDescendantProperty)(e,t):e[t];this._originalValue=isNaN(i)||null==i?i:""+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,t=null===(e=this._input)||void 0===e?void 0:e.value;if(void 0===t||""===t||isNaN(+t))return t;var i=isNaN(+t)?t:parseInt(t,10);return isNaN(+i)?t:i},e.prototype.validate=function(e,t){var i;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:re(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===(i=this.args)||void 0===i?void 0:i.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(ne(ne({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var i,r,n=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(i=this.columnDef)||void 0===i?void 0:i.id)&&void 0!==r?r:"",l=this.args.item,c=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],c.onCompositeEditorChange.notify(ne(ne({},n),{item:l,grid:c,column:o,formValues:t.formValues,editors:t.editors}),ne(ne({},new Slick.EventData),e))},e.prototype.handleOnMouseWheel=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnInputChange=function(e){var t,i,r=this,n=this.args.compositeEditorOptions;if(n){var a=null!==(i=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==i?i:500;Object(o.debounce)((function(){return r.handleChangeOnCompositeEditor(e,n)}),a)()}},e}();function ae(e,t){var i=isNaN(e)?null:parseFloat(e),r=t.decimal||0,n=t.required,o=t.minValue,a=t.maxValue,c=t.operatorConditionalType||"inclusive",d=t.errorMessage,s={"{{minValue}}":o,"{{maxValue}}":a,"{{minDecimal}}":0,"{{maxDecimal}}":r},_=!0,u="";if("function"==typeof t.validator)return t.validator(e,t.editorArgs);if(n&&""===e)_=!1,u=d||l.a.VALIDATION_REQUIRED_FIELD;else if(""!==e&&(isNaN(e)||0===r&&!/^[-+]?(\d*(\.)?(\d)*)$/.test(e)))_=!1,u=d||l.a.VALIDATION_EDITOR_VALID_NUMBER;else if(void 0!==o&&void 0!==a&&null!==i&&("exclusive"===c&&(i<=o||i>=a)||"inclusive"===c&&(ia)))_=!1,u=d||l.a.VALIDATION_EDITOR_NUMBER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return s[e]}));else if(void 0!==o&&null!==i&&("exclusive"===c&&i<=o||"inclusive"===c&&i=a||"inclusive"===c&&i>a)){_=!1;A="inclusive"===c?l.a.VALIDATION_EDITOR_NUMBER_MAX_INCLUSIVE:l.a.VALIDATION_EDITOR_NUMBER_MAX;u=d||A.replace(/{{maxValue}}/gi,(function(e){return s[e]}))}else r>0&&!new RegExp("^[-+]?(\\d*(\\.)?(\\d){0,"+r+"})$").test(e)&&(_=!1,u=d||l.a.VALIDATION_EDITOR_DECIMAL_BETWEEN.replace(/{{minDecimal}}|{{maxDecimal}}/gi,(function(e){return s[e]})));return{valid:_,msg:u}}var le=function(){return(le=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0?"0."+t+"1":"1"},e.prototype.getValue=function(){var e;return(null===(e=this._input)||void 0===e?void 0:e.value)||""},e.prototype.setValue=function(e,t){if(void 0===t&&(t=!1),this._input&&(this._input.value=""+e,t)){this.applyValue(this.args.item,this.serializeValue());var i=this.args.compositeEditorOptions;i&&this.handleChangeOnCompositeEditor(null,i)}},e.prototype.applyValue=function(e,t){var i=this.columnDef&&this.columnDef.field;if(void 0!==i){var r=(null==i?void 0:i.indexOf("."))>0,n=this.validate(null,t),a=n&&n.valid?t:"";r?Object(o.setDeepValue)(e,i,a):e[i]=a}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,i=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||i!==c.KeyCode.ENTER)||!(""===t&&(null===this._originalValue||void 0===this._originalValue))&&t!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(void 0!==t&&e&&void 0!==t&&this._input){var i=(null==t?void 0:t.indexOf("."))>0?Object(o.getDescendantProperty)(e,t):e[t];this._originalValue=i;var r=this.getDecimalPlaces();null!==r&&(this._originalValue||0===this._originalValue)&&(+this._originalValue).toFixed&&(this._originalValue=(+this._originalValue).toFixed(r)),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,t=null===(e=this._input)||void 0===e?void 0:e.value;if(void 0===t||""===t||isNaN(+t))return t;var i=parseFloat(t),r=this.getDecimalPlaces();return null!==r&&(i||0===i)&&i.toFixed&&(i=parseFloat(i.toFixed(r))),i},e.prototype.validate=function(e,t){var i,r;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:ae(void 0!==t?t:null===(i=this._input)||void 0===i?void 0:i.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===(r=this.args)||void 0===r?void 0:r.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},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 i,r,n=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(i=this.columnDef)||void 0===i?void 0:i.id)&&void 0!==r?r:"",l=this.args.item,c=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],c.onCompositeEditorChange.notify(le(le({},n),{item:l,grid:c,column:o,formValues:t.formValues,editors:t.editors}),le(le({},new Slick.EventData),e))},e.prototype.handleOnMouseWheel=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnInputChange=function(e){var t,i,r=this,n=this.args.compositeEditorOptions;if(n){var a=null!==(i=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==i?i:500;Object(o.debounce)((function(){return r.handleChangeOnCompositeEditor(e,n)}),a)()}},e}(),de=i(64),se=function(){return(se=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0,n=this.validate(null,t),a=n&&n.valid?t:"";r?Object(o.setDeepValue)(e,i,a):e[i]=a}},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&&this._input){var i=(null==t?void 0:t.indexOf("."))>0?Object(o.getDescendantProperty)(e,t):e[t];this._originalValue=i,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(){var e,t;return null!==(t=null===(e=this._input)||void 0===e?void 0:e.checked)&&void 0!==t&&t},e.prototype.validate=function(e,t){var i,r,n=!(null===(i=this.args)||void 0===i?void 0:i.compositeEditorOptions)&&this.columnEditor.required,o=void 0!==t?t:null===(r=this._input)||void 0===r?void 0:r.checked,a=this.columnEditor.errorMessage;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:this.validator?this.validator(o,this.args):n&&!o?{valid:!1,msg:a||l.a.VALIDATION_REQUIRED_FIELD}:{valid:!0,msg:null}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(se(se({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var i,r,n=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(i=this.columnDef)||void 0===i?void 0:i.id)&&void 0!==r?r:"",l=this.args.item,c=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],c.onCompositeEditorChange.notify(se(se({},n),{item:l,grid:c,column:o,formValues:t.formValues,editors:t.editors}),se(se({},new Slick.EventData),e))},e}(),ue=i(65),Ae=(i(62),function(){return(Ae=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0,a=r;if(n){var l=r.split(/\.(.*)/);a=l.length>1?l[1]:l}var c=n?Object(o.getDescendantProperty)(t,a):t[r],d=this.validate(null,{position:i,inputValue:c});if(n){var s=Object(o.getDescendantProperty)(t,a),_=d&&d.valid?s:"";Object(o.setDeepValue)(e,r,_)}else r&&(e[r]=d&&d.valid?t[r]:"")}},e.prototype.isValueChanged=function(){var e=this._leftInput.value,t=this._rightInput.value,i=this.editorParams&&this.editorParams.leftInput,r=this.editorParams&&this.editorParams.rightInput,n=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;if((i&&i.alwaysSaveOnEnterKey||r&&r.alwaysSaveOnEnterKey)&&n===O.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 i="leftInput"===t?this._leftFieldName:this._rightFieldName,r="leftInput"===t?"_originalLeftValue":"_originalRightValue",n="leftInput"===t?"_leftInput":"_rightInput";if(e&&void 0!==i){var a=(null==i?void 0:i.indexOf("."))>0?Object(o.getDescendantProperty)(e,i):e.hasOwnProperty(i)?e[i]:"";if(this[r]=a,"float"===this.editorParams[t].type){var l=this.getDecimalPlaces(t);null!==l&&(this[r]||0===this[r])&&(+this[r]).toFixed&&(this[r]=(+this[r]).toFixed(l))}this[n]&&(this[n].value=""+this[r])}},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"),i=this.serializeValueByPosition("rightInput");return Object(o.setDeepValue)(e,this._leftFieldName,t),Object(o.setDeepValue)(e,this._rightFieldName,i),e},e.prototype.serializeValueByPosition=function(e){var t="leftInput"===e?this._leftInput.value:this._rightInput.value;if(""===t||isNaN(+t))return t;var i=parseFloat(t),r=this.getDecimalPlaces(e);return null!==r&&(i||0===i)&&i.toFixed&&(i=parseFloat(i.toFixed(r))),i},e.prototype.getDecimalPlaces=function(e){var t="leftInput"===e?"leftInput":"rightInput",i=this.editorParams[t],r=null==i?void 0:i.decimal;return void 0===r?0:r},e.prototype.getInputDecimalSteps=function(e){for(var t=this.getDecimalPlaces(e),i="",r=1;r0?"0."+i+"1":"1"},e.prototype.validate=function(e,t){if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};if(t){var i=this.validateByPosition(t.position,t.inputValue);if(!i.valid)return"leftInput"===t.position?this._leftInput.select():this._rightInput.select(),i}else{var r=this.validateByPosition("leftInput"),n=this.validateByPosition("rightInput");if(!r.valid)return this._leftInput.select(),r;if(!n.valid)return this._rightInput.select(),n}return{valid:!0,msg:""}},e.prototype.validateByPosition=function(e,t){var i,r=this.editorParams[e],n="";if(t)n=t;else{var o="leftInput"===e?this._leftInput:this._rightInput;n=o&&o.value}var a=this.validator;n="function"==typeof a?this.getValues():n;var l={editorArgs:this.args,errorMessage:r.errorMessage,required:!(null===(i=this.args)||void 0===i?void 0:i.compositeEditorOptions)&&r.required,validator:"function"==typeof a?a:r.validator};switch(r.type){case"float":return ae(n,Ae(Ae({},l),{decimal:this.getDecimalPlaces(e),minValue:r.minValue,maxValue:r.maxValue,operatorConditionalType:r.operatorConditionalType}));case"integer":return re(n,Ae(Ae({},l),{minValue:r.minValue,maxValue:r.maxValue,operatorConditionalType:r.operatorConditionalType}));case"text":case"password":default:return Object(W.a)(n,l)}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(Ae(Ae({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var i,r,n,o,a,l,c=this.grid.getActiveCell(),d=this.args.column,s=null!==(n=null===(r=null===(i=this.columnEditor.params)||void 0===i?void 0:i.leftInput)||void 0===r?void 0:r.field)&&void 0!==n?n:"",_=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:"",u=this.args.item,A=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(s)&&delete t.formValues[s],this.disabled&&t.formValues.hasOwnProperty(_)&&delete t.formValues[_],A.onCompositeEditorChange.notify(Ae(Ae({},c),{item:u,grid:A,column:d,formValues:t.formValues,editors:t.editors}),Ae(Ae({},new Slick.EventData),e))},e.prototype.handleChangeOnCompositeEditorDebounce=function(e){var t,i,r,n=this,a=null===(t=this.args)||void 0===t?void 0:t.compositeEditorOptions;if(a){var l=null!==(r=null===(i=this.gridOptions)||void 0===i?void 0:i.editorTypingDebounce)&&void 0!==r?r:500;Object(o.debounce)((function(){return n.handleChangeOnCompositeEditor(e,a)}),l)()}},e}(),me={autoComplete:de.a,checkbox:_e,date:ue.a,dualInput:pe,float:ce,integer:oe,longText:ie.a,multipleSelect:te,singleSelect:X,slider:K.a,text:Z},ge=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&(this._addon.destroy(),this._addon=null)},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){if(this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){this.extensionUtility.loadExtensionDynamically(c.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,i=1,r=arguments.length;i=e._commandQueue.length)){var i=e._commandQueue[t];t++,i&&Slick.GlobalEditorLock.cancelCurrentEdit()&&i.execute()}}}},e.prototype.getDefaultOptions=function(){var e=this,t=0;return{clipboardCommandHandler:function(t){e._undoRedoBuffer.queueAndExecuteCommand.call(e._undoRedoBuffer,t)},dataItemColumnValueExtractor:function(t,i){if(!e.sharedService.gridOptions.editable||!i.editor){var r=void 0!==i.exportWithFormatter?i.exportWithFormatter:e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.exportWithFormatter;if(i.formatter&&r){var n=i.formatter(0,0,t[i.field],i,t,e.sharedService.slickGrid);if(i.sanitizeDataExport||e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.sanitizeDataExport){var a=n;return n&&"object"==typeof n&&n.hasOwnProperty("text")&&(a=n.text),null===a&&(a=""),Object(o.sanitizeHtmlToText)(a)}return n}}return null},readOnlyMode:!1,includeHeaderWhenCopying:!1,newRowCreator:function(i){for(var r=0;r0?e.splice(n,0,r):e.unshift(r)}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||[])})),this._rowSelectionPlugin=e,e):null},e}(),we=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(),this.extensionUtility.nullifyFunctionNameStartingWithOn(this._columnPicker),this._addon=null},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"),i=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),r=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","columnPicker");if(this._columnPicker=this.sharedService.gridOptions.columnPicker||{},this.sharedService.gridOptions.columnPicker=this._columnPicker,this._columnPicker.columnTitle=this._columnPicker.columnTitle||t,this._columnPicker.forceFitTitle=this._columnPicker.forceFitTitle||i,this._columnPicker.syncResizeTitle=this._columnPicker.syncResizeTitle||r,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._columnPicker.onExtensionRegistered&&this._columnPicker.onExtensionRegistered(this._addon);var n=this._addon.onColumnsChanged;this._eventHandler.subscribe(n,(function(t,i){var r;e._columnPicker&&"function"==typeof e._columnPicker.onColumnsChanged&&e._columnPicker.onColumnsChanged(t,i),i&&Array.isArray(i.columns)&&i.columns.length!==e.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=i.columns);var n=null!==(r=e.sharedService.gridOptions.frozenColumn)&&void 0!==r?r:-1;if(n>=0){var o=i.showing,a=i.columnId,l=i.allColumns,c=i.columns;e.extensionUtility.readjustFrozenColumnIndexWhenNeeded(a,n,o,l,c)}}))}return this._addon}return null},e.prototype.translateColumnPicker=function(){var e;this._columnPicker&&(this.emptyColumnPickerTitles(),this._columnPicker.columnTitle=this.extensionUtility.getPickerTitleOutputString("columnTitle","columnPicker"),this._columnPicker.forceFitTitle=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),this._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)&&this._columnPicker&&this._addon.updateAllTitles(this._columnPicker)},e.prototype.emptyColumnPickerTitles=function(){this._columnPicker&&(this._columnPicker.columnTitle="",this._columnPicker.forceFitTitle="",this._columnPicker.syncResizeTitle="")},e}(),ve=i(58),ke=function(){return(ke=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0}})}if(n&&a&&!a.hideCollapseAllGroups){e.find((function(e){return e.hasOwnProperty("command")&&"collapse-all-groups"===e.command}))||r.push({iconCssClass:a.iconCollapseAllGroupsCommand||"fa fa-compress",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"COLLAPSE_ALL_GROUPS","TEXT_COLLAPSE_ALL_GROUPS"),disabled:!1,command:"collapse-all-groups",positionOrder:56,action:function(){n.enableTreeData?i.treeDataService.toggleTreeDataCollapse(!0):l.collapseAllGroups()},itemUsabilityOverride:function(){if(n.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}if(n&&a&&!a.hideExpandAllGroups){e.find((function(e){return e.hasOwnProperty("command")&&"expand-all-groups"===e.command}))||r.push({iconCssClass:a.iconExpandAllGroupsCommand||"fa fa-expand",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"EXPAND_ALL_GROUPS","TEXT_EXPAND_ALL_GROUPS"),disabled:!1,command:"expand-all-groups",positionOrder:57,action:function(){n.enableTreeData?i.treeDataService.toggleTreeDataCollapse(!1):l.expandAllGroups()},itemUsabilityOverride:function(){if(n.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}}return r},e.prototype.copyToClipboard=function(e){try{if(e&&e.grid&&e.command){var t=this.sharedService&&this.sharedService.gridOptions||{},i=e&&e.cell||0,r=e&&e.row||0,n=e&&e.column,o=e&&e.dataContext,a=this.sharedService&&this.sharedService.slickGrid,l=t&&(t.excelExportOptions||t.exportOptions),c=Object(ve.a)(r,i,o,n,a,l);"function"==typeof n.queryFieldNameGetterFn&&(c=this.getCellValueFromQueryFieldGetter(n,o));var d=document.createElement("textarea");if(d&&document.body)d.style.position="absolute",d.style.left="-1000px",d.style.top="-1000px",d.value=c,document.body.appendChild(d),d.select(),document.execCommand("copy",!1,c)&&d.remove()}}catch(e){}},e.prototype.getCellValueFromQueryFieldGetter=function(e,t){var i="";if("function"==typeof e.queryFieldNameGetterFn){var r=e.queryFieldNameGetterFn(t);i=(null==r?void 0:r.indexOf("."))>=0?Object(o.getDescendantProperty)(t,r):t[r]}return i},e}(),De=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(),this.extensionUtility.nullifyFunctionNameStartingWithOn(this._draggableGroupingOptions),this._addon=null,this._draggableGroupingOptions=null},e.prototype.create=function(e){return e?(this.extensionUtility.loadExtensionDynamically(c.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._draggableGroupingOptions=this.sharedService.gridOptions.draggableGrouping,this._addon&&this._draggableGroupingOptions.onExtensionRegistered&&this._draggableGroupingOptions.onExtensionRegistered(this._addon),this._addon&&this._addon.onGroupChanged)){var t=this._addon.onGroupChanged;this._eventHandler.subscribe(t,(function(t,i){e._draggableGroupingOptions&&"function"==typeof e._draggableGroupingOptions.onGroupChanged&&e._draggableGroupingOptions.onGroupChanged(t,i)}))}return this._addon}return null},e}(),Pe=function(){function e(e,t){this.sharedService=e,this.translaterService=t}return e.prototype.loadExtensionDynamically=function(e){try{switch(e){case he.a.autoTooltip:i(211);break;case he.a.cellExternalCopyManager:i(212);break;case he.a.checkboxSelector:i(213);break;case he.a.cellMenu:i(214);break;case he.a.columnPicker:i(215);break;case he.a.contextMenu:i(216);break;case he.a.draggableGrouping:i(217);break;case he.a.gridMenu:i(218);break;case he.a.groupItemMetaProvider:i(219);break;case he.a.headerButton:i(220);break;case he.a.headerMenu:i(221);break;case he.a.rowSelection:i(222);break;case he.a.rowDetailView:i(223);break;case he.a.rowMoveManager:i(224)}}catch(e){}},e.prototype.getPickerTitleOutputString=function(e,t){var i,r,n,a,c,d,s,_,u;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 A="",p=this.sharedService.gridOptions&&this.sharedService.gridOptions[t]||{},m=this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate||!1,g=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.locales||l.a.locales,C=p&&p[e],f=p&&p[e+"Key"],h=this.sharedService.gridOptions,B=Object(o.getTranslationPrefix)(h);if(f&&(null===(i=this.translaterService)||void 0===i?void 0:i.translate))A=this.translaterService.translate(f||" ");else switch(e){case"customTitle":A=C||m&&(null===(r=this.translaterService)||void 0===r?void 0:r.getCurrentLanguage)&&(null===(n=this.translaterService)||void 0===n?void 0:n.translate(B+"COMMANDS"||!1))||(null==g?void 0:g.TEXT_COMMANDS);break;case"columnTitle":A=C||m&&(null===(a=this.translaterService)||void 0===a?void 0:a.getCurrentLanguage)&&(null===(c=this.translaterService)||void 0===c?void 0:c.translate(B+"COLUMNS"||!1))||(null==g?void 0:g.TEXT_COLUMNS);break;case"forceFitTitle":A=C||m&&(null===(d=this.translaterService)||void 0===d?void 0:d.getCurrentLanguage)&&(null===(s=this.translaterService)||void 0===s?void 0:s.translate(B+"FORCE_FIT_COLUMNS"||!1))||(null==g?void 0:g.TEXT_FORCE_FIT_COLUMNS);break;case"syncResizeTitle":A=C||m&&(null===(_=this.translaterService)||void 0===_?void 0:_.getCurrentLanguage)&&(null===(u=this.translaterService)||void 0===u?void 0:u.translate(B+"SYNCHRONOUS_RESIZE"||!1))||(null==g?void 0:g.TEXT_SYNCHRONOUS_RESIZE);break;default:A=C}return A},e.prototype.nullifyFunctionNameStartingWithOn=function(e){if(e)for(var t=0,i=Object.keys(e);t=0&&e){var a=0;if(i){var l=n.findIndex((function(e){return e.id===o.sharedService.frozenVisibleColumnId}));a=(c=n.findIndex((function(t){return t.id===e})))>=0&&(t>=c||l===c)?1:0}else{var c;a=(c=r.findIndex((function(t){return t.id===e})))>=0&&t>=c?-1:0}var d=t+a;0!==a&&this.sharedService.slickGrid.setOptions({frozenColumn:d}),Array.isArray(n)&&Array.isArray(r)&&n.length!==r.length&&this.sharedService.slickGrid.setColumns(n)}},e.prototype.sortItems=function(e,t){Array.isArray(e)&&e.sort((function(e,i){return e&&i&&e.hasOwnProperty(t)&&i.hasOwnProperty(t)?e[t]-i[t]:0}))},e.prototype.translateItems=function(e,t,i){if(Array.isArray(e))for(var r=0,n=e;re.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=i.columns);var n=null!==(r=e.sharedService.gridOptions.frozenColumn)&&void 0!==r?r:-1;if(n>=0){var o=i.showing,a=i.columnId,l=i.allColumns,c=i.columns;e.extensionUtility.readjustFrozenColumnIndexWhenNeeded(a,n,o,l,c)}}));var o=this._addon.onCommand;o&&this._eventHandler.subscribe(o,(function(t,i){e.executeGridMenuInternalCustomCommands(t,i),e._gridMenuOptions&&"function"==typeof e._gridMenuOptions.onCommand&&e._gridMenuOptions.onCommand(t,i)}));var a=this._addon.onMenuClose;a&&this._eventHandler.subscribe(a,(function(t,i){if(e._gridMenuOptions&&"function"==typeof e._gridMenuOptions.onMenuClose&&e._gridMenuOptions.onMenuClose(t,i),e.sharedService.slickGrid&&"function"==typeof e.sharedService.slickGrid.autosizeColumns){var r=e.sharedService.slickGrid.getUID();e._areVisibleColumnDifferent&&r&&null!==document.querySelector("."+r)&&(e.sharedService.gridOptions&&e.sharedService.gridOptions.enableAutoSizeColumns&&e.sharedService.slickGrid.autosizeColumns(),e._areVisibleColumnDifferent=!1)}}))}return this._addon}return null},e.prototype.refreshBackendDataset=function(e){e&&(this.sharedService.gridOptions=Ne(Ne({},this.sharedService.gridOptions),e)),Object(n.refreshBackendDataset)(this.sharedService.gridOptions)},e.prototype.showGridMenu=function(e){this._addon&&this._addon.showGridMenu(e)},e.prototype.translateGridMenu=function(){if(this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.gridMenu){this.sharedService.gridOptions.gridMenu.customItems=[],this.emptyGridMenuTitles();var e=this._userOriginalGridMenu&&Array.isArray(this._userOriginalGridMenu.customItems)?this._userOriginalGridMenu.customItems:[];this.sharedService.gridOptions.gridMenu.customItems=Me(e,this.addGridMenuCustomCommands(e)),this.extensionUtility.translateItems(this.sharedService.gridOptions.gridMenu.customItems,"titleKey","title"),this.extensionUtility.sortItems(this.sharedService.gridOptions.gridMenu.customItems,"positionOrder"),this.sharedService.gridOptions.gridMenu.columnTitle=this.extensionUtility.getPickerTitleOutputString("columnTitle","gridMenu"),this.sharedService.gridOptions.gridMenu.forceFitTitle=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","gridMenu"),this.sharedService.gridOptions.gridMenu.syncResizeTitle=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","gridMenu"),this.extensionUtility.translateItems(this.sharedService.allColumns,"nameKey","name"),this._addon&&this._addon.updateAllTitles&&this._addon.updateAllTitles(this.sharedService.gridOptions.gridMenu)}},e.prototype.addGridMenuCustomCommands=function(e){var t=this.sharedService.gridOptions.backendServiceApi||null,i=[],r=this.sharedService.gridOptions,n=Object(o.getTranslationPrefix)(r);if(this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideClearFrozenColumnsCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-frozen-columns"===e.command}))||i.push({iconCssClass:this._gridMenuOptions.iconClearFrozenColumnsCommand||"fa fa-times",title:this.extensionUtility.translateWhenEnabledAndServiceExist(n+"CLEAR_FROZEN_COLUMNS","TEXT_CLEAR_FROZEN_COLUMNS"),disabled:!1,command:"clear-frozen-columns",positionOrder:49})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableFiltering&&!this.sharedService.hideHeaderRowAfterPageLoad){if(this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideClearAllFiltersCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-filter"===e.command}))||i.push({iconCssClass:this._gridMenuOptions.iconClearAllFiltersCommand||"fa fa-filter text-danger",title:this.extensionUtility.translateWhenEnabledAndServiceExist(n+"CLEAR_ALL_FILTERS","TEXT_CLEAR_ALL_FILTERS"),disabled:!1,command:"clear-filter",positionOrder:50})}if(this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideToggleFilterCommand){e.find((function(e){return e.hasOwnProperty("command")&&"toggle-filter"===e.command}))||i.push({iconCssClass:this._gridMenuOptions.iconToggleFilterCommand||"fa fa-random",title:this.extensionUtility.translateWhenEnabledAndServiceExist(n+"TOGGLE_FILTER_ROW","TEXT_TOGGLE_FILTER_ROW"),disabled:!1,command:"toggle-filter",positionOrder:52})}if(t&&this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideRefreshDatasetCommand){e.find((function(e){return e.hasOwnProperty("command")&&"refresh-dataset"===e.command}))||i.push({iconCssClass:this._gridMenuOptions.iconRefreshDatasetCommand||"fa fa-refresh",title:this.extensionUtility.translateWhenEnabledAndServiceExist(n+"REFRESH_DATASET","TEXT_REFRESH_DATASET"),disabled:!1,command:"refresh-dataset",positionOrder:56})}}if(this.sharedService.gridOptions.showPreHeaderPanel&&this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideTogglePreHeaderCommand){e.find((function(e){return e.hasOwnProperty("command")&&"toggle-preheader"===e.command}))||i.push({iconCssClass:this._gridMenuOptions.iconTogglePreHeaderCommand||"fa fa-random",title:this.extensionUtility.translateWhenEnabledAndServiceExist(n+"TOGGLE_PRE_HEADER_ROW","TEXT_TOGGLE_PRE_HEADER_ROW"),disabled:!1,command:"toggle-preheader",positionOrder:52})}if(this.sharedService.gridOptions.enableSorting&&this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideClearAllSortingCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-sorting"===e.command}))||i.push({iconCssClass:this._gridMenuOptions.iconClearAllSortingCommand||"fa fa-unsorted text-danger",title:this.extensionUtility.translateWhenEnabledAndServiceExist(n+"CLEAR_ALL_SORTING","TEXT_CLEAR_ALL_SORTING"),disabled:!1,command:"clear-sorting",positionOrder:51})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableExport&&this._gridMenuOptions&&!this._gridMenuOptions.hideExportCsvCommand){e.find((function(e){return e.hasOwnProperty("command")&&"export-csv"===e.command}))||i.push({iconCssClass:this._gridMenuOptions.iconExportCsvCommand||"fa fa-download",title:this.extensionUtility.translateWhenEnabledAndServiceExist(n+"EXPORT_TO_CSV","TEXT_EXPORT_TO_CSV"),disabled:!1,command:"export-csv",positionOrder:53})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableExcelExport&&this._gridMenuOptions&&!this._gridMenuOptions.hideExportExcelCommand){e.find((function(e){return e.hasOwnProperty("command")&&"export-excel"===e.command}))||i.push({iconCssClass:this._gridMenuOptions.iconExportExcelCommand||"fa fa-file-excel-o text-success",title:this.extensionUtility.translateWhenEnabledAndServiceExist(n+"EXPORT_TO_EXCEL","TEXT_EXPORT_TO_EXCEL"),disabled:!1,command:"export-excel",positionOrder:54})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableExport&&this._gridMenuOptions&&!this._gridMenuOptions.hideExportTextDelimitedCommand){e.find((function(e){return e.hasOwnProperty("command")&&"export-text-delimited"===e.command}))||i.push({iconCssClass:this._gridMenuOptions.iconExportTextDelimitedCommand||"fa fa-download",title:this.extensionUtility.translateWhenEnabledAndServiceExist(n+"EXPORT_TO_TAB_DELIMITED","TEXT_EXPORT_TO_TAB_DELIMITED"),disabled:!1,command:"export-text-delimited",positionOrder:55})}return this.sharedService&&this.sharedService.gridOptions&&this._gridMenuOptions&&(Array.isArray(i)&&i.length>0||Array.isArray(this._gridMenuOptions.customItems)&&this._gridMenuOptions.customItems.length>0)&&(this._gridMenuOptions.customTitle=this._gridMenuOptions.customTitle||this.extensionUtility.getPickerTitleOutputString("customTitle","gridMenu")),i},e.prototype.executeGridMenuInternalCustomCommands=function(e,t){var i,r=(null===(i=this.sharedService)||void 0===i?void 0:i.externalRegisteredServices)||[];if(t&&t.command)switch(t.command){case"clear-frozen-columns":var n=Me(this.sharedService.visibleColumns);this.sharedService.slickGrid.setOptions({frozenColumn:-1,enableMouseWheelScrollHandler:!1}),Array.isArray(n)&&Array.isArray(this.sharedService.allColumns)&&n.length!==this.sharedService.allColumns.length&&this.sharedService.slickGrid.setColumns(n);break;case"clear-filter":this.filterService.clearFilters(),this.sharedService.dataView.refresh();break;case"clear-sorting":this.sortService.clearSorting(),this.sharedService.dataView.refresh();break;case"export-csv":var o=r.find((function(e){return"FileExportService"===e.className}));if(!(null==o?void 0:o.exportToFile))throw new Error("[Slickgrid-Universal] You must register the FileExportService to properly use Export to File in the Grid Menu. Example:: this.gridOptions = { enableExport: true, registerExternalServices: [new FileExportService()] };");o.exportToFile({delimiter:c.DelimiterType.comma,filename:"export",format:c.FileType.csv,useUtf8WithBom:!0});break;case"export-excel":var a=r.find((function(e){return"ExcelExportService"===e.className}));if(!(null==a?void 0:a.exportToExcel))throw new Error("[Slickgrid-Universal] You must register the ExcelExportService to properly use Export to Excel in the Grid Menu. Example:: this.gridOptions = { enableExcelExport: true, registerExternalServices: [new ExcelExportService()] };");a.exportToExcel({filename:"export",format:c.FileType.xlsx});break;case"export-text-delimited":var l=r.find((function(e){return"FileExportService"===e.className}));if(!(null==l?void 0:l.exportToFile))throw new Error("[Slickgrid-Universal] You must register the FileExportService to properly use Export to File in the Grid Menu. Example:: this.gridOptions = { enableExport: true, registerExternalServices: [new FileExportService()] };");l.exportToFile({delimiter:c.DelimiterType.tab,filename:"export",format:c.FileType.txt,useUtf8WithBom:!0});break;case"toggle-filter":var d=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showHeaderRow||!1;d=!d,this.sharedService.slickGrid.setHeaderRowVisibility(d),!0===d&&this.sharedService.slickGrid.setColumns(this.sharedService.columnDefinitions);break;case"toggle-toppanel":var s=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showTopPanel||!1;this.sharedService.slickGrid.setTopPanelVisibility(!s);break;case"toggle-preheader":var _=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showPreHeaderPanel||!1;this.sharedService.slickGrid.setPreHeaderPanelVisibility(!_);break;case"refresh-dataset":this.refreshBackendDataset()}},e.prototype.emptyGridMenuTitles=function(){this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.gridMenu&&(this.sharedService.gridOptions.gridMenu.customTitle="",this.sharedService.gridOptions.gridMenu.columnTitle="",this.sharedService.gridOptions.gridMenu.forceFitTitle="",this.sharedService.gridOptions.gridMenu.syncResizeTitle="")},e.prototype.getDefaultGridMenuOptions=function(){return{customTitle:void 0,columnTitle:this.extensionUtility.getPickerTitleOutputString("columnTitle","gridMenu"),forceFitTitle:this.extensionUtility.getPickerTitleOutputString("forceFitTitle","gridMenu"),syncResizeTitle:this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","gridMenu"),iconCssClass:"fa fa-bars",menuWidth:18,customItems:[],hideClearAllFiltersCommand:!1,hideRefreshDatasetCommand:!1,hideToggleFilterCommand:!1}},e}(),Se=function(){function e(e){this.sharedService=e}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&this._addon.destroy(),this._addon=null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){return this.sharedService&&this.sharedService.slickGrid?(this._addon=this.sharedService.groupItemMetadataProvider,this._addon&&this.sharedService.slickGrid.registerPlugin(this._addon),this._addon):null},e}(),Le=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(),this.extensionUtility.nullifyFunctionNameStartingWithOn(this._headerButtonOptions),this._addon=null,this._headerButtonOptions=null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){var e=this;if(this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.extensionUtility.loadExtensionDynamically(c.ExtensionName.headerButton),this._headerButtonOptions=this.sharedService.gridOptions.headerButton||{},this._addon=new Slick.Plugins.HeaderButtons(this._headerButtonOptions),this._addon&&this.sharedService.slickGrid.registerPlugin(this._addon),this._addon&&this.sharedService.slickGrid&&this._headerButtonOptions){this._headerButtonOptions.onExtensionRegistered&&this._headerButtonOptions.onExtensionRegistered(this._addon);var t=this._addon.onCommand;t&&this._eventHandler.subscribe(t,(function(t,i){e._headerButtonOptions&&"function"==typeof e._headerButtonOptions.onCommand&&e._headerButtonOptions.onCommand(t,i)}))}return this._addon}return null},e}(),Ie=function(){return(Ie=Object.assign||function(e){for(var t,i=1,r=arguments.length;i=0&&r>=t&&this.sharedService.slickGrid.setOptions({frozenColumn:r-1});var n=Object(o.arrayRemoveItemByIndex)(i,t);this.sharedService.visibleColumns=n,this.sharedService.slickGrid.setColumns(n),this.pubSubService.publish("onHeaderMenuHideColumns",{columns:n,hiddenColumn:e})}},e.prototype.translateHeaderMenu=function(){this.sharedService.gridOptions&&this.sharedService.gridOptions.headerMenu&&this.resetHeaderMenuTranslations(this.sharedService.visibleColumns)},e.prototype.getDefaultHeaderMenuOptions=function(){return{autoAlignOffset:12,minWidth:140,hideColumnHideCommand:!1,hideSortCommands:!1,title:""}},e.prototype.resetHeaderMenuTranslations=function(e){var t=this,i=this.sharedService.gridOptions,r=Object(o.getTranslationPrefix)(i);e.forEach((function(e){if(e&&e.header&&e.header.menu&&e.header.menu.items&&!e.excludeFromHeaderMenu){var i=e.header.menu.items||[];i.forEach((function(e){if(e.hasOwnProperty("command"))switch(e.command){case"clear-filter":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"REMOVE_FILTER","TEXT_REMOVE_FILTER");break;case"clear-sort":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"REMOVE_SORT","TEXT_REMOVE_SORT");break;case"freeze-columns":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"FREEZE_COLUMNS","TEXT_FREEZE_COLUMNS");break;case"sort-asc":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"SORT_ASCENDING","TEXT_SORT_ASCENDING");break;case"sort-desc":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"SORT_DESCENDING","TEXT_SORT_DESCENDING");break;case"hide":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"HIDE_COLUMN","TEXT_HIDE_COLUMN")}t.sharedService.gridOptions&&t.sharedService.gridOptions.enableTranslate&&t.extensionUtility.translateItems(i,"titleKey","title")}))}}))},e.prototype.clearColumnFilter=function(e,t){t&&t.column&&this.filterService.clearFilterByColumnId(e,t.column.id)},e.prototype.clearColumnSort=function(e,t){t&&t.column&&this.sharedService&&this.sortService.clearSortByColumnId(e,t.column.id)},e.prototype.executeHeaderMenuInternalCommands=function(e,t){if(t&&t.command)switch(t.command){case"hide":this.hideColumn(t.column),this.sharedService.gridOptions&&this.sharedService.gridOptions.enableAutoSizeColumns&&this.sharedService.slickGrid.autosizeColumns();break;case"clear-filter":this.clearColumnFilter(e,t);break;case"clear-sort":this.clearColumnSort(e,t);break;case"freeze-columns":var i=He(this.sharedService.visibleColumns),r=i.findIndex((function(e){return e.id===t.column.id}));this.sharedService.slickGrid.setOptions({frozenColumn:r,enableMouseWheelScrollHandler:!0}),this.sharedService.frozenVisibleColumnId=t.column.id,Array.isArray(i)&&Array.isArray(this.sharedService.allColumns)&&i.length!==this.sharedService.allColumns.length&&this.sharedService.slickGrid.setColumns(i);break;case"sort-asc":case"sort-desc":var n="sort-asc"===t.command;this.sortColumn(e,t,n)}},e.prototype.sortColumn=function(e,t,i){if(void 0===i&&(i=!0),t&&t.column){var r=t.column,n=this.sortService.getCurrentColumnSorts(r.id+""),o=c.EmitterType.local;if(n.push({columnId:r.id,sortCol:r,sortAsc:i}),this.sharedService.gridOptions.backendServiceApi)this.sortService.onBackendSortChanged(e,{multiColumnSort:!0,sortCols:n,grid:this.sharedService.slickGrid}),o=c.EmitterType.remote;else if(this.sharedService.dataView)this.sortService.onLocalSortChanged(this.sharedService.slickGrid,n),o=c.EmitterType.local;else{var a=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.multiColumnSort||!1?n:n[0];t.grid.onSort.notify(a)}var l=n.map((function(e){return{columnId:e&&e.sortCol&&e.sortCol.id,sortAsc:e&&e.sortAsc}}));if(this.sharedService.slickGrid.setSortColumns(l),o){var d=[];l.forEach((function(e){d.push({columnId:e.columnId+"",direction:e.sortAsc?"ASC":"DESC"})})),this.sortService.emitSortChanged(o,d)}}},e}(),Fe=function(){function e(){}return e.prototype.dispose=function(){throw new Error('[Slickgrid-Universal] RowDetailViewExtension "dispose" method is not yet implemented')},e.prototype.create=function(e,t){throw new Error('[Slickgrid-Universal] RowDetailViewExtension "create" method is not yet implemented')},e.prototype.getAddonInstance=function(){throw new Error('[Slickgrid-Universal] RowDetailViewExtension "getAddonInstance" method is not yet implemented')},e.prototype.register=function(e){throw new Error('[Slickgrid-Universal] RowDetailViewExtension "register" method is not yet implemented')},e}(),Ue=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(){var e;this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&(this._addon.destroy(),this._addon=null),(null===(e=this._rowSelectionPlugin)||void 0===e?void 0:e.destroy)&&this._rowSelectionPlugin.destroy()},e.prototype.create=function(e,t){var i,r;if(Array.isArray(e)&&t){this._addon=this.loadAddonWhenNotExists(e,t);var n=null===(i=this._addon)||void 0===i?void 0:i.getColumnDefinition(),o=Array.isArray(e)&&e.find((function(e){return e&&"selectAndMove"===e.behavior})),a=o||n;if("object"==typeof a&&(a.excludeFromExport=!0,a.excludeFromColumnPicker=!0,a.excludeFromGridMenu=!0,a.excludeFromQuery=!0,a.excludeFromHeaderMenu=!0),!o&&a){var l=(null===(r=null==t?void 0:t.rowMoveManager)||void 0===r?void 0:r.columnIndexPosition)||0;l>0?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(c.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(c.ExtensionName.rowMoveManager),e&&this.sharedService.slickGrid.getSelectionModel()||(this.extensionUtility.loadExtensionDynamically(c.ExtensionName.rowSelection),e=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this.sharedService.slickGrid.setSelectionModel(e)),this._rowSelectionPlugin=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 i=this._addon.onBeforeMoveRows;i&&this._eventHandler.subscribe(i,(function(e,i){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows&&t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows(e,i)}));var r=this._addon.onMoveRows;r&&this._eventHandler.subscribe(r,(function(e,i){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onMoveRows&&t.sharedService.gridOptions.rowMoveManager.onMoveRows(e,i)}))}return this._addon}return null},e}(),Qe=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&(this._addon.destroy(),this._addon=null)},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}(),Ve=(i(44),i(46),function(e,t,i){if(i&&Array.isArray(i)&&i.length>0){var r=i.join(", ");return''+r+""}return i}),Te=function(e,t,i){var r=i;return null==i&&(r=""),"
"+r+"
"},qe=function(e,t,i,r,n){if(!r)return"";var o=r.params||{},a=o&&o.complexFieldLabel||r.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 r.labelKey&&n.hasOwnProperty(a)?n[a]&&n[a][r.labelKey]:"string"==typeof a&&a.indexOf(".")>0?a.split(".").reduce((function(e,t){return e&&e.hasOwnProperty(t)?e[t]:i}),n):i},ze=i(13);function Oe(e,t,i,r){var n=i&&"function"==typeof i.getOptions?i.getOptions():{},o=t&&t.params;return o&&o.hasOwnProperty(e)?o[e]:n.formatterOptions&&n.formatterOptions.hasOwnProperty(e)?n.formatterOptions[e]:r}function We(e,t){var i=Object(o.mapMomentDateFormatWithFieldType)(e);return function(e,r,n,a,l,c){var d,s,_,u,A,p=c&&"function"==typeof c.getOptions?c.getOptions():{},m=null!==(s=null===(d=null==p?void 0:p.formatterOptions)||void 0===d?void 0:d.dateSeparator)&&void 0!==s?s:t,g=null!==(_=null==a?void 0:a.type)&&void 0!==_?_:"date",C=Object(o.mapMomentDateFormatWithFieldType)(g),f=null!==(A=null===(u=null==a?void 0:a.params)||void 0===u?void 0:u.parseDateAsUtc)&&void 0!==A&&A,h=ze(n,C,!1).isValid(),B=n;if(n&&h&&(B=f?ze.utc(n).format(i):ze(n).format(i)),B&&m!==t){var b=new RegExp(t,"ig");B=B.replace(b,m)}return B}}var Ge={alignCenter:Te,alignRight:function(e,t,i){var r=i;return null==i&&(r=""),'
'+r+"
"},arrayObjectToCsv:function(e,t,i,r,n){var o=r&&r.params||{},a=o.propertyNames,l=o.dataContextProperty;if(l||(l=r&&r.field&&r.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(n[l]&&Array.isArray(n[l])&&Array.isArray(n[l])&&n[l].length>0){var c=[];n[l].forEach((function(e){var t=[];a.forEach((function(i){t.push(e[i])})),c.push(t.join(" "))}));var d=c.join(", ");return''+d+""}return i},arrayToCsv:Ve,bold:function(e,t,i){return i?""+i+"":""},center:Te,checkbox:function(e,t,i){return i?"☑":""},checkmark:function(e,t,i){var r=!1,n=null!=i&&""!==i&&!isNaN(+i);return n&&(i=+i),(!0===i||n&&+i>0||"string"==typeof i&&i.length>0&&"false"!==i.toLowerCase()&&"0"!==i)&&(r=!0),r?'':""},checkmarkMaterial:function(e,t,i){var r=!1,n=null!=i&&""!==i&&!isNaN(+i);return n&&(i=+i),(!0===i||n&&+i>0||"string"==typeof i&&i.length>0&&"false"!==i.toLowerCase()&&"0"!==i)&&(r=!0),r?'':""},complex:qe,complexObject:qe,collection:function(e,t,i,r,n,o){if(!(i&&r&&r.params&&r.params.collection&&r.params.collection.length))return i;var a=r.params,l=r.params.collection,c=a.customStructure?a.customStructure.label:"label",d=a.customStructure?a.customStructure.value:"value";return Array.isArray(i)?Ve(0,0,i.map((function(e){return Object(R.t)(l,(function(t){return t[d]===e}))[c]}))):Object(R.t)(l,(function(e){return e[d]===i}))[c]||""},collectionEditor:function(e,t,i,r,n,o){if(!(i&&r&&r.internalColumnEditor&&r.internalColumnEditor.collection&&r.internalColumnEditor.collection.length))return i;var a=r.internalColumnEditor,l=r.internalColumnEditor.collection,c=a.customStructure?a.customStructure.label:"label",d=a.customStructure?a.customStructure.value:"value";return Array.isArray(i)?l.every((function(e){return"string"==typeof e}))?Ve(0,0,i.map((function(e){return Object(R.t)(l,(function(t){return t===e}))}))):Ve(0,0,i.map((function(e){return Object(R.t)(l,(function(t){return t[d]===e}))[c]}))):Object(R.t)(l,(function(e){return e[d]===i}))[c]||""},dateIso:We(c.FieldType.dateIso,"-"),dateTimeIso:We(c.FieldType.dateTimeIso,"-"),dateTimeShortIso:We(c.FieldType.dateTimeShortIso,"-"),dateTimeIsoAmPm:We(c.FieldType.dateTimeIsoAmPm,"-"),dateEuro:We(c.FieldType.dateEuro,"/"),dateTimeEuro:We(c.FieldType.dateTimeEuro,"/"),dateTimeShortEuro:We(c.FieldType.dateTimeShortEuro,"/"),dateTimeEuroAmPm:We(c.FieldType.dateTimeEuroAmPm,"/"),dateUs:We(c.FieldType.dateUs,"/"),dateTimeUs:We(c.FieldType.dateTimeUs,"/"),dateTimeShortUs:We(c.FieldType.dateTimeShortUs,"/"),dateTimeUsAmPm:We(c.FieldType.dateTimeUsAmPm,"/"),deleteIcon:function(){return''},decimal:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a,2),d=Oe("maxDecimal",r,a,2),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?Object(o.formatNumber)(i,c,d,u,"","",s,_):i},dollar:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a,2),d=Oe("maxDecimal",r,a,4),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?Object(o.formatNumber)(i,c,d,u,"$","",s,_):i},dollarColored:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a,2),d=Oe("maxDecimal",r,a,4),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?''+Object(o.formatNumber)(i,c,d,u,"$","",s,_)+"":i},dollarColoredBold:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a,2),d=Oe("maxDecimal",r,a,4),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?''+Object(o.formatNumber)(i,c,d,u,"$","",s,_)+"":i},editIcon:function(){return''},fakeHyperlink:function(e,t,i){return i?''+i+"":""},hyperlink:function(e,t,i,r,n,a){var l=r&&r.params||{},c=a&&"function"==typeof a.getOptions?a.getOptions():{},d=l.hyperlinkText?l.hyperlinkText:i;d=Object(o.sanitizeTextByAvailableSanitizer)(c,d);var s=l.hyperlinkUrl?l.hyperlinkUrl:i,_=(s=Object(o.sanitizeTextByAvailableSanitizer)(c,s)).match(/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/i);return _&&Array.isArray(_)&&_.length>0?''+d+"":i},icon:function(e,t,i,r){var n=r&&r.params||{},o=n.icon||n.formatterIcon;if(!o)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(){return''},italic:function(e,t,i){return i?""+i+"":""},lowercase:function(e,t,i){return void 0!==i&&"string"!=typeof i&&(i+=""),i?i.toLowerCase():""},mask:function(e,t,i,r){var n=(r.params||{}).mask;if(!n)throw new Error('You must provide a "mask" via the generic "params" options (e.g.: { formatter: Formatters.mask, params: { mask: \'000-000\' }}');if(i){var o=0,a=i.toString();return n.replace(/[09A]/gi,(function(){return a[o++]||""}))}return i},multiple:function(e,t,i,r,n,o){var a=r.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=i,c=0,d=a.formatters;c'+(i>100?"100%":p)+""}return i},percentCompleteBar:function(e,t,i){if(!(null!=i&&""!==i&&!isNaN(+i)))return"";var r=parseFloat(i);return r>100&&(r=100),''},percentCompleteBarWithText:function(e,t,i){if(!(null!=i&&""!==i&&!isNaN(+i)))return"";var r=parseFloat(i);return r>100&&(r=100),'
'+r+"%
"},percentSymbol:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a),d=Oe("maxDecimal",r,a),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?Object(o.formatNumber)(i,c,d,u,"","%",s,_):i},progressBar:function(e,t,i){if(!(null!=i&&""!==i&&!isNaN(+i)))return"";var r="",n=parseFloat(i);return n>100&&(n=100),('
\n
\n '+n+"%\n
\n
").replace(/\s{2,}/g," ").trim()},translate:function(e,t,i,r,n,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).translater||r&&r.params&&r.params.translater;if(!a||"function"!=typeof a.translate)throw new Error('"Formatters.translate" requires the Translate Service to be provided as a Grid Options "translater" (or "i18n" depending on which framework you use).\n For example: this.gridOptions = { enableTranslate: true, translater: this.translateService }');return null!=i&&"string"!=typeof i&&(i+=""),i?a.translate(i):""},translateBoolean:function(e,t,i,r,n,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).translater||r&&r.params&&r.params.translater;if(!a||"function"!=typeof a.translate)throw new Error('"Formatters.translateBoolean" requires the Translate Service to be provided as a Grid Options "translater" (or "i18n" depending on which framework you use).\n For example: this.gridOptions = { enableTranslate: true, translater: this.translateService }');return null!=i&&"string"!=typeof i&&(i+=""),i?a.translate(i.toUpperCase()):""},tree:function(e,t,i,r,n,a){var l=null==a?void 0:a.getData(),c=null==a?void 0:a.getOptions(),d=null==c?void 0:c.treeDataOptions,s=(null==d?void 0:d.levelPropName)||"__treeLevel",_=(null==d?void 0:d.indentMarginLeft)||15,u=i;if("function"==typeof r.queryFieldNameGetterFn){var A=r.queryFieldNameGetterFn(n);u=(null==A?void 0:A.indexOf("."))>=0?Object(o.getDescendantProperty)(n,A):n.hasOwnProperty(A)?n[A]:i}if(null==u||void 0===n)return"";if(!n.hasOwnProperty(s))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(l&&l.getIdxById&&l.getItemByIdx){"string"==typeof u&&(u=Object(o.htmlEncode)(u));var p=l.getIdPropertyName()||"id",m='',g=l.getIdxById(n[p]),C=l.getItemByIdx((g||0)+1);return C&&C[s]>n[s]?n.__collapsed?m+' '+u:m+' '+u:m+' '+u}return""},uppercase:function(e,t,i){return void 0!==i&&"string"!=typeof i&&(i+=""),i?i.toUpperCase():""},yesNo:function(e,t,i){return i?"Yes":"No"}},Ye={avgTotals:function(e,t,i){var r=t.field||"",n=e.avg&&e.avg[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);if(null!==n&&!isNaN(+n)){if(n<0){if(n=Math.abs(n),A)return isNaN(d)&&isNaN(s)?l+"("+Object(o.thousandSeparatorFormatted)(Math.round(n),u)+")"+c:l+"("+Object(o.decimalFormatted)(n,d,s,_,u)+")"+c;l+="-"}return isNaN(d)&&isNaN(s)?""+l+Object(o.thousandSeparatorFormatted)(Math.round(n),u)+c:""+l+Object(o.decimalFormatted)(n,d,s,_,u)+c}return""},avgTotalsDollar:function(e,t,i){var r=t.field||"",n=e.avg&&e.avg[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c},avgTotalsPercentage:function(e,t,i){var r=t.field||"",n=e.avg&&e.avg[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);if(null!==n&&!isNaN(+n)){if(n<0){if(n=Math.abs(n),A)return isNaN(d)&&isNaN(s)?l+"("+Object(o.thousandSeparatorFormatted)(Math.round(n),u)+"%)"+c:l+"("+Object(o.decimalFormatted)(n,d,s,_,u)+"%)"+c;l+="-"}return isNaN(d)&&isNaN(s)?""+l+Object(o.thousandSeparatorFormatted)(Math.round(n),u)+"%"+c:""+l+Object(o.decimalFormatted)(n,d,s,_,u)+"%"+c}return""},maxTotals:function(e,t,i){var r=t.field||"",n=e.max&&e.max[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c},minTotals:function(e,t,i){var r=t.field||"",n=e.min&&e.min[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c},sumTotals:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c},sumTotalsBold:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c+""},sumTotalsColored:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":''+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c+""},sumTotalsDollar:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c},sumTotalsDollarBold:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c+""},sumTotalsDollarColored:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":''+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c+""},sumTotalsDollarColoredBold:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":''+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c+""}},Ze=i(39),Ke=(i(45),function(){this.options=I}),je=function(){return(je=Object.assign||function(e){for(var t,i=1,r=arguments.length;i":">",'"':""","'":"'"};return(e||"").toString().replace(/[&<>"']/g,(function(e){return t[e]}))}function h(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}))}function B(e,t){var i=e.length,r=f(e);if(i0&&(l+=".");l.length-l.indexOf(".")<=o;)l+="0";var c,d,s=l.split(".");c=n?s.length>=1?H(s[0],n):void 0:s.length>=1?s[0]:l,s.length>1&&(d=s[1]);var _="";return void 0!==c&&void 0!==d?_=""+c+r+d:null!=c&&(_=c),_}function x(e){if(e)for(var t=0,i=Object.keys(e);t":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 P(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 N(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 M(e){return/(true|1)/i.test(e+"")}function $(e,t){var i="";if("string"==typeof e&&/^[0-9\-\/]*$/.test(e)){var r=decodeURIComponent(e),n=l(new Date(r));n.isValid()&&4===n.year().toString().length&&(i=t?n.utc().format():n.format())}return i}function S(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}function L(e,t,i){var r=t;return e&&"function"==typeof e.sanitizer?r=e.sanitizer(t||""):"function"==typeof a.sanitize&&(r=(a.sanitize(t||"",i||{})||"").toString()),r}function I(e,t,i){if("string"==typeof t&&(t=t.split(".")),t.length>1){var r=t.shift();e&&void 0!==r&&I(e[r]="[object Object]"===Object.prototype.toString.call(e[r])?e[r]:{},t,i)}else e&&t[0]&&(e[t[0]]=i)}function H(e,t){if(void 0===t&&(t=","),null!=e){var i=""+e,r=i.split(".");return 2===r.length?r[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+"."+r[1]:i.replace(/\B(?=(\d{3})+(?!\d))/g,t)}return e}function R(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 F(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 U(e){return"string"==typeof e?F(e).replace(/([A-Z])/g,"-$1").toLowerCase():e}function Q(e,t,i){if(void 0===i&&(i=!1),!(e&&t&&Array.isArray(e)&&Array.isArray(e)))return!1;if(e.length!==t.length)return!1;!i&&e.sort&&t.sort&&(e.sort(),t.sort());for(var r=0;r0?e.filter((function(t,i){return e.indexOf(t)>=i})):e}function O(e,t){if(void 0===t&&(t="id"),Array.isArray(e)&&e.length>0){for(var i=[],r=new Map,n=0,o=e;n=0?this.searchTerms[0]:"",r=this.buildTemplateHtmlString();this.$filterElm=this.createDomElement(r,i),this.$filterElm.on("input change",(function(e){var i="";if(e&&e.target&&e.target.value){var r=e.target.value,n=t.gridOptions.enableFilterTrimWhiteSpace||t.columnFilter.enableTrimWhiteSpace;"string"==typeof r&&n&&(r=r.trim());var o=t.unmaskValue(r),a=t.maskValue(o);i=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:[i],shouldTriggerQuery:t._shouldTriggerQuery})),t._clearFilterTriggered=!1,t._shouldTriggerQuery=!0}))},t.prototype.maskValue=function(e){var t=0,i="";return this._inputMask&&(i=this._inputMask.replace(/[09A]/gi,(function(i){return(("0"===i||"9"===i)&&/\d+/g.test(e[t])||"A"===i.toUpperCase()&&/[^\d]+/gi.test(e[t]))&&e[t++]||""}))),i},t.prototype.unmaskValue=function(e){for(var t=e.replace(/[^0-9a-z]*/gi,""),i=this._inputMask.replace(/[^0-9a-z]*/gi,""),r="",n=0;nthis._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}(),V=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,n=this.validate(null,t),a=n&&n.valid?t:"";r?Object(o.setDeepValue)(e,i,a):i&&(e[i]=a)}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,i=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||i!==O.a.ENTER)||!(""===t&&(null===this._originalValue||void 0===this._originalValue))&&t!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t&&this._input){var i=(null==t?void 0:t.indexOf("."))>0?Object(o.getDescendantProperty)(e,t):e.hasOwnProperty(t)&&e[t]||"";this._originalValue=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;return null===(e=this._input)||void 0===e?void 0:e.value},e.prototype.validate=function(e,t){var i;if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};var r=void 0!==t?t:this._input&&this._input.value;return Object(W.a)(r,{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minLength:this.columnEditor.minLength,maxLength:this.columnEditor.maxLength,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(i=this.args)||void 0===i?void 0:i.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(Y(Y({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var i,r,n=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(i=this.columnDef)||void 0===i?void 0:i.id)&&void 0!==r?r:"",l=this.args.item,c=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],c.onCompositeEditorChange.notify(Y(Y({},n),{item:l,grid:c,column:o,formValues:t.formValues,editors:t.editors}),Y(Y({},new Slick.EventData),e))},e.prototype.handleOnInputChange=function(e){var t,i,r=this,n=this.args.compositeEditorOptions;if(n){var a=null!==(i=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==i?i:500;Object(o.debounce)((function(){return r.handleChangeOnCompositeEditor(e,n)}),a)()}},e}(),K=i(61),j=i(36),J=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),X=function(e){function t(t){var i=e.call(this,t,!1)||this;return i.args=t,i}return J(t,e),t}(j.a),ee=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),te=function(e){function t(t){var i=e.call(this,t,!0)||this;return i.args=t,i}return ee(t,e),t}(j.a),ie=i(63);function re(e,t){var i=isNaN(e)?null:parseInt(e,10);null!==i&&isNaN(i)&&(i=null);var r=t.errorMessage,n=t.required,o=t.minValue,a=t.maxValue,c=t.operatorConditionalType||"inclusive",d={"{{minValue}}":o,"{{maxValue}}":a},s=!0,_="";if(t.validator)return t.validator(e,t.editorArgs);if(n&&""===e)s=!1,_=r||l.a.VALIDATION_REQUIRED_FIELD;else if(""===e||!isNaN(e)&&/^[+-]?\d+$/.test(e)){if(void 0!==o&&void 0!==a&&null!==i&&("exclusive"===c&&(i<=o||i>=a)||"inclusive"===c&&(ia)))s=!1,_=r||l.a.VALIDATION_EDITOR_INTEGER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return d[e]}));else if(void 0!==o&&null!==i&&("exclusive"===c&&i<=o||"inclusive"===c&&null!==i&&i=a||"inclusive"===c&&null!==i&&i>a)){s=!1;u="inclusive"===c?l.a.VALIDATION_EDITOR_INTEGER_MAX_INCLUSIVE:l.a.VALIDATION_EDITOR_INTEGER_MAX;_=r||u.replace(/{{maxValue}}/gi,(function(e){return d[e]}))}}else s=!1,_=r||l.a.VALIDATION_EDITOR_VALID_INTEGER;return{valid:s,msg:_}}var ne=function(){return(ne=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0,n=this.validate(null,t),a=n&&n.valid?t:"";r?Object(o.setDeepValue)(e,i,a):e[i]=a}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,i=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||i!==c.KeyCode.ENTER)||!(""===t&&(null===this._originalValue||void 0===this._originalValue))&&t!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t&&this._input){var i=(null==t?void 0:t.indexOf("."))>0?Object(o.getDescendantProperty)(e,t):e[t];this._originalValue=isNaN(i)||null==i?i:""+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,t=null===(e=this._input)||void 0===e?void 0:e.value;if(void 0===t||""===t||isNaN(+t))return t;var i=isNaN(+t)?t:parseInt(t,10);return isNaN(+i)?t:i},e.prototype.validate=function(e,t){var i;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:re(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===(i=this.args)||void 0===i?void 0:i.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(ne(ne({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var i,r,n=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(i=this.columnDef)||void 0===i?void 0:i.id)&&void 0!==r?r:"",l=this.args.item,c=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],c.onCompositeEditorChange.notify(ne(ne({},n),{item:l,grid:c,column:o,formValues:t.formValues,editors:t.editors}),ne(ne({},new Slick.EventData),e))},e.prototype.handleOnMouseWheel=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnInputChange=function(e){var t,i,r=this,n=this.args.compositeEditorOptions;if(n){var a=null!==(i=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==i?i:500;Object(o.debounce)((function(){return r.handleChangeOnCompositeEditor(e,n)}),a)()}},e}();function ae(e,t){var i=isNaN(e)?null:parseFloat(e),r=t.decimal||0,n=t.required,o=t.minValue,a=t.maxValue,c=t.operatorConditionalType||"inclusive",d=t.errorMessage,s={"{{minValue}}":o,"{{maxValue}}":a,"{{minDecimal}}":0,"{{maxDecimal}}":r},_=!0,u="";if("function"==typeof t.validator)return t.validator(e,t.editorArgs);if(n&&""===e)_=!1,u=d||l.a.VALIDATION_REQUIRED_FIELD;else if(""!==e&&(isNaN(e)||0===r&&!/^[-+]?(\d*(\.)?(\d)*)$/.test(e)))_=!1,u=d||l.a.VALIDATION_EDITOR_VALID_NUMBER;else if(void 0!==o&&void 0!==a&&null!==i&&("exclusive"===c&&(i<=o||i>=a)||"inclusive"===c&&(ia)))_=!1,u=d||l.a.VALIDATION_EDITOR_NUMBER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return s[e]}));else if(void 0!==o&&null!==i&&("exclusive"===c&&i<=o||"inclusive"===c&&i=a||"inclusive"===c&&i>a)){_=!1;A="inclusive"===c?l.a.VALIDATION_EDITOR_NUMBER_MAX_INCLUSIVE:l.a.VALIDATION_EDITOR_NUMBER_MAX;u=d||A.replace(/{{maxValue}}/gi,(function(e){return s[e]}))}else r>0&&!new RegExp("^[-+]?(\\d*(\\.)?(\\d){0,"+r+"})$").test(e)&&(_=!1,u=d||l.a.VALIDATION_EDITOR_DECIMAL_BETWEEN.replace(/{{minDecimal}}|{{maxDecimal}}/gi,(function(e){return s[e]})));return{valid:_,msg:u}}var le=function(){return(le=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0?"0."+t+"1":"1"},e.prototype.getValue=function(){var e;return(null===(e=this._input)||void 0===e?void 0:e.value)||""},e.prototype.setValue=function(e,t){if(void 0===t&&(t=!1),this._input&&(this._input.value=""+e,t)){this.applyValue(this.args.item,this.serializeValue());var i=this.args.compositeEditorOptions;i&&this.handleChangeOnCompositeEditor(null,i)}},e.prototype.applyValue=function(e,t){var i=this.columnDef&&this.columnDef.field;if(void 0!==i){var r=(null==i?void 0:i.indexOf("."))>0,n=this.validate(null,t),a=n&&n.valid?t:"";r?Object(o.setDeepValue)(e,i,a):e[i]=a}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,i=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||i!==c.KeyCode.ENTER)||!(""===t&&(null===this._originalValue||void 0===this._originalValue))&&t!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(void 0!==t&&e&&void 0!==t&&this._input){var i=(null==t?void 0:t.indexOf("."))>0?Object(o.getDescendantProperty)(e,t):e[t];this._originalValue=i;var r=this.getDecimalPlaces();null!==r&&(this._originalValue||0===this._originalValue)&&(+this._originalValue).toFixed&&(this._originalValue=(+this._originalValue).toFixed(r)),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,t=null===(e=this._input)||void 0===e?void 0:e.value;if(void 0===t||""===t||isNaN(+t))return t;var i=parseFloat(t),r=this.getDecimalPlaces();return null!==r&&(i||0===i)&&i.toFixed&&(i=parseFloat(i.toFixed(r))),i},e.prototype.validate=function(e,t){var i,r;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:ae(void 0!==t?t:null===(i=this._input)||void 0===i?void 0:i.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===(r=this.args)||void 0===r?void 0:r.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},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 i,r,n=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(i=this.columnDef)||void 0===i?void 0:i.id)&&void 0!==r?r:"",l=this.args.item,c=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],c.onCompositeEditorChange.notify(le(le({},n),{item:l,grid:c,column:o,formValues:t.formValues,editors:t.editors}),le(le({},new Slick.EventData),e))},e.prototype.handleOnMouseWheel=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnInputChange=function(e){var t,i,r=this,n=this.args.compositeEditorOptions;if(n){var a=null!==(i=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==i?i:500;Object(o.debounce)((function(){return r.handleChangeOnCompositeEditor(e,n)}),a)()}},e}(),de=i(64),se=function(){return(se=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0,n=this.validate(null,t),a=n&&n.valid?t:"";r?Object(o.setDeepValue)(e,i,a):e[i]=a}},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&&this._input){var i=(null==t?void 0:t.indexOf("."))>0?Object(o.getDescendantProperty)(e,t):e[t];this._originalValue=i,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(){var e,t;return null!==(t=null===(e=this._input)||void 0===e?void 0:e.checked)&&void 0!==t&&t},e.prototype.validate=function(e,t){var i,r,n=!(null===(i=this.args)||void 0===i?void 0:i.compositeEditorOptions)&&this.columnEditor.required,o=void 0!==t?t:null===(r=this._input)||void 0===r?void 0:r.checked,a=this.columnEditor.errorMessage;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:this.validator?this.validator(o,this.args):n&&!o?{valid:!1,msg:a||l.a.VALIDATION_REQUIRED_FIELD}:{valid:!0,msg:null}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(se(se({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var i,r,n=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(i=this.columnDef)||void 0===i?void 0:i.id)&&void 0!==r?r:"",l=this.args.item,c=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],c.onCompositeEditorChange.notify(se(se({},n),{item:l,grid:c,column:o,formValues:t.formValues,editors:t.editors}),se(se({},new Slick.EventData),e))},e}(),ue=i(65),Ae=(i(62),function(){return(Ae=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0,a=r;if(n){var l=r.split(/\.(.*)/);a=l.length>1?l[1]:l}var c=n?Object(o.getDescendantProperty)(t,a):t[r],d=this.validate(null,{position:i,inputValue:c});if(n){var s=Object(o.getDescendantProperty)(t,a),_=d&&d.valid?s:"";Object(o.setDeepValue)(e,r,_)}else r&&(e[r]=d&&d.valid?t[r]:"")}},e.prototype.isValueChanged=function(){var e=this._leftInput.value,t=this._rightInput.value,i=this.editorParams&&this.editorParams.leftInput,r=this.editorParams&&this.editorParams.rightInput,n=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;if((i&&i.alwaysSaveOnEnterKey||r&&r.alwaysSaveOnEnterKey)&&n===O.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 i="leftInput"===t?this._leftFieldName:this._rightFieldName,r="leftInput"===t?"_originalLeftValue":"_originalRightValue",n="leftInput"===t?"_leftInput":"_rightInput";if(e&&void 0!==i){var a=(null==i?void 0:i.indexOf("."))>0?Object(o.getDescendantProperty)(e,i):e.hasOwnProperty(i)?e[i]:"";if(this[r]=a,"float"===this.editorParams[t].type){var l=this.getDecimalPlaces(t);null!==l&&(this[r]||0===this[r])&&(+this[r]).toFixed&&(this[r]=(+this[r]).toFixed(l))}this[n]&&(this[n].value=""+this[r])}},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"),i=this.serializeValueByPosition("rightInput");return Object(o.setDeepValue)(e,this._leftFieldName,t),Object(o.setDeepValue)(e,this._rightFieldName,i),e},e.prototype.serializeValueByPosition=function(e){var t="leftInput"===e?this._leftInput.value:this._rightInput.value;if(""===t||isNaN(+t))return t;var i=parseFloat(t),r=this.getDecimalPlaces(e);return null!==r&&(i||0===i)&&i.toFixed&&(i=parseFloat(i.toFixed(r))),i},e.prototype.getDecimalPlaces=function(e){var t="leftInput"===e?"leftInput":"rightInput",i=this.editorParams[t],r=null==i?void 0:i.decimal;return void 0===r?0:r},e.prototype.getInputDecimalSteps=function(e){for(var t=this.getDecimalPlaces(e),i="",r=1;r0?"0."+i+"1":"1"},e.prototype.validate=function(e,t){if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};if(t){var i=this.validateByPosition(t.position,t.inputValue);if(!i.valid)return"leftInput"===t.position?this._leftInput.select():this._rightInput.select(),i}else{var r=this.validateByPosition("leftInput"),n=this.validateByPosition("rightInput");if(!r.valid)return this._leftInput.select(),r;if(!n.valid)return this._rightInput.select(),n}return{valid:!0,msg:""}},e.prototype.validateByPosition=function(e,t){var i,r=this.editorParams[e],n="";if(t)n=t;else{var o="leftInput"===e?this._leftInput:this._rightInput;n=o&&o.value}var a=this.validator;n="function"==typeof a?this.getValues():n;var l={editorArgs:this.args,errorMessage:r.errorMessage,required:!(null===(i=this.args)||void 0===i?void 0:i.compositeEditorOptions)&&r.required,validator:"function"==typeof a?a:r.validator};switch(r.type){case"float":return ae(n,Ae(Ae({},l),{decimal:this.getDecimalPlaces(e),minValue:r.minValue,maxValue:r.maxValue,operatorConditionalType:r.operatorConditionalType}));case"integer":return re(n,Ae(Ae({},l),{minValue:r.minValue,maxValue:r.maxValue,operatorConditionalType:r.operatorConditionalType}));case"text":case"password":default:return Object(W.a)(n,l)}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(Ae(Ae({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var i,r,n,o,a,l,c=this.grid.getActiveCell(),d=this.args.column,s=null!==(n=null===(r=null===(i=this.columnEditor.params)||void 0===i?void 0:i.leftInput)||void 0===r?void 0:r.field)&&void 0!==n?n:"",_=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:"",u=this.args.item,A=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(s)&&delete t.formValues[s],this.disabled&&t.formValues.hasOwnProperty(_)&&delete t.formValues[_],A.onCompositeEditorChange.notify(Ae(Ae({},c),{item:u,grid:A,column:d,formValues:t.formValues,editors:t.editors}),Ae(Ae({},new Slick.EventData),e))},e.prototype.handleChangeOnCompositeEditorDebounce=function(e){var t,i,r,n=this,a=null===(t=this.args)||void 0===t?void 0:t.compositeEditorOptions;if(a){var l=null!==(r=null===(i=this.gridOptions)||void 0===i?void 0:i.editorTypingDebounce)&&void 0!==r?r:500;Object(o.debounce)((function(){return n.handleChangeOnCompositeEditor(e,a)}),l)()}},e}(),me={autoComplete:de.a,checkbox:_e,date:ue.a,dualInput:pe,float:ce,integer:oe,longText:ie.a,multipleSelect:te,singleSelect:X,slider:K.a,text:Z},ge=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&(this._addon.destroy(),this._addon=null)},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){if(this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){this.extensionUtility.loadExtensionDynamically(c.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,i=1,r=arguments.length;i=e._commandQueue.length)){var i=e._commandQueue[t];t++,i&&Slick.GlobalEditorLock.cancelCurrentEdit()&&i.execute()}}}},e.prototype.getDefaultOptions=function(){var e=this,t=0;return{clipboardCommandHandler:function(t){e._undoRedoBuffer.queueAndExecuteCommand.call(e._undoRedoBuffer,t)},dataItemColumnValueExtractor:function(t,i){if(!e.sharedService.gridOptions.editable||!i.editor){var r=e.sharedService.gridOptions.exportOptions||e.sharedService.gridOptions.textExportOptions,n=void 0!==i.exportWithFormatter?i.exportWithFormatter:null==r?void 0:r.exportWithFormatter;if(i.formatter&&n){var a=i.formatter(0,0,t[i.field],i,t,e.sharedService.slickGrid);if(i.sanitizeDataExport||(null==r?void 0:r.sanitizeDataExport)){var l=a;return a&&"object"==typeof a&&a.hasOwnProperty("text")&&(l=a.text),null===l&&(l=""),Object(o.sanitizeHtmlToText)(l)}return a}}return null},readOnlyMode:!1,includeHeaderWhenCopying:!1,newRowCreator:function(i){for(var r=0;r0?e.splice(n,0,r):e.unshift(r)}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||[])})),this._rowSelectionPlugin=e,e):null},e}(),we=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(),this.extensionUtility.nullifyFunctionNameStartingWithOn(this._columnPicker),this._addon=null},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"),i=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),r=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","columnPicker");if(this._columnPicker=this.sharedService.gridOptions.columnPicker||{},this.sharedService.gridOptions.columnPicker=this._columnPicker,this._columnPicker.columnTitle=this._columnPicker.columnTitle||t,this._columnPicker.forceFitTitle=this._columnPicker.forceFitTitle||i,this._columnPicker.syncResizeTitle=this._columnPicker.syncResizeTitle||r,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._columnPicker.onExtensionRegistered&&this._columnPicker.onExtensionRegistered(this._addon);var n=this._addon.onColumnsChanged;this._eventHandler.subscribe(n,(function(t,i){var r;e._columnPicker&&"function"==typeof e._columnPicker.onColumnsChanged&&e._columnPicker.onColumnsChanged(t,i),i&&Array.isArray(i.columns)&&i.columns.length!==e.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=i.columns);var n=null!==(r=e.sharedService.gridOptions.frozenColumn)&&void 0!==r?r:-1;if(n>=0){var o=i.showing,a=i.columnId,l=i.allColumns,c=i.columns;e.extensionUtility.readjustFrozenColumnIndexWhenNeeded(a,n,o,l,c)}}))}return this._addon}return null},e.prototype.translateColumnPicker=function(){var e;this._columnPicker&&(this.emptyColumnPickerTitles(),this._columnPicker.columnTitle=this.extensionUtility.getPickerTitleOutputString("columnTitle","columnPicker"),this._columnPicker.forceFitTitle=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),this._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)&&this._columnPicker&&this._addon.updateAllTitles(this._columnPicker)},e.prototype.emptyColumnPickerTitles=function(){this._columnPicker&&(this._columnPicker.columnTitle="",this._columnPicker.forceFitTitle="",this._columnPicker.syncResizeTitle="")},e}(),ve=i(58),ke=function(){return(ke=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0}})}if(n&&a&&!a.hideCollapseAllGroups){e.find((function(e){return e.hasOwnProperty("command")&&"collapse-all-groups"===e.command}))||r.push({iconCssClass:a.iconCollapseAllGroupsCommand||"fa fa-compress",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"COLLAPSE_ALL_GROUPS","TEXT_COLLAPSE_ALL_GROUPS"),disabled:!1,command:"collapse-all-groups",positionOrder:56,action:function(){n.enableTreeData?i.treeDataService.toggleTreeDataCollapse(!0):l.collapseAllGroups()},itemUsabilityOverride:function(){if(n.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}if(n&&a&&!a.hideExpandAllGroups){e.find((function(e){return e.hasOwnProperty("command")&&"expand-all-groups"===e.command}))||r.push({iconCssClass:a.iconExpandAllGroupsCommand||"fa fa-expand",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"EXPAND_ALL_GROUPS","TEXT_EXPAND_ALL_GROUPS"),disabled:!1,command:"expand-all-groups",positionOrder:57,action:function(){n.enableTreeData?i.treeDataService.toggleTreeDataCollapse(!1):l.expandAllGroups()},itemUsabilityOverride:function(){if(n.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}}return r},e.prototype.copyToClipboard=function(e){try{if(e&&e.grid&&e.command){var t=this.sharedService&&this.sharedService.gridOptions||{},i=e&&e.cell||0,r=e&&e.row||0,n=e&&e.column,o=e&&e.dataContext,a=this.sharedService&&this.sharedService.slickGrid,l=t&&(t.excelExportOptions||t.exportOptions||t.textExportOptions),c=Object(ve.a)(r,i,o,n,a,l);"function"==typeof n.queryFieldNameGetterFn&&(c=this.getCellValueFromQueryFieldGetter(n,o));var d=document.createElement("textarea");if(d&&document.body)d.style.position="absolute",d.style.left="-1000px",d.style.top="-1000px",d.value=c,document.body.appendChild(d),d.select(),document.execCommand("copy",!1,c)&&d.remove()}}catch(e){}},e.prototype.getCellValueFromQueryFieldGetter=function(e,t){var i="";if("function"==typeof e.queryFieldNameGetterFn){var r=e.queryFieldNameGetterFn(t);i=(null==r?void 0:r.indexOf("."))>=0?Object(o.getDescendantProperty)(t,r):t[r]}return i},e}(),De=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(),this.extensionUtility.nullifyFunctionNameStartingWithOn(this._draggableGroupingOptions),this._addon=null,this._draggableGroupingOptions=null},e.prototype.create=function(e){return e?(this.extensionUtility.loadExtensionDynamically(c.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._draggableGroupingOptions=this.sharedService.gridOptions.draggableGrouping,this._addon&&this._draggableGroupingOptions.onExtensionRegistered&&this._draggableGroupingOptions.onExtensionRegistered(this._addon),this._addon&&this._addon.onGroupChanged)){var t=this._addon.onGroupChanged;this._eventHandler.subscribe(t,(function(t,i){e._draggableGroupingOptions&&"function"==typeof e._draggableGroupingOptions.onGroupChanged&&e._draggableGroupingOptions.onGroupChanged(t,i)}))}return this._addon}return null},e}(),Pe=function(){function e(e,t){this.sharedService=e,this.translaterService=t}return e.prototype.loadExtensionDynamically=function(e){try{switch(e){case he.a.autoTooltip:i(211);break;case he.a.cellExternalCopyManager:i(212);break;case he.a.checkboxSelector:i(213);break;case he.a.cellMenu:i(214);break;case he.a.columnPicker:i(215);break;case he.a.contextMenu:i(216);break;case he.a.draggableGrouping:i(217);break;case he.a.gridMenu:i(218);break;case he.a.groupItemMetaProvider:i(219);break;case he.a.headerButton:i(220);break;case he.a.headerMenu:i(221);break;case he.a.rowSelection:i(222);break;case he.a.rowDetailView:i(223);break;case he.a.rowMoveManager:i(224)}}catch(e){}},e.prototype.getPickerTitleOutputString=function(e,t){var i,r,n,a,c,d,s,_,u;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 A="",p=this.sharedService.gridOptions&&this.sharedService.gridOptions[t]||{},m=this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate||!1,g=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.locales||l.a.locales,C=p&&p[e],f=p&&p[e+"Key"],h=this.sharedService.gridOptions,B=Object(o.getTranslationPrefix)(h);if(f&&(null===(i=this.translaterService)||void 0===i?void 0:i.translate))A=this.translaterService.translate(f||" ");else switch(e){case"customTitle":A=C||m&&(null===(r=this.translaterService)||void 0===r?void 0:r.getCurrentLanguage)&&(null===(n=this.translaterService)||void 0===n?void 0:n.translate(B+"COMMANDS"||!1))||(null==g?void 0:g.TEXT_COMMANDS);break;case"columnTitle":A=C||m&&(null===(a=this.translaterService)||void 0===a?void 0:a.getCurrentLanguage)&&(null===(c=this.translaterService)||void 0===c?void 0:c.translate(B+"COLUMNS"||!1))||(null==g?void 0:g.TEXT_COLUMNS);break;case"forceFitTitle":A=C||m&&(null===(d=this.translaterService)||void 0===d?void 0:d.getCurrentLanguage)&&(null===(s=this.translaterService)||void 0===s?void 0:s.translate(B+"FORCE_FIT_COLUMNS"||!1))||(null==g?void 0:g.TEXT_FORCE_FIT_COLUMNS);break;case"syncResizeTitle":A=C||m&&(null===(_=this.translaterService)||void 0===_?void 0:_.getCurrentLanguage)&&(null===(u=this.translaterService)||void 0===u?void 0:u.translate(B+"SYNCHRONOUS_RESIZE"||!1))||(null==g?void 0:g.TEXT_SYNCHRONOUS_RESIZE);break;default:A=C}return A},e.prototype.nullifyFunctionNameStartingWithOn=function(e){if(e)for(var t=0,i=Object.keys(e);t=0&&e){var a=0;if(i){var l=n.findIndex((function(e){return e.id===o.sharedService.frozenVisibleColumnId}));a=(c=n.findIndex((function(t){return t.id===e})))>=0&&(t>=c||l===c)?1:0}else{var c;a=(c=r.findIndex((function(t){return t.id===e})))>=0&&t>=c?-1:0}var d=t+a;0!==a&&this.sharedService.slickGrid.setOptions({frozenColumn:d}),Array.isArray(n)&&Array.isArray(r)&&n.length!==r.length&&this.sharedService.slickGrid.setColumns(n)}},e.prototype.sortItems=function(e,t){Array.isArray(e)&&e.sort((function(e,i){return e&&i&&e.hasOwnProperty(t)&&i.hasOwnProperty(t)?e[t]-i[t]:0}))},e.prototype.translateItems=function(e,t,i){if(Array.isArray(e))for(var r=0,n=e;re.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=i.columns);var n=null!==(r=e.sharedService.gridOptions.frozenColumn)&&void 0!==r?r:-1;if(n>=0){var o=i.showing,a=i.columnId,l=i.allColumns,c=i.columns;e.extensionUtility.readjustFrozenColumnIndexWhenNeeded(a,n,o,l,c)}}));var o=this._addon.onCommand;o&&this._eventHandler.subscribe(o,(function(t,i){e.executeGridMenuInternalCustomCommands(t,i),e._gridMenuOptions&&"function"==typeof e._gridMenuOptions.onCommand&&e._gridMenuOptions.onCommand(t,i)}));var a=this._addon.onMenuClose;a&&this._eventHandler.subscribe(a,(function(t,i){if(e._gridMenuOptions&&"function"==typeof e._gridMenuOptions.onMenuClose&&e._gridMenuOptions.onMenuClose(t,i),e.sharedService.slickGrid&&"function"==typeof e.sharedService.slickGrid.autosizeColumns){var r=e.sharedService.slickGrid.getUID();e._areVisibleColumnDifferent&&r&&null!==document.querySelector("."+r)&&(e.sharedService.gridOptions&&e.sharedService.gridOptions.enableAutoSizeColumns&&e.sharedService.slickGrid.autosizeColumns(),e._areVisibleColumnDifferent=!1)}}))}return this._addon}return null},e.prototype.refreshBackendDataset=function(e){e&&(this.sharedService.gridOptions=Ne(Ne({},this.sharedService.gridOptions),e)),Object(n.refreshBackendDataset)(this.sharedService.gridOptions)},e.prototype.showGridMenu=function(e){this._addon&&this._addon.showGridMenu(e)},e.prototype.translateGridMenu=function(){if(this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.gridMenu){this.sharedService.gridOptions.gridMenu.customItems=[],this.emptyGridMenuTitles();var e=this._userOriginalGridMenu&&Array.isArray(this._userOriginalGridMenu.customItems)?this._userOriginalGridMenu.customItems:[];this.sharedService.gridOptions.gridMenu.customItems=Me(e,this.addGridMenuCustomCommands(e)),this.extensionUtility.translateItems(this.sharedService.gridOptions.gridMenu.customItems,"titleKey","title"),this.extensionUtility.sortItems(this.sharedService.gridOptions.gridMenu.customItems,"positionOrder"),this.sharedService.gridOptions.gridMenu.columnTitle=this.extensionUtility.getPickerTitleOutputString("columnTitle","gridMenu"),this.sharedService.gridOptions.gridMenu.forceFitTitle=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","gridMenu"),this.sharedService.gridOptions.gridMenu.syncResizeTitle=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","gridMenu"),this.extensionUtility.translateItems(this.sharedService.allColumns,"nameKey","name"),this._addon&&this._addon.updateAllTitles&&this._addon.updateAllTitles(this.sharedService.gridOptions.gridMenu)}},e.prototype.addGridMenuCustomCommands=function(e){var t,i,r,n,a=this.sharedService.gridOptions.backendServiceApi||null,l=[],c=this.sharedService.gridOptions,d=Object(o.getTranslationPrefix)(c);if(this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideClearFrozenColumnsCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-frozen-columns"===e.command}))||l.push({iconCssClass:this._gridMenuOptions.iconClearFrozenColumnsCommand||"fa fa-times",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"CLEAR_FROZEN_COLUMNS","TEXT_CLEAR_FROZEN_COLUMNS"),disabled:!1,command:"clear-frozen-columns",positionOrder:49})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableFiltering&&!this.sharedService.hideHeaderRowAfterPageLoad){if(this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideClearAllFiltersCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-filter"===e.command}))||l.push({iconCssClass:this._gridMenuOptions.iconClearAllFiltersCommand||"fa fa-filter text-danger",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"CLEAR_ALL_FILTERS","TEXT_CLEAR_ALL_FILTERS"),disabled:!1,command:"clear-filter",positionOrder:50})}if(this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideToggleFilterCommand){e.find((function(e){return e.hasOwnProperty("command")&&"toggle-filter"===e.command}))||l.push({iconCssClass:this._gridMenuOptions.iconToggleFilterCommand||"fa fa-random",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"TOGGLE_FILTER_ROW","TEXT_TOGGLE_FILTER_ROW"),disabled:!1,command:"toggle-filter",positionOrder:52})}if(a&&this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideRefreshDatasetCommand){e.find((function(e){return e.hasOwnProperty("command")&&"refresh-dataset"===e.command}))||l.push({iconCssClass:this._gridMenuOptions.iconRefreshDatasetCommand||"fa fa-refresh",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"REFRESH_DATASET","TEXT_REFRESH_DATASET"),disabled:!1,command:"refresh-dataset",positionOrder:56})}}if(this.sharedService.gridOptions.showPreHeaderPanel&&this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideTogglePreHeaderCommand){e.find((function(e){return e.hasOwnProperty("command")&&"toggle-preheader"===e.command}))||l.push({iconCssClass:this._gridMenuOptions.iconTogglePreHeaderCommand||"fa fa-random",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"TOGGLE_PRE_HEADER_ROW","TEXT_TOGGLE_PRE_HEADER_ROW"),disabled:!1,command:"toggle-preheader",positionOrder:52})}if(this.sharedService.gridOptions.enableSorting&&this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideClearAllSortingCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-sorting"===e.command}))||l.push({iconCssClass:this._gridMenuOptions.iconClearAllSortingCommand||"fa fa-unsorted text-danger",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"CLEAR_ALL_SORTING","TEXT_CLEAR_ALL_SORTING"),disabled:!1,command:"clear-sorting",positionOrder:51})}if(((null===(t=this.sharedService.gridOptions)||void 0===t?void 0:t.enableExport)||(null===(i=this.sharedService.gridOptions)||void 0===i?void 0:i.enableTextExport))&&this._gridMenuOptions&&!this._gridMenuOptions.hideExportCsvCommand){e.find((function(e){return e.hasOwnProperty("command")&&"export-csv"===e.command}))||l.push({iconCssClass:this._gridMenuOptions.iconExportCsvCommand||"fa fa-download",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"EXPORT_TO_CSV","TEXT_EXPORT_TO_CSV"),disabled:!1,command:"export-csv",positionOrder:53})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableExcelExport&&this._gridMenuOptions&&!this._gridMenuOptions.hideExportExcelCommand){e.find((function(e){return e.hasOwnProperty("command")&&"export-excel"===e.command}))||l.push({iconCssClass:this._gridMenuOptions.iconExportExcelCommand||"fa fa-file-excel-o text-success",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"EXPORT_TO_EXCEL","TEXT_EXPORT_TO_EXCEL"),disabled:!1,command:"export-excel",positionOrder:54})}if(((null===(r=this.sharedService.gridOptions)||void 0===r?void 0:r.enableExport)||(null===(n=this.sharedService.gridOptions)||void 0===n?void 0:n.enableTextExport))&&this._gridMenuOptions&&!this._gridMenuOptions.hideExportTextDelimitedCommand){e.find((function(e){return e.hasOwnProperty("command")&&"export-text-delimited"===e.command}))||l.push({iconCssClass:this._gridMenuOptions.iconExportTextDelimitedCommand||"fa fa-download",title:this.extensionUtility.translateWhenEnabledAndServiceExist(d+"EXPORT_TO_TAB_DELIMITED","TEXT_EXPORT_TO_TAB_DELIMITED"),disabled:!1,command:"export-text-delimited",positionOrder:55})}return this.sharedService&&this.sharedService.gridOptions&&this._gridMenuOptions&&(Array.isArray(l)&&l.length>0||Array.isArray(this._gridMenuOptions.customItems)&&this._gridMenuOptions.customItems.length>0)&&(this._gridMenuOptions.customTitle=this._gridMenuOptions.customTitle||this.extensionUtility.getPickerTitleOutputString("customTitle","gridMenu")),l},e.prototype.executeGridMenuInternalCustomCommands=function(e,t){var i,r=(null===(i=this.sharedService)||void 0===i?void 0:i.externalRegisteredServices)||[];if(t&&t.command)switch(t.command){case"clear-frozen-columns":var n=Me(this.sharedService.visibleColumns);this.sharedService.slickGrid.setOptions({frozenColumn:-1,enableMouseWheelScrollHandler:!1}),Array.isArray(n)&&Array.isArray(this.sharedService.allColumns)&&n.length!==this.sharedService.allColumns.length&&this.sharedService.slickGrid.setColumns(n);break;case"clear-filter":this.filterService.clearFilters(),this.sharedService.dataView.refresh();break;case"clear-sorting":this.sortService.clearSorting(),this.sharedService.dataView.refresh();break;case"export-csv":var o=r.find((function(e){return"TextExportService"===e.className}));if(!(null==o?void 0:o.exportToFile))throw new Error("[Slickgrid-Universal] You must register the TextExportService to properly use Export to File in the Grid Menu. Example:: this.gridOptions = { enableTextExport: true, registerExternalServices: [new TextExportService()] };");o.exportToFile({delimiter:c.DelimiterType.comma,filename:"export",format:c.FileType.csv,useUtf8WithBom:!0});break;case"export-excel":var a=r.find((function(e){return"ExcelExportService"===e.className}));if(!(null==a?void 0:a.exportToExcel))throw new Error("[Slickgrid-Universal] You must register the ExcelExportService to properly use Export to Excel in the Grid Menu. Example:: this.gridOptions = { enableExcelExport: true, registerExternalServices: [new ExcelExportService()] };");a.exportToExcel({filename:"export",format:c.FileType.xlsx});break;case"export-text-delimited":var l=r.find((function(e){return"TextExportService"===e.className}));if(!(null==l?void 0:l.exportToFile))throw new Error("[Slickgrid-Universal] You must register the TextExportService to properly use Export to File in the Grid Menu. Example:: this.gridOptions = { enableTextExport: true, registerExternalServices: [new TextExportService()] };");l.exportToFile({delimiter:c.DelimiterType.tab,filename:"export",format:c.FileType.txt,useUtf8WithBom:!0});break;case"toggle-filter":var d=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showHeaderRow||!1;d=!d,this.sharedService.slickGrid.setHeaderRowVisibility(d),!0===d&&this.sharedService.slickGrid.setColumns(this.sharedService.columnDefinitions);break;case"toggle-toppanel":var s=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showTopPanel||!1;this.sharedService.slickGrid.setTopPanelVisibility(!s);break;case"toggle-preheader":var _=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showPreHeaderPanel||!1;this.sharedService.slickGrid.setPreHeaderPanelVisibility(!_);break;case"refresh-dataset":this.refreshBackendDataset()}},e.prototype.emptyGridMenuTitles=function(){this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.gridMenu&&(this.sharedService.gridOptions.gridMenu.customTitle="",this.sharedService.gridOptions.gridMenu.columnTitle="",this.sharedService.gridOptions.gridMenu.forceFitTitle="",this.sharedService.gridOptions.gridMenu.syncResizeTitle="")},e.prototype.getDefaultGridMenuOptions=function(){return{customTitle:void 0,columnTitle:this.extensionUtility.getPickerTitleOutputString("columnTitle","gridMenu"),forceFitTitle:this.extensionUtility.getPickerTitleOutputString("forceFitTitle","gridMenu"),syncResizeTitle:this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","gridMenu"),iconCssClass:"fa fa-bars",menuWidth:18,customItems:[],hideClearAllFiltersCommand:!1,hideRefreshDatasetCommand:!1,hideToggleFilterCommand:!1}},e}(),Se=function(){function e(e){this.sharedService=e}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&this._addon.destroy(),this._addon=null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){return this.sharedService&&this.sharedService.slickGrid?(this._addon=this.sharedService.groupItemMetadataProvider,this._addon&&this.sharedService.slickGrid.registerPlugin(this._addon),this._addon):null},e}(),Le=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(),this.extensionUtility.nullifyFunctionNameStartingWithOn(this._headerButtonOptions),this._addon=null,this._headerButtonOptions=null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){var e=this;if(this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.extensionUtility.loadExtensionDynamically(c.ExtensionName.headerButton),this._headerButtonOptions=this.sharedService.gridOptions.headerButton||{},this._addon=new Slick.Plugins.HeaderButtons(this._headerButtonOptions),this._addon&&this.sharedService.slickGrid.registerPlugin(this._addon),this._addon&&this.sharedService.slickGrid&&this._headerButtonOptions){this._headerButtonOptions.onExtensionRegistered&&this._headerButtonOptions.onExtensionRegistered(this._addon);var t=this._addon.onCommand;t&&this._eventHandler.subscribe(t,(function(t,i){e._headerButtonOptions&&"function"==typeof e._headerButtonOptions.onCommand&&e._headerButtonOptions.onCommand(t,i)}))}return this._addon}return null},e}(),Ie=function(){return(Ie=Object.assign||function(e){for(var t,i=1,r=arguments.length;i=0&&r>=t&&this.sharedService.slickGrid.setOptions({frozenColumn:r-1});var n=Object(o.arrayRemoveItemByIndex)(i,t);this.sharedService.visibleColumns=n,this.sharedService.slickGrid.setColumns(n),this.pubSubService.publish("onHeaderMenuHideColumns",{columns:n,hiddenColumn:e})}},e.prototype.translateHeaderMenu=function(){this.sharedService.gridOptions&&this.sharedService.gridOptions.headerMenu&&this.resetHeaderMenuTranslations(this.sharedService.visibleColumns)},e.prototype.getDefaultHeaderMenuOptions=function(){return{autoAlignOffset:12,minWidth:140,hideColumnHideCommand:!1,hideSortCommands:!1,title:""}},e.prototype.resetHeaderMenuTranslations=function(e){var t=this,i=this.sharedService.gridOptions,r=Object(o.getTranslationPrefix)(i);e.forEach((function(e){if(e&&e.header&&e.header.menu&&e.header.menu.items&&!e.excludeFromHeaderMenu){var i=e.header.menu.items||[];i.forEach((function(e){if(e.hasOwnProperty("command"))switch(e.command){case"clear-filter":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"REMOVE_FILTER","TEXT_REMOVE_FILTER");break;case"clear-sort":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"REMOVE_SORT","TEXT_REMOVE_SORT");break;case"freeze-columns":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"FREEZE_COLUMNS","TEXT_FREEZE_COLUMNS");break;case"sort-asc":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"SORT_ASCENDING","TEXT_SORT_ASCENDING");break;case"sort-desc":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"SORT_DESCENDING","TEXT_SORT_DESCENDING");break;case"hide":e.title=t.extensionUtility.translateWhenEnabledAndServiceExist(r+"HIDE_COLUMN","TEXT_HIDE_COLUMN")}t.sharedService.gridOptions&&t.sharedService.gridOptions.enableTranslate&&t.extensionUtility.translateItems(i,"titleKey","title")}))}}))},e.prototype.clearColumnFilter=function(e,t){t&&t.column&&this.filterService.clearFilterByColumnId(e,t.column.id)},e.prototype.clearColumnSort=function(e,t){t&&t.column&&this.sharedService&&this.sortService.clearSortByColumnId(e,t.column.id)},e.prototype.executeHeaderMenuInternalCommands=function(e,t){if(t&&t.command)switch(t.command){case"hide":this.hideColumn(t.column),this.sharedService.gridOptions&&this.sharedService.gridOptions.enableAutoSizeColumns&&this.sharedService.slickGrid.autosizeColumns();break;case"clear-filter":this.clearColumnFilter(e,t);break;case"clear-sort":this.clearColumnSort(e,t);break;case"freeze-columns":var i=He(this.sharedService.visibleColumns),r=i.findIndex((function(e){return e.id===t.column.id}));this.sharedService.slickGrid.setOptions({frozenColumn:r,enableMouseWheelScrollHandler:!0}),this.sharedService.frozenVisibleColumnId=t.column.id,Array.isArray(i)&&Array.isArray(this.sharedService.allColumns)&&i.length!==this.sharedService.allColumns.length&&this.sharedService.slickGrid.setColumns(i);break;case"sort-asc":case"sort-desc":var n="sort-asc"===t.command;this.sortColumn(e,t,n)}},e.prototype.sortColumn=function(e,t,i){if(void 0===i&&(i=!0),t&&t.column){var r=t.column,n=this.sortService.getCurrentColumnSorts(r.id+""),o=c.EmitterType.local;if(n.push({columnId:r.id,sortCol:r,sortAsc:i}),this.sharedService.gridOptions.backendServiceApi)this.sortService.onBackendSortChanged(e,{multiColumnSort:!0,sortCols:n,grid:this.sharedService.slickGrid}),o=c.EmitterType.remote;else if(this.sharedService.dataView)this.sortService.onLocalSortChanged(this.sharedService.slickGrid,n),o=c.EmitterType.local;else{var a=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.multiColumnSort||!1?n:n[0];t.grid.onSort.notify(a)}var l=n.map((function(e){return{columnId:e&&e.sortCol&&e.sortCol.id,sortAsc:e&&e.sortAsc}}));if(this.sharedService.slickGrid.setSortColumns(l),o){var d=[];l.forEach((function(e){d.push({columnId:e.columnId+"",direction:e.sortAsc?"ASC":"DESC"})})),this.sortService.emitSortChanged(o,d)}}},e}(),Fe=function(){function e(){}return e.prototype.dispose=function(){throw new Error('[Slickgrid-Universal] RowDetailViewExtension "dispose" method is not yet implemented')},e.prototype.create=function(e,t){throw new Error('[Slickgrid-Universal] RowDetailViewExtension "create" method is not yet implemented')},e.prototype.getAddonInstance=function(){throw new Error('[Slickgrid-Universal] RowDetailViewExtension "getAddonInstance" method is not yet implemented')},e.prototype.register=function(e){throw new Error('[Slickgrid-Universal] RowDetailViewExtension "register" method is not yet implemented')},e}(),Ue=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(){var e;this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&(this._addon.destroy(),this._addon=null),(null===(e=this._rowSelectionPlugin)||void 0===e?void 0:e.destroy)&&this._rowSelectionPlugin.destroy()},e.prototype.create=function(e,t){var i,r;if(Array.isArray(e)&&t){this._addon=this.loadAddonWhenNotExists(e,t);var n=null===(i=this._addon)||void 0===i?void 0:i.getColumnDefinition(),o=Array.isArray(e)&&e.find((function(e){return e&&"selectAndMove"===e.behavior})),a=o||n;if("object"==typeof a&&(a.excludeFromExport=!0,a.excludeFromColumnPicker=!0,a.excludeFromGridMenu=!0,a.excludeFromQuery=!0,a.excludeFromHeaderMenu=!0),!o&&a){var l=(null===(r=null==t?void 0:t.rowMoveManager)||void 0===r?void 0:r.columnIndexPosition)||0;l>0?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(c.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(c.ExtensionName.rowMoveManager),e&&this.sharedService.slickGrid.getSelectionModel()||(this.extensionUtility.loadExtensionDynamically(c.ExtensionName.rowSelection),e=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this.sharedService.slickGrid.setSelectionModel(e)),this._rowSelectionPlugin=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 i=this._addon.onBeforeMoveRows;i&&this._eventHandler.subscribe(i,(function(e,i){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows&&t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows(e,i)}));var r=this._addon.onMoveRows;r&&this._eventHandler.subscribe(r,(function(e,i){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onMoveRows&&t.sharedService.gridOptions.rowMoveManager.onMoveRows(e,i)}))}return this._addon}return null},e}(),Qe=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&(this._addon.destroy(),this._addon=null)},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}(),Ve=(i(44),i(46),function(e,t,i){if(i&&Array.isArray(i)&&i.length>0){var r=i.join(", ");return''+r+""}return i}),Te=function(e,t,i){var r=i;return null==i&&(r=""),"
"+r+"
"},qe=function(e,t,i,r,n){if(!r)return"";var o=r.params||{},a=o&&o.complexFieldLabel||r.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 r.labelKey&&n.hasOwnProperty(a)?n[a]&&n[a][r.labelKey]:"string"==typeof a&&a.indexOf(".")>0?a.split(".").reduce((function(e,t){return e&&e.hasOwnProperty(t)?e[t]:i}),n):i},ze=i(13);function Oe(e,t,i,r){var n=i&&"function"==typeof i.getOptions?i.getOptions():{},o=t&&t.params;return o&&o.hasOwnProperty(e)?o[e]:n.formatterOptions&&n.formatterOptions.hasOwnProperty(e)?n.formatterOptions[e]:r}function We(e,t){var i=Object(o.mapMomentDateFormatWithFieldType)(e);return function(e,r,n,a,l,c){var d,s,_,u,A,p=c&&"function"==typeof c.getOptions?c.getOptions():{},m=null!==(s=null===(d=null==p?void 0:p.formatterOptions)||void 0===d?void 0:d.dateSeparator)&&void 0!==s?s:t,g=null!==(_=null==a?void 0:a.type)&&void 0!==_?_:"date",C=Object(o.mapMomentDateFormatWithFieldType)(g),f=null!==(A=null===(u=null==a?void 0:a.params)||void 0===u?void 0:u.parseDateAsUtc)&&void 0!==A&&A,h=ze(n,C,!1).isValid(),B=n;if(n&&h&&(B=f?ze.utc(n).format(i):ze(n).format(i)),B&&m!==t){var b=new RegExp(t,"ig");B=B.replace(b,m)}return B}}var Ge={alignCenter:Te,alignRight:function(e,t,i){var r=i;return null==i&&(r=""),'
'+r+"
"},arrayObjectToCsv:function(e,t,i,r,n){var o=r&&r.params||{},a=o.propertyNames,l=o.dataContextProperty;if(l||(l=r&&r.field&&r.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(n[l]&&Array.isArray(n[l])&&Array.isArray(n[l])&&n[l].length>0){var c=[];n[l].forEach((function(e){var t=[];a.forEach((function(i){t.push(e[i])})),c.push(t.join(" "))}));var d=c.join(", ");return''+d+""}return i},arrayToCsv:Ve,bold:function(e,t,i){return i?""+i+"":""},center:Te,checkbox:function(e,t,i){return i?"☑":""},checkmark:function(e,t,i){var r=!1,n=null!=i&&""!==i&&!isNaN(+i);return n&&(i=+i),(!0===i||n&&+i>0||"string"==typeof i&&i.length>0&&"false"!==i.toLowerCase()&&"0"!==i)&&(r=!0),r?'':""},checkmarkMaterial:function(e,t,i){var r=!1,n=null!=i&&""!==i&&!isNaN(+i);return n&&(i=+i),(!0===i||n&&+i>0||"string"==typeof i&&i.length>0&&"false"!==i.toLowerCase()&&"0"!==i)&&(r=!0),r?'':""},complex:qe,complexObject:qe,collection:function(e,t,i,r,n,o){if(!(i&&r&&r.params&&r.params.collection&&r.params.collection.length))return i;var a=r.params,l=r.params.collection,c=a.customStructure?a.customStructure.label:"label",d=a.customStructure?a.customStructure.value:"value";return Array.isArray(i)?Ve(0,0,i.map((function(e){return Object(R.t)(l,(function(t){return t[d]===e}))[c]}))):Object(R.t)(l,(function(e){return e[d]===i}))[c]||""},collectionEditor:function(e,t,i,r,n,o){if(!(i&&r&&r.internalColumnEditor&&r.internalColumnEditor.collection&&r.internalColumnEditor.collection.length))return i;var a=r.internalColumnEditor,l=r.internalColumnEditor.collection,c=a.customStructure?a.customStructure.label:"label",d=a.customStructure?a.customStructure.value:"value";return Array.isArray(i)?l.every((function(e){return"string"==typeof e}))?Ve(0,0,i.map((function(e){return Object(R.t)(l,(function(t){return t===e}))}))):Ve(0,0,i.map((function(e){return Object(R.t)(l,(function(t){return t[d]===e}))[c]}))):Object(R.t)(l,(function(e){return e[d]===i}))[c]||""},dateIso:We(c.FieldType.dateIso,"-"),dateTimeIso:We(c.FieldType.dateTimeIso,"-"),dateTimeShortIso:We(c.FieldType.dateTimeShortIso,"-"),dateTimeIsoAmPm:We(c.FieldType.dateTimeIsoAmPm,"-"),dateEuro:We(c.FieldType.dateEuro,"/"),dateTimeEuro:We(c.FieldType.dateTimeEuro,"/"),dateTimeShortEuro:We(c.FieldType.dateTimeShortEuro,"/"),dateTimeEuroAmPm:We(c.FieldType.dateTimeEuroAmPm,"/"),dateUs:We(c.FieldType.dateUs,"/"),dateTimeUs:We(c.FieldType.dateTimeUs,"/"),dateTimeShortUs:We(c.FieldType.dateTimeShortUs,"/"),dateTimeUsAmPm:We(c.FieldType.dateTimeUsAmPm,"/"),deleteIcon:function(){return''},decimal:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a,2),d=Oe("maxDecimal",r,a,2),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?Object(o.formatNumber)(i,c,d,u,"","",s,_):i},dollar:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a,2),d=Oe("maxDecimal",r,a,4),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?Object(o.formatNumber)(i,c,d,u,"$","",s,_):i},dollarColored:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a,2),d=Oe("maxDecimal",r,a,4),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?''+Object(o.formatNumber)(i,c,d,u,"$","",s,_)+"":i},dollarColoredBold:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a,2),d=Oe("maxDecimal",r,a,4),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?''+Object(o.formatNumber)(i,c,d,u,"$","",s,_)+"":i},editIcon:function(){return''},fakeHyperlink:function(e,t,i){return i?''+i+"":""},hyperlink:function(e,t,i,r,n,a){var l=r&&r.params||{},c=a&&"function"==typeof a.getOptions?a.getOptions():{},d=l.hyperlinkText?l.hyperlinkText:i;d=Object(o.sanitizeTextByAvailableSanitizer)(c,d);var s=l.hyperlinkUrl?l.hyperlinkUrl:i,_=(s=Object(o.sanitizeTextByAvailableSanitizer)(c,s)).match(/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/i);return _&&Array.isArray(_)&&_.length>0?''+d+"":i},icon:function(e,t,i,r){var n=r&&r.params||{},o=n.icon||n.formatterIcon;if(!o)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(){return''},italic:function(e,t,i){return i?""+i+"":""},lowercase:function(e,t,i){return void 0!==i&&"string"!=typeof i&&(i+=""),i?i.toLowerCase():""},mask:function(e,t,i,r){var n=(r.params||{}).mask;if(!n)throw new Error('You must provide a "mask" via the generic "params" options (e.g.: { formatter: Formatters.mask, params: { mask: \'000-000\' }}');if(i){var o=0,a=i.toString();return n.replace(/[09A]/gi,(function(){return a[o++]||""}))}return i},multiple:function(e,t,i,r,n,o){var a=r.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=i,c=0,d=a.formatters;c'+(i>100?"100%":p)+""}return i},percentCompleteBar:function(e,t,i){if(!(null!=i&&""!==i&&!isNaN(+i)))return"";var r=parseFloat(i);return r>100&&(r=100),''},percentCompleteBarWithText:function(e,t,i){if(!(null!=i&&""!==i&&!isNaN(+i)))return"";var r=parseFloat(i);return r>100&&(r=100),'
'+r+"%
"},percentSymbol:function(e,t,i,r,n,a){var l=null!=i&&""!==i&&!isNaN(+i),c=Oe("minDecimal",r,a),d=Oe("maxDecimal",r,a),s=Oe("decimalSeparator",r,a,"."),_=Oe("thousandSeparator",r,a,""),u=Oe("displayNegativeNumberWithParentheses",r,a,!1);return l?Object(o.formatNumber)(i,c,d,u,"","%",s,_):i},progressBar:function(e,t,i){if(!(null!=i&&""!==i&&!isNaN(+i)))return"";var r="",n=parseFloat(i);return n>100&&(n=100),('
\n
\n '+n+"%\n
\n
").replace(/\s{2,}/g," ").trim()},translate:function(e,t,i,r,n,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).translater||r&&r.params&&r.params.translater;if(!a||"function"!=typeof a.translate)throw new Error('"Formatters.translate" requires the Translate Service to be provided as a Grid Options "translater" (or "i18n" depending on which framework you use).\n For example: this.gridOptions = { enableTranslate: true, translater: this.translateService }');return null!=i&&"string"!=typeof i&&(i+=""),i?a.translate(i):""},translateBoolean:function(e,t,i,r,n,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).translater||r&&r.params&&r.params.translater;if(!a||"function"!=typeof a.translate)throw new Error('"Formatters.translateBoolean" requires the Translate Service to be provided as a Grid Options "translater" (or "i18n" depending on which framework you use).\n For example: this.gridOptions = { enableTranslate: true, translater: this.translateService }');return null!=i&&"string"!=typeof i&&(i+=""),i?a.translate(i.toUpperCase()):""},tree:function(e,t,i,r,n,a){var l=null==a?void 0:a.getData(),c=null==a?void 0:a.getOptions(),d=null==c?void 0:c.treeDataOptions,s=(null==d?void 0:d.levelPropName)||"__treeLevel",_=(null==d?void 0:d.indentMarginLeft)||15,u=i;if("function"==typeof r.queryFieldNameGetterFn){var A=r.queryFieldNameGetterFn(n);u=(null==A?void 0:A.indexOf("."))>=0?Object(o.getDescendantProperty)(n,A):n.hasOwnProperty(A)?n[A]:i}if(null==u||void 0===n)return"";if(!n.hasOwnProperty(s))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(l&&l.getIdxById&&l.getItemByIdx){"string"==typeof u&&(u=Object(o.htmlEncode)(u));var p=l.getIdPropertyName()||"id",m='',g=l.getIdxById(n[p]),C=l.getItemByIdx((g||0)+1);return C&&C[s]>n[s]?n.__collapsed?m+' '+u:m+' '+u:m+' '+u}return""},uppercase:function(e,t,i){return void 0!==i&&"string"!=typeof i&&(i+=""),i?i.toUpperCase():""},yesNo:function(e,t,i){return i?"Yes":"No"}},Ye={avgTotals:function(e,t,i){var r=t.field||"",n=e.avg&&e.avg[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);if(null!==n&&!isNaN(+n)){if(n<0){if(n=Math.abs(n),A)return isNaN(d)&&isNaN(s)?l+"("+Object(o.thousandSeparatorFormatted)(Math.round(n),u)+")"+c:l+"("+Object(o.decimalFormatted)(n,d,s,_,u)+")"+c;l+="-"}return isNaN(d)&&isNaN(s)?""+l+Object(o.thousandSeparatorFormatted)(Math.round(n),u)+c:""+l+Object(o.decimalFormatted)(n,d,s,_,u)+c}return""},avgTotalsDollar:function(e,t,i){var r=t.field||"",n=e.avg&&e.avg[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c},avgTotalsPercentage:function(e,t,i){var r=t.field||"",n=e.avg&&e.avg[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);if(null!==n&&!isNaN(+n)){if(n<0){if(n=Math.abs(n),A)return isNaN(d)&&isNaN(s)?l+"("+Object(o.thousandSeparatorFormatted)(Math.round(n),u)+"%)"+c:l+"("+Object(o.decimalFormatted)(n,d,s,_,u)+"%)"+c;l+="-"}return isNaN(d)&&isNaN(s)?""+l+Object(o.thousandSeparatorFormatted)(Math.round(n),u)+"%"+c:""+l+Object(o.decimalFormatted)(n,d,s,_,u)+"%"+c}return""},maxTotals:function(e,t,i){var r=t.field||"",n=e.max&&e.max[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c},minTotals:function(e,t,i){var r=t.field||"",n=e.min&&e.min[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c},sumTotals:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c},sumTotalsBold:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c+""},sumTotalsColored:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i),s=Oe("maxDecimal",t,i),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":''+l+Object(o.formatNumber)(n,d,s,A,"","",_,u)+c+""},sumTotalsDollar:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c},sumTotalsDollarBold:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":""+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c+""},sumTotalsDollarColored:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":''+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c+""},sumTotalsDollarColoredBold:function(e,t,i){var r=t.field||"",n=e.sum&&e.sum[r],a=t&&t.params,l=a&&a.groupFormatterPrefix||"",c=a&&a.groupFormatterSuffix||"",d=Oe("minDecimal",t,i,2),s=Oe("maxDecimal",t,i,4),_=Oe("decimalSeparator",t,i,"."),u=Oe("thousandSeparator",t,i,""),A=Oe("displayNegativeNumberWithParentheses",t,i,!1);return null===n||isNaN(+n)?"":''+l+Object(o.formatNumber)(n,d,s,A,"$","",_,u)+c+""}},Ze=i(39),Ke=(i(45),function(){this.options=I}),je=function(){return(je=Object.assign||function(e){for(var t,i=1,r=arguments.length;i":">",'"':""","'":"'"};return(e||"").toString().replace(/[&<>"']/g,(function(e){return t[e]}))}function h(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}))}function B(e,t){var i=e.length,r=f(e);if(i0&&(l+=".");l.length-l.indexOf(".")<=o;)l+="0";var c,d,s=l.split(".");c=n?s.length>=1?H(s[0],n):void 0:s.length>=1?s[0]:l,s.length>1&&(d=s[1]);var _="";return void 0!==c&&void 0!==d?_=""+c+r+d:null!=c&&(_=c),_}function x(e){if(e)for(var t=0,i=Object.keys(e);t":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 P(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 N(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 M(e){return/(true|1)/i.test(e+"")}function $(e,t){var i="";if("string"==typeof e&&/^[0-9\-\/]*$/.test(e)){var r=decodeURIComponent(e),n=l(new Date(r));n.isValid()&&4===n.year().toString().length&&(i=t?n.utc().format():n.format())}return i}function S(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}function L(e,t,i){var r=t;return e&&"function"==typeof e.sanitizer?r=e.sanitizer(t||""):"function"==typeof a.sanitize&&(r=(a.sanitize(t||"",i||{})||"").toString()),r}function I(e,t,i){if("string"==typeof t&&(t=t.split(".")),t.length>1){var r=t.shift();e&&void 0!==r&&I(e[r]="[object Object]"===Object.prototype.toString.call(e[r])?e[r]:{},t,i)}else e&&t[0]&&(e[t[0]]=i)}function H(e,t){if(void 0===t&&(t=","),null!=e){var i=""+e,r=i.split(".");return 2===r.length?r[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+"."+r[1]:i.replace(/\B(?=(\d{3})+(?!\d))/g,t)}return e}function R(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 F(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 U(e){return"string"==typeof e?F(e).replace(/([A-Z])/g,"-$1").toLowerCase():e}function Q(e,t,i){if(void 0===i&&(i=!1),!(e&&t&&Array.isArray(e)&&Array.isArray(e)))return!1;if(e.length!==t.length)return!1;!i&&e.sort&&t.sort&&(e.sort(),t.sort());for(var r=0;r0?e.filter((function(t,i){return e.indexOf(t)>=i})):e}function O(e,t){if(void 0===t&&(t="id"),Array.isArray(e)&&e.length>0){for(var i=[],r=new Map,n=0,o=e;n+~]|"+R+")"+R+"*"),O=new RegExp(R+"|>"),W=new RegExp(Q),G=new RegExp("^"+F+"$"),Y={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,j=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){u()},ae=Be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{S.apply(N=L.call(b.childNodes),b.childNodes),N[b.childNodes.length].nodeType}catch(e){S={apply:N.length?function(e,t){$.apply(e,L.call(t))}:function(e,t){for(var i=e.length,r=0;e[i++]=t[r++];);e.length=i-1}}}function le(e,t,r,n){var o,l,d,s,_,p,C,f=t&&t.ownerDocument,b=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return r;if(!n&&(u(t),t=t||A,m)){if(11!==b&&(_=X.exec(e)))if(o=_[1]){if(9===b){if(!(d=t.getElementById(o)))return r;if(d.id===o)return r.push(d),r}else if(f&&(d=f.getElementById(o))&&h(t,d)&&d.id===o)return r.push(d),r}else{if(_[2])return S.apply(r,t.getElementsByTagName(e)),r;if((o=_[3])&&i.getElementsByClassName&&t.getElementsByClassName)return S.apply(r,t.getElementsByClassName(o)),r}if(i.qsa&&!E[e+" "]&&(!g||!g.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(C=e,f=t,1===b&&(O.test(e)||z.test(e))){for((f=ee.test(e)&&Ce(t.parentNode)||t)===t&&i.scope||((s=t.getAttribute("id"))?s=s.replace(re,ne):t.setAttribute("id",s=B)),l=(p=a(e)).length;l--;)p[l]=(s?"#"+s:":scope")+" "+he(p[l]);C=p.join(",")}try{return S.apply(r,f.querySelectorAll(C)),r}catch(t){E(e,!0)}finally{s===B&&t.removeAttribute("id")}}}return c(e.replace(T,"$1"),t,r,n)}function ce(){var e=[];return function t(i,n){return e.push(i+" ")>r.cacheLength&&delete t[e.shift()],t[i+" "]=n}}function de(e){return e[B]=!0,e}function se(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function _e(e,t){for(var i=e.split("|"),n=i.length;n--;)r.attrHandle[i[n]]=t}function ue(e,t){var i=t&&e,r=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function Ae(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function me(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 ge(e){return de((function(t){return t=+t,de((function(i,r){for(var n,o=e([],i.length,t),a=o.length;a--;)i[n=o[a]]&&(i[n]=!(r[n]=i[n]))}))}))}function Ce(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=le.support={},o=le.isXML=function(e){var t=e.namespaceURI,i=(e.ownerDocument||e).documentElement;return!Z.test(t||i&&i.nodeName||"HTML")},u=le.setDocument=function(e){var t,n,a=e?e.ownerDocument||e:b;return a!=A&&9===a.nodeType&&a.documentElement?(p=(A=a).documentElement,m=!o(A),b!=A&&(n=A.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),i.scope=se((function(e){return p.appendChild(e).appendChild(A.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.attributes=se((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=se((function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(A.getElementsByClassName),i.getById=se((function(e){return p.appendChild(e).id=B,!A.getElementsByName||!A.getElementsByName(B).length})),i.getById?(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i?[i]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i,r,n,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(n=t.getElementsByName(e),r=0;o=n[r++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),r.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,r=[],n=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[n++];)1===i.nodeType&&r.push(i);return r}return o},r.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},C=[],g=[],(i.qsa=J.test(A.querySelectorAll))&&(se((function(e){var t;p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+B+"-]").length||g.push("~="),(t=A.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+B+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),se((function(e){e.innerHTML="";var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(i.matchesSelector=J.test(f=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&se((function(e){i.disconnectedMatch=f.call(e,"*"),f.call(e,"[s!='']:x"),C.push("!=",Q)})),g=g.length&&new RegExp(g.join("|")),C=C.length&&new RegExp(C.join("|")),t=J.test(p.compareDocumentPosition),h=t||J.test(p.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(i.contains?i.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return _=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===r?e==A||e.ownerDocument==b&&h(b,e)?-1:t==A||t.ownerDocument==b&&h(b,t)?1:s?I(s,e)-I(s,t):0:4&r?-1:1)}:function(e,t){if(e===t)return _=!0,0;var i,r=0,n=e.parentNode,o=t.parentNode,a=[e],l=[t];if(!n||!o)return e==A?-1:t==A?1:n?-1:o?1:s?I(s,e)-I(s,t):0;if(n===o)return ue(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;a[r]===l[r];)r++;return r?ue(a[r],l[r]):a[r]==b?-1:l[r]==b?1:0},A):A},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if(u(e),i.matchesSelector&&m&&!E[t+" "]&&(!C||!C.test(t))&&(!g||!g.test(t)))try{var r=f.call(e,t);if(r||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){E(t,!0)}return le(t,A,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!=A&&u(e),h(e,t)},le.attr=function(e,t){(e.ownerDocument||e)!=A&&u(e);var n=r.attrHandle[t.toLowerCase()],o=n&&P.call(r.attrHandle,t.toLowerCase())?n(e,t,!m):void 0;return void 0!==o?o:i.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},le.escape=function(e){return(e+"").replace(re,ne)},le.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},le.uniqueSort=function(e){var t,r=[],n=0,o=0;if(_=!i.detectDuplicates,s=!i.sortStable&&e.slice(0),e.sort(D),_){for(;t=e[o++];)t===e[o]&&(n=r.push(o));for(;n--;)e.splice(r[n],1)}return s=null,e},n=le.getText=function(e){var t,i="",r=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)i+=n(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)i+=n(t);return i},(r=le.selectors={cacheLength:50,createPseudo:de,match:Y,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,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===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,i=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&W.test(i)&&(t=a(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=v[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&v(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(r){var n=le.attr(r,e);return null==n?"!="===t:!t||(n+="","="===t?n===i:"!="===t?n!==i:"^="===t?i&&0===n.indexOf(i):"*="===t?i&&n.indexOf(i)>-1:"$="===t?i&&n.slice(-i.length)===i:"~="===t?(" "+n.replace(V," ")+" ").indexOf(i)>-1:"|="===t&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,r,n){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),l="of-type"===t;return 1===r&&0===n?function(e){return!!e.parentNode}:function(t,i,c){var d,s,_,u,A,p,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,C=l&&t.nodeName.toLowerCase(),f=!c&&!l,h=!1;if(g){if(o){for(;m;){for(u=t;u=u[m];)if(l?u.nodeName.toLowerCase()===C:1===u.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&f){for(h=(A=(d=(s=(_=(u=g)[B]||(u[B]={}))[u.uniqueID]||(_[u.uniqueID]={}))[e]||[])[0]===x&&d[1])&&d[2],u=A&&g.childNodes[A];u=++A&&u&&u[m]||(h=A=0)||p.pop();)if(1===u.nodeType&&++h&&u===t){s[e]=[x,A,h];break}}else if(f&&(h=A=(d=(s=(_=(u=t)[B]||(u[B]={}))[u.uniqueID]||(_[u.uniqueID]={}))[e]||[])[0]===x&&d[1]),!1===h)for(;(u=++A&&u&&u[m]||(h=A=0)||p.pop())&&((l?u.nodeName.toLowerCase()!==C:1!==u.nodeType)||!++h||(f&&((s=(_=u[B]||(u[B]={}))[u.uniqueID]||(_[u.uniqueID]={}))[e]=[x,h]),u!==t)););return(h-=n)===r||h%r==0&&h/r>=0}}},PSEUDO:function(e,t){var i,n=r.pseudos[e]||r.setFilters[e.toLowerCase()]||le.error("unsupported pseudo: "+e);return n[B]?n(t):n.length>1?(i=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?de((function(e,i){for(var r,o=n(e,t),a=o.length;a--;)e[r=I(e,o[a])]=!(i[r]=o[a])})):function(e){return n(e,0,i)}):n}},pseudos:{not:de((function(e){var t=[],i=[],r=l(e.replace(T,"$1"));return r[B]?de((function(e,t,i,n){for(var o,a=r(e,null,n,[]),l=e.length;l--;)(o=a[l])&&(e[l]=!(t[l]=o))})):function(e,n,o){return t[0]=e,r(t,null,o,i),t[0]=null,!i.pop()}})),has:de((function(e){return function(t){return le(e,t).length>0}})),contains:de((function(e){return e=e.replace(te,ie),function(t){return(t.textContent||n(t)).indexOf(e)>-1}})),lang:de((function(e){return G.test(e||"")||le.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!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!r.pseudos.empty(e)},header:function(e){return j.test(e.nodeName)},input:function(e){return K.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:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,i){return[i<0?i+t:i]})),even:ge((function(e,t){for(var i=0;it?t:i;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,i){for(var r=i<0?i+t:i;++r1?function(t,i,r){for(var n=e.length;n--;)if(!e[n](t,i,r))return!1;return!0}:e[0]}function xe(e,t,i,r,n){for(var o,a=[],l=0,c=e.length,d=null!=t;l-1&&(o[d]=!(a[d]=_))}}else C=xe(C===a?C.splice(p,C.length):C),n?n(null,a,C,c):S.apply(a,C)}))}function ve(e){for(var t,i,n,o=e.length,a=r.relative[e[0].type],l=a||r.relative[" "],c=a?1:0,s=Be((function(e){return e===t}),l,!0),_=Be((function(e){return I(t,e)>-1}),l,!0),u=[function(e,i,r){var n=!a&&(r||i!==d)||((t=i).nodeType?s(e,i,r):_(e,i,r));return t=null,n}];c1&&be(u),c>1&&he(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(T,"$1"),i,c0,n=e.length>0,o=function(o,a,l,c,s){var _,p,g,C=0,f="0",h=o&&[],B=[],b=d,w=o||n&&r.find.TAG("*",s),v=x+=null==b?1:Math.random()||.1,k=w.length;for(s&&(d=a==A||a||s);f!==k&&null!=(_=w[f]);f++){if(n&&_){for(p=0,a||_.ownerDocument==A||(u(_),l=!m);g=e[p++];)if(g(_,a||A,l)){c.push(_);break}s&&(x=v)}i&&((_=!g&&_)&&C--,o&&h.push(_))}if(C+=f,i&&f!==C){for(p=0;g=t[p++];)g(h,B,a,l);if(o){if(C>0)for(;f--;)h[f]||B[f]||(B[f]=M.call(c));B=xe(B)}S.apply(c,B),s&&!o&&B.length>0&&C+t.length>1&&le.uniqueSort(c)}return s&&(x=v,d=b),h};return i?de(o):o}(o,n))).selector=e}return l},c=le.select=function(e,t,i,n){var o,c,d,s,_,u="function"==typeof e&&e,A=!n&&a(e=u.selector||e);if(i=i||[],1===A.length){if((c=A[0]=A[0].slice(0)).length>2&&"ID"===(d=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(d.matches[0].replace(te,ie),t)||[])[0]))return i;u&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=Y.needsContext.test(e)?0:c.length;o--&&(d=c[o],!r.relative[s=d.type]);)if((_=r.find[s])&&(n=_(d.matches[0].replace(te,ie),ee.test(c[0].type)&&Ce(t.parentNode)||t))){if(c.splice(o,1),!(e=n.length&&he(c)))return S.apply(i,n),i;break}}return(u||l(e,A))(n,t,!m,i,!t||ee.test(e)&&Ce(t.parentNode)||t),i},i.sortStable=B.split("").sort(D).join("")===B,i.detectDuplicates=!!_,u(),i.sortDetached=se((function(e){return 1&e.compareDocumentPosition(A.createElement("fieldset"))})),se((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||_e("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&se((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||_e("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),se((function(e){return null==e.getAttribute("disabled")}))||_e(H,(function(e,t,i){var r;if(!i)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),le}(i);w.find=k,w.expr=k.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=k.uniqueSort,w.text=k.getText,w.isXMLDoc=k.isXML,w.contains=k.contains,w.escapeSelector=k.escape;var y=function(e,t,i){for(var r=[],n=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&w(e).is(i))break;r.push(e)}return r},E=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},D=w.expr.match.needsContext;function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,t,i){return C(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==i})):t.nodeType?w.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?w.grep(e,(function(e){return s.call(t,e)>-1!==i})):w.filter(t,e,i)}w.filter=function(e,t,i){var r=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,i,r=this.length,n=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t1?w.uniqueSort(i):i},filter:function(e){return this.pushStack(M(this,e||[],!1))},not:function(e){return this.pushStack(M(this,e||[],!0))},is:function(e){return!!M(this,"string"==typeof e&&D.test(e)?w(e):e||[],!1).length}});var $,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,i){var r,n;if(!e)return this;if(i=i||$,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:h,!0)),N.test(r[1])&&w.isPlainObject(t))for(r in t)C(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(n=h.getElementById(r[2]))&&(this[0]=n,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):C(e)?void 0!==i.ready?i.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,$=w(h);var L=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),i=t.length;return this.filter((function(){for(var e=0;e-1:1===i.nodeType&&w.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?s.call(w(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return y(e,"parentNode")},parentsUntil:function(e,t,i){return y(e,"parentNode",i)},next:function(e){return H(e,"nextSibling")},prev:function(e){return H(e,"previousSibling")},nextAll:function(e){return y(e,"nextSibling")},prevAll:function(e){return y(e,"previousSibling")},nextUntil:function(e,t,i){return y(e,"nextSibling",i)},prevUntil:function(e,t,i){return y(e,"previousSibling",i)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(P(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(i,r){var n=w.map(this,t,i);return"Until"!==e.slice(-5)&&(r=i),r&&"string"==typeof r&&(n=w.filter(r,n)),this.length>1&&(I[e]||w.uniqueSort(n),L.test(e)&&n.reverse()),this.pushStack(n)}}));var R=/[^\x20\t\r\n\f]+/g;function F(e){return e}function U(e){throw e}function Q(e,t,i,r){var n;try{e&&C(n=e.promise)?n.call(e).done(t).fail(i):e&&C(n=e.then)?n.call(e,t,i):t.apply(void 0,[e].slice(r))}catch(e){i.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(R)||[],(function(e,i){t[i]=!0})),t}(e):w.extend({},e);var t,i,r,n,o=[],a=[],l=-1,c=function(){for(n=n||e.once,r=t=!0;a.length;l=-1)for(i=a.shift();++l-1;)o.splice(i,1),i<=l&&l--})),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return n=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return n=a=[],i||t||(o=i=""),this},locked:function(){return!!n},fireWith:function(e,i){return n||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},w.extend({Deferred:function(e){var t=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",n={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return n.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(i){w.each(t,(function(t,r){var n=C(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=n&&n.apply(this,arguments);e&&C(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[r[0]+"With"](this,n?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,n){var o=0;function a(e,t,r,n){return function(){var l=this,c=arguments,d=function(){var i,d;if(!(e=o&&(r!==U&&(l=void 0,c=[i]),t.rejectWith(l,c))}};e?s():(w.Deferred.getStackHook&&(s.stackTrace=w.Deferred.getStackHook()),i.setTimeout(s))}}return w.Deferred((function(i){t[0][3].add(a(0,i,C(n)?n:F,i.notifyWith)),t[1][3].add(a(0,i,C(e)?e:F)),t[2][3].add(a(0,i,C(r)?r:U))})).promise()},promise:function(e){return null!=e?w.extend(e,n):n}},o={};return w.each(t,(function(e,i){var a=i[2],l=i[5];n[i[1]]=a.add,l&&a.add((function(){r=l}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith})),n.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,i=t,r=Array(i),n=l.call(arguments),o=w.Deferred(),a=function(e){return function(i){r[e]=this,n[e]=arguments.length>1?l.call(arguments):i,--t||o.resolveWith(r,n)}};if(t<=1&&(Q(e,o.done(a(i)).resolve,o.reject,!t),"pending"===o.state()||C(n[i]&&n[i].then)))return o.then();for(;i--;)Q(n[i],a(i),o.reject);return o.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&V.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},w.readyException=function(e){i.setTimeout((function(){throw e}))};var T=w.Deferred();function q(){h.removeEventListener("DOMContentLoaded",q),i.removeEventListener("load",q),w.ready()}w.fn.ready=function(e){return T.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||T.resolveWith(h,[w]))}}),w.ready.then=T.then,"complete"===h.readyState||"loading"!==h.readyState&&!h.documentElement.doScroll?i.setTimeout(w.ready):(h.addEventListener("DOMContentLoaded",q),i.addEventListener("load",q));var z=function(e,t,i,r,n,o,a){var l=0,c=e.length,d=null==i;if("object"===x(i))for(l in n=!0,i)z(e,t,l,i[l],!0,o,a);else if(void 0!==r&&(n=!0,C(r)||(a=!0),d&&(a?(t.call(e,r),t=null):(d=t,t=function(e,t,i){return d.call(w(e),i)})),t))for(;l1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),w.extend({queue:function(e,t,i){var r;if(e)return t=(t||"fx")+"queue",r=j.get(e,t),i&&(!r||Array.isArray(i)?r=j.access(e,t,w.makeArray(i)):r.push(i)),r||[]},dequeue:function(e,t){t=t||"fx";var i=w.queue(e,t),r=i.length,n=i.shift(),o=w._queueHooks(e,t);"inprogress"===n&&(n=i.shift(),r--),n&&("fx"===t&&i.unshift("inprogress"),delete o.stop,n.call(e,(function(){w.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return j.get(e,i)||j.access(e,i,{empty:w.Callbacks("once memory").add((function(){j.remove(e,[t+"queue",i])}))})}}),w.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;Ae=h.createDocumentFragment().appendChild(h.createElement("div")),(pe=h.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),Ae.appendChild(pe),g.checkClone=Ae.cloneNode(!0).cloneNode(!0).lastChild.checked,Ae.innerHTML="",g.noCloneChecked=!!Ae.cloneNode(!0).lastChild.defaultValue,Ae.innerHTML="",g.option=!!Ae.lastChild;var fe={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function he(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&P(e,t)?w.merge([e],i):i}function Be(e,t){for(var i=0,r=e.length;i",""]);var be=/<|&#?\w+;/;function xe(e,t,i,r,n){for(var o,a,l,c,d,s,_=t.createDocumentFragment(),u=[],A=0,p=e.length;A-1)n&&n.push(o);else if(d=ae(o),a=he(_.appendChild(o),"script"),d&&Be(a),i)for(s=0;o=a[s++];)Ce.test(o.type||"")&&i.push(o);return _}var we=/^key/,ve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function ye(){return!0}function Ee(){return!1}function De(e,t){return e===function(){try{return h.activeElement}catch(e){}}()==("focus"===t)}function Pe(e,t,i,r,n,o){var a,l;if("object"==typeof t){for(l in"string"!=typeof i&&(r=r||i,i=void 0),t)Pe(e,l,i,r,t[l],o);return e}if(null==r&&null==n?(n=i,r=i=void 0):null==n&&("string"==typeof i?(n=r,r=void 0):(n=r,r=i,i=void 0)),!1===n)n=Ee;else if(!n)return e;return 1===o&&(a=n,(n=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each((function(){w.event.add(this,t,n,r,i)}))}function Ne(e,t,i){i?(j.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,n,o=j.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=l.call(arguments),j.set(this,t,o),r=i(this,t),this[t](),o!==(n=j.get(this,t))||r?j.set(this,t,!1):n={},o!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else o.length&&(j.set(this,t,{value:w.event.trigger(w.extend(o[0],w.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===j.get(e,t)&&w.event.add(e,t,ye)}w.event={global:{},add:function(e,t,i,r,n){var o,a,l,c,d,s,_,u,A,p,m,g=j.get(e);if(Z(e))for(i.handler&&(i=(o=i).handler,n=o.selector),n&&w.find.matchesSelector(oe,n),i.guid||(i.guid=w.guid++),(c=g.events)||(c=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(R)||[""]).length;d--;)A=m=(l=ke.exec(t[d])||[])[1],p=(l[2]||"").split(".").sort(),A&&(_=w.event.special[A]||{},A=(n?_.delegateType:_.bindType)||A,_=w.event.special[A]||{},s=w.extend({type:A,origType:m,data:r,handler:i,guid:i.guid,selector:n,needsContext:n&&w.expr.match.needsContext.test(n),namespace:p.join(".")},o),(u=c[A])||((u=c[A]=[]).delegateCount=0,_.setup&&!1!==_.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(A,a)),_.add&&(_.add.call(e,s),s.handler.guid||(s.handler.guid=i.guid)),n?u.splice(u.delegateCount++,0,s):u.push(s),w.event.global[A]=!0)},remove:function(e,t,i,r,n){var o,a,l,c,d,s,_,u,A,p,m,g=j.hasData(e)&&j.get(e);if(g&&(c=g.events)){for(d=(t=(t||"").match(R)||[""]).length;d--;)if(A=m=(l=ke.exec(t[d])||[])[1],p=(l[2]||"").split(".").sort(),A){for(_=w.event.special[A]||{},u=c[A=(r?_.delegateType:_.bindType)||A]||[],l=l[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=u.length;o--;)s=u[o],!n&&m!==s.origType||i&&i.guid!==s.guid||l&&!l.test(s.namespace)||r&&r!==s.selector&&("**"!==r||!s.selector)||(u.splice(o,1),s.selector&&u.delegateCount--,_.remove&&_.remove.call(e,s));a&&!u.length&&(_.teardown&&!1!==_.teardown.call(e,p,g.handle)||w.removeEvent(e,A,g.handle),delete c[A])}else for(A in c)w.event.remove(e,A+t[d],i,r,!0);w.isEmptyObject(c)&&j.remove(e,"handle events")}},dispatch:function(e){var t,i,r,n,o,a,l=new Array(arguments.length),c=w.event.fix(e),d=(j.get(this,"events")||Object.create(null))[c.type]||[],s=w.event.special[c.type]||{};for(l[0]=c,t=1;t=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(o=[],a={},i=0;i-1:w.find(n,this,null,[d]).length),a[n]&&o.push(r);o.length&&l.push({elem:d,handlers:o})}return d=this,c\s*$/g;function Le(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var i,r,n,o,a,l;if(1===t.nodeType){if(j.hasData(e)&&(l=j.get(e).events))for(n in j.remove(t,"handle events"),l)for(i=0,r=l[n].length;i1&&"string"==typeof p&&!g.checkClone&&$e.test(p))return e.each((function(n){var o=e.eq(n);m&&(t[0]=p.call(this,n,o.html())),Ue(o,t,i,r)}));if(u&&(o=(n=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===n.childNodes.length&&(n=o),o||r)){for(l=(a=w.map(he(n,"script"),Ie)).length;_0&&Be(a,!c&&he(e,"script")),l},cleanData:function(e){for(var t,i,r,n=w.event.special,o=0;void 0!==(i=e[o]);o++)if(Z(i)){if(t=i[j.expando]){if(t.events)for(r in t.events)n[r]?w.event.remove(i,r):w.removeEvent(i,r,t.handle);i[j.expando]=void 0}i[J.expando]&&(i[J.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Qe(this,e,!0)},remove:function(e){return Qe(this,e)},text:function(e){return z(this,(function(e){return void 0===e?w.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 Ue(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)}))},prepend:function(){return Ue(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ue(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ue(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&&(w.cleanData(he(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return z(this,(function(e){var t=this[0]||{},i=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Me.test(e)&&!fe[(ge.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;i3,oe.removeChild(e)),l}}))}();var Ge=["Webkit","Moz","ms"],Ye=h.createElement("div").style,Ze={};function Ke(e){var t=w.cssProps[e]||Ze[e];return t||(e in Ye?e:Ze[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=Ge.length;i--;)if((e=Ge[i]+t)in Ye)return e}(e)||e)}var je=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,i){var r=re.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function it(e,t,i,r,n,o){var a="width"===t?1:0,l=0,c=0;if(i===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(c+=w.css(e,i+ne[a],!0,n)),r?("content"===i&&(c-=w.css(e,"padding"+ne[a],!0,n)),"margin"!==i&&(c-=w.css(e,"border"+ne[a]+"Width",!0,n))):(c+=w.css(e,"padding"+ne[a],!0,n),"padding"!==i?c+=w.css(e,"border"+ne[a]+"Width",!0,n):l+=w.css(e,"border"+ne[a]+"Width",!0,n));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-l-.5))||0),c}function rt(e,t,i){var r=Te(e),n=(!g.boxSizingReliable()||i)&&"border-box"===w.css(e,"boxSizing",!1,r),o=n,a=Oe(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(a)){if(!i)return a;a="auto"}return(!g.boxSizingReliable()&&n||!g.reliableTrDimensions()&&P(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(n="border-box"===w.css(e,"boxSizing",!1,r),(o=l in e)&&(a=e[l])),(a=parseFloat(a)||0)+it(e,t,i||(n?"border":"content"),o,r,a)+"px"}function nt(e,t,i,r,n){return new nt.prototype.init(e,t,i,r,n)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Oe(e,"opacity");return""===i?"1":i}}}},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,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,o,a,l=Y(t),c=Je.test(t),d=e.style;if(c||(t=Ke(l)),a=w.cssHooks[t]||w.cssHooks[l],void 0===i)return a&&"get"in a&&void 0!==(n=a.get(e,!1,r))?n:d[t];"string"===(o=typeof i)&&(n=re.exec(i))&&n[1]&&(i=de(e,t,n),o="number"),null!=i&&i==i&&("number"!==o||c||(i+=n&&n[3]||(w.cssNumber[l]?"":"px")),g.clearCloneStyle||""!==i||0!==t.indexOf("background")||(d[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,r))||(c?d.setProperty(t,i):d[t]=i))}},css:function(e,t,i,r){var n,o,a,l=Y(t);return Je.test(t)||(t=Ke(l)),(a=w.cssHooks[t]||w.cssHooks[l])&&"get"in a&&(n=a.get(e,!0,i)),void 0===n&&(n=Oe(e,t,r)),"normal"===n&&t in et&&(n=et[t]),""===i||i?(o=parseFloat(n),!0===i||isFinite(o)?o||0:n):n}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,i,r){if(i)return!je.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):qe(e,Xe,(function(){return rt(e,t,r)}))},set:function(e,i,r){var n,o=Te(e),a=!g.scrollboxSize()&&"absolute"===o.position,l=(a||r)&&"border-box"===w.css(e,"boxSizing",!1,o),c=r?it(e,t,r,l,o):0;return l&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-it(e,t,"border",!1,o)-.5)),c&&(n=re.exec(i))&&"px"!==(n[3]||"px")&&(e.style[t]=i,i=w.css(e,t)),tt(0,i,c)}}})),w.cssHooks.marginLeft=We(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Oe(e,"marginLeft"))||e.getBoundingClientRect().left-qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(i){for(var r=0,n={},o="string"==typeof i?i.split(" "):[i];r<4;r++)n[e+ne[r]+t]=o[r]||o[r-2]||o[0];return n}},"margin"!==e&&(w.cssHooks[e+t].set=tt)})),w.fn.extend({css:function(e,t){return z(this,(function(e,t,i){var r,n,o={},a=0;if(Array.isArray(t)){for(r=Te(e),n=t.length;a1)}}),w.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,i,r,n,o){this.elem=e,this.prop=i,this.easing=n||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[i]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,i=nt.propHooks[this.prop];return this.options.duration?this.pos=t=w.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),i&&i.set?i.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.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=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=nt.prototype.init,w.fx.step={};var ot,at,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function dt(){at&&(!1===h.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(dt):i.setTimeout(dt,w.fx.interval),w.fx.tick())}function st(){return i.setTimeout((function(){ot=void 0})),ot=Date.now()}function _t(e,t){var i,r=0,n={height:e};for(t=t?1:0;r<4;r+=2-t)n["margin"+(i=ne[r])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function ut(e,t,i){for(var r,n=(At.tweeners[t]||[]).concat(At.tweeners["*"]),o=0,a=n.length;o1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,i){var r,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,i):(1===o&&w.isXMLDoc(e)||(n=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?pt:void 0)),void 0!==i?null===i?void w.removeAttr(e,t):n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):n&&"get"in n&&null!==(r=n.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&P(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,r=0,n=t&&t.match(R);if(n&&1===e.nodeType)for(;i=n[r++];)e.removeAttribute(i)}}),pt={set:function(e,t,i){return!1===t?w.removeAttr(e,i):e.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=mt[t]||w.find.attr;mt[t]=function(e,t,r){var n,o,a=t.toLowerCase();return r||(o=mt[a],mt[a]=n,n=null!=i(e,t,r)?a:null,mt[a]=o),n}}));var gt=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;function ft(e){return(e.match(R)||[]).join(" ")}function ht(e){return e.getAttribute&&e.getAttribute("class")||""}function Bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}w.fn.extend({prop:function(e,t){return z(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,i){var r,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,n=w.propHooks[t]),void 0!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:e[t]=i:n&&"get"in n&&null!==(r=n.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(w.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)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,i,r,n,o,a,l,c=0;if(C(e))return this.each((function(t){w(this).addClass(e.call(this,t,ht(this)))}));if((t=Bt(e)).length)for(;i=this[c++];)if(n=ht(i),r=1===i.nodeType&&" "+ft(n)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");n!==(l=ft(r))&&i.setAttribute("class",l)}return this},removeClass:function(e){var t,i,r,n,o,a,l,c=0;if(C(e))return this.each((function(t){w(this).removeClass(e.call(this,t,ht(this)))}));if(!arguments.length)return this.attr("class","");if((t=Bt(e)).length)for(;i=this[c++];)if(n=ht(i),r=1===i.nodeType&&" "+ft(n)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");n!==(l=ft(r))&&i.setAttribute("class",l)}return this},toggleClass:function(e,t){var i=typeof e,r="string"===i||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):C(e)?this.each((function(i){w(this).toggleClass(e.call(this,i,ht(this),t),t)})):this.each((function(){var t,n,o,a;if(r)for(n=0,o=w(this),a=Bt(e);t=a[n++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==i||((t=ht(this))&&j.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":j.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,r=0;for(t=" "+e+" ";i=this[r++];)if(1===i.nodeType&&(" "+ft(ht(i))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;w.fn.extend({val:function(e){var t,i,r,n=this[0];return arguments.length?(r=C(e),this.each((function(i){var n;1===this.nodeType&&(null==(n=r?e.call(this,i,w(this).val()):e)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=w.map(n,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))}))):n?(t=w.valHooks[n.type]||w.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(bt,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:ft(w.text(e))}},select:{get:function(e){var t,i,r,n=e.options,o=e.selectedIndex,a="select-one"===e.type,l=a?null:[],c=a?o+1:n.length;for(r=o<0?c:a?o:0;r-1)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},g.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in i;var xt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(e,t,r,n){var o,a,l,c,d,s,_,u,p=[r||h],m=A.call(e,"type")?e.type:e,g=A.call(e,"namespace")?e.namespace.split("."):[];if(a=u=l=r=r||h,3!==r.nodeType&&8!==r.nodeType&&!xt.test(m+w.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),d=m.indexOf(":")<0&&"on"+m,(e=e[w.expando]?e:new w.Event(m,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:w.makeArray(t,[e]),_=w.event.special[m]||{},n||!_.trigger||!1!==_.trigger.apply(r,t))){if(!n&&!_.noBubble&&!f(r)){for(c=_.delegateType||m,xt.test(c+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),l=a;l===(r.ownerDocument||h)&&p.push(l.defaultView||l.parentWindow||i)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)u=a,e.type=o>1?c:_.bindType||m,(s=(j.get(a,"events")||Object.create(null))[e.type]&&j.get(a,"handle"))&&s.apply(a,t),(s=d&&a[d])&&s.apply&&Z(a)&&(e.result=s.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,n||e.isDefaultPrevented()||_._default&&!1!==_._default.apply(p.pop(),t)||!Z(r)||d&&C(r[m])&&!f(r)&&((l=r[d])&&(r[d]=null),w.event.triggered=m,e.isPropagationStopped()&&u.addEventListener(m,wt),r[m](),e.isPropagationStopped()&&u.removeEventListener(m,wt),w.event.triggered=void 0,l&&(r[d]=l)),e.result}},simulate:function(e,t,i){var r=w.extend(new w.Event,i,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return w.event.trigger(e,t,i,!0)}}),g.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,n=j.access(r,t);n||r.addEventListener(e,i,!0),j.access(r,t,(n||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,n=j.access(r,t)-1;n?j.access(r,t,n):(r.removeEventListener(e,i,!0),j.remove(r,t))}}}));var vt=i.location,kt={guid:Date.now()},yt=/\?/;w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t};var Et=/\[\]$/,Dt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Mt(e,t,i,r){var n;if(Array.isArray(t))w.each(t,(function(t,n){i||Et.test(e)?r(e,n):Mt(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,i,r)}));else if(i||"object"!==x(t))r(e,t);else for(n in t)Mt(e+"["+n+"]",t[n],i,r)}w.param=function(e,t){var i,r=[],n=function(e,t){var i=C(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){n(this.name,this.value)}));else for(i in e)Mt(i,e[i],t,n);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Nt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(e){return{name:t.name,value:e.replace(Dt,"\r\n")}})):{name:t.name,value:i.replace(Dt,"\r\n")}})).get()}});var $t=/%20/g,St=/#.*$/,Lt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,Rt=/^\/\//,Ft={},Ut={},Qt="*/".concat("*"),Vt=h.createElement("a");function Tt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,n=0,o=t.toLowerCase().match(R)||[];if(C(i))for(;r=o[n++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(i)):(e[r]=e[r]||[]).push(i)}}function qt(e,t,i,r){var n={},o=e===Ut;function a(l){var c;return n[l]=!0,w.each(e[l]||[],(function(e,l){var d=l(t,i,r);return"string"!=typeof d||o||n[d]?o?!(c=d):void 0:(t.dataTypes.unshift(d),a(d),!1)})),c}return a(t.dataTypes[0])||!n["*"]&&a("*")}function zt(e,t){var i,r,n=w.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:r||(r={}))[i]=t[i]);return r&&w.extend(!0,e,r),e}Vt.href=vt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(vt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qt,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":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,w.ajaxSettings),t):zt(w.ajaxSettings,e)},ajaxPrefilter:Tt(Ft),ajaxTransport:Tt(Ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,n,o,a,l,c,d,s,_,u,A=w.ajaxSetup({},t),p=A.context||A,m=A.context&&(p.nodeType||p.jquery)?w(p):w.event,g=w.Deferred(),C=w.Callbacks("once memory"),f=A.statusCode||{},B={},b={},x="canceled",v={readyState:0,getResponseHeader:function(e){var t;if(d){if(!a)for(a={};t=It.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=b[e.toLowerCase()]=b[e.toLowerCase()]||e,B[e]=t),this},overrideMimeType:function(e){return null==d&&(A.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)v.always(e[v.status]);else for(t in e)f[t]=[f[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),k(0,t),this}};if(g.promise(v),A.url=((e||A.url||vt.href)+"").replace(Rt,vt.protocol+"//"),A.type=t.method||t.type||A.method||A.type,A.dataTypes=(A.dataType||"*").toLowerCase().match(R)||[""],null==A.crossDomain){c=h.createElement("a");try{c.href=A.url,c.href=c.href,A.crossDomain=Vt.protocol+"//"+Vt.host!=c.protocol+"//"+c.host}catch(e){A.crossDomain=!0}}if(A.data&&A.processData&&"string"!=typeof A.data&&(A.data=w.param(A.data,A.traditional)),qt(Ft,A,t,v),d)return v;for(_ in(s=w.event&&A.global)&&0==w.active++&&w.event.trigger("ajaxStart"),A.type=A.type.toUpperCase(),A.hasContent=!Ht.test(A.type),n=A.url.replace(St,""),A.hasContent?A.data&&A.processData&&0===(A.contentType||"").indexOf("application/x-www-form-urlencoded")&&(A.data=A.data.replace($t,"+")):(u=A.url.slice(n.length),A.data&&(A.processData||"string"==typeof A.data)&&(n+=(yt.test(n)?"&":"?")+A.data,delete A.data),!1===A.cache&&(n=n.replace(Lt,"$1"),u=(yt.test(n)?"&":"?")+"_="+kt.guid+++u),A.url=n+u),A.ifModified&&(w.lastModified[n]&&v.setRequestHeader("If-Modified-Since",w.lastModified[n]),w.etag[n]&&v.setRequestHeader("If-None-Match",w.etag[n])),(A.data&&A.hasContent&&!1!==A.contentType||t.contentType)&&v.setRequestHeader("Content-Type",A.contentType),v.setRequestHeader("Accept",A.dataTypes[0]&&A.accepts[A.dataTypes[0]]?A.accepts[A.dataTypes[0]]+("*"!==A.dataTypes[0]?", "+Qt+"; q=0.01":""):A.accepts["*"]),A.headers)v.setRequestHeader(_,A.headers[_]);if(A.beforeSend&&(!1===A.beforeSend.call(p,v,A)||d))return v.abort();if(x="abort",C.add(A.complete),v.done(A.success),v.fail(A.error),r=qt(Ut,A,t,v)){if(v.readyState=1,s&&m.trigger("ajaxSend",[v,A]),d)return v;A.async&&A.timeout>0&&(l=i.setTimeout((function(){v.abort("timeout")}),A.timeout));try{d=!1,r.send(B,k)}catch(e){if(d)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,a,c){var _,u,h,B,b,x=t;d||(d=!0,l&&i.clearTimeout(l),r=void 0,o=c||"",v.readyState=e>0?4:0,_=e>=200&&e<300||304===e,a&&(B=function(e,t,i){for(var r,n,o,a,l=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(n in l)if(l[n]&&l[n].test(r)){c.unshift(n);break}if(c[0]in i)o=c[0];else{for(n in i){if(!c[0]||e.converters[n+" "+c[0]]){o=n;break}a||(a=n)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),i[o]}(A,v,a)),!_&&w.inArray("script",A.dataTypes)>-1&&(A.converters["text script"]=function(){}),B=function(e,t,i,r){var n,o,a,l,c,d={},s=e.dataTypes.slice();if(s[1])for(a in e.converters)d[a.toLowerCase()]=e.converters[a];for(o=s.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=s.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=d[c+" "+o]||d["* "+o]))for(n in d)if((l=n.split(" "))[1]===o&&(a=d[c+" "+l[0]]||d["* "+l[0]])){!0===a?a=d[n]:!0!==d[n]&&(o=l[0],s.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 "+c+" to "+o}}}return{state:"success",data:t}}(A,B,v,_),_?(A.ifModified&&((b=v.getResponseHeader("Last-Modified"))&&(w.lastModified[n]=b),(b=v.getResponseHeader("etag"))&&(w.etag[n]=b)),204===e||"HEAD"===A.type?x="nocontent":304===e?x="notmodified":(x=B.state,u=B.data,_=!(h=B.error))):(h=x,!e&&x||(x="error",e<0&&(e=0))),v.status=e,v.statusText=(t||x)+"",_?g.resolveWith(p,[u,x,v]):g.rejectWith(p,[v,x,h]),v.statusCode(f),f=void 0,s&&m.trigger(_?"ajaxSuccess":"ajaxError",[v,A,_?u:h]),C.fireWith(p,[v,x]),s&&(m.trigger("ajaxComplete",[v,A]),--w.active||w.event.trigger("ajaxStop")))}return v},getJSON:function(e,t,i){return w.get(e,t,i,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,i,r,n){return C(i)&&(n=n||r,r=i,i=void 0),w.ajax(w.extend({url:e,type:t,dataType:n,data:i,success:r},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,i){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,i)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(C(e)&&(e=e.call(this[0])),t=w(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 C(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=C(e);return this.each((function(i){w(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},Wt=w.ajaxSettings.xhr();g.cors=!!Wt&&"withCredentials"in Wt,g.ajax=Wt=!!Wt,w.ajaxTransport((function(e){var t,r;if(g.cors||Wt&&!e.crossDomain)return{send:function(n,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||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)l.setRequestHeader(a,n[a]);t=function(e){return function(){t&&(t=r=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(Ot[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(),r=l.onerror=l.ontimeout=t("error"),void 0!==l.onabort?l.onabort=r:l.onreadystatechange=function(){4===l.readyState&&i.setTimeout((function(){t&&r()}))},t=t("abort");try{l.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(r,n){t=w("
LOADING...
\ No newline at end of file +Slickgrid-Universal
LOADING...
\ No newline at end of file diff --git a/packages/vanilla-bundle/dist-grid-bundle-zip/slickgrid-vanilla-bundle.zip b/packages/vanilla-bundle/dist-grid-bundle-zip/slickgrid-vanilla-bundle.zip index d5db6d766..ce68f99a8 100644 Binary files a/packages/vanilla-bundle/dist-grid-bundle-zip/slickgrid-vanilla-bundle.zip and b/packages/vanilla-bundle/dist-grid-bundle-zip/slickgrid-vanilla-bundle.zip differ