UNPKG

gentelella

Version:

Gentelella v4 — free admin template. 60 pages, 20 chart variants, fully interactive inbox & kanban, live theme generator, component playground, PWA-ready. Vite 8, vanilla JS, no Bootstrap, no jQuery.

1 lines 124 kB
import{n as e}from"./rolldown-runtime-_5RX-BWT.js";var t=e({Api:()=>Hr,DataTable:()=>Sn,Dom:()=>we,default:()=>Sn,util:()=>se}),r=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,n=/<([^>]*>)/g,a=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),i=Object.freeze({__proto__:null,isoTimezone:/[T\s]\d{2}.*?(Z|[+-]\d{2}(?::?\d{2})?)$/,reDate:/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,reFormattedNumeric:r,reHtml:n,reNewLines:/[\r\n\u2028]/g,reRegexCharacters:a}),o=Math.pow(2,28),l=function(e,t){if("string"!=typeof e)return e;var r=e.normalize?e.normalize("NFD"):e;return r.length!==e.length?(!0===t?e+" ":"")+r.replace(/[\u0300-\u036f]/g,""):r},s=function(e,t=""){if(!e||"string"!=typeof e)return e;if(e.length>o)throw new Error("Exceeded max str len");let r,a=e.replace(n,t);do{r=a,a=a.replace(/<script/i,"")}while(a!==r);return r},c=function(e){let t=Array.isArray(e)?e.join(","):e;return"string"==typeof t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t};function u(e){return e.replace(a,"\\$1")}function d(e){var t=typeof e;if("function"!==t)return"string"===t||Array.isArray(e)?c(e):e;c=e}function f(e,t){if("function"!=typeof e)return l(e,t);l=e}function h(e,t){const r=typeof e;if("function"!==r)return"string"===r?s(e,t):e;s=e}var p=Object.freeze({__proto__:null,escapeHtml:d,escapeRegex:u,normalize:f,stripHtml:h}),g={};function m(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null}function v(e,t){return g[t]||(g[t]=new RegExp(u(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(g[t],"."):e}var y=Object.freeze({__proto__:null,intVal:m,numToDecimal:v});function b(e){return e&&"string"!=typeof e&&void 0!==e.length&&void 0===e.nodeType}function w(e){return e&&"object"==typeof e&&e._isDom}function x(e){return!e||!0===e||"-"===e}function T(e){return x(e)||"string"==typeof e}function A(e,t,n,a){let i=typeof e;return"number"===i||"bigint"===i||!(!a||!x(e))||(t&&"string"===i&&(e=v(e,t)),n&&"string"===i&&(e=e.replace(r,"")),!isNaN(parseFloat(e))&&isFinite(e))}function _(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var D=Object.freeze({__proto__:null,arrayLike:b,dom:w,element:function(e){return"object"==typeof e&&e.nodeName},empty:x,html:T,htmlNum:function(e,t,r,n){return!(!n||!x(e))||("string"==typeof e&&e.match(/<(input|select)/i)?null:T(e)&&!!A(h(e),t,r,n)||null)},jquery:function(e){return e&&"string"==typeof e.jquery},num:A,plainObject:_});function j(e,t){if(!e)return;let r=Object.keys(e);for(let n=0;r.length>n;n++){let a=r[n];t(a,e[a],n)}}function C(e,...t){let r=Object(e);for(let n=0;t.length>n;n++){let e=t[n];if(null!=e)for(let t in e){let n=e[t];"__proto__"!==t&&r!==n&&void 0!==n&&(r[t]=n)}}return r}function O(e,...t){if(!e)return{};for(let r=0;t.length>r;r++){let n=t[r];if(n)for(const[t,r]of Object.entries(n))Array.isArray(r)?(Array.isArray(e[t])||(e[t]=[]),O(e[t],r)):_(r)?(_(e[t])||(e[t]={}),O(e[t],r)):void 0!==n[t]&&(e[t]=n[t])}return e}var N=Object.freeze({__proto__:null,assign:C,assignDeep:O,assignDeepObjects:function(e,t,r=!1){let n;for(let a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n=t[a],_(n)?(_(e[a])||(e[a]={}),O(e[a],n)):e[a]=r&&"data"!==a&&"aaData"!==a&&Array.isArray(n)?n.slice():n);return e},each:j,map:function(e,t){let r=[];return j(e,(e,n)=>{r.push(t(e,n))}),r}}),S={cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{},traditional:!1,url:location.href};function R(e){let t=new XMLHttpRequest,r=C({},S,e),n=function(e){let t=[];return"GET"===E(e)&&t.push(M(e.data,e.traditional)),"DELETE"!==E(e)||void 0!==e.deleteBody&&!0!==e.deleteBody||(t.push(M(e.data,e.traditional)),delete e.data),!1===e.cache&&t.push(M({_:+new Date})),I(t.filter(e=>!!e).join("&"),e)}(r),a=E(r),i=null;return"json"===r.submitAs&&r.data&&(r.data=JSON.stringify(r.data),r.contentType||(r.contentType="application/json; charset=utf-8")),t.open(a,r.url+(n?(r.url.includes("?")?"&":"?")+n:""),!0,r.username||null,r.password||null),!r.contentType||r.data instanceof FormData||t.setRequestHeader("Content-Type",r.contentType),r.headers&&!r.headers["X-Requested-With"]&&new URL(r.url,window.location.origin).origin===window.location.origin&&(r.headers["X-Requested-With"]="XMLHttpRequest"),j(r.headers,(e,r)=>{t.setRequestHeader(e,r)}),r.data instanceof FormData?i=r.data:"GET"!==a&&r.data&&("string"==typeof r.data?i=r.data:(i=M(r.data,r.traditional),i=I(i,r),r.data=i)),t.onreadystatechange=function(){if(4!=t.readyState)return;let e=t.responseText,n="success";if(0!==t.status){if(204===t.status||"HEAD"===a?n="nocontent":304===t.status?n="notmodified":400>t.status||(n="error"),"json"===r.dataType)try{e=JSON.parse(e)}catch(i){n="parseerror"}else if(!r.dataType)try{e=JSON.parse(e)}catch(i){}"success"===n?L(r.success,e,n,t):L(r.error,t,n,t.statusText),L(r.complete,t,n)}},r.beforeSend&&!1===r.beforeSend.call(r,t,r)?(t.abort(),t):(t.send(i),t)}function L(e,t,r,n){if(!e)return;let a=Array.isArray(e)?e:[e];for(let i=0;a.length>i;i++)a[i](t,r,n)}function I(e,t){return 0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")?e.replace(/%20/g,"+"):e}function E(e){let t="GET";return e.type&&(t=e.type),e.method&&(t=e.method),t.toUpperCase()}function M(e,t=!1){var r=[];return null==e?"":(F(r,e,t),r.join("&"))}function F(e,t,r,n=""){let a=Array.isArray(t);for(let i in t){let o=t[i],l=Array.isArray(o)||!r&&_(o);n&&(i=r?n:n+"["+(!a||l?i:"")+"]"),!n&&a?k(e,o.name,o.value):l?F(e,o,r,i):k(e,i,o)}}function k(e,t,r){let n="function"==typeof r?r():r;e.push(encodeURIComponent(t)+"="+encodeURIComponent(null===n?"":n))}function q(e,t){if(Array.isArray(t)||b(t))for(var r=0;t.length>r;r++)q(e,t[r]);else e.push(t);return e}function H(e,t){return e.filter(e=>t.includes(e))}function P(e,t,r){let n=[],a=0,i=e.length;if(void 0!==r)for(;i>a;a++)e[a]&&e[a][t]&&n.push(e[a][t][r]);else for(;i>a;a++)e[a]&&n.push(e[a][t]);return n}function W(e,t,r,n){let a=[],i=0,o=t.length;if(void 0!==n)for(;o>i;i++)e[t[i]]&&e[t[i]][r]&&a.push(e[t[i]][r][n]);else for(;o>i;i++)e[t[i]]&&a.push(e[t[i]][r]);return a}function z(e,t){var r,n=[];void 0===t?(t=0,r=e):(r=t,t=e);for(var a=t;r>a;a++)n.push(a);return n}function B(e){for(var t=[],r=0,n=e.length;n>r;r++)e[r]&&t.push(e[r]);return t}function U(e){if(Array.from&&Set)return Array.from(new Set(e));if(function(e){if(2>e.length)return!0;for(var t=e.slice().sort(),r=t[0],n=1,a=t.length;a>n;n++){if(t[n]===r)return!1;r=t[n]}return!0}(e))return e.slice();var t,r,n,a=[],i=e.length,o=0;e:for(r=0;i>r;r++){for(t=e[r],n=0;o>n;n++)if(a[n]===t)continue e;a.push(t),o++}return a}R.defaults=S,R.serialize=M;var X,$,V,J,G,Y,Z,Q=Object.freeze({__proto__:null,flatten:q,intersection:H,pluck:P,pluckOrder:W,range:z,removeEmpty:B,selectiveJoin:function(e,t){if("number"==typeof t)return""+e[t];if(0===t.length)return"";let r=""+e[t[0]];for(let n=1;t.length>n;n++)r+="  "+e[t[n]];return r},unique:U}),K=/\[.*?\]$/,ee=/\(\)$/;function te(e){return(e.match(/(\\.|[^.])+/g)||[""]).map(function(e){return e.replace(/\\\./g,".")})}function re(e){if(null===e)return function(e){return e};if("function"==typeof e)return function(t,r,n,a){return e(t,r,n,a)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("(")){if(_(e)){let t={};return j(e,function(e,r){r&&(t[e]=re(r))}),function(e,r,n,a){let i=t[r]||t._;return void 0!==i?i(e,r,n,a):e}}return function(t){return t[e]}}{let t=function(e,r,n){let a,i,o,l;if(""!==n){let s=te(n);for(let n=0,c=s.length;c>n;n++){if(a=s[n].match(K),i=s[n].match(ee),a){if(s[n]=s[n].replace(K,""),""!==s[n]&&(e=e[s[n]]),o=[],s.splice(0,n+1),l=s.join("."),Array.isArray(e))for(let n=0,a=e.length;a>n;n++)o.push(t(e[n],r,l));let i=a[0].substring(1,a[0].length-1);e=""===i?o:o.join(i);break}if(i)s[n]=s[n].replace(ee,""),e=e[s[n]]();else{if(null===e||null===e[s[n]])return null;if(void 0===e||void 0===e[s[n]])return;e=e[s[n]]}}}return e};return function(r,n){return t(r,n,e)}}}function ne(e){if(null===e)return function(){};if("function"==typeof e)return function(t,r,n){e(t,"set",r,n)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return _(e)?ne(e._):function(t,r){t[e]=r};{let t=function(e,r,n){let a,i,o,l,s,c=te(n),u=c[c.length-1];for(let d=0,f=c.length-1;f>d;d++){if("__proto__"===c[d]||"constructor"===c[d])throw new Error("Cannot set prototype values");if(i=c[d].match(K),o=c[d].match(ee),i){if(c[d]=c[d].replace(K,""),e[c[d]]=[],a=c.slice(),a.splice(0,d+1),s=a.join("."),Array.isArray(r))for(let n=0,a=r.length;a>n;n++)l={},t(l,r[n],s),e[c[d]].push(l);else e[c[d]]=r;return}o&&(c[d]=c[d].replace(ee,""),e=e[c[d]](r)),null==e[c[d]]&&(e[c[d]]={}),e=e[c[d]]}u.match(ee)?e=e[u.replace(ee,"")](r):e[u.replace(K,"")]=r};return function(r,n){return t(r,n,e)}}}function ae(e,t){var r="string"==typeof e?t:e,n="string"==typeof t?t:e;if(void 0===r&&"string"==typeof n)switch(n){case"lib":case"jq":return void 0!==Z?Z:window.jQuery||null;case"win":return window;case"datatable":return Y;case"datetime":return G;case"luxon":return V||window.luxon||null;case"moment":return J||window.moment||null;case"bootstrap":return X||window.bootstrap||null;case"foundation":return $||window.Foundation||null;default:return null}"lib"===n||"jq"===n||r&&r.fn&&r.fn.jquery?(Z=r,Y&&Z&&(Y.$=Z,Z.fn.dataTable=Y,Z.fn.DataTable=function(e){return new Y(this.toArray(),e)},Z.fn.dataTableSettings=Y.ext.settings,Z.fn.dataTableExt=Y.ext,j(Y,function(e,t){Z.fn.DataTable[e]=t}))):"datatable"===n||r&&r.isDataTable?Y=r:"win"===n||r&&r.document?(window=r,document=r.document):"datetime"===n||r&&"DateTime"===r.type?G=r:"luxon"===n||r&&r.FixedOffsetZone?V=r:"moment"===n||r&&r.isMoment?J=r:"bootstrap"===n||r&&r.Modal&&"modal"===r.Modal.NAME?X=r:("foundation"===n||r&&r.Reveal)&&($=r)}function ie(e,t=250){let r;return function(...n){clearTimeout(r),r=setTimeout(()=>{e.call(this,...n)},t)}}function oe(e,t=200){let r,n;return function(...a){const i=+new Date;r&&r+t>i?(clearTimeout(n),n=setTimeout(()=>{r=void 0,e.call(this,...a)},t)):(r=i,e.call(this,...a))}}function le(e,t){let r=ae("datatable");for(var n,a,i=t?t.split("."):r.ext.version.split("."),o=e.split("."),l=0,s=o.length;s>l;l++)if((n=parseInt(i[l],10)||0)!==(a=parseInt(o[l],10)||0))return n>a;return!0}var se={ajax:R,array:Q,conv:y,data:Object.freeze({__proto__:null,get:re,set:ne}),debounce:ie,diacritics:f,escapeHtml:d,escapeRegex:u,external:ae,get:re,is:D,object:N,regex:i,set:ne,string:p,stripHtml:h,throttle:oe,timer:Object.freeze({__proto__:null,debounce:ie,throttle:oe}),unique:U,version:Object.freeze({__proto__:null,check:le})},ce=1,ue=[];function de(e){let t=e._event_uid;return t&&ue[t]?ue[t]:null}var fe=["click","dblclick","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"];function he(e,t,r){Object.defineProperty(e,t,{configurable:!0,get:()=>r})}function pe(e){if(!e)return{eventName:null,namespaces:[]};let t=e.split("."),r=t.shift(),n=!1,a=!1;return"mouseenter"===r?(r="mouseover",n=!0):"mouseleave"===r?(r="mouseout",n=!0):"focus"===r?(r="focusin",a=!0):"blur"===r?(r="focusout",a=!0):"ready"===r&&(r="DOMContentLoaded"),{eventName:r,isFocus:a,isHover:n,namespaces:t}}function ge(e,t,r,n,a){let i=ae("jq");if(i){let o=a?"one":"on";return void(n?i(e)[o](t,n,r):i(e)[o](t,r))}let{eventName:o,namespaces:l,isFocus:s,isHover:c}=pe(t);if(!o)return;if(e===document&&"DOMContentLoaded"===o&&t.includes("ready")&&"complete"===document.readyState)return void r(new Event("DOMContentLoaded"));let u=function(t){let i=e;if(t.namespace&&!H(l,t.namespace.split(".")).length)return;if(!n&&(s&&t.target!==e||c&&t.relatedTarget&&e.contains(t.relatedTarget)))return;if(n){let r=function(e,t,r){let n=Array.from(e.querySelectorAll(t)),a=r.target;for(;a&&a!==this;a=a.parentNode)for(let e of n)if(e===a)return a}(e,n,t);if(!r)return;if(c&&t.relatedTarget&&r.contains(t.relatedTarget))return;i=r}he(t,"currentTarget",i),he(t,"delegateTarget",e),he(t,"relatedTarget",t.relatedTarget);let u=r.apply(i,[t,...t._args||[]]);a&&me(e,o,r,n),!1===u&&(t.preventDefault(),t.stopPropagation()),t.result=u};u.delegateSelector=n,u.original=r,u.one=a,u.type=o,u.namespaces=l,function(e,t){let r=function(e){return e._event_uid||(e._event_uid=ce++),e._event_uid}(e);void 0===ue[r]&&(ue[r]=[]),ue[r].push(t)}(e,u),e.addEventListener(o,u)}function me(e,t,r,n){let a=ae("jq");if(a)return void(n?a(e).off(t,n,r):a(e).off(t,r));let{eventName:i,namespaces:o}=pe(t),l=[],s=de(e);null!==s&&(l=i&&n&&r?s.filter(e=>e.type===i&&e.delegateSelector===n&&e.original===r):i&&n?s.filter(e=>e.type===i&&e.delegateSelector===n):i&&r?s.filter(e=>e.type===i&&e.original===r):i?s.filter(e=>e.type===i):s,o.length&&(l=l.filter(e=>e.namespaces.filter(e=>o.includes(e)).length===o.length)),l.forEach(t=>{!function(e,t){let r=de(e);if(!r)return;let n=r.indexOf(t);-1!==n&&r.splice(n,1)}(e,t),e.removeEventListener(t.type,t)}))}var ve={height(){var e;return(null===(e=document.querySelector("html"))||void 0===e?void 0:e.clientHeight)||0},off(e,t=null){me(window,e,t,null)},on(e,t){ge(window,e,t,null,!1)},one(e,t){ge(window,e,t,null,!0)},scrollLeft:e=>(void 0!==e&&(window.scrollX=e),window.scrollX),scrollTop:e=>(void 0!==e&&(window.scrollY=e),window.scrollY),width(){var e;return(null===(e=document.querySelector("html"))||void 0===e?void 0:e.clientWidth)||0}};function ye(e){let t=document.createElement(e);return new we(t)}function be(e){return new we(e)}var we=class e{constructor(e){this.length=0,this._isDom=!0,e&&this.add(e)}add(t,r=!0){if(t)if("string"==typeof t)De(this,Array.from(document.querySelectorAll(t)));else if(t instanceof e)De(this,t.get());else if("object"!=typeof t||t.nodeName||void 0===t.length)De(this,t);else{let e=t;for(let t=0;e.length>t;t++)De(this,e[t]);r=!1}return r&&this.sort(),this}append(e){if(!e)return this;b(e)||(e=[e]);let t=q([],e).filter(e=>!!e);return t.find(e=>"string"==typeof e)?this.each(e=>{for(let r=0;t.length>r;r++)"string"==typeof t[r]?e.insertAdjacentHTML("beforeend",t[r]):e.append(t[r])}):this.each(e=>{let r=new DocumentFragment;for(let n=0;t.length>n;n++)r.append(t[n]);e.append(r)})}appendTo(t){return(t instanceof e?t:new e(t)).append(this),this}attr(e,t){return"string"==typeof e&&void 0===t?this.count()?this[0].getAttribute(e):null:this.each(r=>{"string"==typeof e?null!=t&&r.setAttribute(e,"string"==typeof t?t:t.toString()):j(e,(e,t)=>{null!=t&&r.setAttribute(e,t)})})}attrRemove(e){return this.each(t=>t.removeAttribute(e))}blur(){return this.each(e=>e.blur())}children(e){return this.map(t=>{let r=Array.from(t.children);return e?r.filter(t=>t.matches(e)):r})}classAdd(e){if(!e)return this;let t=je(e);return this.each(e=>{t.filter(e=>e).forEach(t=>e.classList.add(t))})}classHas(e){return!!this.count()&&this[0].classList.contains(e)}classRemove(e){if(!e)return this;let t=je(e);return this.each(e=>{t.filter(e=>e).forEach(t=>e.classList.remove(t))})}classToggle(e,t){let r=Array.isArray(e)?e:e.split(" ");return this.each(e=>{r.filter(e=>e).forEach(r=>e.classList.toggle(r,t))})}clone(e=!1){return this.map(t=>t.cloneNode(e))}closest(e){return this.map("string"==typeof e?t=>t.closest(e):t=>{for(;t.parentElement;){if(t.parentElement===e)return e;t=t.parentElement}return null})}contains(e){return 0!==this.find(e).count()}count(){return this.length}css(e,t){return"string"==typeof e&&void 0===t?this.length?getComputedStyle(this[0])[e]:null:this.each(r=>{"string"==typeof e?r.style[e]=t:Object.assign(r.style,e)})}data(e,t){if(!e){let e={};return this.count()?(se.object.each(this[0].dataset,(t,r)=>{e[t]=xe(r)}),e):e}return"string"==typeof e&&void 0===t?this.length?xe(this[0].dataset[e]):null:("string"==typeof e?this.each(r=>r.dataset[e]=JSON.stringify(t)):j(e,(e,t)=>{this.each(r=>r.dataset[e]=JSON.stringify(t))}),this)}detach(){return this.each(e=>e.remove())}detachChildren(){return this.each(e=>{e.replaceChildren()})}each(e){for(let t=0;this.length>t;t++){let r=this[t];e.call(r,r,t)}return this}eachReverse(e){for(let t=this.length-1;t>=0;t--){let r=this[t];e.call(r,r,t)}return this}empty(){return this.each(e=>{var t;if(e.replaceChildren)e.replaceChildren();else for(;e.childNodes.length;)null===(t=e.firstChild)||void 0===t||t.remove()})}eq(t){return t<this.count()?new e(this.get(t)):new e}get(e){return void 0!==e?this[e]:Array.from(this)}focus(){return this.each(e=>e.focus())}filter(e){return this.map(t=>void 0===e?t:"function"==typeof e?e(t)?t:null:"string"!=typeof e?b(e)?Array.from(e).includes(t)?t:null:e===t?t:null:t.matches(e)&&(t.parentNode||!e.match(/:\w+-child/)&&!e.match(/:\w+-of-type/))?t:null)}find(t){if(null===t)return new e;if("string"==typeof t)return this.map(e=>Array.from(e.querySelectorAll(t)));let r=t instanceof e?t.get():t,n=!1;return this.each(t=>{new e(r).closest(t).count()&&(n=!0)}),new e(n?r:[])}first(){return new e(this.length?this[0]:null)}height(e){if(!this.count())return 0;if(void 0===e||"withPadding"===e||"withBorder"===e||"withMargin"===e||"inner"===e||"outer"===e){let t=this[0],r=window.getComputedStyle(this[0]),n=t.getBoundingClientRect().height;if(e&&"content"!==e)return"withPadding"===e||"inner"===e?n-parseFloat(r.borderTop)-parseFloat(r.borderBottom):"withBorder"===e?n:n+parseFloat(r.marginTop)+parseFloat(r.marginBottom);{let e=t.offsetHeight-parseFloat(r.borderTop)-parseFloat(r.borderBottom)-t.clientHeight;return n-parseFloat(r.paddingTop)-parseFloat(r.paddingBottom)-parseFloat(r.borderTop)-parseFloat(r.borderBottom)-e}}return this.each(t=>t.style.height="string"==typeof e?e:e+"px")}hide(){return this.each(e=>{e.style.display="none"})}html(e){return void 0!==e?this.each(t=>{t.innerHTML=e}):this.count()?this[0].innerHTML:null}is(e){return this.filter(e).count()>0}isAttached(){return 0!==this.count()&&document.body.contains(this[0])}isVisible(){if(0===this.count())return!1;let e=this[0];return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}index(){if(this.count()){let e=this[0];return Array.from(e.parentNode.children).indexOf(e)}return-1}insertAfter(e){let t=_e(e);return this.eachReverse(e=>{t.forEach(t=>{var r;return null===(r=null==t?void 0:t.parentNode)||void 0===r?void 0:r.insertBefore(e,t.nextSibling)})})}insertBefore(e){let t=_e(e);return this.each(e=>{t.forEach(t=>{var r;return null===(r=null==t?void 0:t.parentNode)||void 0===r?void 0:r.insertBefore(e,t)})})}last(){let t=this;return new e(t.length?t[t.length-1]:null)}map(t){let r=new e;return this.each(e=>{r.add(t(e),!1)}),r}mapTo(e){let t=[];return this.each((r,n)=>t.push(e(r,n))),t}off(e,t,r){let{handler:n,names:a,selector:i}=Te(e,t,r);return this.each(e=>{a.forEach(t=>{me(e,t,n,i)})})}offset(){if(!this.count())return{top:0,left:0};let e=this[0].getBoundingClientRect(),t=document.documentElement;return{top:e.top+window.pageYOffset-t.clientTop,left:e.left+window.pageXOffset-t.clientLeft}}offsetParent(){return this.map(e=>e.offsetParent||document.body)}on(e,t,r){let{handler:n,names:a,selector:i}=Te(e,t,r);return this.each(e=>{a.filter(e=>null!==e).forEach(t=>{ge(e,t,n,i,!1)})})}one(e,t,r){let{handler:n,names:a,selector:i}=Te(e,t,r);return this.each(e=>{a.filter(e=>null!==e).forEach(t=>{ge(e,t,n,i,!0)})})}parent(e){return this.map(t=>{let r=t.parentElement;return e?(null==r?void 0:r.matches(e))?r:null:r})}position(){if(!this.count())return{top:0,left:0};let e=this[0],{marginTop:t,marginLeft:r}=getComputedStyle(e);return{top:e.offsetTop-parseInt(t),left:e.offsetLeft-parseInt(r)}}prepend(t){return this.each(r=>{t instanceof e?Array.from(t).reverse().forEach(e=>r.prepend(e)):"string"==typeof t?r.insertAdjacentHTML("afterbegin",t):r.prepend(t)})}prependTo(t){return t instanceof e?t.prepend(this):new e(t).prepend(this),this}prop(e,t){return"string"==typeof e&&void 0===t?this.count()?this[0][e]:null:this.each(r=>{r[e]=t})}propRemove(e){return this.each(t=>{delete t[e]})}remove(){return this.each(e=>e.remove())}replaceWith(t){return this.each(r=>{t instanceof e?r.replaceWith(...t.get()):r.replaceWith(t)})}scrollLeft(e){return void 0===e?this.count()?this[0].scrollLeft:0:this.each(t=>t.scrollLeft=e)}scrollTop(e){return void 0===e?this.count()?this[0].scrollTop:0:this.each(t=>t.scrollTop=e)}siblings(){return this.map(e=>e.parentElement?Array.from(e.parentElement.children).filter(t=>t!==e):[])}show(){return this.each(e=>{e.style.display="block"})}sort(){return Array.prototype.sort.call(this,Ae),this}text(e){return void 0===e?this.count()?this[0].textContent:null:this.each(t=>{t.textContent=e})}transition(t,r,n,a){if(!this.count())return this;if(r||0===r||(r=400),n||(n=""),a||(a=()=>{}),e.transitions&&0!==r){let e=this[0];e._dom_tra&&(clearTimeout(e._dom_tra),delete e._dom_tra),setTimeout(()=>{this.css("transition","all "+r+"ms "+n),this.css(t)},0),e._dom_tra=setTimeout(()=>{delete e._dom_tra,this.css("transition",""),a.call(this)},r)}else this.css(t),a.call(this);return this}trigger(e,t=!0,r=null,n=null,a=!1){let{names:i}=Te(e),o=[];return this.each(e=>{i.filter(e=>null!==e).forEach(i=>{o.push(function(e,t,r=!1,n=[],a=null,i=!1){let o=ae("jq");if(o){let l=r?"trigger":"triggerHandler",s=o.Event(t);return j(a,(e,t)=>{he(s,e,t)}),o(e)[l](s,n||[]),i?(s.defaultPrevented=s.isDefaultPrevented(),s):!s.isDefaultPrevented()}let{eventName:l,namespaces:s}=pe(t);if(!l)return!1;let c=fe.includes(l.toLowerCase())?new MouseEvent(l,{bubbles:r,cancelable:!0}):new Event(l,{bubbles:r,cancelable:!0});return he(c,"namespace",s.join(".")),he(c,"_args",n||[]),j(a,(e,t)=>he(c,e,t)),e.dispatchEvent(c),i?c:!c.defaultPrevented}(e,i,t,r,n,a))})}),o}val(e){if(void 0===e){if(!this.count())return null;let e=this[0];return e.options&&e.multiple?Array.from(e.options).filter(e=>e.selected).map(e=>e.value):e.value}return this.each(t=>{if(t.options&&t.multiple){let r=Array.isArray(e)?e:[e];Array.from(t.options).forEach(e=>e.selected=r.includes(e.value))}else t.value=e})}width(e){if(!this.count())return 0;if(void 0===e||"withPadding"===e||"withBorder"===e||"withMargin"===e||"inner"===e||"outer"===e){let t=this[0],r=window.getComputedStyle(t),n=t.getBoundingClientRect().width;if(e&&"content"!==e)return"withPadding"===e||"inner"===e?n-parseFloat(r.borderLeft)-parseFloat(r.borderRight):"withBorder"===e?n:n+parseFloat(r.marginLeft)+parseFloat(r.marginRight);{let e=t.offsetWidth-parseFloat(r.borderLeft)-parseFloat(r.borderRight)-t.clientWidth;return n-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight)-parseFloat(r.borderLeft)-parseFloat(r.borderRight)-e}}return this.each(t=>t.style.width="string"==typeof e?e:e+"px")}};function xe(e){if(void 0===e)return null;try{return JSON.parse(e)}catch(t){return e}}function Te(e,t,r){let n,a;return"string"==typeof t?(n=t,a=r):(n=null,a=t),{handler:a,names:e?e.split(" ").map(e=>e.trim()):[null],selector:n}}function Ae(e,t){if(e===t)return 0;let r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_DISCONNECTED?document.body.contains(e)?-1:document.body.contains(t)?1:0:r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function _e(e){return w(e)?e.get():Array.isArray(e)?e:[e]}function De(e,t){if(se.is.arrayLike(t))for(var r=0;t.length>r;r++){let n=t[r];null!=n&&(e[e.length]=n,e.length++)}else null!=t&&(e[e.length]=t,e.length++)}function je(e){let t=[],r=function(e){t.push.apply(t,e.split(" "))};return Array.isArray(e)?e.forEach(e=>r(e)):r(e),t}we.c=ye,we.create=ye,we.s=be,we.select=be,we.transitions=!0,we.w=ve,we.prototype.addClass=we.prototype.classAdd,we.prototype.hasClass=we.prototype.classHas,we.prototype.removeClass=we.prototype.classRemove;var Ce={},Oe=[];function Ne(e,t,r=""){Ce[e]=t,r&&Oe.push({cFeature:r,fnInit:t})}function Se(e,t,r,n){let a=[],i=Math.floor(r/2),o=n?2:1,l=n?1:0;return t>r?1===r?a=[e]:3===r?e>1?t-2>e?a=["ellipsis",e,"ellipsis"]:(a=z(t-2,t),a.unshift("ellipsis")):a=[0,1,"ellipsis"]:e>i?t-1-i>e?(a=z(e-i+o,e+i-l),a.push("ellipsis"),a.unshift("ellipsis"),n&&(a.push(t-1),a.unshift(0))):(a=z(t-(r-o),t),a.unshift("ellipsis"),n&&a.unshift(0)):(a=z(0,r-o),a.push("ellipsis"),n&&a.push(t-1)):a=z(0,t),a}var Re={simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(){return["numbers"]},simple_numbers:function(){return["previous","numbers","next"]},full_numbers:function(){return["first","previous","numbers","next","last"]},first_last:function(){return["first","last"]},first_last_numbers:function(){return["first","numbers","last"]},_numbers:Se,numbers_length:7};function Le(e,t){e.start&&t("start",e.start),e.end&&t("end",e.end),e.full&&t("full",e.full)}var Ie={className:{},detect:[],render:{},search:{},order:{}};function Ee(e,t){return function(t){return se.is.empty(t)||"string"!=typeof t?t:(t=t.replace(se.regex.reNewLines," "),e&&(t=se.stripHtml(t)),t=se.diacritics(t,!1))}}function Me(e,t,r,n){return 0===e||e&&"-"!==e?"number"==typeof e||"bigint"==typeof e?e:(t&&(e=se.conv.numToDecimal(e,t)),"string"==typeof e&&(r&&(e=e.replace(r,"")),n&&(e=e.replace(n,""))),1*e):-1/0}function Fe(e,t,r){if(!t)return{className:Ie.className[e],detect:Ie.detect.find(function(t){return t._name===e}),order:{pre:Ie.order[e+"-pre"],asc:Ie.order[e+"-asc"],desc:Ie.order[e+"-desc"]},render:Ie.render[e],search:Ie.search[e]};var n=function(t,r){Ie[t][e]=r},a=function(t){Object.defineProperty(t,"_name",{value:e});var r=Ie.detect.findIndex(function(t){return t._name===e});-1===r?Ie.detect.unshift(t):Ie.detect.splice(r,1,t)},i=function(t){Ie.order[e+"-pre"]=t.pre,Ie.order[e+"-asc"]=t.asc,Ie.order[e+"-desc"]=t.desc};void 0===r&&(r=t,t=void 0),"className"===t?n("className",r):"detect"===t?a(r):"order"===t?i(r):"render"===t?n("render",r):"search"===t?n("search",r):t||(r.className&&n("className",r.className),void 0!==r.detect&&a(r.detect),r.order&&i(r.order),void 0!==r.render&&n("render",r.render),void 0!==r.search&&n("search",r.search))}var ke=function(e,t){return e=null!=e?e.toString().toLowerCase():"",t=null!=t?t.toString().toLowerCase():"",e.localeCompare(t,navigator.languages[0]||navigator.language,{numeric:!0,ignorePunctuation:!0})},qe=function(e,t){return e=se.stripHtml(e),t=se.stripHtml(t),ke(e,t)};Fe("string",{detect:function(){return"string"},order:{pre:function(e){return se.is.empty(e)&&"boolean"!=typeof e?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""}},search:Ee(!1)}),Fe("string-utf8",{detect:{allOf:function(){return!0},oneOf:function(e){return!se.is.empty(e)&&navigator.languages&&"string"==typeof e&&!!e.match(/[^\x00-\x7F]/)}},order:{asc:ke,desc:function(e,t){return-1*ke(e,t)}},search:Ee(!1)}),Fe("html",{detect:{allOf:function(e){return se.is.empty(e)||"string"==typeof e&&-1!==e.indexOf("<")},oneOf:function(e){return!se.is.empty(e)&&"string"==typeof e&&-1!==e.indexOf("<")}},order:{pre:function(e){return se.is.empty(e)?"":e.replace?se.stripHtml(e).trim().toLowerCase():e+""}},search:Ee(!0)}),Fe("html-utf8",{detect:{allOf:function(e){return se.is.empty(e)||"string"==typeof e&&-1!==e.indexOf("<")},oneOf:function(e){return navigator.languages&&!se.is.empty(e)&&"string"==typeof e&&-1!==e.indexOf("<")&&"string"==typeof e&&!!e.match(/[^\x00-\x7F]/)}},order:{asc:qe,desc:function(e,t){return-1*qe(e,t)}},search:Ee(!0)}),Fe("date",{className:"dt-type-date",detect:{allOf:function(e){if(e&&!(e instanceof Date)&&!se.regex.reDate.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||se.is.empty(e)},oneOf:function(e){return e instanceof Date||"string"==typeof e&&se.regex.reDate.test(e)}},order:{pre:function(e){var t=Date.parse(e);return isNaN(t)?-1/0:t}}}),Fe("html-num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,t){return se.is.htmlNum(e,t.language.decimal,!0,!1)},oneOf:function(e,t){return se.is.htmlNum(e,t.language.decimal,!0,!1)}},order:{pre:function(e,t){return Me(e,t.language.decimal,se.regex.reHtml,se.regex.reFormattedNumeric)}},search:Ee(!0)}),Fe("html-num",{className:"dt-type-numeric",detect:{allOf:function(e,t){return se.is.htmlNum(e,t.language.decimal,!1,!0)},oneOf:function(e,t){return se.is.htmlNum(e,t.language.decimal,!1,!1)}},order:{pre:function(e,t){return Me(e,t.language.decimal,se.regex.reHtml)}},search:Ee(!0)}),Fe("num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,t){return se.is.num(e,t.language.decimal,!0,!0)},oneOf:function(e,t){return se.is.num(e,t.language.decimal,!0,!1)}},order:{pre:function(e,t){return Me(e,t.language.decimal,se.regex.reFormattedNumeric)}}}),Fe("num",{className:"dt-type-numeric",detect:{allOf:function(e,t){return se.is.num(e,t.language.decimal,!1,!0)},oneOf:function(e,t){return se.is.num(e,t.language.decimal,!1,!1)}},order:{pre:function(e,t){return Me(e,t.language.decimal)}}});var He={builder:"-source-",buttons:{},ccContent:{},classes:{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled",nav:""}},errMode:"alert",escape:{attributes:!1},feature:Oe,features:Ce,search:[],selector:{cell:[],column:[],row:[]},settings:[],legacy:{ajax:null},pager:Re,renderer:{footer:{_:(e,t,r)=>{t.classAdd(r.tfoot.cell)}},header:{_:(e,t,r)=>{t.classAdd(r.thead.cell),e.features.ordering||t.classAdd(r.order.none);var n=e.titleRow,a=t.closest("thead").find("tr"),i=t.parent().index();"disable"===t.attr("data-dt-order")||"disable"===t.parent().attr("data-dt-order")||!0===n&&0!==i||!1===n&&i!==a.count()-1||"number"==typeof n&&i!==n||we.s(e.table).on("order.dt.DT column-visibility.dt.DT",function(n,a,i){if(e===a){var o=a.sortDetails;if(o){var l=P(o,"col");if("column-visibility"!==n.type||l.includes(i)){var s,c=r.order,u=a.api.columns(t),d=e.columns[u.flatten()[0]],f=u.orderable().includes(!0),h="",p=u.indexes(),g=u.orderable(!0).flatten(),m=e.tabIndex,v=a.orderHandler&&f;t.classRemove(c.isAsc+" "+c.isDesc).classToggle(c.none,!f).classToggle(c.canAsc,v&&g.includes("asc")).classToggle(c.canDesc,v&&g.includes("desc"));var y=!0;for(s=0;p.length>s;s++)l.includes(p[s])||(y=!1);if(y){var b=u.order();t.classAdd((b.includes("asc")?c.isAsc:"")+(b.includes("desc")?c.isDesc:""))}var w=-1;for(s=0;l.length>s;s++)if(e.columns[l[s]].visible){w=l[s];break}if(p[0]==w){var x=o[0],T=d.orderSequence;t.attr("aria-sort","asc"===x.dir?"ascending":"descending"),h=T&&!T[x.index+1]?"Remove":"Reverse"}else t.attrRemove("aria-sort");if(f){var A=t.find(".dt-column-order");A.attr("role","button").attr("aria-label",f?d.ariaTitle+a.api.i18n("aria.orderable"+h):d.ariaTitle),-1!==m&&A.attr("tabindex",m)}}}}})}},layout:{_:(e,t,r)=>{let n=e.classes.layout,a=we.c("div").attr("id",r.id||null).classAdd(r.className||n.row).appendTo(t);Le(r,function(e,t){var r="";t.table&&(a.classAdd(n.tableRow),r+=n.tableCell+" "),r+="start"===e?n.start:"end"===e?n.end:n.full,we.c("div").attr({id:t.id||null,class:t.className?t.className:n.cell+" "+r}).append(t.contents).appendTo(a)})}},pagingButton:{_:(e,t,r,n,a)=>{var i,o=e.classes.paging,l=[o.button];return n&&l.push(o.active),a&&l.push(o.disabled),{display:i="ellipsis"===t?we.c("span").classAdd("ellipsis").html(r).get(0):we.c("button").classAdd(l.join(" ")).attr("role","link").attr("type","button").html(r).get(0),clicker:i}}},pagingContainer:{_:(e,t)=>t}},rendererDisplayRowCells:Le,order:{},type:Ie,_unique:0,version:"3.0.1"};function Pe(e,t,r,n){r="DataTables warning: "+(e?"table id="+e.tableId+" - ":"")+r,n&&(r+=". For more information about this error, please see https://datatables.net/tn/"+n);var a=He.sErrMode||He.errMode;if(e&&Ue(e,null,"dt-error",[e,n,r],!0),"alert"==a)alert(r);else{if("throw"==a)throw new Error(r);"function"==typeof a&&a(e,n,r)}}function We(e,t,r,n){if(Array.isArray(r))for(let a=0;r.length>a;a++){let n=r[a];Array.isArray(n)?We(e,t,n[0],n[1]):We(e,t,n)}else void 0===n&&(n=r),void 0!==t[r]&&(e[n]=t[r])}function ze(e,t,r){we.s(e).on("click.DT",t,function(e){r(e)}).on("keypress.DT",t,function(e){13===e.which&&(e.preventDefault(),r(e))}).on("selectstart.DT",t,function(){return!1})}function Be(e,t,r){r&&e.callbacks[t].push(r)}function Ue(e,t,r,n,a=!1){var i=[];if(t&&(i=e.callbacks[t].slice().reverse().map(function(t){return t.apply(e.instance,n)})),null!==r){let t=we.s(e.table),o=t.trigger(r+".dt",a,n,{dt:e.api});a&&0===t.closest("body").count()&&we.s("body").trigger(r+".dt",a,n,{dt:e.api}),i.push(o[0])}return i}function Xe(e){var t=e.displayStart,r=Ir(e),n=e.pageLength;r>t||(t=r-n),t-=t%n,(-1===n||0>t)&&(t=0),e.displayStart=t}function $e(e){return e.features.serverSide?"ssp":e.ajax?"ajax":"dom"}function Ve(e,t,r){var n=e.formatNumber,a=e.displayStart+1,i=e.pageLength,o=Lr(e),l=Rr(e),s=-1===i;return t.replace(/_START_/g,n(a,e)).replace(/_END_/g,n(Ir(e),e)).replace(/_MAX_/g,n(l,e)).replace(/_TOTAL_/g,n(o,e)).replace(/_PAGE_/g,n(s?1:Math.ceil(a/i),e)).replace(/_PAGES_/g,n(s?1:Math.ceil(o/i),e)).replace(/_ENTRIES_/g,e.api.i18n("entries","",r)).replace(/_ENTRIES-MAX_/g,e.api.i18n("entries","",l)).replace(/_ENTRIES-TOTAL_/g,e.api.i18n("entries","",o))}function Je(e,t){if(t)if(1e4>t.length)e.push.apply(e,t);else for(var r=0;t.length>r;r++)e.push(t[r])}function Ge(e,t,r){let n=Array.isArray(r)?r:[r];for(var a=0;n.length>a;a++)e.on(t+".dt.DT",n[a])}function Ye(e){return He.escape.attributes&&j(e,function(t,r){e[t]=d(r)}),e}function Ze(e,t,r,n,a){return Ke?e[t](a):Qe?e[r](a):n?e[n](a):e}Object.assign(He,{afnFiltering:He.search,aTypes:He.type.detect,ofnSearch:He.type.search,oSort:He.type.order,afnSortData:He.order,aoFeatures:He.feature,oStdClasses:He.classes,oPagination:He.pager,sVersion:He.version,fnVersionCheck:le});var Qe,Ke,et=!1;function tt(e,t,r){var n;if(Qe=se.external("luxon"),Ke=se.external("moment")){if(!(n=Ke(e,t,r,!0)).isValid())return null}else if(Qe){if(!(n=t&&"string"==typeof e?Qe.DateTime.fromFormat(e,t):Qe.DateTime.fromISO(e)).isValid)return null;n=n.setLocale(r)}else t?(et||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),et=!0):n=new Date(e);return n}function rt(e){return function(t,r,n,a){0===arguments.length?(n="en",r=null,t=null):1===arguments.length?(n="en",r=t,t=null):2===arguments.length&&(n=r,r=t,t=null);var i="datetime"+(r?"-"+r:"");return Ie.order[i+"-pre"]||Fe(i,{detect:function(e){return e===i&&i},order:{pre:function(e){return e.valueOf()}}}),Ie.className[i]||(Ie.className[i]="dt-right"),function(o,l){if(null==o)if("--now"===a){var s=new Date;o=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds()))}else o="";if("type"===l)return i;if(""===o)return"sort"!==l?"":tt("0000-01-01 00:00:00",null,n);if(null!==r&&t===r&&"sort"!==l&&"type"!==l&&!(o instanceof Date))return o;let c={},u="string"==typeof o?o.match(se.regex.isoTimezone):null;u&&(c.timeZone="Z"===u[1]?"UTC":u[1]);var d=tt(o,t,n);if(null===d)return o;if("sort"===l)return d;var f=null===r?Ze(d,"toDate","toJSDate","")[e](navigator.language,c):Ze(d,"format","toFormat","toISOString",r);return"display"===l?se.escapeHtml(f):f}}}var nt=",",at=".";if(void 0!==window.Intl)try{for(var it=(new Intl.NumberFormat).formatToParts(100000.1),ot=0;it.length>ot;ot++)"group"===it[ot].type?nt=it[ot].value:"decimal"===it[ot].type&&(at=it[ot].value)}catch(Rn){}var lt={date:rt("toLocaleDateString"),datetime:rt("toLocaleString"),time:rt("toLocaleTimeString"),number:function(e,t,r,n,a){return null==e&&(e=nt),null==t&&(t=at),{display:function(i){if("number"!=typeof i&&"string"!=typeof i)return i;if(""===i||null===i)return i;var o="number"==typeof i?i:parseFloat(i),l=0>o?"-":"",s=Math.abs(o);if(s>=1e11||1e-4>s&&0!==s){var c=o.toExponential(r).split(/e\+?/);return c[0]+" x 10<sup>"+c[1]+"</sup>"}if(isNaN(o))return se.escapeHtml(i);o=o.toFixed(r);var u=Math.abs(o),d=parseInt(o,10),f=r?t+(u-d).toFixed(r).substring(2):"";return 0===d&&0===parseFloat(f)&&(l=""),l+(n||"")+d.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+f+(a||"")}}},text:function(){return{display:se.escapeHtml,filter:se.escapeHtml}}},st={ariaTitle:"",cellType:"td",className:"",contentPadding:"",createdCell:null,data:null,defaultContent:null,footer:null,name:"",orderable:!0,orderData:null,orderDataType:"std",orderSequence:["asc","desc",""],render:null,search:null,searchable:!0,title:null,type:null,visible:!0,width:null},ct=class{constructor(){this.attrSrc=!1,this.ariaTitle="",this.className=null,this.contentPadding=null,this.data=null,this.defaultContent=null,this.name=null,this.orderData=[],this.orderDataType="std",this.orderingClass=null,this.orderSequence=[],this.render=null,this.title=null,this.typeManual=null,this.wideStrings=null,this.width=null,this.widthOrig=null}},ut={boundary:!1,caseInsensitive:!0,columns:null,exact:!1,regex:!1,return:!1,search:"",smart:!0};function dt(e={}){return se.object.assignDeep({},ut,e)}var ft={barWidth:-1,scrollbarLeft:!1},ht=/^(a|aa|ai|ao|as|b|fn|i|m|o|s)([A-Z])([a-z].*$)/;function pt(e){if(!e)return e;let t=Object.keys(e),r=e;for(let n=0;t.length>n;n++){let a=t[n],i=a.match(ht);i&&(e[i[2].toLowerCase()+i[3]]=r[a]),se.is.plainObject(r[a])&&pt(r[a])}return e}function gt(e,t,r){void 0!==e[r]&&(e[t]=e[r])}function mt(e){pt(e),gt(e,"ordering","sort"),gt(e,"orderMulti","sortMulti"),gt(e,"orderClasses","sortClasses"),gt(e,"orderCellsTop","sortCellsTop"),gt(e,"order","sorting"),gt(e,"orderFixed","sortingFixed"),gt(e,"paging","paginate"),gt(e,"pagingType","paginationType"),gt(e,"pageLength","displayLength"),gt(e,"searching","filter"),gt(e,"stateDuration","cookieDuration"),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),"object"==typeof e.ordering?(e.orderIndicators=void 0===e.ordering.indicators||e.ordering.indicators,e.orderHandler=void 0===e.ordering.handler||e.ordering.handler,e.ordering=!0):!1===e.ordering?(e.orderIndicators=!1,e.orderHandler=!1):!0===e.ordering&&(e.orderIndicators=!0,e.orderHandler=!0),"boolean"==typeof e.orderCellsTop&&(e.titleRow=e.orderCellsTop);var t=e.searchCols;if(t)for(var r=0,n=t.length;n>r;r++)t[r]&&pt(t[r]);e.serverSide&&!e.searchDelay&&(e.searchDelay=400),e.language&&e.language.url&&!e.language.ajax&&(e.language.ajax=e.language.url)}function vt(e){pt(e),gt(e,"orderable","sortable"),gt(e,"orderData","dataSort"),gt(e,"orderSequence","sorting"),gt(e,"orderDataType","sortDataType"),gt(e,"className","class");var t=e.aDataSort,r=e.orderData;"number"==typeof t&&(e.orderData=[t]),"number"==typeof r&&(e.orderData=[r]),void 0===e.dataProp||e.data||(e.data=e.dataProp)}var yt={addedClasses:[],cells:[],data:[],details:void 0,detailsShow:void 0,displayData:null,idx:-1,orderCache:null,searchCellCache:null,searchRowCache:null,src:"dom",tr:null};function bt(e={}){return se.object.assignDeep({},yt,e)}function wt(e,t,r,n){var a=e.data.length,i=bt({src:r?"dom":"data",idx:a});i.data=t,e.data.push(i);for(var o=e.columns,l=0,s=o.length;s>l;l++)o[l].type=null;e.displayMaster.push(a);var c=e.rowIdFn(t);return void 0!==c&&(e.ids[c]=i),!r&&e.features.deferRender||Tr(e,a,r,n),a}function xt(e,t){return t.mapTo(t=>{let r=function(e,t){let r=e.rowReadObject?{}:[],n=we.s(t).children("th, td"),a=t.getAttribute("id");return n.each((t,n)=>{Ct(e,t,r,n)}),a&&se.set(e.rowId)(r,a),{data:r,cells:n.get()}}(e,t);return wt(e,r.data,t,r.cells)})}function Tt(e,t,r,n){"search"===n?n="filter":"order"===n&&(n="sort");var a=e.data[t];if(a){var i=e.drawCount,o=e.columns[r],l=a.data,s=o.defaultContent,c=o.dataGet(l,n,{settings:e,row:t,col:r});if("display"!==n&&c&&"object"==typeof c&&c.nodeName&&(c=c.innerHTML),void 0===c)return e.drawError!=i&&null===s&&(Pe(e,0,"Requested unknown parameter "+("function"==typeof o.data?"{function}":"'"+o.data+"'")+" for row "+t+", column "+r,4),e.drawError=i),s;if(c!==l&&null!==c||null===s||void 0===n){if("function"==typeof c)return c.call(l)}else c=s;if(null===c&&"display"===n)return"";if("filter"===n){var u=He.type.search;o.type&&u[o.type]&&(c=u[o.type](c))}return c}}function At(e,t){let r=we.s(e);t&&"object"==typeof t&&t.nodeName?r.empty().append(t):r.html(t)}function _t(e){return se.array.pluck(e.data,"data")}function Dt(e){e.data.length=0,e.displayMaster.length=0,e.display.length=0,e.ids={}}function jt(e,t,r,n){var a,i,o=e.data[t];if(o){if(o.orderCache=null,o.searchCellCache=null,o.displayData=null,"dom"!==r&&(r&&"auto"!==r||"dom"!==o.src)){var l=o.cells,s=xr(e,t);if(l.length)if(void 0!==n)At(l[n],s[n]);else for(a=0,i=l.length;i>a;a++)At(l[a],s[a])}else o.data=function(e,t,r){let n=t.cells;for(let a=0;n.length>a;a++)void 0!==r&&r!==a||Ct(e,n[a],t.data,a);if(t.tr){let r=t.tr.getAttribute("id");r&&se.set(e.rowId)(t.data,r)}return{data:t.data,cells:n}}(e,o,n).data;var c=e.columns;if(void 0!==n)c[n].type=null,c[n].wideStrings=null;else{for(a=0,i=c.length;i>a;a++)c[a].type=null,c[a].wideStrings=null;Ar(e,o)}Ue(e,null,"rowInvalidate",[e,t,n],!1)}}function Ct(e,t,r,n){let a=e.columns[n],i=t.innerHTML.trim();if(a.attrSrc){let e=a.data,n=function(e,t){if("string"==typeof e){let n=e.indexOf("@");if(-1!==n){let a=e.substring(n+1);se.set(e)(r,t.getAttribute(a))}}};se.set(e._)(r,i),n(e.sort,t),n(e.type,t),n(e.filter,t)}else a.setter||(a.setter=se.set(a.data)),a.setter(r,i)}function Ot(e){let t=we.s(e.tableWrapper);return t.isVisible()?t.width():0}function Nt(e,t){var r=e.columns[t];if(!r.wideStrings){for(var n=[],a=[],i=0,o=e.displayMaster.length;o>i;i++){var l=xr(e,e.displayMaster[i])[t],s=l&&"object"==typeof l&&l.nodeType?l.innerHTML:l+"";s=(s=s.replace(/id=".*?"/g,"").replace(/name=".*?"/g,"")).replace(/<script[\s\S]*?<\/script(?:\s[^>]*)?>/gi," ").replace(/<dialog[\s\S]*?<\/dialog(?:\s[^>]*)?>/gi," ").replace(/<template[\s\S]*?<\/template(?:\s[^>]*)?>/gi," ");var c=se.string.stripHtml(s," ").replace(/&nbsp;/g," ");a.push({str:s,len:c.length}),n.push(c)}a.sort(function(e,t){return t.len-e.len}).splice(3),r.wideStrings=a.map(function(e){return e.str});const u=n.join(" ").split(" ");u.sort(function(e,t){return t.length-e.length}),u.length&&r.wideStrings.push(u[0]),u.length>1&&r.wideStrings.push(u[1]),u.length>2&&r.wideStrings.push(u[3])}return r.wideStrings}function St(e){return null===e?"0px":"number"==typeof e?0>e?"0px":e+"px":e.match(/\d$/)?e+"px":e}function Rt(e){var t=e.columns;e.colgroup.empty();for(var r=0;t.length>r;r++)t[r].visible&&e.colgroup.append(t[r].colEl)}function Lt(e){let t=we.s(e.table),r=e.scroll,n=r.x,a=r.y;if(""===a&&""===n)return t.get(0);let i=e.classes.scrolling,o=e.captionNode,l=o?o._captionSide:null,s=t.clone(!1),c=t.clone(!1),u=t.children("tfoot"),d=function(e){return e?St(e):"100%"},f=we.c("div").classAdd(i.container).attr("role","table").append(we.c("div").classAdd(i.header.self).css({overflow:"hidden",position:"relative",border:"0",width:n?d(n):"100%"}).attr("role","none").append(we.c("div").classAdd(i.header.inner).css({"box-sizing":"content-box",width:r.xInner||"100%"}).attr("role","none").append(s.attrRemove("id").css("margin-left","0").append("top"===l?o:null).append(t.children("thead"))))).append(we.c("div").classAdd(i.body).css({position:"relative",overflow:"auto",width:d(n)}).attr("role","none").append(t));u.count()&&f.append(we.c("div").classAdd(i.footer.self).css({overflow:"hidden",border:"0",width:n?d(n):"100%"}).attr("role","none").append(we.c("div").classAdd(i.footer.inner).attr("role","none").append(c.attrRemove("id").css("margin-left","0").append("bottom"===l?o:null).append(t.children("tfoot")))));let h=f.children(),p=h.eq(0),g=h.eq(1),m=h.eq(2);g.on("scroll.DT",()=>{let e=g.scrollLeft();p.scrollLeft(e),m.scrollLeft(e)}),p.on("scroll.DT",()=>{let e=p.scrollLeft();g.scrollLeft(e),m.scrollLeft(e)}),m.on("scroll.DT",()=>{let e=m.scrollLeft();p.scrollLeft(e),g.scrollLeft(e)}),g.css("max-height",d(a)),r.collapse||g.css("height",d(a)),e.scrollHead=p,e.scrollBody=g,e.scrollFoot=m,e.callbacks.draw.push(It),t.attr("role","none"),t.find("tbody").attr("role","rowgroup"),s.attr("role","none"),c.attr("role","none"),e.colgroup.find("colgroup").attr("role","none");let v=t.attr("aria-describedby");return v&&(f.attr("aria-describedby",v),t.attrRemove("aria-describedby")),f.get(0)}function It(e){let t,r,n=e.scroll,a=n.barWidth,i=e.scrollHead.children("div"),o=i.children("table"),l=e.scrollBody,s=l,c=e.scrollFoot.children("div"),u=c.children("table"),d=we.s(e.thead),f=we.s(e.table),h=we.s(e.tfoot),p=e.browser,g=l.get(0).scrollHeight>l.get(0).clientHeight;if(e.scrollBarVis!==g&&void 0!==e.scrollBarVis)return e.scrollBarVis=g,void kt(e);if(e.scrollBarVis=g,d.find("thead").attr("role","rowgroup"),h.find("tfoot").attr("role","rowgroup"),f.children("thead, tfoot").remove(),t=d.clone(!0).prependTo(f),t.find("th, td").attrRemove("tabindex"),t.find("[id]").attrRemove("id"),h.count()&&(r=h.clone(!0).prependTo(f),r.find("[id]").attrRemove("id")),e.display.length){let t=null,r="ssp"!==$e(e)?e.displayStart:0;for(let n=r;r+e.display.length>n;n++){let r=e.data[e.display[n]];if(r){let e=r.tr;if(e){t=e;break}}}if(t){let r=we.s(t).children("th, td").mapTo(function(t,r){return{idx:qt(e,r),width:we.s(t).width("outer")}});for(let t=0;r.length>t;t++){let a=e.columns[r[t].idx].colEl;a.width()!==r[t].width&&(a.css("width",r[t].width+"px"),n.x&&a.css("minWidth",r[t].width+"px"))}}}o.find("colgroup").remove(),o.append(e.colgroup.clone(!0)),h&&(u.find("colgroup").remove(),u.append(e.colgroup.clone(!0))),t.find("th, td").each(function(e){we.c("div").classAdd("dt-scroll-sizing").append(Array.from(e.childNodes)).appendTo(e)}),r&&r.find("th, td").each(function(e){we.c("div").classAdd("dt-scroll-sizing").append(Array.from(e.childNodes)).appendTo(e)});let m=Math.floor(f.height())>l.get(0).clientHeight||"scroll"==s.css("overflow-y"),v="padding"+(p.scrollbarLeft?"Left":"Right"),y=f.width("withPadding");o.css("width",St(y)),i.css("width",St(y)).css(v,m?a+"px":"0px"),h.count()&&(u.css("width",St(y)),c.css("width",St(y)).css(v,m?a+"px":"0px")),f.children("colgroup").prependTo(f),f.find("thead, tfoot").find("[tabindex]").attrRemove("tabindex"),f.find("thead, tfoot").attr("role","none").find("[role]").attrRemove("role"),f.find("tbody tr:not([role])").attr("role","row"),f.find("tbody td:not([role]), tbody th:not([role])").attr("role","cell"),Et(t),Et(r),s.trigger("scroll"),!e.wasOrdered&&!e.wasFiltered||e.drawHold||l.scrollTop(0)}function Et(e){e&&(e.find("tfoot:not([role])").attr("role","rowgroup"),e.find("tr:not([role])").attr("role","row"),e.find("th:not([role])").attr("role","columnheader"),e.find("td:not([role])").attr("role","cell"))}function Mt(e){let t=e.columns.length,r=se.object.assign({},new ct,st,{orderData:st.orderData?st.orderData:[t],data:st.data?st.data:t,idx:t,searchFixed:{},colEl:we.c("col").attr("data-dt-column",t)});e.columns.push(r);let n=e.searchCols;e.searches[t]=dt(n[t]?pt(n[t]):{}),e.searches[t].columns=[t]}function Ft(e,t,r){var n=e.columns[t];if(null!=r){vt(r),r.type&&(n.typeManual=r.type),r.className&&!r.className&&(r.className=r.className);var a=n.className;se.object.assign(n,r),We(n,r,"width","widthOrig"),a!==n.className&&(n.className=a+" "+n.className),We(n,r,"orderData"),r.search&&se.object.assign(e.searches[t],r.search)}var i=n.data,o=se.get(i);if(n.render&&Array.isArray(n.render)){var l=n.render.slice();n.render=lt[l.shift()].apply(window,l)}n.renderer=n.render?se.get(n.render):null;var s=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};n.attrSrc=!!i&&se.is.plainObject(i)&&(s(i.sort)||s(i.type)||s(i.filter)),n.setter=null,n.dataGet=function(e,t,r){var a=o(e,t,void 0,r);return n.renderer&&t?n.renderer(a,t,e,r):a},n.dataSet=function(e,t,r){return se.set(i)(e,t,r)},"number"==typeof i||n._isArrayHost||(e.rowReadObject=!0),e.features.ordering||(n.orderable=!1)}function kt(e){!function(e){if(e.features.autoWidth){var t,r,n,a=e.table,i=e.columns,o=e.scroll,l=o.y,s=o.x,c=Wt(e,"visible"),u=a.getAttribute("width"),d=a.parentElement,f=a.style.width,h=Ot(e);if(h===e.containerWidth)return!1;e.containerWidth=h,f||u||(a.style.width="100%",f="100%"),f&&-1!==f.indexOf("%")&&(u=f),Ue(e,null,"column-calc",[{visible:c}],!1);var p=we.s(a.cloneNode()).css("visibility","hidden").css("margin","0").attrRemove("id");p.append(we.c("tbody")),p.append(e.thead.cloneNode(!0)).append(e.tfoot.cloneNode(!0)),p.find("tfoot th, tfoot td").css("width",""),p.find("thead th, thead td").each(t=>{var r=$t(e,t,!0);r?(t.style.width=r,s&&(t.style.minWidth=r,we.s(t).append(we.c("div").css({width:r,margin:"0",padding:"0",border:"0",height:"1px"})))):t.style.width=""});var g=[];for(t=0;c.length>t;t++)g.push(Nt(e,c[t]));if(g.length)for(t=0;g[0].length>t;t++){var m=we.c("tr").appendTo(p.find("tbody"));for(r=0;c.length>r;r++){var v=g[r][t]||"",y=He.type.className[(n=i[c[r]]).type],b=v+(n.contentPadding||(s?"-":"")),w=we.c("td").classAdd(y).classAdd(n.className).appendTo(m);-1===v.indexOf("<")&&-1===v.indexOf("&")?w.text(b):w.html(b)}}p.find("[name]").attrRemove("name");var x=we.c("div").css(s||l?{position:"absolute",top:"0",left:"0",height:"1px",right:"0",overflow:"hidden"}:{}).append(p).appendTo(d);s?(p.css("width","auto").attrRemove("width"),p.width()<d.clientWidth&&u&&p.width(d.clientWidth)):l?p.width(d.clientWidth):u&&p.width(u);var T=0,A=p.find("tbody tr").eq(0).children();for(t=0;c.length>t;t++){var _=A.get(t).getBoundingClientRect().width;T+=_,i[c[t]].width=St(_)}if(a.style.width=St(T),x.remove(),u&&(a.style.width=St(u)),(u||s)&&!e.reszEvt){var D=se.throttle(function(){var t=Ot(e);e.destroying||0===t||kt(e)});if(window.ResizeObserver){var j=we.s(e.tableWrapper).isVisible(),C=we.c("div").css({width:"100%",height:"0"}).classAdd("dt-autosize").appendTo(e.tableWrapper);e.resizeObserver=new ResizeObserver(function(e){j?j=!1:D()}),e.resizeObserver.observe(C.get(0))}else window.addEventListener("resize",D),e.windowResizeCb=D;e.reszEvt=!0}}}(e),function(e){let t=e.columns;for(let r=0;t.length>r;r++){let n=$t(e,[r],!1);n&&(t[r].colEl.css("width",n),e.scroll.x&&t[r].colEl.css("min-width",n))}}(e);let t=e.scroll;""===t.y&&""===t.x||It(e),Ue(e,null,"column-sizing",[e])}function qt(e,t){let r=Wt(e,"visible");return"number"==typeof r[t]?r[t]:null}function Ht(e,t){let r=Wt(e,"visible").indexOf(t);return-1!==r?r:null}function Pt(e){let t=e.header,r=e.columns,n=0;if(t.length)for(let a=0,i=t[0].length;i>a;a++)r[a].visible&&"none"!==we.s(t[0][a].cell).css("display")&&n++;return n}function Wt(e,t){let r=[];return e.columns.map(function(e,n){e[t]&&r.push(n)}),r}function zt(e,t){return!0===t?e._name:t}function Bt(e){var t,r,n,a,i,o,l,s,c,u=e.columns,d=e.data,f=He.type.detect,h=u.map(e=>e.type).join(",");for(t=0,r=u.length;r>t;t++){if(c=[],!(l=u[t]).type&&l.typeManual)l.type=l.typeManual;else if(!l.type){if(!e.typeDetect)return;for(n=0,a=f.length;a>n;n++){let r,a,u,h=f[n],p=!1;if("function"==typeof h?a=h:(r=h.oneOf,a=h.allOf,u=h.init),s=null,u&&(s=zt(h,u(e,l,t)))){l.type=s;break}for(i=0,o=d.length;o>i;i++)if(d[i]){if(void 0===c[i]&&(c[i]=Tt(e,i,t,"type")),r&&!p&&(p=zt(h,r(c[i],e))),!(s=zt(h,a(c[i],e)))&&n!==f.length-3)break;if("html"===s&&!se.is.empty(c[i]))break}if(r&&p&&s||!r&&s){l.type=s;break}}l.type||(l.type="string")}var p=He.type.className[l.type];p&&(Xt(e.header,t,p),Xt(e.footer,t,p));var g=He.type.render[l.type];g&&!l.renderer&&(l.renderer=se.get(g),Ut(e,t))}u.map(e=>e.type).join(",")!==h&&Ue(e,null,"columnTypes",[e],!1)}function Ut(e,t){let r=e.data;for(let n=0;r.length>n;n++){let a=r[n];if(a&&a.tr){let r=Tt(e,n,t,"display");a.displayData[t]=r,At(a.cells[t],r)}}}function Xt(e,t,r){e.forEach(function(e){e[t]&&e[t].unique&&we.s(e[t].cell).classAdd(r)})}function $t(e,t,r,n){Array.isArray(t)||(t=Vt(t));let a=0,i="px",o=e.columns;for(let l=0,s=t.length;s>l;l++){let e=o[t[l]],n=r?e.widthOrig:e.width;if(!1!==e.visible){if(null==n)return null;if("number"==typeof n)a+=n;else{let e=n.match(/([\d\.]+)([^\d]*)/);e&&(a+=parseFloat(e[1]),i=3===e.length?e[2]:"px")}}}return a+i}function Vt(e){let t=we.s(e).closest("[data-dt-column]").attr("data-dt-column");return t?t.split(",").map(function(e){return parseInt(e)}):[]}function Jt(e,t){e.doingDraw&&!1===t||Ue(e,null,"processing",[e,t])}function Gt(e,t,r){t?(Jt(e,!0),setTimeout(function(){r(),Jt(e,!1)},0)):r()}function Yt(e,t){var r=e.renderer,n=He.renderer[t];return _(r)&&r[t]?n[r[t]]||n._:"string"==typeof r&&n[r]||n._}function Zt(e,t,r){if(Array.isArray(r))for(var n=0;r.length>n;n++)Zt(e,t,r[n]);else{var a=e[t];se.is.plainObject(r)?r.features?(r.rowId&&(e.id=r.rowId),r.rowClass&&(e.className=r.rowClass),a.id=r.id,a.className=r.className,Zt(e,t,r.features)):se.object.each(r,(e,t)=>{a.items.push({feature:e,opts:t})}):a.items.push(r)}}function Qt(e,t,r){var n=[];se.object.each(t,function(e,t){var a=e.match(/^([a-z]+)([0-9]*)([A-Za-z]*)$/);if(null!==t&&a){var i=a[2]?parseInt(a[2]):0,o=a[3]?a[3].toLowerCase():"full";a[1]===r&&("full"!==o&&"start"!==o&&"end"!==o||Zt(function(e,t,r){for(var n,a=0;e.length>a;a++)if((n=e[a]).rowNum===t&&("full"===r&&n.full||("start"===r||"end"===r)&&(n.start||n.end)))return n[r]||(n[r]={contents:[],items:[]}),n;return(n={rowNum:t})[r]={contents:[],items:[]},e.push(n),n}(n,i,o),o,t))}}),n.sort(function(e,t){var n=e.rowNum||0,a=t.rowNum||0;if(n===a){var i=e.full&&!t.full?-1:1;return"bottom"===r?-1*i:i}return a-n}),"bottom"===r&&n.reverse();for(var a=0;n.length>a;a++)delete n[a].rowNum,Kt(e,n[a]);return n}function Kt(e,t){var r=function(t,r){return He.features[t]||Pe(e,0,"Unknown feature: "+t),He.features[t].apply(this,[e,r])},n=function(n){t[n]&&(t[n].contents=t[n].items.filter(e=>!!e).map(t=>{if("string"==typeof t)return r(t,null);if(se.is.plainObject(t))return r(t.feature,t.opts);if("function"==typeof t.node)return t.node(e);if("function"==typeof t){var n=t(e);return"function"==typeof n.node?n.node():n}return t.nodeName?t:t instanceof we?t.get(0):t.length?t[0]:void 0}))};n("start"),n("end"),n("full")}function er(e,t,r,n,a){ze(t,r,function(t){var r=!1,i=void 0===n?Vt(t.target):"function"==typeof n?n():Array.isArray(n)?n:[n];if(i.length){for(var o=0,l=i.length;l>o&&(!1!==ir(e,i[o],o,t.shiftKey)&&(r=!0),1!==e.order.length||""!==e.order[0][1]);o++);r&&Gt(e,!0,function(){ar(e),tr(e,e.display),Or(e,!1,!1),a&&a()})}})}function tr(e,t){if(t.length>=2){var r,n=e.displayMaster,a={},i={};for(r=0;n.length>r;r++)a[n[r]]=r;for(r=0;t.length>r;r++)i[t[r]]=a[t[r]];t.sort(function(e,t){return i[e]-i[t]})}}function rr(e,t,r){var n=function(r){if(_(r)){let a=r;if(void 0!==r.idx)t.push([r.idx,r.dir]);else if(a.name){var n=P(e.columns,"name").indexOf(a.name);-1!==n&&t.push([n,a.dir])}}else t.push(r)};if(_(r))n(r);else if(Array.isArray(r)&&"number"==typeof r[0])n(r);else if(Array.isArray(r))for(var a=0;r.length>a;a++)n(r[a])}function nr(e){var t,r,n,a,i,o,l,s=[],c=He.type.order,u=e.columns,d=e.orderFixed,f=_(d),h=[];if(!e.features.ordering)return s;for(Array.isArray(d)&&rr(e,h,d),f&&d.pre&&rr(e,h,d.pre),rr(e,h,e.order),f&&d.post&&rr(e,h,d.post),t=0;h.length>t;t++)if(u[l=h[t][0]])for(r=0,n=(a=u[l].orderData).length;n>r;r++)o=u[i=a[r]].type||"string",void 0===h[t]._idx&&(h[t]._idx=u[i].orderSequence.indexOf(h[t][1])),h[t][1]&&s.push({src:l,col:i,dir:h[t][1],index:h[t]._idx,type:o,formatter:c[o+"-pre"],sorter:c[o+"-"+h[t][1]]});return s}function ar(e,t,r){var n,a,i,o=[],l=He.type.order,s=e.data,c=e.displayMaster;if(Bt(e),void 0!==t){var u=e.columns[t];i=[{src:t,col:t,dir:r||"",index:0,type:u.type,formatter:l[u.type+"-pre"],sorter:l[u.type+"-"+r]}],c=c.slice()}else i=nr(e);for(n=0,a=i.length;a>n;n++)lr(e,i[n].col);if("ssp"!=$e(e)&&0!==i.length){for(n=0,a=c.length;a>n;n++)o[n]=n;i.length&&"desc"===i[0].dir&&e.orderDescReverse&&o.reverse(),c.sort(function(e,t){var r,n,a,l,c,u,d,f=i.length,h=null===(r=s[e])||void 0===r?void 0:r.orderCache,p=null===(n=s[t])||void 0===n?void 0:n.orderCache;for(c=0;f>c;c++)if(a=h[(d=i[c]).col],l=p[d.col],d.sorter){if(0!==(u=d.sorter(a,l)))return u}else if(0!=(u=l>a?-1:a>l?1:0))return"asc"===d.dir?u:-u;return(l=o[t])>(a=o[e])?-1:a>l?1:0})}else 0===i.length&&c.sort(function(e,t){return t>e?-1:e>t?1:0});return void 0===t&&(e.wasOrdered=!0,e.sortDetails=i,Ue(e,null,"order",[e,i])),c}function ir(e,t,r,n){var a,i=e.columns[t],o=e.order,l=i.orderSequence,s=function(e,t){var r=e._idx;return void 0===r&&(r=l.indexOf(e[1])),l.length>r+1?r+1:t?null:0};if(!i.orderable)return!1;if("number"==typeof o[0]&&(o=e.order=[o]),(n||r)&&e.features.orderMulti){var c=P(o,"0").indexOf(t);-1!==c?(null===(a=s(o[c],!0))&&1===o.length&&(a=0),null===a||""===l[a]?o.splice(c,1):(o[c][1]=l[a],o[c]._idx=a)):n?(o.push([t,l[0],0]),o[o.length-1]._idx=0):(o.push([t,o[0][1],0]),o[o.length-1]._idx=0)}else o.length&&o[0][0]==t?(a=s(o[0]))?(o.length=1,o[0][1]=l[a],o[0]._idx=a):(o.length=1,o[0][1]=l[0],o[0]._idx=0):(o.length=0,o.push([t,l[0]]),o[0]._idx=0)}function or(e){var t,r,n=e.lastOrder,a=e.classes.order.position,i=nr(e),o=e.features;if(o.ordering&&o.orderClasses){for(t=0,r=n.length;r>t;t++)we.s(P(e.data,"cells",n[t].src)).classRemove(a+(2>t?t+1:3));for(t=0,r=i.length;r>t;t++)we.s(P(e.data,"cells",i[t].src)).classAdd(a+(2>t?t+1:3))}e.lastOrder=i}function lr(e,t){var r,n,a,i=e.columns[t],o=He.order[i.orderDataType];o&&(r=o.call(e.instance,e,t,Ht(e,t)));for(var l=He.type.order[i.type+"-pre"],s=e.data,c=0;s.length>c;c++)s[c]&&((n=s[c])&&!n.orderCache&&(n.orderCache=[]),!n||n.orderCache[t]&&!o||(a=o?r[c]:Tt(e,c,t,"sort"),n.orderCache[t]=l?l(a,e):a))}function sr(e,t,r){var n=e.displayStart,a=e.pageLength,i=Lr(e);if(0===i||-1===a)n=0;else if("number"==typeof t)(n=t*a)>i&&(n=0);else if("first"==t)n=0;else if("previous"==t)0>(n=0>a?0:n-a)&&(n=0);else if("next"==t)i>n+a&&(n+=a);else if("last"==t)n=Math.floor((i-1)/a)*a;else{if("ellipsis"===t)return;Pe(e,0,"Unknown paging action: "+t,5)}var o=e.displayStart!==n;return e.displayStart=n,Ue(e,null,o?"page":"page-nc",[e]),o&&r&&Cr(e),o}function cr(e){if(!e.loadingState){var t=[];rr(e,t,e.order);var r=e.columns,n={columns:e.columns.map(function(t,r){return{name:t.name,visible:t.visible,search:Object.assign({},e.searches[r])}}),length:e.pageLength,order:t.map(function(e){return r[e[0]]&&r[e[0]].name?[r[e[0]].name,e[1]]:e.slice()}),search:Object.assign({},e.searches["*"]),searchGroups:Object.keys(e.searches).filter(e=>e.includes(",")).map(t=>Object.assign({},e.searches[t])),start:e.displayStart,time:+new Date};e.stateSaved=n,Ue(e,"stateSaveParams","stateSaveParams",[e,n]),e.features.stateSave&&!e.destroying&&e.stateSaveCallback.call(e.instance,e,n)}}function ur(e,t,r){var n,a,i=e.columns,o=P(e.columns,"name");e.loadingState=!0;var l=e.initDone?new Hr(e):null;if(!t||!t.time)return e.loadingState=!1,void r();var s=e.stateDuration;if(s>0&&+new Date-1e3*s>t.time)return e.loadingState=!1,void r();if(-1!==Ue(e,"stateLoadParams","stateLoadParams",[e,t]).indexOf(!1))return e.loadingState=!1,void r();if(e.stateLoaded=O({},t),Ue(e,null,"stateLoadInit",[e,t],!0),void 0!==t.length&&(l?l.page.len(t.length):e.pageLength=t.length),void 0!==t.start&&(null===l?(e.displayStart=t.start,e.displayStartInit=t.start):sr(e,t.start/e.pageLength)),void 0!==t.order){e.order=[];for(let r=0;t.order.length>r;r++){let n=t.order[r],a=[n[0],n[1]];if("string"==typeof n[0]){let e=o.indexOf(n[0]);if(0>e)continue;a[0]=e}else if(a[0]>=i.length)continue;e.order.push(a)}}if(void 0!==t.search&&Object.assign(e.searches["*"],t.search),t.searchGroups&&t.searchGroups.forEach(t=>{if(t.columns){let r=t.columns.join(",");e.searches[r]=dt(t)}}),t.columns){var c=t.columns,u=P(t.columns,"name");if(u.join("").length&&u.join("")!==o.join(""))for(c=[],n=0;o.length>n;n++)if(""!=o[n]){var d=u.indexOf(o[n]);c.push(0>d?{}:t.columns[d])}else c.push({});if(c.length===i.length){for(n=0,a=c.length;a>n;n++){var f=c[n];void 0!==f.visible&&(l?l.column(n).visible(f.visible,!1):i[n].visible=f.visible),void 0!==f.search&&(Object.assign(e.searches[n],f.search),e.searches[n].columns=[n])}l&&l.one("draw",function(){l.columns.adjust()})}}e.loadingState=!1,Ue(e,"stateLoaded","stateLoaded",[e,t]),r()}function dr(e){var t,r=e.init,n=e.deferLoading,a=$e(e);e.initialised?(_r(e,"header"),_r(e,"footer"),function(e,t){if(e.features.stateSave){var r=e.stateLoadCallback.call(e.instance,e,function(r){ur(e,r,t)});return void 0!==r&&ur(e,r,t),!0}t()}(e,function(){jr(e,e.header),jr(e,e.footer);var i=e.displayStartInit;if(r&&r.data)for(t=0;r.data.length>t;t++)wt(e,r.data[t]);else(n||"dom"==a)&&xt(e,we.s(e.tbody).children("tr"));e.display=e.displayMaster.slice(),function(e){var t=e.classes,r=we.c("div").attr("id",e.tableId+"_wrapper").classAdd(t.container).insertBefore(e.table);if(e.tableWrapper=r.get(0),e.dom)!function(e,t,r){let n,a,i,o,l,s=t.match(/(".*?")|('.*?')|./g);if(s)for(let c=0;s.length>c;c++){if(n=null,a=s[c],"<"==a){if(i=we.c("div"),o=s[c+1],"'"==o[0]||'"'==o[0]){l=o.replace(/['"]/g,"");let e,t="";if(-1!=l.indexOf(".")){let r=l.split(".");t=r[0],e=r[1]}else"#"==l[0]?t=l:e=l;i.attr("id",t.substring(1)).classAdd(e),c++}r.append(i.get()),r=i}else">"==a?r=r.parent():"t"==a?n=Lt(e):He.feature.forEach(function(t){a==t.cFeature&&(n=t.fnInit(e))});n&&r.append(n instanceof we?n.get():n)}}(e,e.dom,r);else{var n=Qt(e,e.layout,"top"),a=Qt(e,e.layout,"bottom"),i=Yt(e,"layout");n.forEach(function(t){i(e,r,t)}),i(e,r,{full:{contents:[Lt(e)],items:[],table:!0}}),a.forEach(function(t){i(e,r,t)})}!function(e){var t=e.table,r=""!==e.scroll.x||""!==e.scroll.y;if(e.features.processing){var n=we.c("div").attr("id",e.tableId+"_processing").attr("role","status").classAdd(e.classes.processing.container).html(e.language.processing).append(we.c("div").append(we.c("div")).append(we.c("div")).append(we.c("div")).append(we.c("div")));r?n.prependTo(we.s(e.tableWrapper).find("div.dt-scroll").get(0)):n.insertBefore(t),we.s(t).on("processing.dt.DT",(e,t,r)=>{n.css("display",r?"block":"none")})}}(e)}(e),function(e){var t=e.thead,r=t.querySelectorAll("tr"),n=e.titleRow,a=':not([data-dt-order="disable"]):not([data-dt-order="icon-only"])';!0===n?t=r[0]:!1===n?t=r[r.length-1]:null!==n&&(t=r[n]),e.orderHandler&&er(e,t,t===e.thead?"tr"+a+" th"+a+", tr"+a+" td"+a:"th"+a+", td"+a);var i=[];rr(e,i,e.order),e.order=i}(e),Rt(e),Jt(e,!0),Ue(e,null,"preInit",[e],!0),Or(e),("ssp"!=a||n)&&("ajax"==a?hr(e,{},function(r){var n=gr(e,r,!1);for(t=0;n.length>t;t++)wt(e,n[t]);e.displayStartInit=i,Or(e),Jt(e,!1),fr(e)}):(fr(e),Jt(e,!1)))})):setTimeout(function(){dr(e)},200)}function fr(e){if(e.initDone)return;var t=[e,e.json];e.initDone=!0;let r=we.s(e.tfoot);0===r.children().count()&&r.remove(),kt(e),Ue(e,null,"plugin-init",t,!0),Ue(e,"init","init",t,!0)}function hr(e,t,r){var n,a=e.ajax,i=e.instance,o=function(t){var n=e.jqXHR?e.jqXHR.status:null;(null===t||"number"==typeof n&&204==n)&&gr(e,t={},[]);var a=t.error||t.sError;if(a&&Pe(e,0,a),t.d&&"string"==typeof t.d)try{t=JSON.parse(t.d)}catch(Rn){}e.json=t,Ue(e,null,"xhr",[e,t,e.jqXHR],!0),r(t)};if(se.is.plainObject(a)&&a.data){var l="function"==typeof(n=a.data)?n(t,e):n;t="function"==typeof n&&l?l:se.object.assignDeep(t,l),delete a.data}var s={url:"string"==typeof a?a:"",data:t,success:o,dataType:"json",cache:!1,type:e.serverMethod,error:function(t,r){-1===Ue(e,null,"xhr",[e,null,e.jqXHR],!0).indexOf(!1)&&("parsererror"==r?Pe(e,0,"Invalid JSON response",1):4===t.readyState&&Pe(e,0,"Ajax error",7)),Jt(e,!1)}};if(se.is.plainObject(a)&&se.object.assign(s,a),e.ajaxData=t,Ue(e,null,"preXhr",[e,t,s],!0),"function"==typeof a)e.jqXHR=a.call(i,t,o,e);else if(a&&"string"!=typeof a&&""===a.url){var c={};gr(e,c,[]),o(c)}else e.jqXHR=se.ajax(s);n&&(a.data=n)}function pr(e){return"function"==typeof e?"function":e.toString()}function gr(e,t,r){var n="data";if(se.is.plainObject(e.ajax)&&void 0!==e.ajax.dataSrc){var a=e.ajax.dataSrc;"string"==typeof a||"function"==typeof a?n=a:void 0!==a.data&&(n=a.data)}if(!r)return"data"===n?t.aaData||t[n]:""!==n?se.get(n)(t):t;se.set(n)(t,r)}function mr(e,t,r){var n=se.is.plainObject(e.ajax)?e.ajax.dataSrc:null;if(n&&n[t])return se.data.get(n[t])(r);var a="";return"draw"===t?a="sEcho":"recordsTotal"===t?a="iTotalRecords":"recordsFiltered"===t&&(a="iTotalDisplayRecords"),void 0!==r[a]?r[a]:r[t]}var vr=we.c("div").get(0),yr=void 0!==vr.textContent;function br(e){"ssp"!=$e(e)&&(function(e){let t,r,n,a,i,o=e.columns,l=e.data,s=!1;for(let c=0;l.length>c;c++)if(l[c]&&(i=l[c],i&&!i.searchCellCache)){const l=[];for(r=0,n=o.length;n>r;r++)t=o[r],t.searchable?(a=Tt(e,c,r,"filter"),null===a&&(a=""),"string"!=typeof a&&a.toString&&(a=a.toString())):a="",a.indexOf&&-1!==a.indexOf("&")&&(vr.innerHTML=a,a=yr?vr.textContent:vr.innerText),a.replace&&(a=a.replace(/[\r\n\u2028]/g,"")),l.push(a);i.searchCellCache=l,i.searchRowCache=l.join("  "),s=!0}}(e),e.display=e.displayMaster.slice(),se.object.each(e.searches,(t,r)=>{wr(e.display,e,r.search,r)}),se.object.each(e.searchesFixed,function(t){se.object.each(e.searchesFixed[t],function(t,r){wr(e.display,e,r.search,r)})}),function(e){let t,r,n=He.search,a=e.display;for(let i=0,o=n.length;o>i;i++){let o=[];for(let l=0,s=a.length;s>l;l++)r=a[l],t=e.data[r],t&&n[i](e,t.searchCellCache,r,t.data,l)&&o.push(r);a.length=0,Je(a,o)}}(e)),e.wasFiltered=!0,Ue(e,null,"search",[e])}function wr(e,t,r,n){if(""===r)return;let a=0,i=[],o="function"==typeof r?r:null,l=r instanceof RegExp?r:o?null:function(e,t){let r=[],n=Object.assign({},{boundary:!1,caseInsensitive:!0,exact:!1,regex:!1,smart:!0},t),a="string"!=typeof e?e.toString():e;if(a=se.diacritics(a),n.exact)return new RegExp("^"+se.escapeRegex(a)+"$",n.caseInsensitive?"i":"");if(a=n.regex?a:se.escapeRegex(a),n.smart){let e=(a.match(/!?["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""]).map(function(e){let t,n=!1;return"!"===e.charAt(0)&&(n=!0,e=e.substring(1)),'"'===e.charAt(0)?(t=e.match(/^"(.*)"$/),e=t?t[1]:e):"“"===e.charAt(0)&&(t=e.match(/^\u201C(.*)\u201D$/),e=t?t[1]:e),n&&(e.length>1&&r.push("(?!"+e+")"),e=""),e.replace(/"/g,"")}),t=r.length?r.join(""):"",i=n.boundary?"\\b":"";a="^(?=.*?"+i+e.join(")(?=.*?"+i)+")("+t+".)*$"}return new RegExp(a,n.caseInsensitive?"i":"")}(r,n),s=n.columns?n.columns:se.array.range(t.columns.length);for(a=0;e.length>a;a++){let r=t.data[e[a]];if(r){let t=se.array.selectiveJoin(r.searchCellCache,s);(o&&o(t,r.data,e[a],1===s.length?s[0]:s)||l&&t&&l.test(t))&&i.push(e[a])}}for(e.length=i.length,a=0;i.length>a;a++)e[a]=i[a]}function xr(e,t){var r=e.data[t],n=e.columns;if(!r)return[];if(!r.displayData){r.displayData=[];for(var a=0,i=n.length;i>a;a++)r.displayData.push(Tt(e,t,a,"display"))}return r.displayData}function Tr(e,t,r,n){var a,i,o,l,s,c,u=e.data[t],d=[],f=e.classes.tbody.row;if(u&&null===u.tr){let p=u.data;for(a=r||document.createElement("tr"),u.tr=a,u.cells=d,we.s(a).classAdd(f),a._DT_RowIndex=t,Ar(e,u),l=0,s=e.columns.length;s>l;l++){o=e.columns[l],(i=(c=!(r&&n&&n[l]))?document.createElement(o.cellType):n[l])||Pe(e,0,"Incorrect column count",18),i._DT_CellIndex={row:t,column:l},d.push(i);var h=xr(e,t);(c||(o.render||o.data!==l)&&(!se.is.plainObject(o.data)||o.data&&o.data._!==l+".display"))&&At(i,h[l]),we.s(i).classAdd(o.className),o.visible&&c?a.appendChild(i):o.visible||c||i.parentNode.removeChild(i),o.createdCell&&o.createdCell.call(e.instance,i,Tt(e,t,l),p,t,l)}Ue(e,"rowCreated","row-created",[a,p,t,d])}else u&&we.s(u.tr).classAdd(f)}function Ar(e,t){var r=t.tr,n=t.data;if(r){var a=e.rowIdFn(n);if(a&&(r.id=a),n.DT_RowClass){var i=n.DT_RowClass.split(" ");t.addedClasses=t.addedClasses?se.unique(t.addedClasses.concat(i)):i,we.s(r).classRemove(t.addedClasses.join(" ")).classAdd(n.DT_RowClass)}n.DT_RowAttr&&we.s(r).attr(n.DT_RowAttr),n.DT_RowData&&we.s(r).data(n.DT_RowData)}}function _r(e,t){let r,n,a,i=e.classes,o=e.columns,l=we.s("header"===t?e.thead:e.tfoot),s="header"===t?"title":t;if(!l)return;if(("header"===t||se.array.pluck(e.columns,s).join(""))&&(a=l.find("tr"),a.count()||(a=we.c("tr").appendTo(l)),1===a.count())){let e=0;for(a.find("td, th").each(t=>{e+=t.colSpan}),r=e,n=o.length;n>r;r++)we.c("th").html(o[r][s]||"").appendTo(a)}let c=Sr(e,l.get(0),!0);"header"===t?(e.header=c,l.find("tr").classAdd(i.thead.row)):(e.footer=c,l.find("tr").classAdd(i.tfoot.row)),l.children("tr").children("th, td").each(r=>{Yt(e,"header"===t?"header":"footer")(e,we.s(r),i)})}function Dr(e,t,r){var n,a,i,o,l,s=[],c=[],u=e.columns;if(t){for(r||(r=se.array.range(u.length).filter(function(e){return u[e].visible})),n=0;t.length>n;n++)s[n]=t[n].slice().filter(function(e,t){return r.includes(t)}),c.push([]);for(n=0;s.length>n;n++)for(a=0;s[n].length>a;a++)if(o=1,l=1,void 0===c[n][a]){for(i=s[n][a].cell;void 0!==s[n+o]&&s[n][a].cell==s[n+o][a].cell;)c[n+o][a]=null,o++;for(;void 0!==s[n][a+l]&&s[n][a].cell==s[n][a+l].cell;){for(var d=0;o>d;d++)c[n+d][a+l]=null;l++}var f=we.s(i).find(".dt-column-title");c[n][a]={cell:i,colspan:l,rowspan:o,title:f.count()?f.html():we.s(i).html()}}return c}}function jr(e,t){let r,n=Dr(e,t);if(n)for(let a=0;t.length>a;a++){r=t[a].row,r&&we.s(r).detachChildren();for(let e=0;n[a].length>e;e++){let t=n[a][e];t&&we.s(t.cell).appendTo(r).attr("rowspan",t.rowspan).attr("colspan",t.colspan)}}}function Cr(e,t){if(function(e){var t="ssp"==$e(e),r=e.displayStartInit;void 0!==r&&-1!==r&&(e.displayStart=t||r<Lr(e)?r:0,e.displayStartInit=-1)}(e),-1===Ue(e,"preDraw","preDraw",[e]).indexOf(!1)){var r=[],n=0,a="ssp"==$e(e),i=e.display,o=e.displayStart,l=Ir(e),s=e.columns,c=we.s(e.tbody);if(e.doingDraw=!0,e.deferLoading)e.deferLoading=!1,e.drawCount++,Jt(e,!1);else if(a){if(!e.destroying&&!t)return 0===e.drawCount&&c.empty().append(Nr(e)),void function(e){e.drawCount++,Jt(e,!0),hr(e,function(e){var t=e.columns,r=e.features,n=e.searches,a=e.searchesFixed,i=function(e,r){return"function"==typeof t[e][r]?"function":t[e][r]};return{draw:e.drawCount,columns:t.map(function(e,t){return{data:i(t,"data"),name:e.name,searchable:e.searchable,orderable:e.orderable,search:{value:n[t]?pr(n[t].search):"",regex:!!n[t]&&n[t].regex,fixed:a[t]?Object.keys(a[t]).map(e=>({name:e,term:pr(a[t][e].search)})):[]}}}),order:nr(e).map(function(e){return{column:e.col,dir:e.dir,name:i(e.col,"name")}}),start:e.displayStart,length:r.paging?e.pageLength:-1,search:{value:pr(n["*"].search),regex:n["*"].regex,fixed:Object.keys(e.searchesFixed["*"]).map(t=>({name:t,term:pr(e.searchesFixed["*"][t].search)})),groups:Object.keys(e.searches).filter(e=>e.includes(",")).map(t=>({columns:e.searches[t].columns||[],term:pr(e.searches[t].search)})),groupsFixed:Object.keys(e.searchesFixed).filter(e=>e.includes(",")).map(t=>{let r=e.searchesFixed[t];return Object.keys(r).map(e=>({columns:r[e].columns||[],name:e,term:pr(r[e].search)}))}).flat()}}}(e),function(t){!function(e,t){var r=gr(e,t,!1),n=mr(e,"draw",t),a=mr(e,"recordsTotal",t),i=mr(e,"recordsFiltered",t);if(void 0!==n){if(e.drawCount>1*n)return;e.drawCount=1*n}r||(r=[]),Dt(e),e.recordsTotal=parseInt(a,10),e.recordsDisplay=parseInt(i,10);for(var o=0,l=r.length;l>o;o++)wt(e,r[o]);e.display=e.displayMaster.slice(),Bt(e),Cr(e,!0),fr(e),Jt(e,!1)}(e,t)})}(e)}else e.drawCount++;if(0!==i.length)for(var u=a?e.data.length:l,d=a?0:o;u>d;d++){var f=i[d],h=e.data[f];if(null!==h){null===h.tr&&Tr(e,f);for(var p=h.tr,g=0;s.length>g;g++){var m=s[g];we.s(h.cells[g]).classAdd(m.type?He.type.className[m.type]:null).classAdd(e.classes.tbody.cell)}Ue(e,"row",null,[p,h.data,n,d,f]),r.push(p),n++}}else r[0]=Nr(e);Ue(e,"header","header",[we.s(e.thead).children("tr").get(0),_t(e),o,l,i]),Ue(e,"footer","footer",[we.s(e.tfoot).children("tr").get(0),_t(e),o,l,i]),c.detachChildren().append(r),we.s(e.tableWrapper).classToggle("dt-empty-footer",0===we.s(e.tfoot).find("tr").count()),Ue(e,"draw","draw",[e],!0),e.wasOrdered=!1,e.wasFiltered=!1,e.doingDraw=!1}else Jt(e,!1)}function Or(e,t,r){let n=e.features,a=n.ordering,i=n.searching;void 0!==r&&!0!==r||(Bt(e),a&&ar(e),i?br(e):e.display=e.displayMaster.slice()),!0!==t?e.displayStart=0:Xe(e),e.drawHold=t,Cr(e),e.api.one("draw",function(){e.drawHold=!1})}function Nr(e){let t=e.language,r=t.zeroRecords,n=$e(e);return"ssp"!==n&&"ajax"!==n||e.json?t.emptyTable&&0===Rr(e)&&(r=t.emptyTable):r=t.loadingRecords,we.c("tr").append(we.c("td").attr("colSpan",Pt(e)).classAdd(e.classes.empty.row).html(r)).get(0)}function Sr(e,t,r){let n,a,i,o,l,s,c,u,d,f,h,p=e.columns,g=we.s(t).children("tr"),m=e.titleRow,v=t&&"thead"===t.nodeName.toLowerCase(),y=[],b=function(e,t,r){let n=e[t];for(;n[r];)r++;return r};for(i=0,s=g.count();s>i;i++)y.push([]);for(i=0,s=g.count();s>i;i++)for(n=g.get(i),u=0,a=n.firstChild;a;){if("TD"==a.nodeName.toUpperCase()||"TH"==a.nodeName.toUpperCase()){let t=we.s(a),s=[];if(d=parseInt(t.attr("colspan")||"1")||1,f=parseInt(t.attr("rowspan")||"1")||1,d=d&&0!==d&&1!==d?d:1,f=f&&0!==f&&1!==f?f:1,c=b(y,i,0),h=1===d,r){if(h){Ft(e,c,Ye(t.data()));let r=p[c],n=t.attr("width")||null,a=t.get(0).style.width.match(/width:\s*(\d+[pxem%]+)/);a&&(n=a[1]),r.widthOrig=r.width||n,v?(null===r.title||r.autoTitle||(!0===m&&0===i||!1===m&&i===g.count()-1||m===i||null===m)&&t.html(r.title),!r.title&&h&&(r.title=se.string.stripHtml(t.html()),r.autoTitle=!0)):r.footer&&t.html(r.footer),r.ariaTitle||(r.ariaTitle=t.attr("aria-label")||r.title),r.className&&t.classAdd(r.className)}0===t.find("div.dt-column-title").count()&&we.c("div").classAdd("dt-column-title").append(Array.from(t.get(0).childNodes)).appendTo(t),e.orderIndicators&&v&&0!==t.filter(":not([data-dt-order=disable])").count()&&0!==t.parent(":not([data-dt-order=disable])").count()&&0===t.find("div.dt-column-order").count()&&we.c("div").classAdd("dt-column-order").appendTo(t);var w=v?"header":"footer";0===t.find("div.dt-column-"+w).count()&&we.c("div").classAdd("dt-column-"+w).append(Array.from(t.get(0).childNodes)).appendTo(t)}for(l=0;d>l;l++){for(o=0;f>o;o++)y[i+o][c+l]={cell:t.get(0),unique:h},y[i+o].row=n;s.push(c+l)}t.attr("data-dt-column",se.unique(s).join(","))}a=a.nextSibling}return y}function Rr(e){return"ssp"==$e(e)?1*e.recordsTotal:e.displayMaster.length}function Lr(e){return"ssp"==$e(e)?1*e.recordsDisplay:e.display.length}function Ir(e){var t=e.pageLength,r=e.displayStart,n=r+t,a=e.display.length,i=e.features,o=i.paging;return i.serverSide?!1===o||-1===t?r+a:Math.min(r+t,e.recordsDisplay):!o||n>a||-1===t?a:n}function Er(e,t,r,n,a){var i,o,l,s=[],c=typeof t;for(t instanceof we&&(t=t.get()),t&&"string"!==c&&"function"!==c&&void 0!==t.length||(t=[t]),o=0,l=t.length;l>o;o++)(i=(i=r("string"==typeof t[o]?t[o].trim():t[o])).filter(function(e){return null!=e}))&&i.length&&(s=s.concat(i));var u=He.selector[e];if(u.length)for(o=0,l=u.length;l>o;o++)s=u[o](n,a,s);return U(s)}function Mr(e){return e||(e={}),e.filter&&void 0===e.search&&(e.search=e.filter),C({},{columnOrder:"implied",search:"none",order:"current",page:"all"},e)}function Fr(e){var t=e.inst(e.context[0],null,e._newClass.replace(/s$/,""));return e.length&&t.push(e[0]),t.selector=e.selector,t.length&&t[0].length>1&&t[0].splice(1),t}function kr(e,t){var r,n,a,i=[],o=e.display,l=e.displayMaster,s=t.search,c=t.order,u=t.page;if("ssp"==$e(e))return"removed"===s?[]:z(0,l.length);if("current"==u)for(r=e.displayStart,n=Ir(e);n>r;r++)i.push(o[r]);else if("current"==c||"applied"==c){if("none"==s)i=l.slice();else if("applied"==s)i=o.slice();else if("removed"==s){var d={};for(r=0,n=o.length;n>r;r++)d[o[r]]=null;l.forEach(function(e){Object.prototype.hasOwnProperty.call(d,e)||i.push(e)})}}else if("index"==c||"original"==c)for(r=0,n=e.data.length;n>r;r++)e.data[r]&&("none"==s||-1===(a=o.indexOf(r))&&"removed"==s||a>=0&&"applied"==s)&&i.push(r);else if("number"==typeof c){var f=ar(e,c,"asc");if("none"===s)i=f;else for(r=0;f.length>r;r++)(-1===(a=o.indexOf(f[r]))&&"removed"==s||a>=0&&"applied"==s)&&i.push(f[r])}return i}var qr=Array.prototype,Hr=function(e,t){if(!(this instanceof Hr))return new Hr(e,t);this.context=Xr(e),Je(this,t),Ur(this,"Api")};function Pr(e,t){if(Array.isArray(e)){for(let r=0;e.length>r;r++)Hr.register(e[r],t);return}let r=function(e){let t=e.split("."),r=null,n="Api",a="Api",i="",o="",l="";for(let s=0;t.length>s;s++){let e=t[s],c=e.replace("()","");n=a,a+=c.charAt(0).toUpperCase()+c.slice(1).toLowerCase(),e.includes("()")?(i=c,l.includes("()")&&(r=null,o="")):(r=e,o=n),l=e}return{couldReturn:a,hostClass:n,property:r,propertyHost:o,methodName:i}}(e);if(Br[r.hostClass]||function(e){let t=function(e,t){this.context=Xr(e),Je(this,t),Ur(this,"Api"),Ur(this,this._newClass)};t.prototype=Object.create(Hr.prototype),Object.defineProperty(t,"name",{value:e,writable:!1}),t.prototype._newClass=e,Br[e]=t}(r.hostClass),r.property)zr[r.propertyHost]||(zr[r.propertyHost]=[]),zr[r.propertyHost].push({couldReturn:r.couldReturn,property:r.property,method:r.methodName,fn:t});else{let e=function(){let e=this._newClass;this._newClass=r.couldReturn;let n=t.apply(this,arguments);return this._newClass=e,n};Br[r.hostClass].prototype[r.methodName]=e,"Api"===r.hostClass&&se.object.each(Br,(t,n)=>{n.prototype[r.methodName]||(n.prototype[r.methodName]=e)})}}function Wr(e,t,r){Hr.register(e,r),Hr.register(t,function(){var e=r.apply(this,arguments);return e===this?this:e&&e.isDataTableApi?e.length?Array.isArray(e[0])?this.inst(e.context,e[0]):e[0]:void 0:e})}se.object.assign(Hr.prototype,{_newClass:"Api",isDataTableApi:!0,any(){return 0!==this.count()},context:[],count(){return this.flatten().length},each(e){for(var t=0,r=this.length;r>t;t++)e.call(this,this[t],t,this);return this},eq(e){var t=this.context;return t.length>e?this.inst(t[e],this[e],"Api"):null},filter(e){var t=qr.filter.call(this,e,this);return this.inst(this.context,t)},flatten(){var e=[];return this.inst(this.context,e.concat.apply(e,this.toArray()))},get(e){return this[e]},join:qr.join,includes(e){return-1!==this.indexOf(e)},indexOf:qr.indexOf,inst(e,t,r){let n=r||this._newClass,a=Hr;return Br[n]&&(a=Br[n]),new a(e,t)},iterator(e,t,r,n){var a,i,o,l,s,c,u,d,f=[],h=this.context,p=this.selector;for("string"==typeof e&&(n=r,r=t,t=e,e=!1),i=0,o=h.length;o>i;i++){var g=this.inst(h[i]);if("table"===t)void 0!==(a=r.call(g,h[i],i))&&f.push(a);else if("columns"===t||"rows"===t)void 0!==(a=r.call(g,h[i],this[i],i))&&f.push(a);else if("every"===t||"column"===t||"column-rows"===t||"row"===t||"cell"===t)for(u=this[i],"column-rows"===t&&(c=kr(h[i],p.opts)),l=0,s=u.length;s>l;l++)d=u[l],void 0!==(a="cell"===t?r.call(g,h[i],d.row,d.column,i,l):r.call(g,h[i],d,i,l,c))&&f.push(a)}if(f.length||n){var m=this.inst(h,e?f.concat.apply([],f):f),v=m.selector;return v&&(v.rows=p.rows,v.cols=p.cols,v.opts=p.opts),m}return this},lastIndexOf:qr.lastIndexOf,length:0,map(e){var t=qr.map.call(this,e,this);return this.inst(this.context,t)},pluck(e){var t=se.get(e);return this.map(e=>t(e))},pop:qr.pop,push:qr.push,reduce:qr.reduce,reduceRight:qr.reduceRight,reverse:qr.reverse,selector:{rows:void 0,cols:void 0,opts:void 0},shift:qr.shift,slice(){return this.inst(this.context,this)},sort:qr.sort,splice:qr.splice,toArray(){return qr.slice.call(this)},to$(){return se.external("jq")(this)},toDom(){return new we(this.toArray())},toJQuery:function(){return se.external("jq")(this)},unique:function(){return this.inst(this.context,se.array.unique(this.toArray()))},unshift:qr.unshift}),Hr.register=Pr,Hr.registerPlural=Wr;var zr={},Br={Api:Hr};function Ur(e,t){let r=zr[t];if(r)for(let n=0;r.length>n;n++){let t=r[n];if(e[t.property]){if(!e.hasOwnProperty(t.property)){let r=e[t.property];e[t.property]=function(){return r.apply(e,arguments)}}}else e[t.property]={};e[t.property][t.method]=function(){let r=e._newClass;e._newClass=t.couldReturn;let n=t.fn.apply(e,arguments);return e._newClass=r,n}}}function Xr(e){var t,r=[],n=function(e){var t=function(e){var t,r=e,n=null,a=He.settings,i=se.array.pluck(a,"table");return r?r.table&&r.features?[r]:r.nodeName&&"table"===r.nodeName.toLowerCase()?-1!==(t=i.indexOf(r))?[a[t]]:null:r&&"function"==typeof r.settings?r.settings().toArray():("string"==typeof r?n=we.s(r).get():(se.is.jquery(r)||se.is.dom(r))&&(n=r.get()),n?a.filter(function(e,t){return n.includes(i[t])}):void 0):[]}(e);t&&r.push.apply(r,t)};if(Array.isArray(e))for(t=0;e.length>t;t++)n(e[t]);else n(e);return r.length>1?se.unique(r):r}function $r(e,t){let r=we.s(e);r.find(".dt-column-order").remove(),r.find(".dt-column-title").each(function(e){let t=we.s(e);var r=t.html();t.parent().parent().html(r),t.remove()}),r.find("div.dt-column-"+t).remove(),r.find("th, td").attrRemove("data-dt-column")}window.classes=Br,window.properties=zr,Pr("$()",function(e,t){let r=se.external("jq");r||Pe(this.context[0],0,"No jQuery available. Use `.dom()` or register jQuery");let n=r(this.rows(t).nodes());return r([].concat(n.filter(e).toArray(),n.find(e).toArray()))}),["on","one","off"].forEach(e=>{Pr(e+"()",function(){var t=Array.prototype.slice.call(arguments);t[0]=t[0].split(/\s/).map(function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" ");var r=we.s(this.tables().nodes());return r[e].apply(r,t),this})}),Pr("clear()",function(){return this.iterator("table",function(e){Dt(e)})}),Pr("error()",function(e){return this.iterator("table",function(t){Pe(t,0,e)})}),Pr("settings()",function(){return new Hr(this.context,this.context)}),Pr("init()",function(){var e=this.context;return e.length?e[0].init:null}),Pr("data()",function(){return this.iterator("table",function(e){return se.array.pluck(e.data,"data")}).flatten()}),Pr("trigger()",function(e,t,r){return this.iterator("table",function(n){return Ue(n,null,e,t,r)}).flatten()}),Pr("ready()",function(e){var t=this.context;return e?this.tables().every(function(){var t=this;this.context[0].initDone?e.call(t):this.on("init.dt.DT",function(){e.call(t)})}):t.length&&t[0].initDone||!1}),Pr("destroy()",function(e){return e=e||!1,this.iterator("table",function(t){var r=t.classes,n=t.table,a=t.tbody,i=t.thead,o=t.tfoot,l=we.s(n),s=we.s(a),c=we.s(t.tableWrapper),u=t.data.map(function(e){return e?e.tr:null}).filter(e=>!!e),d=r.order;t.destroying=!0,Ue(t,"destroy","destroy",[t],!0),e||new Hr(t).columns().visible(),t.resizeObserver&&t.resizeObserver.disconnect(),c.off(".DT").find(":not(tbody *)").off(".DT"),t.windowResizeCb&&window.removeEventListener("resize",t.windowResizeCb),n!=i.parentNode&&(l.children("thead").detach(),l.append(i)),o&&n!=o.parentNode&&(l.children("tfoot").detach(),l.append(o)),$r(i,"header"),$r(o,"footer"),t.colgroup.remove(),t.order=[],t.orderFixed=[],or(t),l.find("th, td").classRemove(Object.values(He.type.className).join(" ")),we.s(i).find("th, td").classRemove(d.none+" "+d.canAsc+" "+d.canDesc+" "+d.isAsc+" "+d.isDesc).css("width","").attrRemove("aria-sort"),s.children().detach(),s.append(u);var f=t.tableWrapper.parentNode,h=t.tableWrapper.nextSibling,p=e?"remove":"detach";l[p](),c[p](),!e&&f&&(f.insertBefore(n,h),l.css("width",t+"px").classRemove(r.table));var g=He.settings.indexOf(t);-1!==g&&He.settings.splice(g,1)})}),Pr("i18n()",function(e,t,r){var n=this.context[0],a=se.get(e)(n.language);return void 0===a&&(a=t),se.is.plainObject(a)&&!1!==r&&(a=void 0!==r&&void 0!==a[r]?a[r]:a._),"string"==typeof a?a.replace("%d",r):a});var Vr=function(e,t,r){if(r){var n=new Hr(e);n.one("draw",function(){r(n.ajax.json())})}if("ssp"==$e(e))Or(e,t);else{Jt(e,!0);var a=e.jqXHR;a&&4!==a.readyState&&"function"==typeof a.abort&&a.abort(),hr(e,{},function(r){Dt(e);for(var n=gr(e,r,!1),a=0,i=n.length;i>a;a++)wt(e,n[a]);Or(e,t),fr(e),Jt(e,!1)})}};Pr("ajax.json()",function(){var e=this.context;if(e.length>0)return e[0].json}),Pr("ajax.params()",function(){var e=this.context;if(e.length>0)return e[0].ajaxData}),Pr("ajax.reload()",function(e,t){return this.iterator("table",function(r){Vr(r,!1===t,e)})}),Pr("ajax.url()",function(e){var t=this.context;if(void 0===e){if(0===t.length)return;let e=t[0];return se.is.plainObject(e.ajax)?e.ajax.url:e.ajax}return this.iterator("table",function(t){se.is.plainObject(t.ajax)?t.ajax.url=e:t.ajax=e},!0)}),Pr("ajax.url().load()",function(e,t){return this.iterator("table",function(r){Vr(r,!1===t,e)})}),Pr("cells()",function(e,t,r){let n,a,i=null,o=null;if(_(e)?void 0===e.row?a=e:(n=e,a=t):_(t)||void 0===t?(n=e,a=t):void 0!==e&&(i=e,o=t,a=r),null===o)return this.iterator("table",function(e){return function(e,t,r){var n,a,i,o,l,s,c,u,d=e.data,f=kr(e,r),h=e.columns.length;return Er("cell",t,function(t){var r="function"==typeof t;if(null==t||r){for(i=[],o=0,l=f.length;l>o;o++)for(a=f[o],s=0;h>s;s++)c={row:a,column:s},r?(u=d[a],t(c,Tt(e,a,s),u&&u.cells?u.cells[s]:null)&&i.push(c)):i.push(c);return i}if(_(t))return void 0!==t.column&&void 0!==t.row&&-1!==f.indexOf(t.row)?[t]:[];if(!n){let e=B(W(d,f,"cells"));n=we.s(q([],e))}let p=n.filter(t).mapTo(e=>({row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}));if(p.length||!t.nodeName)return p;let g=we.s(t).closest("*[data-dt-row]"),m=we.s(t).closest("*[data-dt-column]");return g.count()?[{row:parseInt(g.attr("data-dt-row")),column:parseInt(m.attr("data-dt-column"))}]:[]},e,r)}(e,n,Mr(a))});let l,s,c,u,d=a?{page:a.page,order:a.order,search:a.search}:{},f=this.columns(o,d),h=this.rows(i,d),p=this.iterator("table",function(e,t){let r=[];for(l=0,s=h[t].length;s>l;l++)for(c=0,u=f[t].length;u>c;c++)r.push({row:h[t][l],column:f[t][c]});return r},!0),g=a&&a.selected?this.cells(p.toArray(),a):p;return C(g.selector,{cols:o,rows:i,opts:a}),g}),Pr("cells().every()",function(e){var t=this.selector.opts,r=0;return this.iterator("every",(n,a,i)=>{let o=this.cell(a,t);e.call(o,o[0][0].row,o[0][0].column,i,r),r++})}),Wr("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,r){var n=e.data[t];return n&&n.cells?n.cells[r]:void 0},!0)}),Pr("cells().data()",function(){return this.iterator("cell",function(e,t,r){return Tt(e,t,r)},!0)}),Wr("cells().render()","cell().render()",function(e){return this.iterator("cell",function(t,r,n){return Tt(t,r,n,e)},!0)}),Wr("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,r){return{row:t,column:r,columnVisible:Ht(e,r)}},!0)}),Wr("cells().invalidate()","cell().invalidate()",function(e){return this.iterator("cell",function(t,r,n){jt(t,r,e,n)})}),Pr("cell()",function(e,t,r){return Fr(this.cells(e,t,r))}),Pr("cell().data()",function(e){var t=this.context,r=this[0];return void 0===e?t.length&&r.length?Tt(t[0],r[0].row,r[0].column):void 0:(function(e,t,r,n){let a=e.data[t];a&&e.columns[r].dataSet(a.data,n,{settings:e,row:t,col:r})}(t[0],r[0].row,r[0].column,e),jt(t[0],r[0].row,"data",r[0].column),this)});var Jr=/^([^:]+)?:(name|title|visIdx|visible)$/;function Gr(e,t,r,n,a,i){let o=[];for(let l=0,s=a.length;s>l;l++)o.push(Tt(e,a[l],t,i));return o}function Yr(e,t,r){var n=e.header,a=e.titleRow,i=0;if(void 0!==r)i=r;else if(!0===a)i=0;else if(!1===a)i=n.length-1;else if(null!==a)i=a;else{for(var o=0;n.length>o;o++)n[o][t].unique&&we.s(n[o][t].cell).find(".dt-column-title").text()&&(i=o);null===i&&(i=0)}return n[i][t].cell}function Zr(e,t){let r="string"==typeof t?parseInt(t,10):t;e.pageLength=r,Xe(e),Ue(e,null,"length",[e,r])}function Qr(e,t){t&&t.childRows&&e.rows(t.childRows.map(function(e){return e.replace(/([^:\\]*(?:\\.[^:\\]*)*):/g,"$1\\:")})).every(function(){Ue(e.settings()[0],null,"requestChild",[this])})}Pr("columns()",function(e,t){let r,n;void 0===e?r="":_(e)?(r="",t=e):r=e,n=Mr(t);let a=this.iterator("table",e=>function(e,t,r){var n,a,i=e.columns,o=function(e){for(var t=[],r=0;e.length>r;r++)for(var n=0;e[r].length>n;n++){var a=e[r][n].cell;t.includes(a)||t.push(a)}return t}(e.header),l=Er("column",t,function(t){var l=m(t);if(""===t)return z(i.length);if(null!==l)return[0>l?i.length+l:l];if("function"==typeof t){var s=kr(e,r);return i.map(function(r,n){return t(n,Gr(e,n,0,0,s),Yr(e,n))?n:null})}var c="string"==typeof t?t.match(Jr):"";if(c)switch(c[2]){case"visIdx":case"visible":if(c[1]&&c[1].match(/^\d+$/)){var u=parseInt(c[1],10);if(0>u){var d=i.map(function(e,t){return e.visible?t:null});return[d[d.length+u]]}return[qt(e,u)]}return i.map(function(e,t){return e.visible?!1===e.responsiveVisible?null:c&&c[1]?we.s(o[t]).filter(c[1]).count()>0?t:null:t:null});case"name":return n||(n=P(i,"name")),n.map(function(e,t){return c&&e===c[1]?t:null});case"title":return a||(a=P(i,"title")),a.map(function(e,t){return c&&e===c[1]?t:null});default:return[]}if(t.nodeName&&t._DT_CellIndex)return[t._DT_CellIndex.column];var f=we.s(o).filter(t).mapTo(e=>Vt(e)).flat().sort(function(e,t){return e-t});if(f.length||!t.nodeName)return f;var h=we.s(t).closest("*[data-dt-column]");return h.count()?[parseInt(h.attr("data-dt-column"))]:[]},e,r);return r.columnOrder&&"index"===r.columnOrder?l.sort(function(e,t){return e-t}):l}(e,r,n),!0);return a.selector.cols=r,a.selector.opts=n,a}),Pr("columns().every()",function(e){var t=this.selector.opts,r=0;return this.iterator("every",(n,a,i)=>{let o=this.column(a,t);e.call(o,a,i,r),r++})}),Wr("columns().header()","column().header()",function(e){return this.iterator("column",function(t,r){return Yr(t,r,e)},!0)}),Wr("columns().footer()","column().footer()",function(e){return this.iterator("column",function(t,r){return t.footer.length?t.footer[void 0!==e?e:0][r].cell:null},!0)}),Wr("columns().data()","column().data()",function(){return this.iterator("column-rows",Gr,!0)}),Wr("columns().render()","column().render()",function(e){return this.iterator("column-rows",function(t,r,n,a,i){return Gr(t,r,0,0,i,e)},!0)}),Wr("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.columns[t].data},!0)}),Wr("columns().init()","column().init()",function(){return this.iterator("column",function(e,t){return e.columns[t]},!0)}),Wr("columns().names()","column().name()",function(){return this.iterator("column",function(e,t){return e.columns[t].name},!0)}),Wr("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,r,n,a){return B(W(e.data,a,"cells",t))},!0)}),Wr("columns().titles()","column().title()",function(e,t){return this.iterator("column",function(r,n){"number"==typeof e&&(t=e,e=void 0);var a=we.s(this.column(n).header(t)).find(".dt-column-title");return void 0!==e?(a.html(e),this):a.html()},!0)}),Wr("columns().types()","column().type()",function(){return this.iterator("column",function(e,t){var r=e.columns[t],n=r.type;return n||(Bt(e),n=r.type),n},!0)}),Wr("columns().visible()","column().visible()",function(e,t){var r=this,n=[],a=this.iterator("column",function(t,r){if(void 0===e)return t.columns[r].visible;(function(e,t,r){var n,a,i,o,l=e.columns,s=l[t],c=e.data;if(void 0===r)return s.visible;if(s.visible===r)return!1;if(r){var u=P(l,"visible").indexOf(!0,t+1);for(a=0,i=c.length;i>a;a++){let e=c[a];e&&(n=e.cells,(o=e.tr)&&o.insertBefore(n[t],n[u]||null))}}else we.s(B(P(e.data,"cells",t))).detach();return s.visible=r,Rt(e),!0})(t,r,e)&&n.push(r)});return void 0!==e&&this.iterator("table",function(a){jr(a,a.header),jr(a,a.footer),a.display.length||we.s(a.tbody).find("td[colspan]").attr("colspan",Pt(a)),cr(a),r.iterator("column",function(r,a){n.includes(a)&&Ue(r,null,"column-visibility",[r,a,e,t])}),n.length&&(void 0===t||t)&&r.columns.adjust()}),a}),Wr("columns().widths()","column().width()",function(){var e=this.columns(":visible"),t=we.c("tr").html("<td>"+Array(e.count()).join("</td><td>")+"</td>");we.s(this.table().body()).append(t);var r=[],n=e.indexes();return t.children().each((e,t)=>{r[n[t]]=we.s(e).width("outer")}),t.remove(),this.iterator("column",(e,t)=>r[t]||0,!0)}),Wr("columns().indexes()","column().index()",function(e){return this.iterator("column",function(t,r){return"visible"===e?Ht(t,r):r},!0)}),Pr("columns.adjust()",function(){return this.iterator("table",function(e){e.containerWidth=-1,kt(e)},!0)}),Pr("column.index()",function(e,t){if(0!==this.context.length){var r=this.context[0];if("fromVisible"===e||"toData"===e)return qt(r,t);if("fromData"===e||"toVisible"===e)return Ht(r,t)}return-1}),Pr("column()",function(e,t){return Fr(this.columns(e,t))}),Hr.register("draw()",function(e){return this.iterator("table",function(t){"page"===e?Cr(t):("string"==typeof e&&(e="full-hold"!==e),Or(t,!1===e))})}),Pr("order()",function(e,t){let r=this.context,n=Array.prototype.slice.call(arguments);return void 0===e?0!==r.length?r[0].order:void 0:("number"==typeof e&&"string"==typeof t?e=[[e,t]]:n.length>1&&(e=n),this.iterator("table",function(t){let r=[];rr(t,r,e),t.order=r}))}),Pr("order.listener()",function(e,t,r){return this.iterator("table",function(n){er(n,e,"",t,r)})}),Pr("order.fixed()",function(e){if(!e){var t=this.context,r=t.length?t[0].orderFixed:void 0;return Array.isArray(r)?{pre:r}:r}return this.iterator("table",function(t){t.orderFixed=O({},e)})}),Pr(["columns().order()","column().order()"],function(e){var t=this;return e?this.iterator("table",function(r,n){r.order=t[n].map(function(t){return[t,e]})}):this.iterator("column",function(e,t){for(var r=nr(e),n=0,a=r.length;a>n;n++)if(r[n].col===t)return r[n].dir;return null},!0)}),Wr("columns().orderable()","column().orderable()",function(e){return this.iterator("column",function(t,r){var n=t.columns[r];return e?n.orderSequence:n.orderable},!0)}),Pr("page()",function(e){return void 0===e?this.page.info().page:this.iterator("table",function(t){sr(t,e)})}),Pr("page.info()",function(){var e=this.context[0],t=e.displayStart,r=e.features.paging?e.pageLength:-1,n=Lr(e),a=-1===r;return{page:a?0:Math.floor(t/r),pages:a?1:Math.ceil(n/r),start:t,end:Ir(e),length:r,recordsTotal:Rr(e),recordsDisplay:n,serverSide:"ssp"===$e(e)}}),Pr("page.len()",function(e){return null==e?0!==this.context.length?this.context[0].pageLength:void 0:this.iterator("table",function(t){Zr(t,e)})}),Pr("processing()",function(e){return this.iterator("table",t=>Jt(t,e))}),we.s(document).on("plugin-init.dt",function(e,t){var r=new Hr(t);r.on("stateSaveParams.DT",function(e,t,r){for(var n=t.rowIdFn,a=t.displayMaster,i=[],o=0;a.length>o;o++){var l=t.data[a[o]];l.detailsShow&&i.push("#"+n(l.data))}r.childRows=i}),r.on("stateLoaded.DT",function(e,t,n){Qr(r,n)}),Qr(r,r.state.loaded())});var Kr=se.throttle(function(e){cr(e[0])},500);function en(e,t){var r=e.context;if(r.length){var n=r[0].data[void 0!==t?t:e[0]];n&&n.details&&(n.details.detach(),n.detailsShow=void 0,n.details=void 0,we.s(n.tr).classRemove("dt-hasChild"),Kr(r))}}function tn(e,t){var r=e.context;if(r.length&&e.length){var n=r[0].data[e[0]];n&&n.details&&(n.detailsShow=t,t&&n.tr?(n.details.insertAfter(n.tr),we.s(n.tr).classAdd("dt-hasChild")):t||(n.details.detach(),we.s(n.tr).classRemove("dt-hasChild")),Ue(r[0],null,"childRow",[t,e.row(e[0])]),function(e){var t=new Hr(e),r=".dt.DT_details",n="draw"+r,a="column-sizing"+r,i="destroy"+r,o=e.data;t.off(n+" "+a+" "+i),se.array.pluck(o,"details").length>0&&(t.on(n,function(r,n){e===n&&t.rows({page:"current"}).eq(0).each(function(e){var t=o[e];t&&t.detailsShow&&t.details&&t.tr&&t.details.insertAfter(t.tr)})}),t.on(a,function(t,r){if(e===r)for(var n,a=Pt(r),i=0,l=o.length;l>i;i++)(n=o[i])&&n.details&&n.details.each(function(e){var t=we.s(e).children("td");1==t.count()&&t.attr("colspan",a)})}),t.on(i,function(r,n){if(e===n)for(var a=0,i=o.length;i>a;a++){let e=o[a];e&&e.details&&en(t,a)}}))}(r[0]),Kr(r))}}var rn="row().child",nn=rn+"()";function an(e,t){if(Array.isArray(e)){var r=[];return e.forEach(function(e){Je(r,an(e,t))}),r.filter(e=>!!e)}if("number"==typeof e)return[t[e]];var n=t.map(function(e){return e.table});return we.s(n).filter(e).mapTo(e=>t[n.indexOf(e)])}Hr.register(nn,function(e,t){var r,n=this.context;return void 0===e?n.length&&this.length&&n[0].data[this[0]]?null===(r=n[0].data[this[0]])||void 0===r?void 0:r.details:void 0:(!0===e?this.child.show():!1===e?en(this):n.length&&this.length&&function(e,t,r,n){if(t){var a=[],i=function(r,n){if(Array.isArray(r)||se.is.jquery(r))for(var o=0,l=r.length;l>o;o++)i(r[o],n);else if(r.nodeName&&"tr"===r.nodeName.toLowerCase())r.setAttribute("data-dt-row",t.idx),a.push(r);else{let i=we.c("td").classAdd(n),o=we.c("tr").append(i).attr("data-dt-row",t.idx).classAdd(n);r.nodeName?i.append(r):i.html(r),i.get(0).colSpan=Pt(e),a.push(o.get(0))}};i(r,n),t.details&&t.details.detach(),t.details=we.s(a),t.detailsShow&&t.tr&&t.details.insertAfter(t.tr)}}(n[0],n[0].data[this[0]],e,t),this.inst(this.context,this))}),Hr.register([rn+".show()",nn+".show()"],function(){return tn(this,!0),this}),Hr.register([rn+".hide()",nn+".hide()"],function(){return tn(this,!1),this}),Hr.register([rn+".remove()",nn+".remove()"],function(){return en(this),this}),Hr.register(rn+".isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].data[this[0]]&&e[0].data[this[0]].detailsShow||!1}),Pr("rows()",function(e,t){let r,n;void 0===e?n="":se.is.plainObject(e)?(n="",r=e):(n=e,r=t),r=Mr(r);var a=this.iterator("table",function(e){return function(e,t,r){var n,a=Er("row",t,function(t){var a=se.conv.intVal(t),i=e.data;if(null!==a&&!r)return[a];if(n||(n=kr(e,r)),null!==a&&-1!==n.indexOf(a))return[a];if(null==t||""===t)return n;if("function"==typeof t)return n.map(function(e){var r=i[e];return r&&t(e,r.data,r.tr)?e:null});if(t.nodeName){var o,l=t._DT_RowIndex,s=t._DT_CellIndex;if(void 0!==l)return(o=i[l])&&o.tr===t?[l]:[];if(s)return(o=i[s.row])&&o.tr===t.parentNode?[s.row]:[];var c=we.s(t).closest("*[data-dt-row]");return c.count()?[parseInt(c.attr("data-dt-row"))]:[]}if("string"==typeof t)if("#"===t.charAt(0)){var u=e.ids[t.replace(/^#/,"")];if(void 0!==u)return[u.idx]}else if(t.match(/^(tr)?:eq\(\d+\)$/)){let e=parseInt(t.replace(/[^\d]/g,""));return void 0!==n[e]?[n[e]]:[]}var d=se.array.removeEmpty(se.array.pluckOrder(e.data,n,"tr"));return we.s(d).filter(t).mapTo(e=>e._DT_RowIndex)},e,r);return"current"!==r.order&&"applied"!==r.order||tr(e,a),a}(e,n,r)},!0);return a.selector.rows=n,a.selector.opts=r,a}),Pr("rows().every()",function(e){var t=this.selector.opts,r=0;return this.iterator("every",(n,a,i)=>{let o=this.row(a,t);e.call(o,a,i,r),r++})}),Pr("rows().nodes()",function(){return this.iterator("row",function(e,t){var r;return(null===(r=e.data[t])||void 0===r?void 0:r.tr)||void 0},!0)}),Pr("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return se.array.pluckOrder(e.data,t,"data")},!0)}),Wr("rows().invalidate()","row().invalidate()",function(e){return this.iterator("row",function(t,r){jt(t,r,e)})}),Wr("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},!0)}),Wr("rows().ids()","row().id()",function(e){for(var t,r=[],n=this.context,a=0,i=n.length;i>a;a++)for(var o=0,l=this[a].length;l>o;o++){var s=n[a].rowIdFn(null===(t=n[a].data[this[a][o]])||void 0===t?void 0:t.data);r.push((!0===e?"#":"")+s)}return this.inst(n,r)}),Wr("rows().remove()","row().remove()",function(){return this.iterator("row",function(e,t){var r=e.data,n=r[t],a=e.displayMaster.indexOf(t);-1!==a&&e.displayMaster.splice(a,1),e.recordsDisplay>0&&e.recordsDisplay--,Xe(e);var i=e.rowIdFn(null==n?void 0:n.data);void 0!==i&&delete e.ids[i],r[t]=null}),this}),Pr("rows.add()",function(e){var t=this.iterator("table",function(t){var r,n,a,i=[];for(n=0,a=e.length;a>n;n++)(r=e[n]).nodeName&&"TR"===r.nodeName.toUpperCase()?i.push(xt(t,we.s(r))[0]):i.push(wt(t,r));return i},!0),r=this.rows(-1);return r.pop(),Je(r,t),r}),Pr("row()",function(e,t){return Fr(this.rows(e,t))}),Pr("row().data()",function(e){var t,r=this.context;if(void 0===e)return r.length&&this.length&&this[0].length?null===(t=r[0].data[this[0]])||void 0===t?void 0:t.data:void 0;var n=r[0].data[this[0]];return n.data=e,Array.isArray(e)&&n.tr&&n.tr.id&&se.set(r[0].rowId)(e,n.tr.id),jt(r[0],this[0][0],"data"),this}),Pr("row().node()",function(){var e=this.context;if(e.length&&this.length&&this[0].length){var t=e[0].data[this[0]];if(t&&t.tr)return t.tr}return null}),Pr("row.add()",function(e){e&&e.fn&&e.length&&(e=e[0]);var t=this.iterator("table",function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?xt(t,we.s(e))[0]:wt(t,e)});return this.row(t[0])}),Pr("search()",function(e,t,r,n){if(void 0===e){let e=this.context;if(0===e.length)return;return e[0].searches["*"].search}return this.iterator("table",function(a){if(!a.features.searching)return;let i=a.searches["*"];i||(i=dt()),C(i,"object"==typeof t?t:{regex:null!==t&&t,smart:null===r||r,caseInsensitive:null===n||n}),i.search=e,a.searches["*"]=i,br(a)})}),Pr("search.fixed()",function(e,t,r){var n=this.iterator(!0,"table",function(n){var a,i=n.searchesFixed["*"];if(!e)return Object.keys(i);if(void 0===t)return null===(a=i[e])||void 0===a?void 0:a.search;if(null===t)delete i[e];else{let n=i[e];n&&se.is.plainObject(n)||(n=dt()),r&&C(n,r),n.search=t,i[e]=n}return this});return void 0!==e&&void 0===t?n[0]:n}),Pr(["columns().search()","column().search()"],function(e,t,r,n){var a;if(void 0===e){let e=this[0].join(",");return this.context.length&&(null===(a=this.context[0].searches[e])||void 0===a?void 0:a.search)||""}return this.iterator("columns",function(a,i){let o=i.join(","),l=a.searches[o];l||(l=dt()),""!==e&&null!==e||1>=i.length?(C(l,"object"==typeof t?t:{regex:null!==t&&t,smart:null===r||r,caseInsensitive:null===n||n}),l.search=e,l.columns=i.slice(),a.searches[o]=l,br(a)):delete a.searches[o]})}),Pr(["columns().search.fixed()","column().search.fixed()"],function(e,t,r){if(!e)return this.iterator(!0,"columns",function(e,t){let r=t.join(","),n=e.searchesFixed[r];return n?Object.keys(n):[]});if(void 0!==t)return this.iterator(!0,"columns",function(n,a){let i=a.join(","),o=n.searchesFixed[i];if(o||(o={},n.searchesFixed[i]=o),null===t)delete o[e];else{let n=o[e];n&&se.is.plainObject(n)||(n=dt()),r&&C(n,r),n.search=t,n.columns=a,o[e]=n}return this});if(this.context.length){let t=this[0].join(","),r=this.context[0].searchesFixed[t];return r&&r[e]?r[e].search:void 0}}),Pr("state()",function(e,t){if(!e)return this.context.length?this.context[0].stateSaved:null;let r=O({},e);return this.iterator("table",function(e){!1!==t&&(r.time=+new Date+100),ur(e,r,function(){})})}),Pr("state.clear()",function(){return this.iterator("table",function(e){e.stateSaveCallback.call(e.instance,e,{})})}),Pr("state.loaded()",function(){return this.context.length?this.context[0].stateLoaded:null}),Pr("state.save()",function(){return this.iterator("table",function(e){cr(e)})}),Pr("tables()",function(e){return this.inst(null!=e?an(e,this.context):this.context)}),Pr("table()",function(e){return Fr(this.tables(e))}),[["nodes","node","table"],["body","body","tbody"],["header","header","thead"],["footer","footer","tfoot"]].forEach(function(e){Wr("tables()."+e[0]+"()","table()."+e[1]+"()",function(){return this.iterator("table",t=>t[e[2]],!0)})}),["header","footer"].forEach(function(e){Pr("table()."+e+".structure()",function(t){var r=this.columns(t).indexes().flatten().toArray(),n=this.context[0],a=Dr(n,n[e],r),i=r.slice().sort(function(e,t){return e-t});return a.map(function(e){return r.map(function(t){return e[i.indexOf(t)]})})})}),Wr("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.tableWrapper},!0)}),Pr("tables().every()",function(e){return this.iterator("table",(t,r)=>{e.call(this.table(r),r)})}),Pr("caption()",function(e,t){var r=this.context;if(void 0===e){var n=r[0].captionNode;return n&&r.length?n.innerHTML:null}return this.iterator("table",function(r){var n=we.s(r.table),a=we.s(r.captionNode),i=we.s(r.tableWrapper);a.count()||(a=we.c("caption").html(e),r.captionNode=a.get(0),t||(n.prepend(a),t=a.css("caption-side"))),a.html(e),t&&(a.css("caption-side",t),a.get(0)._captionSide=t),i.find("div.dt-scroll").count()?i.find("div.dt-scroll-"+("top"===t?"head":"foot")+" table").prepend(a):n.prepend(a)},!0)}),Pr("caption.node()",function(){var e=this.context;return e.length?e[0].captionNode:null});var on,ln=!1,sn=!1,cn=null,un=null,dn={developers:0,type:null,expires:null,valid:null},fn=we.c("div");function hn(e){return Uint8Array.from(atob(e),e=>e.charCodeAt(0))}function pn(e,t){let r=dn.expires;if(!1===dn.valid)mn("License key invalid"),vn();else{if("trial"===dn.type){let e=r?Math.ceil((r.getTime()-(new Date).getTime())/864e5):-1;return 0>e?(gn("Your trial has now expired - https://datatables.net/plus","warn"),mn("Trial expired"),vn(),!1):(gn("Your trial expires in "+e+" day"+(1===e?"":"s")),!0)}if(null===t)return!0;if("plus"===dn.type||"editor"===dn.type&&"editor"===t)return!(!r||new Date(e)>r)||(mn("Upgrade required for this version"),vn(),!1);if("editor"===dn.type&&"editor"!==t)return mn("License for Editor only. Upgrade for Plus"),vn(),!1}return mn(),vn(),!1}function gn(e,t="log"){("log"===t?console.log:console.warn)("%cDataTables Plus%c "+e,"background: #007bff; color: #fff; padding: 2px 5px;","color: inherit;")}function mn(e){if(!ln){let t=fn[0].attachShadow({mode:"closed"}),r=we.c("div").css({position:"fixed",bottom:"1em",right:"1em",border:"1px solid #ffc107",background:"#fff3cd",color:"#856404",padding:"0.5em 1em","font-family":"sans-serif","font-size":"12px","border-radius":"4px","z-index":"10000","box-shadow":"0 2px 5px rgba(0,0,0,0.2)"});we.c("a").attr("href","https://datatables.net/tn/25").attr("target","_blank").css({color:"inherit","text-decoration":"none"}).appendTo(r),e||(e="License key required"),t.appendChild(r[0]),on=r,ln=!0}e&&on.find("a").html("DataTables Plus: "+e+" - learn more &#187;")}function vn(){sn||document.body.contains(fn[0])||document.body.appendChild(fn[0])}function yn(e,t){var r=!1;return e&&e.document&&(window=e,document=e.document),t&&t.fn&&t.fn.jquery&&(r=!0),r}function bn(e,t,r){r&&(e[t]=r)}function wn(e){let t=[];return e.numbers&&t.push("numbers"),e.previousNext&&(t.unshift("previous"),t.push("next")),e.firstLast&&(t.unshift("first"),t.push("last")),t}function xn(e,t,r){if(!e.initDone)return;let n=r.type?He.pager[r.type]:wn,a=e.language.aria.paginate||{},i=e.displayStart,o=e.pageLength,l=Lr(e),s=-1===o,c=s?0:Math.ceil(i/o),u=s?l?1:0:Math.ceil(l/o),d=[],f=[],h=n(r).map(function(e){return"numbers"===e?Se(c,u,r.buttons,r.boundaryNumbers):e});d=d.concat.apply(d,h);for(let m=0;d.length>m;m++){let t=d[m],r=Tn(e,t,c,u),n=Yt(e,"pagingButton")(e,t,r.display,r.active,r.disabled),i="string"==typeof t?a[t]:a.number?a.number+(t+1):null;we.s(n.clicker).attr({"aria-controls":e.tableId,"aria-disabled":r.disabled?"true":null,"aria-current":r.active?"page":null,"aria-label":i,"data-dt-idx":t,tabIndex:r.disabled?-1:e.tabIndex&&"span"!==n.clicker.nodeName.toLowerCase()?e.tabIndex:null}),"number"!=typeof t&&we.s(n.clicker).classAdd(t),ze(n.clicker,"",function(r){r.preventDefault(),sr(e,t,!0)}),f.push(n.display)}let p=Yt(e,"pagingContainer")(e,f),g=t.find(document.activeElement).attr("data-dt-idx");if(t.empty().append(p),g&&t.find('[data-dt-idx="'+g+'"]').trigger("focus"),f.length){let n=we.s(f[0]).height("withBorder");r.buttons>1&&n>0&&t.height()>=2*n-10&&xn(e,t,Object.assign({},r,{buttons:r.buttons-2}))}}function Tn(e,t,r,n){let a=e.language.paginate,i={display:"",active:!1,disabled:!1};switch(t){case"ellipsis":i.display="&#x2026;";break;case"first":i.display=a.first,0===r&&(i.disabled=!0);break;case"previous":i.display=a.previous,0===r&&(i.disabled=!0);break;case"next":i.display=a.next,0!==n&&r!==n-1||(i.disabled=!0);break;case"last":i.display=a.last,0!==n&&r!==n-1||(i.disabled=!0);break;default:"number"==typeof t&&(i.display=e.formatNumber(t+1,e),r===t&&(i.active=!0))}return i}Ne("div",function(e,t){var r=document.createElement("div");return t&&(bn(r,"className",t.className),bn(r,"id",t.id),bn(r,"innerHTML",t.html),bn(r,"textContent",t.text)),r}),Ne("info",function(e,t){if(!e.features.info)return null;let r=e.language,n=e.tableId,a=we.c("div").classAdd(e.classes.info.container),i=Object.assign({callback:r.infoCallback,empty:r.infoEmpty,postfix:r.infoPostFix,search:r.infoFiltered,text:r.info},t);return e.callbacks.draw.push(function(e){!function(e,t,r){var n=e.displayStart+1,a=Ir(e),i=Rr(e),o=Lr(e),l=o?t.text:t.empty;o!==i&&(l+=" "+t.search),l=Ve(e,l+=t.postfix),t.callback&&(l=t.callback.call(e.instance,e,n,a,i,o,l)),r.html(l),Ue(e,null,"info",[e,r.get(0),l])}(e,i,a)}),e.infoEl||(a.attr({"aria-live":"polite",id:n+"_info",role:"status"}),we.s(e.table).attr("aria-describedby",n+"_info"),e.infoEl=a),a},"i"),Ne("paging",function(e,t){if(!e.features.paging)return null;let r=Object.assign({buttons:He.pager.numbers_length,type:e.pagingType,boundaryNumbers:!0,firstLast:!0,previousNext:!0,numbers:!0},t),n=we.c("div").classAdd(e.classes.paging.container+(r.type?" paging_"+r.type:"")).append(we.c("nav").attr("aria-label","pagination").classAdd(e.classes.paging.nav)),a=function(){xn(e,n.children(),r)};return e.callbacks.draw.push(a),we.s(e.table).on("column-sizing.dt.DT",a),n},"p");var An=0;Ne("pageLength",function(e,t){var r=e.features;if(!r.paging||!r.lengthChange)return null;let n,a=Object.assign({menu:e.lengthMenu,text:e.language.lengthMenu},t),i=e.classes.length,o=e.tableId,l=a.menu,s=[],c=[];if(Array.isArray(l[0]))s=l[0],c=l[1];else for(n=0;l.length>n;n++)_(l[n])?(s.push(l[n].value),c.push(l[n].label)):(s.push(l[n]),c.push(l[n]));var u=a.text.match(/_MENU_$/),d=a.text.match(/^_MENU_/),f=a.text.replace(/_MENU_/,""),h="<label>"+a.text+"</label>";d?h="_MENU_<label>"+f+"</label>":u&&(h="<label>"+f+"</label>_MENU_");var p="tmp-"+ +new Date,g=we.c("div").classAdd(i.container).html(h.replace("_MENU_",'<span id="'+p+'"></span>')),m=[];Array.prototype.slice.call(g.find("label").get(0).childNodes).forEach(function(e){e.nodeType===Node.TEXT_NODE&&m.push({el:e,text:e.textContent})});var v=function(t){m.forEach(function(r){r.el.textContent=Ve(e,r.text,t)})},y=we.c("select").attr("aria-controls",o).attr("autocomplete","off").classAdd(i.select);for(n=0;s.length>n;n++){var b=e.api.i18n("lengthLabels."+s[n],null);null===b&&(b="number"==typeof c[n]?e.formatNumber(c[n],e):c[n]),y.get(0)[n]=new Option(b,s[n])}return g.find("#"+p).replaceWith(y),g.find("select").attr("id","dt-length-"+An).val(e.pageLength).on("change.DT",function(){Zr(e,y.val()),Cr(e)}),g.find("label").attr("for","dt-length-"+An),An++,we.s(e.table).on("length.dt.DT",function(t,r,n){if(e===r){let e=g.find("select");if(e.find("option[data-dt-len-tmp]").remove(),!e.find('option[value="'+n+'"]').length){let t=function(e,t){let r=e.find("option"),n=r.mapTo(e=>parseInt(e.value)).findIndex(e=>e>t);return-1>n?null:r.eq(n)}(y,n),r=we.c("option").val(n).text(n).attr("data-dt-len-tmp",!0);t&&t.length?r.insertBefore(t):e.append(r)}e.val(n),v(n)}}),v(e.pageLength),g},"l");var _n=0;function Dn(e){return e instanceof RegExp?e.toString():"function"!=typeof e?e:""}Ne("search",function(e,t){if(!e.features.searching)return null;let r=e.classes.search,n=e.tableId,a=e.language,i='<input type="search" class="'+r.input+'" autocomplete="off"/>',o=se.object.assignDeep({columns:"*",placeholder:a.searchPlaceholder,processing:!1,text:a.search},t);-1===o.text.indexOf("_INPUT_")&&(o.text+="_INPUT_"),o.text=Ve(e,o.text);let l=e.api.columns(o.columns).indexes().toArray(),s="*"===o.columns?"*":l.join(","),c=e.searches[s];c||(c=dt(),e.searches[s]=c),c.columns=l;let u=o.text.match(/_INPUT_$/),d=o.text.match(/^_INPUT_/),f=o.text.replace(/_INPUT_/,""),h="<label>"+o.text+"</label>";d?h="_INPUT_<label>"+f+"</label>":u&&(h="<label>"+f+"</label>_INPUT_");let p=we.c("div").classAdd(r.container).html(h.replace(/_INPUT_/,i));p.find("label").attr("for","dt-search-"+_n),p.find("input").attr("id","dt-search-"+_n),_n++;let g=function(t){let r=this.value;c.return&&"Enter"!==t.key||r!=c.search&&Gt(e,o.processing,function(){c.search=r,br(e),e.displayStart=0,Cr(e)})},m=e.searchDelay,v=p.find("input").val(Dn(c.search)).attr("placeholder",o.placeholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",m?se.debounce(g,m):g).on("mouseup.DT",function(e){setTimeout(function(){g.call(v.get(0),e)},10)}).on("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",n);return we.s(e.table).on("search.dt.DT",function(t,r){e===r&&v.get(0)!==document.activeElement&&v.val(Dn(e.searches[s].search))}),p},"f");var jn={ajax:null,ajaxDataGet:!1,api:null,browser:{barWidth:0,scrollbarLeft:!1},callbacks:{destroy:[],draw:[],footer:[],header:[],init:[],preDraw:[],row:[],rowCreated:[],stateLoadParams:[],stateLoaded:[],stateSaveParams:[]},caption:"",captionNode:null,classes:{},columns:[],containerWidth:-1,data:[],deferLoading:!1,destroyWidth:0,destroying:!1,display:[],displayMaster:[],displayStart:0,displayStartInit:-1,doingDraw:!1,dom:null,drawCount:0,drawError:-1,drawHold:!1,features:{autoWidth:!1,deferRender:!1,info:!1,lengthChange:!1,orderClasses:!1,orderMulti:!1,ordering:!1,paging:!1,processing:!1,searching:!1,serverSide:!1,stateSave:!1},footer:[],header:[],ids:{},init:{},initDone:!1,initialised:!1,language:{ajax:"",aria:{orderable:"",orderableRemove:"",orderableReverse:"",paginate:{first:"",last:"",next:"",number:"",previous:""}},decimal:"",emptyTable:"",entries:{_:""},info:"",infoEmpty:"",infoFiltered:"",infoPostFix:"",lengthMenu:"",lengthLabels:{},loadingRecords:"",paginate:{first:"",last:"",next:"",previous:""},processing:"",search:"",searchPlaceholder:"",thousands:"",url:"",zeroRecords:""},lastOrder:[],layout:{},loadingState:!1,order:[],orderCellsTop:null,orderDescReverse:!1,orderFixed:[],orderHandler:!0,orderIndicators:!0,pageLength:10,pagingControls:0,pagingType:"two_button",searchCols:[],recordsDisplay:0,recordsTotal:0,renderer:null,resizeObserver:null,reszEvt:!1,rowId:"",rowReadObject:!1,scroll:{barWidth:0,collapse:null,x:"",xInner:"",y:""},scrollBarVis:!1,searchDelay:0,searches:{},searchesFixed:{"*":{}},serverMethod:null,sortDetails:[],stateDuration:0,stateLoadCallback:()=>({}),stateLoaded:null,stateSaveCallback:()=>{},stateSaved:null,tabIndex:0,tableId:"",titleRow:null,typeDetect:!0,unique:"",wasFiltered:!1,wasOrdered:!1,windowResizeCb:()=>{}};function Cn(e={}){return se.object.assignDeep({},jn,e)}var On={Column:ct,Row:bt,Search:dt,Settings:Cn},Nn={ajax:null,autoWidth:!0,caption:"",classes:{},column:st,columnDefs:null,columns:null,createdRow:null,data:null,deferLoading:null,deferRender:!0,destroy:!1,displayStart:0,dom:null,drawCallback:null,footerCallback:null,formatNumber:function(e,t){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t.language.thousands)},headerCallback:null,info:!0,infoCallback:null,initComplete:null,language:{ajax:"",aria:{orderable:": Activate to sort",orderableRemove:": Activate to remove sorting",orderableReverse:": Activate to invert sorting",paginate:{first:"First",last:"Last",next:"Next",number:"",previous:"Previous"}},decimal:"",emptyTable:"No data available in table",entries:{_:"entries",1:"entry"},info:"Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_",infoEmpty:"Showing 0 to 0 of 0 _ENTRIES-TOTAL_",infoFiltered:"(filtered from _MAX_ total _ENTRIES-MAX_)",infoPostFix:"",lengthLabels:{"-1":"All"},lengthMenu:"_MENU_ _ENTRIES_ per page",loadingRecords:"Loading...",paginate:{first:"«",last:"»",next:"›",previous:"‹"},processing:"",search:"Search:",searchPlaceholder:"",thousands:",",url:"",zeroRecords:"No matching records found"},layout:{bottomEnd:"paging",bottomStart:"info",topEnd:"search",topStart:"pageLength"},lengthChange:!0,lengthMenu:[10,25,50,100],on:{},order:[[0,"asc"]],orderCellsTop:null,orderClasses:!0,orderDescReverse:!0,orderFixed:[],orderMulti:!0,ordering:!0,pageLength:10,paging:!0,pagingType:"",preDrawCallback:null,processing:!1,renderer:null,retrieve:!1,rowCallback:null,rowId:"DT_RowId",scrollCollapse:!1,scrollX:"",scrollY:"",search:ut,searchCols:[],searchDelay:0,searching:!0,serverMethod:"GET",serverSide:!1,stateDuration:7200,stateLoadCallback:function(e){try{const t=(-1===e.stateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.unique+"_"+location.pathname);return t?JSON.parse(t):{}}catch(Rn){return{}}},stateLoadParams:null,stateLoaded:null,stateSave:!1,stateSaveCallback:function(e,t){try{(-1===e.stateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.unique+"_"+location.pathname,JSON.stringify(t))}catch(Rn){}},stateSaveParams:null,tabIndex:0,titleRow:null,typeDetect:!0},Sn=function(e,t){if(yn(e,t))return Sn;if(this.api=()=>new Hr(e),"string"==typeof this.jquery)return new Sn(this.toArray(),e),this;var r=void 0===t;let n=we.s(e),a=n.count();return r&&(t={}),n.each(e=>{var n,i=a>1?se.object.assignDeepObjects({},t,!0):t,o=0,l=e.getAttribute("id"),s=we.s(e);if("table"!=e.nodeName.toLowerCase())return void Pe(null,0,"Non-table node initialisation ("+e.nodeName+")",2);i.on&&i.on.options&&Ge(s,"options",i.on.options),s.trigger("options.dt",!0,[i]),mt(Nn),vt(st),se.object.assign(i,Ye(s.data())),mt(i);var c=He.settings;for(o=0,n=c.length;n>o;o++){var u=c[o];if(u.table==e||u.thead&&u.thead.parentNode==e||u.tfoot&&u.tfoot.parentNode==e){if(r||i.retrieve)return u.instance;if(i.destroy){new Hr(u).destroy();break}return void Pe(u,0,"Cannot reinitialise DataTable",3)}if(u.tableId==e.id){c.splice(o,1);break}}null!==l&&""!==l||(l="DataTables_Table_"+He._unique++,e.id=l),s.children("colgroup").remove();var d=Cn({destroyWidth:s.width(),unique:l,tableId:l,colgroup:we.c("colgroup"),fastData:function(e,t,r){return Tt(d,e,t,r)}});d.table=e,d.init=i,c.push(d),d.api=new Hr(d),d.instance=we.s(e),d.instance.api=()=>d.api,i.lengthMenu&&!i.pageLength&&(i.pageLength="number"==typeof i.lengthMenu[0]?i.lengthMenu[0]:Array.isArray(i.lengthMenu[0])?i.lengthMenu[0][0]:i.lengthMenu[0].value);let f=se.object.assignDeepObjects(se.object.assignDeep({},Nn),i);We(d.features,f,["autoWidth","deferRender","info","lengthChange","orderClasses","ordering","orderMulti","paging","processing","searching","serverSide"]),We(d,f,["ajax","formatNumber","serverMethod","order","orderFixed","lengthMenu","pagingType","stateDuration","orderCellsTop","tabIndex","dom","stateLoadCallback","stateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse","orderIndicators","orderHandler","titleRow","typeDetect","pageLength","searchCols"]),We(d.scroll,f,[["scrollX","x"],["scrollY","y"],["scrollCollapse","collapse"]]),We(d.language,f,"infoCallback"),d.searches["*"]=dt(f.search),Be(d,"draw",f.drawCallback),Be(d,"stateSaveParams",f.stateSaveParams),Be(d,"stateLoadParams",f.stateLoadParams),Be(d,"stateLoaded",f.stateLoaded),Be(d,"row",f.rowCallback),Be(d,"rowCreated",f.createdRow),Be(d,"header",f.headerCallback),Be(d,"footer",f.footerCallback),Be(d,"init",f.initComplete),Be(d,"preDraw",f.preDrawCallback),d.rowIdFn=se.get(d.rowId),f.on&&Object.keys(f.on).forEach(function(e){Ge(s,e,f.on[e])}),function(e){if(-1===ft.barWidth){var t=we.c("div").css({position:"fixed",top:"0",left:-1*window.pageXOffset+"px",height:"1px",width:"1px",overflow:"hidden"}).append(we.c("div").css({position:"absolute",top:"1px",left:"1px",width:"100px",overflow:"scroll"}).append(we.c("div").css({width:"100%",height:"10px"}))).appendTo("body"),r=t.children(),n=r.children();ft.barWidth=r.get(0).offsetWidth-r.get(0).clientWidth,ft.scrollbarLeft=1!==Math.round(n.offset().left),t.remove()}Object.assign(e.browser,ft),e.scroll.barWidth=ft.barWidth}(d);var h=d.classes;se.object.assignDeep(h,He.classes,f.classes),s.classAdd(h.table),d.features.paging||(f.displayStart=0),-1===d.displayStartInit&&(d.displayStartInit=f.displayStart,d.displayStart=f.displayStart);var p=f.deferLoading;null!==p&&(d.deferLoading=!0,Array.isArray(p)?(d.recordsDisplay=p[0],d.recordsTotal=p[1]):(d.recordsDisplay=p,d.recordsTotal=p));var g=[],m=s.children("thead"),v=Sr(d,m.get(0),!1);if(f.columns)g=f.columns;else if(v.length)for(o=0,n=v[0].length;n>o;o++)g.push(null);for(o=0,n=g.length;n>o;o++)Mt(d);!function(e,t,r,n,a){var i,o,l,s,c,u,d=e.columns;if(r)for(i=0,o=r.length;o>i;i++)r[i]&&r[i].name&&(d[i].name=r[i].name);if(t)for(i=t.length-1;i>=0;i--){let r=t[i],o=void 0!==r.target?r.target:void 0!==r.targets?r.targets:r.aTargets;for(Array.isArray(o)||(o=[o]),l=0,s=o.length;s>l;l++){var f=o[l];if("number"!=typeof f||0>f){if("number"==typeof f&&0>f)a(d.length+f,r);else if("string"==typeof f)for(c=0,u=d.length;u>c;c++)"_all"===f?a(c,r):-1!==f.indexOf(":name")?d[c].name===f.replace(":name","")&&a(c,r):n.forEach(function(e){if(e[c]){var t=e[c].cell;f.match(/^[a-z][\w-]*$/i)&&(f="."+f),t.matches(f)&&a(c,r)}})}else{for(;f>=d.length;)Mt(e);a(f,r)}}}if(r)for(i=0,o=r.length;o>i;i++)a(i,r[i])}(d,f.columnDefs,g,v,function(e,t){Ft(d,e,t)});var y=s.children("tbody").find("tr:first-child").eq(0);if(y.count()){var b=function(e,t){return null!==e.getAttribute("data-"+t)?t:null};y.eq(0).children("th, td").each(function(e,t){var r=d.columns[t];if(r||Pe(d,0,"Incorrect column count",18),r.data===t){var n=b(e,"sort")||b(e,"order"),a=b(e,"filter")||b(e,"search");null===n&&null===a||(r.data={_:t+".display",sort:null!==n?t+".@data-"+n:void 0,type:null!==n?t+".@data-"+n:void 0,filter:null!==a?t+".@data-"+a:void 0},r._isArrayHost=!0,Ft(d,t))}})}Be(d,"draw",cr);var w=d.features;if(f.stateSave&&(w.stateSave=!0),void 0===f.order){var x=d.order;for(o=0,n=x.length;n>o;o++)x[o][1]=d.columns[o].orderSequence[0]}or(d),Be(d,"draw",function(){(d.wasOrdered||"ssp"===$e(d)||w.deferRender)&&or(d)});var T=s.children("caption");d.caption&&(0===T.count()&&(T=we.c("caption").prependTo(s)),T.html(d.caption)),T.count()&&(T.get(0)._captionSide=T.css("caption-side"),d.captionNode=T.get(0)),T.count()?d.colgroup.insertAfter(T.get(0)):d.colgroup.prependTo(e),0===m.count()&&(m=we.c("thead").appendTo(s)),d.thead=m.get(0);var A=s.children("tbody");0===A.count()&&(A=we.c("tbody").insertAfter(m.get(0))),d.tbody=A.get(0);var _=s.children("tfoot");0===_.count()&&(_=we.c("tfoot").appendTo(e)),d.tfoot=_.get(0),d.display=d.displayMaster.slice(),d.initialised=!0;var D=d.language;if(f.language&&se.object.assignDeep(D,f.language),D.ajax){let e=function(e){pt(e),se.object.assignDeep(D,e,d.init.language),Ue(d,null,"i18n",[d],!0),dr(d)};if("function"==typeof D.ajax)D.ajax(d,e);else{let t={dataType:"json",url:"",success:e,error:function(){Pe(d,0,"i18n file loading error",21),dr(d)}};"string"==typeof D.ajax?t.url=D.ajax:t=se.object.assign(t,D.ajax),se.ajax(t)}}else Ue(d,null,"i18n",[d],!0),dr(d)}),this.api()};Sn.type=Fe,Sn.types=function(){return Ie.detect.map(function(e){return e._name})},Sn.render=lt,Sn.ext=He,Sn.use=se.external,Sn.factory=yn,Sn.versionCheck=se.version.check,Sn.version=He.version,Sn.isDataTable=function(e){if(e instanceof Hr)return!0;b(e)&&(e=Array.from(e));var t=we.s(e).get(0),r=!1;for(let i=0;He.settings.length>i;i++){let e=He.settings[i];var n=e.scrollHead?e.scrollHead.find("table").get(0):null,a=e.scrollFoot?e.scrollFoot.find("table").get(0):null;e.table!==t&&n!==t&&a!==t||(r=!0)}return r},Sn.tables=function(e){var t=!1;e&&"boolean"!=typeof e&&(t=e.api||!1,e=e.visible||!1);var r=He.settings.filter(function(t){return!!(!e||e&&we.s(t.table).isVisible())}).map(function(e){return e.table});return t?new Hr(r):r},Sn.util=se,Sn.Api=Hr,Sn.datetime=function(e,t){var r="datetime-"+e;t||(t="en"),Ie.order[r]||Fe(r,{detect:function(n){var a=tt(n,e,t);return!(""!==n&&!a)&&r},order:{pre:function(r){return tt(r,e,t)||0}}}),Ie.className[r]||(Ie.className[r]="dt-right")},Sn.__browser=ft,Sn.Dom=we,Sn.ajax=se.ajax,Sn.key=function(e){var t;sn=!0,(t=e,new Promise(function(e){try{var r=t.split(":");if(2!==r.length)return dn.valid=!1,e();var n=r[0],a=r[1],i=window.crypto||window.msCrypto,o=i.subtle||i.webkitSubtle,l=hn("BE1A9w9D9U/4s4/TogY+1sW/dLJ8IquzK1PmV70J93ZTIvXMZ0eV2NAb52ntpgwVFySSB2fOI7geLNO737rQAyo="),s=hn(a),c=(new TextEncoder).encode(n);o.importKey("raw",l,{name:"ECDSA",namedCurve:"P-256"},!1,["verify"]).then(function(e){return o.verify({name:"ECDSA",hash:{name:"SHA-256"}},e,s,c)}).then(function(t){if(!t)return dn.valid=!1,e();var r=n.match(/(plus|trial|editor)_(\d+)_(\d{4})(\d{2})(\d{2})/);if(!r||6!==r.length)return dn.valid=!1,e();dn.valid=!0,dn.type=r[1],dn.developers=parseInt(r[2]),dn.expires=new Date(r[3]+"-"+r[4]+"-"+r[5]),e()}).catch(function(){dn.valid=!1,e()})}catch(Rn){dn.valid=!1,e()}})).then(e=>{sn=!1,pn(cn,un)}).catch(()=>{sn=!1,pn(cn,un)})},function(e){Object.defineProperty(e,"plus",{value:function(e,t=""){let r=window.location.hostname;return!("192.168.234.234"!==r&&!r.endsWith(".datatables.net")&&"datatables.net"!==r)||(sn?(cn=e,un=t,!0):pn(e,t))},configurable:!1,enumerable:!1,writable:!1})}(Sn),Sn.settings=He.settings,Sn.models=On,Sn.defaults=Nn,Sn.feature={register:Ne},se.external(Sn),window.jQuery&&se.external(window.jQuery);export{t};