"use strict";function _createForOfIteratorHelper(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var a=0,s=function(){};return{s:s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:s}}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 n,d=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return d=t.done,t},e:function(t){o=!0,n=t},f:function(){try{d||null==r.return||r.return()}finally{if(o)throw n}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function dvmd_tm_init_key_pressed_state(t){t.closest(".dvmd_tm_tblock").classList.contains("dvmd_tm_active")&&t.setAttribute("aria-pressed","true")}function dvmd_tm_key_down(t){32===t.keyCode?t.preventDefault():13===t.keyCode&&(t.preventDefault(),dvmd_tm_click(t))}function dvmd_tm_key_up(t){32===t.keyCode&&(t.preventDefault(),dvmd_tm_click(t))}function dvmd_tm_click(t){var e=t.target.closest(".dvmd_tm_table"),r=t.target.closest(".dvmd_tm_tblock"),a=t.target.closest(".dvmd_tm_tcell");if(r&&e.contains(r)&&a&&a.classList.contains("dvmd_tm_bhead")){var s=e.classList.contains("dvmd_tm_desktop")||e.classList.contains("dvmd_tm_breakpoint_desktop"),n=e.classList.contains("dvmd_tm_max_width_980")||e.classList.contains("dvmd_tm_breakpoint_tablet"),d=e.classList.contains("dvmd_tm_max_width_767")||e.classList.contains("dvmd_tm_breakpoint_phone");if(n=n&&window.matchMedia("(max-width:980px)").matches,d=d&&window.matchMedia("(max-width:767px)").matches,s||n||d){var o,m=_createForOfIteratorHelper(e.getElementsByClassName("dvmd_tm_tblock"));try{for(m.s();!(o=m.n()).done;){var _=o.value,l=_.getElementsByClassName("dvmd_tm_toggle");if(_===r){_.classList.toggle("dvmd_tm_active");var i="true"===l[0].getAttribute("aria-pressed");l[0].setAttribute("aria-pressed",i?"false":"true")}else _.classList.remove("dvmd_tm_active"),l[0].setAttribute("aria-pressed","false")}}catch(t){m.e(t)}finally{m.f()}}}}function dvmd_tm_mouse_leave(t){var e,r=_createForOfIteratorHelper(t.currentTarget.getElementsByClassName("dvmd_tm_tcell"));try{for(r.s();!(e=r.n()).done;){var a=e.value;a.classList.remove("dvmd_tm_row_hover"),a.classList.remove("dvmd_tm_col_hover")}}catch(t){r.e(t)}finally{r.f()}}function dvmd_tm_mouse_over(t){var e=t.currentTarget,r=t.target.closest(".dvmd_tm_tcell");if(r&&e.contains(r)){var a=r.className;if(!a.includes("dvmd_tm_row_hover")||!a.includes("dvmd_tm_col_hover")){var s=a.split("dvmd_tm_row_");s="dvmd_tm_row_"+(s=s[1].split(" "))[0];var n=a.split("dvmd_tm_col_");n="dvmd_tm_col_"+(n=n[1].split(" "))[0];var d,o=_createForOfIteratorHelper(e.getElementsByClassName("dvmd_tm_tcell"));try{for(o.s();!(d=o.n()).done;){var m=d.value;m.classList.remove("dvmd_tm_row_hover"),m.classList.remove("dvmd_tm_col_hover")}}catch(t){o.e(t)}finally{o.f()}var _,l=_createForOfIteratorHelper(e.getElementsByClassName(s));try{for(l.s();!(_=l.n()).done;){_.value.classList.add("dvmd_tm_row_hover")}}catch(t){l.e(t)}finally{l.f()}var i,c=_createForOfIteratorHelper(e.getElementsByClassName(n));try{for(c.s();!(i=c.n()).done;){i.value.classList.add("dvmd_tm_col_hover")}}catch(t){c.e(t)}finally{c.f()}}}}document.addEventListener("DOMContentLoaded",(function(){var t,e=_createForOfIteratorHelper(document.getElementsByClassName("dvmd_tm_table"));try{for(e.s();!(t=e.n()).done;){var r=t.value;if(r.classList.remove("dvmd_preload"),r.classList.contains("dvmd_tm_accordion")){r.addEventListener("click",dvmd_tm_click);var a,s=_createForOfIteratorHelper(r.getElementsByClassName("dvmd_tm_toggle"));try{for(s.s();!(a=s.n()).done;){var n=a.value;dvmd_tm_init_key_pressed_state(n),n.addEventListener("keydown",dvmd_tm_key_down),n.addEventListener("keyup",dvmd_tm_key_up)}}catch(t){s.e(t)}finally{s.f()}}r.classList.contains("dvmd_tm_hover_enabled")&&(r.addEventListener("mouseover",dvmd_tm_mouse_over),r.addEventListener("mouseleave",dvmd_tm_mouse_leave))}}catch(t){e.e(t)}finally{e.f()}}));