tablefilter 0.7.7 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{440:function(t,e,n){var r={"./array":20,"./array.js":20,"./components/attributes":441,"./components/attributes.js":441,"./components/table-filter":445,"./components/table-filter.js":445,"./components/tf-clear-button":446,"./components/tf-clear-button.js":446,"./components/tf-pager":447,"./components/tf-pager.js":447,"./components/tf-results-per-page":448,"./components/tf-results-per-page.js":448,"./components/tf-rows-counter":449,"./components/tf-rows-counter.js":449,"./components/tf-status":450,"./components/tf-status.js":450,"./const":4,"./const.js":4,"./cookie":60,"./cookie.js":60,"./dom":2,"./dom.js":2,"./emitter":89,"./emitter.js":89,"./event":5,"./event.js":5,"./extensions/advancedGrid/adapterEzEditTable":443,"./extensions/advancedGrid/adapterEzEditTable.js":443,"./extensions/advancedGrid/advancedGrid":451,"./extensions/advancedGrid/advancedGrid.js":451,"./extensions/colOps/colOps":452,"./extensions/colOps/colOps.js":452,"./extensions/colsVisibility/colsVisibility":453,"./extensions/colsVisibility/colsVisibility.js":453,"./extensions/filtersVisibility/filtersVisibility":454,"./extensions/filtersVisibility/filtersVisibility.js":454,"./extensions/sort/adapterSortabletable":444,"./extensions/sort/adapterSortabletable.js":444,"./extensions/sort/sort":455,"./extensions/sort/sort.js":455,"./feature":10,"./feature.js":10,"./modules/alternateRows":85,"./modules/alternateRows.js":85,"./modules/baseDropdown":48,"./modules/baseDropdown.js":48,"./modules/checkList":91,"./modules/checkList.js":91,"./modules/clearButton":84,"./modules/clearButton.js":84,"./modules/dateType":74,"./modules/dateType.js":74,"./modules/dropdown":90,"./modules/dropdown.js":90,"./modules/gridLayout":77,"./modules/gridLayout.js":77,"./modules/hash":92,"./modules/hash.js":92,"./modules/help":75,"./modules/help.js":75,"./modules/highlightKeywords":79,"./modules/highlightKeywords.js":79,"./modules/loader":78,"./modules/loader.js":78,"./modules/markActiveColumns":81,"./modules/markActiveColumns.js":81,"./modules/noResults":86,"./modules/noResults.js":86,"./modules/paging":87,"./modules/paging.js":87,"./modules/popupFilter":80,"./modules/popupFilter.js":80,"./modules/rowsCounter":82,"./modules/rowsCounter.js":82,"./modules/state":76,"./modules/state.js":76,"./modules/statusBar":83,"./modules/statusBar.js":83,"./modules/storage":93,"./modules/storage.js":93,"./modules/toolbar":18,"./modules/toolbar.js":18,"./number":22,"./number.js":22,"./root":9,"./root.js":9,"./sanitize":442,"./sanitize.js":442,"./settings":1,"./settings.js":1,"./sort":31,"./sort.js":31,"./string":8,"./string.js":8,"./tablefilter":127,"./tablefilter.js":127,"./types":3,"./types.js":3};function webpackContext(t){var e=webpackContextResolve(t);return n(e)}function webpackContextResolve(t){if(n.o(r,t))return r[t];var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}webpackContext.keys=function webpackContextKeys(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,(t.exports=webpackContext).id=440},441:function(t,e,n){"use strict";n.r(e),n.d(e,"PRESENTATION_ATTRIBUTES",function(){return r}),n.d(e,"FORBIDDEN_KEYS",function(){return o}),n.d(e,"isSkippedAttribute",function(){return isSkippedAttribute}),n.d(e,"LIVE_REGION_ATTRIBUTES",function(){return i}),n.d(e,"applyLiveRegion",function(){return applyLiveRegion});var r=["id","class","style","slot","hidden","title","lang","dir","role","tabindex","part","exportparts"],o=["__proto__","constructor","prototype"];function isSkippedAttribute(t,e){return-1!==r.indexOf(t)||void 0!==e&&-1!==e.indexOf(t)||0===t.indexOf("data-")||0===t.indexOf("aria-")||-1!==o.indexOf(t)}var i={role:"status","aria-live":"polite","aria-atomic":"true"};function applyLiveRegion(e){Object.keys(i).forEach(function(t){e.setAttribute(t,i[t])})}},442:function(t,e,n){"use strict";n.r(e),n.d(e,"sanitizeHtml",function(){return i});var r=n(456),o=n.n(r),i=function sanitizeHtml(t){return o.a.sanitize(null==t?"":String(t))}},443:function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return r});var o=n(10),p=n(2),i=n(4),s=n(1),a=n(9);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(r){var o=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var r=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(AdapterEzEditTable,o["Feature"]);var r=_createSuper(AdapterEzEditTable);function AdapterEzEditTable(t,e){var n;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,AdapterEzEditTable),(n=r.call(this,t,AdapterEzEditTable)).desc=Object(s.defaultsStr)(e.description,"ezEditTable adapter"),n.filename=Object(s.defaultsStr)(e.filename,"ezEditTable.js"),n.vendorPath=e.vendor_path,n.loadStylesheet=Boolean(e.load_stylesheet),n.stylesheet=Object(s.defaultsStr)(e.stylesheet,n.vendorPath+"ezEditTable.css"),n.stylesheetName=Object(s.defaultsStr)(e.stylesheet_name,"ezEditTableCss"),e.scroll_into_view=!1!==e.scroll_into_view&&t.gridLayout,n._ezEditTable=null,n.cfg=e,n.enable(),n}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(AdapterEzEditTable,[{key:"init",value:function init(){var t=this;if(!this.initialized){var e=this.tf;if(a.root.EditTable)this._setAdvancedGrid();else{var n=this.vendorPath+this.filename;e.import(this.filename,n,function(){return t._setAdvancedGrid()})}this.loadStylesheet&&!e.isImported(this.stylesheet,"link")&&e.import(this.stylesheetName,this.stylesheet,null,"link"),this.emitter.on(["filter-focus","filter-blur"],function(){return t._toggleForInputFilter()}),this.initialized=!0}}},{key:"_setAdvancedGrid",value:function _setAdvancedGrid(){var t,b=this.tf,e=this.cfg;t=0<Object(p.tag)(b.dom(),"thead").length&&!e.startRow?void 0:e.startRow||b.refRow,e.base_path=e.base_path||b.basePath+"ezEditTable/";var n=e.editable,r=e.selection;r&&(e.default_selection=e.default_selection||"row"),e.active_cell_css=e.active_cell_css||"ezETSelectedCell";var y=0,_=0;if(r){var o=function onAfterSelection(o,i,t){function Ma(t){if("row"===o.defaultSelection)s.SelectRowByIndex(t);else{o.ClearSelections();var e=i.cellIndex,n=b.dom().rows[t];"both"===o.defaultSelection&&s.SelectRowByIndex(t),n&&s.SelectCell(n.cells[e])}if(b.validRowsIndex.length!==b.getRowsNb()){var r=b.dom().rows[t];r&&r.scrollIntoView(!1),l&&(l.cellIndex===b.getCellsNb()-1&&b.gridLayout?b.tblCont.scrollLeft=1e8:0===l.cellIndex&&b.gridLayout?b.tblCont.scrollLeft=0:l.scrollIntoView(!1))}}var s=o.Selection;if(b.validRowsIndex){var e,n=b.validRowsIndex,r=n.length,a="row"!==o.defaultSelection?i.parentNode:i,l="TD"===i.nodeName?i:null,c=void 0!==t?o.Event.GetKey(t):0,u=-1!==n.indexOf(a.rowIndex),f=b.feature("paging"),p=34===c||33===c?f&&f.pageLength||o.nbRowsPerPage:1;if(u)34!==c&&33!==c?(y=n.indexOf(a.rowIndex),_=a.rowIndex):(e=34===c?y+p<=r-1?n[y+p]:[r-1]:y-p<=n[0]?n[0]:n[y-p],_=e,y=n.indexOf(e),Ma(e));else{if(a.rowIndex>_)if(a.rowIndex>=n[r-1])e=n[r-1];else{var d=y+p;e=r-1<d?n[r-1]:n[d]}else if(a.rowIndex<=n[0])e=n[0];else{var h=n[y-p];e=h||n[0]}_=a.rowIndex,Ma(e)}}},i=function onBeforeSelection(t,e){var n="row"!==t.defaultSelection?e.parentNode:e;if(b.paging&&1<b.feature("paging").nbPages){var r=b.feature("paging");t.nbRowsPerPage=r.pageLength;var o=b.validRowsIndex,i=o.length,s=parseInt(r.startPagingRow,10)+parseInt(r.pageLength,10),a=n.rowIndex;a===o[i-1]&&r.currentPageNb!==r.nbPages?r.setPage("last"):a===o[0]&&1!==r.currentPageNb?r.setPage("first"):a>o[s-1]&&a<o[i-1]?r.setPage("next"):a<o[r.startPagingRow]&&a>o[0]&&r.setPage("previous")}};if(b.paging&&(b.feature("paging").onAfterChangePage=function(t){var e=t.tf.extension("advancedGrid")._ezEditTable.Selection,n=e.GetActiveRow();n&&n.scrollIntoView(!1);var r=e.GetActiveCell();r&&r.scrollIntoView(!1)}),"row"===e.default_selection){var s=e.on_before_selected_row;e.on_before_selected_row=function(){var t=arguments;i(t[0],t[1]),s&&s.call(null,t[0],t[1],t[2])};var a=e.on_after_selected_row;e.on_after_selected_row=function(){var t=arguments;o(t[0],t[1],t[2]),a&&a.call(null,t[0],t[1],t[2])}}else{var l=e.on_before_selected_cell;e.on_before_selected_cell=function(){var t=arguments;i(t[0],t[1]),l&&l.call(null,t[0],t[1],t[2])};var c=e.on_after_selected_cell;e.on_after_selected_cell=function(){var t=arguments;o(t[0],t[1],t[2]),c&&c.call(null,t[0],t[1],t[2])}}}if(n){var u=e.on_added_dom_row;if(e.on_added_dom_row=function(){var t=arguments;b.nbFilterableRows++,b.paging?(b.nbFilterableRows++,b.paging=!1,b.feature("paging").destroy(),b.feature("paging").reset()):b.emitter.emit("rows-changed",b,this),b.alternateRows&&b.feature("alternateRows").init(),u&&u.call(null,t[0],t[1],t[2])},e.actions&&e.actions.delete){var f=e.actions.delete.on_after_submit;e.actions.delete.on_after_submit=function(){var t=arguments;b.nbFilterableRows--,b.paging?(b.nbFilterableRows--,b.paging=!1,b.feature("paging").destroy(),b.feature("paging").reset(!1)):b.emitter.emit("rows-changed",b,this),b.alternateRows&&b.feature("alternateRows").init(),f&&f.call(null,t[0],t[1])}}}try{this._ezEditTable=new EditTable(b.id,e,t),this._ezEditTable.Init()}catch(t){throw new Error('Failed to instantiate EditTable object.\n \n"ezEditTable" dependency not found.')}this.initialized=!0}},{key:"reset",value:function reset(){var t=this._ezEditTable;t&&(this.cfg.selection&&t.Selection.Set(),this.cfg.editable&&t.Editable.Set())}},{key:"toggle",value:function toggle(){var t=this._ezEditTable;t.editable?t.Editable.Remove():t.Editable.Set(),t.selection?t.Selection.Remove():t.Selection.Set()}},{key:"_toggleForInputFilter",value:function _toggleForInputFilter(){var t=this.tf;if(t.getActiveFilterId()){var e=t.getColumnIndexFromFilterId(t.getActiveFilterId());t.getFilterType(e)===i.INPUT&&this.toggle()}}},{key:"destroy",value:function destroy(){var t=this;if(this.initialized){var e=this._ezEditTable;e&&(this.cfg.selection&&(e.Selection.ClearSelections(),e.Selection.Remove()),this.cfg.editable&&e.Editable.Remove()),this.emitter.off(["filter-focus","filter-blur"],function(){return t._toggleForInputFilter()}),this.initialized=!1}}}]),AdapterEzEditTable}();r.meta={altName:"advancedGrid"}},444:function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return r});var o=n(10),a=n(3),c=n(2),u=n(5),i=n(22),f=n(4),s=n(1);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(r){var o=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var r=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(AdapterSortableTable,o["Feature"]);var r=_createSuper(AdapterSortableTable);function AdapterSortableTable(t,e){var n;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,AdapterSortableTable),(n=r.call(this,t,AdapterSortableTable)).name=e.name,n.desc=Object(s.defaultsStr)(e.description,"Sortable table"),n.sorted=!1,n.sortTypes=Object(s.defaultsArr)(e.types,t.colTypes),n.sortColAtStart=Object(s.defaultsArr)(e.sort_col_at_start,null),n.asyncSort=Boolean(e.async_sort),n.triggerIds=Object(s.defaultsArr)(e.trigger_ids,[]),n.imgPath=Object(s.defaultsStr)(e.images_path,t.themesPath),n.imgBlank=Object(s.defaultsStr)(e.image_blank,"blank.png"),n.imgClassName=Object(s.defaultsStr)(e.image_class_name,"sort-arrow"),n.imgAscClassName=Object(s.defaultsStr)(e.image_asc_class_name,"ascending"),n.imgDescClassName=Object(s.defaultsStr)(e.image_desc_class_name,"descending"),n.customKey=Object(s.defaultsStr)(e.custom_key,"data-tf-sortKey"),n.onSortLoaded=Object(s.defaultsFn)(e.on_sort_loaded,a.EMPTY_FN),n.onBeforeSort=Object(s.defaultsFn)(e.on_before_sort,a.EMPTY_FN),n.onAfterSort=Object(s.defaultsFn)(e.on_after_sort,a.EMPTY_FN),n.stt=null,n.enable(),n}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(AdapterSortableTable,[{key:"init",value:function init(){if(!this.initialized){var e=this.tf,n=this;if(Object(a.isUndef)(SortableTable))throw new Error("SortableTable class not found.");this.emitter.emit("add-date-type-formats",this.tf,this.sortTypes),this.overrideSortableTable(),this.setSortTypes(),this.onSortLoaded(e,this),this.stt.onbeforesort=function(){n.onBeforeSort(e,n.stt.sortColumn),e.paging&&e.feature("paging").disable()},this.stt.onsort=function(){if(n.sorted=!0,e.paging){var t=e.feature("paging");e.getValidRows(!0),t.enable(),t.setPage(t.getPage())}n.onAfterSort(e,n.stt.sortColumn,n.stt.descending),n.emitter.emit("column-sorted",e,n.stt.sortColumn,n.stt.descending)};var t=n.sortColAtStart;t&&this.stt.sort(t[0],t[1]),this.emitter.on(["sort"],Object(u.bound)(this.sortByColumnIndexHandler,this)),this.initialized=!0,this.emitter.emit("sort-initialized",e,this)}}},{key:"sortByColumnIndex",value:function sortByColumnIndex(t,e){this.stt.sort(t,e)}},{key:"sortByColumnIndexHandler",value:function sortByColumnIndexHandler(t,e,n){this.sortByColumnIndex(e,n)}},{key:"overrideSortableTable",value:function overrideSortableTable(){var l=this,a=this.tf;SortableTable.prototype.headerOnclick=function(t){if(l.initialized){for(var e=t.target||t.srcElement;e.tagName!==f.CELL_TAG&&e.tagName!==f.HEADER_TAG;)e=e.parentNode;this.sort(SortableTable.msie?SortableTable.getCellIndex(e):e.cellIndex)}},SortableTable.getCellIndex=function(t){var e,n=t.parentNode.cells,r=n.length;for(e=0;n[e]!==t&&e<r;e++);return e},SortableTable.prototype.initHeader=function(t){var e=this;if(!e.tHead){if(!a.gridLayout)return;e.tHead=a.feature("gridLayout").headTbl.tHead}e.headersRow=a.headersRow;var n=e.tHead.rows[e.headersRow].cells;e.sortTypes=t||[];for(var r,o,i=n.length,s=0;s<i;s++)o=n[s],null!==e.sortTypes[s]&&"None"!==e.sortTypes[s]?(o.style.cursor="pointer",r=Object(c.createElm)("img",["src",l.imgPath+l.imgBlank]),o.appendChild(r),null!==e.sortTypes[s]&&o.setAttribute("_sortType",e.sortTypes[s]),Object(u.addEvt)(o,"click",e._headerOnclick)):(o.setAttribute("_sortType",t[s]),o._sortType="None");e.updateHeaderArrows()},SortableTable.prototype.updateHeaderArrows=function(){var t,e,n;if(l.asyncSort&&0<l.triggerIds.length){var r=l.triggerIds;t=[],e=r.length;for(var o=0;o<e;o++)t.push(Object(c.elm)(r[o]))}else{if(!this.tHead)return;e=(t=this.tHead.rows[this.headersRow].cells).length}for(var i=0;i<e;i++){var s=t[i];if(s){var a=s.getAttribute("_sortType");null!==a&&"None"!==a&&("img"!==(n=s.lastChild||s).nodeName.toLowerCase()&&(n=Object(c.createElm)("img",["src",l.imgPath+l.imgBlank]),s.appendChild(n)),i===this.sortColumn?n.className=l.imgClassName+" "+(this.descending?l.imgDescClassName:l.imgAscClassName):n.className=l.imgClassName)}}},SortableTable.prototype.getRowValue=function(t,e,n){var r=this._sortTypeInfo[e];if(r&&r.getRowValue)return r.getRowValue(t,n);var o=t.cells[n],i=SortableTable.getInnerText(o);return this.getValueFromString(i,e)},SortableTable.getInnerText=function(t){if(t)return t.getAttribute(l.customKey)?t.getAttribute(l.customKey):a.getCellValue(t)}}},{key:"addSortType",value:function addSortType(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],s=e[3];SortableTable.prototype.addSortType(r,o,i,s)}},{key:"setSortTypes",value:function setSortTypes(){var r=this,o=this.tf,i=this.sortTypes,s=[];o.eachCol(function(t){var e;if(i[t])if(e=i[t],Object(a.isObj)(e)){if(e.type===f.DATE)e=r._addDateType(t,i);else if(e.type===f.FORMATTED_NUMBER){var n=e.decimal||o.decimalSeparator;e=r._addNumberType(t,n)}}else(e=e.toLowerCase())===f.DATE?e=r._addDateType(t,i):e===f.FORMATTED_NUMBER||e===f.NUMBER?e=r._addNumberType(t,o.decimalSeparator):e===f.NONE&&(e="None");else e=f.STRING;s.push(e)}),this.addSortType("caseinsensitivestring",SortableTable.toUpperCase),this.addSortType(f.STRING),this.addSortType(f.IP_ADDRESS,ipAddress,sortIP),this.stt=new SortableTable(o.dom(),s),this.asyncSort&&0<this.triggerIds.length&&function(){for(var n=r.triggerIds,t=0;t<n.length;t++)if(null!==n[t]){var e=Object(c.elm)(n[t]);e&&(e.style.cursor="pointer",Object(u.addEvt)(e,"click",function(t){var e=t.target;r.tf.sort&&r.stt.asyncSort(n.indexOf(e.id))}),e.setAttribute("_sortType",s[t]))}}()}},{key:"_addDateType",value:function _addDateType(t,e){var n=this.tf,r=n.feature("dateType"),o=r.getOptions(t,e).locale||n.locale,i="".concat(f.DATE,"-").concat(o);return this.addSortType(i,function(t){var e=r.parse(t,o);return isNaN(+e)?new Date(-864e11):e}),i}},{key:"_addNumberType",value:function _addNumberType(t,e){var n="".concat(f.FORMATTED_NUMBER).concat("."===e?"":"-custom");return this.addSortType(n,function(t){return Object(i.parse)(t,e)}),n}},{key:"destroy",value:function destroy(){if(this.initialized){var t=this.tf;this.emitter.off(["sort"],Object(u.bound)(this.sortByColumnIndexHandler,this)),this.sorted=!1,this.stt.destroy();for(var e=t.getFiltersId(),n=0;n<e.length;n++){var r=t.getHeaderElement(n),o=Object(c.tag)(r,"img");1===o.length&&r.removeChild(o[0])}this.initialized=!1}}}]),AdapterSortableTable}();function ipAddress(t){var e=t.split(".");for(var n in e){for(var r=e[n];r.length<3;)r="0"+r;e[n]=r}return e.join(".")}function sortIP(t,e){var n=ipAddress(t.value.toLowerCase()),r=ipAddress(e.value.toLowerCase());return n===r?0:n<r?-1:1}r.meta={altName:"sort"}},445:function(t,e,n){"use strict";n.r(e),n.d(e,"TableFilterElement",function(){return a});var r=n(127),o=n(441);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createSuper(r){var o=_isNativeReflectConstruct();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var s=["before-filter-init","after-filter-init","initialized","filters-row-inserted","filter-focus","filter-blur","before-filtering","after-filtering","before-clearing-filters","after-clearing-filters","destroy"],i=["for","config"],a=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(TableFilterElement,_wrapNativeSuper(HTMLElement));var e=_createSuper(TableFilterElement);function TableFilterElement(){var t;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,TableFilterElement),(t=e.call(this))._connected=!1,t._emptyTableObserver=null,t._tableArrivalObserver=null,t._attrObserver=null,t._hostObserver=null,t}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(TableFilterElement,[{key:"connectedCallback",value:function connectedCallback(){this._connected=!0,this._observeAttributes(),this._init()}},{key:"disconnectedCallback",value:function disconnectedCallback(){this._connected=!1,this._teardown(),this._attrObserver&&(this._attrObserver.disconnect(),this._attrObserver=null)}},{key:"_init",value:function _init(){if(this._teardown(),this.table=this._resolveTable(),this.table){if(0===this.table.rows.length)return this.tf=null,void this._observeEmptyTable();var t=this._extractConfig();this.tf=0===Object.keys(t).length?new r.TableFilter(this.table):new r.TableFilter(this.table,t),this._bridgeEvents(),this.tf.init()}else this._observeTableArrival()}},{key:"_resolveTable",value:function _resolveTable(){return this.querySelector("table")||(this.hasAttribute("for")?document.getElementById(this.getAttribute("for")):null)}},{key:"_teardown",value:function _teardown(){this._unobserveEmptyTable(),this._unobserveTableArrival(),this.tf&&this.tf.isInitialized()&&this.tf.destroy(),this._unbridgeEvents(),this.tf=null}},{key:"_observeEmptyTable",value:function _observeEmptyTable(){var t=this;!this.table||0<this.table.rows.length||(this._emptyTableObserver=new MutationObserver(function(){t._connected&&t.table&&0<t.table.rows.length&&(t._unobserveEmptyTable(),t._init())}),this._emptyTableObserver.observe(this.table,{childList:!0,subtree:!0}),this._hostObserver=new MutationObserver(function(){!t._connected||t.table&&t.table.isConnected||(t._unobserveEmptyTable(),t._init())}),this._hostObserver.observe(this,{childList:!0}))}},{key:"_unobserveEmptyTable",value:function _unobserveEmptyTable(){this._emptyTableObserver&&(this._emptyTableObserver.disconnect(),this._emptyTableObserver=null),this._hostObserver&&(this._hostObserver.disconnect(),this._hostObserver=null)}},{key:"_observeTableArrival",value:function _observeTableArrival(){var t=this,e=this.getRootNode();e&&"undefined"!=typeof MutationObserver&&(this._tableArrivalObserver=new MutationObserver(function(){t._connected&&t._resolveTable()&&(t._unobserveTableArrival(),t._init())}),this._tableArrivalObserver.observe(e,{childList:!0,subtree:!0}))}},{key:"_unobserveTableArrival",value:function _unobserveTableArrival(){this._tableArrivalObserver&&(this._tableArrivalObserver.disconnect(),this._tableArrivalObserver=null)}},{key:"_observeAttributes",value:function _observeAttributes(){var e=this;this._attrObserver&&this._attrObserver.disconnect(),this._attrObserver=new MutationObserver(function(t){e._connected&&t.some(function(t){return!Object(o.isSkippedAttribute)(t.attributeName)})&&e._init()}),this._attrObserver.observe(this,{attributes:!0})}},{key:"_bridgeEvents",value:function _bridgeEvents(){var o=this;this._unbridgeEvents();var i=this.tf;this._bridged={},this._bridgedTf=i,s.forEach(function(r){function gf(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];o.dispatchEvent(new CustomEvent(r,{detail:{tf:i,args:e.slice(1)},bubbles:!0}))}i.emitter.on([r],gf),o._bridged[r]=gf})}},{key:"_unbridgeEvents",value:function _unbridgeEvents(){var e=this,n=this._bridgedTf;n&&this._bridged&&(Object.keys(this._bridged).forEach(function(t){n.emitter.off([t],e._bridged[t])}),this._bridged=null,this._bridgedTf=null)}},{key:"_extractConfig",value:function _extractConfig(){var e={},n=this.getAttribute("config");if(null!==n)try{var t=JSON.parse(n);null===t||"object"!==_typeof(t)||Array.isArray(t)?console.warn("<table-filter>: config attribute must be a JSON object, ignoring: "+n):e=t}catch(t){console.warn("<table-filter>: invalid config attribute, ignoring: "+n)}return Array.prototype.forEach.call(this.attributes,function(t){Object(o.isSkippedAttribute)(t.name,i)||(e[t.name.replace(/-/g,"_")]=function parseValue(e){if(""===e)return!0;try{return JSON.parse(e)}catch(t){return!!/^true$/i.test(e)||!/^false$/i.test(e)&&e}}(t.value))}),e}}]),TableFilterElement}();"undefined"==typeof customElements||customElements.get("table-filter")||customElements.define("table-filter",a)},446:function(t,e,n){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createSuper(r){var o=_isNativeReflectConstruct();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.r(e),n.d(e,"TfClearButtonElement",function(){return o});var r=document.createElement("template");r.innerHTML='\n <button type="button" part="button">\n <slot></slot>\n </button>\n';var o=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(TfClearButtonElement,_wrapNativeSuper(HTMLElement));var e=_createSuper(TfClearButtonElement);function TfClearButtonElement(){var t;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,TfClearButtonElement),(t=e.call(this)).attachShadow({mode:"open"}),t.shadowRoot.appendChild(r.content.cloneNode(!0)),t._button=t.shadowRoot.querySelector("button"),t}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(TfClearButtonElement,[{key:"connectedCallback",value:function connectedCallback(){this._update()}},{key:"attributeChangedCallback",value:function attributeChangedCallback(){this._update()}},{key:"setLabel",value:function setLabel(t){this.setAttribute("label",null==t?"":String(t))}},{key:"setText",value:function setText(t){this.setAttribute("text",null==t?"":String(t))}},{key:"_update",value:function _update(){if(this._button){var t=this.getAttribute("label");t?this._button.setAttribute("aria-label",t):this._button.removeAttribute("aria-label");var e=this.getAttribute("text");this._button.textContent=e||"",this.hasAttribute("disabled")?this._button.setAttribute("disabled",""):this._button.removeAttribute("disabled")}}}],[{key:"observedAttributes",get:function get(){return["label","text","disabled"]}}]),TfClearButtonElement}();"undefined"==typeof customElements||customElements.get("tf-clear-button")||customElements.define("tf-clear-button",o)},447:function(t,e,n){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createSuper(r){var o=_isNativeReflectConstruct();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.r(e),n.d(e,"TfPagerElement",function(){return i});var o=[{part:"first"},{part:"prev"},{part:"next"},{part:"last"}],r=document.createElement("template");r.innerHTML='\n <nav part="nav">\n <button type="button" part="first">\n <slot name="first"></slot><span part="first-text"></span>\n </button>\n <button type="button" part="prev">\n <slot name="prev"></slot><span part="prev-text"></span>\n </button>\n <span part="page-status" aria-current="page">\n <span part="page-text"></span>\n <span part="page-selector"></span>\n <span part="of-text"></span>\n <span part="total-pages"></span>\n </span>\n <button type="button" part="next">\n <slot name="next"></slot><span part="next-text"></span>\n </button>\n <button type="button" part="last">\n <slot name="last"></slot><span part="last-text"></span>\n </button>\n </nav>\n';var i=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(TfPagerElement,_wrapNativeSuper(HTMLElement));var t=_createSuper(TfPagerElement);function TfPagerElement(){var e;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,TfPagerElement),(e=t.call(this)).attachShadow({mode:"open"}),e.shadowRoot.appendChild(r.content.cloneNode(!0)),e._nav=e.shadowRoot.querySelector("nav"),e._buttons=o.map(function(t){return e.shadowRoot.querySelector('[part="'.concat(t.part,'"]'))}),e._texts=o.map(function(t){return e.shadowRoot.querySelector('[part="'.concat(t.part,'-text"]'))}),e._pageText=e.shadowRoot.querySelector('[part="page-text"]'),e._pageSelector=e.shadowRoot.querySelector('[part="page-selector"]'),e._ofText=e.shadowRoot.querySelector('[part="of-text"]'),e._totalPagesEl=e.shadowRoot.querySelector('[part="total-pages"]'),e._pages=[],e}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(TfPagerElement,[{key:"connectedCallback",value:function connectedCallback(){this._update()}},{key:"attributeChangedCallback",value:function attributeChangedCallback(){this._update()}},{key:"setLabel",value:function setLabel(t){this.setAttribute("label",null==t?"":String(t))}},{key:"setPage",value:function setPage(t){this.setAttribute("page",null==t?"":String(t))}},{key:"setTotalPages",value:function setTotalPages(t){this.setAttribute("total-pages",null==t?"":String(t))}},{key:"_update",value:function _update(){var n=this;if(this._nav){this._setAriaLabel(this._nav,"label");var r="false"!==this.getAttribute("buttons");o.forEach(function(t,e){n._setAriaLabel(n._buttons[e],"".concat(t.part,"-label")),n._texts[e].textContent=n.getAttribute("".concat(t.part,"-text"))||"",n.hasAttribute("disabled")?n._buttons[e].setAttribute("disabled",""):n._buttons[e].removeAttribute("disabled"),r?n._buttons[e].removeAttribute("hidden"):n._buttons[e].setAttribute("hidden","")}),this._pageText.textContent=this.getAttribute("page-text")||"",this._ofText.textContent=this.getAttribute("of-text")||"",this._totalPagesEl.textContent=this._totalPages(),this._updateSelector(this._syncSelector())}}},{key:"_totalPages",value:function _totalPages(){return this.getAttribute("total-pages")||""}},{key:"setPages",value:function setPages(t){this._pages=Array.isArray(t)?t:[],this._update()}},{key:"_syncSelector",value:function _syncSelector(){var e=this,t="input"===this.getAttribute("selector-type"),n=t?"page-input":"page-select",r=this._pageSelector.firstElementChild;if(r&&r.getAttribute("part")===n)return r;this._pageSelector.textContent="";var o=document.createElement(t?"input":"select");return o.setAttribute("part",n),t?(o.setAttribute("type","number"),o.setAttribute("min","1"),o.addEventListener("keydown",function(t){"Enter"===t.key&&""!==o.value&&e._dispatchPageChange(o.value)})):o.addEventListener("change",function(){var t=o.options[o.selectedIndex];t&&e._dispatchPageChange(t.textContent)}),this._pageSelector.appendChild(o),o}},{key:"_dispatchPageChange",value:function _dispatchPageChange(t){this.dispatchEvent(new CustomEvent("page-change",{detail:{page:String(t)},bubbles:!0,composed:!0}))}},{key:"_updateSelector",value:function _updateSelector(n){this._setSelectorLabel(n);var r=this.getAttribute("page")||"",t=this._totalPages();if("page-input"===n.getAttribute("part"))return n.value=r,void(""!==t?n.setAttribute("max",t):n.removeAttribute("max"));n.textContent="",this._pages.forEach(function(t){var e=document.createElement("option");e.value=String(t.value),e.textContent=String(t.text),String(t.text)===r&&e.setAttribute("selected","true"),n.appendChild(e)})}},{key:"_setSelectorLabel",value:function _setSelectorLabel(t){this.hasAttribute("selector-label")?this._setAriaLabel(t,"selector-label"):t.setAttribute("aria-label","Current page")}},{key:"_setAriaLabel",value:function _setAriaLabel(t,e){var n=this.getAttribute(e);n?t.setAttribute("aria-label",n):t.removeAttribute("aria-label")}}],[{key:"observedAttributes",get:function get(){return["label","disabled","buttons","page","total-pages","page-text","of-text","selector-type","selector-label"].concat(o.map(function(t){return"".concat(t.part,"-label")})).concat(o.map(function(t){return"".concat(t.part,"-text")}))}}]),TfPagerElement}();"undefined"==typeof customElements||customElements.get("tf-pager")||customElements.define("tf-pager",i)},448:function(t,e,n){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createSuper(r){var o=_isNativeReflectConstruct();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.r(e),n.d(e,"TfResultsPerPageElement",function(){return o});var r=document.createElement("template");r.innerHTML='\n <label part="results-label">\n <span part="results-text"></span><select part="results-select"></select>\n </label>\n';var o=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(TfResultsPerPageElement,_wrapNativeSuper(HTMLElement));var e=_createSuper(TfResultsPerPageElement);function TfResultsPerPageElement(){var t;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,TfResultsPerPageElement),(t=e.call(this)).attachShadow({mode:"open"}),t.shadowRoot.appendChild(r.content.cloneNode(!0)),t._textEl=t.shadowRoot.querySelector('[part="results-text"]'),t._select=t.shadowRoot.querySelector('[part="results-select"]'),t._lengths=[],t._select.addEventListener("change",function(){t.setAttribute("page-length",t._select.value),t.dispatchEvent(new CustomEvent("page-length-change",{detail:{pageLength:t._select.value},bubbles:!0,composed:!0}))}),t}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(TfResultsPerPageElement,[{key:"connectedCallback",value:function connectedCallback(){this._update()}},{key:"attributeChangedCallback",value:function attributeChangedCallback(){this._update()}},{key:"setText",value:function setText(t){this.setAttribute("results-text",null==t?"":String(t))}},{key:"setPageLength",value:function setPageLength(t){this.setAttribute("page-length",null==t?"":String(t))}},{key:"setPageLengths",value:function setPageLengths(t){this._lengths=Array.isArray(t)?t:[],this._updateOptions()}},{key:"_update",value:function _update(){this._textEl.textContent=this.getAttribute("results-text")||"",this._setSelectName(),this._selectOptions()}},{key:"_setSelectName",value:function _setSelectName(){this.getAttribute("results-text")?this._select.removeAttribute("aria-label"):this._select.setAttribute("aria-label","Rows per page")}},{key:"_updateOptions",value:function _updateOptions(){var e=this;this._select.textContent="",this._lengths.forEach(function(t){e._select.add(new Option(t,t,!1,!1))}),this._selectOptions()}},{key:"_selectOptions",value:function _selectOptions(){var t=this._select.options;if(0!==t.length){for(var e=this.getAttribute("page-length")||"",n=-1,r=0;r<t.length;r++)if(t[r].value===e){n=r;break}-1===n&&(n=0),t[n].selected=!0,t[n].value!==e&&this.setAttribute("page-length",t[n].value)}}}],[{key:"observedAttributes",get:function get(){return["results-text","page-length"]}}]),TfResultsPerPageElement}();"undefined"==typeof customElements||customElements.get("tf-results-per-page")||customElements.define("tf-results-per-page",o)},449:function(t,e,n){"use strict";n.r(e),n.d(e,"TfRowsCounterElement",function(){return i});var r=n(441);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createSuper(r){var o=_isNativeReflectConstruct();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var o=document.createElement("template");o.innerHTML='\n <span part="label"></span>\n <span part="count"></span>\n';var i=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(TfRowsCounterElement,_wrapNativeSuper(HTMLElement));var e=_createSuper(TfRowsCounterElement);function TfRowsCounterElement(){var t;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,TfRowsCounterElement),(t=e.call(this)).attachShadow({mode:"open"}),t.shadowRoot.appendChild(o.content.cloneNode(!0)),t._labelEl=t.shadowRoot.querySelector('[part="label"]'),t._countEl=t.shadowRoot.querySelector('[part="count"]'),t}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(TfRowsCounterElement,[{key:"connectedCallback",value:function connectedCallback(){Object(r.applyLiveRegion)(this),this._update()}},{key:"attributeChangedCallback",value:function attributeChangedCallback(){this._update()}},{key:"setCount",value:function setCount(t){this.setAttribute("count",null==t?"":String(t))}},{key:"_update",value:function _update(){this._labelEl&&(this._labelEl.textContent=this.getAttribute("text")||""),this._countEl&&(this._countEl.textContent=this.getAttribute("count")||"")}}],[{key:"observedAttributes",get:function get(){return["text","count"]}}]),TfRowsCounterElement}();"undefined"==typeof customElements||customElements.get("tf-rows-counter")||customElements.define("tf-rows-counter",i)},450:function(t,e,n){"use strict";n.r(e),n.d(e,"TfStatusElement",function(){return s});var r=n(442),o=n(441);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createSuper(r){var o=_isNativeReflectConstruct();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)})(t)}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var i=document.createElement("template");i.innerHTML='\n <span part="label"></span>\n <span part="message"></span>\n';var s=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(TfStatusElement,_wrapNativeSuper(HTMLElement));var e=_createSuper(TfStatusElement);function TfStatusElement(){var t;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,TfStatusElement),(t=e.call(this)).attachShadow({mode:"open"}),t.shadowRoot.appendChild(i.content.cloneNode(!0)),t._labelEl=t.shadowRoot.querySelector('[part="label"]'),t._msgEl=t.shadowRoot.querySelector('[part="message"]'),t}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(TfStatusElement,[{key:"connectedCallback",value:function connectedCallback(){Object(o.applyLiveRegion)(this),this._update()}},{key:"attributeChangedCallback",value:function attributeChangedCallback(){this._update()}},{key:"setMessage",value:function setMessage(t){this.setAttribute("message",null==t?"":String(t))}},{key:"_update",value:function _update(){this._labelEl&&(this._labelEl.textContent=this.getAttribute("text")||""),this._msgEl&&(this._msgEl.innerHTML=Object(r.sanitizeHtml)(this.getAttribute("message")||""))}}],[{key:"observedAttributes",get:function get(){return["text","message"]}}]),TfStatusElement}();"undefined"==typeof customElements||customElements.get("tf-status")||customElements.define("tf-status",s)},451:function(t,e,n){"use strict";n.r(e);var r=n(443);e.default=r.default},452:function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return r});var o=n(10),d=n(2),C=n(3),s=n(31),i=n(4),h=n(22),a=n(1),l=n(5);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(r){var o=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=["after-filtering","after-page-change","after-page-length-change"],r=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(ColOps,o["Feature"]);var r=_createSuper(ColOps);function ColOps(t,e){var n;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,ColOps),(n=r.call(this,t,ColOps)).onBeforeOperation=Object(a.defaultsFn)(e.on_before_operation,C.EMPTY_FN),n.onAfterOperation=Object(a.defaultsFn)(e.on_after_operation,C.EMPTY_FN),n.opts=e,n.labelIds=Object(a.defaultsArr)(e.id,[]),n.colIndexes=Object(a.defaultsArr)(e.col,[]),n.operations=Object(a.defaultsArr)(e.operation,[]),n.outputTypes=Object(a.defaultsArr)(e.write_method,[]),n.formatResults=Object(a.defaultsArr)(e.format_result,[]),n.totRowIndexes=Object(a.defaultsArr)(e.tot_row_index,[]),n.excludeRows=Object(a.defaultsArr)(e.exclude_row,[]),n.decimalPrecisions=Object(a.defaultsArr)(e.decimal_precision,2),n.enable(),n}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(ColOps,[{key:"init",value:function init(){this.initialized||(this.emitter.on(c,Object(l.bound)(this.calcAll,this)),this.calcAll(),this.initialized=!0)}},{key:"calcAll",value:function calcAll(){var t=this.tf;if(t.isInitialized()){this.onBeforeOperation(t,this),this.emitter.emit("before-column-operation",t,this);var e=this.colIndexes,n=this.operations,r=this.outputTypes,o=this.totRowIndexes,i=this.excludeRows,s=this.formatResults,a=this.decimalPrecisions,l=[];e.forEach(function(t){-1===l.indexOf(t)&&l.push(t)});for(var c=l.length,u=t.dom().rows,f=[],p=0;p<c;p++){f.push(t.getVisibleColumnData(l[p],!1,i));for(var d=f[p],h=0,b=[],y=[],_=[],v=void 0,m=[],g=0,T=0;T<e.length;T++)e[T]===l[p]&&(b[g]=(n[T]||"sum").toLowerCase(),y[g]=a[T],_[g]=this.labelIds[T],v=Object(C.isArray)(r)?r[T]:null,m[g]=this.configureFormat(l[p],s[T]),g++);for(var O=0;O<g;O++)this.emitter.emit("before-column-calc",t,this,l[p],d,b[O],y[O]),h=Number(this.calc(d,b[O],null)),this.emitter.emit("column-calc",t,this,l[p],h,b[O],y[O]),this.writeResult(h,_[O],v,y[O],m[O]);var S=o&&o[p]?u[o[p]]:null;S&&(S.style.display="")}this.onAfterOperation(t,this),this.emitter.emit("after-column-operation",t,this)}}},{key:"columnCalc",value:function columnCalc(t,e,n){var r=1<arguments.length&&void 0!==e?e:"sum",o=2<arguments.length?n:void 0,i=this.excludeRows||[],s=tf.getVisibleColumnData(t,!1,i);return Number(this.calc(s,r,o))}},{key:"calc",value:function calc(t,e,n){var r=1<arguments.length&&void 0!==e?e:"sum",o=2<arguments.length?n:void 0,i=0;switch("q1"!==r&&"q3"!==r&&"median"!==r||(t=this.sortColumnValues(t,s.numSortAsc)),r){case"mean":i=this.calcMean(t);break;case"sum":i=this.calcSum(t);break;case"min":i=this.calcMin(t);break;case"max":i=this.calcMax(t);break;case"median":i=this.calcMedian(t);break;case"q1":i=this.calcQ1(t);break;case"q3":i=this.calcQ3(t)}return Object(C.isEmpty)(o)?i:i.toFixed(o)}},{key:"calcSum",value:function calcSum(t){var e=0<arguments.length&&void 0!==t?t:[];return Object(C.isEmpty)(e)?0:e.reduce(function(t,e){return Number(t)+Number(e)})}},{key:"calcMean",value:function calcMean(t){var e=0<arguments.length&&void 0!==t?t:[],n=this.calcSum(e)/e.length;return Number(n)}},{key:"calcMax",value:function calcMax(t){var e=0<arguments.length&&void 0!==t?t:[];return Math.max.apply(null,e)}},{key:"calcMin",value:function calcMin(t){var e=0<arguments.length&&void 0!==t?t:[];return Math.min.apply(null,e)}},{key:"calcMedian",value:function calcMedian(t){var e=0<arguments.length&&void 0!==t?t:[],n=e.length,r=0;return n%2==1?(r=Math.floor(n/2),Number(e[r])):(Number(e[n/2])+Number(e[n/2-1]))/2}},{key:"calcQ1",value:function calcQ1(t){var e,n=0<arguments.length&&void 0!==t?t:[],r=n.length;return 4*(e=Math.floor(r/4))===r?(Number(n[e-1])+Number(n[e]))/2:Number(n[e])}},{key:"calcQ3",value:function calcQ3(t){var e,n=0<arguments.length&&void 0!==t?t:[],r=n.length,o=0;return 4*(e=Math.floor(r/4))===r?(o=3*e,(Number(n[o])+Number(n[o-1]))/2):Number(n[r-e-1])}},{key:"sortColumnValues",value:function sortColumnValues(t,e){var n=1<arguments.length?e:void 0;return(0<arguments.length&&void 0!==t?t:[]).sort(n)}},{key:"writeResult",value:function writeResult(t,e,n,r,o){var i=0<arguments.length&&void 0!==t?t:0,s=1<arguments.length?e:void 0,a=2<arguments.length&&void 0!==n?n:"innerhtml",l=3<arguments.length&&void 0!==r?r:2,c=4<arguments.length&&void 0!==o?o:{},u=Object(d.elm)(s);if(u)switch(i=Object(h.formatNumberValue)(i.toFixed(l),c),a.toLowerCase()){case"innerhtml":u.innerHTML=i;break;case"setvalue":u.value=i;break;case"createtextnode":var f=u.firstChild,p=Object(d.createText)(i);u.replaceChild(p,f)}}},{key:"configureFormat",value:function configureFormat(t,e){var n=1<arguments.length&&void 0!==e?e:{},r=this.tf;if(r.hasType(t,[i.FORMATTED_NUMBER])){var o=r.colTypes[t];o.decimal&&!n.decimal&&(n.decimal=o.decimal),o.thousands&&!n.integerSeparator&&(n.integerSeparator=o.thousands)}else n.decimal=n.decimal||"",n.integerSeparator=n.integerSeparator||"";return n}},{key:"destroy",value:function destroy(){this.initialized&&(this.emitter.off(c,Object(l.bound)(this.calcAll,this)),this.initialized=!1)}}]),ColOps}()},453:function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return o});var r=n(10),b=n(2),i=n(3),y=n(5),s=n(9),a=n(4),l=n(1),c=n(18);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(r){var o=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var o=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(ColsVisibility,r["Feature"]);var o=_createSuper(ColsVisibility);function ColsVisibility(t,e){var n;!function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,ColsVisibility);var r=(n=o.call(this,t,ColsVisibility)).config;return n.name=e.name,n.desc=Object(l.defaultsStr)(e.description,"Columns visibility manager"),n.spanEl=null,n.btnEl=null,n.contEl=null,n.tickToHide=Object(l.defaultsBool)(e.tick_to_hide,!0),n.manager=Object(l.defaultsBool)(e.manager,!0),n.headersTbl=e.headers_table||null,n.headersIndex=Object(l.defaultsNb)(e.headers_index,1),n.contElTgtId=Object(l.defaultsStr)(e.container_target_id,null),n.headersText=Object(l.defaultsArr)(e.headers_text,[]),n.btnTgtId=Object(l.defaultsStr)(e.btn_target_id,null),n.btnText=Object(l.defaultsStr)(e.btn_text,"Columns&#9660;"),n.btnHtml=Object(l.defaultsStr)(e.btn_html,null),n.btnCssClass=Object(l.defaultsStr)(e.btn_css_class,"colVis"),n.btnCloseText=Object(l.defaultsStr)(e.btn_close_text,"Close"),n.btnCloseHtml=Object(l.defaultsStr)(e.btn_close_html,null),n.btnCloseCssClass=Object(l.defaultsStr)(e.btn_close_css_class,n.btnCssClass),n.stylesheet=Object(l.defaultsStr)(e.stylesheet,"colsVisibility.css"),n.spanCssClass=Object(l.defaultsStr)(e.span_css_class,"colVisSpan"),n.contCssClass=Object(l.defaultsStr)(e.cont_css_class,"colVisCont"),n.listCssClass=Object(l.defaultsStr)(r.list_css_class,"cols_checklist"),n.listItemCssClass=Object(l.defaultsStr)(r.checklist_item_css_class,"cols_checklist_item"),n.listSlcItemCssClass=Object(l.defaultsStr)(r.checklist_selected_item_css_class,"cols_checklist_slc_item"),n.text=Object(l.defaultsStr)(e.text,n.tickToHide?"Hide: ":"Show: "),n.atStart=Object(l.defaultsArr)(e.at_start,[]),n.enableHover=Boolean(e.enable_hover),n.enableTickAll=Boolean(e.enable_tick_all),n.tickAllText=Object(l.defaultsStr)(e.tick_all_text,"Select all:"),n.toolbarPosition=Object(l.defaultsStr)(e.toolbar_position,c.RIGHT),n.hiddenCols=[],n.boundMouseup=null,n.onLoaded=Object(l.defaultsFn)(e.on_loaded,i.EMPTY_FN),n.onBeforeOpen=Object(l.defaultsFn)(e.on_before_open,i.EMPTY_FN),n.onAfterOpen=Object(l.defaultsFn)(e.on_after_open,i.EMPTY_FN),n.onBeforeClose=Object(l.defaultsFn)(e.on_before_close,i.EMPTY_FN),n.onAfterClose=Object(l.defaultsFn)(e.on_after_close,i.EMPTY_FN),n.onBeforeColHidden=Object(l.defaultsFn)(e.on_before_col_hidden,i.EMPTY_FN),n.onAfterColHidden=Object(l.defaultsFn)(e.on_after_col_hidden,i.EMPTY_FN),n.onBeforeColDisplayed=Object(l.defaultsFn)(e.on_before_col_displayed,i.EMPTY_FN),n.onAfterColDisplayed=Object(l.defaultsFn)(e.on_after_col_displayed,i.EMPTY_FN),t.gridLayout&&(n.headersTbl=t.feature("gridLayout").headTbl,n.headersIndex=0),t.import(e.name+"Style",t.getStylePath()+n.stylesheet,null,"link"),n.enable(),n}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(ColsVisibility,[{key:"onMouseup",value:function onMouseup(t){for(var e=Object(y.targetEvt)(t);e&&e!==this.contEl&&e!==this.btnEl;)e=e.parentNode;e!==this.contEl&&e!==this.btnEl&&this.toggle()}},{key:"toggle",value:function toggle(){Object(y.removeEvt)(s.root,"mouseup",this.boundMouseup);var t=this.contEl.style.display;"inline"!==t&&this.onBeforeOpen(this),"inline"===t&&this.onBeforeClose(this),this.contEl.style.display="inline"===t?a.NONE:"inline","inline"!==t&&(this.onAfterOpen(this),Object(y.addEvt)(s.root,"mouseup",this.boundMouseup)),"inline"===t&&this.onAfterClose(this)}},{key:"checkItem",value:function checkItem(t){var e=t.parentNode;if(e&&t){var n=t.firstChild.checked,r=t.firstChild.getAttribute("id").split("_")[1];r=parseInt(r,10),n?Object(b.addClass)(e,this.listSlcItemCssClass):Object(b.removeClass)(e,this.listSlcItemCssClass);var o=!1;(this.tickToHide&&n||!this.tickToHide&&!n)&&(o=!0),this.setHidden(r,o)}}},{key:"init",value:function init(){var n=this;!this.initialized&&this.manager&&(this.emitter.emit("initializing-extension",this,!Object(i.isNull)(this.btnTgtId)),this.emitter.on(["hide-column"],function(t,e){return n.hideCol(e)}),this.buildBtn(),this.buildManager(),this.initialized=!0,this.boundMouseup=this.onMouseup.bind(this),this.emitter.emit("columns-visibility-initialized",this.tf,this),this.emitter.emit("extension-initialized",this),this._hideAtStart())}},{key:"buildBtn",value:function buildBtn(){var e=this;if(!this.btnEl){var t=this.tf,n=Object(b.createElm)("span");n.className=this.spanCssClass;var r=this.btnTgtId?Object(b.elm)(this.btnTgtId):t.feature("toolbar").container(this.toolbarPosition);if(this.btnTgtId)r.appendChild(n);else{var o=r.firstChild;o.parentNode.insertBefore(n,o)}if(this.btnHtml){n.innerHTML=this.btnHtml;var i=n.firstChild;this.enableHover?Object(y.addEvt)(i,"mouseover",function(t){return e.toggle(t)}):Object(y.addEvt)(i,"click",function(t){return e.toggle(t)})}else{var s=Object(b.createElm)("a",["href","javascript:;"]);s.className=this.btnCssClass,s.title=this.desc,s.innerHTML=this.btnText,n.appendChild(s),this.enableHover?Object(y.addEvt)(s,"mouseover",function(t){return e.toggle(t)}):Object(y.addEvt)(s,"click",function(t){return e.toggle(t)})}this.spanEl=n,this.btnEl=this.spanEl.firstChild,this.onLoaded(this)}}},{key:"buildManager",value:function buildManager(){var n=this,r=this.tf,t=this.contElTgtId?Object(b.elm)(this.contElTgtId):Object(b.createElm)("div");t.className=this.contCssClass;var e=Object(b.createElm)("p");e.innerHTML=this.text,t.appendChild(e);var o=Object(b.createElm)("ul");o.className=this.listCssClass;var i=this.headersTbl||r.dom(),s=this.headersTbl?this.headersIndex:r.getHeadersRowIndex(),a=i.rows[s];if(this.enableTickAll){var l=Object(b.createCheckItem)("col__"+r.id,this.tickAllText,this.tickAllText);Object(b.addClass)(l,this.listItemCssClass),o.appendChild(l),l.check.checked=!this.tickToHide,Object(y.addEvt)(l.check,"click",function(){for(var t=0;t<a.cells.length;t++){var e=Object(b.elm)("col_"+t+"_"+r.id);e&&l.check.checked!==e.checked&&(e.click(),e.checked=l.check.checked)}})}for(var c=0;c<a.cells.length;c++){var u=a.cells[c],f=this.headersText[c]||this._getHeaderText(u),p=Object(b.createCheckItem)("col_"+c+"_"+r.id,f,f);Object(b.addClass)(p,this.listItemCssClass),this.tickToHide||Object(b.addClass)(p,this.listSlcItemCssClass),o.appendChild(p),this.tickToHide||(p.check.checked=!0),Object(y.addEvt)(p.check,"click",function(t){var e=Object(y.targetEvt)(t).parentNode;n.checkItem(e)})}var d,h=Object(b.createElm)("p",["align","center"]);this.btnCloseHtml?(h.innerHTML=this.btnCloseHtml,d=h.firstChild,Object(y.addEvt)(d,"click",function(t){return n.toggle(t)})):((d=Object(b.createElm)("a",["href","javascript:;"])).className=this.btnCloseCssClass,d.innerHTML=this.btnCloseText,Object(y.addEvt)(d,"click",function(t){return n.toggle(t)}),h.appendChild(d)),t.appendChild(o),t.appendChild(h),this.btnEl.parentNode.insertBefore(t,this.btnEl),this.contEl=t}},{key:"setHidden",value:function setHidden(t,e){var n=this.tf,r=n.dom();e?this.onBeforeColHidden(this,t):this.onBeforeColDisplayed(this,t),this._hideElements(r,t,e),this.headersTbl&&this._hideElements(this.headersTbl,t,e);var o=this.hiddenCols.indexOf(t);e?-1===o&&this.hiddenCols.push(t):-1!==o&&this.hiddenCols.splice(o,1),e?(this.onAfterColHidden(this,t),this.emitter.emit("column-hidden",n,this,t,this.hiddenCols)):(this.onAfterColDisplayed(this,t),this.emitter.emit("column-shown",n,this,t,this.hiddenCols))}},{key:"showCol",value:function showCol(t){if(!Object(i.isUndef)(t)&&this.isColHidden(t))if(this.manager&&this.contEl){var e=Object(b.elm)("col_"+t+"_"+this.tf.id);e&&e.click()}else this.setHidden(t,!1)}},{key:"hideCol",value:function hideCol(t){if(!Object(i.isUndef)(t)&&!this.isColHidden(t))if(this.manager&&this.contEl){var e=Object(b.elm)("col_"+t+"_"+this.tf.id);e&&e.click()}else this.setHidden(t,!0)}},{key:"isColHidden",value:function isColHidden(t){return-1!==this.hiddenCols.indexOf(t)}},{key:"toggleCol",value:function toggleCol(t){Object(i.isUndef)(t)||this.isColHidden(t)?this.showCol(t):this.hideCol(t)}},{key:"getHiddenCols",value:function getHiddenCols(){return this.hiddenCols}},{key:"destroy",value:function destroy(){var n=this;this.initialized&&(Object(b.elm)(this.contElTgtId)?Object(b.elm)(this.contElTgtId).innerHTML="":(this.contEl.innerHTML="",Object(b.removeElm)(this.contEl),this.contEl=null),this.btnEl.innerHTML="",Object(b.removeElm)(this.btnEl),this.btnEl=null,this.emitter.off(["hide-column"],function(t,e){return n.hideCol(e)}),this.boundMouseup=null,this.initialized=!1)}},{key:"_getHeaderText",value:function _getHeaderText(t){if(!t.hasChildNodes)return"";for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(3===n.nodeType)return n.nodeValue;if(1===n.nodeType){if(n.id&&-1!==n.id.indexOf("popUp"))continue;return Object(b.getText)(n)}}return""}},{key:"_hideElements",value:function _hideElements(t,e,n){this._hideCells(t,e,n),this._hideCol(t,e,n)}},{key:"_hideCells",value:function _hideCells(t,e,n){for(var r=0;r<t.rows.length;r++){var o=t.rows[r].cells[e];o&&(o.style.display=n?a.NONE:"")}}},{key:"_hideCol",value:function _hideCol(t,e,n){var r=Object(b.tag)(t,"col");0!==r.length&&(r[e].style.display=n?a.NONE:"")}},{key:"_hideAtStart",value:function _hideAtStart(){var e=this;this.atStart.forEach(function(t){e.hideCol(t)})}}]),ColsVisibility}()},454:function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return r});var o=n(10),s=n(2),i=n(3),a=n(5),l=n(1),c=n(18);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(r){var o=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function _createSuperInternal(){var t,e=_getPrototypeOf(r);if(o){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,t)}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var r=function(){!function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(FiltersVisibility,o["Feature"]);var r=_createSuper(FiltersVisibility);function FiltersVisibility(t,e){var n;return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,FiltersVisibility),(n=r.call(this,t,FiltersVisibility)).name=e.name,n.desc=Object(l.defaultsStr)(e.description,"Filters row visibility manager"),n.stylesheet=Object(l.defaultsStr)(e.stylesheet,"filtersVisibility.css"),n.icnExpand=Object(l.defaultsStr)(e.expand_icon_name,"icn_exp.png"),n.icnCollapse=Object(l.defaultsStr)(e.collapse_icon_name,"icn_clp.png"),n.contEl=null,n.btnEl=null,n.icnExpandHtml='<img src="'+t.themesPath+n.icnExpand+'" alt="Expand filters" >',n.icnCollapseHtml='<img src="'+t.themesPath+n.icnCollapse+'" alt="Collapse filters" >',n.defaultText="Toggle filters",n.targetId=e.target_id||null,n.enableIcon=Object(l.defaultsBool)(e.enable_icon,!0),n.btnText=Object(l.defaultsStr)(e.btn_text,""),n.collapseBtnHtml=n.enableIcon?n.icnCollapseHtml+n.btnText:n.btnText||n.defaultText,n.expandBtnHtml=n.enableIcon?n.icnExpandHtml+n.btnText:n.btnText||n.defaultText,n.btnHtml=Object(l.defaultsStr)(e.btn_html,null),n.btnCssClass=Object(l.defaultsStr)(e.btn_css_class,"btnExpClpFlt"),n.contCssClass=Object(l.defaultsStr)(e.cont_css_class,"expClpFlt"),n.filtersRowIndex=Object(l.defaultsNb)(e.filters_row_index,t.getFiltersRowIndex()),n.visibleAtStart=Object(l.defaultsNb)(e.visible_at_start,!0),n.toolbarPosition=Object(l.defaultsStr)(e.toolbar_position,c.RIGHT),n.onBeforeShow=Object(l.defaultsFn)(e.on_before_show,i.EMPTY_FN),n.onAfterShow=Object(l.defaultsFn)(e.on_after_show,i.EMPTY_FN),n.onBeforeHide=Object(l.defaultsFn)(e.on_before_hide,i.EMPTY_FN),n.onAfterHide=Object(l.defaultsFn)(e.on_after_hide,i.EMPTY_FN),t.import(e.name+"Style",t.getStylePath()+n.stylesheet,null,"link"),n.enable(),n}return function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(FiltersVisibility,[{key:"init",value:function init(){var n=this;this.initialized||(this.emitter.emit("initializing-extension",this,!Object(i.isNull)(this.targetId)),this.buildUI(),this.initialized=!0,this.emitter.on(["show-filters"],function(t,e){return n.show(e)}),this.emitter.emit("filters-visibility-initialized",this.tf,this),this.emitter.emit("extension-initialized",this))}},{key:"buildUI",value:function buildUI(){var t=this,e=this.tf,n=Object(s.createElm)("span");n.className=this.contCssClass;var r,o=this.targetId?Object(s.elm)(this.targetId):e.feature("toolbar").container(this.toolbarPosition);if(this.targetId)o.appendChild(n);else{var i=o.firstChild;i.parentNode.insertBefore(n,i)}this.btnHtml?(n.innerHTML=this.btnHtml,r=n.firstChild):((r=Object(s.createElm)("a",["href","javascript:void(0);"])).className=this.btnCssClass,r.title=this.btnText||this.defaultText,r.innerHTML=this.collapseBtnHtml,n.appendChild(r)),Object(a.addEvt)(r,"click",function(){return t.toggle()}),this.contEl=n,this.btnEl=r,this.visibleAtStart||this.toggle()}},{key:"toggle",value:function toggle(){var t=this.tf,e=""===(t.gridLayout?t.feature("gridLayout").headTbl:t.dom()).rows[this.filtersRowIndex].style.display;this.show(!e)}},{key:"show",value:function show(t){var e=!(0<arguments.length&&void 0!==t)||t,n=this.tf,r=(n.gridLayout?n.feature("gridLayout").headTbl:n.dom()).rows[this.filtersRowIndex];e&&this.onBeforeShow(this),e||this.onBeforeHide(this),r.style.display=e?"":"none",this.enableIcon&&!this.btnHtml&&(this.btnEl.innerHTML=e?this.collapseBtnHtml:this.expandBtnHtml),e&&this.onAfterShow(this),e||this.onAfterHide(this),this.emitter.emit("filters-toggled",n,this,e)}},{key:"destroy",value:function destroy(){var n=this;this.initialized&&(this.emitter.off(["show-filters"],function(t,e){return n.show(e)}),this.btnEl.innerHTML="",Object(s.removeElm)(this.btnEl),this.btnEl=null,this.contEl.innerHTML="",Object(s.removeElm)(this.contEl),this.contEl=null,this.initialized=!1)}}]),FiltersVisibility}()},455:function(t,e,n){"use strict";n.r(e);var r=n(444);n(9).root.SortableTable||n(457),e.default=r.default},457:function(t,e,n){n(458)(n(459))},459:function(t,e){t.exports='/*----------------------------------------------------------------------------\\\n| Sortable Table 1.12 |\n|-----------------------------------------------------------------------------|\n| Created by Erik Arvidsson |\n| (http://webfx.eae.net/contact.html#erik) |\n| For WebFX (http://webfx.eae.net/) |\n|-----------------------------------------------------------------------------|\n| A DOM 1 based script that allows an ordinary HTML table to be sortable. |\n|-----------------------------------------------------------------------------|\n| Copyright (c) 1998 - 2006 Erik Arvidsson |\n|-----------------------------------------------------------------------------|\n| Licensed under the Apache License, Version 2.0 (the "License"); you may not |\n| use this file except in compliance with the License. You may obtain a copy |\n| of the License at http://www.apache.org/licenses/LICENSE-2.0 |\n| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |\n| Unless required by applicable law or agreed to in writing, software |\n| distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |\n| WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |\n| License for the specific language governing permissions and limitations |\n| under the License. |\n|-----------------------------------------------------------------------------|\n| 2003-01-10 | First version |\n| 2003-01-19 | Minor changes to the date parsing |\n| 2003-01-28 | JScript 5.0 fixes (no support for \'in\' operator) |\n| 2003-02-01 | Sloppy typo like error fixed in getInnerText |\n| 2003-07-04 | Added workaround for IE cellIndex bug. |\n| 2003-11-09 | The bDescending argument to sort was not correctly working |\n| | Using onclick DOM0 event if no support for addEventListener |\n| | or attachEvent |\n| 2004-01-13 | Adding addSortType and removeSortType which makes it a lot |\n| | easier to add new, custom sort types. |\n| 2004-01-27 | Switch to use descending = false as the default sort order. |\n| | Change defaultDescending to suit your needs. |\n| 2004-03-14 | Improved sort type None look and feel a bit |\n| 2004-08-26 | Made the handling of tBody and tHead more flexible. Now you |\n| | can use another tHead or no tHead, and you can chose some |\n| | other tBody. |\n| 2006-04-25 | Changed license to Apache Software License 2.0 |\n|-----------------------------------------------------------------------------|\n| Created 2003-01-10 | All changes are in the log above. | Updated 2006-04-25 |\n\\----------------------------------------------------------------------------*/\n\n\nfunction SortableTable(oTable, oSortTypes) {\n\n\tthis.sortTypes = oSortTypes || [];\n\n\tthis.sortColumn = null;\n\tthis.descending = null;\n\n\tvar oThis = this;\n\tthis._headerOnclick = function (e) {\n\t\toThis.headerOnclick(e);\n\t};\n\n\tif (oTable) {\n\t\tthis.setTable( oTable );\n\t\tthis.document = oTable.ownerDocument || oTable.document;\n\t}\n\telse {\n\t\tthis.document = document;\n\t}\n\n\n\t// only IE needs this\n\tvar win = this.document.defaultView || this.document.parentWindow;\n\tthis._onunload = function () {\n\t\toThis.destroy();\n\t};\n\tif (win && typeof win.attachEvent != "undefined") {\n\t\twin.attachEvent("onunload", this._onunload);\n\t}\n}\n\nSortableTable.gecko = navigator.product == "Gecko";\nSortableTable.msie = /msie/i.test(navigator.userAgent);\n// Mozilla is faster when doing the DOM manipulations on\n// an orphaned element. MSIE is not\nSortableTable.removeBeforeSort = SortableTable.gecko;\n\nSortableTable.prototype.onsort = function () {};\n\n// default sort order. true -> descending, false -> ascending\nSortableTable.prototype.defaultDescending = false;\n\n// shared between all instances. This is intentional to allow external files\n// to modify the prototype\nSortableTable.prototype._sortTypeInfo = {};\n\nSortableTable.prototype.setTable = function (oTable) {\n\tif ( this.tHead )\n\t\tthis.uninitHeader();\n\tthis.element = oTable;\n\tthis.setTHead( oTable.tHead );\n\tthis.setTBody( oTable.tBodies[0] );\n};\n\nSortableTable.prototype.setTHead = function (oTHead) {\n\tif (this.tHead && this.tHead != oTHead )\n\t\tthis.uninitHeader();\n\tthis.tHead = oTHead;\n\tthis.initHeader( this.sortTypes );\n};\n\nSortableTable.prototype.setTBody = function (oTBody) {\n\tthis.tBody = oTBody;\n};\n\nSortableTable.prototype.setSortTypes = function ( oSortTypes ) {\n\tif ( this.tHead )\n\t\tthis.uninitHeader();\n\tthis.sortTypes = oSortTypes || [];\n\tif ( this.tHead )\n\t\tthis.initHeader( this.sortTypes );\n};\n\n// adds arrow containers and events\n// also binds sort type to the header cells so that reordering columns does\n// not break the sort types\nSortableTable.prototype.initHeader = function (oSortTypes) {\n\tif (!this.tHead) return;\n\tvar cells = this.tHead.rows[0].cells;\n\tvar doc = this.tHead.ownerDocument || this.tHead.document;\n\tthis.sortTypes = oSortTypes || [];\n\tvar l = cells.length;\n\tvar img, c;\n\tfor (var i = 0; i < l; i++) {\n\t\tc = cells[i];\n\t\tif (this.sortTypes[i] != null && this.sortTypes[i] != "None") {\n\t\t\timg = doc.createElement("IMG");\n\t\t\timg.src = "images/blank.png";\n\t\t\tc.appendChild(img);\n\t\t\tif (this.sortTypes[i] != null)\n\t\t\t\tc._sortType = this.sortTypes[i];\n\t\t\tif (typeof c.addEventListener != "undefined")\n\t\t\t\tc.addEventListener("click", this._headerOnclick, false);\n\t\t\telse if (typeof c.attachEvent != "undefined")\n\t\t\t\tc.attachEvent("onclick", this._headerOnclick);\n\t\t\telse\n\t\t\t\tc.onclick = this._headerOnclick;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc.setAttribute( "_sortType", oSortTypes[i] );\n\t\t\tc._sortType = "None";\n\t\t}\n\t}\n\tthis.updateHeaderArrows();\n};\n\n// remove arrows and events\nSortableTable.prototype.uninitHeader = function () {\n\tif (!this.tHead) return;\n\tvar cells = this.tHead.rows[0].cells;\n\tvar l = cells.length;\n\tvar c;\n\tfor (var i = 0; i < l; i++) {\n\t\tc = cells[i];\n\t\tif (c._sortType != null && c._sortType != "None") {\n\t\t\tc.removeChild(c.lastChild);\n\t\t\tif (typeof c.removeEventListener != "undefined")\n\t\t\t\tc.removeEventListener("click", this._headerOnclick, false);\n\t\t\telse if (typeof c.detachEvent != "undefined")\n\t\t\t\tc.detachEvent("onclick", this._headerOnclick);\n\t\t\tc._sortType = null;\n\t\t\tc.removeAttribute( "_sortType" );\n\t\t}\n\t}\n};\n\nSortableTable.prototype.updateHeaderArrows = function () {\n\tif (!this.tHead) return;\n\tvar cells = this.tHead.rows[0].cells;\n\tvar l = cells.length;\n\tvar img;\n\tfor (var i = 0; i < l; i++) {\n\t\tif (cells[i]._sortType != null && cells[i]._sortType != "None") {\n\t\t\timg = cells[i].lastChild;\n\t\t\tif (i == this.sortColumn)\n\t\t\t\timg.className = "sort-arrow " + (this.descending ? "descending" : "ascending");\n\t\t\telse\n\t\t\t\timg.className = "sort-arrow";\n\t\t}\n\t}\n};\n\nSortableTable.prototype.headerOnclick = function (e) {\n\t// find TD element\n\tvar el = e.target || e.srcElement;\n\twhile (el.tagName != "TD")\n\t\tel = el.parentNode;\n\n\tthis.sort(SortableTable.msie ? SortableTable.getCellIndex(el) : el.cellIndex);\n};\n\n// IE returns wrong cellIndex when columns are hidden\nSortableTable.getCellIndex = function (oTd) {\n\tvar cells = oTd.parentNode.childNodes\n\tvar l = cells.length;\n\tvar i;\n\tfor (i = 0; cells[i] != oTd && i < l; i++)\n\t\t;\n\treturn i;\n};\n\nSortableTable.prototype.getSortType = function (nColumn) {\n\treturn this.sortTypes[nColumn] || "String";\n};\n\n// only nColumn is required\n// if bDescending is left out the old value is taken into account\n// if sSortType is left out the sort type is found from the sortTypes array\n\nSortableTable.prototype.sort = function (nColumn, bDescending, sSortType) {\n\tif (!this.tBody) return;\n\tif (sSortType == null)\n\t\tsSortType = this.getSortType(nColumn);\n\n\t// exit if None\n\tif (sSortType == "None")\n\t\treturn;\n\n\tif (bDescending == null) {\n\t\tif (this.sortColumn != nColumn)\n\t\t\tthis.descending = this.defaultDescending;\n\t\telse\n\t\t\tthis.descending = !this.descending;\n\t}\n\telse\n\t\tthis.descending = bDescending;\n\n\tthis.sortColumn = nColumn;\n\n\tif (typeof this.onbeforesort == "function")\n\t\tthis.onbeforesort();\n\n\tvar f = this.getSortFunction(sSortType, nColumn);\n\tvar a = this.getCache(sSortType, nColumn);\n\tvar tBody = this.tBody;\n\n\ta.sort(f);\n\n\tif (this.descending)\n\t\ta.reverse();\n\n\tif (SortableTable.removeBeforeSort) {\n\t\t// remove from doc\n\t\tvar nextSibling = tBody.nextSibling;\n\t\tvar p = tBody.parentNode;\n\t\tp.removeChild(tBody);\n\t}\n\n\t// insert in the new order\n\tvar l = a.length;\n\tfor (var i = 0; i < l; i++)\n\t\ttBody.appendChild(a[i].element);\n\n\tif (SortableTable.removeBeforeSort) {\n\t\t// insert into doc\n\t\tp.insertBefore(tBody, nextSibling);\n\t}\n\n\tthis.updateHeaderArrows();\n\n\tthis.destroyCache(a);\n\n\tif (typeof this.onsort == "function")\n\t\tthis.onsort();\n};\n\nSortableTable.prototype.asyncSort = function (nColumn, bDescending, sSortType) {\n\tvar oThis = this;\n\tthis._asyncsort = function () {\n\t\toThis.sort(nColumn, bDescending, sSortType);\n\t};\n\twindow.setTimeout(this._asyncsort, 1);\n};\n\nSortableTable.prototype.getCache = function (sType, nColumn) {\n\tif (!this.tBody) return [];\n\tvar rows = this.tBody.rows;\n\tvar l = rows.length;\n\tvar a = new Array(l);\n\tvar r;\n\tfor (var i = 0; i < l; i++) {\n\t\tr = rows[i];\n\t\ta[i] = {\n\t\t\tvalue:\t\tthis.getRowValue(r, sType, nColumn),\n\t\t\telement:\tr\n\t\t};\n\t};\n\treturn a;\n};\n\nSortableTable.prototype.destroyCache = function (oArray) {\n\tvar l = oArray.length;\n\tfor (var i = 0; i < l; i++) {\n\t\toArray[i].value = null;\n\t\toArray[i].element = null;\n\t\toArray[i] = null;\n\t}\n};\n\nSortableTable.prototype.getRowValue = function (oRow, sType, nColumn) {\n\t// if we have defined a custom getRowValue use that\n\tif (this._sortTypeInfo[sType] && this._sortTypeInfo[sType].getRowValue)\n\t\treturn this._sortTypeInfo[sType].getRowValue(oRow, nColumn);\n\n\tvar s;\n\tvar c = oRow.cells[nColumn];\n\tif (typeof c.innerText != "undefined")\n\t\ts = c.innerText;\n\telse\n\t\ts = SortableTable.getInnerText(c);\n\treturn this.getValueFromString(s, sType);\n};\n\nSortableTable.getInnerText = function (oNode) {\n\tvar s = "";\n\tvar cs = oNode.childNodes;\n\tvar l = cs.length;\n\tfor (var i = 0; i < l; i++) {\n\t\tswitch (cs[i].nodeType) {\n\t\t\tcase 1: //ELEMENT_NODE\n\t\t\t\ts += SortableTable.getInnerText(cs[i]);\n\t\t\t\tbreak;\n\t\t\tcase 3:\t//TEXT_NODE\n\t\t\t\ts += cs[i].nodeValue;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\treturn s;\n};\n\nSortableTable.prototype.getValueFromString = function (sText, sType) {\n\tif (this._sortTypeInfo[sType])\n\t\treturn this._sortTypeInfo[sType].getValueFromString( sText );\n\treturn sText;\n\t/*\n\tswitch (sType) {\n\t\tcase "Number":\n\t\t\treturn Number(sText);\n\t\tcase "CaseInsensitiveString":\n\t\t\treturn sText.toUpperCase();\n\t\tcase "Date":\n\t\t\tvar parts = sText.split("-");\n\t\t\tvar d = new Date(0);\n\t\t\td.setFullYear(parts[0]);\n\t\t\td.setDate(parts[2]);\n\t\t\td.setMonth(parts[1] - 1);\n\t\t\treturn d.valueOf();\n\t}\n\treturn sText;\n\t*/\n\t};\n\nSortableTable.prototype.getSortFunction = function (sType, nColumn) {\n\tif (this._sortTypeInfo[sType])\n\t\treturn this._sortTypeInfo[sType].compare;\n\treturn SortableTable.basicCompare;\n};\n\nSortableTable.prototype.destroy = function () {\n\tthis.uninitHeader();\n\tvar win = this.document.parentWindow;\n\tif (win && typeof win.detachEvent != "undefined") {\t// only IE needs this\n\t\twin.detachEvent("onunload", this._onunload);\n\t}\n\tthis._onunload = null;\n\tthis.element = null;\n\tthis.tHead = null;\n\tthis.tBody = null;\n\tthis.document = null;\n\tthis._headerOnclick = null;\n\tthis.sortTypes = null;\n\tthis._asyncsort = null;\n\tthis.onsort = null;\n};\n\n// Adds a sort type to all instance of SortableTable\n// sType : String - the identifier of the sort type\n// fGetValueFromString : function ( s : string ) : T - A function that takes a\n// string and casts it to a desired format. If left out the string is just\n// returned\n// fCompareFunction : function ( n1 : T, n2 : T ) : Number - A normal JS sort\n// compare function. Takes two values and compares them. If left out less than,\n// <, compare is used\n// fGetRowValue : function( oRow : HTMLTRElement, nColumn : int ) : T - A function\n// that takes the row and the column index and returns the value used to compare.\n// If left out then the innerText is first taken for the cell and then the\n// fGetValueFromString is used to convert that string the desired value and type\n\nSortableTable.prototype.addSortType = function (sType, fGetValueFromString, fCompareFunction, fGetRowValue) {\n\tthis._sortTypeInfo[sType] = {\n\t\ttype:\t\t\t\tsType,\n\t\tgetValueFromString:\tfGetValueFromString || SortableTable.idFunction,\n\t\tcompare:\t\t\tfCompareFunction || SortableTable.basicCompare,\n\t\tgetRowValue:\t\tfGetRowValue\n\t};\n};\n\n// this removes the sort type from all instances of SortableTable\nSortableTable.prototype.removeSortType = function (sType) {\n\tdelete this._sortTypeInfo[sType];\n};\n\nSortableTable.basicCompare = function compare(n1, n2) {\n\tif (n1.value < n2.value)\n\t\treturn -1;\n\tif (n2.value < n1.value)\n\t\treturn 1;\n\treturn 0;\n};\n\nSortableTable.idFunction = function (x) {\n\treturn x;\n};\n\nSortableTable.toUpperCase = function (s) {\n\treturn s.toUpperCase();\n};\n\nSortableTable.toDate = function (s) {\n\tvar parts = s.split("-");\n\tvar d = new Date(0);\n\td.setFullYear(parts[0]);\n\td.setDate(parts[2]);\n\td.setMonth(parts[1] - 1);\n\treturn d.valueOf();\n};\n\n\n// add sort types\nSortableTable.prototype.addSortType("Number", Number);\nSortableTable.prototype.addSortType("CaseInsensitiveString", SortableTable.toUpperCase);\nSortableTable.prototype.addSortType("Date", SortableTable.toDate);\nSortableTable.prototype.addSortType("String");\n// None is a special case\n'}}]);
@@ -1,6 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{456:function(e,t,n){var r,o,a,i;function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray2(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||_unsupportedIterableToArray2(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray2(e,t):void 0}}function _arrayLikeToArray2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _construct(e,t,n){return(_construct=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function _construct(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
2
- /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
3
- /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
4
- i=function(){"use strict";function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
5
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
6
- function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"function"==typeof Symbol&&Symbol.asyncIterator;var at=Object.entries,l=Object.setPrototypeOf,u=Object.isFrozen,it=Object.getPrototypeOf,lt=Object.getOwnPropertyDescriptor,ut=Object.freeze,ct=Object.seal,ft=Object.create,e="undefined"!=typeof Reflect&&Reflect,a=e.apply,o=e.construct;ut=ut||function freeze(e){return e},ct=ct||function seal(e){return e},a=a||function apply(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)},o=o||function construct(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _construct(e,n)};var st=unapply(Array.prototype.forEach);Array.prototype.indexOf;var pt=unapply(Array.prototype.lastIndexOf),dt=unapply(Array.prototype.pop),mt=unapply(Array.prototype.push),yt=unapply(Array.prototype.slice),ht=unapply(Array.prototype.splice),gt=Array.isArray,bt=unconstruct(Set),vt=unapply(Set.prototype.add),Tt=unapply(Set.prototype.has),St=unapply(String.prototype.toLowerCase),_t=unapply(String.prototype.toString),At=unapply(String.prototype.match),wt=unapply(String.prototype.replace),Et=unapply(String.prototype.indexOf),kt=unapply(String.prototype.trim),xt=unapply(Number.prototype.toString),Ot=unapply(Boolean.prototype.toString),Nt="undefined"==typeof BigInt?null:unapply(BigInt.prototype.toString),It="undefined"==typeof Symbol?null:unapply(Symbol.prototype.toString),Ct=unapply(Object.prototype.hasOwnProperty),Dt=unapply(Object.prototype.toString),Rt=unapply(RegExp.prototype.test),Lt=unconstruct(TypeError);function unapply(o){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a(o,e,n)}}function unconstruct(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(r,t)}}function addToSet(e,t,n){var r=2<arguments.length&&void 0!==n?n:St;if(l&&l(e,null),!gt(t))return e;for(var o=t.length;o--;){var a=t[o];if("string"==typeof a){var i=r(a);i!==a&&(u(t)||(t[o]=i),a=i)}e[a]=!0}return e}function cleanArray(e){for(var t=0;t<e.length;t++)Ct(e,t)||(e[t]=null);return e}function clone(e){var t,n=ft(null),r=function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray2(t))||r&&t&&"number"==typeof t.length){o&&(t=o);function q(){}var a=0;return{s:q,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:q}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,u=!1;return{s:function s(){o=t[Symbol.iterator]()},n:function n(){var e=o.next();return l=e.done,e},e:function e(t){u=!0,i=t},f:function f(){try{l||null==o.return||o.return()}finally{if(u)throw i}}}}(at(e));try{for(r.s();!(t=r.n()).done;){var o=_slicedToArray(t.value,2),a=o[0],i=o[1];Ct(e,a)&&(gt(i)?n[a]=cleanArray(i):i&&"object"===_typeof(i)&&i.constructor===Object?n[a]=clone(i):n[a]=i)}}catch(e){r.e(e)}finally{r.f()}return n}function lookupGetter(e,t){for(;null!==e;){var n=lt(e,t);if(n){if(n.get)return unapply(n.get);if("function"==typeof n.value)return unapply(n.value)}e=it(e)}return function fallbackValue(){return null}}var zt=ut(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Pt=ut(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Mt=ut(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ut=ut(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ht=ut(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ft=ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jt=ut(["#text"]),Gt=ut(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Bt=ut(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Wt=ut(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Yt=ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qt=ct(/{{[\w\W]*|^[\w\W]*}}/g),Kt=ct(/<%[\w\W]*|^[\w\W]*%>/g),$t=ct(/\${[\w\W]*/g),Jt=ct(/^data-[\-\w.\u00B7-\uFFFF]+$/),Vt=ct(/^aria-[\-\w]+$/),Xt=ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zt=ct(/^(?:\w+script|data):/i),Qt=ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),en=ct(/^html$/i),tn=ct(/^[a-z][.\w]*(-[.\w]+)+$/i),nn=ct(/<[/\w!]/g),rn=ct(/<[/\w]/g),on=ct(/<\/no(script|embed|frames)/i),an=ct(/\/>/i),ln={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},un=ut(addToSet({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),cn=function getGlobal(){return"undefined"==typeof window?null:window},fn=function _createTrustedTypesPolicy(e,t){if("object"!==_typeof(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function createHTML(e){return e},createScriptURL:function createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},sn=function _createHooksMap(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},pn=function _resolveSetOption(e,t,n,r){return Ct(e,t)&&gt(e[t])?addToSet(r.base?clone(r.base):{},e[t],r.transform):n},dn=function _resolveObjectOption(e,t,n){var r=Ct(e,t)?e[t]:void 0;return r&&"object"===_typeof(r)?clone(r):n()};return function createDOMPurify(e){var t=0<arguments.length&&void 0!==e?e:cn(),m=function DOMPurify(e){return createDOMPurify(e)};if(m.version="3.4.17",m.removed=[],!t||!t.document||t.document.nodeType!==ln.document||!t.Element)return m.isSupported=!1,m;var i=t.document,y=i,o=y.currentScript;t.DocumentFragment;var n=t.HTMLTemplateElement,r=t.Node,a=t.Element,l=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;function Id(e){return _?_(e):e.nodeType}function Jd(e){return A?A(e):e.nodeName}function Ld(e){return E?E(e):e.namespaceURI}var h,u=t.DOMParser,c=t.trustedTypes,f=a.prototype,s=lookupGetter(f,"cloneNode"),g=lookupGetter(f,"remove"),p=lookupGetter(f,"removeAttributeNode"),d=lookupGetter(f,"nextSibling"),b=lookupGetter(f,"childNodes"),v=lookupGetter(f,"parentNode"),T=lookupGetter(f,"shadowRoot"),S=lookupGetter(f,"attributes"),_=r&&r.prototype?lookupGetter(r.prototype,"nodeType"):null,A=r&&r.prototype?lookupGetter(r.prototype,"nodeName"):null,w=r&&r.prototype?lookupGetter(r.prototype,"ownerDocument"):null,E=function lookupAccessor(e,t){for(;null!==e;){var n=lt(e,t);if(n)return n.get?unapply(n.get):null;e=it(e)}return null}(f,"namespaceURI");if("function"==typeof n){var k=i.createElement("template");k.content&&k.content.ownerDocument&&(i=k.content.ownerDocument)}function Sd(){if(0<I)throw Lt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')}function Td(e){Sd(),I++;try{return h.createHTML(e)}finally{I--}}var x,O="",N=!1,I=0,C=i,D=C.implementation,R=C.createNodeIterator,L=C.createDocumentFragment,z=C.getElementsByTagName,P=y.importNode,M=sn();m.isSupported="function"==typeof at&&"function"==typeof v&&D&&void 0!==D.createHTMLDocument;function kf(e){return e instanceof RegExp||e instanceof Function}function lf(e){var t=0<arguments.length&&void 0!==e?e:{};if(!Be||Be!==t){t&&"object"===_typeof(t)||(t={}),t=clone(t),Fe=-1===je.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,K=pn(t,"ALLOWED_TAGS",$,{transform:Ge="application/xhtml+xml"===Fe?_t:St}),J=pn(t,"ALLOWED_ATTR",V,{transform:Ge}),Re=pn(t,"ALLOWED_NAMESPACES",Le,{transform:_t}),ke=pn(t,"ADD_URI_SAFE_ATTR",xe,{transform:Ge,base:xe}),we=pn(t,"ADD_DATA_URI_TAGS",Ee,{transform:Ge,base:Ee}),_e=pn(t,"FORBID_CONTENTS",Ae,{transform:Ge}),Z=pn(t,"FORBID_TAGS",clone({}),{transform:Ge}),Q=pn(t,"FORBID_ATTR",clone({}),{transform:Ge}),Se=!!Ct(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"===_typeof(t.USE_PROFILES)?clone(t.USE_PROFILES):t.USE_PROFILES),te=!1!==t.ALLOW_ARIA_ATTR,ne=!1!==t.ALLOW_DATA_ATTR,re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ae=t.SAFE_FOR_TEMPLATES||!1,ie=!1!==t.SAFE_FOR_XML,le=t.WHOLE_DOCUMENT||!1,pe=t.RETURN_DOM||!1,de=t.RETURN_DOM_FRAGMENT||!1,me=t.RETURN_TRUSTED_TYPE||!1,se=t.FORCE_BODY||!1,ye=!1!==t.SANITIZE_DOM,he=t.SANITIZE_NAMED_PROPS||!1,be=!1!==t.KEEP_CONTENT,ve=t.IN_PLACE||!1,q=function isRegex(e){try{return Rt(e,""),!0}catch(e){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:Xt,Ce="string"==typeof t.NAMESPACE?t.NAMESPACE:Ie,Pe=dn(t,"MATHML_TEXT_INTEGRATION_POINTS",function(){return addToSet({},ze)}),Ue=dn(t,"HTML_INTEGRATION_POINTS",function(){return addToSet({},Me)});var n=dn(t,"CUSTOM_ELEMENT_HANDLING",function(){return ft(null)});if(X=ft(null),Ct(n,"tagNameCheck")&&kf(n.tagNameCheck)&&(X.tagNameCheck=n.tagNameCheck),Ct(n,"attributeNameCheck")&&kf(n.attributeNameCheck)&&(X.attributeNameCheck=n.attributeNameCheck),Ct(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(X.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),ct(X),ae&&(ne=!1),de&&(pe=!0),Se&&(K=addToSet({},jt),J=ft(null),!0===Se.html&&(addToSet(K,zt),addToSet(J,Gt)),!0===Se.svg&&(addToSet(K,Pt),addToSet(J,Bt),addToSet(J,Yt)),!0===Se.svgFilters&&(addToSet(K,Mt),addToSet(J,Bt),addToSet(J,Yt)),!0===Se.mathMl&&(addToSet(K,Ht),addToSet(J,Wt),addToSet(J,Yt))),ee.tagCheck=null,ee.attributeCheck=null,Ct(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ee.tagCheck=t.ADD_TAGS:gt(t.ADD_TAGS)&&(K===$&&(K=clone(K)),addToSet(K,t.ADD_TAGS,Ge))),Ct(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ee.attributeCheck=t.ADD_ATTR:gt(t.ADD_ATTR)&&(J===V&&(J=clone(J)),addToSet(J,t.ADD_ATTR,Ge))),Ct(t,"ADD_FORBID_CONTENTS")&&gt(t.ADD_FORBID_CONTENTS)&&(_e===Ae&&(_e=clone(_e)),addToSet(_e,t.ADD_FORBID_CONTENTS,Ge)),be&&(K["#text"]=!0),le&&addToSet(K,["html","head","body"]),K.table&&(addToSet(K,["tbody"]),delete Z.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');var r=h;h=t.TRUSTED_TYPES_POLICY;try{O=Td("")}catch(e){throw h=r,e}}else null===t.TRUSTED_TYPES_POLICY?(h=void 0,O=""):(void 0===h&&(h=function _getDefaultTrustedTypesPolicy(){return N||(x=fn(c,o),N=!0),x}()),h&&"string"==typeof O&&(O=Td("")));ut&&ut(t),Be=t}}function rf(e){var t,n,r=Ld(e),o=St(Jd(e)),a=v(e);return n=a&&Id(a)===ln.element?(t={namespaceURI:Ld(a)},St(Jd(a))):(t={namespaceURI:Ce},"template"),!!Re[r]&&(r===Ne?function _checkSvgNamespace(e,t,n){return t.namespaceURI===Ie?"svg"===e:t.namespaceURI===Oe?"svg"===e&&("annotation-xml"===n||Pe[n]):Boolean(Ye[e])}(o,t,n):r===Oe?function _checkMathMlNamespace(e,t,n){return t.namespaceURI===Ie?"math"===e:t.namespaceURI===Ne?"math"===e&&Ue[n]:Boolean(qe[e])}(o,t,n):r===Ie?function _checkHtmlNamespace(e,t,n){return!(t.namespaceURI===Ne&&!Ue[n])&&!(t.namespaceURI===Oe&&!Pe[n])&&!qe[e]&&(He[e]||!Ye[e])}(o,t,n):!("application/xhtml+xml"!==Fe||!Re[r]))}function sf(t){mt(m.removed,{element:t});try{v(t).removeChild(t)}catch(e){if(g(t),!v(t))throw Lt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}}function tf(t,e,n){try{p(t,e)}catch(e){try{t.removeAttribute(n)}catch(e){}}}function uf(e){Ke(e);var t=b(e);t&&st(yt(t),function(e){try{g(e)}catch(e){}});var n=Id(e)===ln.element?S(e):null;if(n)for(var r=n.length-1;0<=r;--r){var o=n[r],a=o&&o.name;"string"==typeof a&&tf(e,o,a)}}function vf(t,n,r){if(!r)try{r=n.getAttributeNode(t)}catch(e){r=null}mt(m.removed,{attribute:r||null,from:n});try{r?p(n,r):n.removeAttribute(t)}catch(e){try{n.removeAttribute(t)}catch(e){}}if("is"===t)if(pe||de)try{sf(n)}catch(e){}else try{n.setAttribute(t,"")}catch(e){}}function wf(e){var t=S(e);if(t)for(var n=t.length-1;0<=n;--n){var r=t[n],o=r&&r.name;"string"!=typeof o||J[Ge(o)]||tf(e,r,o)}}function xf(e,t,n){for(var r=2<arguments.length&&void 0!==n&&n,o=[e];0<o.length;){var a=o.pop();if(!1!==t(a)){if(r&&Id(a)===ln.element){var i=T(a);Ze(i)&&o.push(i)}var l=b(a);if(l)for(var u=l.length-1;0<=u;--u)o.push(l[u])}}}function zf(e){var t=[];return xf(e,function(e){t.push(e)},!0),t}function Bf(t,e){var n=!1;return st(m.removed,function(e){e.element&&(n=n||e.element===t,Ke(e.element))}),function _neutralizeEscapedElements(e,t){var n=bt();st(zf(e),function(e){Id(e)===ln.element&&vt(n,e)}),st(t,function(e){Id(e)!==ln.element||Tt(n,e)||wf(e)})}(t,e),n}function Gf(e,t){return!!ie&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)}function If(e){var t=null,n=null;if(se)e="<remove></remove>"+e;else{var r=At(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Fe&&Ce===Ie&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=h?Td(e):e;if(Ce===Ie)try{t=(new u).parseFromString(o,Fe)}catch(e){}if(!t||!t.documentElement){t=D.createDocument(Ce,"template",null);try{t.documentElement.innerHTML=De?O:o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),Ce===Ie?z.call(t,le?"html":"body")[0]:le?t.documentElement:a}function Kf(e){return e=wt(e,U," "),e=wt(e,H," "),e=wt(e,F," ")}function Nf(e){var t=A?A(e):null;return"string"==typeof t&&"form"===Ge(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==S(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==_(e)||e.childNodes!==b(e))}function Pf(e){if(!_||"object"!==_typeof(e)||null===e)return!1;try{return"number"==typeof _(e)}catch(e){return!1}}var U=qt,H=Kt,F=$t,j=Jt,G=Vt,B=Zt,W=Qt,Y=tn,q=Xt,K=null,$=addToSet({},[].concat(_toConsumableArray(zt),_toConsumableArray(Pt),_toConsumableArray(Mt),_toConsumableArray(Ht),_toConsumableArray(jt))),J=null,V=addToSet({},[].concat(_toConsumableArray(Gt),_toConsumableArray(Bt),_toConsumableArray(Wt),_toConsumableArray(Yt))),X=Object.seal(ft(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,Q=null,ee=Object.seal(ft(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),te=!0,ne=!0,re=!1,oe=!0,ae=!1,ie=!0,le=!1,ue=!1,ce=null,fe=null,se=!1,pe=!1,de=!1,me=!1,ye=!0,he=!1,ge="user-content-",be=!0,ve=!1,Te=null,Se={},_e=null,Ae=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),we=null,Ee=addToSet({},["audio","video","img","source","image","track"]),ke=null,xe=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",Ne="http://www.w3.org/2000/svg",Ie="http://www.w3.org/1999/xhtml",Ce=Ie,De=!1,Re=null,Le=addToSet({},[Oe,Ne,Ie],_t),ze=ut(["mi","mo","mn","ms","mtext"]),Pe=addToSet({},ze),Me=ut(["annotation-xml"]),Ue=addToSet({},Me),He=addToSet({},["title","style","font","a","script"]),Fe=null,je=["application/xhtml+xml","text/html"],Ge=null,Be=null,We=i.createElement("form"),Ye=addToSet({},[].concat(_toConsumableArray(Pt),_toConsumableArray(Mt),_toConsumableArray(Ut))),qe=addToSet({},[].concat(_toConsumableArray(Ht),_toConsumableArray(Ft))),Ke=function _neutralizeSubtree(e){xf(e,function(e){Id(e)===ln.element&&wf(e)})},$e=function _sanitizeUnvisitedIn(e,t,n,r){for(var o,a=Je(e);o=a.nextNode();)Tt(r,o)&&!Tt(Te,o)&&(t&&_executeHooks(M.uponSanitizeShadowNode,o,null),Qe(o,n),nt(o,n),Ze(o.content)&&rt(o.content))},Je=function _createNodeIterator(e){var t=w?w(e):e.ownerDocument;return R.call(t||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Ve=function _scrubTemplateExpressions(e){var t;Xe(e);var n=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");n&&st(n,function(e){Ze(e.content)&&Ve(e.content)})},Xe=function _scrubOwnCharacterData(e){e.normalize();for(var t=w?w(e):e.ownerDocument,n=R.call(t||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();r;)r.data=Kf(r.data),r=n.nextNode()},Ze=function _isDocumentFragment(e){if(!_||"object"!==_typeof(e)||null===e)return!1;try{return _(e)===ln.documentFragment}catch(e){return!1}};function _executeHooks(e,t,n){0!==e.length&&st(e,function(e){e.call(m,t,n,Be)})}function Rf(e,t){if(e instanceof RegExp)return Rt(e,t);if(e instanceof Function){for(var n=arguments.length,r=new Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(e.apply(void 0,[t].concat(r)))}return!1}function Tf(e,t,n,r){return 0===e.length?t:t===n||t===r?clone(t):t}function Uf(e,t){return e!==t&&null===v(e)&&(ve&&Ke(e),!0)}function Wf(e,t,n){if(Q[t])return!1;if(Gf(t,e))return!1;if(ye&&("id"===t||"name"===t)&&(n in i||n in We))return!1;var r=J[t]||ee.attributeCheck instanceof Function&&ee.attributeCheck(t,e);return!(!ne||!Rt(j,t))||!(!te||!Rt(G,t))||(r?!(!ke[t]&&!Rt(q,wt(n,W,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Et(n,"data:")||!we[e])&&(!re||Rt(B,wt(n,W,"")))&&n):tt(e)&&Rf(X.tagNameCheck,e)&&Rf(X.attributeNameCheck,t,e)||"is"===t&&X.allowCustomizedBuiltInElements&&Rf(X.tagNameCheck,n))}function Zf(e,t,n,r){if(h&&"object"===_typeof(c)&&"function"==typeof c.getAttributeType&&!n)switch(c.getAttributeType(e,t)){case"TrustedHTML":return Td(r);case"TrustedScriptURL":return function _createTrustedScriptURL(e){Sd(),I++;try{return h.createScriptURL(e)}finally{I--}}(r)}return r}function $f(t,n,e,r){try{return e?t.setAttributeNS(e,n,r):t.setAttribute(n,r),!Nf(t)||(sf(t),!1)}catch(e){return vf(n,t),!1}}function _f(e,t){return!(!ie||!Rt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t))||"attributename"===St(e)&&null!==At(t,"href")}var Qe=function _sanitizeElements(e,t){if(function _markVisited(e){Te&&vt(Te,e)}(e),_executeHooks(M.beforeSanitizeElements,e,null),Uf(e,t))return!0;if(Nf(e))return sf(e),!0;var n=Ge(Jd(e));if(K=Tf(M.uponSanitizeElement,K,$,ce),_executeHooks(M.uponSanitizeElement,e,{tagName:n,allowedTags:K}),Uf(e,t))return!0;if(function _isUnsafeNode(e,t){return!!(ie&&e.hasChildNodes()&&!Pf(e.firstElementChild)&&Rt(nn,e.textContent)&&Rt(nn,e.innerHTML))||!!(ie&&un[t]&&Id(e)===ln.element&&Ld(e)===Ie&&(Pf(e.firstElementChild)||"string"==typeof e.textContent&&Rt(nn,e.textContent)))||e.nodeType===ln.processingInstruction||!(!ie||e.nodeType!==ln.comment||!Rt(rn,e.data))}(e,n))return sf(e),!0;if(Z[n]||!(ee.tagCheck instanceof Function&&ee.tagCheck(n))&&!K[n]){var r=function _sanitizeDisallowedNode(e,t,n){if(!Z[t]&&tt(t)&&Rf(X.tagNameCheck,t))return!1;if(be&&!_e[t]&&!_e[St(t)]){var r=v(e),o=b(e);if(o&&r)for(var a=o.length-1;0<=a;--a){var i=e===n?s(o[a],!0):o[a];r.insertBefore(i,d(e))}}return sf(e),!0}(e,n,t);return!(!1!==r||(_executeHooks(M.afterSanitizeElements,e,null),!Uf(e,t)))||r}if(Id(e)===ln.element&&!rf(e))return sf(e),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&Rt(on,e.innerHTML))return sf(e),!0;if(ae&&e.nodeType===ln.text){var o=Kf(e.textContent);e.textContent!==o&&(mt(m.removed,{element:e.cloneNode()}),e.textContent=o)}return _executeHooks(M.afterSanitizeElements,e,null),Uf(e,t)},et=addToSet({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tt=function _isBasicCustomElement(e){return!et[St(e)]&&Rt(Y,e)},nt=function _sanitizeAttributes(e,t){if(_executeHooks(M.beforeSanitizeAttributes,e,null),!Uf(e,t)){var n=e.attributes;if(n&&!Nf(e)){for(var r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J=Tf(M.uponSanitizeAttribute,J,V,fe),forceKeepAttr:void 0},o=n.length,a=Ge(e.nodeName);o--;){var i=n[o],l=i.name,u=i.namespaceURI,c=i.value,f=Ge(l),s=c,p="value"===l?s:kt(s),d=!1;r.attrName=f,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,_executeHooks(M.uponSanitizeAttribute,e,r),p=r.attrValue,!he||"id"!==f&&"name"!==f||0===Et(p,ge)||(vf(l,e,i),p=ge+p,d=!0),_f(l,p)?vf(l,e,i):r.forceKeepAttr||(!r.keepAttr||!oe&&Rt(an,p)?vf(l,e,i):(ae&&(p=Kf(p)),Wf(a,f,p)?(p=Zf(a,f,u,p))!==s&&$f(e,l,u,p)&&d&&dt(m.removed):vf(l,e,i)))}_executeHooks(M.afterSanitizeAttributes,e,null),Uf(e,t)}}},rt=function _sanitizeShadowDOM(e){var t=null,n=Je(e);for(_executeHooks(M.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(_executeHooks(M.uponSanitizeShadowNode,t,null),Qe(t,e),nt(t,e),Ze(t.content)&&rt(t.content),Id(t)===ln.element){var r=T(t);Ze(r)&&(ot(r),rt(r))}ae&&Xe(e),_executeHooks(M.afterSanitizeShadowDOM,e,null)},ot=function _sanitizeAttachedShadowRoots(e){for(var t=[{node:e,shadow:null}];0<t.length;){var n=t.pop();if(n.shadow)rt(n.shadow);else{var r=n.node,o=Id(r)===ln.element,a=b(r);if(a)for(var i=a.length-1;0<=i;--i)t.push({node:a[i],shadow:null});if(o){var l=A?A(r):null;if("string"==typeof l&&"template"===Ge(l)){var u=r.content;Ze(u)&&t.push({node:u,shadow:null})}}if(o){var c=T(r);Ze(c)&&t.push({node:null,shadow:c},{node:c,shadow:null})}}}};return m.sanitize=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,a=null;if((De=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Pf(t)&&"string"!=typeof(t=function stringifyValue(e){switch(_typeof(e)){case"string":return e;case"number":return xt(e);case"boolean":return Ot(e);case"bigint":return Nt?Nt(e):"0";case"symbol":return It?It(e):"Symbol()";case"undefined":return Dt(e);case"function":case"object":if(null===e)return Dt(e);var t=e,n=lookupGetter(t,"toString");if("function"!=typeof n)return Dt(e);var r=n(t);return"string"==typeof r?r:Dt(r);default:return Dt(e)}}(t)))throw Lt("dirty is not a string, aborting");if(!m.isSupported)return t;ue?(K=ce,J=fe):lf(e),(0<M.uponSanitizeElement.length||0<M.uponSanitizeAttribute.length)&&(K=clone(K)),0<M.uponSanitizeAttribute.length&&(J=clone(J)),m.removed=[];var i=ve&&"string"!=typeof t&&Pf(t),l=[],u=Te;if(i){!function _neutralizePatchLinkage(e){ie&&xf(e,function(e){var t=Id(e);if(t===ln.processingInstruction||t===ln.comment&&Rt(rn,e.data)){try{g(e)}catch(e){}return!1}if(t===ln.element){var n=e,r=Ge(Jd(e));try{n.hasAttribute&&n.hasAttribute("patchsrc")&&n.removeAttribute("patchsrc"),n.hasAttribute&&n.hasAttribute("for")&&Gf("for",r)&&n.removeAttribute("for")}catch(e){}}return!0})}(t);var c=Jd(t);if("string"==typeof c){var f=Ge(c);if(!K[f]||Z[f])throw uf(t),Lt("root node is forbidden and cannot be sanitized in-place")}if(Nf(t))throw uf(t),Lt("root node is clobbered and cannot be sanitized in-place");l=zf(t),Te=bt()}else if(Pf(t))(r=(n=If("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===ln.element&&"BODY"===r.nodeName?n=r:"HTML"===r.nodeName?n=r:n.appendChild(r),ot(n);else{if(!pe&&!ae&&!le&&-1===t.indexOf("<"))return h&&me?Td(t):t;if(!(n=If(t)))return pe?null:me?O:""}n&&se&&sf(n.firstChild);var s=i?t:n;try{i&&ot(t);for(var p=Je(s);o=p.nextNode();)Qe(o,s),nt(o,s),Ze(o.content)&&rt(o.content);i&&function _sanitizeUnvisitedNodes(o,e){for(var a=Te,t=null,i=function getOriginal(){return t||(t=bt(),st(e,function(e){vt(t,e)})),t},n=function _loop(e){var t=zf(o),n=[o],r=!1;if(st(t,function(e){Id(e)===ln.documentFragment?mt(n,e):r||Tt(a,e)||(r=Tt(i(),e))}),!r)return{v:void 0};if(8<=e)throw Lt("the tree kept changing during in-place sanitization; refusing to return it");st(n,function(e,t){$e(e,0<t,o,i())})},r=0;;r++){var l=n(r);if("object"===_typeof(l))return l.v}}(t,l)}catch(e){throw i&&(uf(t),Bf(t,l)),e}finally{Te=u}if(i){if(Bf(t,l))throw Lt("a node selected for removal could not be safely returned; refusing to sanitize in place");return ae&&Ve(t),t}if(pe){if(ae&&Ve(n),de)for(a=L.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(J.shadowroot||J.shadowrootmode)&&(a=P.call(y,a,!0)),a}var d=le?n.outerHTML:n.innerHTML;return le&&K["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Rt(en,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),ae&&(d=Kf(d)),h&&me?Td(d):d},m.setConfig=function(){lf(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),ue=!0,ce=K,fe=J},m.clearConfig=function(){ue=!1,fe=ce=Be=null,h=x,O=""},m.isValidAttribute=function(e,t,n){Be||lf({});var r=Ge(e),o=Ge(t);return("string"!=typeof n||!(_f(t,n)||!oe&&Rt(an,n)))&&Wf(r,o,n)},m.addHook=function(e,t){"function"==typeof t&&Ct(M,e)&&mt(M[e],t)},m.removeHook=function(e,t){if(Ct(M,e)){if(void 0===t)return dt(M[e]);var n=pt(M[e],t);return-1===n?void 0:ht(M[e],n,1)[0]}},m.removeHooks=function(e){Ct(M,e)&&(M[e]=[])},m.removeAllHooks=function(){M=sn()},m}()},"object"===_typeof(t)&&void 0!==e?e.exports=i():(o=[],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},458:function(e,t){e.exports=function(e){function log(e){"undefined"!=typeof console&&(console.error||console.log)("[Script Loader]",e)}try{"undefined"!=typeof execScript&&function isIE(){return"undefined"!=typeof attachEvent&&"undefined"==typeof addEventListener}()?execScript(e):"undefined"!=typeof eval?eval.call(null,e):log("EvalError: No eval function available")}catch(e){log(e)}}}}]);