/* Copyright (c) 2008-2020, www.redips.net All rights reserved. Code licensed under the BSD License: http://www.redips.net/license/ http://www.redips.net/javascript/table-td-merge-split/ Version 1.2.0 Mar 23, 2020. */ var REDIPS=REDIPS||{}; REDIPS.table=function(){var e=[],q,m;var t=function(a){-1d&&(d=a)}return d};var C=function(a){var b= [];void 0!==a&&("string"===typeof a&&(a=document.getElementById(a)),a&&"object"===typeof a&&"TABLE"===a.nodeName&&(b[0]=a));return b};var u=function(a,b,d,c){if("boolean"===typeof a){if("string"===typeof b)b=document.getElementById(b);else if("object"!==typeof b)return;"TABLE"===b.nodeName&&(b=v(b),b=b[d+"-"+c]);!b||"TD"!==b.nodeName&&"TH"!==b.nodeName||(b.redips=b.redips||{},"string"===typeof REDIPS.table.color.cell&&(!0===a?(b.redips.background_old=b.style.backgroundColor,b.style.backgroundColor= REDIPS.table.color.cell):b.style.backgroundColor=b.redips.background_old),b.redips.selected=a)}};var y=function(){if(window.getSelection)window.getSelection().removeAllRanges();else if(document.selection&&"Text"===document.selection.type)try{document.selection.empty()}catch(a){}};var v=function(a){var b=[],d={},c;var f=a.rows;for(var e=0;e