/** * xe-utils.js v3.5.14 * MIT License. * @preserve */ !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.XEUtils=t()}(this,function(){"use strict";var D={cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1},r=function(){};function n(a){return function(n,t){var r=Rn(t)?t:D.firstDayOfWeek,e=lr(n,0,r,r);if($t(e)){var u=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=a(e),o=i.getDay();return r>=0;var u=It(r).split("."),i=u[0],o=u[1]||"",a=o.substring(0,t+1),f=i+(a?"."+a:"");if(t>=o.length)return Ft(f);if(f=r,0":">",'"':""","'":"'","`":"`"},J=/(.+)?\[(\d+)\]$/,K=Object.assign;function Q(t,n,r){for(var e,u=n.length,i=1;i>=0)+Math.round(Math.random()*((t||9)-n))}var xt=c(function(n,t){return t>=0)).split("."),e=r[0],u=r[1]||"",i=t-u.length;return t?0>=0,r=Wn(r)?" ":""+r,e.padStart?e.padStart(t,r):t>e.length?((t-=e.length)>r.length&&(r+=F(r,t/r.length)),r.slice(0,t)+e):e}function Nr(n,r,t){return xr(n).replace((t||D).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,function(n,t){return gt(r,dr(t))})}function xr(n){return Rn(n)?It(n):""+(An(n)?"":n)}function Er(t,r){return function(n){return Pn(n)?r:n[t]}}function kr(n){return Ar(n.split("?")[1]||"")}function jr(n){var t,e,r,u,i=""+n;return 0===i.indexOf("//")?i=(Z?Z.protocol:"")+i:0===i.indexOf("/")&&(i=S()+i),r=i.replace(/#.*/,"").match(/(\?.*)/),(u={href:i,hash:"",host:"",hostname:"",protocol:"",port:"",search:r&&r[1]&&1>0,a=r>>0,f=n.length,c=3>0:f;if(o>0||1;if(Fn(n))if(0<=u&&n.length>u)for(r=0;r>0,(e=n>>0)>0||1;e=(u=vr[a])[1]?a===o-1?f[u[0]]=i||0:(f[u[0]]=Math.floor(i/u[1]),i-=f[u[0]]*u[1]):f[u[0]]=0;return f},trim:dr,trimLeft:mr,trimRight:yr,escape:Dr,unescape:Mr,camelCase:function(n){if(n=xr(n),Sr[n])return Sr[n];var u=n.length,t=n.replace(/([-]+)/g,function(n,t,r){return r&&r+t.length>=0,r=Wn(r)?" ":""+r,e.padEnd?e.padEnd(t,r):t>e.length?((t-=e.length)>r.length&&(r+=F(r,t/r.length)),e+r.slice(0,t)):e},startsWith:function(n,t,r){var e=xr(n);return 0===(1===arguments.length?e:e.substring(r)).indexOf(t)},endsWith:function(n,t,r){var e=xr(n),u=arguments.length;return 1