PageSourceSearch

https://www.infobip.com/wp-content/themes/infobip2024/public/23106-21d91a484ff1bf9e.js

js infobip.com collected 2026-09-24 08:26:34 UTC 79,746 bytes, 20 lines download raw bytes

1"use strict";(self.webpackChunkinfobip2024=self.webpackChunkinfobip2024||[]).push([[23106],{23106(t,e,s){s.d(e,{bQ:()=>tR});let a=(t,e)=>{let s=document.createElement(t);if(e&&"object"==typeof e)for(let t in e)"html"===t?s.innerHTML=e[t]:s.setAttribute(t,e[t]);return s},i=t=>["#text","#comment"].includes(t.nodeName)?t.data:t.childNodes?t.childNodes.map(t=>i(t)).join(""):"",n=t=>null==t?"":t.hasOwnProperty("text")||t.hasOwnProperty("data")?t.text??n(t.data):t.hasOwnProperty("nodeName")?i(t):String(t),o=function(t,e){let s=0,a=0;for(;s<t+1;)e[a].hidden||(s+=1),a+=1;return a-1},r=function(t){let e={};if(t)for(let s of t)e[s.name]=s.value;return e},l=t=>t?t.trim().split(" ").map(t=>`.${t}`).join(""):null,d=(t,e)=>!e?.split(" ").some(e=>!t.classList.contains(e)),c=(t,e)=>t?e?`${t} ${e}`:t:e||"",h=function(t,e=300){let s;return(...a)=>{clearTimeout(s),s=window.setTimeout(()=>t(),e)}};var u,p,f,m,g,b,_,v,y,w,N,D,E,V=function(){return(V=Object.assign||function(t){for(var e,s=arguments,a=1,i=arguments.length;a<i;a++)for(var n in e=s[a])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function x(t,e,s){for(var a,i=0,n=e.length;i<n;i++)!a&&i in e||(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return t.concat(a||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var M=function(){function t(t){void 0===t&&(t={});var e=this;Object.entries(t).forEach(function(t){var s=t[0],a=t[1];return e[s]=a})}return t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.setValue=function(t,e){return this[t]=e,this},t}();function O(t,e){var s=arguments;void 0===e&&(e=!1);for(var a=[],i=2;i<arguments.length;i++)a[i-2]=s[i];return null!=t&&(e?!!a.some(function(e){if("Element"===e)return 1===t.nodeType||"string"==typeof t.nodeName&&"#text"!==t.nodeName&&"#comment"!==t.nodeName||t.tagName&&"string"==typeof t.tagName||t.setAttribute&&"function"==typeof t.setAttribute;if("Text"===e)return 3===t.nodeType||"#text"===t.nodeName;if("Comment"===e)return 8===t.nodeType||"#comment"===t.nodeName;if(e.startsWith("HTML")&&e.endsWith("Element")){var s=e.slice(4,-7).toLowerCase();return t.nodeName&&t.nodeName.toLowerCase()===s||t.tagName&&t.tagName.toLowerCase()===s}return!1})||!!t.ownerDocument&&a.some(function(e){var s,a;return"function"==typeof(null==(a=null==(s=null==t?void 0:t.ownerDocument)?void 0:s.defaultView)?void 0:a[e])&&t instanceof t.ownerDocument.defaultView[e]}):a.some(function(e){var s,a;return"function"==typeof(null==(a=null==(s=null==t?void 0:t.ownerDocument)?void 0:s.defaultView)?void 0:a[e])&&t instanceof t.ownerDocument.defaultView[e]}))}function T(t,e,s){var a;return"#text"===t.nodeName?a=s.document.createTextNode(t.data):"#comment"===t.nodeName?a=s.document.createComment(t.data):(e?(a=s.document.createElementNS("http://www.w3.org/2000/svg",t.nodeName),"foreignObject"===t.nodeName&&(e=!1)):"svg"===t.nodeName.toLowerCase()?(a=s.document.createElementNS("http://www.w3.org/2000/svg","svg"),e=!0):a=s.document.createElement(t.nodeName),t.attributes&&Object.entries(t.attributes).forEach(function(t){var e=t[0],s=t[1];return a.setAttribute(e,s)}),t.childNodes&&t.childNodes.forEach(function(t){return a.appendChild(T(t,e,s))}),s.valueDiffing&&(t.value&&O(a,s.simplifiedElementCheck,"HTMLButtonElement","HTMLDataElement","HTMLInputElement","HTMLLIElement","HTMLMeterElement","HTMLOptionElement","HTMLProgressElement","HTMLParamElement")&&(a.value=t.value),t.checked&&O(a,s.simplifiedElementCheck,"HTMLInputElement")&&(a.checked=t.checked),t.selected&&O(a,s.simplifiedElementCheck,"HTMLOptionElement")&&(a.selected=t.selected))),a}var A=function(t,e){for(e=e.slice();e.length>0;){var s=e.splice(0,1)[0];t=t.childNodes[s]}return t};function L(t,e,s){var a,i,n,o,r=e[s._const.action],l=e[s._const.route];[s._const.addElement,s._const.addTextElement].includes(r)||(i=A(t,l));var d={diff:e,node:i};if(s.preDiffApply(d))return!0;switch(r){case s._const.addAttribute:if(!i||!O(i,s.simplifiedElementCheck,"Element"))return!1;i.setAttribute(e[s._const.name],e[s._const.value]);break;case s._const.modifyAttribute:if(!i||!O(i,s.simplifiedElementCheck,"Element"))return!1;
1i.setAttribute(e[s._const.name],e[s._const.newValue]),O(i,s.simplifiedElementCheck,"HTMLInputElement")&&"value"===e[s._const.name]&&(i.value=e[s._const.newValue]);break;case s._const.removeAttribute:if(!i||!O(i,s.simplifiedElementCheck,"Element"))return!1;i.removeAttribute(e[s._const.name]);break;case s._const.modifyTextElement:if(!i||!O(i,s.simplifiedElementCheck,"Text"))return!1;s.textDiff(i,i.data,e[s._const.oldValue],e[s._const.newValue]),O(i.parentNode,s.simplifiedElementCheck,"HTMLTextAreaElement")&&(i.parentNode.value=e[s._const.newValue]);break;case s._const.modifyValue:if(!i||void 0===i.value)return!1;i.value=e[s._const.newValue];break;case s._const.modifyComment:if(!i||!O(i,s.simplifiedElementCheck,"Comment"))return!1;s.textDiff(i,i.data,e[s._const.oldValue],e[s._const.newValue]);break;case s._const.modifyChecked:if(!i||void 0===i.checked)return!1;i.checked=e[s._const.newValue];break;case s._const.modifySelected:if(!i||void 0===i.selected)return!1;i.selected=e[s._const.newValue];break;case s._const.replaceElement:var c="svg"===e[s._const.newValue].nodeName.toLowerCase()||"http://www.w3.org/2000/svg"===i.parentNode.namespaceURI;i.parentNode.replaceChild(T(e[s._const.newValue],c,s),i);break;case s._const.relocateGroup:x([],Array(e[s._const.groupLength])).map(function(){return i.removeChild(i.childNodes[e[s._const.from]])}).forEach(function(t,a){0===a&&(o=i.childNodes[e[s._const.to]]),i.insertBefore(t,o||null)});break;case s._const.removeElement:i.parentNode.removeChild(i);break;case s._const.addElement:var h=(a=l.slice()).splice(a.length-1,1)[0];if(!O(i=A(t,a),s.simplifiedElementCheck,"Element"))return!1;i.insertBefore(T(e[s._const.element],"http://www.w3.org/2000/svg"===i.namespaceURI,s),i.childNodes[h]||null);break;case s._const.removeTextElement:if(!i||3!==i.nodeType)return!1;var u=i.parentNode;u.removeChild(i),O(u,s.simplifiedElementCheck,"HTMLTextAreaElement")&&(u.value="");break;case s._const.addTextElement:if(h=(a=l.slice()).splice(a.length-1,1)[0],n=s.document.createTextNode(e[s._const.value]),!(i=A(t,a)).childNodes)return!1;i.insertBefore(n,i.childNodes[h]||null),O(i.parentNode,s.simplifiedElementCheck,"HTMLTextAreaElement")&&(i.parentNode.value=e[s._const.value])}return s.postDiffApply({diff:d.diff,node:d.node,newNode:n}),!0}function k(t,e,s){var a=t[e];t[e]=t[s],t[s]=a}var S=function(t){var e=[];return e.push(t.nodeName),"#text"!==t.nodeName&&"#comment"!==t.nodeName&&t.attributes&&(t.attributes.class&&e.push("".concat(t.nodeName,".").concat(t.attributes.class.replace(/ /g,"."))),t.attributes.id&&e.push("".concat(t.nodeName,"#").concat(t.attributes.id))),e},C=function(t){var e={},s={};return t.forEach(function(t){S(t).forEach(function(t){var a=t in e;a||t in s?a&&(delete e[t],s[t]=!0):e[t]=!0})}),e},$=function(t,e){var s=C(t),a=C(e),i={};return Object.keys(s).forEach(function(t){a[t]&&(i[t]=!0)}),i},P=function(t){return delete t.outerDone,delete t.innerDone,delete t.valueDone,!t.childNodes||t.childNodes.every(P)},H=function(t){if(Object.prototype.hasOwnProperty.call(t,"data"))return{nodeName:"#text"===t.nodeName?"#text":"#comment",data:t.data};var e={nodeName:t.nodeName};return Object.prototype.hasOwnProperty.call(t,"attributes")&&(e.attributes=V({},t.attributes)),Object.prototype.hasOwnProperty.call(t,"checked")&&(e.checked=t.checked),Object.prototype.hasOwnProperty.call(t,"value")&&(e.value=t.value),Object.prototype.hasOwnProperty.call(t,"selected")&&(e.selected=t.selected),Object.prototype.hasOwnProperty.call(t,"childNodes")&&(e.childNodes=t.childNodes.map(function(t){return H(t)})),e},Y=function(t,e){if(!["nodeName","value","checked","selected","data"].every(function(s){return t[s]===e[s]}))return!1;if(Object.prototype.hasOwnProperty.call(t,"data"))return!0;if(!!t.attributes!=!!e.attributes||!!t.childNodes!=!!e.childNodes)return!1;if(t.attributes){var s=Object.keys(t.attributes),a=Object.keys(e.attributes);if(s.length!==a.length||!s.every(function(s){return t.attributes[s]===e.attributes[s]}))return!1}return(!t.childNodes||t.childNodes.length===e.childNodes.length&&!!t.childNodes.every(function(t,s){return Y(t,e.childNodes[s])}))&&!0},I=function(t,e,s,a,i){if(void 0===i&&(i=!1),!t||!e||t.nodeName!==e.nodeName)return!1;if(["#text","#comment"].includes(t.nodeName))return!!i||t.data===e.data;
vendor: 19,694 bytes, line 1
1if(t.nodeName in s)return!0;if(t.attributes&&e.attributes){if(t.attributes.id){if(t.attributes.id!==e.attributes.id)return!1;if("".concat(t.nodeName,"#").concat(t.attributes.id)in s)return!0}if(t.attributes.class&&t.attributes.class===e.attributes.class&&"".concat(t.nodeName,".").concat(t.attributes.class.replace(/ /g,"."))in s)return!0}if(a)return!0;var n=t.childNodes?t.childNodes.slice().reverse():[],o=e.childNodes?e.childNodes.slice().reverse():[];if(n.length!==o.length)return!1;if(i)return n.every(function(t,e){return t.nodeName===o[e].nodeName});var r=$(n,o);return n.every(function(t,e){return I(t,o[e],r,!0,!0)})},R=function(t,e){return x([],Array(t)).map(function(){return e})},j=function(t,e){for(var s=t.childNodes?t.childNodes:[],a=e.childNodes?e.childNodes:[],i=R(s.length,!1),n=R(a.length,!1),o=[],r=function(){return arguments[1]},l=!1;!l;)!function(){var t=function(t,e,s,a){var i=0,n=[],o=t.length,r=e.length,l=x([],Array(o+1)).map(function(){return[]}),d=$(t,e),c=o===r;c&&t.some(function(t,s){var a=S(t),i=S(e[s]);return a.length!==i.length?(c=!1,!0):(a.some(function(t,e){if(t!==i[e])return c=!1,!0}),!c||void 0)});for(var h=0;h<o;h++)for(var u=t[h],p=0;p<r;p++){var f=e[p];s[h]||a[p]||!I(u,f,d,c)?l[h+1][p+1]=0:(l[h+1][p+1]=l[h][p]?l[h][p]+1:1,l[h+1][p+1]>=i&&(i=l[h+1][p+1],n=[h+1,p+1]))}return 0!==i&&{oldValue:n[0]-i,newValue:n[1]-i,length:i}}(s,a,i,n);t?(o.push(t),x([],Array(t.length)).map(r).forEach(function(e){i[t.oldValue+e]=!0,n[t.newValue+e]=!0})):l=!0}();return t.subsets=o,t.subsetsAge=100,o},F=function(){function t(){this.list=[]}return t.prototype.add=function(t){var e;(e=this.list).push.apply(e,t)},t.prototype.forEach=function(t){this.list.forEach(function(e){return t(e)})},t}();function q(t,e){var s,a,i=t;for(e=e.slice();e.length>0;)a=e.splice(0,1)[0],s=i,i=i.childNodes?i.childNodes[a]:void 0;return{node:i,parentNode:s,nodeIndex:a}}function z(t,e){void 0===e&&(e={valueDiffing:!0,simplifiedElementCheck:!0});var s={nodeName:t.nodeName};return O(t,e.simplifiedElementCheck,"Text","Comment")?s.data=t.data:(t.attributes&&t.attributes.length>0&&(s.attributes={},Array.prototype.slice.call(t.attributes).forEach(function(t){return s.attributes[t.name]=t.value})),t.childNodes&&t.childNodes.length>0&&(s.childNodes=[],Array.prototype.slice.call(t.childNodes).forEach(function(t){return s.childNodes.push(z(t,e))})),e.valueDiffing&&(O(t,e.simplifiedElementCheck,"HTMLTextAreaElement")&&(s.value=t.value),O(t,e.simplifiedElementCheck,"HTMLInputElement")&&["radio","checkbox"].includes(t.type.toLowerCase())&&void 0!==t.checked?s.checked=t.checked:O(t,e.simplifiedElementCheck,"HTMLButtonElement","HTMLDataElement","HTMLInputElement","HTMLLIElement","HTMLMeterElement","HTMLOptionElement","HTMLProgressElement","HTMLParamElement")&&(s.value=t.value),O(t,e.simplifiedElementCheck,"HTMLOptionElement")&&(s.selected=t.selected))),s}var B=/<\s*\/*[a-zA-Z:_][a-zA-Z0-9:_\-.]*\s*(?:"[^"]*"['"]*|'[^']*'['"]*|[^'"/>])*\/*\s*>|<!--(?:.|\n|\r)*?-->/g,W=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function U(t){return t.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}var J={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuItem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Q=function(t,e){var s={nodeName:"",attributes:{}},a=!1,i=t.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(s.nodeName=e||"svg"===i[1]?i[1]:i[1].toUpperCase(),(J[i[1]]||"/"===t.charAt(t.length-2))&&(a=!0),s.nodeName.startsWith("!--"))){var n=t.indexOf("--\x3e");return{type:"comment",node:{nodeName:"#comment",data:-1!==n?t.slice(4,n):""},voidElement:a}}for(var o=new RegExp(W),r=null,l=!1;!l;)if(null===(r=o.exec(t)))l=!0;else if(r[0].trim())if(r[1]){var d=r[1].trim(),c=[d,""];d.indexOf("=")>-1&&(c=d.split("=")),s.attributes[c[0]]=c[1],o.lastIndex--}else r[2]&&(s.attributes[r[2]]=r[3].trim().substring(1,r[3].length-1));return{type:"tag",node:s,voidElement:a}},Z=function(t,e){void 0===e&&(e={valueDiffing:!0,caseSensitive:!1});var s,a=[],i=-1,n=[],o=!1;if(0!==t.indexOf("<")){var r=t.indexOf("<");a.push({nodeName:"#text",data:-1===r?t:t.substring(0,r)})}return t.replace(B,function(r,l){var d="/"!==r.charAt(1),c=r.startsWith("\x3c!--"),h=l+r.length,u=t.charAt(h);if(c){var p=Q(r,e.caseSensitive).node;if(i<0)return a.push(p),"";var f=n[i];return f&&p.nodeName&&(f.node.childNodes||(f.node.childNodes=[]),f.node.childNodes.push(p)),""}if(d){if("svg"===(s=Q(r,e.caseSensitive||o)).node.nodeName&&(o=!0),i++,!s.voidElement&&u&&"<"!==u){s.node.childNodes||(s.node.childNodes=[]);var m=U(t.slice(h,t.indexOf("<",h)));s.node.childNodes.push({nodeName:"#text",data:m}),e.valueDiffing&&"TEXTAREA"===s.node.nodeName&&(s.node.value=m)}0===i&&s.node.nodeName&&a.push(s.node);var g=n[i-1];g&&s.node.nodeName&&(g.node.childNodes||(g.node.childNodes=[]),g.node.childNodes.push(s.node)),n[i]=s}if((!d||s.voidElement)&&(i>-1&&(s.voidElement||e.caseSensitive&&s.node.nodeName===r.slice(2,-1)||!e.caseSensitive&&s.node.nodeName.toUpperCase()===r.slice(2,-1).toUpperCase())&&--i>-1&&("svg"===s.node.nodeName&&(o=!1),s=n[i]),"<"!==u&&u)){var b=-1===i?a:n[i].node.childNodes||[],_=t.indexOf("<",h);m=U(t.slice(h,-1===_?void 0:_)),b.push({nodeName:"#text",data:m})}return""}),a[0]},G=function(){function t(t,e,s){this.options=s,this.t1="u">typeof Element&&O(t,this.options.simplifiedElementCheck,"Element")?z(t,this.options):"string"==typeof t?Z(t,this.options):JSON.parse(JSON.stringify(t)),this.t2="u">typeof Element&&O(e,this.options.simplifiedElementCheck,"Element")?z(e,this.options):"string"==typeof e?Z(e,this.options):JSON.parse(JSON.stringify(e)),this.diffcount=0,this.foundAll=!1,this.debug&&(this.t1Orig="u">typeof Element&&O(t,this.options.simplifiedElementCheck,"Element")?z(t,this.options):"string"==typeof t?Z(t,this.options):JSON.parse(JSON.stringify(t)),this.t2Orig="u">typeof Element&&O(e,this.options.simplifiedElementCheck,"Element")?z(e,this.options):"string"==typeof e?Z(e,this.options):JSON.parse(JSON.stringify(e))),this.tracker=new F}return t.prototype.init=function(){return this.findDiffs(this.t1,this.t2)},t.prototype.findDiffs=function(t,e){var s;do{if(this.options.debug&&(this.diffcount+=1,this.diffcount>this.options.diffcap))throw Error("surpassed diffcap:".concat(JSON.stringify(this.t1Orig)," -> ").concat(JSON.stringify(this.t2Orig)));0===(s=this.findNextDiff(t,e,[])).length&&(Y(t,e)||this.foundAll||(this.foundAll=!0,P(t),s=this.findNextDiff(t,e,[]))),s.length>0&&(this.foundAll=!1,this.tracker.add(s),function(t,e,s){e.forEach(function(e){!function(t,e,s){if(![s._const.addElement,s._const.addTextElement].includes(e[s._const.action])){var a=q(t,e[s._const.route]);n=a.node,o=a.parentNode,r=a.nodeIndex}var i,n,o,r,l,d,c=[],h={diff:e,node:n};if(!s.preVirtualDiffApply(h)){switch(e[s._const.action]){case s._const.addAttribute:n.attributes||(n.attributes={}),n.attributes[e[s._const.name]]=e[s._const.value],"checked"===e[s._const.name]?n.checked=!0:"selected"===e[s._const.name]?n.selected=!0:"INPUT"===n.nodeName&&"value"===e[s._const.name]&&(n.value=e[s._const.value]);break;case s._const.modifyAttribute:n.attributes[e[s._const.name]]=e[s._const.newValue];break;case s._const.removeAttribute:delete n.attributes[e[s._const.name]],0===Object.keys(n.attributes).length&&delete n.attributes,"checked"===e[s._const.name]?n.checked=!1:"selected"===e[s._const.name]?delete n.selected:"INPUT"===n.nodeName&&"value"===e[s._const.name]&&delete n.value;break;case s._const.modifyTextElement:n.data=e[s._const.newValue],"TEXTAREA"===o.nodeName&&(o.value=e[s._const.newValue]);break;case s._const.modifyValue:n.value=e[s._const.newValue];break;case s._const.modifyComment:n.data=e[s._const.newValue];break;case s._const.modifyChecked:n.checked=e[s._const.newValue];break;case s._const.modifySelected:n.selected=e[s._const.newValue];break;case s._const.replaceElement:l=H(e[s._const.newValue]),o.childNodes[r]=l;break;case s._const.relocateGroup:n.childNodes.splice(e[s._const.from],e[s._const.groupLength]).reverse().forEach(function(t){return n.childNodes.splice(e[s._const.to],0,t)}),n.subsets&&n.subsets.forEach(function(t){if(e[s._const.from]<e[s._const.to]&&t.oldValue<=e[s._const.to]&&t.oldValue>e[s._const.from])t.oldValue-=e[s._const.groupLength],(a=t.oldValue+t.length-e[s._const.to])>0&&(c.push({oldValue:e[s._const.to]+e[s._const.groupLength],newValue:t.newValue+t.length-a,length:a}),t.length-=a);else if(e[s._const.from]>e[s._const.to]&&t.oldValue>e[s._const.to]&&t.oldValue<e[s._const.from]){var a;t.oldValue+=e[s._const.groupLength],(a=t.oldValue+t.length-e[s._const.to])>0&&(c.push({oldValue:e[s._const.to]+e[s._const.groupLength],newValue:t.newValue+t.length-a,length:a}),t.length-=a)}else t.oldValue===e[s._const.from]&&(t.oldValue=e[s._const.to])});break;case s._const.removeElement:o.childNodes.splice(r,1),o.subsets&&o.subsets.forEach(function(t){t.oldValue>r?t.oldValue-=1:t.oldValue===r?t.delete=!0:t.oldValue<r&&t.oldValue+t.length>r&&(t.oldValue+t.length-1===r?t.length--:(c.push({newValue:t.newValue+r-t.oldValue,oldValue:r,length:t.length-r+t.oldValue-1}),t.length=r-t.oldValue))}),n=o;break;case s._const.addElement:var u=(d=e[s._const.route].slice()).splice(d.length-1,1)[0];n=null==(i=q(t,d))?void 0:i.node,l=H(e[s._const.element]),n.childNodes||(n.childNodes=[]),u>=n.childNodes.length?n.childNodes.push(l):n.childNodes.splice(u,0,l),n.subsets&&n.subsets.forEach(function(t){if(t.oldValue>=u)t.oldValue+=1;else if(t.oldValue<u&&t.oldValue+t.length>u){var e=t.oldValue+t.length-u;c.push({newValue:t.newValue+t.length-e,oldValue:u+1,length:e}),t.length-=e}});break;case s._const.removeTextElement:o.childNodes.splice(r,1),"TEXTAREA"===o.nodeName&&delete o.value,o.subsets&&o.subsets.forEach(function(t){t.oldValue>r?t.oldValue-=1:t.oldValue===r?t.delete=!0:t.oldValue<r&&t.oldValue+t.length>r&&(t.oldValue+t.length-1===r?t.length--:(c.push({newValue:t.newValue+r-t.oldValue,oldValue:r,length:t.length-r+t.oldValue-1}),t.length=r-t.oldValue))}),n=o;break;case s._const.addTextElement:var p=(d=e[s._const.route].slice()).splice(d.length-1,1)[0];l={nodeName:"#text",data:e[s._const.value]},(n=q(t,d).node).childNodes||(n.childNodes=[]),p>=n.childNodes.length?n.childNodes.push(l):n.childNodes.splice(p,0,l),"TEXTAREA"===n.nodeName&&(n.value=e[s._const.newValue]),n.subsets&&n.subsets.forEach(function(t){if(t.oldValue>=p&&(t.oldValue+=1),t.oldValue<p&&t.oldValue+t.length>p){var e=t.oldValue+t.length-p;c.push({newValue:t.newValue+t.length-e,oldValue:p+1,length:e}),t.length-=e}})}n.subsets&&(n.subsets=n.subsets.filter(function(t){return!t.delete&&t.oldValue!==t.newValue}),c.length&&(n.subsets=n.subsets.concat(c))),s.postVirtualDiffApply({node:h.node,diff:h.diff,newNode:l})}}(t,e,s)})}(t,s,this.options))}while(s.length>0)return this.tracker.list},t.prototype.findNextDiff=function(t,e,s){var a,i;if(this.options.maxDepth&&s.length>this.options.maxDepth)return[];if(!t.outerDone){if(a=this.findOuterDiff(t,e,s),this.options.filterOuterDiff&&(i=this.options.filterOuterDiff(t,e,a))&&(a=i),a.length>0)return t.outerDone=!0,a;t.outerDone=!0}if(Object.prototype.hasOwnProperty.call(t,"data"))return[];if(!t.innerDone){if((a=this.findInnerDiff(t,e,s)).length>0)return a;t.innerDone=!0}if(this.options.valueDiffing&&!t.valueDone){if((a=this.findValueDiff(t,e,s)).length>0)return t.valueDone=!0,a;t.valueDone=!0}return[]},t.prototype.findOuterDiff=function(t,e,s){var a,i,n,o,r,l,d=[];if(t.nodeName!==e.nodeName){if(!s.length)throw Error("Top level nodes have to be of the same kind.");return[(new M).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,H(t)).setValue(this.options._const.newValue,H(e)).setValue(this.options._const.route,s)]}if(s.length&&this.options.diffcap<Math.abs((t.childNodes||[]).length-(e.childNodes||[]).length))return[(new M).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,H(t)).setValue(this.options._const.newValue,H(e)).setValue(this.options._const.route,s)];if(Object.prototype.hasOwnProperty.call(t,"data")&&t.data!==e.data)return"#text"===t.nodeName?[(new M).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,s).setValue(this.options._const.oldValue,t.data).setValue(this.options._const.newValue,e.data)]:[(new M).setValue(this.options._const.action,this.options._const.modifyComment).setValue(this.options._const.route,s).setValue(this.options._const.oldValue,t.data).setValue(this.options._const.newValue,e.data)];for(i=t.attributes?Object.keys(t.attributes).sort():[],n=e.attributes?Object.keys(e.attributes).sort():[],o=i.length,l=0;l<o;l++)a=i[l],-1===(r=n.indexOf(a))?d.push((new M).setValue(this.options._const.action,this.options._const.removeAttribute).setValue(this.options._const.route,s).setValue(this.options._const.name,a).setValue(this.options._const.value,t.attributes[a])):(n.splice(r,1),t.attributes[a]!==e.attributes[a]&&d.push((new M).setValue(this.options._const.action,this.options._const.modifyAttribute).setValue(this.options._const.route,s).setValue(this.options._const.name,a).setValue(this.options._const.oldValue,t.attributes[a]).setValue(this.options._const.newValue,e.attributes[a])));for(o=n.length,l=0;l<o;l++)a=n[l],d.push((new M).setValue(this.options._const.action,this.options._const.addAttribute).setValue(this.options._const.route,s).setValue(this.options._const.name,a).setValue(this.options._const.value,e.attributes[a]));return d},t.prototype.findInnerDiff=function(t,e,s){var a=t.childNodes?t.childNodes.slice():[],i=e.childNodes?e.childNodes.slice():[],n=Math.max(a.length,i.length),o=Math.abs(a.length-i.length),r=[],l=0;if(!this.options.maxChildCount||n<this.options.maxChildCount){var d=!!(t.subsets&&t.subsetsAge--),c=d?t.subsets:t.childNodes&&e.childNodes?j(t,e):[];if(c.length>0&&(r=this.attemptGroupRelocation(t,e,c,s,d)).length>0)return r}for(var h=0;h<n;h+=1){var u=a[h],p=i[h];o&&(u&&!p?("#text"===u.nodeName?r.push((new M).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.value,u.data)):r.push((new M).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.element,H(u))),l-=1):p&&!u&&("#text"===p.nodeName?r.push((new M).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.value,p.data)):r.push((new M).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.element,H(p))))),u&&p&&(!this.options.maxChildCount||n<this.options.maxChildCount?r=r.concat(this.findNextDiff(u,p,s.concat(l))):Y(u,p)||(a.length>i.length?("#text"===u.nodeName?r.push((new M).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.value,u.data)):r.push((new M).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.element,H(u)).setValue(this.options._const.route,s.concat(l))),a.splice(h,1),h-=1,l-=1,o-=1):a.length<i.length?(r=r.concat([(new M).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.element,H(p)).setValue(this.options._const.route,s.concat(l))]),a.splice(h,0,H(p)),o-=1):r=r.concat([(new M).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,H(u)).setValue(this.options._const.newValue,H(p)).setValue(this.options._const.route,s.concat(l))]))),l+=1}return t.innerDone=!0,r},t.prototype.attemptGroupRelocation=function(t,e,s,a,i){for(var n,o,r,l,d,c,h,u,p=(n=t.childNodes?R(t.childNodes.length,!0):[],o=e.childNodes?R(e.childNodes.length,!0):[],r=0,s.forEach(function(t){for(var e=t.oldValue+t.length,s=t.newValue+t.length,a=t.oldValue;a<e;a+=1)n[a]=r;for(a=t.newValue;a<s;a+=1)o[a]=r;r+=1}),{gaps1:n,gaps2:o}),f=p.gaps1,m=p.gaps2,g=t.childNodes.slice(),b=e.childNodes.slice(),_=Math.min(f.length,m.length),v=[],y=0,w=0;y<_;w+=1,y+=1)if(!i||!0!==f[y]&&!0!==m[y]){if(!0===f[w])if("#text"===(h=g[w]).nodeName)if("#text"===b[y].nodeName){if(h.data!==b[y].data){for(var N=w;g.length>N+1&&"#text"===g[N+1].nodeName;)if(N+=1,b[y].data===g[N].data){u=!0;break}u||v.push((new M).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,a.concat(w)).setValue(this.options._const.oldValue,h.data).setValue(this.options._const.newValue,b[y].data))}}else v.push((new M).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,a.concat(w)).setValue(this.options._const.value,h.data)),f.splice(w,1),g.splice(w,1),_=Math.min(f.length,m.length),w-=1,y-=1;else!0===m[y]?v.push((new M).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,H(h)).setValue(this.options._const.newValue,H(b[y])).setValue(this.options._const.route,a.concat(w))):(v.push((new M).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,a.concat(w)).setValue(this.options._const.element,H(h))),f.splice(w,1),g.splice(w,1),_=Math.min(f.length,m.length),w-=1,y-=1);else if(!0===m[y])"#text"===(h=b[y]).nodeName?(v.push((new M).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,a.concat(w)).setValue(this.options._const.value,h.data)),f.splice(w,0,!0),g.splice(w,0,{nodeName:"#text",data:h.data})):(v.push((new M).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,a.concat(w)).setValue(this.options._const.element,H(h))),f.splice(w,0,!0),g.splice(w,0,H(h))),_=Math.min(f.length,m.length);else if(f[w]!==m[y]){if(v.length>0)return v;if((d=Math.min((c=s[f[w]]).newValue,g.length-c.length))!==c.oldValue&&d>-1){l=!1;for(var D=0;D<c.length;D+=1)I(g[d+D],g[c.oldValue+D],{},!1,!0)||(l=!0);if(l)return[(new M).setValue(this.options._const.action,this.options._const.relocateGroup).setValue(this.options._const.groupLength,c.length).setValue(this.options._const.from,c.oldValue).setValue(this.options._const.to,d).setValue(this.options._const.route,a)]}}}return v},t.prototype.findValueDiff=function(t,e,s){var a=[];return t.selected!==e.selected&&a.push((new M).setValue(this.options._const.action,this.options._const.modifySelected).setValue(this.options._const.oldValue,t.selected).setValue(this.options._const.newValue,e.selected).setValue(this.options._const.route,s)),(t.value||e.value)&&t.value!==e.value&&"OPTION"!==t.nodeName&&a.push((new M).setValue(this.options._const.action,this.options._const.modifyValue).setValue(this.options._const.oldValue,t.value||"").setValue(this.options._const.newValue,e.value||"").setValue(this.options._const.route,s)),t.checked!==e.checked&&a.push((new M).setValue(this.options._const.action,this.options._const.modifyChecked).setValue(this.options._const.oldValue,t.checked).setValue(this.options._const.newValue,e.checked).setValue(this.options._const.route,s)),a},t}(),X={debug:!1,diffcap:10,maxDepth:!1,maxChildCount:50,valueDiffing:!0,simplifiedElementCheck:!1,textDiff:function(t,e,s,a){t.data=a},preVirtualDiffApply:function(){},postVirtualDiffApply:function(){},preDiffApply:function(){},postDiffApply:function(){},filterOuterDiff:null,compress:!1,_const:!1,document:!("u"<typeof window||!window.document)&&window.document,components:[]},K=function(){function t(t){if(void 0===t&&(t={}
1),Object.entries(X).forEach(function(e){var s=e[0],a=e[1];Object.prototype.hasOwnProperty.call(t,s)||(t[s]=a)}),!t._const){var e=["addAttribute","modifyAttribute","removeAttribute","modifyTextElement","relocateGroup","removeElement","addElement","removeTextElement","addTextElement","replaceElement","modifyValue","modifyChecked","modifySelected","modifyComment","action","route","oldValue","newValue","element","group","groupLength","from","to","name","value","data","attributes","nodeName","childNodes","checked","selected"],s={};t.compress?e.forEach(function(t,e){return s[t]=e}):e.forEach(function(t){return s[t]=t}),t._const=s}this.options=t}return t.prototype.apply=function(t,e){var s;return s=this.options,e.every(function(e){return L(t,e,s)})},t.prototype.undo=function(t,e){var s,a;return s=e,a=this.options,void((s=s.slice()).reverse(),s.forEach(function(e){switch(e[a._const.action]){case a._const.addAttribute:e[a._const.action]=a._const.removeAttribute,L(t,e,a);break;case a._const.modifyAttribute:k(e,a._const.oldValue,a._const.newValue),L(t,e,a);break;case a._const.removeAttribute:e[a._const.action]=a._const.addAttribute,L(t,e,a);break;case a._const.modifyTextElement:case a._const.modifyValue:case a._const.modifyComment:case a._const.modifyChecked:case a._c
1onst.modifySelected:case a._const.replaceElement:k(e,a._const.oldValue,a._const.newValue),L(t,e,a);break;case a._const.relocateGroup:k(e,a._const.from,a._const.to),L(t,e,a);break;case a._const.removeElement:e[a._const.action]=a._const.addElement,L(t,e,a);break;case a._const.addElement:e[a._const.action]=a._const.removeElement,L(t,e,a);break;case a._const.removeTextElement:e[a._const.action]=a._const.addTextElement,L(t,e,a);break;case a._const.addTextElement:e[a._const.action]=a._const.removeTextElement,L(t,e,a)}}))},t.prototype.diff=function(t,e){return new G(t,e,this.options).init()},t}();let tt=(t,e,s,{classes:a,format:i,hiddenHeader:n,sortable:o,scrollY:r,type:l},{noColumnWidths:d,unhideHeader:h})=>({nodeName:"TR",childNodes:t.map((t,i)=>{let l=e[i]||{sortable:!0};if(l.hidden||"true"===t.attributes?.["data-colspan-placeholder"])return;let u=t.attributes?{...t.attributes}:{};if(l.sortable&&o&&(!r.length||h)&&(l.filter?u["data-filterable"]="true":u["data-sortable"]="true"),l.headerClass&&(u.class=c(u.class,l.headerClass)),s.sort&&s.sort.column===i){let t="asc"===s.sort.dir?a.ascending:a.descending;u.class=c(u.class,t),u["aria-sort"]="asc"===s.sort.dir?"ascending":"descending"}else s.filters[i]&&(u.class=c(u.class,a.filterActive));if(s.widths[i]&&!d){let t=`width: ${s.widths[i]}%;`;u.style=c(u.style,t)}r.length&&!h&&(u.style=c(u.style,"padding-bottom: 0;padding-top: 0;border: 0;"));let p="html"===t.type?t.data:[{nodeName:"#text",data:t.text??String(t.data)}];return{nodeName:"TH",attributes:u,childNodes:(n||r.length)&&!h?[{nodeName:"#text",data:""}]:l.sortable&&o?[{nodeName:"BUTTON",attributes:l.filter?{class:a.filter}:{class:a.sorter,"aria-describedby":"sort-hint"},childNodes:p}]:p}}).filter(t=>!!t)}),te=(t,e,s,a,i,o,{classes:r,hiddenHeader:l,header:d,footer:h,format:u,sortable:p,scrollY:f,type:m,rowRender:g,tabIndex:b},{noColumnWidths:_,unhideHeader:v,renderHeader:y},w,N)=>{let D={nodeName:"TABLE",attributes:{...t},childNodes:[{nodeName:"TBODY",childNodes:s.map(({row:t,index:e})=>{let s={nodeName:"TR",attributes:{...t.attributes,"data-index":String(e)},childNodes:t.cells.map((t,s)=>{let o=a[s]||{type:m,format:u,sortable:!0,searchable:!0};if(o.hidden||"true"===t.attributes?.["data-colspan-placeholder"]||"true"===t.attributes?.["data-rowspan-placeholder"])return;let r={nodeName:"TD",attributes:t.attributes?{...t.attributes}:{},childNodes:"html"===o.type?t.data:[{nodeName:"#text",data:n(t)}]};if(d||h||!i.widths[s]||_||(r.attributes.style=c(r.attributes.style,`width: ${i.widths[s]}%;`)),o.cellClass&&(r.attributes.class=c(r.attributes.class,o.cellClass)),o.render){let a=o.render(t.data,r,e,s);if(a){if("string"!=typeof a)return a;{let t=Z(`<td>${a}</td>`);1===t.childNodes.length&&["#text","#comment"].includes(t.childNodes[0].nodeName)?r.childNodes[0].data=a:r.childNodes=t.childNodes}}}return r}).filter(t=>!!t)};if(e===o&&(s.attributes.class=c(s.attributes.class,r.cursor)),g){let a=g(t,s,e);if(a){if("string"!=typeof a)return a;{let t=Z(`<tr>${a}</tr>`);!t.childNodes||1===t.childNodes.length&&["#text","#comment"].includes(t.childNodes[0].nodeName)?s.childNodes[0].data=a:s.childNodes=t.childNodes}}}return s})}]};if(D.attributes.class=c(D.attributes.class,r.table),d||h||y){let t=tt(e,a,i,{classes:r,hiddenHeader:l,sortable:p,scrollY:f},{noColumnWidths:_,unhideHeader:v});if(d||y){let e={nodeName:"THEAD",childNodes:[t]};(f.length||l)&&!v&&(e.attributes={style:"height: 0px;"}),D.childNodes.unshift(e)}if(h){let e={nodeName:"TFOOT",childNodes:[d?structuredClone(t):t]};(f.length||l)&&!v&&(e.attributes={style:"height: 0px;"}),D.childNodes.push(e)}}return w.forEach(t=>D.childNodes.push(t)),N.forEach(t=>D.childNodes.push(t)),!1!==b&&(D.attributes.tabindex=String(b)),D};function ts(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ta,ti,tn,to,tr,tl,td,tc,th,tu,tp,tf,tm,tg,tb,t_,tv,ty,tw,tN,tD,tE,tV,tx,tM={exports:{}},tO=ts((ta||(ta=1,ti="millisecond",tn="second",to="minute",tr="hour",tl="week",td="month",tc="quarter",th="year",tu="date",tp="Invalid Date",tf=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,tm=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
1|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,tg=function(t,e,s){var a=String(t);return!a||a.length>=e?t:""+Array(e+1-a.length).join(s)+t},(t_={})[tb="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],s=t%100;return"["+t+(e[(s-20)%10]||e[s]||e[0])+"]"}},tv="$isDayjsObject",ty=function(t){return t instanceof tE||!(!t||!t[tv])},tw=function t(e,s,a){var i;if(!e)return tb;if("string"==typeof e){var n=e.toLowerCase();t_[n]&&(i=n),s&&(t_[n]=s,i=n);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var r=e.name;t_[r]=e,i=r}return!a&&i&&(tb=i),i||!a&&tb},tN=function(t,e){if(ty(t))return t.clone();var s="object"==typeof e?e:{};return s.date=t,s.args=arguments,new tE(s)},(tD={s:tg,z:function(t){var e=-t.utcOffset(),s=Math.abs(e);return(e<=0?"+":"-")+tg(Math.floor(s/60),2,"0")+":"+tg(s%60,2,"0")},m:function t(e,s){if(e.date()<s.date())return-t(s,e);var a=12*(s.year()-e.year())+(s.month()-e.month()),i=e.clone().add(a,td),n=s-i<0,o=e.clone().add(a+(n?-1:1),td);return+(-(a+(s-i)/(n?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return({M:td,y:th,w:tl,d:"day",D:tu,h:tr,m:to,s:tn,ms:ti,Q:tc})[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}}).l=tw,tD.i=ty,tD.w=function(t,e){return tN(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},tV=(tE=function(){function t(t){this.$L=tw(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[tv]=!0}var e=t.prototype;return e.parse=function(t){this.$d=function(t){var e=t.date,s=t.utc;if(null===e)return new Date(0/0);if(tD.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var a=e.match(tf);if(a){var i=a[2]-1||0,n=(a[7]||"0").substring(0,3);return s?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)}}return new Date(e)}(t),this.init()},e.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},e.$utils=function(){return tD},e.isValid=function(){return this.$d.toString()!==tp},e.isSame=function(t,e){var s=tN(t);return this.startOf(e)<=s&&s<=this.endOf(e)},e.isAfter=function(t,e){return tN(t)<this.startOf(e)},e.isBefore=function(t,e){return this.endOf(e)<tN(t)},e.$g=function(t,e,s){return tD.u(t)?this[e]:this.set(s,t)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(t,e){var s=this,a=!!tD.u(e)||e,i=tD.p(t),n=function(t,e){var i=tD.w(s.$u?Date.UTC(s.$y,e,t):new Date(s.$y,e,t),s);return a?i:i.endOf("day")},o=function(t,e){return tD.w(s.toDate()[t].apply(s.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(e)),s)},r=this.$W,l=this.$M,d=this.$D,c="set"+(this.$u?"UTC":"");switch(i){case th:return a?n(1,0):n(31,11);case td:return a?n(1,l):n(0,l+1);case tl:var h=this.$locale().weekStart||0,u=(r<h?r+7:r)-h;return n(a?d-u:d+(6-u),l);case"day":case tu:return o(c+"Hours",0);case tr:return o(c+"Minutes",1);case to:return o(c+"Seconds",2);case tn:return o(c+"Milliseconds",3);default:return this.clone()}},e.endOf=function(t){return this.startOf(t,!1)},e.$set=function(t,e){var s,a=tD.p(t),i="set"+(this.$u?"UTC":""),n=((s={}).day=i+"Date",s[tu]=i+"Date",s[td]=i+"Month",s[th]=i+"FullYear",s[tr]=i+"Hours",s[to]=i+"Minutes",s[tn]=i+"Seconds",s[ti]=i+"Milliseconds",s)[a],o="day"===a?this.$D+(e-this.$W):e;if(a===td||a===th){var r=this.clone().set(tu,1);r.$d[n](o),r.init(),this.$d=r.set(tu,Math.min(this.$D,r.daysInMonth())).$d}else n&&this.$d[n](o);return this.init(),this},e.set=function(t,e){return this.clone().$set(t,e)},e.get=function(t){return this[tD.p(t)]()},e.add=function(t,e){var s,a=this;t=Number(t);var i=tD.p(e),n=function(e){var s=tN(a);return tD.w(s.date(s.date()+Math.round(e*t)),a)};if(i===td)return this.set(td,this.$M+t);if(i===th)return this.set(th,this.$y+t);if("day"===i)return n(1);if(i===tl)return n(7);var o=((s={})[to]=6e4,s[tr]=36e5,s[tn]=1e3,s)[i]||1,r=this.$d.getTime()+t*o;return tD.w(r,this)},e.subtract=function(t,e){return this.add(-1*t,e)},e.format=function(t){var e=this,s=this.$locale();if(!this.isValid())return s.invalidDate||tp;var a=t||"YYYY-MM-DDTHH:mm:ssZ",i=tD.z(this),n=this.$H,o=this.$m,r=this.$M,l=s.weekdays,d=s.months,c=s.meridiem,h=function(t,s,i,n){return t&&(t[s]||t(e,a))||i[s].slice(0,n)},u=function(t){return tD.s(n%12||12,t,"0")},p=c||function(t,e,s){var a=t<12?"AM":"PM";return s?a.toLowerCase():a};return a.replace(tm,function(t,a){return a||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return tD.s(e.$y,4,"0");case"M":return r+1;case"MM":return tD.s(r+1,2,"0");case"MMM":return h(s.monthsShort,r,d,3);case"MMMM":return h(d,r);case"D":return e.$D;case"DD":return tD.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(s.weekdaysMin,e.$W,l,2);case"ddd":return h(s.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(n);case"HH":return tD.s(n,2,"0");case"h":return u(1);case"hh":return u(2);case"a":return p(n,o,!0);case"A":return p(n,o,!1);case"m":return String(o);case"mm":return tD.s(o,2,"0");case"s":return String(e.$s);case"ss":return tD.s(e.$s,2,"0");case"SSS":return tD.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},e.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},e.diff=function(t,e,s){var a,i=this,n=tD.p(e),o=tN(t),r=(o.utcOffset()-this.utcOffset())*6e4,l=this-o,d=function(){return tD.m(i,o)};switch(n){case th:a=d()/12;break;case td:a=d();break;case tc:a=d()/3;break;case tl:a=(l-r)/6048e5;break;case"day":a=(l-r)/864e5;break;case tr:a=l/36e5;break;case to:a=l/6e4;break;case tn:a=l/1e3;break;default:a=l}return s?a:tD.a(a)},e.daysInMonth=function(){return this.endOf(td).$D},e.$locale=function(){return t_[this.$L]},e.locale=function(t,e){if(!t)return this.$L;var s=this.clone(),a=tw(t,e,!0);return a&&(s.$L=a),s},e.clone=function(){return tD.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},t}()).prototype,tN.prototype=tV,[["$ms",ti],["$s",tn],["$m",to],["$H",tr],["$W","day"],["$M",td],["$y",th],["$D",tu]].forEac
1h(function(t){tV[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),tN.extend=function(t,e){return t.$i||(t(e,tE,tN),t.$i=!0),tN},tN.locale=tw,tN.isDayjs=ty,tN.unix=function(t){return tN(1e3*t)},tN.en=t_[tb],tN.Ls=t_,tN.p={},tM.exports=tN),tM.exports)),tT={exports:{}},tA=ts(tx?tT.exports:(tx=1,u={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},p=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,f=/\d/,m=/\d\d/,g=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,_={},v=function(t){return(t*=1)+(t>68?1900:2e3)},y=function(t){return function(e){this[t]=+e}},w=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t||"Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),s=60*e[1]+(+e[2]||0);return 0===s?0:"+"===e[0]?-s:s}(t)}],N=function(t){var e=_[t];return e&&(e.indexOf?e:e.s.concat(e.f))},D=function(t,e){var s,a=_.meridiem;if(a){for(var i=1;i<=24;i+=1)if(t.indexOf(a(i,0,e))>-1){s=i>12;break}}else s=t===(e?"pm":"PM");return s},E={A:[b,function(t){this.afternoon=D(t,!1)}],a:[b,function(t){this.afternoon=D(t,!0)}],Q:[f,function(t){this.month=3*(t-1)+1}],S:[f,function(t){this.milliseconds=100*t}],SS:[m,function(t){this.milliseconds=10*t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[g,y("seconds")],ss:[g,y("seconds")],m:[g,y("minutes")],mm:[g,y("minutes")],H:[g,y("hours")],h:[g,y("hours")],HH:[g,y("hours")],hh:[g,y("hours")],D:[g,y("day")],DD:[m,y("day")],Do:[b,function(t){var e=_.ordinal,s=t.match(/\d+/);if(this.day=s[0],e)for(var a=1;a<=31;a+=1)e(a).replace(/\[|\]/g,"")===t&&(this.day=a)}],w:[g,y("week")],ww:[m,y("week")],M:[g,y("month")],MM:[m,y("month")],MMM:[b,function(t){var e=N("months"),s=(N("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(s<1)throw Error();this.month=s%12||s}],MMMM:[b,function(t){var e=N("months").indexOf(t)+1;if(e<1)throw Error();this.month=e%12||e}],Y:[/[+-]?\d+/,y("year")],YY:[m,function(t){this.year=v(t)}],YYYY:[/\d{4}/,y("year")],Z:w,ZZ:w},tT.exports=function(t,e,s){s.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(v=t.parseTwoDigitYear);var a=e.prototype,i=a.parse;a.parse=function(t){var e=t.date,a=t.utc,n=t.args;this.$u=a;var o=n[1];if("string"==typeof o){var r=!0===n[2],l=!0===n[3],d=n[2];l&&(d=n[2]),_=this.$locale(),!r&&d&&(_=s.Ls[d]),this.$d=function(t,e,s,a){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=(function(t){var e,s;e=t,s=_&&_.formats;for(var a=(t=e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,e,a){var i=a&&a.toUpperCase();return e||s[a]||u[a]||s[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,s){return e||s.slice(1)})})).match(p),i=a.length,n=0;n<i;n+=1){var o=a[n],r=E[o],l=r&&r[0],d=r&&r[1];a[n]=d?{regex:l,parser:d}:o.replace(/^\[|\]$/g,"")}return function(t){for(var e={},s=0,n=0;s<i;s+=1){var o=a[s];if("string"==typeof o)n+=o.length;else{var r=o.regex,l=o.parser,d=t.slice(n),c=r.exec(d)[0];l.call(e,c),t=t.replace(c,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var s=t.hours;e?s<12&&(t.hours+=12):12===s&&(t.hours=0),delete t.afternoon}}(e),e}})(e)(t),n=i.year,o=i.month,r=i.day,l=i.hours,d=i.minutes,c=i.seconds,h=i.milliseconds,f=i.zone,m=i.week,g=new Date,b=r||(n||o?1:g.getDate()),v=n||g.getFullYear(),y=0;n&&!o||(y=o>0?o-1:g.getMonth());var w,N=l||0,D=d||0,V=c||0,x=h||0;return f?new Date(Date.UTC(v,y,b,N,D,V,x+60*f.offset*1e3)):s?new Date(Date.UTC(v,y,b,N,D,V,x)):(w=new Date(v,y,b,N,D,V,x),m&&(w=a(w).week(m).toDate()),w)}catch{return new Date("")}}(e,o,a,s),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),(r||l)&&e!=this.format(o)&&(this.$d=new Date("")),_={}}else if(o instanceof Array)for(var c=o.length,h=1;h<=c;h+=1){n[1]=o[h-1];var f=s.apply(this,n);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}h===c&&(this.$d=new Date(""))}else i.call(this,t)}}));tO.extend(tA);let tL=(t,e)=>{let s;if(e)switch(e){case"ISO_8601":s=t;break;case"RFC_2822":s=tO(t.slice(5),"DD MMM YYYY HH:mm:ss ZZ").unix();break;case"MYSQL":s=tO(t,"YYYY-MM-DD hh:mm:ss").unix();break;case"UNIX":s=tO(t).unix();break;default:s=tO(t,e,!0).valueOf()}return s},tk=(t,e)=>{let s,a,n;if(t?.constructor===Object&&Object.prototype.hasOwnProperty.call(t,"data")&&!Object.keys(t).find(t=>!["text","order","data","attributes"].includes(t))){if(a=t.data,n=t.attributes,void 0!==t.text&&void 0!==t.order)return t;s={data:t.data,text:t.text,order:t.order,attributes:t.attributes}}else a=t,s={data:t};if(void 0===s.text||void 0===s.order)switch(e.type){case"string":"string"!=typeof a&&(s.text=s.text??String(s.data),s.order=s.order??s.text);break;case"date":e.format&&(s.order=s.order??tL(String(s.data),e.format));break;case"number":s.text=s.text??String(s.data),s.data=parseFloat(s.data),s.order=s.order??s.data;break;case"html":{let t=Array.isArray(s.data)?{nodeName:"TD",childNodes:s.data}:Z(`<td>${String(s.data)}</td>`);s.data=t.childNodes||[];let e=i(t);s.text=s.text??e,s.order=s.order??e;break}case"boolean":"string"==typeof s.data&&(s.data=s.data.toLowerCase().trim()),s.data=!["false",!1,null,void 0,0].includes(s.data),s.order=s.order??+!!s.data,s.text=s.text??String(s.data);break;case"other":s.text=s.text??"",s.order=s.order??0;break;default:s.text=s.text??JSON.stringify(s.data)}return n&&(s.attributes=n),s},tS=(t,e)=>{let s;switch(e.type){case"string":s={data:t.innerText};break;case"date":{let a=t.innerText;s={data:a,order:tL(a,e.format)};break}case"number":{let e=parseFloat(t.innerText);s={data:e,order:e,text:t.innerText};break}case"boolean":{let e=!["false","0","null","undefined"].includes(t.innerText.toLowerCase().trim());s={data:e,text:e?"1":"0",order:+!!e};break}default:s={data:z(t,{valueDiffing:!1}).childNodes||[],text:t.innerText,order:t.innerText}}return s.attributes=r(t.attributes),s},tC=t=>{if(t instanceof Object&&t.constructor===Object&&t.hasOwnProperty("data"))return"string"==typeof t.data&&(t.text||(t.text=t.data),t.type||(t.type="string")),t;let e={data:t};if("string"==typeof t){if(t.length){let s=Z(`<th>${t}</th>`);s.childNodes&&(1!==s.childNodes.length||"#text"!==s.childNodes[0].nodeName)&&(e.data=s.childNodes,e.type="html",e.text=i(s))}}else e.text=null==t?"":JSON.stringify(t);return e},t$=(t,e,s,a,n)=>{let o={data:[],headings:[]};if(t.headings){let e=[];
1t.headings.forEach(t=>{let s=tC(t),a=parseInt(s.attributes?.colspan||"1",10);e.push(s);for(let t=1;t<a;t++)e.push({data:"",text:"",attributes:{"data-colspan-placeholder":"true"}})}),o.headings=e}else if(e?.tHead){let t=[];Array.from(e.tHead.querySelectorAll("th")).forEach(e=>{let s,a,n=parseInt(e.getAttribute("colspan")||"1",10),o=((s=(a=z(e,{valueDiffing:!1})).childNodes&&(1!==a.childNodes.length||"#text"!==a.childNodes[0].nodeName)?{data:a.childNodes,type:"html",text:i(a)}:{data:e.innerText,type:"string"}).attributes=a.attributes,s);t.push(o);for(let e=1;e<n;e++)t.push({data:"",text:"",attributes:{"data-colspan-placeholder":"true"}})}),o.headings=t;let r=0;Array.from(e.tHead.querySelectorAll("th")).forEach(t=>{let e=parseInt(t.getAttribute("colspan")||"1",10);for(let i=0;i<e;i++){s[r]||(s[r]={type:a,format:n,searchable:!0,sortable:!0});let e=s[r];0===i&&("false"!==t.dataset.sortable?.trim().toLowerCase()&&"false"!==t.dataset.sort?.trim().toLowerCase()||(e.sortable=!1),"false"===t.dataset.searchable?.trim().toLowerCase()&&(e.searchable=!1),"true"!==t.dataset.hidden?.trim().toLowerCase()&&"true"!==t.getAttribute("hidden")?.trim().toLowerCase()||(e.hidden=!0),t.dataset.type&&["number","string","html","date","boolean","other"].includes(t.dataset.type)&&(e.type=t.dataset.type,"date"===e.type&&t.dataset.format&&(e.format=t.dataset.format))),r++}})}else if(t.data?.length){let e=t.data[0];o.headings=(Array.isArray(e)?e:e.cells).map(t=>tC(""))}else e?.tBodies.length&&(o.headings=Array.from(e.tBodies[0].rows[0].cells).map(t=>tC("")));for(let t=0;t<o.headings.length;t++)s[t]||(s[t]={type:a,format:n,sortable:!0,searchable:!0});if(t.data){let e=o.headings.map(t=>t.data?String(t.data):t.text),a=new Map;o.data=t.data.map((t,i)=>{let n,r;Array.isArray(t)?(n={},r=t):t.hasOwnProperty("cells")&&Object.keys(t).every(t=>["cells","attributes"].includes(t))?(n=t.attributes??{},r=t.cells):(n={},r=[],Object.entries(t).forEach(([t,s])=>{let a=e.indexOf(t);a>-1&&(r[a]=s)}));let l=[],d=0,c=0;for(;d<o.headings.length;)if(a.has(d)){let t=a.get(d);l.push({data:"",text:"",order:"",attributes:{"data-rowspan-placeholder":"true"}}
1),t&&(t.remainingRows--,t.remainingRows<=0&&a.delete(d)),d++}else{if(!(c<r.length))break;{let t=tk(r[c],s[d]),e=parseInt(t.attributes?.colspan||"1",10),i=parseInt(t.attributes?.rowspan||"1",10);l.push(t),i>1&&a.set(d,{remainingRows:i-1,cellData:t}),d++,c++;for(let t=1;t<e;t++)l.push({data:"",text:"",order:"",attributes:{"data-colspan-placeholder":"true"}}),d++}}return{attributes:n,cells:l}})}else if(e?.tBodies?.length){let t=new Map;o.data=Array.from(e.tBodies[0].rows).map(e=>{let a=[],i=0,n=0,l=Array.from(e.cells);for(;i<o.headings.length;)if(t.has(i)){let e=t.get(i);a.push({data:"",text:"",order:"",attributes:{"data-rowspan-placeholder":"true"}}),e&&(e.remainingRows--,e.remainingRows<=0&&t.delete(i)),i++}else{if(!(n<l.length))break;{let e=l[n],o=parseInt(e.getAttribute("colspan")||"1",10),r=parseInt(e.getAttribute("rowspan")||"1",10),d=e.dataset.content?tk(e.dataset.content,s[i]):tS(e,s[i]);e.dataset.order&&(d.order=isNaN(parseFloat(e.dataset.order))?e.dataset.order:parseFloat(e.dataset.order)),a.push(d),r>1&&t.set(i,{remainingRows:r-1,cellData:d}),i++,n++;for(let t=1;t<o;t++)a.push({data:"",text:"",order:"",attributes:{"data-colspan-placeholder":"true"}}),i++}}return{attributes:r(e.attributes),cells:a}})}if(o.data.length&&o.data[0].cells.length!==o.headings.length)throw Error("Data heading length mismatch.");return o};class tP{cursor;dt;constructor(t){this.dt=t,this.cursor=!1}setCursor(t=!1){if(t===this.cursor)return;let e=this.cursor;if(this.cursor=t,this.dt._renderTable(),!1!==t&&this.dt.options.scrollY){let t=l(this.dt.options.classes.cursor),e=this.dt.dom.querySelector(`tr${t}`);e&&e.scrollIntoView({block:"nearest"})}this.dt.emit("datatable.cursormove",this.cursor,e)}add(t){if(!Array.isArray(t)||t.length<1)return;let e={cells:t.map((t,e)=>tk(t,this.dt.columns.settings[e]))};this.dt.data.data.push(e),this.dt.hasRows=!0,this.dt.update(!0)}remove(t){if(!Array.isArray(t))return this.remove([t]);this.dt.data.data=this.dt.data.data.filter((e,s)=>!t.includes(s)),this.dt.data.data.length||(this.dt.hasRows=!1),this.dt.update(!0)}findRowIndex(t,e){return this.dt.data.data.findIndex(s=>
1n(s.cells[t]).toLowerCase().includes(String(e).toLowerCase()))}findRow(t,e){let s=this.findRowIndex(t,e);if(s<0)return{index:-1,row:null,cols:[]};let a=this.dt.data.data[s],i=a.cells.map(t=>t.data);return{index:s,row:a,cols:i}}updateRow(t,e){let s={cells:e.map((t,e)=>tk(t,this.dt.columns.settings[e]))};this.dt.data.data.splice(t,1,s),this.dt.update(!0)}}class tH{dt;settings;_state;constructor(t){this.dt=t,this.init()}init(){[this.settings,this._state]=((t=[],e,s)=>{let a=[],i=!1,n=[];return t.forEach(t=>{(Array.isArray(t.select)?t.select:[t.select]).forEach(o=>{a[o]?t.type&&(a[o].type=t.type):a[o]={type:t.type||e,sortable:!0,searchable:!0};let r=a[o];t.render&&(r.render=t.render),t.format?r.format=t.format:"date"===t.type&&(r.format=s),t.cellClass&&(r.cellClass=t.cellClass),t.headerClass&&(r.headerClass=t.headerClass),t.locale&&(r.locale=t.locale),!1===t.sortable?r.sortable=!1:(t.numeric&&(r.numeric=t.numeric),t.caseFirst&&(r.caseFirst=t.caseFirst)),!1===t.searchable?r.searchable=!1:t.sensitivity&&(r.sensitivity=t.sensitivity),(r.searchable||r.sortable)&&void 0!==t.ignorePunctuation&&(r.ignorePunctuation=t.ignorePunctuation),t.searchMethod&&(r.searchMethod=t.searchMethod),t.hidden&&(r.hidden=!0),t.filter&&(r.filter=t.filter),t.sortSequence&&(r.sortSequence=t.sortSequence),t.sort&&(t.filter?n[o]=t.sort:i={column:o,dir:t.sort}),void 0!==t.searchItemSeparator&&(r.searchItemSeparator=t.searchItemSeparator)})}),[a=a.map(t=>t||{type:e,format:"date"===e?s:void 0,sortable:!0,searchable:!0}),{filters:n,sort:i,widths:[]}]})(this.dt.options.columns,this.dt.options.type,this.dt.options.format)}get(t){return t<0||t>=this.size()?null:{...this.settings[t]}}size(){return this.settings.length}swap(t){if(2===t.length){let e=this.dt.data.headings.map((t,e)=>e),s=t[0],a=t[1],i=e[a];return e[a]=e[s],e[s]=i,this.order(e)}}order(t){this.dt.data.headings=t.map(t=>this.dt.data.headings[t]),this.dt.data.data.forEach(e=>e.cells=t.map(t=>e.cells[t])),this.settings=t.map(t=>this.settings[t]),this.dt.update()}hide(t){Array.isArray(t)||(t=[t]),t.length&&(t.forEach(t=>{this.settings[t]||(this.settings[t]={type:"string"}),this.settings[t].hidden=!0}),this.dt.update())}show(t){Array.isArray(t)||(t=[t]),t.length&&(t.forEach(t=>{this.settings[t]||(this.settings[t]={type:"string",sortable:!0}),delete this.settings[t].hidden}),this.dt.update())}visible(t){return void 0===t&&(t=[...Array(this.dt.data.headings.length).keys()]),Array.isArray(t)?t.map(t=>!this.settings[t]?.hidden):!this.settings[t]?.hidden}add(t){let e=this.dt.data.headings.length;if(this.dt.data.headings=this.dt.data.headings.concat([tC(t.heading)]),this.dt.data.data.forEach((e,s)=>{e.cells=e.cells.concat([tk(t.data[s],t)])}),this.settings[e]={type:t.type||"string",sortable:!0,searchable:!0},t.type||t.format||t.sortable||t.render||t.filter){let s=this.settings[e];t.render&&(s.render=t.render),t.format&&(s.format=t.format),t.cellClass&&(s.cellClass=t.cellClass),t.headerClass&&(s.headerClass=t.headerClass),t.locale&&(s.locale=t.locale),!1===t.sortable?s.sortable=!1:(t.numeric&&(s.numeric=t.numeric),t.caseFirst&&(s.caseFirst=t.caseFirst)),!1===t.searchable?s.searchable=!1:t.sensitivity&&(s.sensitivity=t.sensitivity),(s.searchable||s.sortable)&&t.ignorePunctuation&&(s.ignorePunctuation=t.ignorePunctuation),t.hidden&&(s.hidden=!0),t.filter&&(s.filter=t.filter),t.sortSequence&&(s.sortSequence=t.sortSequence)}this.dt.update(!0)}remove(t){Array.isArray(t)||(t=[t]),this.dt.data.headings=this.dt.data.headings.filter((e,s)=>!t.includes(s)),this.dt.data.data.forEach(e=>e.cells=e.cells.filter((e,s)=>!t.includes(s))),this.dt.update(!0)}filter(t,e=!1){let s;if(!this.settings[t]?.filter?.length)return;let a=this._state.filters[t];if(a){let e=!1;s=this.settings[t].filter.find(t=>!!e||(t===a&&(e=!0),!1))}else{let e=this.settings[t].filter;s=e?e[0]:void 0}s?this._state.filters[t]=s:a&&(this._state.filters[t]=void 0),this.dt._currentPage=1,this.dt.update(),e||this.dt.emit("datatable.filter",t,s)}sort(t,e,s=!1){let a=this.settings[t];if(s||this.dt.emit("datatable.sorting",t,e),!e){let s=!(!this._state.sort||this._state.sort.column!==t)&&this._state.sort?.dir,i=a?.sortSequence||["asc","desc"];if(s){let t=i.indexOf(s);e=-1===t?i[0]||"asc":t===i.length-1?i[0]:i[t+1]}else e=i.length?i[0]:"asc"}let i=!(!a||!["string","html"].includes(a.type))&&new Intl.Collator(a.locale||this.dt.options.locale,{usage:"sort",numeric:a.numeric||this.dt.options.numeric,caseFirst:a.caseFirst||this.dt.options.caseFirst,ignorePunctuation:a.ignorePunctuation||this.dt.options.ignorePunctuation}),o=[],r=new Map;this.dt.data.data.forEach((t,e)=>{if(t.cells.some(t=>"true"===t.attributes?.["data-rowspan-placeholder"])){for(let t=e-1;t>=0;t--)if(r.has(t)){let s=r.get(t);return o[s].push(e),void r.set(e,s)}let t=o.length;o.push([e]),r.set(e,t)}else if(t.cells.some(t=>
1t.attributes?.rowspan&&parseInt(t.attributes.rowspan,10)>1)){let t=o.length;o.push([e]),r.set(e,t)}else{let t=o.length;o.push([e]),r.set(e,t)}}),o.sort((s,a)=>{let o=(t,e)=>{let s=this.dt.data.data[t].cells[e];if("true"===s.attributes?.["data-rowspan-placeholder"]){for(let s=t-1;s>=0;s--){let t=this.dt.data.data[s].cells[e];if("true"!==t.attributes?.["data-rowspan-placeholder"])return t.order??n(t)}return""}return s.order??n(s)},r=o(s[0],t),l=o(a[0],t);if("desc"===e){let t=r;r=l,l=t}return i&&"number"!=typeof r&&"number"!=typeof l?i.compare(String(r),String(l)):r<l?-1:+(r>l)});let l=[];o.forEach(t=>{t.forEach(t=>{l.push(this.dt.data.data[t])})}),this.dt.data.data=l,this._state.sort={column:t,dir:e},this.dt._searchQueries.length?(this.dt.multiSearch(this.dt._searchQueries),this.dt.emit("datatable.sort",t,e)):s||(this.dt._currentPage=1,this.dt.update(),this.dt.emit("datatable.sort",t,e))}_measureWidths(){let t=this.dt.data.headings.filter((t,e)=>!this.settings[e]?.hidden);if((this.dt.options.scrollY.length||this.dt.options.fixedColumns)&&t?.length){this._state.widths=[];let t={noPaging:!0};if(this.dt.options.header||this.dt.options.footer){this.dt.options.scrollY.length&&(t.unhideHeader=!0),this.dt.headerDOM&&this.dt.headerDOM.parentElement.removeChild(this.dt.headerDOM),t.noColumnWidths=!0,this.dt._renderTable(t);let e=Array.from(this.dt.dom.querySelector("thead, tfoot")?.firstElementChild?.querySelectorAll("th")||[]),s=0,a=this.dt.data.headings.map((t,a)=>{if(this.settings[a]?.hidden)return 0;let i=e[s].offsetWidth;return s+=1,i}),i=a.reduce((t,e)=>t+e,0);this._state.widths=a.map(t=>t/i*100)}else{t.renderHeader=!0,this.dt._renderTable(t);let e=Array.from(this.dt.dom.querySelector("thead, tfoot")?.firstElementChild?.querySelectorAll("th")||[]),s=0,a=this.dt.data.headings.map((t,a)=>{if(this.settings[a]?.hidden)return 0;let i=e[s].offsetWidth;return s+=1,i}),i=a.reduce((t,e)=>t+e,0);this._state.widths=a.map(t=>t/i*100)}this.dt._renderTable()}}}let tY={sortable:!0,locale:"en",numeric:!0,caseFirst:"false",searchable:!0,sensitivity:"base",ignorePunctuation:!0,destroyable:!0,searchItemSeparator:"",searchQuerySeparator:" ",searchAnd:!1,searchMethod:!1,data:{},type:"html",format:"YYYY-MM-DD",columns:[],paging:!0,perPage:10,perPageSelect:[5,10,15,20,25],nextPrev:!0,firstLast:!1,prevText:"‹",nextText:"›",firstText:"«",lastText:"»",ellipsisText:"…",truncatePager:!0,pagerDelta:2,scrollY:"",fixedColumns:!0,fixedHeight:!1,footer:!1,header:!0,hiddenHeader:!1,caption:void 0,rowNavigation:!1,rowSelectionKeys:["Enter"," "],tabIndex:!1,pagerRender:!1,rowRender:!1,tableRender:!1,diffDomOptions:{valueDiffing:!1,simplifiedElementCheck:!1},labels:{placeholder:"Search...",searchTitle:"Search within table",searchLabel:"Search",perPage:"entries per page",pageTitle:"Page {page}",noRows:"No entries found",noResults:"No results match your search query",info:"Showing {start} to {end} of {rows} entries",sortHint:"Activate to sort"},template:(t,e)=>`<div class='${t.classes.top}'>
2    ${t.paging&&t.perPageSelect?`<div class='${t.classes.dropdown}'>
3            <label>
4                <select class='${t.classes.selector}' name="per-page"></select> ${t.labels.perPage}
5            </label>
6        </div>`:""}
7    ${t.searchable?`<div class='${t.classes.search}'>
8            <label class='${t.classes.searchLabel}'>
9                ${t.labels.searchLabel}
10                <input class='${t.classes.input}' placeholder='${t.labels.placeholder}' type='search' name="search" title='${t.labels.searchTitle}'${e.id?` aria-controls="${e.id}"`:""}>
11            </label>
12        </div>`:""}
13</div>
14<div class='${t.classes.container}'${t.scrollY.length?` style='height: ${t.scrollY}; overflow-Y: auto;'`:""}>
15    ${t.sortable?`<p hidden id="sort-hint">${t.labels.sortHint}</p>`:""}
16</div>
17<div class='${t.classes.bottom}'>
18    ${t.paging?`<div class='${t.classes.info}'></div>`:""}
19    <nav class='${t.classes.pagination}'></nav>
20</div>`,classes:{active:"datatable-active",ascending:"datatable-ascending",bottom:"datatable-bottom",container:"datatable-container",cursor:"datatable-cursor",desce
vendor: 7,082 bytes, line 20
20nding:"datatable-descending",disabled:"datatable-disabled",dropdown:"datatable-dropdown",ellipsis:"datatable-ellipsis",filter:"datatable-filter",filterActive:"datatable-filter-active",empty:"datatable-empty",headercontainer:"datatable-headercontainer",hidden:"datatable-hidden",info:"datatable-info",input:"datatable-input",loading:"datatable-loading",pagination:"datatable-pagination",paginationList:"datatable-pagination-list",paginationListItem:"datatable-pagination-list-item",paginationListItemLink:"datatable-pagination-list-item-link",search:"datatable-search",searchLabel:"datatable-search-label",selector:"datatable-selector",sorter:"datatable-sorter",table:"datatable-table",top:"datatable-top",wrapper:"datatable-wrapper"}},tI=(t,e,s,a={},i=!1)=>({nodeName:"LI",attributes:{class:a.active&&!a.hidden?`${s.classes.paginationListItem} ${s.classes.active}`:a.hidden?`${s.classes.paginationListItem} ${s.classes.hidden} ${s.classes.disabled}`:s.classes.paginationListItem},childNodes:[{nodeName:"BUTTON",attributes:{"data-page":String(t),class:s.classes.paginationListItemLink,"aria-label":s.labels.pageTitle.replace("{page}",String(t))},childNodes:[i?{nodeName:"SPAN",attributes:{"aria-hidden":"true"},childNodes:[{nodeName:"#text",data:e}]}:{nodeName:"#text",data:e}]}]});class tR{columns;containerDOM;_currentPage;data;_dd;dom;_events;hasHeadings;hasRows;headerDOM;_initialHTML;initialized;_label;lastPage;_listeners;onFirstPage;onLastPage;options;_pagerDOMs;_pagerContainers;_virtualPagerDOM;pages;_rect;rows;_searchData;_searchQueries;_tableAttributes;_tableFooters;_tableCaptions;totalPages;_virtualDOM;_virtualHeaderDOM;wrapperDOM;constructor(t,e={}){let s="string"==typeof t?document.querySelector(t):t;s instanceof HTMLTableElement?this.dom=s:(this.dom=document.createElement("table"),s.appendChild(this.dom));let a={...tY.diffDomOptions,...e.diffDomOptions},i={...tY.labels,...e.labels},n={...tY.classes,...e.classes};this.options={...tY,...e,diffDomOptions:a,labels:i,classes:n},this._initialHTML=this.options.destroyable?s.outerHTML:"",this.options.tabIndex?this.dom.tabIndex=this.options.tabIndex:this.options.rowNavigation&&-1===this.dom.tabIndex&&(this.dom.tabIndex=0),this._listeners={onResize:()=>this._onResize()},this._dd=new K(this.options.diffDomOptions||{}),this.initialized=!1,this._events={},this._currentPage=0,this.onFirstPage=!0,this.hasHeadings=!1,this.hasRows=!1,this._searchQueries=[],this.init()}init(){if(this.initialized||d(this.dom,this.options.classes.table))return!1;this._virtualDOM=z(this.dom,this.options.diffDomOptions||{}),this._tableAttributes={...this._virtualDOM.attributes},this._tableFooters=this._virtualDOM.childNodes?.filter(t=>"TFOOT"===t.nodeName)??[],this._tableCaptions=this._virtualDOM.childNodes?.filter(t=>"CAPTION"===t.nodeName)??[],void 0!==this.options.caption&&this._tableCaptions.push({nodeName:"CAPTION",childNodes:[{nodeName:"#text",data:this.options.caption}]}),this.rows=new tP(this),this.columns=new tH(this),this.data=t$(this.options.data,this.dom,this.columns.settings,this.options.type,this.options.format),this._render(),setTimeout(()=>{this.emit("datatable.init"),this.initialized=!0},10)}_render(){this.wrapperDOM=a("div",{class:`${this.options.classes.wrapper} ${this.options.classes.loading}`}),this.wrapperDOM.innerHTML=this.options.template(this.options,this.dom);let t=l(this.options.classes.selector),e=this.wrapperDOM.querySelector(`select${t}`);e&&this.options.paging&&this.options.perPageSelect?this.options.perPageSelect.forEach(t=>{let[s,a]=Array.isArray(t)?[t[0],t[1]]:[String(t),t],i=a===this.options.perPage,n=new Option(s,String(a),i,i);e.appendChild(n)}):e&&e.remove();let s=l(this.options.classes.container);this.containerDOM=this.wrapperDOM.querySelector(s),this._pagerDOMs=[],this._pagerContainers=[];let i=l(this.options.classes.pagination);Array.from(this.wrapperDOM.querySelectorAll(i)).forEach(t=>{t instanceof HTMLElement&&(t.innerHTML=`<ul class="${this.options.classes.paginationList}"></ul>`,this._pagerDOMs.push(t.firstElementChild),this._pagerContainers.push(t))}),this._virtualPagerDOM={nodeName:"UL",attributes:{class:this.options.classes.paginationList}};let n=l(this.options.classes.info);this._label=this.wrapperDOM.querySelector(n),this.dom.parentElement.replaceChild(this.wrapperDOM,this.dom),this.containerDOM.appendChild(this.dom),this._rect=this.dom.getBoundingClientRect(),this._fixHeight(),this.options.header||this.wrapperDOM.classList.add("no-header"),this.options.footer||this.wrapperDOM.classList.add("no-footer"),this.options.sortable&&this.wrapperDOM.classList.add("sortable"),this.options.searchable&&this.wrapperDOM.classList.add("searchable"),this.options.fixedHeight&&this.wrapperDOM.classList.add("fixed-height"),this.options.fixedColumns&&this.wrapperDOM.classList.add("fixed-columns"),this._bindEvents(),this.columns._state.sort&&this.columns.sort(this.columns._state.sort.column,this.columns._state.sort.dir,!0),this.update(!0)}_renderTable(t={}){let e;e=(this.options.paging||this._searchQueries.length||this.columns._state.filters.length)&&this._currentPage&&this.pages.length&&!t.noPaging?this.pages[this._currentPage-1]:this.data.data.map((t,e)=>({row:t,index:e}));let s=te(this._tableAttributes,this.data.headings,e,this.columns.settings,this.columns._state,this.rows.cursor,this.options,t,this._tableFooters,this._tableCaptions);if(this.options.tableRender){let t=this.options.tableRender(this.data,s,"main");t&&(s=t)}let a=this._dd.diff(this._virtualDOM,s);this._dd.apply(this.dom,a),this._virtualDOM=s}_renderPage(t=!1){let e;this.hasRows&&this.totalPages?(this._currentPage>this.totalPages&&(this._currentPage=1),this._renderTable(),this.onFirstPage=1===this._currentPage,this.onLastPage=this._currentPage===this.lastPage):this.setMessage(this.options.labels.noRows);let s,a=0,i=0;if(this.totalPages&&(i=(a=(e=this._currentPage-1)*this.options.perPage)+this.pages[e].length,a+=1,s=this._searchQueries.length?this._searchData.length:this.data.data.length),this._label&&this.options.labels.info.length){let t=this.options.labels.info.replace("{start}",String(a)).replace("{end}",String(i)).replace("{page}",String(this._currentPage)).replace("{pages}",String(this.totalPages)).replace("{rows}",String(s));this._label.innerHTML=s?t:""}if(1==this._currentPage&&this._fixHeight(),this.options.rowNavigation&&this._currentPage&&(!this.rows.cursor||!this.pages[this._currentPage-1].find(t=>t.index===this.rows.cursor))){let e=this.pages[this._currentPage-1];e.length&&(t?this.rows.setCursor(e[e.length-1].index):this.rows.setCursor(e[0].index))}}_renderPagers(){if(!this.options.paging)return;let t=((t,e,s,a,i)=>{let n=[];if(i.firstLast&&n.push(tI(1,i.firstText,i,{},!0)),i.nextPrev){let e=t?1:s-1;n.push(tI(e,i.prevText,i,{hidden:t},!0))}let o=[...Array(a).keys()].map(t=>tI(t+1,String(t+1),i,{active:t===s-1}));if(i.truncatePager&&(o=((t,e,s,a)=>{let i,n=a.pagerDelta,o=a.classes,r=a.ellipsisText,l=2*n,d=e-n,c=e+n;e<4-n+l?c=3+l:e>s-(3-n+l)&&(d=s-(2+l));let h=[];for(let e=1;e<=s;e++)if(1==e||e==s||e>=d&&e<=c){let s=t[e-1];h.push(s)}let u=[];
20return h.forEach(e=>{let s=parseInt(e.childNodes[0].attributes["data-page"],10);if(i){let e=parseInt(i.childNodes[0].attributes["data-page"],10);if(s-e==2)u.push(t[e]);else if(s-e!=1){let t={nodeName:"LI",attributes:{class:`${o.paginationListItem} ${o.ellipsis} ${o.disabled}`},childNodes:[{nodeName:"BUTTON",attributes:{class:o.paginationListItemLink,"aria-hidden":"true"},childNodes:[{nodeName:"#text",data:r}]}]};u.push(t)}}u.push(e),i=e}),u})(o,s,a,i)),n=n.concat(o),i.nextPrev){let t=e?a:s+1;n.push(tI(t,i.nextText,i,{hidden:e},!0))}return i.firstLast&&n.push(tI(a,i.lastText,i,{},!0)),{nodeName:"UL",attributes:{class:i.classes.paginationList},childNodes:o.length>1?n:[]}})(this.onFirstPage,this.onLastPage,this._currentPage,this.totalPages,this.options);if(this.options.pagerRender){let e=this.options.pagerRender([this.onFirstPage,this.onLastPage,this._currentPage,this.totalPages],t);e&&(t=e)}let e=t.childNodes.length>0,s=this._dd.diff(this._virtualPagerDOM,t);this._pagerDOMs.forEach((t,a)=>{this._dd.apply(t,s),e?t.parentNode||this._pagerContainers[a].appendChild(t):t.parentNode&&t.parentNode.removeChild(t)}),this._virtualPagerDOM=t}_focusActivePageButton(){let t=this.wrapperDOM.querySelector(`.${this.options.classes.paginationListItem}.${this.options.classes.active}`);if(!t)return;let e=t.querySelector("button, [data-page]");e instanceof HTMLElement&&e.focus()}_renderSeparateHeader(){let t=this.dom.parentElement;this.headerDOM||(this.headerDOM=document.createElement("div"),this._virtualHeaderDOM={nodeName:"DIV"}),t.parentElement.insertBefore(this.headerDOM,t);let e={nodeName:"TABLE",attributes:this._tableAttributes,childNodes:[{nodeName:"THEAD",childNodes:[tt(this.data.headings,this.columns.settings,this.columns._state,this.options,{unhideHeader:!0})]}]};if(e.attributes.class?.includes(this.options.classes.table)||(e.attributes.class=c(e.attributes.class,this.options.classes.table)),this.options.tableRender){let t=this.options.tableRender(this.data,e,"header");t&&(e=t)}let s={nodeName:"DIV",attributes:{class:this.options.classes.headercontainer},childNodes:[e]},a=this._dd.diff(this._virtualHeaderDOM,s);this._dd.apply(this.headerDOM,a),this._virtualHeaderDOM=s;let i=this.headerDOM.firstElementChild.clientWidth-this.dom.clientWidth;if(i){let t=structuredClone(this._virtualHeaderDOM);t.attributes.style=`padding-right: ${i}px;`;let e=this._dd.diff(this._virtualHeaderDOM,t);this._dd.apply(this.headerDOM,e),this._virtualHeaderDOM=t}t.scrollHeight>t.clientHeight&&(t.style.overflowY="scroll")}_bindEvents(){if(this.options.perPageSelect){let t=l(this.options.classes.selector),e=this.wrapperDOM.querySelector(t);e&&e instanceof HTMLSelectElement&&e.addEventListener("change",()=>{this.emit("datatable.perpage:before",this.options.perPage),this.options.perPage=parseInt(e.value,10),this.update(),this._fixHeight(),this.emit("datatable.perpage",this.options.perPage)},!1)}this.options.searchable&&this.wrapperDOM.addEventListener("input",t=>{let e=l(this.options.classes.input),s=t.target;if(!(s instanceof HTMLInputElement&&s.matches(e)))return;t.preventDefault();let a=[];if(Array.from(this.wrapperDOM.querySelectorAll(e)).filter(t=>t instanceof HTMLInputElement&&t.value.length>0).forEach(t=>{let e=t.dataset.and||this.options.searchAnd,s=t.dataset.querySeparator||this.options.searchQuerySeparator?t.value.split(this.options.searchQuerySeparator):[t.value];e?s.forEach(e=>{t.dataset.columns?a.push({terms:[e],columns:JSON.parse(t.dataset.columns)}):a.push({terms:[e],columns:void 0})}):t.dataset.columns?a.push({terms:s,columns:JSON.parse(t.dataset.columns)}):a.push({terms:s,columns:void 0})}),1===a.length&&1===a[0].terms.length){let t=a[0];this.search(t.terms[0],t.columns)}else this.multiSearch(a)}),this.wrapperDOM.addEventListener("click",t=>{let e=t.target.closest("a, button");if(e){if(e.hasAttribute("data-page"))this.page(parseInt(e.getAttribute("data-page"),10)),t.preventDefault();else if(d(e,this.options.classes.sorter)){let s=o(Array.from(e.parentElement.parentElement.children).indexOf(e.parentElement),this.columns.settings);this.columns.sort(s),t.preventDefault()}else if(d(e,this.options.classes.filter)){let s=o(Array.from(e.parentElement.parentElement.children).indexOf(e.parentElement),this.columns.settings);this.columns.filter(s),t.preventDefault()}}},!1),this.options.rowNavigation&&this.dom.addEventListener("keydown",t=>{if("ArrowUp"===t.key){let e;t.preventDefault(),t.stopPropagation(),this.pages[this._currentPage-1].find(t=>t.index===this.rows.cursor||(e=t,!1)),e?this.rows.setCursor(e.index):this.onFirstPage||this.page(this._currentPage-1,!0)}else if("ArrowDown"===t.key){let e;t.preventDefault(),t.stopPropagation();let s=this.pages[this._currentPage-1].find(t=>!!e||(t.index===this.rows.cursor&&(e=!0),!1));s?this.rows.setCursor(s.index):this.onLastPage||this.page(this._currentPage+1)}
20else this.options.rowSelectionKeys.includes(t.key)&&this.emit("datatable.selectrow",this.rows.cursor,t,!0)}),this.dom.addEventListener("mousedown",t=>{let e=t.target;if(!(e instanceof Element))return;let s=Array.from(this.dom.querySelectorAll("tbody > tr")).find(t=>t.contains(e));s&&s instanceof HTMLElement&&this.emit("datatable.selectrow",parseInt(s.dataset.index,10),t,this.dom.matches(":focus"))}),window.addEventListener("resize",this._listeners.onResize)}_onResize=h(()=>{this._rect=this.containerDOM.getBoundingClientRect(),this._rect.width&&this.update(!0)},250);destroy(){if(this.options.destroyable){if(this.emit("datatable.destroy:before"),this.wrapperDOM){let t=this.wrapperDOM.parentElement;if(t){let e=a("div");e.innerHTML=this._initialHTML;let s=e.firstElementChild;t.replaceChild(s,this.wrapperDOM),this.dom=s}else this.options.classes.table?.split(" ").forEach(t=>this.wrapperDOM.classList.remove(t))}window.removeEventListener("resize",this._listeners.onResize),this.initialized=!1,this.emit("datatable.destroy")}}update(t=!1){this.emit("datatable.update:before"),t&&(this.columns._measureWidths(),this.hasRows=!!this.data.data.length,this.hasHeadings=!!this.data.headings.length),this.options.classes.empty?.split(" ").forEach(t=>this.wrapperDOM.classList.remove(t)),this._paginate(),this._renderPage(),this._renderPagers(),this.options.scrollY.length&&this._renderSeparateHeader(),this.emit("datatable.update")}_paginate(){let t=this.data.data.map((t,e)=>({row:t,index:e}));return this._searchQueries.length&&(t=[],this._searchData.forEach(e=>t.push({index:e,row:this.data.data[e]}))),this.columns._state.filters.length&&this.columns._state.filters.forEach((e,s)=>{e&&(t=t.filter(t=>{let a=t.row.cells[s];return"function"==typeof e?e(a.data):n(a)===e}))}),this.options.paging&&this.options.perPage>0?this.pages=t.map((e,s)=>s%this.options.perPage==0?t.slice(s,s+this.options.perPage):null).filter(t=>null!==t):this.pages=[t],this.totalPages=this.lastPage=this.pages.length,this._currentPage||(this._currentPage=1),this.totalPages}_fixHeight(){this.options.fixedHeight&&(this.containerDOM.style.height="",this._rect=this.containerDOM.getBoundingClientRect(),this.containerDOM.style.height=`${this._rect.height}px`)}search(t,e,s="search"){if(this.emit("datatable.search:before",t,this._searchData),!t.length)return this._currentPage=1,this._searchQueries=[],this._searchData=[],this.update(),this.emit("datatable.search","",[]),this.wrapperDOM.classList.remove("search-results"),!1;this.multiSearch([{terms:[t],columns:e||void 0}],s),this.emit("datatable.search",t,this._searchData)}multiSearch(t,e="search"){if(!this.hasRows)return!1;this._currentPage=1,this._searchData=[];let s=t.map(t=>({columns:t.columns,terms:t.terms.map(t=>t.trim()).filter(t=>t),source:e})).filter(t=>t.terms.length);if(this.emit("datatable.multisearch:before",s,this._searchData),e.length&&(s=s.concat(this._searchQueries.filter(t=>t.source!==e))),this._searchQueries=s,!s.length)return this.update(),this.emit("datatable.multisearch",s,this._searchData),this.wrapperDOM.classList.remove("search-results"),!1;let a=s.map(t=>this.columns.settings.map((e,s)=>{if(!e||e.hidden||!e.searchable||t.columns&&!t.columns.includes(s))return!1;let a=t.terms,i=e.sensitivity||this.options.sensitivity;return["base","accent"].includes(i)&&(a=a.map(t=>t.toLowerCase())),["base","case"].includes(i)&&(a=a.map(t=>t.normalize("NFD").replace(/\p{Diacritic}/gu,""))),(e.ignorePunctuation??this.options.ignorePunctuation)&&(a=a.map(t=>t.replace(/[.,/#!$%^&*;:{}=-_`~()]/g,""))),a}));this.data.data.forEach((t,e)=>{let i=t.cells.map((t,s)=>{let a=this.columns.settings[s],i=a?.searchMethod||this.options.searchMethod,o=t;if("true"===t.attributes?.["data-rowspan-placeholder"])for(let t=e-1;t>=0;t--){let e=this.data.data[t].cells[s];if("true"!==e.attributes?.["data-rowspan-placeholder"]){o=e;break}}if(i)return o;let r=n(o).trim();if(r.length){let t=a?.sensitivity||this.options.sensitivity;["base","accent"].includes(t)&&(r=r.toLowerCase()),["base","case"].includes(t)&&(r=r.normalize("NFD").replace(/\p{Diacritic}/gu,"")),(a?.ignorePunctuation??this.options.ignorePunctuation)&&(r=r.replace(/[.,/#!$%^&*;:{}=-_`~()]/g,""))}let l=a?.searchItemSeparator||this.options.searchItemSeparator;return l?r.split(l):[r]});a.every((e,a)=>e.find((e,n)=>{if(!e)return!1;let o=this.columns.settings[n],r=o?.searchMethod||this.options.searchMethod;return r?r(e,i[n],t,n,s[a].source):e.find(t=>i[n]?.find(e=>e?.includes(t)))}))&&this._searchData.push(e)}),this.wrapperDOM.classList.add("search-results"),this._searchData.length?this.update():(this.wrapperDOM.classList.remove("search-results"),this.setMessage(this.options.labels.noResults)),this.emit
vendor: 3,405 bytes, line 20
20("datatable.multisearch",s,this._searchData)}page(t,e=!1){return this.emit("datatable.page:before",t),t!==this._currentPage&&(isNaN(t)||(this._currentPage=t),!(t>this.pages.length||t<0)&&(this._renderPage(e),this._renderPagers(),(this.onFirstPage||this.onLastPage)&&this._focusActivePageButton(),void this.emit("datatable.page",t)))}insert(t){let e=[];if(Array.isArray(t)){let s=this.data.headings.map(t=>t.data?String(t.data):t.text);t.forEach((t,a)=>{let i=[];Object.entries(t).forEach(([t,e])=>{let n=s.indexOf(t);n>-1?i[n]=tk(e,this.columns.settings[n]):this.hasHeadings||this.hasRows||0!==a||(i[s.length]=tk(e,this.columns.settings[s.length]),s.push(t),this.data.headings.push(tC(t)))}),e.push({cells:i})})}else"[object Object]"===Object.prototype.toString.call(t)&&(!t.headings||this.hasHeadings||this.hasRows?t.data&&Array.isArray(t.data)&&(e=t.data.map(t=>{let e,s;return Array.isArray(t)?(e={},s=t):(e=t.attributes??{},s=t.cells),{attributes:e,cells:s.map((t,e)=>tk(t,this.columns.settings[e]))}})):this.data=t$(t,void 0,this.columns.settings,this.options.type,this.options.format));e.length&&e.forEach(t=>this.data.data.push(t)),this.hasHeadings=!!this.data.headings.length,this.columns._state.sort&&this.columns.sort(this.columns._state.sort.column,this.columns._state.sort.dir,!0),this.update(!0)}refresh(){if(this.emit("datatable.refresh:before"),this.options.searchable){let t=l(this.options.classes.input);Array.from(this.wrapperDOM.querySelectorAll(t)).filter(t=>t instanceof HTMLInputElement).forEach(t=>t.value=""),this._searchQueries=[]}this._currentPage=1,this.onFirstPage=!0,this.update(!0),this.emit("datatable.refresh")}print(){let t=a("table"),e=te(this._tableAttributes,this.data.headings,this.data.data.map((t,e)=>({row:t,index:e})),this.columns.settings,this.columns._state,!1,this.options,{noColumnWidths:!0,unhideHeader:!0},this._tableFooters,this._tableCaptions);if(this.options.tableRender){let t=this.options.tableRender(this.data,e,"print");t&&(e=t)}let s=this._dd.diff({nodeName:"TABLE"},e);this._dd.apply(t,s);let i=window.open();i.document.body.appendChild(t),i.print()}setMessage(t){let e=this.data.headings.filter((t,e)=>!this.columns.settings[e]?.hidden).length||1;this.options.classes.empty?.split(" ").forEach(t=>this.wrapperDOM.classList.add(t)),this._label&&(this._label.innerHTML=""),this.totalPages=0,this._renderPagers();let s={nodeName:"TABLE",attributes:this._tableAttributes,childNodes:[{nodeName:"THEAD",childNodes:[tt(this.data.headings,this.columns.settings,this.columns._state,this.options,{})]},{nodeName:"TBODY",childNodes:[{nodeName:"TR",childNodes:[{nodeName:"TD",attributes:{class:this.options.classes.empty,colspan:String(e)},childNodes:[{nodeName:"#text",data:t}]}]}]}]};if(this._tableFooters.forEach(t=>s.childNodes.push(t)),this._tableCaptions.forEach(t=>s.childNodes.push(t)),s.attributes.class?.includes(this.options.classes.table)||(s.attributes.class=c(s.attributes.class,this.options.classes.table)),this.options.tableRender){let t=this.options.tableRender(this.data,s,"message");t&&(s=t)}let a=this._dd.diff(this._virtualDOM,s);this._dd.apply(this.dom,a),this._virtualDOM=s}on(t,e){this._events[t]=this._events[t]||[],this._events[t].push(e)}off(t,e){t in this._events!=!1&&this._events[t].splice(this._events[t].indexOf(e),1)}emit(t,...e){if(t in this._events!=!1)for(let s=0;s<this._events[t].length;s++)this._events[t][s](...e)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.