PageSourceSearch

https://wechsel-tents.de/theme/de4d0e209c19e0ce61f0636d82a70f53/js/skanfriends/stock-table.plugin.abf896.js

js wechsel-tents.de collected 2026-10-09 01:19:46 UTC 83,874 bytes, 15 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["stock-table.plugin"],{857:t=>{var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?o(Array.isArray(t)?[]:{},t,e):t}function a(t,e,s){return t.concat(e).map(function(t){return i(t,s)})}function n(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function r(t,e){try{return e in t}catch(t){return!1}}function o(t,s,l){(l=l||{}).arrayMerge=l.arrayMerge||a,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=i;var c,d,h=Array.isArray(s);return h!==Array.isArray(t)?i(s,l):h?l.arrayMerge(t,s,l):(d={},(c=l).isMergeableObject(t)&&n(t).forEach(function(e){d[e]=i(t[e],c)}),n(s).forEach(function(e){(!r(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(r(t,e)&&c.isMergeableObject(s[e])?d[e]=(function(t,e){if(!e.customMerge)return o;var s=e.customMerge(t);return"function"==typeof s?s:o})(e,c)(t[e],s[e],c):d[e]=i(s[e],c))}),d)}o.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,s){return o(t,s,e)},{})},t.exports=o},316:(t,e,s)=>{s.r(e),s.d(e,{default:()=>ta});var i=s(293);let a=t=>"[object Object]"===Object.prototype.toString.call(t),n=(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},r=t=>["#text","#comment"].includes(t.nodeName)?t.data:t.childNodes?t.childNodes.map(t=>r(t)).join(""):"",o=t=>null==t?"":t.hasOwnProperty("text")||t.hasOwnProperty("data")?t.text??o(t.data):t.hasOwnProperty("nodeName")?r(t):String(t),l=function(t,e){let s=0,i=0;for(;s<t+1;)e[i].hidden||(s+=1),i+=1;return i-1},c=function(t){let e={};if(t)for(let s of t)e[s.name]=s.value;return e},d=t=>t?t.trim().split(" ").map(t=>`.${t}`).join(""):null,h=(t,e)=>!e?.split(" ").some(e=>!t.classList.contains(e)),u=(t,e)=>t?e?`${t} ${e}`:t:e||"",p=function(t,e=300){let s;return(...i)=>{clearTimeout(s),s=window.setTimeout(()=>t(),e)}};var f=function(){return(f=Object.assign||function(t){for(var e,s=arguments,i=1,a=arguments.length;i<a;i++)for(var n in e=s[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function m(t,e,s){if(s||2==arguments.length)for(var i,a=0,n=e.length;a<n;a++)!i&&a in e||(i||(i=Array.prototype.slice.call(e,0,a)),i[a]=e[a]);return t.concat(i||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var g=function(){function t(t){void 0===t&&(t={});var e=this;Object.entries(t).forEach(function(t){var s=t[0],i=t[1];return e[s]=i})}return t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.setValue=function(t,e){return this[t]=e,this},t}();function b(t){for(var e=arguments,s=[],i=1;i<arguments.length;i++)s[i-1]=e[i];return null!=t&&s.some(function(e){var s,i;return"function"==typeof(null===(i=null===(s=null==t?void 0:t.ownerDocument)||void 0===s?void 0:s.defaultView)||void 0===i?void 0:i[e])&&t instanceof t.ownerDocument.defaultView[e]})}function _(t,e,s){var i;return"#text"===t.nodeName?i=s.document.createTextNode(t.data):"#comment"===t.nodeName?i=s.document.createComment(t.data):(e?(i=s.document.createElementNS("http://www.w3.org/2000/svg",t.nodeName),"foreignObject"===t.nodeName&&(e=!1)):"svg"===t.nodeName.toLowerCase()?(i=s.document.createElementNS("http://www.w3.org/2000/svg","svg"),e=!0):i=s.document.createElement(t.nodeName),t.attributes&&Object.entries(t.attributes).forEach(function(t){var e=t[0],s=t[1];return i.setAttribute(e,s)}),t.childNodes&&t.childNodes.forEach(function(t){return i.appendChild(_(t,e,s))}),s.valueDiffing&&(t.value&&b(i,"HTMLButtonElement","HTMLDataElement","HTMLInputElement","HTMLLIElement","HTMLMeterElement","HTMLOptionElement","HTMLProgressElement","HTMLParamElement")&&(i.value=t.value),t.checked&&b(i,"HTMLInputElement")&&(i.checked=t.checked),t.selected&&b(i,"HTMLOptionElement")&&(i.selected=t.selected))),i}var v=function(t,e){for(e=e.slice();e.length>0;){var s=e.splice(0,1)[0];t=t.childNodes[s]}return t};function y(t,e,s){var i,a,n,r,o=e[s._const.action],l=e[s._const.route];[s._const.addElement,s._const.addTextElement].includes(o)||(a=v(t,l));var c={diff:e,node:a};if(s.preDiffApply(c))return!0;switch(o){case s._const.addAttribute:if(!a||!b(a,"Element"))return!1;
1a.setAttribute(e[s._const.name],e[s._const.value]);break;case s._const.modifyAttribute:if(!a||!b(a,"Element"))return!1;a.setAttribute(e[s._const.name],e[s._const.newValue]),b(a,"HTMLInputElement")&&"value"===e[s._const.name]&&(a.value=e[s._const.newValue]);break;case s._const.removeAttribute:if(!a||!b(a,"Element"))return!1;a.removeAttribute(e[s._const.name]);break;case s._const.modifyTextElement:if(!a||!b(a,"Text"))return!1;s.textDiff(a,a.data,e[s._const.oldValue],e[s._const.newValue]),b(a.parentNode,"HTMLTextAreaElement")&&(a.parentNode.value=e[s._const.newValue]);break;case s._const.modifyValue:if(!a||void 0===a.value)return!1;a.value=e[s._const.newValue];break;case s._const.modifyComment:if(!a||!b(a,"Comment"))return!1;s.textDiff(a,a.data,e[s._const.oldValue],e[s._const.newValue]);break;case s._const.modifyChecked:if(!a||void 0===a.checked)return!1;a.checked=e[s._const.newValue];break;case s._const.modifySelected:if(!a||void 0===a.selected)return!1;a.selected=e[s._const.newValue];break;case s._const.replaceElement:var d="svg"===e[s._const.newValue].nodeName.toLowerCase()||"http://www.w3.org/2000/svg"===a.parentNode.namespaceURI;a.parentNode.replaceChild(_(e[s._const.newValue],d,s),a);break;case s._const.relocateGroup:m([],Array(e[s._const.groupLength]),!0).map(function(){return a.removeChild(a.childNodes[e[s._const.from]])}).forEach(function(t,i){0===i&&(r=a.childNodes[e[s._const.to]]),a.insertBefore(t,r||null)});break;case s._const.removeElement:a.parentNode.removeChild(a);break;case s._const.addElement:var h=(i=l.slice()).splice(i.length-1,1)[0];if(!b(a=v(t,i),"Element"))return!1;a.insertBefore(_(e[s._const.element],"http://www.w3.org/2000/svg"===a.namespaceURI,s),a.childNodes[h]||null);break;case s._const.removeTextElement:if(!a||3!==a.nodeType)return!1;var u=a.parentNode;u.removeChild(a),b(u,"HTMLTextAreaElement")&&(u.value="");break;case s._const.addTextElement:if(h=(i=l.slice()).splice(i.length-1,1)[0],n=s.document.createTextNode(e[s._const.value]),!(a=v(t,i)).childNodes)return!1;a.insertBefore(n,a.childNodes[h]||null),b(a.parentNode,"HTMLTextAreaElement")&&(a.parentNode.value=e[s._const.value]);break;default:console.log("unknown action")}return s.postDiffApply({diff:c.diff,node:c.node,newNode:n}),!0}function w(t,e,s){var i=t[e];t[e]=t[s],t[s]=i}var N=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},D=function(t){var e={},s={};return t.forEach(function(t){N(t).forEach(function(t){var i=t in e;i||t in s?i&&(delete e[t],s[t]=!0):e[t]=!0})}),e},E=function(t,e){var s=D(t),i=D(e),a={};return Object.keys(s).forEach(function(t){i[t]&&(a[t]=!0)}),a},M=function(t){return delete t.outerDone,delete t.innerDone,delete t.valueDone,!t.childNodes||t.childNodes.every(M)},O=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=f({},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 O(t)})),e},V=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),i=Object.keys(e.attributes);if(s.length!==i.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 V(t,e.childNodes[s])})},x=function(t,e,s,i,a){if(void 0===a&&(a=!1),!t||!e||t.nodeName!==e.nodeName)return!1;if(["#text","#comment"].includes(t.nodeName))return!!a||t.data===e.data;
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(i)return!0;var n=t.childNodes?t.childNodes.slice().reverse():[],r=e.childNodes?e.childNodes.slice().reverse():[];if(n.length!==r.length)return!1;if(a)return n.every(function(t,e){return t.nodeName===r[e].nodeName});var o=E(n,r);return n.every(function(t,e){return x(t,r[e],o,!0,!0)})},T=function(t,e){return m([],Array(t),!0).map(function(){return e})},A=function(t,e){for(var s=t.childNodes?t.childNodes:[],i=e.childNodes?e.childNodes:[],a=T(s.length,!1),n=T(i.length,!1),r=[],o=function(){return arguments[1]},l=!1;!l;)!function(){var t=function(t,e,s,i){var a=0,n=[],r=t.length,o=e.length,l=m([],Array(r+1),!0).map(function(){return[]}),c=E(t,e),d=r===o;d&&t.some(function(t,s){var i=N(t),a=N(e[s]);return i.length!==a.length?(d=!1,!0):(i.some(function(t,e){if(t!==a[e])return d=!1,!0}),!d||void 0)});for(var h=0;h<r;h++)for(var u=t[h],p=0;p<o;p++){var f=e[p];s[h]||i[p]||!x(u,f,c,d)?l[h+1][p+1]=0:(l[h+1][p+1]=l[h][p]?l[h][p]+1:1,l[h+1][p+1]>=a&&(a=l[h+1][p+1],n=[h+1,p+1]))}return 0!==a&&{oldValue:n[0]-a,newValue:n[1]-a,length:a}}(s,i,a,n);t?(r.push(t),m([],Array(t.length),!0).map(o).forEach(function(e){a[t.oldValue+e]=!0,n[t.newValue+e]=!0})):l=!0}();return t.subsets=r,t.subsetsAge=100,r},S=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 L(t,e){var s,i,a=t;for(e=e.slice();e.length>0;)i=e.splice(0,1)[0],s=a,a=a.childNodes?a.childNodes[i]:void 0;return{node:a,parentNode:s,nodeIndex:i}}function P(t,e){void 0===e&&(e={valueDiffing:!0});var s={nodeName:t.nodeName};return b(t,"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(P(t,e))})),e.valueDiffing&&(b(t,"HTMLTextAreaElement")&&(s.value=t.value),b(t,"HTMLInputElement")&&["radio","checkbox"].includes(t.type.toLowerCase())&&void 0!==t.checked?s.checked=t.checked:b(t,"HTMLButtonElement","HTMLDataElement","HTMLInputElement","HTMLLIElement","HTMLMeterElement","HTMLOptionElement","HTMLProgressElement","HTMLParamElement")&&(s.value=t.value),b(t,"HTMLOptionElement")&&(s.selected=t.selected))),s}var $=/<\s*\/*[a-zA-Z:_][a-zA-Z0-9:_\-.]*\s*(?:"[^"]*"['"]*|'[^']*'['"]*|[^'"/>])*\/*\s*>|<!--(?:.|\n|\r)*?-->/g,k=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function C(t){return t.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}var H={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},Y=function(t,e){var s={nodeName:"",attributes:{}},i=!1,a=t.match(/<\/?([^\s]+?)[/\s>]/);if(a&&(s.nodeName=e||"svg"===a[1]?a[1]:a[1].toUpperCase(),(H[a[1]]||"/"===t.charAt(t.length-2))&&(i=!0),s.nodeName.startsWith("!--"))){var n=t.indexOf("-->");return{type:"comment",node:{nodeName:"#comment",data:-1!==n?t.slice(4,n):""},voidElement:i}}for(var r=new RegExp(k),o=null,l=!1;!l;)if(null===(o=r.exec(t)))l=!0;else if(o[0].trim()){if(o[1]){var c=o[1].trim(),d=[c,""];c.indexOf("=")>-1&&(d=c.split("=")),s.attributes[d[0]]=d[1],r.lastIndex--}else o[2]&&(s.attributes[o[2]]=o[3].trim().substring(1,o[3].length-1))}return{type:"tag",node:s,voidElement:i}},I=function(t,e){void 0===e&&(e={valueDiffing:!0,caseSensitive:!1});var s,i=[],a=-1,n=[],r=!1;if(0!==t.indexOf("<")){var o=t.indexOf("<");i.push({nodeName:"#text",data:-1===o?t:t.substring(0,o)})}return t.replace($,function(o,l){var c="/"!==o.charAt(1),d=o.startsWith("<!--"),h=l+o.length,u=t.charAt(h);if(d){var p=Y(o,e.caseSensitive).node;if(a<0)return i.push(p),"";var f=n[a];return f&&p.nodeName&&(f.node.childNodes||(f.node.childNodes=[]),f.node.childNodes.push(p)),""}if(c){if("svg"===(s=Y(o,e.caseSensitive||r)).node.nodeName&&(r=!0),a++,!s.voidElement&&u&&"<"!==u){s.node.childNodes||(s.node.childNodes=[]);var m=C(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===a&&s.node.nodeName&&i.push(s.node);var g=n[a-1];g&&s.node.nodeName&&(g.node.childNodes||(g.node.childNodes=[]),g.node.childNodes.push(s.node)),n[a]=s}if((!c||s.voidElement)&&(a>-1&&(s.voidElement||e.caseSensitive&&s.node.nodeName===o.slice(2,-1)||!e.caseSensitive&&s.node.nodeName.toUpperCase()===o.slice(2,-1).toUpperCase())&&--a>-1&&("svg"===s.node.nodeName&&(r=!1),s=n[a]),"<"!==u&&u)){var b=-1===a?i:n[a].node.childNodes||[],_=t.indexOf("<",h);m=C(t.slice(h,-1===_?void 0:_)),b.push({nodeName:"#text",data:m})}return""}),i[0]},j=function(){function t(t,e,s){this.options=s,this.t1="undefined"!=typeof Element&&b(t,"Element")?P(t,this.options):"string"==typeof t?I(t,this.options):JSON.parse(JSON.stringify(t)),this.t2="undefined"!=typeof Element&&b(e,"Element")?P(e,this.options):"string"==typeof e?I(e,this.options):JSON.parse(JSON.stringify(e)),this.diffcount=0,this.foundAll=!1,this.debug&&(this.t1Orig="undefined"!=typeof Element&&b(t,"Element")?P(t,this.options):"string"==typeof t?I(t,this.options):JSON.parse(JSON.stringify(t)),this.t2Orig="undefined"!=typeof Element&&b(e,"Element")?P(e,this.options):"string"==typeof e?I(e,this.options):JSON.parse(JSON.stringify(e))),this.tracker=new S}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&&(V(t,e)||(this.foundAll?console.error("Could not find remaining diffs!"):(this.foundAll=!0,M(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 i=L(t,e[s._const.route]);n=i.node,r=i.parentNode,o=i.nodeIndex}var a,n,r,o,l,c,d=[],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"===r.nodeName&&(r.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=O(e[s._const.newValue]),r.childNodes[o]=l;break;case s._const.relocateGroup:n.childNodes.splice(e[s._const.from],e[s._const.groupLength]).reverse().forEac
vendor: 5,698 bytes, line 1
1h(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],(i=t.oldValue+t.length-e[s._const.to])>0&&(d.push({oldValue:e[s._const.to]+e[s._const.groupLength],newValue:t.newValue+t.length-i,length:i}),t.length-=i);else if(e[s._const.from]>e[s._const.to]&&t.oldValue>e[s._const.to]&&t.oldValue<e[s._const.from]){var i;t.oldValue+=e[s._const.groupLength],(i=t.oldValue+t.length-e[s._const.to])>0&&(d.push({oldValue:e[s._const.to]+e[s._const.groupLength],newValue:t.newValue+t.length-i,length:i}),t.length-=i)}else t.oldValue===e[s._const.from]&&(t.oldValue=e[s._const.to])});break;case s._const.removeElement:r.childNodes.splice(o,1),r.subsets&&r.subsets.forEach(function(t){t.oldValue>o?t.oldValue-=1:t.oldValue===o?t.delete=!0:t.oldValue<o&&t.oldValue+t.length>o&&(t.oldValue+t.length-1===o?t.length--:(d.push({newValue:t.newValue+o-t.oldValue,oldValue:o,length:t.length-o+t.oldValue-1}),t.length=o-t.oldValue))}),n=r;break;case s._const.addElement:var u=(c=e[s._const.route].slice()).splice(c.length-1,1)[0];n=null===(a=L(t,c))||void 0===a?void 0:a.node,l=O(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;d.push({newValue:t.newValue+t.length-e,oldValue:u+1,length:e}),t.length-=e}});break;case s._const.removeTextElement:r.childNodes.splice(o,1),"TEXTAREA"===r.nodeName&&delete r.value,r.subsets&&r.subsets.forEach(function(t){t.oldValue>o?t.oldValue-=1:t.oldValue===o?t.delete=!0:t.oldValue<o&&t.oldValue+t.length>o&&(t.oldValue+t.length-1===o?t.length--:(d.push({newValue:t.newValue+o-t.oldValue,oldValue:o,length:t.length-o+t.oldValue-1}),t.length=o-t.oldValue))}),n=r;break;case s._const.addTextElement:var p=(c=e[s._const.route].slice()).splice(c.length-1,1)[0];l={nodeName:"#text",data:e[s._const.value]},(n=L(t,c).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;d.push({newValue:t.newValue+t.length-e,oldValue:p+1,length:e}),t.length-=e}});break;default:console.log("unknown action")}n.subsets&&(n.subsets=n.subsets.filter(function(t){return!t.delete&&t.oldValue!==t.newValue}),d.length&&(n.subsets=n.subsets.concat(d))),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 i,a;if(this.options.maxDepth&&s.length>this.options.maxDepth)return[];if(!t.outerDone){if(i=this.findOuterDiff(t,e,s),this.options.filterOuterDiff&&(a=this.options.filterOuterDiff(t,e,i))&&(i=a),i.length>0)return t.outerDone=!0,i;t.outerDone=!0}if(Object.prototype.hasOwnProperty.call(t,"data"))return[];if(!t.innerDone){if((i=this.findInnerDiff(t,e,s)).length>0)return i;t.innerDone=!0}if(this.options.valueDiffing&&!t.valueDone){if((i=this.findValueDiff(t,e,s)).length>0)return t.valueDone=!0,i;t.valueDone=!0}return[]},t.prototype.findOuterDiff=function(t,e,s){var i,a,n,r,o,l,c=[];if(t.nodeName!==e.nodeName){if(!s.length)throw Error("Top level nodes have to be of the same kind.");return[(new g).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,O(t)).setValue(this.options._const.newValue,O(e)).setValue(this.options._const.route,s)]}if(s.length&&this.options.diffcap<Math.abs((t.childNodes||[]).length-(e.childNodes||[]).length))return[(new g).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,O(t)).setValue(this.options._const.newValue,O(e)).setValue(this.options._const.route,s)];if(Object.prototype.hasOwnProperty.call(t,"data")&&t.data!==e.data)return"#text"===t.nodeName?[(new g).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 g).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(a=t.attributes?Object.keys(t.attributes).sort():[],n=e.attributes?Object.keys(e.attributes).sort():[],r=a.length,l=0;l<r;l++)-1===(o=n.indexOf(i=a[l]))?c.push((new g).setValue(this.options._const.action,this.options._const.removeAttribute).setValue(this.options._const.route,s).setValue(this.options._const.name,i).setValue(this.options._const.value,t.attributes[i])):(n.splice(o,1),t.attributes[i]!==e.attributes[i]&&c.push((new g).setValue(this.options._const.action,this.options._const.modifyAttribute).setValue(this.options._const.route,s).setValue(this.options._const.name,i).setValue(this.options._const.oldValue,t.attributes[i]).setValue(this.options._const.newValue,e.attributes[i])));for(r=n.length,l=0;l<r;l++)i=n[l],c.push((new g).setValue(this.options._const.action,this.options._const.addAttribute).setValue(this.options._const.route,s).setValue(this.options._const.name,i).setValue(this.options._const.value,e.attributes[i]));return c},t.prototype.findInnerDiff=function(t,e,s){var i=t.childNodes?t.childNodes.slice():[],a=e.childNodes?e.childNodes.slice():[],n=Math.max(i.length,a.length),r=M
1ath.abs(i.length-a.length),o=[],l=0;if(!this.options.maxChildCount||n<this.options.maxChildCount){var c=!!(t.subsets&&t.subsetsAge--),d=c?t.subsets:t.childNodes&&e.childNodes?A(t,e):[];if(d.length>0&&(o=this.attemptGroupRelocation(t,e,d,s,c)).length>0)return o}for(var h=0;h<n;h+=1){var u=i[h],p=a[h];r&&(u&&!p?("#text"===u.nodeName?o.push((new g).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.value,u.data)):o.push((new g).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.element,O(u))),l-=1):p&&!u&&("#text"===p.nodeName?o.push((new g).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.value,p.data)):o.push((new g).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.element,O(p))))),u&&p&&(!this.options.maxChildCount||n<this.options.maxChildCount?o=o.concat(this.findNextDiff(u,p,s.concat(l))):V(u,p)||(i.length>a.length?("#text"===u.nodeName?o.push((new g).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,s.concat(l)).setValue(this.options._const.value,u.data)):o.push((new g).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.element,O(u)).setValue(this.options._const.route,s.concat(l))),i.splice(h,1),h-=1,l-=1,r-=1):i.length<a.length?(o=o.concat([(new g).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.element,O(p)).setValue(this.options._const.route,s.concat(l))]),i.splice(h,0,O(p)),r-=1):o=o.concat([(new g).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,O(u)).setValue(this.options._const.newValue,O(p)).setValue(this.options._const.route,s.concat(l))]))),l+=1}return t.innerDone=!0,o},t.prototype.attemptGroupRelocation=function(t,e,s,i,a){for(var n,r,o,l,c,d,h,u,p=(n=t.childNodes?T(t.childNodes.length,!0):[],r=e.childNodes?T(e.childNodes.length,!0):[],o=0,s.forEach(function(t){for(var e=t.oldValue+t.length,s=t.newValue+t.length,i=t.oldValue;i<e;i+=1)n[i]=o;for(i=t.newValue;i<s;i+=1)r[i]=o;o+=1}),{gaps1:n,gaps2:r}),f=p.gaps1,m=p.gaps2,b=t.childNodes.slice(),_=e.childNodes.slice(),v=Math.min(f.length,m.length),y=[],w=0,N=0;w<v;N+=1,w+=1)if(!a||!0!==f[w]&&!0!==m[w]){if(!0===f[N]){if("#text"===(h=b[N]).nodeName){if("#text"===_[w].nodeName){if(h.data!==_[w].data){for(var D=N;b.length>D+1&&"#text"===b[D+1].nodeName;)if(D+=1,_[w].data===b[D].data){u=!0;break}u||y.push((new g).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,i.concat(N)).setValue(this.options._const.oldValue,h.data).setValue(this.options._const.newValue,_[w].data))}}else y.push((new g).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,i.concat(N)).setValue(this.options._const.value,h.data)),f.splice(N,1),b.splice(N,1),v=Math.min(f.length,m.length),N-=1,w-=1}else!0===m[w]?y.push((new g).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,O(h)).setValue(this.options._const.newValue,O(_[w])).setValue(this.options._const.route,i.concat(N))):(y.push((new g).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,i.concat(N)).setValue(this.options._const.element,O(h))),f.splice(N,1),b.splice(N,1),v=Math.min(f.length,m.length),N-=1,w-=1)}else if(!0===m[w])"#text"===(h=_[w]).nodeName?(y.push((new g).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,i.concat(N)).setValue(this.options._const.value,h.data)),f.splice(N,0,!0),b.splice(N,0,{nodeName:"#text",data:h.data})):(y.push((new g).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,i.concat(N)).setValue(this.options._const.element,O(h))),f.splice(N,0,!0),b.splice(N,0,O(h))),v=Math.min(f.length,m.length);
1else if(f[N]!==m[w]){if(y.length>0)return y;if(d=s[f[N]],(c=Math.min(d.newValue,b.length-d.length))!==d.oldValue){l=!1;for(var E=0;E<d.length;E+=1)x(b[c+E],b[d.oldValue+E],{},!1,!0)||(l=!0);if(l)return[(new g).setValue(this.options._const.action,this.options._const.relocateGroup).setValue(this.options._const.groupLength,d.length).setValue(this.options._const.from,d.oldValue).setValue(this.options._const.to,c).setValue(this.options._const.route,i)]}}}return y},t.prototype.findValueDiff=function(t,e,s){var i=[];return t.selected!==e.selected&&i.push((new g).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&&i.push((new g).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&&i.push((new g).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)),i},t}(),R={debug:!1,diffcap:10,maxDepth:!1,maxChildCount:50,valueDiffing:!0,textDiff:function(t,e,s,i){t.data=i},preVirtualDiffApply:function(){},postVirtualDiffApply:function(){},preDiffApply:function(){},postDiffApply:function(){},filterOuterDiff:null,compress:!1,_const:!1,document:!("undefined"==typeof window||!window.document)&&window.document,components:[]},F=function(){function t(t){if(void 0===t&&(t={}),Object.entries(R).forEach(function(e){var s=e[0],i=e[1];Object.prototype.hasOwnProperty.call(t,s)||(t[s]=i)}),!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 y(t,e,s)})},t.prototype.undo=function(t,e){var s,i;return s=e,i=this.options,void((s=s.slice()).reverse(),s.forEach(function(e){!function(t,e,s){switch(e[s._const.action]){case s._const.addAttribute:e[s._const.action]=s._const.removeAttribute,y(t,e,s);break;case s._const.modifyAttribute:w(e,s._const.oldValue,s._const.newValue),y(t,e,s);break;case s._const.removeAttribute:e[s._const.action]=s._const.addAttribute,y(t,e,s);break;case s._const.modifyTextElement:case s._const.modifyValue:case s._const.modifyComment:case s._const.modifyChecked:case s._const.modifySelected:case s._const.replaceElement:w(e,s._const.oldValue,s._const.newValue),y(t,e,s);break;case s._const.relocateGroup:w(e,s._const.from,s._const.to),y(t,e,s);break;case s._const.removeElement:e[s._const.action]=s._const.addElement,y(t,e,s);break;case s._const.addElement:e[s._const.action]=s._const.removeElement,y(t,e,s);break;case s._const.removeTextElement:e[s._const.action]=s._const.addTextElement,y(t,e,s);break;case s._const.addTextElement:e[s._const.action]=s._const.removeTextElement,y(t,e,s);break;default:console.log("unknown action")}}(t,e,i)}))},t.prototype.diff=function(t,e){return new j(t,e,this.options).init()},t}();let q=(t,e,s,{classes:i,format:a,hiddenHeader:n,sortable:r,scrollY:o,type:l},{noColumnWidths:c,unhideHeader:d})=>({nodeName:"TR",childNodes:t.map((t,h)=>{let p=e[h]||{type:l,format:a,sortable:!0,searchable:!0};if(p.hidden)return;let f=t.attributes?{...t.attributes}:{};if(p.sortable&&r&&(!o.length||d)&&(p.filter?f["data-filterable"]="true":f["data-sortable"]="true"),p.headerClass&&(f.class=u(f.class,p.headerClass)),s.sort&&s.sort.column===h){let t="asc"===s.sort.dir?i.ascending:i.descending;f.class=u(f.class,t),f["aria-sort"]="asc"===s.sort.dir?"ascending":"descending"}else s.filters[h]&&(f.class=u(f.class,i.filterActive));if(s.widths[h]&&!c){let t=`width: ${s.widths[h]}%;`;f.style=u(f.style,t)}o.length&&!d&&(f.style=u(f.style,"padding-bottom: 0;padding-top: 0;border: 0;"));let m="html"===t.type?t.data:[{nodeName:"#text",data:t.text??String(t.data)}];return{nodeName:"TH",attributes:f,childNodes:(n||o.length)&&!d?[{nodeName:"#text",data:""}]:p.sortable&&r?[{nodeName:"BUTTON",attributes:{class:p.filter?i.filter:i.sorter},childNodes:m}]:m}}).filter(t=>t)}),z=(t,e,s,i,a,n,{classes:r,hiddenHeader:l,header:c,footer:d,format:h,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 n=i[s]||{type:m,format:h,sortable:!0,searchable:!0};if(n.hidden)return;let r={nodeName:"TD",attributes:t.attributes?{...t.attributes}:{},childNodes:"html"===n.type?t.data:[{nodeName:"#text",data:o(t)}]};if(c||d||!a.widths[s]||_||(r.attributes.style=u(r.attributes.style,`width: ${a.widths[s]}%;`)),n.cellClass&&(r.attributes.class=u(r.attributes.class,n.cellClass)),n.render){let i=n.render(t.data,r,e,s);if(i){if("string"!=typeof i)return i;{let t=I(`<td>${i}</td>`);1===t.childNodes.length&&["#text","#comment"].includes(t.childNodes[0].nodeName)?r.childNodes[0].data=i:r.childNodes=t.childNodes}}}return r}).filter(t=>t)};if(e===n&&(s.attributes.class=u(s.attributes.class,r.cursor)),g){let i=g(t,s,e);if(i){if("string"!=typeof i)return i;{let t=I(`<tr>${i}</tr>`);!t.childNodes||1===t.childNodes.length&&["#text","#comment"].includes(t.childNodes[0].nodeName)?s.childNodes[0].data=i:s.childNodes=t.childNodes}}}return s})}]};if(D.attributes.class=u(D.attributes.class,r.table),c||d||y){let t=q(e,i,a,{classes:r,hiddenHeader:l,sortable:p,scrollY:f},{noColumnWidths:_,unhideHeader:v});if(c||y){let e={nodeName:"THEAD",childNodes:[t]};(f.length||l)&&!v&&(e.attributes={style:"height: 0px;"}),D.childNodes.unshift(e)}if(d){let e={nodeName:"TFOOT",childNodes:[c?structuredClone(t):t]};(f.length||l)&&!v&&(e.attributes={style:"height: 0px;"}),D.childNodes.push(e)}}
1return w.forEach(t=>D.childNodes.push(t)),N.forEach(t=>D.childNodes.push(t)),!1!==b&&(D.attributes.tabindex=String(b)),D};function U(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==s.g?s.g:"undefined"!=typeof self&&self;var Z=U({exports:{}}.exports=function(){var t="millisecond",e="second",s="minute",i="hour",a="week",n="month",r="quarter",o="year",l="date",c="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=function(t,e,s){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(s)+t},p="en",f={};f[p]={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]||"th")+"]"}};var m="$isDayjsObject",g=function(t){return t instanceof y||!(!t||!t[m])},b=function t(e,s,i){var a;if(!e)return p;if("string"==typeof e){var n=e.toLowerCase();f[n]&&(a=n),s&&(f[n]=s,a=n);var r=e.split("-");if(!a&&r.length>1)return t(r[0])}else{var o=e.name;f[o]=e,a=o}return!i&&a&&(p=a),a||!i&&p},_=function(t,e){if(g(t))return t.clone();var s="object"==typeof e?e:{};return s.date=t,s.args=arguments,new y(s)},v={s:u,z:function(t){var e=-t.utcOffset(),s=Math.abs(e);return(e<=0?"+":"-")+u(Math.floor(s/60),2,"0")+":"+u(s%60,2,"0")},m:function t(e,s){if(e.date()<s.date())return-t(s,e);var i=12*(s.year()-e.year())+(s.month()-e.month()),a=e.clone().add(i,n),r=s-a<0,o=e.clone().add(i+(r?-1:1),n);return+(-(i+(s-a)/(r?a-o:o-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:n,y:o,w:a,d:"day",D:l,h:i,m:s,s:e,ms:t,Q:r})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};v.l=b,v.i=g,v.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var y=function(){function u(t){this.$L=b(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[m]=!0}var p=u.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,s=t.utc;if(null===e)return new Date(NaN);if(v.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(d);if(i){var a=i[2]-1||0,n=(i[7]||"0").substring(0,3);return s?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)}}return new Date(e)}(t),this.init()},p.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()},p.$utils=function(){return v},p.isValid=function(){return!(this.$d.toString()===c)},p.isSame=function(t,e){var s=_(t);return this.startOf(e)<=s&&s<=this.endOf(e)},p.isAfter=function(t,e){return _(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<_(t)},p.$g=function(t,e,s){return v.u(t)?this[e]:this.set(s,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,r){var c=this,d=!!v.u(r)||r,h=v.p(t),u=function(t,e){var s=v.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return d?s:s.endOf("day")},p=function(t,e){return v.w(c.toDate()[t].apply(c.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},f=this.$W,m=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case o:return d?u(1,0):u(31,11);case n:return d?u(1,m):u(0,m+1);case a:var _=this.$locale().weekStart||0,y=(f<_?f+7:f)-_;return u(d?g-y:g+(6-y),m);case"day":case l:return p(b+"Hours",0);case i:return p(b+"Minutes",1);case s:return p(b+"Seconds",2);case e:return p(b+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(a,r){var c,d=v.p(a),h="set"+(this.$u?"UTC":""),u=((c={}).day=h+"Date",c[l]=h+"Date",c[n]=h+"Month",c[o]=h+"FullYear",c[i]=h+"Hours",c[s]=h+"Minutes",c[e]=h+"Seconds",c[t]=h+"Milliseconds",c)[d],p="day"===d?this.$D+(r-this.$W):r;if(d===n||d===o){var f=this.clone().set(l,1);f.$d[u](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else u&&this.$d[u](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[v.p(t)]()},p.add=function(t,r){var l,c=this;t=Number(t);var d=v.p(r),h=function(e){var s=_(c);return v.w(s.date(s.date()+Math.round(e*t)),c)};if(d===n)return this.set(n,this.$M+t);if(d===o)return this.set(o,this.$y+t);if("day"===d)return h(1);if(d===a)return h(7);var u=((l={})[s]=6e4,l[i]=36e5,l[e]=1e3,l)[d]||1,p=this.$d.getTime()+t*u;return v.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,s=this.$locale();if(!this.isValid())return s.invalidDate||c;var i=t||"YYYY-MM-DDTHH:mm:ssZ",a=v.z(this),n=this.$H,r=this.$m,o=this.$M,l=s.weekdays,d=s.months,u=s.meridiem,p=function(t,s,a,n){return t&&(t[s]||t(e,i))||a[s].slice(0,n)},f=function(t){return v.s(n%12||12,t,"0")},m=u||function(t,e,s){var i=t<12?"AM":"PM";return s?i.toLowerCase():i};return i.replace(h,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return v.s(e.$y,4,"0");case"M":return o+1;case"MM":return v.s(o+1,2,"0");case"MMM":return p(s.monthsShort,o,d,3);case"MMMM":return p(d,o);case"D":return e.$D;case"DD":return v.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(s.weekdaysMin,e.$W,l,2);case"ddd":return p(s.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(n);case"HH":return v.s(n,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(n,r,!0);case"A":return m(n,r,!1);case"m":return String(r);case"mm":return v.s(r,2,"0");case"s":return String(e.$s);case"ss":return v.s(e.$s,2,"0");case"SSS":return v.s(e.$ms,3,"0");case"Z":return a}return null}(t)||a.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,c){var d,h=this,u=v.p(l),p=_(t),f=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,g=function(){return v.m(h,p)};switch(u){case o:d=g()/12;break;case n:d=g();break;case r:d=g()/3;break;case a:d=(m-f)/6048e5;break;case"day":d=(m-f)/864e5;break;case i:d=m/36e5;break;case s:d=m/6e4;break;case e:d=m/1e3;break;default:d=m}return c?d:v.a(d)},p.daysInMonth=function(){return this.endOf(n).$D},p.$locale=function(){return f[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var s=this.clone(),i=b(t,e,!0);return i&&(s.$L=i),s},p.clone=function(){return v.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},u}(),w=y.prototype;return _.prototype=w,[["$ms",t],["$s",e],["$m",s],["$H",i],["$W","day"],["$M",n],["$y",o],["$D",l]].forEac
1h(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,y,_),t.$i=!0),_},_.locale=b,_.isDayjs=g,_.unix=function(t){return _(1e3*t)},_.en=f[p],_.Ls=f,_.p={},_}()),B=U({exports:{}}.exports=function(){var t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,n={},r=function(t){return(t=+t)+(t>68?1900:2e3)},o=function(t){return function(e){this[t]=+e}},l=[/[+-]\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)}],c=function(t){var e=n[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var s,i=n.meridiem;if(i){for(var a=1;a<=24;a+=1)if(t.indexOf(i(a,0,e))>-1){s=a>12;break}}else s=t===(e?"pm":"PM");return s},h={A:[a,function(t){this.afternoon=d(t,!1)}],a:[a,function(t){this.afternoon=d(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[s,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,o("seconds")],ss:[i,o("seconds")],m:[i,o("minutes")],mm:[i,o("minutes")],H:[i,o("hours")],h:[i,o("hours")],HH:[i,o("hours")],hh:[i,o("hours")],D:[i,o("day")],DD:[s,o("day")],Do:[a,function(t){var e=n.ordinal,s=t.match(/\d+/);if(this.day=s[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[i,o("month")],MM:[s,o("month")],MMM:[a,function(t){var e=(c("monthsShort")||c("months").map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(e<1)throw Error();this.month=e%12||e}],MMMM:[a,function(t){var e=c("months").indexOf(t)+1;if(e<1)throw Error();this.month=e%12||e}],Y:[/[+-]?\d+/,o("year")],YY:[s,function(t){this.year=r(t)}],YYYY:[/\d{4}/,o("year")],Z:l,ZZ:l};return function(s,i,a){a.p.customParseFormat=!0,s&&s.parseTwoDigitYear&&(r=s.parseTwoDigitYear);var o=i.prototype,l=o.parse;o.parse=function(s){var i=s.date,r=s.utc,o=s.args;this.$u=r;var c=o[1];if("string"==typeof c){var d=!0===o[2],u=!0===o[3],p=o[2];u&&(p=o[2]),n=this.$locale(),!d&&p&&(n=a.Ls[p]),this.$d=function(s,i,a){try{if(["x","X"].indexOf(i)>-1)return new Date(("X"===i?1e3:1)*s);var r=(function(s){var i,a;i=s,a=n&&n.formats;for(var r=(s=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,s,i){var n=i&&i.toUpperCase();return s||a[i]||t[i]||a[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,s){return e||s.slice(1)})})).match(e),o=r.length,l=0;l<o;l+=1){var c=r[l],d=h[c],u=d&&d[0],p=d&&d[1];r[l]=p?{regex:u,parser:p}:c.replace(/^\[|\]$/g,"")}return function(t){for(var e={},s=0,i=0;s<o;s+=1){var a=r[s];if("string"==typeof a)i+=a.length;else{var n=a.regex,l=a.parser,c=t.slice(i),d=n.exec(c)[0];l.call(e,d),t=t.replace(d,"")}}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}})(i)(s),o=r.year,l=r.month,c=r.day,d=r.hours,u=r.minutes,p=r.seconds,f=r.milliseconds,m=r.zone,g=new Date,b=c||(o||l?1:g.getDate()),_=o||g.getFullYear(),v=0;o&&!l||(v=l>0?l-1:g.getMonth());var y=d||0,w=u||0,N=p||0,D=f||0;return m?new Date(Date.UTC(_,v,b,y,w,N,D+60*m.offset*1e3)):a?new Date(Date.UTC(_,v,b,y,w,N,D)):new Date(_,v,b,y,w,N,D)}catch(t){return new Date("")}}(i,c,r),this.init(),p&&!0!==p&&(this.$L=this.locale(p).$L),(d||u)&&i!=this.format(c)&&(this.$d=new Date("")),n={}}else if(c instanceof Array)for(var f=c.length,m=1;m<=f;m+=1){o[1]=c[m-1];var g=a.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===f&&(this.$d=new Date(""))}else l.call(this,s)}}}());Z.extend(B);let J=(t,e)=>{let s;if(e)switch(e){case"ISO_8601":s=t;break;case"RFC_2822":s=Z(t.slice(5),"DD MMM YYYY HH:mm:ss ZZ").unix();break;case"MYSQL":s=Z(t,"YYYY-MM-DD hh:mm:ss").unix();break;case"UNIX":s=Z(t).unix();break;default:s=Z(t,e,!0).valueOf()}return s},W=(t,e)=>{if(t?.constructor===Object&&Object.prototype.hasOwnProperty.call(t,"data")&&!Object.keys(t).find(t=>!["text","order","data","attributes"].includes(t)))return t;let s={data:t};switch(e.type){case"string":"string"!=typeof t&&(s.text=String(s.data),s.order=s.text);break;case"date":e.format&&(s.order=J(String(s.data),e.format));break;case"number":s.text=String(s.data),s.data=parseFloat(s.data),s.order=s.data;break;case"html":{let t=Array.isArray(s.data)?{nodeName:"TD",childNodes:s.data}:I(`<td>${String(s.data)}</td>`);s.data=t.childNodes||[];let e=r(t);s.text=e,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.data?1:0,s.text=String(s.data);break;case"other":s.text="",s.order=0;break;default:s.text=JSON.stringify(s.data)}return s},Q=t=>{if(t instanceof Object&&t.constructor===Object&&t.hasOwnProperty("data")&&("string"==typeof t.text||"string"==typeof t.data))return t;let e={data:t};if("string"==typeof t){if(t.length){let s=I(`<th>${t}</th>`);if(s.childNodes&&(1!==s.childNodes.length||"#text"!==s.childNodes[0].nodeName)){e.data=s.childNodes,e.type="html";let t=r(s);e.text=t}}}else[null,void 0].includes(t)?e.text="":e.text=JSON.stringify(t);return e},G=(t,e,s,i,a)=>{let n={data:[],headings:[]};if(t.headings)n.headings=t.headings.map(t=>Q(t));else if(e?.tHead)n.headings=Array.from(e.tHead.querySelectorAll("th")).map((t,e)=>{let n=(t=>{let e;let s=P(t,{valueDiffing:!1});return(e=s.childNodes&&(1!==s.childNodes.length||"#text"!==s.childNodes[0].nodeName)?{data:s.childNodes,type:"html",text:r(s)}:{data:t.innerText,type:"string"}).attributes=s.attributes,e})(t);s[e]||(s[e]={type:i,format:a,searchable:!0,sortable:!0});let o=s[e];return"false"!==t.dataset.sortable?.trim().toLowerCase()&&"false"!==t.dataset.sort?.trim().toLowerCase()||(o.sortable=!1),"false"===t.dataset.searchable?.trim().toLowerCase()&&(o.searchable=!1),"true"!==t.dataset.hidden?.trim().toLowerCase()&&"true"!==t.getAttribute("hidden")?.trim().toLowerCase()||(o.hidden=!0),["number","string","html","date","boolean","other"].includes(t.dataset.type)&&(o.type=t.dataset.type,"date"===o.type&&t.dataset.format&&(o.format=t.dataset.format)),n});else if(t.data?.length){let e=t.data[0],s=Array.isArray(e)?e:e.cells;n.headings=s.map(t=>Q(""))}else e?.tBodies.length&&(n.headings=Array.from(e.tBodies[0].rows[0].cells).map(t=>Q("")));for(let t=0;t<n.headings.length;t++)s[t]||(s[t]={type:i,format:a,sortable:!0,searchable:!0});if(t.data){let e=n.headings.map(t=>t.data?String(t.data):t.text);n.data=t.data.map(t=>{let i,a;return Array.isArray(t)?(i={},a=t):t.hasOwnProperty("cells")&&Object.keys(t).every(t=>["cells","attributes"].includes(t))?(i=t.attributes,a=t.cells):(i={},a=[],Object.entries(t).forEach(([t,s])=>{let i=e.indexOf(t);i>-1&&(a[i]=s)})),{attributes:i,cells:a.map((t,e)=>W(t,s[e]))}})}else e?.tBodies?.length&&(n.data=Array.from(e.tBodies[0].rows).map(t=>({attributes:c(t.attributes),cells:Array.from(t.cells).map((t,e)=>{let i=t.dataset.content?W(t.dataset.content,s[e]):((t,e)=>{let s;switch(e.type){case"string":s={data:t.innerText};break;case"date":{let i=t.innerText;s={data:i,order:J(i,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?1:0};break}default:s={data:P(t,{valueDiffing:!1}).childNodes||[],text:t.innerText,order:t.innerText}}return s.attributes=c(t.attributes),s})(t,s[e]);return t.dataset.order&&(i.order=isNaN(parseFloat(t.dataset.order))?t.dataset.order:parseFloat(t.dataset.order)),i})})));if(n.data.length&&n.data[0].cells.length!==n.headings.length)throw Error("Data heading length mismatch.");return n};class X{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=d(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)=>W(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=>o(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 i=this.dt.data.data[s],a=i.cells.map(t=>t.data);return{index:s,row:i,cols:a}}updateRow(t,e){let s={cells:e.map((t,e)=>W(t,this.dt.columns.settings[e]))};this.dt.data.data.splice(t,1,s),this.dt.update(!0)}}class K{dt;settings;_state;constructor(t){this.dt=t,this.init()}init(){[this.settings,this._state]=((t=[],e,s)=>{let i=[],a=!1,n=[];return t.forEach(t=>
1{(Array.isArray(t.select)?t.select:[t.select]).forEach(r=>{i[r]?t.type&&(i[r].type=t.type):i[r]={type:t.type||e,sortable:!0,searchable:!0};let o=i[r];t.render&&(o.render=t.render),t.format?o.format=t.format:"date"===t.type&&(o.format=s),t.cellClass&&(o.cellClass=t.cellClass),t.headerClass&&(o.headerClass=t.headerClass),t.locale&&(o.locale=t.locale),!1===t.sortable?o.sortable=!1:(t.numeric&&(o.numeric=t.numeric),t.caseFirst&&(o.caseFirst=t.caseFirst)),!1===t.searchable?o.searchable=!1:t.sensitivity&&(o.sensitivity=t.sensitivity),(o.searchable||o.sortable)&&void 0!==t.ignorePunctuation&&(o.ignorePunctuation=t.ignorePunctuation),t.searchMethod&&(o.searchMethod=t.searchMethod),t.hidden&&(o.hidden=!0),t.filter&&(o.filter=t.filter),t.sortSequence&&(o.sortSequence=t.sortSequence),t.sort&&(t.filter?n[r]=t.sort:a={column:r,dir:t.sort}),void 0!==t.searchItemSeparator&&(o.searchItemSeparator=t.searchItemSeparator)})}),[i=i.map(t=>t||{type:e,format:"date"===e?s:void 0,sortable:!0,searchable:!0}),{filters:n,sort:a,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],i=t[1],a=e[i];return e[i]=e[s],e[s]=a,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([Q(t.heading)]),this.dt.data.data.forEach((e,s)=>{e.cells=e.cells.concat([W(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 i=this._state.filters[t];if(i){let e=!1;s=this.settings[t].filter.find(t=>!!e||(t===i&&(e=!0),!1))}else{let e=this.settings[t].filter;s=e?e[0]:void 0}s?this._state.filters[t]=s:i&&(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 i=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,a=i?.sortSequence||["asc","desc"];if(s){let t=a.indexOf(s);e=-1===t?a[0]||"asc":t===a.length-1?a[0]:a[t+1]}else e=a.length?a[0]:"asc"}let a=!!["string","html"].includes(i.type)&&new Intl.Collator(i.locale||this.dt.options.locale,{usage:"sort",numeric:i.numeric||this.dt.options.numeric,caseFirst:i.caseFirst||this.dt.options.caseFirst,ignorePunctuation:i.ignorePunctuation||this.dt.options.ignorePunctuation});this.dt.data.data.sort((s,i)=>{let n=s.cells[t],r=i.cells[t],l=n.order??o(n),c=r.order??o(r);if("desc"===e){let t=l;l=c,c=t}return a&&"number"!=typeof l&&"number"!=typeof c?a.compare(String(l),String(c)):l<c?-1:l>c?1:0}),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(
1),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,i=this.dt.data.headings.map((t,i)=>{if(this.settings[i]?.hidden)return 0;let a=e[s].offsetWidth;return s+=1,a}),a=i.reduce((t,e)=>t+e,0);this._state.widths=i.map(t=>t/a*100)}else{t.renderHeader=!0,this.dt._renderTable(t);let e=Array.from(this.dt.dom.querySelector("thead, tfoot")?.firstElementChild?.querySelectorAll("th")||[]),s=0,i=this.dt.data.headings.map((t,i)=>{if(this.settings[i]?.hidden)return 0;let a=e[s].offsetWidth;return s+=1,a}),a=i.reduce((t,e)=>t+e,0);this._state.widths=i.map(t=>t/a*100)}this.dt._renderTable()}}}let tt={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,tabIndex:!1,pagerRender:!1,rowRender:!1,tableRender:!1,diffDomOptions:{valueDiffing:!1},labels:{placeholder:"Search...",searchTitle:"Search within table",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"},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            <input class='${t.classes.input}' placeholder='${t.labels.placeholder}' type='search' name="search" title='${t.labels.searchTitle}'${e.id?` aria-controls="${e.id}"`:""}>
9        </div>`:""}
10</div>
11<div class='${t.classes.container}'${t.scrollY.length?` style='height: ${t.scrollY}; overflow-Y: auto;'`:""}></div>
12<div class='${t.classes.bottom}'>
13    ${t.paging?`<div class='${t.classes.info}'></div>`:""}
14    <nav class='${t.classes.pagination}'></nav>
15</div>`,classes:{active:"datatable-active",ascending:"datatable-ascending",bottom:"datatable-bottom",container:"datatable-container",cursor:"datatable-cursor",descending:"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",selector:"datatable-selector",sorter:"datatable-sorter",table:"datatable-table",top:"datatable-top",wrapper:"datatable-wrapper"}},te=(t,e,s,i={})=>({nodeName:"LI",attributes:{class:i.active&&!i.hidden?`${s.classes.paginationListItem} ${s.classes.active}`:i.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:[{nodeName:"#text",data:e}]}]}),ts=(t,e,s,i,a)=>{let n=[];if(a.firstLast&&n.push(te(1,a.firstText,a)),a.nextPrev){let e=t?1:s-1;n.push(te(e,a.prevText,a,{hidden:t}))}let r=[...Array(i).keys()].map(t=>te(t+1,String(t+1),a,{active:t===s-1}));if(a.truncatePager&&(r=((t,e,s,i)=>{let a;let n=i.pagerDelta,r=i.classes,o=i.ellipsisText,l=2*n,c=e-n,d=e+n;e<4-n+l?d=3+l:e>s-(3-n+l)&&(c=s-(2+l));let h=[];for(let e=1;e<=s;e++)if(1==e||e==s||e>=c&&e<=d){let s=t[e-1];h.push(s)}let u=[];
15return h.forEach(e=>{let s=parseInt(e.childNodes[0].attributes["data-page"],10);if(a){let e=parseInt(a.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:`${r.paginationListItem} ${r.ellipsis} ${r.disabled}`},childNodes:[{nodeName:"BUTTON",attributes:{class:r.paginationListItemLink},childNodes:[{nodeName:"#text",data:o}]}]};u.push(t)}}u.push(e),a=e}),u})(r,s,i,a)),n=n.concat(r),a.nextPrev){let t=e?i:s+1;n.push(te(t,a.nextText,a,{hidden:e}))}return a.firstLast&&n.push(te(i,a.lastText,a)),{nodeName:"UL",attributes:{class:a.classes.paginationList},childNodes:r.length>1?n:[]}};class ti{columns;containerDOM;_currentPage;data;_dd;dom;_events;hasHeadings;hasRows;headerDOM;_initialHTML;initialized;_label;lastPage;_listeners;onFirstPage;onLastPage;options;_pagerDOMs;_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 i={...tt.diffDomOptions,...e.diffDomOptions},a={...tt.labels,...e.labels},n={...tt.classes,...e.classes};this.options={...tt,...e,diffDomOptions:i,labels:a,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 F(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||h(this.dom,this.options.classes.table))return!1;this._virtualDOM=P(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 X(this),this.columns=new K(this),this.data=G(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=n("div",{class:`${this.options.classes.wrapper} ${this.options.classes.loading}`}),this.wrapperDOM.innerHTML=this.options.template(this.options,this.dom);let t=d(this.options.classes.selector),e=this.wrapperDOM.querySelector(`select${t}`);e&&this.options.paging&&this.options.perPageSelect?this.options.perPageSelect.forEach(t=>{let[s,i]=Array.isArray(t)?[t[0],t[1]]:[String(t),t],a=i===this.options.perPage,n=new Option(s,String(i),a,a);e.appendChild(n)}):e&&e.parentElement.removeChild(e);let s=d(this.options.classes.container);this.containerDOM=this.wrapperDOM.querySelector(s),this._pagerDOMs=[];let i=d(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._virtualPagerDOM={nodeName:"UL",attributes:{class:this.options.classes.paginationList}};let a=d(this.options.classes.info);this._label=this.wrapperDOM.querySelector(a),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=z(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 i=this._dd.diff(this._virtualDOM,s);this._dd.apply(this.dom,i),this._virtualDOM=s}_renderPage(t=!1){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 e,s=0,i=0,a=0;if(this.totalPages&&(a=(i=(s=this._currentPage-1)*this.options.perPage)+this.pages[s].length,i+=1,e=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(i)).replace("{end}",String(a)).replace("{page}",String(this._currentPage)).replace("{pages}",String(this.totalPages)).replace("{rows}",String(e));this._label.innerHTML=e?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=ts(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=this._dd.diff(this._virtualPagerDOM,t);this._pagerDOMs.forEach(t=>{this._dd.apply(t,e)}),this._virtualPagerDOM=t}
15_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:[q(this.data.headings,this.columns.settings,this.columns._state,this.options,{unhideHeader:!0})]}]};if(e.attributes.class=u(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]},i=this._dd.diff(this._virtualHeaderDOM,s);this._dd.apply(this.headerDOM,i),this._virtualHeaderDOM=s;let a=this.headerDOM.firstElementChild.clientWidth-this.dom.clientWidth;if(a){let t=structuredClone(this._virtualHeaderDOM);t.attributes.style=`padding-right: ${a}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=d(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=d(this.options.classes.input),s=t.target;if(!(s instanceof HTMLInputElement&&s.matches(e)))return;t.preventDefault();let i=[];if(Array.from(this.wrapperDOM.querySelectorAll(e)).filter(t=>t.value.length).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?i.push({terms:[e],columns:JSON.parse(t.dataset.columns)}):i.push({terms:[e],columns:void 0})}):t.dataset.columns?i.push({terms:s,columns:JSON.parse(t.dataset.columns)}):i.push({terms:s,columns:void 0})}),1===i.length&&1===i[0].terms.length){let t=i[0];this.search(t.terms[0],t.columns)}else this.multiSearch(i)}),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(h(e,this.options.classes.sorter)){let s=l(Array.from(e.parentElement.parentElement.children).indexOf(e.parentElement),this.columns.settings);this.columns.sort(s),t.preventDefault()}else if(h(e,this.options.classes.filter)){let s=l(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)}else["Enter"," "].includes(t.key)&&this.emit("datatable.selectrow",this.rows.cursor,t)}),this.dom.addEventListener("mousedown",t=>{let e=t.target;if(e instanceof Element&&this.dom.matches(":focus")){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.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)}),window.addEventListener("resize",this._listeners.onResize)}_onResize=p(()=>{this._rect=this.containerDOM.getBoundingClientRect(),this._rect.width&&this.update(!0)},250);destroy(){if(this.options.destroyable){if(this.wrapperDOM){let t=this.wrapperDOM.parentElement;if(t){let e=n("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}}
15update(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 i=t.row.cells[s];return"function"==typeof e?e(i.data):o(i)===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=>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=null,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 i=s.map(t=>this.columns.settings.map((e,s)=>{if(e.hidden||!e.searchable||t.columns&&!t.columns.includes(s))return!1;let i=t.terms,a=e.sensitivity||this.options.sensitivity;return["base","accent"].includes(a)&&(i=i.map(t=>t.toLowerCase())),["base","case"].includes(a)&&(i=i.map(t=>t.normalize("NFD").replace(/\p{Diacritic}/gu,""))),(e.ignorePunctuation??this.options.ignorePunctuation)&&(i=i.map(t=>t.replace(/[.,/#!$%^&*;:{}=-_`~()]/g,""))),i}));this.data.data.forEach((t,e)=>{let a=t.cells.map((t,e)=>{let s=this.columns.settings[e];if(s.searchMethod||this.options.searchMethod)return t;let i=o(t).trim();if(i.length){let t=s.sensitivity||this.options.sensitivity;["base","accent"].includes(t)&&(i=i.toLowerCase()),["base","case"].includes(t)&&(i=i.normalize("NFD").replace(/\p{Diacritic}/gu,"")),(s.ignorePunctuation??this.options.ignorePunctuation)&&(i=i.replace(/[.,/#!$%^&*;:{}=-_`~()]/g,""))}let a=s.searchItemSeparator||this.options.searchItemSeparator;return a?i.split(a):[i]});i.every((e,i)=>e.find((e,n)=>{if(!e)return!1;let r=this.columns.settings[n].searchMethod||this.options.searchMethod;return r?r(e,a[n],t,n,s[i].source):e.find(t=>a[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("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(),void this.emit("datatable.page",t)))}insert(t){let e=[];
15if(Array.isArray(t)){let s=this.data.headings.map(t=>t.data?String(t.data):t.text);t.forEach((t,i)=>{let a=[];Object.entries(t).forEach(([t,e])=>{let n=s.indexOf(t);n>-1?a[n]=W(e,this.columns.settings[n]):this.hasHeadings||this.hasRows||0!==i||(a[s.length]=W(e,this.columns.settings[s.length]),s.push(t),this.data.headings.push(Q(t)))}),e.push({cells:a})})}else a(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)=>W(t,this.columns.settings[e]))}})):this.data=G(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=d(this.options.classes.input);Array.from(this.wrapperDOM.querySelectorAll(t)).forEach(t=>t.value=""),this._searchQueries=[]}this._currentPage=1,this.onFirstPage=!0,this.update(!0),this.emit("datatable.refresh")}print(){let t=n("table"),e=z(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:[q(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=u(s.attributes.class,this.options.classes.table),this.options.tableRender){let t=this.options.tableRender(this.data,s,"message");t&&(s=t)}let i=this._dd.diff(this._virtualDOM,s);this._dd.apply(this.dom,i),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)}}class ta extends i.Z{init(){let t=JSON.parse(this.el.dataset.labels);this.dataTable=new ti(this.el.firstElementChild,{perPage:20,perPageSelect:[["20 "+t.perPageSuffix,20],["50 "+t.perPageSuffix,50],["100 "+t.perPageSuffix,100],[t.showAll,-1]],classes:{active:"active",disabled:"disabled",selector:"form-select",paginationList:"pagination",paginationListItem:"page-item",paginationListItemLink:"page-link"},labels:t,columns:[{select:1,sortable:!0,searchable:!0,sortSequence:["desc","asc"]},{select:2,sortable:!0,searchable:!0,sortSequence:["desc","asc"]},{select:3,sortable:!0,searchable:!1,sortSequence:["desc","asc"]},{select:4,type:"date",searchable:!1,format:"DD.MM.YYYY"},{select:5,type:"date",searchable:!1,format:"DD.MM.YYYY"}],template:t=>"<div class='".concat(t.classes.top," fixed-table-toolbar'>\n                    ").concat(t.paging&&t.perPageSelect?"<div class='".concat(t.classes.dropdown," bs-bars float-left'>\n                            <label>\n                                <select class='").concat(t.classes.selector,"'></select>\n                            </label>\n                        </div>"):"","\n                    ").concat(t.searchable?"<div class='".concat(t.classes.search," float-right search btn-group'>\n                        <input class='").concat(t.classes.input," form-control search-input' placeholder='").concat(t.labels.placeholder,"' type='search' title='").concat(t.labels.searchTitle,"'>\n                    </div>"):"","\n                </div>\n                <div class='").concat(t.classes.container,"'").concat(t.scrollY.length?" style='height: ".concat(t.scrollY,"; overflow-Y: auto;'"):"","></div>\n                <div class='").concat(t.classes.bottom,"'>\n                    ").concat(t.paging?"<div class='".concat(t.classes.info,"'></div>"):"","\n                    <nav class='").concat(t.classes.pagination,"'></nav>\n                </div>"),tableRender:(t,e,s)=>
15(e.childNodes[0].childNodes[0].childNodes.forEach(t=>{t.attributes||(t.attributes={}),t.attributes.scope="col";let e=t.childNodes[0];e.attributes||(e.attributes={});let s=e.attributes.class?"".concat(e.attributes.class," th-inner"):"th-inner";if("a"===e.nodeName){var i,a;s+=" sortable sortable-center both",((i=t.attributes.class)===null||void 0===i?void 0:i.includes("desc"))?s+=" desc":((a=t.attributes.class)===null||void 0===a?void 0:a.includes("asc"))&&(s+=" asc")}e.attributes.class=s}),e)})}}},49:(t,e,s)=>{s.d(e,{Z:()=>a});var i=s(140);class a{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!a.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!1===a.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(s)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=e.replace(/^data(|-)/,""),r=i.Z.toLowerCamelCase(n,"-");if(!a.isNode(t)){if(s)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(s)throw Error("This node doesn't support the dataset attribute!");return}let o=t.dataset[r];if(void 0===o){if(s)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return o}return i.Z.parsePrimitive(o)}static querySelector(t,e){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!a.isNode(t))throw Error("The parent node is not a valid HTML Node!");let i=t.querySelector(e)||!1;if(s&&!1===i)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return i}static querySelectorAll(t,e){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!a.isNode(t))throw Error("The parent node is not a valid HTML Node!");let i=t.querySelectorAll(e);if(0===i.length&&(i=!1),s&&!1===i)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return i}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return t.querySelectorAll('\n            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n            select:not([tabindex^="-"]):not([disabled]),\n            textarea:not([tabindex^="-"]):not([disabled]),\n            button:not([tabindex^="-"]):not([disabled]),\n            a[href]:not([tabindex^="-"]):not([disabled]),\n            [tabindex]:not([tabindex^="-"]):not([disabled])\n        ')}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}},140:(t,e,s)=>{s.d(e,{Z:()=>i});class i{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let s=i.toUpperCamelCase(t,e);return i.lcFirst(s)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>i.ucFirst(t.toLowerCase())).join(""):i.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}},293:(t,e,s)=>{s.d(e,{Z:()=>l});var i=s(857),a=s.n(i),n=s(49),r=s(140);class o{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new CustomEvent(t,{detail:e,cancelable:s});return this.el.dispatchEvent(i),i}subscribe(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,a=t.split("."),n=s.scope?e.bind(s.scope):e;if(s.once&&!0===s.once){let e=n;n=function(s){i.unsubscribe(t),e(s)}}return this.el.addEventListener(a[0],n),this.listeners.push({splitEventName:a,opts:s,cb:n}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,s)=>([...s.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(s.splitEventName[0],s.cb):t.push(s),t),[]),!0}
15reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}}class l{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let e=r.Z.toDashCase(this._pluginName),s=n.Z.getDataAttribute(this.el,"data-".concat(e,"-config"),!1),i=n.Z.getAttribute(this.el,"data-".concat(e,"-options"),!1),o=[this.constructor.options,this.options,t];s&&o.push(window.PluginConfigManager.get(this._pluginName,s));try{i&&o.push(JSON.parse(i))}catch(t){throw console.error(this.el),Error('The data attribute "data-'.concat(e,'-options" could not be parsed to json: ').concat(t.message))}return a().all(o.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}constructor(t,e={},s=!1){if(!n.Z.isNode(t))throw Error("There is no valid element given.");this.el=t,this.$emitter=new o(this.el),this._pluginName=this._getPluginName(s),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}}}}]);

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.