From 83e5fc32edfc472c9dba4c9e832e7c448b283f4e Mon Sep 17 00:00:00 2001 From: Ghislain Beaulac Date: Fri, 13 Nov 2020 09:07:56 -0500 Subject: [PATCH] demo: rebuild github demo page --- docs/app.53ec050882170b75c26d.bundle.css | 2 +- ....js => app.5aca34cb905c00578891.bundle.js} | 30 +++++++++---------- docs/app.5aca34cb905c00578891.bundle.map | 1 + docs/app.9ef573b2ca4e087f477f.bundle.map | 1 - docs/index.html | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) rename docs/{app.9ef573b2ca4e087f477f.bundle.js => app.5aca34cb905c00578891.bundle.js} (57%) create mode 100644 docs/app.5aca34cb905c00578891.bundle.map delete mode 100644 docs/app.9ef573b2ca4e087f477f.bundle.map diff --git a/docs/app.53ec050882170b75c26d.bundle.css b/docs/app.53ec050882170b75c26d.bundle.css index c61566332..4b3127c6a 100644 --- a/docs/app.53ec050882170b75c26d.bundle.css +++ b/docs/app.53ec050882170b75c26d.bundle.css @@ -204,4 +204,4 @@ /*rtl:end:ignore*/ .flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.dayContainer + .dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}} -/*# sourceMappingURL=app.9ef573b2ca4e087f477f.bundle.map*/ \ No newline at end of file +/*# sourceMappingURL=app.5aca34cb905c00578891.bundle.map*/ \ No newline at end of file diff --git a/docs/app.9ef573b2ca4e087f477f.bundle.js b/docs/app.5aca34cb905c00578891.bundle.js similarity index 57% rename from docs/app.9ef573b2ca4e087f477f.bundle.js rename to docs/app.5aca34cb905c00578891.bundle.js index a4ed8e6a4..b1e6a9a5d 100644 --- a/docs/app.9ef573b2ca4e087f477f.bundle.js +++ b/docs/app.5aca34cb905c00578891.bundle.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=145)}([function(e,t,n){"use strict";n.d(t,"i",(function(){return i.a})),n.d(t,"x",(function(){return V})),n.d(t,"c",(function(){return o.CaseType})),n.d(t,"r",(function(){return o.FieldType})),n.d(t,"n",(function(){return o.EventNamingStyle})),n.d(t,"s",(function(){return o.FileType})),n.d(t,"o",(function(){return o.ExtensionName})),n.d(t,"Q",(function(){return o.SortDirectionNumber})),n.d(t,"P",(function(){return o.SortDirection})),n.d(t,"I",(function(){return o.OperatorType})),n.d(t,"C",(function(){return o.GridStateType})),n.d(t,"Y",(function(){return U.p})),n.d(t,"jb",(function(){return U.B})),n.d(t,"lb",(function(){return U.D})),n.d(t,"g",(function(){return U.a})),n.d(t,"Z",(function(){return U.q})),n.d(t,"p",(function(){return U.b})),n.d(t,"u",(function(){return U.c})),n.d(t,"A",(function(){return U.e})),n.d(t,"y",(function(){return U.d})),n.d(t,"B",(function(){return U.f})),n.d(t,"F",(function(){return U.g})),n.d(t,"J",(function(){return U.h})),n.d(t,"M",(function(){return U.i})),n.d(t,"R",(function(){return U.j})),n.d(t,"S",(function(){return U.k})),n.d(t,"U",(function(){return U.l})),n.d(t,"V",(function(){return U.m})),n.d(t,"W",(function(){return U.n})),n.d(t,"X",(function(){return U.o})),n.d(t,"ab",(function(){return U.r})),n.d(t,"fb",(function(){return U.x})),n.d(t,"bb",(function(){return U.t})),n.d(t,"cb",(function(){return U.u})),n.d(t,"eb",(function(){return U.w})),n.d(t,"gb",(function(){return U.y})),n.d(t,"ib",(function(){return U.A})),n.d(t,"hb",(function(){return U.z})),n.d(t,"kb",(function(){return U.C})),n.d(t,"mb",(function(){return U.E})),n.d(t,"nb",(function(){return U.F})),n.d(t,"ob",(function(){return U.G})),n.d(t,"pb",(function(){return U.H})),n.d(t,"db",(function(){return U.v})),n.d(t,"a",(function(){return O})),n.d(t,"l",(function(){return pe})),n.d(t,"b",(function(){return ue})),n.d(t,"d",(function(){return ge})),n.d(t,"e",(function(){return fe})),n.d(t,"f",(function(){return be})),n.d(t,"h",(function(){return Be})),n.d(t,"j",(function(){return ke})),n.d(t,"k",(function(){return ye})),n.d(t,"q",(function(){return De})),n.d(t,"z",(function(){return He})),n.d(t,"D",(function(){return Le})),n.d(t,"G",(function(){return Ve})),n.d(t,"H",(function(){return Se})),n.d(t,"K",(function(){return Fe})),n.d(t,"L",(function(){return qe})),n.d(t,"v",(function(){return H})),n.d(t,"t",(function(){return L})),n.d(t,"w",(function(){return Ye})),n.d(t,"E",(function(){return Re})),n.d(t,"O",(function(){return Qe.a})),n.d(t,"m",(function(){return o})),n.d(t,"T",(function(){return Ne})),n.d(t,"N",(function(){return Ze}));n(147);var r,i=n(4),o=n(1),a=n(48),l=n(49),s=n(30),d=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n){var r=e.call(this,t,n,!1)||this;return r.translaterService=t,r.collectionService=n,r}return d(t,e),t}(s.a),A=n(50),p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e){function t(t,n){var r=e.call(this,t,n,!0)||this;return r.translaterService=t,r.collectionService=n,r}return p(t,e),t}(s.a),C=n(22),g=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(e){function t(){var t=e.call(this)||this;return t.inputType="password",t}return g(t,e),t}(C.a),m=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(e){function t(){var t=e.call(this)||this;return t.inputType="number",t}return m(t,e),t}(C.a),b=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),B=function(e){function t(){var t=e.call(this)||this;return t.inputType="text",t}return b(t,e),Object.defineProperty(t.prototype,"inputMask",{get:function(){return this._inputMask},enumerable:!1,configurable:!0}),t.prototype.init=function(e){var t=this;if(!e)throw new Error('[Slickgrid-Universal] A filter must always have an "init()" with valid arguments.');if(this.grid=e.grid,this.callback=e.callback,this.columnDef=e.columnDef,this.searchTerms=(e.hasOwnProperty("searchTerms")?e.searchTerms:[])||[],this.columnDef&&this.columnDef.params&&this.columnDef.params.mask?this._inputMask=this.columnDef.params.mask:this.columnFilter&&this.columnFilter.params&&this.columnFilter.params.mask&&(this._inputMask=this.columnFilter.params.mask),!this._inputMask)throw new Error("[Slickgrid-Universal] The Filters.inputMask requires the mask to be passed in the filter params or the column definition params\n for example:: this.columnDefinitions: [{ id: 'phone', field: 'phone', filter: { model: Filters.inputMask, params: { mask: '000-000-0000' }}}]");var n=Array.isArray(this.searchTerms)&&this.searchTerms.length>=0?this.searchTerms[0]:"",r=this.buildTemplateHtmlString();this.$filterElm=this.createDomElement(r,n),this.$filterElm.on("keyup input change",(function(e){var n="";if(e&&e.target&&e.target.value){var r=e.target.value,i=t.gridOptions.enableFilterTrimWhiteSpace||t.columnFilter.enableTrimWhiteSpace;"string"==typeof r&&i&&(r=r.trim());var o=t.unmaskValue(r),a=t.maskValue(o);n=o,e.keyCode>=48&&(t.$filterElm.val(a),e.preventDefault())}t._clearFilterTriggered?(t.callback(e,{columnDef:t.columnDef,clearFilterTriggered:t._clearFilterTriggered,shouldTriggerQuery:t._shouldTriggerQuery}),t.$filterElm.removeClass("filled")):(t.$filterElm.addClass("filled"),t.callback(e,{columnDef:t.columnDef,operator:t.operator,searchTerms:[n],shouldTriggerQuery:t._shouldTriggerQuery})),t._clearFilterTriggered=!1,t._shouldTriggerQuery=!0}))},t.prototype.maskValue=function(e){var t=0,n="";return this._inputMask&&(n=this._inputMask.replace(/[09A]/gi,(function(n){return(("0"===n||"9"===n)&&/\d+/g.test(e[t])||"A"===n.toUpperCase()&&/[^\d]+/gi.test(e[t]))&&e[t++]||""}))),n},t.prototype.unmaskValue=function(e){for(var t=e.replace(/[^0-9a-z]*/gi,""),n=this._inputMask.replace(/[^0-9a-z]*/gi,""),r="",i=0;ithis._max)&&(this._max=parseFloat(t))},e.prototype.storeResult=function(e){e&&void 0!==e[this._type]||(e[this._type]={}),e[this._type][this._field]=this._max},e}(),q=function(){function e(e){this._type="distinct",this._field=e}return Object.defineProperty(e.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.init=function(){this._distinctValues=[]},e.prototype.accumulate=function(e){var t=e&&e.hasOwnProperty(this._field)?e[this._field]:void 0;-1===this._distinctValues.indexOf(t)&&void 0!==t&&this._distinctValues.push(t)},e.prototype.storeResult=function(e){e&&void 0!==e[this._type]||(e[this._type]={}),e[this._type][this._field]=this._distinctValues},e}(),I=function(){function e(e){this._type="min",this._field=e}return Object.defineProperty(e.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.init=function(){this._min=null},e.prototype.accumulate=function(e){var t=e&&e.hasOwnProperty(this._field)?e[this._field]:null;null===t||""===t||isNaN(t)||(null===this._min||t0,i=this.validate(null,t),o=i&&i.valid?t:"";r?Object(R.setDeepValue)(e,n,o):n&&(e[n]=o)}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,n=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||n!==Y.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 n=(null==t?void 0:t.indexOf("."))>0?Object(R.getDescendantProperty)(e,t):e.hasOwnProperty(t)&&e[t]||"";this._originalValue=n,this._input.value=this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){var e;return null===(e=this._input)||void 0===e?void 0:e.value},e.prototype.validate=function(e,t){var n;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(Q.a)(r,{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minLength:this.columnEditor.minLength,maxLength:this.columnEditor.maxLength,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(_(_({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==r?r:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(_(_({},i),{item:l,grid:s,column:o,formValues:t.formValues,editors:t.editors}),_(_({},new Slick.EventData),e))},e.prototype.handleOnKeyUp=function(e){var t,n,r=this,i=this.args.compositeEditorOptions;if(i){var o=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(R.debounce)((function(){return r.handleChangeOnCompositeEditor(e,i)}),o)()}},e}(),T=n(61),N=n(35),P=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(t){var n=e.call(this,t,!1)||this;return n.args=t,n}return P(t,e),t}(N.a),K=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),J=function(e){function t(t){var n=e.call(this,t,!0)||this;return n.args=t,n}return K(t,e),t}(N.a),X=n(63);function ee(e,t){var n=isNaN(e)?null:parseInt(e,10);null!==n&&isNaN(n)&&(n=null);var r=t.errorMessage,o=t.required,a=t.minValue,l=t.maxValue,s=t.operatorConditionalType||"inclusive",d={"{{minValue}}":a,"{{maxValue}}":l},c=!0,A="";if(t.validator)return t.validator(e,t.editorArgs);if(o&&""===e)c=!1,A=r||i.a.VALIDATION_REQUIRED_FIELD;else if(""===e||!isNaN(e)&&/^[+-]?\d+$/.test(e)){if(void 0!==a&&void 0!==l&&null!==n&&("exclusive"===s&&(n<=a||n>=l)||"inclusive"===s&&(nl)))c=!1,A=r||i.a.VALIDATION_EDITOR_INTEGER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return d[e]}));else if(void 0!==a&&null!==n&&("exclusive"===s&&n<=a||"inclusive"===s&&null!==n&&n=l||"inclusive"===s&&null!==n&&n>l)){c=!1;p="inclusive"===s?i.a.VALIDATION_EDITOR_INTEGER_MAX_INCLUSIVE:i.a.VALIDATION_EDITOR_INTEGER_MAX;A=r||p.replace(/{{maxValue}}/gi,(function(e){return d[e]}))}}else c=!1,A=r||i.a.VALIDATION_EDITOR_VALID_INTEGER;return{valid:c,msg:A}}var te=function(){return(te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,i=this.validate(null,t),o=i&&i.valid?t:"";r?Object(R.setDeepValue)(e,n,o):e[n]=o}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,n=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||n!==o.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 n=(null==t?void 0:t.indexOf("."))>0?Object(R.getDescendantProperty)(e,t):e[t];this._originalValue=isNaN(n)||null==n?n:""+n,this._input.value=""+this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value;if(void 0===t||""===t||isNaN(+t))return t;var n=isNaN(+t)?t:parseInt(t,10);return isNaN(+n)?t:n},e.prototype.validate=function(e,t){var n;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:ee(void 0!==t?t:this.getValue(),{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minValue:this.columnEditor.minValue,maxValue:this.columnEditor.maxValue,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(te(te({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==r?r:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(te(te({},i),{item:l,grid:s,column:o,formValues:t.formValues,editors:t.editors}),te(te({},new Slick.EventData),e))},e.prototype.handleOnChange=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnKeyUp=function(e){var t,n,r=this,i=this.args.compositeEditorOptions;if(i){var o=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(R.debounce)((function(){return r.handleChangeOnCompositeEditor(e,i)}),o)()}},e}();function re(e,t){var n=isNaN(e)?null:parseFloat(e),r=t.decimal||0,o=t.required,a=t.minValue,l=t.maxValue,s=t.operatorConditionalType||"inclusive",d=t.errorMessage,c={"{{minValue}}":a,"{{maxValue}}":l,"{{minDecimal}}":0,"{{maxDecimal}}":r},A=!0,p="";if("function"==typeof t.validator)return t.validator(e,t.editorArgs);if(o&&""===e)A=!1,p=d||i.a.VALIDATION_REQUIRED_FIELD;else if(""!==e&&(isNaN(e)||0===r&&!/^[-+]?(\d*(\.)?(\d)*)$/.test(e)))A=!1,p=d||i.a.VALIDATION_EDITOR_VALID_NUMBER;else if(void 0!==a&&void 0!==l&&null!==n&&("exclusive"===s&&(n<=a||n>=l)||"inclusive"===s&&(nl)))A=!1,p=d||i.a.VALIDATION_EDITOR_NUMBER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return c[e]}));else if(void 0!==a&&null!==n&&("exclusive"===s&&n<=a||"inclusive"===s&&n=l||"inclusive"===s&&n>l)){A=!1;u="inclusive"===s?i.a.VALIDATION_EDITOR_NUMBER_MAX_INCLUSIVE:i.a.VALIDATION_EDITOR_NUMBER_MAX;p=d||u.replace(/{{maxValue}}/gi,(function(e){return c[e]}))}else r>0&&!new RegExp("^[-+]?(\\d*(\\.)?(\\d){0,"+r+"})$").test(e)&&(A=!1,p=d||i.a.VALIDATION_EDITOR_DECIMAL_BETWEEN.replace(/{{minDecimal}}|{{maxDecimal}}/gi,(function(e){return c[e]})));return{valid:A,msg:p}}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?"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 n=this.args.compositeEditorOptions;n&&this.handleChangeOnCompositeEditor(null,n)}},e.prototype.applyValue=function(e,t){var n=this.columnDef&&this.columnDef.field;if(void 0!==n){var r=(null==n?void 0:n.indexOf("."))>0,i=this.validate(null,t),o=i&&i.valid?t:"";r?Object(R.setDeepValue)(e,n,o):e[n]=o}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,n=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||n!==o.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 n=(null==t?void 0:t.indexOf("."))>0?Object(R.getDescendantProperty)(e,t):e[t];this._originalValue=n;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 n=parseFloat(t),r=this.getDecimalPlaces();return null!==r&&(n||0===n)&&n.toFixed&&(n=parseFloat(n.toFixed(r))),n},e.prototype.validate=function(e,t){var n,r;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:re(void 0!==t?t:null===(n=this._input)||void 0===n?void 0:n.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(ie(ie({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==r?r:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(ie(ie({},i),{item:l,grid:s,column:o,formValues:t.formValues,editors:t.editors}),ie(ie({},new Slick.EventData),e))},e.prototype.handleOnChange=function(e){var t=this.args.compositeEditorOptions;t&&this.handleChangeOnCompositeEditor(e,t)},e.prototype.handleOnKeyUp=function(e){var t,n,r=this,i=this.args.compositeEditorOptions;if(i){var o=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(R.debounce)((function(){return r.handleChangeOnCompositeEditor(e,i)}),o)()}},e}(),ae=n(64),le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,i=this.validate(null,t),o=i&&i.valid?t:"";r?Object(R.setDeepValue)(e,n,o):e[n]=o}},e.prototype.isValueChanged=function(){return this.serializeValue()!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t&&this._input){var n=(null==t?void 0:t.indexOf("."))>0?Object(R.getDescendantProperty)(e,t):e[t];this._originalValue=n,this._input.checked=!!this._originalValue}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){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 n,r,o=!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,a=void 0!==t?t:null===(r=this._input)||void 0===r?void 0:r.checked,l=this.columnEditor.errorMessage;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:this.validator?this.validator(a,this.args):o&&!a?{valid:!1,msg:l||i.a.VALIDATION_REQUIRED_FIELD}:{valid:!0,msg:null}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(le(le({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==r?r:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(le(le({},i),{item:l,grid:s,column:o,formValues:t.formValues,editors:t.editors}),le(le({},new Slick.EventData),e))},e}(),de=n(65),ce=(n(62),function(){return(ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&n.forEach((function(t){return t.removeEventListener("focusout",e.handleFocusOut.bind(e))}))},e.prototype.createInput=function(e){var t,n=this.editorParams[e],r=this.columnDef&&this.columnDef.id,i=this.gridOptions.datasetIdPropertyName||"id",o=(null===(t=this.args)||void 0===t?void 0:t.item[i])||0,a=n.type||"text";"float"!==a&&"integer"!==a||(a="number");var l=document.createElement("input");return l.id="item-"+o+"-"+e,l.className="dual-editor-text editor-"+r+" "+e.replace(/input/gi,""),"readonly"===a&&(l.readOnly=!0,a="text"),l.type=a||"text",l.setAttribute("role","presentation"),l.autocomplete="off",l.placeholder=n.placeholder||"",l.title=n.title||"","number"===a&&(l.step=this.getInputDecimalSteps(e)),l},e.prototype.disable=function(e){var t,n;void 0===e&&(e=!0);var r=this.disabled;this.disabled=e,this._leftInput&&this._rightInput&&(e?(this._leftInput.setAttribute("disabled","disabled"),this._rightInput.setAttribute("disabled","disabled"),r!==e&&(null===(t=this.args)||void 0===t?void 0:t.compositeEditorOptions)&&(this._originalLeftValue="",this._originalRightValue="",this._leftInput.value="",this._rightInput.value="",this.handleChangeOnCompositeEditor(null,null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions))):(this._leftInput.removeAttribute("disabled"),this._rightInput.removeAttribute("disabled")))},e.prototype.focus=function(){},e.prototype.show=function(){var e;!!(null===(e=this.args)||void 0===e?void 0:e.compositeEditorOptions)&&this.applyInputUsabilityState()},e.prototype.getValues=function(){var e={},t=this._leftInput.value,n=this._rightInput.value,r=this.editorParams.leftInput&&("float"===this.editorParams.leftInput.type||"integer"===this.editorParams.leftInput.type),i=this.editorParams.rightInput&&("float"===this.editorParams.rightInput.type||"integer"===this.editorParams.rightInput.type),o=""!==t&&r?+this._leftInput.value:t||"",a=""!==n&&i?+this._rightInput.value:n||"";return Object(R.setDeepValue)(e,this._leftFieldName,o),Object(R.setDeepValue)(e,this._rightFieldName,a),e},e.prototype.setValues=function(e){Array.isArray(e)&&2===e.length&&(this._leftInput.value=""+e[0],this._rightInput.value=""+e[1])},e.prototype.applyValue=function(e,t){this.applyValueByPosition(e,t,"leftInput"),this.applyValueByPosition(e,t,"rightInput")},e.prototype.applyValueByPosition=function(e,t,n){var r="leftInput"===n?this._leftFieldName:this._rightFieldName;if(void 0!==r){var i=(null==r?void 0:r.indexOf("."))>0,o=r;if(i){var a=r.split(/\.(.*)/);o=a.length>1?a[1]:a}var l=i?Object(R.getDescendantProperty)(t,o):t[r],s=this.validate(null,{position:n,inputValue:l});if(i){var d=Object(R.getDescendantProperty)(t,o),c=s&&s.valid?d:"";Object(R.setDeepValue)(e,r,c)}else r&&(e[r]=s&&s.valid?t[r]:"")}},e.prototype.isValueChanged=function(){var e=this._leftInput.value,t=this._rightInput.value,n=this.editorParams&&this.editorParams.leftInput,r=this.editorParams&&this.editorParams.rightInput,i=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;if((n&&n.alwaysSaveOnEnterKey||r&&r.alwaysSaveOnEnterKey)&&i===Y.a.ENTER)return!0;var o=!(""===e&&(null===this._originalLeftValue||void 0===this._originalLeftValue))&&e!==this._originalLeftValue,a=!(""===t&&(null===this._originalRightValue||void 0===this._originalRightValue))&&t!==this._originalRightValue;return o||a},e.prototype.loadValue=function(e){this.loadValueByPosition(e,"leftInput"),this.loadValueByPosition(e,"rightInput"),this._leftInput.select()},e.prototype.loadValueByPosition=function(e,t){var n="leftInput"===t?this._leftFieldName:this._rightFieldName,r="leftInput"===t?"_originalLeftValue":"_originalRightValue",i="leftInput"===t?"_leftInput":"_rightInput";if(e&&void 0!==n){var o=(null==n?void 0:n.indexOf("."))>0?Object(R.getDescendantProperty)(e,n):e.hasOwnProperty(n)?e[n]:"";if(this[r]=o,"float"===this.editorParams[t].type){var a=this.getDecimalPlaces(t);null!==a&&(this[r]||0===this[r])&&(+this[r]).toFixed&&(this[r]=(+this[r]).toFixed(a))}this[i]&&(this[i].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"),n=this.serializeValueByPosition("rightInput");return Object(R.setDeepValue)(e,this._leftFieldName,t),Object(R.setDeepValue)(e,this._rightFieldName,n),e},e.prototype.serializeValueByPosition=function(e){var t="leftInput"===e?this._leftInput.value:this._rightInput.value;if(""===t||isNaN(+t))return t;var n=parseFloat(t),r=this.getDecimalPlaces(e);return null!==r&&(n||0===n)&&n.toFixed&&(n=parseFloat(n.toFixed(r))),n},e.prototype.getDecimalPlaces=function(e){var t="leftInput"===e?"leftInput":"rightInput",n=this.editorParams[t],r=null==n?void 0:n.decimal;return void 0===r?0:r},e.prototype.getInputDecimalSteps=function(e){for(var t=this.getDecimalPlaces(e),n="",r=1;r0?"0."+n+"1":"1"},e.prototype.validate=function(e,t){if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};if(t){var n=this.validateByPosition(t.position,t.inputValue);if(!n.valid)return"leftInput"===t.position?this._leftInput.select():this._rightInput.select(),n}else{var r=this.validateByPosition("leftInput"),i=this.validateByPosition("rightInput");if(!r.valid)return this._leftInput.select(),r;if(!i.valid)return this._rightInput.select(),i}return{valid:!0,msg:""}},e.prototype.validateByPosition=function(e,t){var n,r=this.editorParams[e],i="";if(t)i=t;else{var o="leftInput"===e?this._leftInput:this._rightInput;i=o&&o.value}var a=this.validator;i="function"==typeof a?this.getValues():i;var l={editorArgs:this.args,errorMessage:r.errorMessage,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&r.required,validator:"function"==typeof a?a:r.validator};switch(r.type){case"float":return re(i,ce(ce({},l),{decimal:this.getDecimalPlaces(e),minValue:r.minValue,maxValue:r.maxValue,operatorConditionalType:r.operatorConditionalType}));case"integer":return ee(i,ce(ce({},l),{minValue:r.minValue,maxValue:r.maxValue,operatorConditionalType:r.operatorConditionalType}));case"text":case"password":default:return Object(Q.a)(i,l)}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(ce(ce({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i,o,a,l,s=this.grid.getActiveCell(),d=this.args.column,c=null!==(i=null===(r=null===(n=this.columnEditor.params)||void 0===n?void 0:n.leftInput)||void 0===r?void 0:r.field)&&void 0!==i?i:"",A=null!==(l=null===(a=null===(o=this.columnEditor.params)||void 0===o?void 0:o.rightInput)||void 0===a?void 0:a.field)&&void 0!==l?l:"",p=this.args.item,u=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(c)&&delete t.formValues[c],this.disabled&&t.formValues.hasOwnProperty(A)&&delete t.formValues[A],u.onCompositeEditorChange.notify(ce(ce({},s),{item:p,grid:u,column:d,formValues:t.formValues,editors:t.editors}),ce(ce({},new Slick.EventData),e))},e}(),pe={autoComplete:ae.a,checkbox:se,date:de.a,dualInput:Ae,float:oe,integer:ne,longText:X.a,multipleSelect:J,singleSelect:j,slider:T.a,text:Z},ue=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&(this._addon.destroy(),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(o.ExtensionName.autoTooltip);var e=this.sharedService.gridOptions.autoTooltipOptions;return this._addon=new Slick.AutoTooltips(e),this._addon&&this.sharedService.slickGrid.registerPlugin(this._addon),this._addon}return null},e}(),Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e._commandQueue.length)){var n=e._commandQueue[t];t++,n&&Slick.GlobalEditorLock.cancelCurrentEdit()&&n.execute()}}}},e.prototype.getDefaultOptions=function(){var e=this,t=0;return{clipboardCommandHandler:function(t){e._undoRedoBuffer.queueAndExecuteCommand.call(e._undoRedoBuffer,t)},dataItemColumnValueExtractor:function(t,n){if(!e.sharedService.gridOptions.editable||!n.editor){var r=void 0!==n.exportWithFormatter?n.exportWithFormatter:e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.exportWithFormatter;if(n.formatter&&r){var i=n.formatter(0,0,t[n.field],n,t,e.sharedService.slickGrid);if(n.sanitizeDataExport||e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.sanitizeDataExport){var o=i;return i&&"object"==typeof i&&i.hasOwnProperty("text")&&(o=i.text),null===o&&(o=""),Object(R.sanitizeHtmlToText)(o)}return i}}return null},readOnlyMode:!1,includeHeaderWhenCopying:!1,newRowCreator:function(n){for(var r=0;r0?e.splice(i,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}(),Be=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t,this._eventHandler=new Slick.EventHandler}return Object.defineProperty(e.prototype,"eventHandler",{get:function(){return this._eventHandler},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&(this._addon.destroy(),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"),n=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),r=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","columnPicker");if(this.sharedService.gridOptions.columnPicker=this.sharedService.gridOptions.columnPicker||{},this.sharedService.gridOptions.columnPicker.columnTitle=this.sharedService.gridOptions.columnPicker.columnTitle||t,this.sharedService.gridOptions.columnPicker.forceFitTitle=this.sharedService.gridOptions.columnPicker.forceFitTitle||n,this.sharedService.gridOptions.columnPicker.syncResizeTitle=this.sharedService.gridOptions.columnPicker.syncResizeTitle||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.sharedService.gridOptions.columnPicker.onExtensionRegistered&&this.sharedService.gridOptions.columnPicker.onExtensionRegistered(this._addon);var i=this._addon.onColumnsChanged;this._eventHandler.subscribe(i,(function(t,n){e.sharedService.gridOptions.columnPicker&&"function"==typeof e.sharedService.gridOptions.columnPicker.onColumnsChanged&&e.sharedService.gridOptions.columnPicker.onColumnsChanged(t,n),n&&Array.isArray(n.columns)&&n.columns.length!==e.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=n.columns)}))}return this._addon}return null},e.prototype.translateColumnPicker=function(){var e,t,n;this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions&&(this.sharedService.gridOptions.columnPicker&&(this.emptyColumnPickerTitles(),this.sharedService.gridOptions.columnPicker.columnTitle=this.extensionUtility.getPickerTitleOutputString("columnTitle","columnPicker"),this.sharedService.gridOptions.columnPicker.forceFitTitle=this.extensionUtility.getPickerTitleOutputString("forceFitTitle","columnPicker"),this.sharedService.gridOptions.columnPicker.syncResizeTitle=this.extensionUtility.getPickerTitleOutputString("syncResizeTitle","columnPicker")),this.extensionUtility.translateItems(this.sharedService.allColumns,"nameKey","name"),(null===(e=this._addon)||void 0===e?void 0:e.updateAllTitles)&&(null===(n=null===(t=this.sharedService)||void 0===t?void 0:t.gridOptions)||void 0===n?void 0:n.columnPicker)&&this._addon.updateAllTitles(this.sharedService.gridOptions.columnPicker))},e.prototype.emptyColumnPickerTitles=function(){this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.columnPicker&&(this.sharedService.gridOptions.columnPicker.columnTitle="",this.sharedService.gridOptions.columnPicker.forceFitTitle="",this.sharedService.gridOptions.columnPicker.syncResizeTitle="")},e}(),xe=n(58),we=function(){return(we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}})}if(i&&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(s+"COLLAPSE_ALL_GROUPS","TEXT_COLLAPSE_ALL_GROUPS"),disabled:!1,command:"collapse-all-groups",positionOrder:56,action:function(){i.enableTreeData?n.treeDataService.toggleTreeDataCollapse(!0):l.collapseAllGroups()},itemUsabilityOverride:function(){if(i.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}if(i&&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(s+"EXPAND_ALL_GROUPS","TEXT_EXPAND_ALL_GROUPS"),disabled:!1,command:"expand-all-groups",positionOrder:57,action:function(){i.enableTreeData?n.treeDataService.toggleTreeDataCollapse(!1):l.expandAllGroups()},itemUsabilityOverride:function(){if(i.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||{},n=e&&e.cell||0,r=e&&e.row||0,i=e&&e.column,o=e&&e.dataContext,a=this.sharedService&&this.sharedService.slickGrid,l=t&&(t.excelExportOptions||t.exportOptions),s=Object(xe.a)(r,n,o,i,a,l);"function"==typeof i.queryFieldNameGetterFn&&(s=this.getCellValueFromQueryFieldGetter(i,o));var d=document.createElement("textarea");if(d&&document.body)d.style.position="absolute",d.style.left="-1000px",d.style.top="-1000px",d.value=s,document.body.appendChild(d),d.select(),document.execCommand("copy",!1,s)&&d.remove()}}catch(e){}},e.prototype.getCellValueFromQueryFieldGetter=function(e,t){var n="";if("function"==typeof e.queryFieldNameGetterFn){var r=e.queryFieldNameGetterFn(t);n=(null==r?void 0:r.indexOf("."))>=0?Object(R.getDescendantProperty)(t,r):t[r]}return n},e}(),ye=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t,this._eventHandler=new Slick.EventHandler}return Object.defineProperty(e.prototype,"eventHandler",{get:function(){return this._eventHandler},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&(this._addon.destroy(),this._addon=null)},e.prototype.create=function(e){return e?(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.draggableGrouping),this._addon||(this._addon=new Slick.DraggableGrouping(e.draggableGrouping)),this._addon):null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){var e=this;if(this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.sharedService.slickGrid.registerPlugin(this._addon),this.sharedService.slickGrid&&this.sharedService.gridOptions.draggableGrouping&&(this._addon&&this.sharedService.gridOptions.draggableGrouping.onExtensionRegistered&&this.sharedService.gridOptions.draggableGrouping.onExtensionRegistered(this._addon),this._addon&&this._addon.onGroupChanged)){var t=this._addon.onGroupChanged;this._eventHandler.subscribe(t,(function(t,n){e.sharedService.gridOptions.draggableGrouping&&"function"==typeof e.sharedService.gridOptions.draggableGrouping.onGroupChanged&&e.sharedService.gridOptions.draggableGrouping.onGroupChanged(t,n)}))}return this._addon}return null},e}(),De=function(){function e(e,t){this.sharedService=e,this.translaterService=t}return e.prototype.loadExtensionDynamically=function(e){try{switch(e){case he.a.autoTooltip:n(215);break;case he.a.cellExternalCopyManager:n(216);break;case he.a.checkboxSelector:n(217);break;case he.a.cellMenu:n(218);break;case he.a.columnPicker:n(219);break;case he.a.contextMenu:n(220);break;case he.a.draggableGrouping:n(221);break;case he.a.gridMenu:n(222);break;case he.a.groupItemMetaProvider:n(223);break;case he.a.headerButton:n(224);break;case he.a.headerMenu:n(225);break;case he.a.rowSelection:n(226);break;case he.a.rowDetailView:n(227);break;case he.a.rowMoveManager:n(228)}}catch(e){}},e.prototype.getPickerTitleOutputString=function(e,t){var n,r,o,a,l,s,d,c,A;if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate&&(!this.translaterService||!this.translaterService.translate))throw new Error('[Slickgrid-Universal] requires a Translate Service to be installed and configured when the grid option "enableTranslate" is enabled.');var p="",u=this.sharedService.gridOptions&&this.sharedService.gridOptions[t]||{},C=this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate||!1,g=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.locales||i.a.locales,h=u&&u[e],m=u&&u[e+"Key"],f=this.sharedService.gridOptions,b=Object(R.getTranslationPrefix)(f);if(m&&(null===(n=this.translaterService)||void 0===n?void 0:n.translate))p=this.translaterService.translate(m||" ");else switch(e){case"customTitle":p=h||C&&(null===(r=this.translaterService)||void 0===r?void 0:r.getCurrentLanguage)&&(null===(o=this.translaterService)||void 0===o?void 0:o.translate(b+"COMMANDS"||!1))||(null==g?void 0:g.TEXT_COMMANDS);break;case"columnTitle":p=h||C&&(null===(a=this.translaterService)||void 0===a?void 0:a.getCurrentLanguage)&&(null===(l=this.translaterService)||void 0===l?void 0:l.translate(b+"COLUMNS"||!1))||(null==g?void 0:g.TEXT_COLUMNS);break;case"forceFitTitle":p=h||C&&(null===(s=this.translaterService)||void 0===s?void 0:s.getCurrentLanguage)&&(null===(d=this.translaterService)||void 0===d?void 0:d.translate(b+"FORCE_FIT_COLUMNS"||!1))||(null==g?void 0:g.TEXT_FORCE_FIT_COLUMNS);break;case"syncResizeTitle":p=h||C&&(null===(c=this.translaterService)||void 0===c?void 0:c.getCurrentLanguage)&&(null===(A=this.translaterService)||void 0===A?void 0:A.translate(b+"SYNCHRONOUS_RESIZE"||!1))||(null==g?void 0:g.TEXT_SYNCHRONOUS_RESIZE);break;default:p=h}return p},e.prototype.sortItems=function(e,t){Array.isArray(e)&&e.sort((function(e,n){return e&&n&&e.hasOwnProperty(t)&&n.hasOwnProperty(t)?e[t]-n[t]:0}))},e.prototype.translateItems=function(e,t,n){if(Array.isArray(e))for(var r=0,i=e;re.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=n.columns)}));var a=this._addon.onCommand;a&&this._eventHandler.subscribe(a,(function(t,n){e.executeGridMenuInternalCustomCommands(t,n),e.sharedService.gridOptions.gridMenu&&"function"==typeof e.sharedService.gridOptions.gridMenu.onCommand&&e.sharedService.gridOptions.gridMenu.onCommand(t,n)}));var l=this._addon.onMenuClose;l&&this._eventHandler.subscribe(l,(function(t,n){if(e.sharedService.gridOptions.gridMenu&&"function"==typeof e.sharedService.gridOptions.gridMenu.onMenuClose&&e.sharedService.gridOptions.gridMenu.onMenuClose(t,n),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=Ee(Ee({},this.sharedService.gridOptions),e)),Object($e.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,n=[],r=this.sharedService.gridOptions,i=Object(R.getTranslationPrefix)(r);if(this.sharedService.gridOptions&&this.sharedService.gridOptions.gridMenu&&!this.sharedService.gridOptions.gridMenu.hideClearFrozenColumnsCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-frozen-columns"===e.command}))||n.push({iconCssClass:this.sharedService.gridOptions.gridMenu.iconClearFrozenColumnsCommand||"fa fa-times",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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.sharedService.gridOptions.gridMenu&&!this.sharedService.gridOptions.gridMenu.hideClearAllFiltersCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-filter"===e.command}))||n.push({iconCssClass:this.sharedService.gridOptions.gridMenu.iconClearAllFiltersCommand||"fa fa-filter text-danger",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"CLEAR_ALL_FILTERS","TEXT_CLEAR_ALL_FILTERS"),disabled:!1,command:"clear-filter",positionOrder:50})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.gridMenu&&!this.sharedService.gridOptions.gridMenu.hideToggleFilterCommand){e.find((function(e){return e.hasOwnProperty("command")&&"toggle-filter"===e.command}))||n.push({iconCssClass:this.sharedService.gridOptions.gridMenu.iconToggleFilterCommand||"fa fa-random",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"TOGGLE_FILTER_ROW","TEXT_TOGGLE_FILTER_ROW"),disabled:!1,command:"toggle-filter",positionOrder:52})}if(t&&this.sharedService.gridOptions&&this.sharedService.gridOptions.gridMenu&&!this.sharedService.gridOptions.gridMenu.hideRefreshDatasetCommand){e.find((function(e){return e.hasOwnProperty("command")&&"refresh-dataset"===e.command}))||n.push({iconCssClass:this.sharedService.gridOptions.gridMenu.iconRefreshDatasetCommand||"fa fa-refresh",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"REFRESH_DATASET","TEXT_REFRESH_DATASET"),disabled:!1,command:"refresh-dataset",positionOrder:56})}}if(this.sharedService.gridOptions.showPreHeaderPanel&&this.sharedService.gridOptions&&this.sharedService.gridOptions.gridMenu&&!this.sharedService.gridOptions.gridMenu.hideTogglePreHeaderCommand){e.find((function(e){return e.hasOwnProperty("command")&&"toggle-preheader"===e.command}))||n.push({iconCssClass:this.sharedService.gridOptions.gridMenu.iconTogglePreHeaderCommand||"fa fa-random",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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.sharedService.gridOptions.gridMenu&&!this.sharedService.gridOptions.gridMenu.hideClearAllSortingCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-sorting"===e.command}))||n.push({iconCssClass:this.sharedService.gridOptions.gridMenu.iconClearAllSortingCommand||"fa fa-unsorted text-danger",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"CLEAR_ALL_SORTING","TEXT_CLEAR_ALL_SORTING"),disabled:!1,command:"clear-sorting",positionOrder:51})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableExport&&this.sharedService.gridOptions.gridMenu&&!this.sharedService.gridOptions.gridMenu.hideExportCsvCommand){e.find((function(e){return e.hasOwnProperty("command")&&"export-csv"===e.command}))||n.push({iconCssClass:this.sharedService.gridOptions.gridMenu.iconExportCsvCommand||"fa fa-download",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"EXPORT_TO_CSV","TEXT_EXPORT_TO_CSV"),disabled:!1,command:"export-csv",positionOrder:53})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableExcelExport&&this.sharedService.gridOptions.gridMenu&&!this.sharedService.gridOptions.gridMenu.hideExportExcelCommand){e.find((function(e){return e.hasOwnProperty("command")&&"export-excel"===e.command}))||n.push({iconCssClass:this.sharedService.gridOptions.gridMenu.iconExportExcelCommand||"fa fa-file-excel-o text-success",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"EXPORT_TO_EXCEL","TEXT_EXPORT_TO_EXCEL"),disabled:!1,command:"export-excel",positionOrder:54})}if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableExport&&this.sharedService.gridOptions.gridMenu&&!this.sharedService.gridOptions.gridMenu.hideExportTextDelimitedCommand){e.find((function(e){return e.hasOwnProperty("command")&&"export-text-delimited"===e.command}))||n.push({iconCssClass:this.sharedService.gridOptions.gridMenu.iconExportTextDelimitedCommand||"fa fa-download",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"EXPORT_TO_TAB_DELIMITED","TEXT_EXPORT_TO_TAB_DELIMITED"),disabled:!1,command:"export-text-delimited",positionOrder:55})}return this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.gridMenu&&(Array.isArray(n)&&n.length>0||Array.isArray(this.sharedService.gridOptions.gridMenu.customItems)&&this.sharedService.gridOptions.gridMenu.customItems.length>0)&&(this.sharedService.gridOptions.gridMenu.customTitle=this.sharedService.gridOptions.gridMenu.customTitle||this.extensionUtility.getPickerTitleOutputString("customTitle","gridMenu")),n},e.prototype.executeGridMenuInternalCustomCommands=function(e,t){var n,r=(null===(n=this.sharedService)||void 0===n?void 0:n.externalRegisteredServices)||[];if(t&&t.command)switch(t.command){case"clear-frozen-columns":var i=Me(this.sharedService.visibleColumns);this.sharedService.slickGrid.setOptions({frozenColumn:-1}),Array.isArray(i)&&Array.isArray(this.sharedService.allColumns)&&i.length!==this.sharedService.allColumns.length&&this.sharedService.slickGrid.setColumns(i);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 a=r.find((function(e){return"FileExportService"===e.className}));if(!(null==a?void 0:a.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()] };");a.exportToFile({delimiter:o.DelimiterType.comma,filename:"export",format:o.FileType.csv,useUtf8WithBom:!0});break;case"export-excel":var l=r.find((function(e){return"ExcelExportService"===e.className}));if(!(null==l?void 0:l.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()] };");l.exportToExcel({filename:"export",format:o.FileType.xlsx});break;case"export-text-delimited":var s=r.find((function(e){return"FileExportService"===e.className}));if(!(null==s?void 0:s.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()] };");s.exportToFile({delimiter:o.DelimiterType.tab,filename:"export",format:o.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 c=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showTopPanel||!1;this.sharedService.slickGrid.setTopPanelVisibility(!c);break;case"toggle-preheader":var A=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showPreHeaderPanel||!1;this.sharedService.slickGrid.setPreHeaderPanelVisibility(!A);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}(),Le=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}(),Ve=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._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){if(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.headerButton),this._addon=new Slick.Plugins.HeaderButtons(this.sharedService.gridOptions.headerButton),this._addon&&this.sharedService.slickGrid.registerPlugin(this._addon),this._addon&&this.sharedService.slickGrid&&this.sharedService.gridOptions.headerButton){this.sharedService.gridOptions.headerButton.onExtensionRegistered&&this.sharedService.gridOptions.headerButton.onExtensionRegistered(this._addon);var t=this._addon.onCommand;t&&this._eventHandler.subscribe(t,(function(t,n){e.sharedService.gridOptions.headerButton&&"function"==typeof e.sharedService.gridOptions.headerButton.onCommand&&e.sharedService.gridOptions.headerButton.onCommand(t,n)}))}return this._addon}return null},e}(),ze=function(){return(ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?e.splice(l,0,a):e.unshift(a)}return this._addon}return null},e.prototype.loadAddonWhenNotExists=function(e,t){return Array.isArray(e)&&t?(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.rowMoveManager),this._addon||(this._addon=new Slick.RowMoveManager((null==t?void 0:t.rowMoveManager)||{cancelEditOnDrag:!0})),this._addon):null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(e){var t=this;if(this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.rowMoveManager),e&&this.sharedService.slickGrid.getSelectionModel()||(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.rowSelection),e=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this.sharedService.slickGrid.setSelectionModel(e)),this._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 n=this._addon.onBeforeMoveRows;n&&this._eventHandler.subscribe(n,(function(e,n){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows&&t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows(e,n)}));var r=this._addon.onMoveRows;r&&this._eventHandler.subscribe(r,(function(e,n){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onMoveRows&&t.sharedService.gridOptions.rowMoveManager.onMoveRows(e,n)}))}return this._addon}return null},e}(),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}(),Ie=(n(44),n(46),function(e,t,n){if(n&&Array.isArray(n)&&n.length>0){var r=n.join(", ");return''+r+""}return n}),Ge=n(13);function We(e,t,n,r){var i=n&&"function"==typeof n.getOptions?n.getOptions():{},o=t&&t.params;return o&&o.hasOwnProperty(e)?o[e]:i.formatterOptions&&i.formatterOptions.hasOwnProperty(e)?i.formatterOptions[e]:r}function Oe(e,t){var n=Object(R.mapMomentDateFormatWithFieldType)(e);return function(e,r,i,o,a,l){var s,d,c,A,p=l&&"function"==typeof l.getOptions?l.getOptions():{},u=null!==(d=null===(s=null==p?void 0:p.formatterOptions)||void 0===s?void 0:s.dateSeparator)&&void 0!==d?d:t,C=null!==(A=null===(c=null==o?void 0:o.params)||void 0===c?void 0:c.parseDateAsUtc)&&void 0!==A&&A,g=Ge(i,n,!1).isValid(),h=i;if(i&&g&&(h=C?Ge.utc(i).format(n):Ge(i).format(n)),h&&u!==t){var m=new RegExp(t,"ig");h=h.replace(m,u)}return h}}var Ye={arrayObjectToCsv:function(e,t,n,r,i){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(i[l]&&Array.isArray(i[l])&&Array.isArray(i[l])&&i[l].length>0){var s=[];i[l].forEach((function(e){var t=[];a.forEach((function(n){t.push(e[n])})),s.push(t.join(" "))}));var d=s.join(", ");return''+d+""}return n},arrayToCsv:Ie,bold:function(e,t,n){return n?""+n+"":""},center:function(e,t,n){return void 0!==n&&"string"!=typeof n&&(n+=""),"
"+n+"
"},checkbox:function(e,t,n){return n?"☑":""},checkmark:function(e,t,n){var r=!1,i=null!=n&&""!==n&&!isNaN(+n);return i&&(n=+n),(!0===n||i&&+n>0||"string"==typeof n&&n.length>0&&"false"!==n.toLowerCase()&&"0"!==n)&&(r=!0),r?'':""},checkmarkMaterial:function(e,t,n){var r=!1,i=null!=n&&""!==n&&!isNaN(+n);return i&&(n=+n),(!0===n||i&&+n>0||"string"==typeof n&&n.length>0&&"false"!==n.toLowerCase()&&"0"!==n)&&(r=!0),r?'':""},complexObject:function(e,t,n,r,i){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&&i.hasOwnProperty(a)?i[a]&&i[a][r.labelKey]:"string"==typeof a&&a.indexOf(".")>0?a.split(".").reduce((function(e,t){return e&&e.hasOwnProperty(t)?e[t]:n}),i):n},collection:function(e,t,n,r,i){if(!(n&&r&&r.params&&r.params.collection&&r.params.collection.length))return n;var o=r.params,a=r.params.collection,l=o.customStructure?o.customStructure.label:"label",s=o.customStructure?o.customStructure.value:"value";return Array.isArray(n)?Ie(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t[s]===e}))[l]}))):Object(U.s)(a,(function(e){return e[s]===n}))[l]||""},collectionEditor:function(e,t,n,r,i){if(!(n&&r&&r.internalColumnEditor&&r.internalColumnEditor.collection&&r.internalColumnEditor.collection.length))return n;var o=r.internalColumnEditor,a=r.internalColumnEditor.collection,l=o.customStructure?o.customStructure.label:"label",s=o.customStructure?o.customStructure.value:"value";return Array.isArray(n)?a.every((function(e){return"string"==typeof e}))?Ie(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t===e}))}))):Ie(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t[s]===e}))[l]}))):Object(U.s)(a,(function(e){return e[s]===n}))[l]||""},dateIso:Oe(o.FieldType.dateIso,"-"),dateTimeIso:Oe(o.FieldType.dateTimeIso,"-"),dateTimeShortIso:Oe(o.FieldType.dateTimeShortIso,"-"),dateTimeIsoAmPm:Oe(o.FieldType.dateTimeIsoAmPm,"-"),dateEuro:Oe(o.FieldType.dateEuro,"/"),dateTimeEuro:Oe(o.FieldType.dateTimeEuro,"/"),dateTimeShortEuro:Oe(o.FieldType.dateTimeShortEuro,"/"),dateTimeEuroAmPm:Oe(o.FieldType.dateTimeEuroAmPm,"/"),dateUs:Oe(o.FieldType.dateUs,"/"),dateTimeUs:Oe(o.FieldType.dateTimeUs,"/"),dateTimeShortUs:Oe(o.FieldType.dateTimeShortUs,"/"),dateTimeUsAmPm:Oe(o.FieldType.dateTimeUsAmPm,"/"),deleteIcon:function(){return''},decimal:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o,2),s=We("maxDecimal",r,o,2),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?Object(R.formatNumber)(n,l,s,A,"","",d,c):n},dollar:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o,2),s=We("maxDecimal",r,o,4),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?Object(R.formatNumber)(n,l,s,A,"$","",d,c):n},dollarColored:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o,2),s=We("maxDecimal",r,o,4),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?''+Object(R.formatNumber)(n,l,s,A,"$","",d,c)+"":n},dollarColoredBold:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o,2),s=We("maxDecimal",r,o,4),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?''+Object(R.formatNumber)(n,l,s,A,"$","",d,c)+"":n},editIcon:function(){return''},hyperlink:function(e,t,n,r,i,o){var a=r&&r.params||{},l=o&&"function"==typeof o.getOptions?o.getOptions():{},s=a.hyperlinkText?a.hyperlinkText:n;s=Object(R.sanitizeTextByAvailableSanitizer)(l,s);var d=a.hyperlinkUrl?a.hyperlinkUrl:n,c=(d=Object(R.sanitizeTextByAvailableSanitizer)(l,d)).match(/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/i);return c&&Array.isArray(c)&&c.length>0?''+s+"":n},icon:function(e,t,n,r){var i=r&&r.params||{},o=i.icon||i.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,n){return n?""+n+"":""},lowercase:function(e,t,n){return void 0!==n&&"string"!=typeof n&&(n+=""),n?n.toLowerCase():""},mask:function(e,t,n,r){var i=(r.params||{}).mask;if(!i)throw new Error('You must provide a "mask" via the generic "params" options (e.g.: { formatter: Formatters.mask, params: { mask: \'000-000\' }}');if(n){var o=0,a=n.toString();return i.replace(/[09A]/gi,(function(){return a[o++]||""}))}return n},multiple:function(e,t,n,r,i,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=n,s=0,d=a.formatters;s'+(n>100?"100%":u)+""}return n},percentCompleteBar:function(e,t,n){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var r=parseFloat(n);return r>100&&(r=100),''},percentCompleteBarWithText:function(e,t,n){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var r=parseFloat(n);return r>100&&(r=100),'
'+r+"%
"},percentSymbol:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o),s=We("maxDecimal",r,o),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?Object(R.formatNumber)(n,l,s,A,"","%",d,c):n},progressBar:function(e,t,n){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var r="",i=parseFloat(n);return i>100&&(i=100),('
\n
\n '+i+"%\n
\n
").replace(/\s{2,}/g," ").trim()},translate:function(e,t,n,r,i,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).i18n||r&&r.params&&r.params.i18n;if(!a||"function"!=typeof a.translate)throw new Error('The translate formatter requires the Translate Service to be provided as a Grid Options or Column Definition "i18n".\n For example: this.gridOptions = { enableTranslate: true, i18n: this.translateService }');return null!=n&&"string"!=typeof n&&(n+=""),n?a.translate(n):""},translateBoolean:function(e,t,n,r,i,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).i18n||r&&r.params&&r.params.i18n;if(!a||"function"!=typeof a.translate)throw new Error('The translate formatter requires the Translate Service to be provided as a Grid Options or Column Definition "i18n".\n For example: this.gridOptions = { enableTranslate: true, i18n: this.translateService }');return null!=n&&"string"!=typeof n&&(n+=""),n?a.translate(n.toUpperCase()):""},tree:function(e,t,n,r,i,o){var a=null==o?void 0:o.getData(),l=null==o?void 0:o.getOptions(),s=null==l?void 0:l.treeDataOptions,d=(null==s?void 0:s.levelPropName)||"__treeLevel",c=(null==s?void 0:s.indentMarginLeft)||15,A=n;if("function"==typeof r.queryFieldNameGetterFn){var p=r.queryFieldNameGetterFn(i);A=(null==p?void 0:p.indexOf("."))>=0?Object(R.getDescendantProperty)(i,p):i.hasOwnProperty(p)?i[p]:n}if(null==A||void 0===i)return"";if(!i.hasOwnProperty(d))throw new Error('You must provide valid "treeDataOptions" in your Grid Options and it seems that there are no tree level found in this row');if(a&&a.getIdxById&&a.getItemByIdx){"string"==typeof A&&(A=Object(R.htmlEncode)(A));var u=a.getIdPropertyName()||"id",C='',g=a.getIdxById(i[u]),h=a.getItemByIdx((g||0)+1);return h&&h[d]>i[d]?i.__collapsed?C+' '+A:C+' '+A:C+' '+A}return""},uppercase:function(e,t,n){return void 0!==n&&"string"!=typeof n&&(n+=""),n?n.toUpperCase():""},yesNo:function(e,t,n){return n?"Yes":"No"}},Re={avgTotals:function(e,t,n){var r=t.field||"",i=e.avg&&e.avg[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);if(null!==i&&!isNaN(+i)){if(i<0){if(i=Math.abs(i),p)return isNaN(s)&&isNaN(d)?a+"("+Object(R.thousandSeparatorFormatted)(Math.round(i),A)+")"+l:a+"("+Object(R.decimalFormatted)(i,s,d,c,A)+")"+l;a+="-"}return isNaN(s)&&isNaN(d)?""+a+Object(R.thousandSeparatorFormatted)(Math.round(i),A)+l:""+a+Object(R.decimalFormatted)(i,s,d,c,A)+l}return""},avgTotalsDollar:function(e,t,n){var r=t.field||"",i=e.avg&&e.avg[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l},avgTotalsPercentage:function(e,t,n){var r=t.field||"",i=e.avg&&e.avg[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);if(null!==i&&!isNaN(+i)){if(i<0){if(i=Math.abs(i),p)return isNaN(s)&&isNaN(d)?a+"("+Object(R.thousandSeparatorFormatted)(Math.round(i),A)+"%)"+l:a+"("+Object(R.decimalFormatted)(i,s,d,c,A)+"%)"+l;a+="-"}return isNaN(s)&&isNaN(d)?""+a+Object(R.thousandSeparatorFormatted)(Math.round(i),A)+"%"+l:""+a+Object(R.decimalFormatted)(i,s,d,c,A)+"%"+l}return""},maxTotals:function(e,t,n){var r=t.field||"",i=e.max&&e.max[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l},minTotals:function(e,t,n){var r=t.field||"",i=e.min&&e.min[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l},sumTotals:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l},sumTotalsBold:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l+""},sumTotalsColored:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":''+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l+""},sumTotalsDollar:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l},sumTotalsDollarBold:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l+""},sumTotalsDollarColored:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":''+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l+""},sumTotalsDollarColoredBold:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":''+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l+""}},Qe=n(40),_e=(n(45),n(21)),Ze=function(){this.options=V},Te=function(){return(Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n":">",'"':""","'":"'"};return(e||"").toString().replace(/[&<>"']/g,(function(e){return t[e]}))}function b(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}))}function B(e,t){var n=e.length,r=f(e);if(n0&&(l+=".");l.length-l.indexOf(".")<=o;)l+="0";var s,d,c=l.split(".");s=i?c.length>=1?F(c[0],i):void 0:c.length>=1?c[0]:l,c.length>1&&(d=c[1]);var A="";return void 0!==s&&void 0!==d?A=""+s+r+d:null!=s&&(A=s),A}function w(e){if(e)for(var t=0,n=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 M(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 H(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 L(e){return/(true|1)/i.test(e+"")}function V(e,t){var n="";if("string"==typeof e&&/^[0-9\-\/]*$/.test(e)){var r=decodeURIComponent(e),i=l(new Date(r));i.isValid()&&4===i.year().toString().length&&(n=t?i.utc().format():i.format())}return n}function z(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}function U(e,t,n){var r=t;return e&&"function"==typeof e.sanitizer?r=e.sanitizer(t||""):"function"==typeof a.sanitize&&(r=(a.sanitize(t||"",n||{})||"").toString()),r}function S(e,t,n){if("string"==typeof t&&(t=t.split(".")),t.length>1){var r=t.shift();e&&void 0!==r&&S(e[r]="[object Object]"===Object.prototype.toString.call(e[r])?e[r]:{},t,n)}else e&&t[0]&&(e[t[0]]=n)}function F(e,t){if(void 0===t&&(t=","),null!=e){var n=""+e,r=n.split(".");return 2===r.length?r[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+"."+r[1]:n.replace(/\B(?=(\d{3})+(?!\d))/g,t)}return e}function q(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 I(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 G(e){return"string"==typeof e?I(e).replace(/([A-Z])/g,"-$1").toLowerCase():e}function W(e,t,n){if(void 0===n&&(n=!1),!(e&&t&&Array.isArray(e)&&Array.isArray(e)))return!1;if(e.length!==t.length)return!1;!n&&e.sort&&t.sort&&(e.sort(),t.sort());for(var r=0;r0?e.filter((function(t,n){return e.indexOf(t)>=n})):e}function _(e,t){if(void 0===t&&(t="id"),Array.isArray(e)&&e.length>0){for(var n=[],r=new Map,i=0,o=e;i=0?this.searchTerms[0]:"",r=this.buildTemplateHtmlString();this.$filterElm=this.createDomElement(r,n),this.$filterElm.on("input change",(function(e){var n="";if(e&&e.target&&e.target.value){var r=e.target.value,i=t.gridOptions.enableFilterTrimWhiteSpace||t.columnFilter.enableTrimWhiteSpace;"string"==typeof r&&i&&(r=r.trim());var o=t.unmaskValue(r),a=t.maskValue(o);n=o,e.keyCode>=48&&(t.$filterElm.val(a),e.preventDefault())}t._clearFilterTriggered?(t.callback(e,{columnDef:t.columnDef,clearFilterTriggered:t._clearFilterTriggered,shouldTriggerQuery:t._shouldTriggerQuery}),t.$filterElm.removeClass("filled")):(t.$filterElm.addClass("filled"),t.callback(e,{columnDef:t.columnDef,operator:t.operator,searchTerms:[n],shouldTriggerQuery:t._shouldTriggerQuery})),t._clearFilterTriggered=!1,t._shouldTriggerQuery=!0}))},t.prototype.maskValue=function(e){var t=0,n="";return this._inputMask&&(n=this._inputMask.replace(/[09A]/gi,(function(n){return(("0"===n||"9"===n)&&/\d+/g.test(e[t])||"A"===n.toUpperCase()&&/[^\d]+/gi.test(e[t]))&&e[t++]||""}))),n},t.prototype.unmaskValue=function(e){for(var t=e.replace(/[^0-9a-z]*/gi,""),n=this._inputMask.replace(/[^0-9a-z]*/gi,""),r="",i=0;ithis._max)&&(this._max=parseFloat(t))},e.prototype.storeResult=function(e){e&&void 0!==e[this._type]||(e[this._type]={}),e[this._type][this._field]=this._max},e}(),q=function(){function e(e){this._type="distinct",this._field=e}return Object.defineProperty(e.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.init=function(){this._distinctValues=[]},e.prototype.accumulate=function(e){var t=e&&e.hasOwnProperty(this._field)?e[this._field]:void 0;-1===this._distinctValues.indexOf(t)&&void 0!==t&&this._distinctValues.push(t)},e.prototype.storeResult=function(e){e&&void 0!==e[this._type]||(e[this._type]={}),e[this._type][this._field]=this._distinctValues},e}(),I=function(){function e(e){this._type="min",this._field=e}return Object.defineProperty(e.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.init=function(){this._min=null},e.prototype.accumulate=function(e){var t=e&&e.hasOwnProperty(this._field)?e[this._field]:null;null===t||""===t||isNaN(t)||(null===this._min||t0,i=this.validate(null,t),o=i&&i.valid?t:"";r?Object(R.setDeepValue)(e,n,o):n&&(e[n]=o)}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,n=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||n!==Y.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 n=(null==t?void 0:t.indexOf("."))>0?Object(R.getDescendantProperty)(e,t):e.hasOwnProperty(t)&&e[t]||"";this._originalValue=n,this._input.value=this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){var e;return null===(e=this._input)||void 0===e?void 0:e.value},e.prototype.validate=function(e,t){var n;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(_.a)(r,{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minLength:this.columnEditor.minLength,maxLength:this.columnEditor.maxLength,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(Q(Q({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==r?r:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(Q(Q({},i),{item:l,grid:s,column:o,formValues:t.formValues,editors:t.editors}),Q(Q({},new Slick.EventData),e))},e.prototype.handleOnInputChange=function(e){var t,n,r=this,i=this.args.compositeEditorOptions;if(i){var o=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(R.debounce)((function(){return r.handleChangeOnCompositeEditor(e,i)}),o)()}},e}(),T=n(62),N=n(36),P=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(t){var n=e.call(this,t,!1)||this;return n.args=t,n}return P(t,e),t}(N.a),K=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),J=function(e){function t(t){var n=e.call(this,t,!0)||this;return n.args=t,n}return K(t,e),t}(N.a),X=n(64);function ee(e,t){var n=isNaN(e)?null:parseInt(e,10);null!==n&&isNaN(n)&&(n=null);var r=t.errorMessage,o=t.required,a=t.minValue,l=t.maxValue,s=t.operatorConditionalType||"inclusive",d={"{{minValue}}":a,"{{maxValue}}":l},c=!0,A="";if(t.validator)return t.validator(e,t.editorArgs);if(o&&""===e)c=!1,A=r||i.a.VALIDATION_REQUIRED_FIELD;else if(""===e||!isNaN(e)&&/^[+-]?\d+$/.test(e)){if(void 0!==a&&void 0!==l&&null!==n&&("exclusive"===s&&(n<=a||n>=l)||"inclusive"===s&&(nl)))c=!1,A=r||i.a.VALIDATION_EDITOR_INTEGER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return d[e]}));else if(void 0!==a&&null!==n&&("exclusive"===s&&n<=a||"inclusive"===s&&null!==n&&n=l||"inclusive"===s&&null!==n&&n>l)){c=!1;p="inclusive"===s?i.a.VALIDATION_EDITOR_INTEGER_MAX_INCLUSIVE:i.a.VALIDATION_EDITOR_INTEGER_MAX;A=r||p.replace(/{{maxValue}}/gi,(function(e){return d[e]}))}}else c=!1,A=r||i.a.VALIDATION_EDITOR_VALID_INTEGER;return{valid:c,msg:A}}var te=function(){return(te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,i=this.validate(null,t),o=i&&i.valid?t:"";r?Object(R.setDeepValue)(e,n,o):e[n]=o}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,n=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||n!==o.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 n=(null==t?void 0:t.indexOf("."))>0?Object(R.getDescendantProperty)(e,t):e[t];this._originalValue=isNaN(n)||null==n?n:""+n,this._input.value=""+this._originalValue,this._input.select()}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value;if(void 0===t||""===t||isNaN(+t))return t;var n=isNaN(+t)?t:parseInt(t,10);return isNaN(+n)?t:n},e.prototype.validate=function(e,t){var n;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:ee(void 0!==t?t:this.getValue(),{editorArgs:this.args,errorMessage:this.columnEditor.errorMessage,minValue:this.columnEditor.minValue,maxValue:this.columnEditor.maxValue,operatorConditionalType:this.columnEditor.operatorConditionalType,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,validator:this.validator})},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(te(te({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==r?r:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(te(te({},i),{item:l,grid:s,column:o,formValues:t.formValues,editors:t.editors}),te(te({},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,n,r=this,i=this.args.compositeEditorOptions;if(i){var o=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(R.debounce)((function(){return r.handleChangeOnCompositeEditor(e,i)}),o)()}},e}();function re(e,t){var n=isNaN(e)?null:parseFloat(e),r=t.decimal||0,o=t.required,a=t.minValue,l=t.maxValue,s=t.operatorConditionalType||"inclusive",d=t.errorMessage,c={"{{minValue}}":a,"{{maxValue}}":l,"{{minDecimal}}":0,"{{maxDecimal}}":r},A=!0,p="";if("function"==typeof t.validator)return t.validator(e,t.editorArgs);if(o&&""===e)A=!1,p=d||i.a.VALIDATION_REQUIRED_FIELD;else if(""!==e&&(isNaN(e)||0===r&&!/^[-+]?(\d*(\.)?(\d)*)$/.test(e)))A=!1,p=d||i.a.VALIDATION_EDITOR_VALID_NUMBER;else if(void 0!==a&&void 0!==l&&null!==n&&("exclusive"===s&&(n<=a||n>=l)||"inclusive"===s&&(nl)))A=!1,p=d||i.a.VALIDATION_EDITOR_NUMBER_BETWEEN.replace(/{{minValue}}|{{maxValue}}/gi,(function(e){return c[e]}));else if(void 0!==a&&null!==n&&("exclusive"===s&&n<=a||"inclusive"===s&&n=l||"inclusive"===s&&n>l)){A=!1;u="inclusive"===s?i.a.VALIDATION_EDITOR_NUMBER_MAX_INCLUSIVE:i.a.VALIDATION_EDITOR_NUMBER_MAX;p=d||u.replace(/{{maxValue}}/gi,(function(e){return c[e]}))}else r>0&&!new RegExp("^[-+]?(\\d*(\\.)?(\\d){0,"+r+"})$").test(e)&&(A=!1,p=d||i.a.VALIDATION_EDITOR_DECIMAL_BETWEEN.replace(/{{minDecimal}}|{{maxDecimal}}/gi,(function(e){return c[e]})));return{valid:A,msg:p}}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?"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 n=this.args.compositeEditorOptions;n&&this.handleChangeOnCompositeEditor(null,n)}},e.prototype.applyValue=function(e,t){var n=this.columnDef&&this.columnDef.field;if(void 0!==n){var r=(null==n?void 0:n.indexOf("."))>0,i=this.validate(null,t),o=i&&i.valid?t:"";r?Object(R.setDeepValue)(e,n,o):e[n]=o}},e.prototype.isValueChanged=function(){var e,t=null===(e=this._input)||void 0===e?void 0:e.value,n=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;return!(!this.columnEditor||!this.columnEditor.alwaysSaveOnEnterKey||n!==o.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 n=(null==t?void 0:t.indexOf("."))>0?Object(R.getDescendantProperty)(e,t):e[t];this._originalValue=n;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 n=parseFloat(t),r=this.getDecimalPlaces();return null!==r&&(n||0===n)&&n.toFixed&&(n=parseFloat(n.toFixed(r))),n},e.prototype.validate=function(e,t){var n,r;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:re(void 0!==t?t:null===(n=this._input)||void 0===n?void 0:n.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(ie(ie({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==r?r:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(ie(ie({},i),{item:l,grid:s,column:o,formValues:t.formValues,editors:t.editors}),ie(ie({},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,n,r=this,i=this.args.compositeEditorOptions;if(i){var o=null!==(n=null===(t=this.gridOptions)||void 0===t?void 0:t.editorTypingDebounce)&&void 0!==n?n:500;Object(R.debounce)((function(){return r.handleChangeOnCompositeEditor(e,i)}),o)()}},e}(),ae=n(65),le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,i=this.validate(null,t),o=i&&i.valid?t:"";r?Object(R.setDeepValue)(e,n,o):e[n]=o}},e.prototype.isValueChanged=function(){return this.serializeValue()!==this._originalValue},e.prototype.loadValue=function(e){var t=this.columnDef&&this.columnDef.field;if(e&&void 0!==t&&this._input){var n=(null==t?void 0:t.indexOf("."))>0?Object(R.getDescendantProperty)(e,t):e[t];this._originalValue=n,this._input.checked=!!this._originalValue}},e.prototype.save=function(){var e=this.validate(),t=e&&e.valid||!1;this.hasAutoCommitEdit&&t?this.grid.getEditorLock().commitCurrentEdit():this.args.commitChanges()},e.prototype.serializeValue=function(){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 n,r,o=!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&this.columnEditor.required,a=void 0!==t?t:null===(r=this._input)||void 0===r?void 0:r.checked,l=this.columnEditor.errorMessage;return this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled?{valid:!0,msg:""}:this.validator?this.validator(a,this.args):o&&!a?{valid:!1,msg:l||i.a.VALIDATION_REQUIRED_FIELD}:{valid:!0,msg:null}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(le(le({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i=this.grid.getActiveCell(),o=this.args.column,a=null!==(r=null===(n=this.columnDef)||void 0===n?void 0:n.id)&&void 0!==r?r:"",l=this.args.item,s=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(a)&&delete t.formValues[a],s.onCompositeEditorChange.notify(le(le({},i),{item:l,grid:s,column:o,formValues:t.formValues,editors:t.editors}),le(le({},new Slick.EventData),e))},e}(),de=n(66),ce=(n(63),function(){return(ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(i.forEach((function(e){return e.removeEventListener("focusout",t.handleFocusOut.bind(t))})),r&&i.forEach((function(e){return e.removeEventListener("input",t.handleChangeOnCompositeEditorDebounce.bind(t))})))},e.prototype.createInput=function(e){var t,n=this.editorParams[e],r=this.columnDef&&this.columnDef.id,i=this.gridOptions.datasetIdPropertyName||"id",o=(null===(t=this.args)||void 0===t?void 0:t.item[i])||0,a=n.type||"text";"float"!==a&&"integer"!==a||(a="number");var l=document.createElement("input");return l.id="item-"+o+"-"+e,l.className="dual-editor-text editor-"+r+" "+e.replace(/input/gi,""),"readonly"===a&&(l.readOnly=!0,a="text"),l.type=a||"text",l.setAttribute("role","presentation"),l.autocomplete="off",l.placeholder=n.placeholder||"",l.title=n.title||"","number"===a&&(l.step=this.getInputDecimalSteps(e)),l},e.prototype.disable=function(e){var t,n;void 0===e&&(e=!0);var r=this.disabled;this.disabled=e,this._leftInput&&this._rightInput&&(e?(this._leftInput.setAttribute("disabled","disabled"),this._rightInput.setAttribute("disabled","disabled"),r!==e&&(null===(t=this.args)||void 0===t?void 0:t.compositeEditorOptions)&&(this._originalLeftValue="",this._originalRightValue="",this._leftInput.value="",this._rightInput.value="",this.handleChangeOnCompositeEditor(null,null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions))):(this._leftInput.removeAttribute("disabled"),this._rightInput.removeAttribute("disabled")))},e.prototype.focus=function(){},e.prototype.show=function(){var e;!!(null===(e=this.args)||void 0===e?void 0:e.compositeEditorOptions)&&this.applyInputUsabilityState()},e.prototype.getValues=function(){var e={},t=this._leftInput.value,n=this._rightInput.value,r=this.editorParams.leftInput&&("float"===this.editorParams.leftInput.type||"integer"===this.editorParams.leftInput.type),i=this.editorParams.rightInput&&("float"===this.editorParams.rightInput.type||"integer"===this.editorParams.rightInput.type),o=""!==t&&r?+this._leftInput.value:t||"",a=""!==n&&i?+this._rightInput.value:n||"";return Object(R.setDeepValue)(e,this._leftFieldName,o),Object(R.setDeepValue)(e,this._rightFieldName,a),e},e.prototype.setValues=function(e){Array.isArray(e)&&2===e.length&&(this._leftInput.value=""+e[0],this._rightInput.value=""+e[1])},e.prototype.applyValue=function(e,t){this.applyValueByPosition(e,t,"leftInput"),this.applyValueByPosition(e,t,"rightInput")},e.prototype.applyValueByPosition=function(e,t,n){var r="leftInput"===n?this._leftFieldName:this._rightFieldName;if(void 0!==r){var i=(null==r?void 0:r.indexOf("."))>0,o=r;if(i){var a=r.split(/\.(.*)/);o=a.length>1?a[1]:a}var l=i?Object(R.getDescendantProperty)(t,o):t[r],s=this.validate(null,{position:n,inputValue:l});if(i){var d=Object(R.getDescendantProperty)(t,o),c=s&&s.valid?d:"";Object(R.setDeepValue)(e,r,c)}else r&&(e[r]=s&&s.valid?t[r]:"")}},e.prototype.isValueChanged=function(){var e=this._leftInput.value,t=this._rightInput.value,n=this.editorParams&&this.editorParams.leftInput,r=this.editorParams&&this.editorParams.rightInput,i=this._lastInputKeyEvent&&this._lastInputKeyEvent.keyCode;if((n&&n.alwaysSaveOnEnterKey||r&&r.alwaysSaveOnEnterKey)&&i===Y.a.ENTER)return!0;var o=!(""===e&&(null===this._originalLeftValue||void 0===this._originalLeftValue))&&e!==this._originalLeftValue,a=!(""===t&&(null===this._originalRightValue||void 0===this._originalRightValue))&&t!==this._originalRightValue;return o||a},e.prototype.loadValue=function(e){this.loadValueByPosition(e,"leftInput"),this.loadValueByPosition(e,"rightInput"),this._leftInput.select()},e.prototype.loadValueByPosition=function(e,t){var n="leftInput"===t?this._leftFieldName:this._rightFieldName,r="leftInput"===t?"_originalLeftValue":"_originalRightValue",i="leftInput"===t?"_leftInput":"_rightInput";if(e&&void 0!==n){var o=(null==n?void 0:n.indexOf("."))>0?Object(R.getDescendantProperty)(e,n):e.hasOwnProperty(n)?e[n]:"";if(this[r]=o,"float"===this.editorParams[t].type){var a=this.getDecimalPlaces(t);null!==a&&(this[r]||0===this[r])&&(+this[r]).toFixed&&(this[r]=(+this[r]).toFixed(a))}this[i]&&(this[i].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"),n=this.serializeValueByPosition("rightInput");return Object(R.setDeepValue)(e,this._leftFieldName,t),Object(R.setDeepValue)(e,this._rightFieldName,n),e},e.prototype.serializeValueByPosition=function(e){var t="leftInput"===e?this._leftInput.value:this._rightInput.value;if(""===t||isNaN(+t))return t;var n=parseFloat(t),r=this.getDecimalPlaces(e);return null!==r&&(n||0===n)&&n.toFixed&&(n=parseFloat(n.toFixed(r))),n},e.prototype.getDecimalPlaces=function(e){var t="leftInput"===e?"leftInput":"rightInput",n=this.editorParams[t],r=null==n?void 0:n.decimal;return void 0===r?0:r},e.prototype.getInputDecimalSteps=function(e){for(var t=this.getDecimalPlaces(e),n="",r=1;r0?"0."+n+"1":"1"},e.prototype.validate=function(e,t){if(this.args.compositeEditorOptions&&this.applyInputUsabilityState(),this.disabled)return{valid:!0,msg:""};if(t){var n=this.validateByPosition(t.position,t.inputValue);if(!n.valid)return"leftInput"===t.position?this._leftInput.select():this._rightInput.select(),n}else{var r=this.validateByPosition("leftInput"),i=this.validateByPosition("rightInput");if(!r.valid)return this._leftInput.select(),r;if(!i.valid)return this._rightInput.select(),i}return{valid:!0,msg:""}},e.prototype.validateByPosition=function(e,t){var n,r=this.editorParams[e],i="";if(t)i=t;else{var o="leftInput"===e?this._leftInput:this._rightInput;i=o&&o.value}var a=this.validator;i="function"==typeof a?this.getValues():i;var l={editorArgs:this.args,errorMessage:r.errorMessage,required:!(null===(n=this.args)||void 0===n?void 0:n.compositeEditorOptions)&&r.required,validator:"function"==typeof a?a:r.validator};switch(r.type){case"float":return re(i,ce(ce({},l),{decimal:this.getDecimalPlaces(e),minValue:r.minValue,maxValue:r.maxValue,operatorConditionalType:r.operatorConditionalType}));case"integer":return ee(i,ce(ce({},l),{minValue:r.minValue,maxValue:r.maxValue,operatorConditionalType:r.operatorConditionalType}));case"text":case"password":default:return Object(_.a)(i,l)}},e.prototype.applyInputUsabilityState=function(){var e=this.grid.getActiveCell(),t=this.grid.onBeforeEditCell.notify(ce(ce({},e),{item:this.args.item,column:this.args.column,grid:this.grid}));this.disable(!1===t)},e.prototype.handleChangeOnCompositeEditor=function(e,t){var n,r,i,o,a,l,s=this.grid.getActiveCell(),d=this.args.column,c=null!==(i=null===(r=null===(n=this.columnEditor.params)||void 0===n?void 0:n.leftInput)||void 0===r?void 0:r.field)&&void 0!==i?i:"",A=null!==(l=null===(a=null===(o=this.columnEditor.params)||void 0===o?void 0:o.rightInput)||void 0===a?void 0:a.field)&&void 0!==l?l:"",p=this.args.item,u=this.grid;this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(t.formValues,this.serializeValue()),this.disabled&&t.formValues.hasOwnProperty(c)&&delete t.formValues[c],this.disabled&&t.formValues.hasOwnProperty(A)&&delete t.formValues[A],u.onCompositeEditorChange.notify(ce(ce({},s),{item:p,grid:u,column:d,formValues:t.formValues,editors:t.editors}),ce(ce({},new Slick.EventData),e))},e.prototype.handleChangeOnCompositeEditorDebounce=function(e){var t,n,r,i=this,o=null===(t=this.args)||void 0===t?void 0:t.compositeEditorOptions;if(o){var a=null!==(r=null===(n=this.gridOptions)||void 0===n?void 0:n.editorTypingDebounce)&&void 0!==r?r:500;Object(R.debounce)((function(){return i.handleChangeOnCompositeEditor(e,o)}),a)()}},e}(),pe={autoComplete:ae.a,checkbox:se,date:de.a,dualInput:Ae,float:oe,integer:ne,longText:X.a,multipleSelect:J,singleSelect:j,slider:T.a,text:Z},ue=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t}return e.prototype.dispose=function(){this._addon&&this._addon.destroy&&(this._addon.destroy(),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(o.ExtensionName.autoTooltip);var e=this.sharedService.gridOptions.autoTooltipOptions;return this._addon=new Slick.AutoTooltips(e),this._addon&&this.sharedService.slickGrid.registerPlugin(this._addon),this._addon}return null},e}(),Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e._commandQueue.length)){var n=e._commandQueue[t];t++,n&&Slick.GlobalEditorLock.cancelCurrentEdit()&&n.execute()}}}},e.prototype.getDefaultOptions=function(){var e=this,t=0;return{clipboardCommandHandler:function(t){e._undoRedoBuffer.queueAndExecuteCommand.call(e._undoRedoBuffer,t)},dataItemColumnValueExtractor:function(t,n){if(!e.sharedService.gridOptions.editable||!n.editor){var r=void 0!==n.exportWithFormatter?n.exportWithFormatter:e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.exportWithFormatter;if(n.formatter&&r){var i=n.formatter(0,0,t[n.field],n,t,e.sharedService.slickGrid);if(n.sanitizeDataExport||e.sharedService.gridOptions.exportOptions&&e.sharedService.gridOptions.exportOptions.sanitizeDataExport){var o=i;return i&&"object"==typeof i&&i.hasOwnProperty("text")&&(o=i.text),null===o&&(o=""),Object(R.sanitizeHtmlToText)(o)}return i}}return null},readOnlyMode:!1,includeHeaderWhenCopying:!1,newRowCreator:function(n){for(var r=0;r0?e.splice(i,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}(),Be=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t,this._eventHandler=new Slick.EventHandler}return Object.defineProperty(e.prototype,"eventHandler",{get:function(){return this._eventHandler},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&this._addon.destroy(),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"),n=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||n,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 i=this._addon.onColumnsChanged;this._eventHandler.subscribe(i,(function(t,n){e._columnPicker&&"function"==typeof e._columnPicker.onColumnsChanged&&e._columnPicker.onColumnsChanged(t,n),n&&Array.isArray(n.columns)&&n.columns.length!==e.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=n.columns)}))}return this._addon}return null},e.prototype.translateColumnPicker=function(){var e;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}(),xe=n(59),we=function(){return(we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}})}if(i&&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(s+"COLLAPSE_ALL_GROUPS","TEXT_COLLAPSE_ALL_GROUPS"),disabled:!1,command:"collapse-all-groups",positionOrder:56,action:function(){i.enableTreeData?n.treeDataService.toggleTreeDataCollapse(!0):l.collapseAllGroups()},itemUsabilityOverride:function(){if(i.enableTreeData)return!0;var e=l&&l.getGrouping&&l.getGrouping();return Array.isArray(e)&&e.length>0}})}if(i&&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(s+"EXPAND_ALL_GROUPS","TEXT_EXPAND_ALL_GROUPS"),disabled:!1,command:"expand-all-groups",positionOrder:57,action:function(){i.enableTreeData?n.treeDataService.toggleTreeDataCollapse(!1):l.expandAllGroups()},itemUsabilityOverride:function(){if(i.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||{},n=e&&e.cell||0,r=e&&e.row||0,i=e&&e.column,o=e&&e.dataContext,a=this.sharedService&&this.sharedService.slickGrid,l=t&&(t.excelExportOptions||t.exportOptions),s=Object(xe.a)(r,n,o,i,a,l);"function"==typeof i.queryFieldNameGetterFn&&(s=this.getCellValueFromQueryFieldGetter(i,o));var d=document.createElement("textarea");if(d&&document.body)d.style.position="absolute",d.style.left="-1000px",d.style.top="-1000px",d.value=s,document.body.appendChild(d),d.select(),document.execCommand("copy",!1,s)&&d.remove()}}catch(e){}},e.prototype.getCellValueFromQueryFieldGetter=function(e,t){var n="";if("function"==typeof e.queryFieldNameGetterFn){var r=e.queryFieldNameGetterFn(t);n=(null==r?void 0:r.indexOf("."))>=0?Object(R.getDescendantProperty)(t,r):t[r]}return n},e}(),ye=function(){function e(e,t){this.extensionUtility=e,this.sharedService=t,this._eventHandler=new Slick.EventHandler}return Object.defineProperty(e.prototype,"eventHandler",{get:function(){return this._eventHandler},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._eventHandler.unsubscribeAll(),this._addon&&this._addon.destroy&&this._addon.destroy(),this.extensionUtility.nullifyFunctionNameStartingWithOn(this._draggableGroupingOptions),this._addon=null,this._draggableGroupingOptions=null},e.prototype.create=function(e){return e?(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.draggableGrouping),this._addon||(this._addon=new Slick.DraggableGrouping(e.draggableGrouping)),this._addon):null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(){var e=this;if(this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.sharedService.slickGrid.registerPlugin(this._addon),this.sharedService.slickGrid&&this.sharedService.gridOptions.draggableGrouping&&(this._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,n){e._draggableGroupingOptions&&"function"==typeof e._draggableGroupingOptions.onGroupChanged&&e._draggableGroupingOptions.onGroupChanged(t,n)}))}return this._addon}return null},e}(),De=function(){function e(e,t){this.sharedService=e,this.translaterService=t}return e.prototype.loadExtensionDynamically=function(e){try{switch(e){case he.a.autoTooltip:n(216);break;case he.a.cellExternalCopyManager:n(217);break;case he.a.checkboxSelector:n(218);break;case he.a.cellMenu:n(219);break;case he.a.columnPicker:n(220);break;case he.a.contextMenu:n(221);break;case he.a.draggableGrouping:n(222);break;case he.a.gridMenu:n(223);break;case he.a.groupItemMetaProvider:n(224);break;case he.a.headerButton:n(225);break;case he.a.headerMenu:n(226);break;case he.a.rowSelection:n(227);break;case he.a.rowDetailView:n(228);break;case he.a.rowMoveManager:n(229)}}catch(e){}},e.prototype.getPickerTitleOutputString=function(e,t){var n,r,o,a,l,s,d,c,A;if(this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate&&(!this.translaterService||!this.translaterService.translate))throw new Error('[Slickgrid-Universal] requires a Translate Service to be installed and configured when the grid option "enableTranslate" is enabled.');var p="",u=this.sharedService.gridOptions&&this.sharedService.gridOptions[t]||{},C=this.sharedService.gridOptions&&this.sharedService.gridOptions.enableTranslate||!1,g=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.locales||i.a.locales,h=u&&u[e],m=u&&u[e+"Key"],f=this.sharedService.gridOptions,b=Object(R.getTranslationPrefix)(f);if(m&&(null===(n=this.translaterService)||void 0===n?void 0:n.translate))p=this.translaterService.translate(m||" ");else switch(e){case"customTitle":p=h||C&&(null===(r=this.translaterService)||void 0===r?void 0:r.getCurrentLanguage)&&(null===(o=this.translaterService)||void 0===o?void 0:o.translate(b+"COMMANDS"||!1))||(null==g?void 0:g.TEXT_COMMANDS);break;case"columnTitle":p=h||C&&(null===(a=this.translaterService)||void 0===a?void 0:a.getCurrentLanguage)&&(null===(l=this.translaterService)||void 0===l?void 0:l.translate(b+"COLUMNS"||!1))||(null==g?void 0:g.TEXT_COLUMNS);break;case"forceFitTitle":p=h||C&&(null===(s=this.translaterService)||void 0===s?void 0:s.getCurrentLanguage)&&(null===(d=this.translaterService)||void 0===d?void 0:d.translate(b+"FORCE_FIT_COLUMNS"||!1))||(null==g?void 0:g.TEXT_FORCE_FIT_COLUMNS);break;case"syncResizeTitle":p=h||C&&(null===(c=this.translaterService)||void 0===c?void 0:c.getCurrentLanguage)&&(null===(A=this.translaterService)||void 0===A?void 0:A.translate(b+"SYNCHRONOUS_RESIZE"||!1))||(null==g?void 0:g.TEXT_SYNCHRONOUS_RESIZE);break;default:p=h}return p},e.prototype.nullifyFunctionNameStartingWithOn=function(e){if(e)for(var t=0,n=Object.keys(e);te.sharedService.visibleColumns.length&&(e.sharedService.visibleColumns=n.columns)}));var a=this._addon.onCommand;a&&this._eventHandler.subscribe(a,(function(t,n){e.executeGridMenuInternalCustomCommands(t,n),e._gridMenuOptions&&"function"==typeof e._gridMenuOptions.onCommand&&e._gridMenuOptions.onCommand(t,n)}));var l=this._addon.onMenuClose;l&&this._eventHandler.subscribe(l,(function(t,n){if(e._gridMenuOptions&&"function"==typeof e._gridMenuOptions.onMenuClose&&e._gridMenuOptions.onMenuClose(t,n),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=Ee(Ee({},this.sharedService.gridOptions),e)),Object($e.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,n=[],r=this.sharedService.gridOptions,i=Object(R.getTranslationPrefix)(r);if(this.sharedService.gridOptions&&this._gridMenuOptions&&!this._gridMenuOptions.hideClearFrozenColumnsCommand){e.find((function(e){return e.hasOwnProperty("command")&&"clear-frozen-columns"===e.command}))||n.push({iconCssClass:this._gridMenuOptions.iconClearFrozenColumnsCommand||"fa fa-times",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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}))||n.push({iconCssClass:this._gridMenuOptions.iconClearAllFiltersCommand||"fa fa-filter text-danger",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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}))||n.push({iconCssClass:this._gridMenuOptions.iconToggleFilterCommand||"fa fa-random",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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}))||n.push({iconCssClass:this._gridMenuOptions.iconRefreshDatasetCommand||"fa fa-refresh",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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}))||n.push({iconCssClass:this._gridMenuOptions.iconTogglePreHeaderCommand||"fa fa-random",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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}))||n.push({iconCssClass:this._gridMenuOptions.iconClearAllSortingCommand||"fa fa-unsorted text-danger",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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}))||n.push({iconCssClass:this._gridMenuOptions.iconExportCsvCommand||"fa fa-download",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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}))||n.push({iconCssClass:this._gridMenuOptions.iconExportExcelCommand||"fa fa-file-excel-o text-success",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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}))||n.push({iconCssClass:this._gridMenuOptions.iconExportTextDelimitedCommand||"fa fa-download",title:this.extensionUtility.translateWhenEnabledAndServiceExist(i+"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(n)&&n.length>0||Array.isArray(this._gridMenuOptions.customItems)&&this._gridMenuOptions.customItems.length>0)&&(this._gridMenuOptions.customTitle=this._gridMenuOptions.customTitle||this.extensionUtility.getPickerTitleOutputString("customTitle","gridMenu")),n},e.prototype.executeGridMenuInternalCustomCommands=function(e,t){var n,r=(null===(n=this.sharedService)||void 0===n?void 0:n.externalRegisteredServices)||[];if(t&&t.command)switch(t.command){case"clear-frozen-columns":var i=Me(this.sharedService.visibleColumns);this.sharedService.slickGrid.setOptions({frozenColumn:-1}),Array.isArray(i)&&Array.isArray(this.sharedService.allColumns)&&i.length!==this.sharedService.allColumns.length&&this.sharedService.slickGrid.setColumns(i);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 a=r.find((function(e){return"FileExportService"===e.className}));if(!(null==a?void 0:a.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()] };");a.exportToFile({delimiter:o.DelimiterType.comma,filename:"export",format:o.FileType.csv,useUtf8WithBom:!0});break;case"export-excel":var l=r.find((function(e){return"ExcelExportService"===e.className}));if(!(null==l?void 0:l.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()] };");l.exportToExcel({filename:"export",format:o.FileType.xlsx});break;case"export-text-delimited":var s=r.find((function(e){return"FileExportService"===e.className}));if(!(null==s?void 0:s.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()] };");s.exportToFile({delimiter:o.DelimiterType.tab,filename:"export",format:o.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 c=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showTopPanel||!1;this.sharedService.slickGrid.setTopPanelVisibility(!c);break;case"toggle-preheader":var A=this.sharedService&&this.sharedService.gridOptions&&this.sharedService.gridOptions.showPreHeaderPanel||!1;this.sharedService.slickGrid.setPreHeaderPanelVisibility(!A);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}(),Le=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}(),Ve=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(o.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,n){e._headerButtonOptions&&"function"==typeof e._headerButtonOptions.onCommand&&e._headerButtonOptions.onCommand(t,n)}))}return this._addon}return null},e}(),ze=function(){return(ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?e.splice(l,0,a):e.unshift(a)}return this._addon}return null},e.prototype.loadAddonWhenNotExists=function(e,t){return Array.isArray(e)&&t?(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.rowMoveManager),this._addon||(this._addon=new Slick.RowMoveManager((null==t?void 0:t.rowMoveManager)||{cancelEditOnDrag:!0})),this._addon):null},e.prototype.getAddonInstance=function(){return this._addon},e.prototype.register=function(e){var t=this;if(this._addon&&this.sharedService&&this.sharedService.slickGrid&&this.sharedService.gridOptions){if(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.rowMoveManager),e&&this.sharedService.slickGrid.getSelectionModel()||(this.extensionUtility.loadExtensionDynamically(o.ExtensionName.rowSelection),e=new Slick.RowSelectionModel(this.sharedService.gridOptions.rowSelectionOptions),this.sharedService.slickGrid.setSelectionModel(e)),this._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 n=this._addon.onBeforeMoveRows;n&&this._eventHandler.subscribe(n,(function(e,n){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows&&t.sharedService.gridOptions.rowMoveManager.onBeforeMoveRows(e,n)}));var r=this._addon.onMoveRows;r&&this._eventHandler.subscribe(r,(function(e,n){t.sharedService.gridOptions.rowMoveManager&&"function"==typeof t.sharedService.gridOptions.rowMoveManager.onMoveRows&&t.sharedService.gridOptions.rowMoveManager.onMoveRows(e,n)}))}return this._addon}return null},e}(),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}(),Ie=(n(45),n(47),function(e,t,n){if(n&&Array.isArray(n)&&n.length>0){var r=n.join(", ");return''+r+""}return n}),Ge=n(13);function We(e,t,n,r){var i=n&&"function"==typeof n.getOptions?n.getOptions():{},o=t&&t.params;return o&&o.hasOwnProperty(e)?o[e]:i.formatterOptions&&i.formatterOptions.hasOwnProperty(e)?i.formatterOptions[e]:r}function Oe(e,t){var n=Object(R.mapMomentDateFormatWithFieldType)(e);return function(e,r,i,o,a,l){var s,d,c,A,p=l&&"function"==typeof l.getOptions?l.getOptions():{},u=null!==(d=null===(s=null==p?void 0:p.formatterOptions)||void 0===s?void 0:s.dateSeparator)&&void 0!==d?d:t,C=null!==(A=null===(c=null==o?void 0:o.params)||void 0===c?void 0:c.parseDateAsUtc)&&void 0!==A&&A,g=Ge(i,n,!1).isValid(),h=i;if(i&&g&&(h=C?Ge.utc(i).format(n):Ge(i).format(n)),h&&u!==t){var m=new RegExp(t,"ig");h=h.replace(m,u)}return h}}var Ye={arrayObjectToCsv:function(e,t,n,r,i){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(i[l]&&Array.isArray(i[l])&&Array.isArray(i[l])&&i[l].length>0){var s=[];i[l].forEach((function(e){var t=[];a.forEach((function(n){t.push(e[n])})),s.push(t.join(" "))}));var d=s.join(", ");return''+d+""}return n},arrayToCsv:Ie,bold:function(e,t,n){return n?""+n+"":""},center:function(e,t,n){return void 0!==n&&"string"!=typeof n&&(n+=""),"
"+n+"
"},checkbox:function(e,t,n){return n?"☑":""},checkmark:function(e,t,n){var r=!1,i=null!=n&&""!==n&&!isNaN(+n);return i&&(n=+n),(!0===n||i&&+n>0||"string"==typeof n&&n.length>0&&"false"!==n.toLowerCase()&&"0"!==n)&&(r=!0),r?'':""},checkmarkMaterial:function(e,t,n){var r=!1,i=null!=n&&""!==n&&!isNaN(+n);return i&&(n=+n),(!0===n||i&&+n>0||"string"==typeof n&&n.length>0&&"false"!==n.toLowerCase()&&"0"!==n)&&(r=!0),r?'':""},complexObject:function(e,t,n,r,i){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&&i.hasOwnProperty(a)?i[a]&&i[a][r.labelKey]:"string"==typeof a&&a.indexOf(".")>0?a.split(".").reduce((function(e,t){return e&&e.hasOwnProperty(t)?e[t]:n}),i):n},collection:function(e,t,n,r,i){if(!(n&&r&&r.params&&r.params.collection&&r.params.collection.length))return n;var o=r.params,a=r.params.collection,l=o.customStructure?o.customStructure.label:"label",s=o.customStructure?o.customStructure.value:"value";return Array.isArray(n)?Ie(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t[s]===e}))[l]}))):Object(U.s)(a,(function(e){return e[s]===n}))[l]||""},collectionEditor:function(e,t,n,r,i){if(!(n&&r&&r.internalColumnEditor&&r.internalColumnEditor.collection&&r.internalColumnEditor.collection.length))return n;var o=r.internalColumnEditor,a=r.internalColumnEditor.collection,l=o.customStructure?o.customStructure.label:"label",s=o.customStructure?o.customStructure.value:"value";return Array.isArray(n)?a.every((function(e){return"string"==typeof e}))?Ie(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t===e}))}))):Ie(0,0,n.map((function(e){return Object(U.s)(a,(function(t){return t[s]===e}))[l]}))):Object(U.s)(a,(function(e){return e[s]===n}))[l]||""},dateIso:Oe(o.FieldType.dateIso,"-"),dateTimeIso:Oe(o.FieldType.dateTimeIso,"-"),dateTimeShortIso:Oe(o.FieldType.dateTimeShortIso,"-"),dateTimeIsoAmPm:Oe(o.FieldType.dateTimeIsoAmPm,"-"),dateEuro:Oe(o.FieldType.dateEuro,"/"),dateTimeEuro:Oe(o.FieldType.dateTimeEuro,"/"),dateTimeShortEuro:Oe(o.FieldType.dateTimeShortEuro,"/"),dateTimeEuroAmPm:Oe(o.FieldType.dateTimeEuroAmPm,"/"),dateUs:Oe(o.FieldType.dateUs,"/"),dateTimeUs:Oe(o.FieldType.dateTimeUs,"/"),dateTimeShortUs:Oe(o.FieldType.dateTimeShortUs,"/"),dateTimeUsAmPm:Oe(o.FieldType.dateTimeUsAmPm,"/"),deleteIcon:function(){return''},decimal:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o,2),s=We("maxDecimal",r,o,2),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?Object(R.formatNumber)(n,l,s,A,"","",d,c):n},dollar:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o,2),s=We("maxDecimal",r,o,4),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?Object(R.formatNumber)(n,l,s,A,"$","",d,c):n},dollarColored:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o,2),s=We("maxDecimal",r,o,4),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?''+Object(R.formatNumber)(n,l,s,A,"$","",d,c)+"":n},dollarColoredBold:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o,2),s=We("maxDecimal",r,o,4),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?''+Object(R.formatNumber)(n,l,s,A,"$","",d,c)+"":n},editIcon:function(){return''},hyperlink:function(e,t,n,r,i,o){var a=r&&r.params||{},l=o&&"function"==typeof o.getOptions?o.getOptions():{},s=a.hyperlinkText?a.hyperlinkText:n;s=Object(R.sanitizeTextByAvailableSanitizer)(l,s);var d=a.hyperlinkUrl?a.hyperlinkUrl:n,c=(d=Object(R.sanitizeTextByAvailableSanitizer)(l,d)).match(/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/i);return c&&Array.isArray(c)&&c.length>0?''+s+"":n},icon:function(e,t,n,r){var i=r&&r.params||{},o=i.icon||i.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,n){return n?""+n+"":""},lowercase:function(e,t,n){return void 0!==n&&"string"!=typeof n&&(n+=""),n?n.toLowerCase():""},mask:function(e,t,n,r){var i=(r.params||{}).mask;if(!i)throw new Error('You must provide a "mask" via the generic "params" options (e.g.: { formatter: Formatters.mask, params: { mask: \'000-000\' }}');if(n){var o=0,a=n.toString();return i.replace(/[09A]/gi,(function(){return a[o++]||""}))}return n},multiple:function(e,t,n,r,i,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=n,s=0,d=a.formatters;s'+(n>100?"100%":u)+""}return n},percentCompleteBar:function(e,t,n){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var r=parseFloat(n);return r>100&&(r=100),''},percentCompleteBarWithText:function(e,t,n){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var r=parseFloat(n);return r>100&&(r=100),'
'+r+"%
"},percentSymbol:function(e,t,n,r,i,o){var a=null!=n&&""!==n&&!isNaN(+n),l=We("minDecimal",r,o),s=We("maxDecimal",r,o),d=We("decimalSeparator",r,o,"."),c=We("thousandSeparator",r,o,""),A=We("displayNegativeNumberWithParentheses",r,o,!1);return a?Object(R.formatNumber)(n,l,s,A,"","%",d,c):n},progressBar:function(e,t,n){if(!(null!=n&&""!==n&&!isNaN(+n)))return"";var r="",i=parseFloat(n);return i>100&&(i=100),('
\n
\n '+i+"%\n
\n
").replace(/\s{2,}/g," ").trim()},translate:function(e,t,n,r,i,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).i18n||r&&r.params&&r.params.i18n;if(!a||"function"!=typeof a.translate)throw new Error('The translate formatter requires the Translate Service to be provided as a Grid Options or Column Definition "i18n".\n For example: this.gridOptions = { enableTranslate: true, i18n: this.translateService }');return null!=n&&"string"!=typeof n&&(n+=""),n?a.translate(n):""},translateBoolean:function(e,t,n,r,i,o){var a=(o&&"function"==typeof o.getOptions?o.getOptions():{}).i18n||r&&r.params&&r.params.i18n;if(!a||"function"!=typeof a.translate)throw new Error('The translate formatter requires the Translate Service to be provided as a Grid Options or Column Definition "i18n".\n For example: this.gridOptions = { enableTranslate: true, i18n: this.translateService }');return null!=n&&"string"!=typeof n&&(n+=""),n?a.translate(n.toUpperCase()):""},tree:function(e,t,n,r,i,o){var a=null==o?void 0:o.getData(),l=null==o?void 0:o.getOptions(),s=null==l?void 0:l.treeDataOptions,d=(null==s?void 0:s.levelPropName)||"__treeLevel",c=(null==s?void 0:s.indentMarginLeft)||15,A=n;if("function"==typeof r.queryFieldNameGetterFn){var p=r.queryFieldNameGetterFn(i);A=(null==p?void 0:p.indexOf("."))>=0?Object(R.getDescendantProperty)(i,p):i.hasOwnProperty(p)?i[p]:n}if(null==A||void 0===i)return"";if(!i.hasOwnProperty(d))throw new Error('You must provide valid "treeDataOptions" in your Grid Options and it seems that there are no tree level found in this row');if(a&&a.getIdxById&&a.getItemByIdx){"string"==typeof A&&(A=Object(R.htmlEncode)(A));var u=a.getIdPropertyName()||"id",C='',g=a.getIdxById(i[u]),h=a.getItemByIdx((g||0)+1);return h&&h[d]>i[d]?i.__collapsed?C+' '+A:C+' '+A:C+' '+A}return""},uppercase:function(e,t,n){return void 0!==n&&"string"!=typeof n&&(n+=""),n?n.toUpperCase():""},yesNo:function(e,t,n){return n?"Yes":"No"}},Re={avgTotals:function(e,t,n){var r=t.field||"",i=e.avg&&e.avg[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);if(null!==i&&!isNaN(+i)){if(i<0){if(i=Math.abs(i),p)return isNaN(s)&&isNaN(d)?a+"("+Object(R.thousandSeparatorFormatted)(Math.round(i),A)+")"+l:a+"("+Object(R.decimalFormatted)(i,s,d,c,A)+")"+l;a+="-"}return isNaN(s)&&isNaN(d)?""+a+Object(R.thousandSeparatorFormatted)(Math.round(i),A)+l:""+a+Object(R.decimalFormatted)(i,s,d,c,A)+l}return""},avgTotalsDollar:function(e,t,n){var r=t.field||"",i=e.avg&&e.avg[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l},avgTotalsPercentage:function(e,t,n){var r=t.field||"",i=e.avg&&e.avg[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);if(null!==i&&!isNaN(+i)){if(i<0){if(i=Math.abs(i),p)return isNaN(s)&&isNaN(d)?a+"("+Object(R.thousandSeparatorFormatted)(Math.round(i),A)+"%)"+l:a+"("+Object(R.decimalFormatted)(i,s,d,c,A)+"%)"+l;a+="-"}return isNaN(s)&&isNaN(d)?""+a+Object(R.thousandSeparatorFormatted)(Math.round(i),A)+"%"+l:""+a+Object(R.decimalFormatted)(i,s,d,c,A)+"%"+l}return""},maxTotals:function(e,t,n){var r=t.field||"",i=e.max&&e.max[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l},minTotals:function(e,t,n){var r=t.field||"",i=e.min&&e.min[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l},sumTotals:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l},sumTotalsBold:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l+""},sumTotalsColored:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n),d=We("maxDecimal",t,n),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":''+a+Object(R.formatNumber)(i,s,d,p,"","",c,A)+l+""},sumTotalsDollar:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l},sumTotalsDollarBold:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":""+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l+""},sumTotalsDollarColored:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":''+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l+""},sumTotalsDollarColoredBold:function(e,t,n){var r=t.field||"",i=e.sum&&e.sum[r],o=t&&t.params,a=o&&o.groupFormatterPrefix||"",l=o&&o.groupFormatterSuffix||"",s=We("minDecimal",t,n,2),d=We("maxDecimal",t,n,4),c=We("decimalSeparator",t,n,"."),A=We("thousandSeparator",t,n,""),p=We("displayNegativeNumberWithParentheses",t,n,!1);return null===i||isNaN(+i)?"":''+a+Object(R.formatNumber)(i,s,d,p,"$","",c,A)+l+""}},_e=n(41),Qe=(n(46),n(22)),Ze=function(){this.options=V},Te=function(){return(Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n":">",'"':""","'":"'"};return(e||"").toString().replace(/[&<>"']/g,(function(e){return t[e]}))}function b(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}))}function B(e,t){var n=e.length,r=f(e);if(n0&&(l+=".");l.length-l.indexOf(".")<=o;)l+="0";var s,d,c=l.split(".");s=i?c.length>=1?F(c[0],i):void 0:c.length>=1?c[0]:l,c.length>1&&(d=c[1]);var A="";return void 0!==s&&void 0!==d?A=""+s+r+d:null!=s&&(A=s),A}function w(e){if(e)for(var t=0,n=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 M(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 H(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 L(e){return/(true|1)/i.test(e+"")}function V(e,t){var n="";if("string"==typeof e&&/^[0-9\-\/]*$/.test(e)){var r=decodeURIComponent(e),i=l(new Date(r));i.isValid()&&4===i.year().toString().length&&(n=t?i.utc().format():i.format())}return n}function z(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}function U(e,t,n){var r=t;return e&&"function"==typeof e.sanitizer?r=e.sanitizer(t||""):"function"==typeof a.sanitize&&(r=(a.sanitize(t||"",n||{})||"").toString()),r}function S(e,t,n){if("string"==typeof t&&(t=t.split(".")),t.length>1){var r=t.shift();e&&void 0!==r&&S(e[r]="[object Object]"===Object.prototype.toString.call(e[r])?e[r]:{},t,n)}else e&&t[0]&&(e[t[0]]=n)}function F(e,t){if(void 0===t&&(t=","),null!=e){var n=""+e,r=n.split(".");return 2===r.length?r[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+"."+r[1]:n.replace(/\B(?=(\d{3})+(?!\d))/g,t)}return e}function q(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 I(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 G(e){return"string"==typeof e?I(e).replace(/([A-Z])/g,"-$1").toLowerCase():e}function W(e,t,n){if(void 0===n&&(n=!1),!(e&&t&&Array.isArray(e)&&Array.isArray(e)))return!1;if(e.length!==t.length)return!1;!n&&e.sort&&t.sort&&(e.sort(),t.sort());for(var r=0;r0?e.filter((function(t,n){return e.indexOf(t)>=n})):e}function Q(e,t){if(void 0===t&&(t="id"),Array.isArray(e)&&e.length>0){for(var n=[],r=new Map,i=0,o=e;i+~]|"+q+")"+q+"*"),_=new RegExp(q+"|>"),Z=new RegExp(W),T=new RegExp("^"+I+"$"),N={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+G),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},P=/HTML$/i,j=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=Be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{z.apply(H=U.call(x.childNodes),x.childNodes),H[x.childNodes.length].nodeType}catch(e){z={apply:H.length?function(e,t){V.apply(e,U.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function le(e,t,r,i){var o,l,d,c,A,C,m,f=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!i&&(p(t),t=t||u,g)){if(11!==x&&(A=X.exec(e)))if(o=A[1]){if(9===x){if(!(d=t.getElementById(o)))return r;if(d.id===o)return r.push(d),r}else if(f&&(d=f.getElementById(o))&&b(t,d)&&d.id===o)return r.push(d),r}else{if(A[2])return z.apply(r,t.getElementsByTagName(e)),r;if((o=A[3])&&n.getElementsByClassName&&t.getElementsByClassName)return z.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!$[e+" "]&&(!h||!h.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(m=e,f=t,1===x&&(_.test(e)||Q.test(e))){for((f=ee.test(e)&&me(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=B)),l=(C=a(e)).length;l--;)C[l]=(c?"#"+c:":scope")+" "+be(C[l]);m=C.join(",")}try{return z.apply(r,f.querySelectorAll(m)),r}catch(t){$(e,!0)}finally{c===B&&t.removeAttribute("id")}}}return s(e.replace(Y,"$1"),t,r,i)}function se(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function de(e){return e[B]=!0,e}function ce(e){var t=u.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function Ae(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function Ce(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return de((function(t){return t=+t,de((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=le.support={},o=le.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!P.test(t||n&&n.nodeName||"HTML")},p=le.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:x;return a!=u&&9===a.nodeType&&a.documentElement?(C=(u=a).documentElement,g=!o(u),x!=u&&(i=u.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return C.appendChild(e).appendChild(u.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(u.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(u.getElementsByClassName),n.getById=ce((function(e){return C.appendChild(e).id=B,!u.getElementsByName||!u.getElementsByName(B).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},m=[],h=[],(n.qsa=J.test(u.querySelectorAll))&&(ce((function(e){var t;C.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+q+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+q+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+B+"-]").length||h.push("~="),(t=u.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+q+"*name"+q+"*="+q+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+B+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="";var t=u.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+q+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),C.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")}))),(n.matchesSelector=J.test(f=C.matches||C.webkitMatchesSelector||C.mozMatchesSelector||C.oMatchesSelector||C.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=f.call(e,"*"),f.call(e,"[s!='']:x"),m.push("!=",W)})),h=h.length&&new RegExp(h.join("|")),m=m.length&&new RegExp(m.join("|")),t=J.test(C.compareDocumentPosition),b=t||J.test(C.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return A=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==u||e.ownerDocument==x&&b(x,e)?-1:t==u||t.ownerDocument==x&&b(x,t)?1:c?S(c,e)-S(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],l=[t];if(!i||!o)return e==u?-1:t==u?1:i?-1:o?1:c?S(c,e)-S(c,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[r]===l[r];)r++;return r?pe(a[r],l[r]):a[r]==x?-1:l[r]==x?1:0},u):u},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&g&&!$[t+" "]&&(!m||!m.test(t))&&(!h||!h.test(t)))try{var r=f.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){$(t,!0)}return le(t,u,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!=u&&p(e),b(e,t)},le.attr=function(e,t){(e.ownerDocument||e)!=u&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&M.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},le.escape=function(e){return(e+"").replace(re,ie)},le.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},le.uniqueSort=function(e){var t,r=[],i=0,o=0;if(A=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(E),A){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=le.getText=function(e){var t,n="",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)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=le.selectors={cacheLength:50,createPseudo:de,match:N,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||le.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&le.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return N.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Z.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+q+")"+e+"("+q+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=le.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(O," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),l="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,s){var d,c,A,p,u,C,g=o!==a?"nextSibling":"previousSibling",h=t.parentNode,m=l&&t.nodeName.toLowerCase(),f=!s&&!l,b=!1;if(h){if(o){for(;g;){for(p=t;p=p[g];)if(l?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;C=g="only"===e&&!C&&"nextSibling"}return!0}if(C=[a?h.firstChild:h.lastChild],a&&f){for(b=(u=(d=(c=(A=(p=h)[B]||(p[B]={}))[p.uniqueID]||(A[p.uniqueID]={}))[e]||[])[0]===w&&d[1])&&d[2],p=u&&h.childNodes[u];p=++u&&p&&p[g]||(b=u=0)||C.pop();)if(1===p.nodeType&&++b&&p===t){c[e]=[w,u,b];break}}else if(f&&(b=u=(d=(c=(A=(p=t)[B]||(p[B]={}))[p.uniqueID]||(A[p.uniqueID]={}))[e]||[])[0]===w&&d[1]),!1===b)for(;(p=++u&&p&&p[g]||(b=u=0)||C.pop())&&((l?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++b||(f&&((c=(A=p[B]||(p[B]={}))[p.uniqueID]||(A[p.uniqueID]={}))[e]=[w,b]),p!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||le.error("unsupported pseudo: "+e);return i[B]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?de((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=S(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:de((function(e){var t=[],n=[],r=l(e.replace(Y,"$1"));return r[B]?de((function(e,t,n,i){for(var o,a=r(e,null,i,[]),l=e.length;l--;)(o=a[l])&&(e[l]=!(t[l]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:de((function(e){return function(t){return le(e,t).length>0}})),contains:de((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:de((function(e){return T.test(e||"")||le.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===C},focus:function(e){return e===u.activeElement&&(!u.hasFocus||u.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return j.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e})),gt:he((function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,i){for(var o,a=[],l=0,s=e.length,d=null!=t;l-1&&(o[d]=!(a[d]=A))}}else m=we(m===a?m.splice(C,m.length):m),i?i(null,a,m,s):z.apply(a,m)}))}function ke(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],l=a||r.relative[" "],s=a?1:0,c=Be((function(e){return e===t}),l,!0),A=Be((function(e){return S(t,e)>-1}),l,!0),p=[function(e,n,r){var i=!a&&(r||n!==d)||((t=n).nodeType?c(e,n,r):A(e,n,r));return t=null,i}];s1&&xe(p),s>1&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Y,"$1"),n,s0,i=e.length>0,o=function(o,a,l,s,c){var A,C,h,m=0,f="0",b=o&&[],B=[],x=d,v=o||i&&r.find.TAG("*",c),k=w+=null==x?1:Math.random()||.1,y=v.length;for(c&&(d=a==u||a||c);f!==y&&null!=(A=v[f]);f++){if(i&&A){for(C=0,a||A.ownerDocument==u||(p(A),l=!g);h=e[C++];)if(h(A,a||u,l)){s.push(A);break}c&&(w=k)}n&&((A=!h&&A)&&m--,o&&b.push(A))}if(m+=f,n&&f!==m){for(C=0;h=t[C++];)h(b,B,a,l);if(o){if(m>0)for(;f--;)b[f]||B[f]||(B[f]=L.call(s));B=we(B)}z.apply(s,B),c&&!o&&B.length>0&&m+t.length>1&&le.uniqueSort(s)}return c&&(w=k,d=x),b};return n?de(o):o}(o,i))).selector=e}return l},s=le.select=function(e,t,n,i){var o,s,d,c,A,p="function"==typeof e&&e,u=!i&&a(e=p.selector||e);if(n=n||[],1===u.length){if((s=u[0]=u[0].slice(0)).length>2&&"ID"===(d=s[0]).type&&9===t.nodeType&&g&&r.relative[s[1].type]){if(!(t=(r.find.ID(d.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=N.needsContext.test(e)?0:s.length;o--&&(d=s[o],!r.relative[c=d.type]);)if((A=r.find[c])&&(i=A(d.matches[0].replace(te,ne),ee.test(s[0].type)&&me(t.parentNode)||t))){if(s.splice(o,1),!(e=i.length&&be(s)))return z.apply(n,i),n;break}}return(p||l(e,u))(i,t,!g,n,!t||ee.test(e)&&me(t.parentNode)||t),n},n.sortStable=B.split("").sort(E).join("")===B,n.detectDuplicates=!!A,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(u.createElement("fieldset"))})),ce((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||Ae("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||Ae("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||Ae(F,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),le}(n);v.find=y,v.expr=y.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=y.uniqueSort,v.text=y.getText,v.isXMLDoc=y.isXML,v.contains=y.contains,v.escapeSelector=y.escape;var D=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&v(e).is(n))break;r.push(e)}return r},$=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},E=v.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return m(t)?v.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?v.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?v.grep(e,(function(e){return c.call(t,e)>-1!==n})):v.filter(t,e,n)}v.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?v.find.matchesSelector(r,e)?[r]:[]:v.find.matches(e,v.grep(t,(function(e){return 1===e.nodeType})))},v.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(v(e).filter((function(){for(t=0;t1?v.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&E.test(e)?v(e):e||[],!1).length}});var V,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||V,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:z.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),H.test(r[1])&&v.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(v):v.makeArray(e,this)}).prototype=v.fn,V=v(b);var U=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&v.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?v.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(v(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return D(e,"parentNode")},parentsUntil:function(e,t,n){return D(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return D(e,"nextSibling")},prevAll:function(e){return D(e,"previousSibling")},nextUntil:function(e,t,n){return D(e,"nextSibling",n)},prevUntil:function(e,t,n){return D(e,"previousSibling",n)},siblings:function(e){return $((e.parentNode||{}).firstChild,e)},children:function(e){return $(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),v.merge([],e.childNodes))}},(function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=v.filter(r,i)),this.length>1&&(S[e]||v.uniqueSort(i),U.test(e)&&i.reverse()),this.pushStack(i)}}));var q=/[^\x20\t\r\n\f]+/g;function I(e){return e}function G(e){throw e}function W(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}v.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return v.each(e.match(q)||[],(function(e,n){t[n]=!0})),t}(e):v.extend({},e);var t,n,r,i,o=[],a=[],l=-1,s=function(){for(i=i||e.once,r=t=!0;a.length;l=-1)for(n=a.shift();++l-1;)o.splice(n,1),n<=l&&l--})),this},has:function(e){return e?v.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||s()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},v.extend({Deferred:function(e){var t=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return v.Deferred((function(n){v.each(t,(function(t,r){var i=m(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&m(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var l=this,s=arguments,d=function(){var n,d;if(!(e=o&&(r!==G&&(l=void 0,s=[n]),t.rejectWith(l,s))}};e?c():(v.Deferred.getStackHook&&(c.stackTrace=v.Deferred.getStackHook()),n.setTimeout(c))}}return v.Deferred((function(n){t[0][3].add(a(0,n,m(i)?i:I,n.notifyWith)),t[1][3].add(a(0,n,m(e)?e:I)),t[2][3].add(a(0,n,m(r)?r:G))})).promise()},promise:function(e){return null!=e?v.extend(e,i):i}},o={};return v.each(t,(function(e,n){var a=n[2],l=n[5];i[n[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(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=l.call(arguments),o=v.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?l.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(W(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||m(i[n]&&i[n].then)))return o.then();for(;n--;)W(i[n],a(n),o.reject);return o.promise()}});var O=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&O.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},v.readyException=function(e){n.setTimeout((function(){throw e}))};var Y=v.Deferred();function R(){b.removeEventListener("DOMContentLoaded",R),n.removeEventListener("load",R),v.ready()}v.fn.ready=function(e){return Y.then(e).catch((function(e){v.readyException(e)})),this},v.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||Y.resolveWith(b,[v]))}}),v.ready.then=Y.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(v.ready):(b.addEventListener("DOMContentLoaded",R),n.addEventListener("load",R));var Q=function(e,t,n,r,i,o,a){var l=0,s=e.length,d=null==n;if("object"===w(n))for(l in i=!0,n)Q(e,t,l,n[l],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),d&&(a?(t.call(e,r),t=null):(d=t,t=function(e,t,n){return d.call(v(e),n)})),t))for(;l1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.access(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),o=v._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){v.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:v.Callbacks("once memory").add((function(){K.remove(e,[t+"queue",n])}))})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;ue=b.createDocumentFragment().appendChild(b.createElement("div")),(Ce=b.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),ue.appendChild(Ce),h.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",h.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",h.option=!!ue.lastChild;var fe={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?v.merge([e],n):n}function Be(e,t){for(var n=0,r=e.length;n",""]);var xe=/<|&#?\w+;/;function we(e,t,n,r,i){for(var o,a,l,s,d,c,A=t.createDocumentFragment(),p=[],u=0,C=e.length;u-1)i&&i.push(o);else if(d=ae(o),a=be(A.appendChild(o),"script"),d&&Be(a),n)for(c=0;o=a[c++];)me.test(o.type||"")&&n.push(o);return A}var ve=/^key/,ke=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ye=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function $e(){return!1}function Ee(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,r,i,o){var a,l;if("object"==typeof t){for(l in"string"!=typeof n&&(r=r||n,n=void 0),t)Me(e,l,n,r,t[l],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=$e;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return v().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=v.guid++)),e.each((function(){v.event.add(this,t,i,r,n)}))}function He(e,t,n){n?(K.set(e,t,!1),v.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=K.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(v.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=l.call(arguments),K.set(this,t,o),r=n(this,t),this[t](),o!==(i=K.get(this,t))||r?K.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(K.set(this,t,{value:v.event.trigger(v.extend(o[0],v.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&v.event.add(e,t,De)}v.event={global:{},add:function(e,t,n,r,i){var o,a,l,s,d,c,A,p,u,C,g,h=K.get(e);if(P(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&v.find.matchesSelector(oe,i),n.guid||(n.guid=v.guid++),(s=h.events)||(s=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(q)||[""]).length;d--;)u=g=(l=ye.exec(t[d])||[])[1],C=(l[2]||"").split(".").sort(),u&&(A=v.event.special[u]||{},u=(i?A.delegateType:A.bindType)||u,A=v.event.special[u]||{},c=v.extend({type:u,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&v.expr.match.needsContext.test(i),namespace:C.join(".")},o),(p=s[u])||((p=s[u]=[]).delegateCount=0,A.setup&&!1!==A.setup.call(e,r,C,a)||e.addEventListener&&e.addEventListener(u,a)),A.add&&(A.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),v.event.global[u]=!0)},remove:function(e,t,n,r,i){var o,a,l,s,d,c,A,p,u,C,g,h=K.hasData(e)&&K.get(e);if(h&&(s=h.events)){for(d=(t=(t||"").match(q)||[""]).length;d--;)if(u=g=(l=ye.exec(t[d])||[])[1],C=(l[2]||"").split(".").sort(),u){for(A=v.event.special[u]||{},p=s[u=(r?A.delegateType:A.bindType)||u]||[],l=l[2]&&new RegExp("(^|\\.)"+C.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||l&&!l.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,A.remove&&A.remove.call(e,c));a&&!p.length&&(A.teardown&&!1!==A.teardown.call(e,C,h.handle)||v.removeEvent(e,u,h.handle),delete s[u])}else for(u in s)v.event.remove(e,u+t[d],n,r,!0);v.isEmptyObject(s)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,l=new Array(arguments.length),s=v.event.fix(e),d=(K.get(this,"events")||Object.create(null))[s.type]||[],c=v.event.special[s.type]||{};for(l[0]=s,t=1;t=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(o=[],a={},n=0;n-1:v.find(i,this,null,[d]).length),a[i]&&o.push(r);o.length&&l.push({elem:d,handlers:o})}return d=this,s\s*$/g;function Ue(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&v(e).children("tbody")[0]||e}function Se(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function qe(e,t){var n,r,i,o,a,l;if(1===t.nodeType){if(K.hasData(e)&&(l=K.get(e).events))for(i in K.remove(t,"handle events"),l)for(n=0,r=l[i].length;n1&&"string"==typeof C&&!h.checkClone&&Ve.test(C))return e.each((function(i){var o=e.eq(i);g&&(t[0]=C.call(this,i,o.html())),Ge(o,t,n,r)}));if(p&&(o=(i=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(l=(a=v.map(be(i,"script"),Se)).length;A0&&Be(a,!s&&be(e,"script")),l},cleanData:function(e){for(var t,n,r,i=v.event.special,o=0;void 0!==(n=e[o]);o++)if(P(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)i[r]?v.event.remove(n,r):v.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),v.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return Q(this,(function(e){return void 0===e?v.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ge(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ue(this,e).appendChild(e)}))},prepend:function(){return Ge(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ue(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(v.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return v.clone(this,e,t)}))},html:function(e){return Q(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!fe[(he.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n3,oe.removeChild(e)),l}}))}();var Te=["Webkit","Moz","ms"],Ne=b.createElement("div").style,Pe={};function je(e){var t=v.cssProps[e]||Pe[e];return t||(e in Ne?e:Pe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Te.length;n--;)if((e=Te[n]+t)in Ne)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,i,o){var a="width"===t?1:0,l=0,s=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(s+=v.css(e,n+ie[a],!0,i)),r?("content"===n&&(s-=v.css(e,"padding"+ie[a],!0,i)),"margin"!==n&&(s-=v.css(e,"border"+ie[a]+"Width",!0,i))):(s+=v.css(e,"padding"+ie[a],!0,i),"padding"!==n?s+=v.css(e,"border"+ie[a]+"Width",!0,i):l+=v.css(e,"border"+ie[a]+"Width",!0,i));return!r&&o>=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-s-l-.5))||0),s}function rt(e,t,n){var r=Ye(e),i=(!h.boxSizingReliable()||n)&&"border-box"===v.css(e,"boxSizing",!1,r),o=i,a=_e(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(Oe.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&i||!h.reliableTrDimensions()&&M(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===v.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===v.css(e,"boxSizing",!1,r),(o=l in e)&&(a=e[l])),(a=parseFloat(a)||0)+nt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function it(e,t,n,r,i){return new it.prototype.init(e,t,n,r,i)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=_e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,l=N(t),s=Je.test(t),d=e.style;if(s||(t=je(l)),a=v.cssHooks[t]||v.cssHooks[l],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:d[t];"string"===(o=typeof n)&&(i=re.exec(n))&&i[1]&&(n=de(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||s||(n+=i&&i[3]||(v.cssNumber[l]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(d[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(s?d.setProperty(t,n):d[t]=n))}},css:function(e,t,n,r){var i,o,a,l=N(t);return Je.test(t)||(t=je(l)),(a=v.cssHooks[t]||v.cssHooks[l])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=_e(e,t,r)),"normal"===i&&t in et&&(i=et[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),v.each(["height","width"],(function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):Re(e,Xe,(function(){return rt(e,t,r)}))},set:function(e,n,r){var i,o=Ye(e),a=!h.scrollboxSize()&&"absolute"===o.position,l=(a||r)&&"border-box"===v.css(e,"boxSizing",!1,o),s=r?nt(e,t,r,l,o):0;return l&&a&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-nt(e,t,"border",!1,o)-.5)),s&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),tt(0,n,s)}}})),v.cssHooks.marginLeft=Ze(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(_e(e,"marginLeft"))||e.getBoundingClientRect().left-Re(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),v.each({margin:"",padding:"",border:"Width"},(function(e,t){v.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(v.cssHooks[e+t].set=tt)})),v.fn.extend({css:function(e,t){return Q(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ye(e),i=t.length;a1)}}),v.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(v.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||!v.cssHooks[e.prop]&&null==e.elem.style[je(e.prop)]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=it.prototype.init,v.fx.step={};var ot,at,lt=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function dt(){at&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(dt):n.setTimeout(dt,v.fx.interval),v.fx.tick())}function ct(){return n.setTimeout((function(){ot=void 0})),ot=Date.now()}function At(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function pt(e,t,n){for(var r,i=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(e){return this.each((function(){v.removeAttr(this,e)}))}}),v.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?v.prop(e,t,n):(1===o&&v.isXMLDoc(e)||(i=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?Ct:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=v.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(q);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Ct={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=gt[t]||v.find.attr;gt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=gt[a],gt[a]=i,i=null!=n(e,t,r)?a:null,gt[a]=o),i}}));var ht=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function ft(e){return(e.match(q)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function Bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(q)||[]}v.fn.extend({prop:function(e,t){return Q(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[v.propFix[e]||e]}))}}),v.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&v.isXMLDoc(e)||(t=v.propFix[t]||t,i=v.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){v.propFix[this.toLowerCase()]=this})),v.fn.extend({addClass:function(e){var t,n,r,i,o,a,l,s=0;if(m(e))return this.each((function(t){v(this).addClass(e.call(this,t,bt(this)))}));if((t=Bt(e)).length)for(;n=this[s++];)if(i=bt(n),r=1===n.nodeType&&" "+ft(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(l=ft(r))&&n.setAttribute("class",l)}return this},removeClass:function(e){var t,n,r,i,o,a,l,s=0;if(m(e))return this.each((function(t){v(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=Bt(e)).length)for(;n=this[s++];)if(i=bt(n),r=1===n.nodeType&&" "+ft(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(l=ft(r))&&n.setAttribute("class",l)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):m(e)?this.each((function(n){v(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=v(this),a=Bt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+ft(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;v.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,v(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=v.map(i,(function(e){return null==e?"":e+""}))),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=v.valHooks[i.type]||v.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xt,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:ft(v.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,l=a?null:[],s=a?o+1:i.length;for(r=o<0?s:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),v.each(["radio","checkbox"],(function(){v.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},h.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in n;var wt=/^(?:focusinfocus|focusoutblur)$/,vt=function(e){e.stopPropagation()};v.extend(v.event,{trigger:function(e,t,r,i){var o,a,l,s,d,c,A,p,C=[r||b],g=u.call(e,"type")?e.type:e,h=u.call(e,"namespace")?e.namespace.split("."):[];if(a=p=l=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!wt.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(h=g.split("."),g=h.shift(),h.sort()),d=g.indexOf(":")<0&&"on"+g,(e=e[v.expando]?e:new v.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:v.makeArray(t,[e]),A=v.event.special[g]||{},i||!A.trigger||!1!==A.trigger.apply(r,t))){if(!i&&!A.noBubble&&!f(r)){for(s=A.delegateType||g,wt.test(s+g)||(a=a.parentNode);a;a=a.parentNode)C.push(a),l=a;l===(r.ownerDocument||b)&&C.push(l.defaultView||l.parentWindow||n)}for(o=0;(a=C[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?s:A.bindType||g,(c=(K.get(a,"events")||Object.create(null))[e.type]&&K.get(a,"handle"))&&c.apply(a,t),(c=d&&a[d])&&c.apply&&P(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||A._default&&!1!==A._default.apply(C.pop(),t)||!P(r)||d&&m(r[g])&&!f(r)&&((l=r[d])&&(r[d]=null),v.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,vt),r[g](),e.isPropagationStopped()&&p.removeEventListener(g,vt),v.event.triggered=void 0,l&&(r[d]=l)),e.result}},simulate:function(e,t,n){var r=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(r,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each((function(){v.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),h.focusin||v.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t);i||r.addEventListener(e,n,!0),K.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t)-1;i?K.access(r,t,i):(r.removeEventListener(e,n,!0),K.remove(r,t))}}}));var kt=n.location,yt={guid:Date.now()},Dt=/\?/;v.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+e),t};var $t=/\[\]$/,Et=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Ht=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,r){var i;if(Array.isArray(t))v.each(t,(function(t,i){n||$t.test(e)?r(e,i):Lt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==w(t))r(e,t);else for(i in t)Lt(e+"["+i+"]",t[i],n,r)}v.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,(function(){i(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,i);return r.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&Ht.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=v(this).val();return null==n?null:Array.isArray(n)?v.map(n,(function(e){return{name:t.name,value:e.replace(Et,"\r\n")}})):{name:t.name,value:n.replace(Et,"\r\n")}})).get()}});var Vt=/%20/g,zt=/#.*$/,Ut=/([?&])_=[^&]*/,St=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,qt=/^\/\//,It={},Gt={},Wt="*/".concat("*"),Ot=b.createElement("a");function Yt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(q)||[];if(m(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Rt(e,t,n,r){var i={},o=e===Gt;function a(l){var s;return i[l]=!0,v.each(e[l]||[],(function(e,l){var d=l(t,n,r);return"string"!=typeof d||o||i[d]?o?!(s=d):void 0:(t.dataTypes.unshift(d),a(d),!1)})),s}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Qt(e,t){var n,r,i=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&v.extend(!0,e,r),e}Ot.href=kt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,v.ajaxSettings),t):Qt(v.ajaxSettings,e)},ajaxPrefilter:Yt(It),ajaxTransport:Yt(Gt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,l,s,d,c,A,p,u=v.ajaxSetup({},t),C=u.context||u,g=u.context&&(C.nodeType||C.jquery)?v(C):v.event,h=v.Deferred(),m=v.Callbacks("once memory"),f=u.statusCode||{},B={},x={},w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(d){if(!a)for(a={};t=St.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return d?o:null},setRequestHeader:function(e,t){return null==d&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,B[e]=t),this},overrideMimeType:function(e){return null==d&&(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)k.always(e[k.status]);else for(t in e)f[t]=[f[t],e[t]];return this},abort:function(e){var t=e||w;return r&&r.abort(t),y(0,t),this}};if(h.promise(k),u.url=((e||u.url||kt.href)+"").replace(qt,kt.protocol+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(q)||[""],null==u.crossDomain){s=b.createElement("a");try{s.href=u.url,s.href=s.href,u.crossDomain=Ot.protocol+"//"+Ot.host!=s.protocol+"//"+s.host}catch(e){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=v.param(u.data,u.traditional)),Rt(It,u,t,k),d)return k;for(A in(c=v.event&&u.global)&&0==v.active++&&v.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Ft.test(u.type),i=u.url.replace(zt,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(Vt,"+")):(p=u.url.slice(i.length),u.data&&(u.processData||"string"==typeof u.data)&&(i+=(Dt.test(i)?"&":"?")+u.data,delete u.data),!1===u.cache&&(i=i.replace(Ut,"$1"),p=(Dt.test(i)?"&":"?")+"_="+yt.guid+++p),u.url=i+p),u.ifModified&&(v.lastModified[i]&&k.setRequestHeader("If-Modified-Since",v.lastModified[i]),v.etag[i]&&k.setRequestHeader("If-None-Match",v.etag[i])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&k.setRequestHeader("Content-Type",u.contentType),k.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+Wt+"; q=0.01":""):u.accepts["*"]),u.headers)k.setRequestHeader(A,u.headers[A]);if(u.beforeSend&&(!1===u.beforeSend.call(C,k,u)||d))return k.abort();if(w="abort",m.add(u.complete),k.done(u.success),k.fail(u.error),r=Rt(Gt,u,t,k)){if(k.readyState=1,c&&g.trigger("ajaxSend",[k,u]),d)return k;u.async&&u.timeout>0&&(l=n.setTimeout((function(){k.abort("timeout")}),u.timeout));try{d=!1,r.send(B,y)}catch(e){if(d)throw e;y(-1,e)}}else y(-1,"No Transport");function y(e,t,a,s){var A,p,b,B,x,w=t;d||(d=!0,l&&n.clearTimeout(l),r=void 0,o=s||"",k.readyState=e>0?4:0,A=e>=200&&e<300||304===e,a&&(B=function(e,t,n){for(var r,i,o,a,l=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in l)if(l[i]&&l[i].test(r)){s.unshift(i);break}if(s[0]in n)o=s[0];else{for(i in n){if(!s[0]||e.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==s[0]&&s.unshift(o),n[o]}(u,k,a)),!A&&v.inArray("script",u.dataTypes)>-1&&(u.converters["text script"]=function(){}),B=function(e,t,n,r){var i,o,a,l,s,d={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)d[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=o,o=c.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(!(a=d[s+" "+o]||d["* "+o]))for(i in d)if((l=i.split(" "))[1]===o&&(a=d[s+" "+l[0]]||d["* "+l[0]])){!0===a?a=d[i]:!0!==d[i]&&(o=l[0],c.unshift(l[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+s+" to "+o}}}return{state:"success",data:t}}(u,B,k,A),A?(u.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(v.lastModified[i]=x),(x=k.getResponseHeader("etag"))&&(v.etag[i]=x)),204===e||"HEAD"===u.type?w="nocontent":304===e?w="notmodified":(w=B.state,p=B.data,A=!(b=B.error))):(b=w,!e&&w||(w="error",e<0&&(e=0))),k.status=e,k.statusText=(t||w)+"",A?h.resolveWith(C,[p,w,k]):h.rejectWith(C,[k,w,b]),k.statusCode(f),f=void 0,c&&g.trigger(A?"ajaxSuccess":"ajaxError",[k,u,A?p:b]),m.fireWith(C,[k,w]),c&&(g.trigger("ajaxComplete",[k,u]),--v.active||v.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],(function(e,t){v[t]=function(e,n,r,i){return m(n)&&(i=i||r,r=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:i,data:n,success:r},v.isPlainObject(e)&&e))}})),v.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),v._evalUrl=function(e,t,n){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){v.globalEval(e,t,n)}})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return m(e)?this.each((function(t){v(this).wrapInner(e.call(this,t))})):this.each((function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=m(e);return this.each((function(n){v(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){v(this).replaceWith(this.childNodes)})),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},Zt=v.ajaxSettings.xhr();h.cors=!!Zt&&"withCredentials"in Zt,h.ajax=Zt=!!Zt,v.ajaxTransport((function(e){var t,r;if(h.cors||Zt&&!e.crossDomain)return{send:function(i,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||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)l.setRequestHeader(a,i[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(_t[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&&n.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()}}})),v.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),v.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=v("
LOADING...
\ No newline at end of file +Slickgrid-Universal
LOADING...
\ No newline at end of file