@taazkareem/clickup-mcp-server
Version:
ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.
1 lines • 30.9 kB
JavaScript
const a0_0x4cafa2=a0_0x4f50;(function(_0x5a8dad,_0x245dcb){const _0x51adc1=a0_0x4f50,_0x31ab80=_0x5a8dad();while(!![]){try{const _0x1bf629=parseInt(_0x51adc1(0x8e))/0x1+-parseInt(_0x51adc1(0x110))/0x2+parseInt(_0x51adc1(0xd9))/0x3*(-parseInt(_0x51adc1(0xd5))/0x4)+parseInt(_0x51adc1(0x113))/0x5+parseInt(_0x51adc1(0x12f))/0x6+parseInt(_0x51adc1(0x134))/0x7+-parseInt(_0x51adc1(0xc5))/0x8;if(_0x1bf629===_0x245dcb)break;else _0x31ab80['push'](_0x31ab80['shift']());}catch(_0x4acf44){_0x31ab80['push'](_0x31ab80['shift']());}}}(a0_0x546a,0x591c4));import{Logger}from'../logger.js';import*as a0_0x3db2f9 from'chrono-node';const logger=new Logger(a0_0x4cafa2(0x146)+a0_0x4cafa2(0xd6));export function getRelativeTimestamp(_0x2cead0=0x0,_0x64c85b=0x0,_0x1649a2=0x0,_0x2a9950=0x0,_0x1488d7=0x0){const _0x444da1=a0_0x4cafa2,_0x203ad0={'ptKqL':function(_0xf5d241,_0x3c3a0f){return _0xf5d241+_0x3c3a0f;},'nzoEB':function(_0x3c15b9,_0x53d831){return _0x3c15b9+_0x53d831;},'YaRba':function(_0x1c8423,_0x1b1eee){return _0x1c8423*_0x1b1eee;}};let _0x8e3b28=new Date();if(_0x2cead0)_0x8e3b28[_0x444da1(0x100)+_0x444da1(0xe7)](_0x203ad0[_0x444da1(0x114)](_0x8e3b28['getMi'+_0x444da1(0xe7)](),_0x2cead0));if(_0x64c85b)_0x8e3b28[_0x444da1(0xe9)+'urs'](_0x203ad0[_0x444da1(0x114)](_0x8e3b28[_0x444da1(0xac)+_0x444da1(0xdb)](),_0x64c85b));if(_0x1649a2)_0x8e3b28[_0x444da1(0xec)+'te'](_0x8e3b28[_0x444da1(0x119)+'te']()+_0x1649a2);if(_0x2a9950)_0x8e3b28['setDa'+'te'](_0x203ad0[_0x444da1(0x92)](_0x8e3b28[_0x444da1(0x119)+'te'](),_0x203ad0['YaRba'](_0x2a9950,0x7)));if(_0x1488d7)_0x8e3b28=addMonthsSafely(_0x8e3b28,_0x1488d7);return _0x8e3b28[_0x444da1(0x106)+'me']();}function addMonthsSafely(_0x5062a4,_0x54b2ce){const _0x3a8530=a0_0x4cafa2,_0x4bea67={'KFSKK':function(_0x1f1ce5,_0xafa17f){return _0x1f1ce5+_0xafa17f;},'RAghf':function(_0x146b86,_0x6e3c2c){return _0x146b86+_0x6e3c2c;},'gdYtW':function(_0x342a37,_0x31e18c){return _0x342a37!==_0x31e18c;}},_0x4eeae1=new Date(_0x5062a4),_0xd3a66=_0x4bea67[_0x3a8530(0x137)](_0x4eeae1[_0x3a8530(0xd8)+_0x3a8530(0xf9)](),_0x54b2ce)%0xc,_0x446227=_0xd3a66<0x0?_0x4bea67[_0x3a8530(0xc0)](_0xd3a66,0xc):_0xd3a66;_0x4eeae1['setMo'+_0x3a8530(0xf9)](_0x4eeae1[_0x3a8530(0xd8)+'nth']()+_0x54b2ce);if(_0x4bea67['gdYtW'](_0x4eeae1['getMo'+_0x3a8530(0xf9)](),_0x446227))_0x4eeae1[_0x3a8530(0xec)+'te'](0x0);return _0x4eeae1;}function a0_0x4f50(_0xa319a,_0x4618ab){_0xa319a=_0xa319a-0x89;const _0x546a00=a0_0x546a();let _0x4f50ae=_0x546a00[_0xa319a];if(a0_0x4f50['azVRPj']===undefined){var _0x4ffd34=function(_0x55d8e5){const _0x1c0d73='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x54b13a='',_0x2bf1b4='';for(let _0x2d9355=0x0,_0x119615,_0x22c2d5,_0xdea052=0x0;_0x22c2d5=_0x55d8e5['charAt'](_0xdea052++);~_0x22c2d5&&(_0x119615=_0x2d9355%0x4?_0x119615*0x40+_0x22c2d5:_0x22c2d5,_0x2d9355++%0x4)?_0x54b13a+=String['fromCharCode'](0xff&_0x119615>>(-0x2*_0x2d9355&0x6)):0x0){_0x22c2d5=_0x1c0d73['indexOf'](_0x22c2d5);}for(let _0x27b97a=0x0,_0x190c88=_0x54b13a['length'];_0x27b97a<_0x190c88;_0x27b97a++){_0x2bf1b4+='%'+('00'+_0x54b13a['charCodeAt'](_0x27b97a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2bf1b4);};a0_0x4f50['AGgepS']=_0x4ffd34,a0_0x4f50['oiNmnj']={},a0_0x4f50['azVRPj']=!![];}const _0x596cb5=_0x546a00[0x0],_0x47c018=_0xa319a+_0x596cb5,_0x3bc168=a0_0x4f50['oiNmnj'][_0x47c018];return!_0x3bc168?(_0x4f50ae=a0_0x4f50['AGgepS'](_0x4f50ae),a0_0x4f50['oiNmnj'][_0x47c018]=_0x4f50ae):_0x4f50ae=_0x3bc168,_0x4f50ae;}function a0_0x546a(){const _0x401eec=['Bxa6ia','tK1wC3C','Dcb3Axq','idHWBq','C093tNO','sNj1rM0','zgf5CW','BgvUz3q','DgvZige','ig1VBNq','DhjPBq','Bg9UzW','AwXLzca','DgvZDa','zw4Tvvm','mJq2odmYy1PMwezz','DgLSCW','ywjZ','z2v0tw8','mJfOqNvWs2u','vMX6yKu','DxjZ','Bwf0y2G','nxbT','zwzZD2K','z2v0ige','BMCGC3K','igf0','tKPkBKS','zw5K','wefIvhG','Aw4Goca','BwvZDge','BNv0zxm','mI1KAwC','C2v0sg8','Axndzxi','EfbMsNy','C2v0rge','zcb0BYa','BgXzzwe','Ag91CG','CM1HDa','zMf1Bhq','B25L','r1jNCe8','zM9YBwe','wMrptNK','CMvWBge','igrHDgu','Awnlwwe','BNrO','rvzJtLi','D2fYBG','Dgjuu2W','EMrdEue','DgLTzq','zxiGmZe','C2v0twK','BMrZige','zu9MzNm','EK9Oru4','DenVz2G','C2v0rNu','z2v0vgK','z1DRzMC','BwLUDxq','DgfPBG','Aw4Gmsa','BNvSBa','DgLTzvO','zgf0zq','y3LfDKG','zsbMDxq','ndiWndqYC0Hxz2zp','tK92qMC','DuPAvuK','mteZodyWzg5rz2L0','ChrlCuW','AgLMDgK','sw52ywW','rNzVD1O','ogfT','z2v0rge','qufSqxK','zuzVCM0','BNvTyMu','C2v0tw8','v1vzzvq','ueXothm','zgvZ','C1DPDgG','mxn0','nxrO','igHVDxi','DxzTvwi','BMv4Dca','DcbKDwu','zM9Yia','vwzADe0','rg5Usgu','lcbMywW','CM93','Dg9mB3C','Dwvlywi','nZGWnduWA09vyMHU','zgvJzw0','v1vnswG','AhmGywC','mte6ntK','mZy5ndi0m3ruCNn2sG','DuTRr2y','yLDLDxO','s0zts0S','B20Gsw4','DguGzM8','z2v0rNu','u0rjvKy','rgf0zvq','yMvYidi','ALrLAM4','BhbMD0u','CMrHEq','CNrZ','DfrVuge','AMfUDwe','BwnpyKm','A2nRtuq','rgf0zvu','AwqGDgK','DhmGzNi','BNvTzxi','CNKGmxm','BuvLr3y','DxjL','zxPVBMu','yxnHCa','B2n0B2i','CxvPCMu','zMXVB3i','Bw9UDgG','ihnLy28','mZq1mJq5yLfmrMzO','CgfYC2u','ig1PBNu','zMLUza','BNPVrui','CK5vBgS','ywXLu3q','zcbKyxq','igrHExm','BgWGCMu','C3rHCNq','svnWreC','igfNBW','Aw1LrM8','Dg8Gzgu','DMfSDwu','Aw5N','EwvHCG','BwLK','vvnLBei','C3rYAw4','DgvuAw0','wwDUBvq','ufr4yNC','zsbWyxi','ywf1tgG','yxjiEwG','t2f3ze0','DMnmqvC','ueL4svu','z2v0sg8','Aw5JBhu','Dg9KyxK','u2XLDuO','z1nqquC','igr1zsa','zgf5','mIb3zwu','zxjdyxm','CM1HDdO','ihLLyxi','sfzpCLC','rMfPBgu','AwqGzge','Dg9TB3i','CYbHz28','BgLUzYa','Bun5qKC','vvrJtfy','t3H2tMm','uKfNAgy','DgWUrge','yKrqDeC','C2vJB24','BM93','mtq5mZC2qwLWBgnx'];a0_0x546a=function(){return _0x401eec;};return a0_0x546a();}function getEndOfDay(_0x1b8833=new Date()){const _0x3a1071=a0_0x4cafa2,_0x2c0a9c=new Date(_0x1b8833);return _0x2c0a9c[_0x3a1071(0xe9)+_0x3a1071(0xdb)](0x17,0x3b,0x3b,0x3e7),_0x2c0a9c[_0x3a1071(0x106)+'me']();}function getBusinessDayOffset(_0x2cd03f,_0x462c01){const _0x8f83b0=a0_0x4cafa2,_0x3df659={'VlzbE':function(_0x144a43,_0x38463a){return _0x144a43>=_0x38463a;},'zOhEN':function(_0x1fd7f7,_0x6d7df6){return _0x1fd7f7>_0x6d7df6;},'WUMIh':function(_0xadd0a1,_0xba438b){return _0xadd0a1+_0xba438b;}},_0x519e75=new Date(_0x2cd03f);let _0x171541=Math[_0x8f83b0(0xd7)](_0x462c01);const _0x51294b=_0x3df659[_0x8f83b0(0xda)](_0x462c01,0x0)?0x1:-0x1;while(_0x3df659[_0x8f83b0(0x103)](_0x171541,0x0)){_0x519e75[_0x8f83b0(0xec)+'te'](_0x3df659[_0x8f83b0(0x131)](_0x519e75['getDa'+'te'](),_0x51294b));const _0x57c9d0=_0x519e75[_0x8f83b0(0x119)+'y']();if(_0x57c9d0!==0x0&&_0x57c9d0!==0x6)_0x171541--;}return _0x519e75;}function getQuarterBoundary(_0x3b0af3,_0x5777bb,_0x1b4ed9){const _0xb2fee1=a0_0x4cafa2,_0x1bca26={'icKYa':function(_0x1428bf,_0x44fa3f){return _0x1428bf===_0x44fa3f;},'NMVsw':_0xb2fee1(0x98),'PLNLs':function(_0x459ecf,_0x16cdab){return _0x459ecf+_0x16cdab;}},_0xf7589f=new Date(_0x3b0af3),_0x3bc94a=(_0x5777bb-0x1)*0x3;if(_0x1bca26[_0xb2fee1(0xf8)](_0x1b4ed9,_0x1bca26[_0xb2fee1(0xc7)]))_0xf7589f[_0xb2fee1(0x11d)+_0xb2fee1(0xf9)](_0x3bc94a,0x1),_0xf7589f[_0xb2fee1(0xe9)+'urs'](0x0,0x0,0x0,0x0);else _0x1b4ed9===_0xb2fee1(0xa0)?(_0xf7589f[_0xb2fee1(0x11d)+_0xb2fee1(0xf9)](_0x1bca26[_0xb2fee1(0x11f)](_0x3bc94a,0x1),0xf),_0xf7589f['setHo'+_0xb2fee1(0xdb)](0xc,0x0,0x0,0x0)):(_0xf7589f[_0xb2fee1(0x11d)+'nth'](_0x3bc94a+0x3,0x0),_0xf7589f['setHo'+_0xb2fee1(0xdb)](0x17,0x3b,0x3b,0x3e7));return _0xf7589f;}function getDynamicQuarterBoundary(_0x2faf4e,_0x7c4bb1,_0xbb3f62){const _0x16209c=a0_0x4cafa2,_0x28fb6a={'XAbTx':function(_0x34f102,_0x2e58e3){return _0x34f102%_0x2e58e3;},'kBMaF':function(_0x1571a8,_0x45a99d){return _0x1571a8%_0x45a99d;},'OawdM':function(_0xea513f,_0x3b596c){return _0xea513f+_0x3b596c;},'PFTQQ':function(_0x31c954,_0x1e8e13){return _0x31c954/_0x1e8e13;},'HVOrW':function(_0xe3cccb,_0x4fd42e){return _0xe3cccb+_0x4fd42e;},'iXmda':function(_0x25e7f3,_0x3e9eb4){return _0x25e7f3===_0x3e9eb4;},'tcNmU':_0x16209c(0x98)},_0x26aaca=Math[_0x16209c(0x8b)](_0x2faf4e[_0x16209c(0xd8)+_0x16209c(0xf9)]()/0x3),_0x5e9b74=_0x28fb6a[_0x16209c(0xe4)](_0x28fb6a['kBMaF'](_0x28fb6a[_0x16209c(0xa9)](_0x26aaca,_0x7c4bb1),0x4)+0x4,0x4),_0x49bc07=Math[_0x16209c(0x8b)](_0x28fb6a['PFTQQ'](_0x28fb6a[_0x16209c(0xa9)](_0x26aaca,_0x7c4bb1),0x4)),_0x36ba98=_0x5e9b74*0x3,_0x35699e=new Date(_0x2faf4e);return _0x35699e[_0x16209c(0x105)+_0x16209c(0xee)+'r'](_0x28fb6a[_0x16209c(0xb7)](_0x35699e[_0x16209c(0x13a)+_0x16209c(0xee)+'r'](),_0x49bc07)),_0x28fb6a['iXmda'](_0xbb3f62,_0x28fb6a['tcNmU'])?(_0x35699e['setMo'+_0x16209c(0xf9)](_0x36ba98,0x1),_0x35699e[_0x16209c(0xe9)+_0x16209c(0xdb)](0x0,0x0,0x0,0x0)):(_0x35699e[_0x16209c(0x11d)+_0x16209c(0xf9)](_0x36ba98+0x3,0x0),_0x35699e[_0x16209c(0xe9)+_0x16209c(0xdb)](0x17,0x3b,0x3b,0x3e7)),_0x35699e;}function handleCustomBusinessLogic(_0x50774e,_0x4f4d38){const _0x146461=a0_0x4cafa2,_0x3034af={'cyEvH':function(_0x2c41d1,_0xa0bb9,_0x556643){return _0x2c41d1(_0xa0bb9,_0x556643);},'PTxbw':function(_0x28b9d2,_0x53c050){return _0x28b9d2(_0x53c050);},'bWeuz':'mid','sYetm':function(_0x25b5e7,_0x12a048,_0x540369,_0x2d3c98){return _0x25b5e7(_0x12a048,_0x540369,_0x2d3c98);},'sOwNz':_0x146461(0x98),'gWkfg':function(_0x405736,_0x20f780,_0xab5124,_0x28fa69){return _0x405736(_0x20f780,_0xab5124,_0x28fa69);},'EVcNR':function(_0x3bae61,_0xc5fc08){return _0x3bae61+_0xc5fc08;},'arHyh':function(_0x4af481,_0x1da986){return _0x4af481+_0x1da986;},'FvowZ':function(_0x46c83d,_0x4f9e83){return _0x46c83d+_0x4f9e83;},'ITRpi':function(_0x50f0e9,_0x4c3608){return _0x50f0e9-_0x4c3608;},'mEeGv':function(_0xa646c6,_0x4f8fc2){return _0xa646c6===_0x4f8fc2;},'UfZtM':function(_0x444084,_0x38e128){return _0x444084-_0x38e128;},'SdhAo':_0x146461(0x126)+_0x146461(0x8c),'umRXO':function(_0x48bd73,_0x5c5746){return _0x48bd73===_0x5c5746;},'AAlAy':function(_0x8b12dd,_0x1eb724){return _0x8b12dd+_0x1eb724;}},_0x560bf2=_0x50774e[_0x146461(0x12d)+_0x146461(0xb4)+'e']()[_0x146461(0xd0)](),_0x27152b=_0x560bf2[_0x146461(0xdc)](/^(?:in\s+)?([+-]?\d+)\s+(?:business|working)\s+days?(?:\s+from\s+now)?$/i);if(_0x27152b){const _0x44dee1=_0x3034af[_0x146461(0x10e)](getBusinessDayOffset,_0x4f4d38,_0x3034af['PTxbw'](parseInt,_0x27152b[0x1]));return _0x44dee1[_0x146461(0xe9)+'urs'](0x17,0x3b,0x3b,0x3e7),_0x44dee1;}if(/^next\s+(?:business|working)\s+day$/i[_0x146461(0xd3)](_0x560bf2)){const _0x2cacc6=getBusinessDayOffset(_0x4f4d38,0x1);return _0x2cacc6['setHo'+_0x146461(0xdb)](0x17,0x3b,0x3b,0x3e7),_0x2cacc6;}if(_0x560bf2['match'](/^(?:by\s+)?end\s+of\s+next\s+(?:business|working)\s+day$/i)){const _0x3097f2=_0x3034af[_0x146461(0x10e)](getBusinessDayOffset,_0x4f4d38,0x1);return _0x3097f2[_0x146461(0xe9)+'urs'](0x11,0x0,0x0,0x0),_0x3097f2;}const _0x50f194=_0x560bf2['match'](/^(start|end|mid|middle)\s+of\s+q([1-4])$/i);if(_0x50f194){const _0x4d5411=_0x50f194[0x1]===_0x146461(0x98)?_0x146461(0x98):_0x50f194[0x1][_0x146461(0x98)+_0x146461(0x121)](_0x146461(0xa0))?_0x3034af[_0x146461(0x136)]:'end';return getQuarterBoundary(_0x4f4d38,_0x3034af[_0x146461(0xa5)](parseInt,_0x50f194[0x2]),_0x4d5411);}if(/^(?:end\s+of\s+)?(?:this\s+)?quarter$|^end\s+of\s+this\s+quarter$/i[_0x146461(0xd3)](_0x560bf2))return getDynamicQuarterBoundary(_0x4f4d38,0x0,_0x146461(0xe3));if(/^start\s+of\s+(?:this\s+)?quarter$/i[_0x146461(0xd3)](_0x560bf2))return _0x3034af['sYetm'](getDynamicQuarterBoundary,_0x4f4d38,0x0,_0x3034af[_0x146461(0xca)]);if(/^(?:next\s+quarter|end\s+of\s+next\s+quarter)$/i[_0x146461(0xd3)](_0x560bf2))return getDynamicQuarterBoundary(_0x4f4d38,0x1,_0x146461(0xe3));if(/^start\s+of\s+next\s+quarter$/i[_0x146461(0xd3)](_0x560bf2))return getDynamicQuarterBoundary(_0x4f4d38,0x1,_0x3034af[_0x146461(0xca)]);if(/^(?:last|previous)\s+quarter$|^end\s+of\s+(?:last|previous)\s+quarter$/i['test'](_0x560bf2))return _0x3034af[_0x146461(0x107)](getDynamicQuarterBoundary,_0x4f4d38,-0x1,_0x146461(0xe3));if(/^start\s+of\s+(?:last|previous)\s+quarter$/i[_0x146461(0xd3)](_0x560bf2))return getDynamicQuarterBoundary(_0x4f4d38,-0x1,_0x3034af[_0x146461(0xca)]);if(/^end\s+of\s+(?:the\s+|this\s+)?month$/i[_0x146461(0xd3)](_0x560bf2)){const _0x36ce5c=new Date(_0x4f4d38);return _0x36ce5c[_0x146461(0x11d)+_0x146461(0xf9)](_0x3034af[_0x146461(0xfa)](_0x36ce5c[_0x146461(0xd8)+_0x146461(0xf9)](),0x1),0x0),_0x36ce5c['setHo'+_0x146461(0xdb)](0x17,0x3b,0x3b,0x3e7),_0x36ce5c;}if(/^(?:start|beginning)\s+of\s+(?:the\s+|this\s+)?month$/i[_0x146461(0xd3)](_0x560bf2)){const _0x46a4cc=new Date(_0x4f4d38);return _0x46a4cc[_0x146461(0xec)+'te'](0x1),_0x46a4cc[_0x146461(0xe9)+_0x146461(0xdb)](0x0,0x0,0x0,0x0),_0x46a4cc;}if(/^(?:mid(?:-|\s+)?month|middle\s+of\s+(?:the\s+|this\s+)?month)$/i[_0x146461(0xd3)](_0x560bf2)){const _0x3632a9=new Date(_0x4f4d38);return _0x3632a9['setDa'+'te'](0xf),_0x3632a9[_0x146461(0xe9)+_0x146461(0xdb)](0xc,0x0,0x0,0x0),_0x3632a9;}if(/^end\s+of\s+next\s+month$/i[_0x146461(0xd3)](_0x560bf2)){const _0x428468=_0x3034af['cyEvH'](addMonthsSafely,_0x4f4d38,0x1);return _0x428468['setMo'+'nth'](_0x428468[_0x146461(0xd8)+_0x146461(0xf9)]()+0x1,0x0),_0x428468[_0x146461(0xe9)+'urs'](0x17,0x3b,0x3b,0x3e7),_0x428468;}if(/^(?:start|beginning)\s+of\s+next\s+month$/i[_0x146461(0xd3)](_0x560bf2)){const _0x4a01f0=addMonthsSafely(_0x4f4d38,0x1);return _0x4a01f0['setDa'+'te'](0x1),_0x4a01f0[_0x146461(0xe9)+'urs'](0x0,0x0,0x0,0x0),_0x4a01f0;}if(/^end\s+of\s+last\s+month$/i['test'](_0x560bf2)){const _0x50bd47=new Date(_0x4f4d38);return _0x50bd47[_0x146461(0xec)+'te'](0x1),_0x50bd47['setDa'+'te'](0x0),_0x50bd47[_0x146461(0xe9)+_0x146461(0xdb)](0x17,0x3b,0x3b,0x3e7),_0x50bd47;}if(/^(?:start|beginning)\s+of\s+(?:the\s+|this\s+)?week$|^start\s+of\s+week$/i['test'](_0x560bf2)){const _0x31649f=new Date(_0x4f4d38),_0x3c8263=_0x4f4d38['getDa'+'y'](),_0x681591=_0x3c8263===0x0?0x6:_0x3c8263-0x1;return _0x31649f[_0x146461(0xec)+'te'](_0x31649f[_0x146461(0x119)+'te']()-_0x681591),_0x31649f[_0x146461(0xe9)+_0x146461(0xdb)](0x0,0x0,0x0,0x0),_0x31649f;}if(/^end\s+of\s+(?:the\s+|this\s+)?week$/i[_0x146461(0xd3)](_0x560bf2)){const _0x143f4a=new Date(_0x4f4d38);return _0x143f4a['setDa'+'te'](_0x143f4a[_0x146461(0x119)+'te']()+(0x7-_0x4f4d38['getDa'+'y']())%0x7),_0x143f4a[_0x146461(0xe9)+_0x146461(0xdb)](0x17,0x3b,0x3b,0x3e7),_0x143f4a;}if(/^end\s+of\s+next\s+week$/i[_0x146461(0xd3)](_0x560bf2)){const _0x3a316e=new Date(_0x4f4d38);return _0x3a316e[_0x146461(0xec)+'te'](_0x3034af[_0x146461(0xa8)](_0x3a316e[_0x146461(0x119)+'te'](),(0x7-_0x4f4d38[_0x146461(0x119)+'y']())%0x7)+0x7),_0x3a316e[_0x146461(0xe9)+'urs'](0x17,0x3b,0x3b,0x3e7),_0x3a316e;}if(/^(?:start|beginning)\s+of\s+next\s+week$/i['test'](_0x560bf2)){const _0x1c6bd8=new Date(_0x4f4d38);return _0x1c6bd8['setDa'+'te'](_0x3034af[_0x146461(0x117)](_0x1c6bd8[_0x146461(0x119)+'te'](),_0x3034af['ITRpi'](0x8,_0x4f4d38[_0x146461(0x119)+'y']())%0x7||0x7)),_0x1c6bd8[_0x146461(0xe9)+'urs'](0x0,0x0,0x0,0x0),_0x1c6bd8;}if(/^end\s+of\s+last\s+week$/i[_0x146461(0xd3)](_0x560bf2)){const _0x34c2bb=new Date(_0x4f4d38),_0x2063a8=_0x4f4d38[_0x146461(0x119)+'y'](),_0x254c50=_0x3034af[_0x146461(0x14b)](_0x2063a8,0x0)?0x7:_0x2063a8;return _0x34c2bb[_0x146461(0xec)+'te'](_0x3034af[_0x146461(0x129)](_0x34c2bb[_0x146461(0x119)+'te'](),_0x254c50)),_0x34c2bb[_0x146461(0xe9)+'urs'](0x17,0x3b,0x3b,0x3e7),_0x34c2bb;}if(/^end\s+of\s+(?:the\s+)?year$/i[_0x146461(0xd3)](_0x560bf2)){const _0x24ab6b=new Date(_0x4f4d38);return _0x24ab6b['setMo'+_0x146461(0xf9)](0xb,0x1f),_0x24ab6b['setHo'+_0x146461(0xdb)](0x17,0x3b,0x3b,0x3e7),_0x24ab6b;}if(/^(?:start|beginning)\s+of\s+(?:the\s+)?year$/i[_0x146461(0xd3)](_0x560bf2)){const _0x178e16=new Date(_0x4f4d38);return _0x178e16[_0x146461(0x11d)+'nth'](0x0,0x1),_0x178e16['setHo'+_0x146461(0xdb)](0x0,0x0,0x0,0x0),_0x178e16;}if(/^(?:mid(?:-|\s+)?year|middle\s+of\s+(?:the\s+)?year)$/i[_0x146461(0xd3)](_0x560bf2)){const _0x290406=new Date(_0x4f4d38);return _0x290406[_0x146461(0x11d)+_0x146461(0xf9)](0x6,0x2),_0x290406[_0x146461(0xe9)+'urs'](0xc,0x0,0x0,0x0),_0x290406;}if(/^next\s+year$/i[_0x146461(0xd3)](_0x560bf2)){const _0x5da979=new Date(_0x4f4d38);return _0x5da979['setFu'+'llYea'+'r'](_0x3034af[_0x146461(0x117)](_0x5da979['getFu'+'llYea'+'r'](),0x1)),_0x5da979[_0x146461(0xe9)+_0x146461(0xdb)](0x17,0x3b,0x3b,0x3e7),_0x5da979;}if(_0x560bf2===_0x3034af['SdhAo']||_0x560bf2===_0x146461(0x10a)+_0x146461(0x8c)){const _0x220de9=addMonthsSafely(_0x4f4d38,0x1);return _0x220de9[_0x146461(0xe9)+_0x146461(0xdb)](0x17,0x3b,0x3b,0x3e7),_0x220de9;}if(_0x3034af['umRXO'](_0x560bf2,'last\x20'+_0x146461(0x8c))){const _0x16937f=_0x3034af[_0x146461(0x10e)](addMonthsSafely,_0x4f4d38,-0x1);return _0x16937f[_0x146461(0xe9)+_0x146461(0xdb)](0x17,0x3b,0x3b,0x3e7),_0x16937f;}if(/^(?:by\s+)?(?:eob|cob)[.?!]*$/i[_0x146461(0xd3)](_0x560bf2)){const _0x2f8a30=new Date(_0x4f4d38);return _0x2f8a30['setHo'+_0x146461(0xdb)](0x11,0x0,0x0,0x0),_0x2f8a30[_0x146461(0x106)+'me']()<_0x4f4d38[_0x146461(0x106)+'me']()&&_0x2f8a30[_0x146461(0xec)+'te'](_0x3034af[_0x146461(0x11a)](_0x2f8a30[_0x146461(0x119)+'te'](),0x1)),_0x2f8a30;}if(/^(?:by\s+)?(?:eod|end\s+of\s+(?:the\s+)?day)$/i[_0x146461(0xd3)](_0x560bf2))return new Date(getEndOfDay(_0x4f4d38));return null;}function preprocessForChrono(_0x28785c){const _0x4b708b=a0_0x4cafa2,_0x265a11={'NOvBg':_0x4b708b(0xdd),'DnnHe':_0x4b708b(0x133)+'pm','WUYeT':_0x4b708b(0x118),'lpfwE':_0x4b708b(0xba)+_0x4b708b(0x12c),'efswi':'yeste'+_0x4b708b(0x140),'tCogh':'tonig'+'ht','JxJJP':_0x4b708b(0xae)+_0x4b708b(0xc9)};let _0xe6a20f=_0x28785c[_0x4b708b(0x12d)+_0x4b708b(0xb4)+'e']()[_0x4b708b(0xd0)]();const _0x38ead8={'one':'1','two':'2','three':'3','four':'4','five':'5','six':'6','seven':'7','eight':'8','nine':'9','ten':'10','eleven':'11','twelve':'12','thirteen':'13','fourteen':'14','fifteen':'15','sixteen':'16','seventeen':'17','eighteen':'18','nineteen':'19','twenty':'20'};for(const [_0x25feb1,_0x18b972]of Object['entri'+'es'](_0x38ead8))_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](new RegExp('\x5cb'+_0x25feb1+'\x5cb','g'),_0x18b972);_0xe6a20f=_0xe6a20f['repla'+'ce'](/\beob\b/g,_0x4b708b(0xdd))[_0x4b708b(0xf6)+'ce'](/\bcob\b/g,_0x265a11['NOvBg'])[_0x4b708b(0xf6)+'ce'](/\beod\b/g,_0x265a11[_0x4b708b(0x12a)]),_0xe6a20f=_0xe6a20f['repla'+'ce'](/\b(?:close|end)\s+of\s+(?:the\s+)?business\b/g,_0x265a11[_0x4b708b(0x111)]),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\bend\s+of\s+(?:the\s+)?day\b/g,_0x265a11[_0x4b708b(0x12a)]),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\bstart\s+of\s+(?:the\s+)?(?:business|work)\b/g,'9am'),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\bstart\s+of\s+(?:the\s+)?day\b/g,_0x265a11[_0x4b708b(0x11e)]),_0xe6a20f=_0xe6a20f['repla'+'ce'](/\bfirst\s+thing\b/g,'8am'),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\bmorning\b/g,_0x265a11['WUYeT']),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\ba\s+week\s+from\s+tomorrow\b/g,_0x4b708b(0xe5)+_0x4b708b(0xcc)),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\bfortnight\b/g,_0x4b708b(0xb3)+'ks'),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\btmr?w\b/g,_0x265a11[_0x4b708b(0x13f)]),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\btmw\b/g,_0x265a11[_0x4b708b(0x13f)]),_0xe6a20f=_0xe6a20f['repla'+'ce'](/\byday\b/g,_0x265a11[_0x4b708b(0xde)]),_0xe6a20f=_0xe6a20f['repla'+'ce'](/\bchristmas\b/g,_0x4b708b(0x130)+_0x4b708b(0x13d)+_0x4b708b(0x123)),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\bhalloween\b/g,_0x4b708b(0x89)+_0x4b708b(0xff)+'st'),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\bnew\s+years?['s]*\s+day\b/g,_0x4b708b(0x143)+_0x4b708b(0x14a)+'t'),_0xe6a20f=_0xe6a20f[_0x4b708b(0xf6)+'ce'](/\bnew\s+years?['s]*\s+eve\b/g,_0x4b708b(0x130)+'ber\x203'+_0x4b708b(0x122)),_0xe6a20f=_0xe6a20f['repla'+'ce'](/\blast\s+day\s+of\s+(?:the\s+)?year\b/g,_0x4b708b(0x130)+'ber\x203'+_0x4b708b(0x122));if(_0xe6a20f===_0x265a11[_0x4b708b(0x104)])return _0x265a11['JxJJP'];return _0xe6a20f;}export function hasExplicitTime(_0x46cc46){const _0x229999=a0_0x4cafa2;if(!_0x46cc46)return![];const _0x505001=_0x46cc46[_0x229999(0x12d)+'erCas'+'e']()['trim']();if(/^\d{10,}$/[_0x229999(0xd3)](_0x505001))return!![];if(/t\d{2}:\d{2}/i[_0x229999(0xd3)](_0x505001))return!![];if(/\b\d{1,2}:\d{2}\b/[_0x229999(0xd3)](_0x505001))return!![];if(/\b\d{1,2}\s*(?:am|pm)\b/i['test'](_0x505001))return!![];if(/\bin\s+(?:\d+|an?|a\s+few)\s+(?:hour|minute|min)s?\b/i[_0x229999(0xd3)](_0x505001))return!![];if(/\b\d+\s+(?:hour|minute|min)s?\s+ago\b/i[_0x229999(0xd3)](_0x505001))return!![];if(/\b(?:eob|cob|eod)\b/i[_0x229999(0xd3)](_0x505001))return!![];if(/\b(?:end|close)\s+of\s+(?:the\s+|next\s+|this\s+)?(?:business|work)\b/i[_0x229999(0xd3)](_0x505001))return!![];if(/\bend\s+of\s+(?:(?:the|next|this)\s+)?(?:business\s+)?day\b/i[_0x229999(0xd3)](_0x505001))return!![];if(/\bstart\s+of\s+(?:(?:the|next|this)\s+)?(?:business|work|day)\b/i[_0x229999(0xd3)](_0x505001))return!![];if(/\b(?:morning|afternoon|evening|night|tonight|noon|midnight|lunch(?:time)?|breakfast|dinner)\b/i[_0x229999(0xd3)](_0x505001))return!![];if(/\bfirst\s+thing\b/i[_0x229999(0xd3)](_0x505001))return!![];if(/^(?:asap|now)$/['test'](_0x505001))return!![];return![];}export function parseDueDate(_0x1d64f3,_0x28cf9a=new Date(),_0xb91f1e,_0x1d80ae=!![]){const _0x27c226=a0_0x4cafa2,_0x52a653={'NJJnK':function(_0x228b05,_0x38edcd){return _0x228b05(_0x38edcd);},'bDPtG':function(_0x32937e,_0x152246){return _0x32937e(_0x152246);},'tbTSl':function(_0x327824,_0x5ae779){return _0x327824>=_0x5ae779;},'SleuJ':_0x27c226(0x149)+'ic','qTRgk':_0x27c226(0x9f),'XZsus':_0x27c226(0x8c),'jTejn':_0x27c226(0xb2),'zdCyA':function(_0xce18fb,_0x110916){return _0xce18fb(_0x110916);},'mcObC':_0x27c226(0xef),'BAaYe':function(_0x577e15,_0x53c24d){return _0x577e15||_0x53c24d;},'uKkGf':function(_0x11f6ff,_0x8459c9){return _0x11f6ff(_0x8459c9);},'SDIVF':function(_0x3197c1,_0x2c10f5,_0x13ff26){return _0x3197c1(_0x2c10f5,_0x13ff26);},'uvmUb':function(_0x34ade6,_0x190f71){return _0x34ade6-_0x190f71;},'thXHy':function(_0x5b385f,_0x57e34e){return _0x5b385f(_0x57e34e);},'kckMD':function(_0x2b6362,_0x299d02){return _0x2b6362>_0x299d02;},'ILTdI':'\x20ago','ozywI':function(_0x4a4f90,_0x52ba25){return _0x4a4f90&&_0x52ba25;},'wXtaF':function(_0x1571bc,_0x43a7f2){return _0x1571bc(_0x43a7f2);}};if(!_0x1d64f3)return undefined;try{const _0x11c23d=_0x52a653[_0x27c226(0xe2)](Number,_0x1d64f3);if(!_0x52a653[_0x27c226(0xc2)](isNaN,_0x11c23d)&&_0x52a653[_0x27c226(0xfc)](_0x11c23d,0xdc6acfac00))return _0x11c23d;let _0xd00f36=new Date(_0x28cf9a),_0x1a7661=0x0;if(_0xb91f1e)try{const _0x1d6322=new Intl[(_0x27c226(0x13c))+'imeFo'+(_0x27c226(0xf0))](_0x27c226(0xd4),{'timeZone':_0xb91f1e,'hour12':![],'year':_0x27c226(0x149)+'ic','month':_0x52a653[_0x27c226(0xaf)],'day':_0x52a653[_0x27c226(0xaf)],'hour':_0x27c226(0x149)+'ic','minute':_0x52a653[_0x27c226(0xaf)],'second':_0x52a653[_0x27c226(0xaf)]}),_0x4a25c7=_0x1d6322[_0x27c226(0xf4)+_0x27c226(0x142)+_0x27c226(0x141)](_0x28cf9a),_0x27b440=_0x4e1886=>_0x4a25c7[_0x27c226(0x91)](_0x3ffebb=>_0x3ffebb['type']===_0x4e1886)?.[_0x27c226(0x9d)],_0x346054=_0x52a653[_0x27c226(0xc2)](_0x27b440,_0x52a653['qTRgk']),_0x40f3c8=_0x27b440(_0x52a653['XZsus']),_0x28b497=_0x27b440(_0x52a653[_0x27c226(0x13e)]),_0x18f7f1=_0x52a653[_0x27c226(0xfd)](_0x27b440,_0x52a653[_0x27c226(0x144)]),_0x384fcb=_0x27b440(_0x27c226(0x108)+'e'),_0x17fea8=_0x27b440(_0x27c226(0xc3)+'d');if(_0x52a653['BAaYe'](!_0x346054,!_0x40f3c8)||!_0x28b497||!_0x18f7f1||!_0x384fcb||!_0x17fea8)throw new Error(_0x27c226(0xb8)+'d\x20to\x20'+_0x27c226(0xdf)+_0x27c226(0x97)+_0x27c226(0x8a)+_0x27c226(0x95)+_0x27c226(0xa6)+_0x27c226(0x148)+_0x27c226(0x138)+_0x27c226(0xc1)+_0x27c226(0xa3)+_0x27c226(0x11b)+'at');const _0x399073=new Date(parseInt(_0x346054),parseInt(_0x40f3c8)-0x1,parseInt(_0x28b497),parseInt(_0x18f7f1),_0x52a653[_0x27c226(0x135)](parseInt,_0x384fcb),_0x52a653[_0x27c226(0xe2)](parseInt,_0x17fea8));_0x1a7661=_0x399073[_0x27c226(0x106)+'me']()-_0x28cf9a[_0x27c226(0x106)+'me'](),_0xd00f36=_0x399073;}catch(_0x50c302){logger[_0x27c226(0xfb)]('Timez'+'one\x20s'+_0x27c226(0x115)+'ng\x20fa'+_0x27c226(0xd2)+_0x27c226(0x128)+_0xb91f1e+(',\x20usi'+_0x27c226(0xe0)+'stem\x20'+_0x27c226(0xfe)),_0x50c302);}const _0x194f70=_0x1d64f3[_0x27c226(0xdc)](/^(.+?)\s+(?:at\s+|@\s*)(\d{1,2}(?::\d{2})?\s*(?:am|pm)|\d{2}:\d{2}(?:\s*(?:am|pm))?)\s*$/i),_0x350496=_0x194f70?_0x194f70[0x1][_0x27c226(0xd0)]():_0x1d64f3,_0x419a09=_0x194f70?_0x194f70[0x2][_0x27c226(0xd0)]():null,_0xf296cd=_0x52a653[_0x27c226(0x13b)](handleCustomBusinessLogic,_0x350496,_0xd00f36);if(_0xf296cd){if(_0x419a09){const _0x2b11cc=a0_0x3db2f9['parse'](_0x419a09,_0xf296cd,{'forwardDate':![]});_0x2b11cc[_0x27c226(0xcd)+'h']>0x0&&_0x2b11cc[0x0][_0x27c226(0x98)][_0x27c226(0xea)+'tain'](_0x52a653[_0x27c226(0x144)])&&_0xf296cd['setHo'+_0x27c226(0xdb)](_0x2b11cc[0x0][_0x27c226(0x98)]['get'](_0x27c226(0xef)),_0x2b11cc[0x0][_0x27c226(0x98)]['get'](_0x27c226(0x108)+'e')??0x0,0x0,0x0);}return _0x52a653['uvmUb'](_0xf296cd[_0x27c226(0x106)+'me'](),_0x1a7661);}const _0x70cc=_0x52a653[_0x27c226(0xc2)](preprocessForChrono,_0x1d64f3),_0x1b342a=_0x70cc[_0x27c226(0xdc)](/^(?:in\s+)?([+-]?\d+)\s+months?(?:\s+from\s+now)?$/i);if(_0x1b342a)return _0x52a653['thXHy'](getEndOfDay,addMonthsSafely(_0xd00f36,_0x52a653[_0x27c226(0xfd)](parseInt,_0x1b342a[0x1])))-_0x1a7661;const _0x56eeb5=a0_0x3db2f9[_0x27c226(0x8f)](_0x70cc,_0xd00f36,{'forwardDate':!![]});if(_0x52a653[_0x27c226(0x145)](_0x56eeb5[_0x27c226(0xcd)+'h'],0x0)){const _0x10ea09=_0x56eeb5[0x0],_0x40480e=_0x10ea09[_0x27c226(0x10d)](),_0x1ba628=_0x10ea09[_0x27c226(0x98)][_0x27c226(0xea)+_0x27c226(0x109)](_0x52a653[_0x27c226(0x144)]),_0x512879=/\b(?:morning|afternoon|evening|night|tonight|noon|midnight|lunch(?:time)?|breakfast|dinner)\b/i[_0x27c226(0xd3)](_0x1d64f3),_0x5c0037=_0x1d64f3[_0x27c226(0x12d)+_0x27c226(0xb4)+'e']()[_0x27c226(0xad)+_0x27c226(0x120)](_0x52a653['ILTdI']),_0x18a3bd=/\b(?:UTC|GMT|EST|EDT|CST|CDT|MST|MDT|PST|PDT|AKST|AKDT|HST|AEST|AEDT|IST|CET|CEST|JST)\b|[+-]\d{1,2}:?\d{2}|\dZ\b/i[_0x27c226(0xd3)](_0x1d64f3);let _0x100994=_0x40480e['getTi'+'me']();return _0x52a653['ozywI'](_0x1d80ae,!_0x1ba628)&&!_0x512879&&!_0x5c0037&&(_0x100994=_0x52a653['wXtaF'](getEndOfDay,_0x40480e)),_0x18a3bd?_0x100994:_0x52a653[_0x27c226(0x125)](_0x100994,_0x1a7661);}if(_0x1d64f3['toLow'+_0x27c226(0xb4)+'e']()===_0x27c226(0x14e)||_0x1d64f3[_0x27c226(0x12d)+_0x27c226(0xb4)+'e']()===_0x27c226(0xc4))return _0x28cf9a['getTi'+'me']();return undefined;}catch(_0x26d2af){logger[_0x27c226(0xfb)]('Faile'+'d\x20to\x20'+_0x27c226(0x8f)+_0x27c226(0xb1)+'date:'+'\x20'+_0x1d64f3,_0x26d2af);throw new Error('Inval'+_0x27c226(0xb9)+_0x27c226(0x139)+_0x27c226(0xb5)+'\x20'+_0x1d64f3);}}export function parseFilterDate(_0x99a862,_0x1de9e0){const _0x55069a=a0_0x4cafa2,_0x307505={'ueKab':function(_0x11613a,_0x3ab777){return _0x11613a===_0x3ab777;},'UTcLV':function(_0x30deca,_0x1936b4){return _0x30deca===_0x1936b4;},'aauLh':function(_0x170a83,_0x432b81){return _0x170a83===_0x432b81;},'PIxIU':_0x55069a(0x10b),'ZdONy':function(_0x42528b,_0x3dd6d7){return _0x42528b===_0x3dd6d7;},'OjFxF':function(_0x4d5cb0,_0x4ac631,_0x263aae,_0x30fa92,_0x4ccd73){return _0x4d5cb0(_0x4ac631,_0x263aae,_0x30fa92,_0x4ccd73);}};if(_0x307505[_0x55069a(0x12e)](_0x99a862,undefined)||_0x307505[_0x55069a(0xbe)](_0x99a862,null)||_0x307505[_0x55069a(0xa7)](_0x99a862,_0x307505[_0x55069a(0xab)]))return undefined;if(_0x307505[_0x55069a(0xf5)](typeof _0x99a862,_0x55069a(0x11c)+'r'))return _0x99a862;const _0x4c0d0b=_0x99a862['toStr'+_0x55069a(0x9e)]()[_0x55069a(0xd0)]();if(_0x4c0d0b===''||_0x4c0d0b===_0x307505['PIxIU'])return undefined;if(/^\d+$/[_0x55069a(0xd3)](_0x4c0d0b))return parseInt(_0x4c0d0b,0xa);return _0x307505['OjFxF'](parseDueDate,_0x4c0d0b,new Date(),_0x1de9e0,![]);}export function formatDueDate(_0x3e99c2,_0x38a576){const _0x302b64=a0_0x4cafa2,_0x225c54={'rNUlk':function(_0x43858b,_0x525d09){return _0x43858b(_0x525d09);},'uJZUI':_0x302b64(0x149)+'ic','YgnmT':_0x302b64(0xe8)+'it','IiFxQ':_0x302b64(0xd4),'mCyBG':_0x302b64(0xe1),'xPfJv':function(_0x3111e1,_0x41611d){return _0x3111e1===_0x41611d;}};if(!_0x3e99c2)return undefined;try{const _0x18daa1=new Date(_0x3e99c2);if(_0x225c54[_0x302b64(0x93)](isNaN,_0x18daa1[_0x302b64(0x106)+'me']()))return undefined;const _0x2eea15={'year':_0x225c54['uJZUI'],'month':_0x302b64(0xd1),'day':_0x225c54[_0x302b64(0x112)],'hour':_0x302b64(0x149)+'ic','minute':_0x225c54[_0x302b64(0xa4)],'hour12':!![]};if(_0x38a576)try{_0x2eea15[_0x302b64(0x10c)+_0x302b64(0xf2)]=_0x38a576;const _0x3527f3=new Intl[(_0x302b64(0x13c))+(_0x302b64(0x9b))+'rmat'](_0x225c54['IiFxQ'],_0x2eea15);return _0x3527f3['forma'+'t'](_0x18daa1)[_0x302b64(0xf6)+'ce'](_0x225c54[_0x302b64(0xbd)],',');}catch(_0x4f5d47){logger[_0x302b64(0xfb)](_0x302b64(0xb8)+_0x302b64(0xed)+_0x302b64(0xf4)+_0x302b64(0xc8)+'h\x20tim'+_0x302b64(0x14d)+'\x20'+_0x38a576+(_0x302b64(0x12b)+_0x302b64(0xbc)+'back\x20'+_0x302b64(0x9c)+_0x302b64(0xf1)),_0x4f5d47);}const _0x3d020=_0x18daa1['toLoc'+_0x302b64(0x94)+'ring'](_0x302b64(0xd4),_0x2eea15)['repla'+'ce'](_0x225c54[_0x302b64(0xbd)],',');if(_0x225c54[_0x302b64(0xeb)](new Date()[_0x302b64(0x106)+'mezon'+_0x302b64(0x102)+'et'](),0x0))return _0x3d020+'\x20UTC';return _0x3d020;}catch(_0x538e88){logger[_0x302b64(0xfb)](_0x302b64(0xb8)+'d\x20to\x20'+_0x302b64(0xf4)+_0x302b64(0x127)+_0x302b64(0xf7)+':\x20'+_0x3e99c2,_0x538e88);throw new Error(_0x302b64(0x116)+_0x302b64(0x147)+_0x302b64(0xe6)+_0x302b64(0xc6)+_0x3e99c2);}}export function formatRelativeTime(_0x1ec23b){const _0x1bb2a3=a0_0x4cafa2,_0x4ec9db={'USelB':function(_0x527b4c,_0x106d17){return _0x527b4c===_0x106d17;},'GRgpO':function(_0x48dbbe,_0x4429d5){return _0x48dbbe<_0x4429d5;},'vcLAW':function(_0x411f6d,_0xe0602f){return _0x411f6d<_0xe0602f;},'OxvNc':function(_0x1b9a15,_0x42be3d){return _0x1b9a15/_0x42be3d;},'JruFm':function(_0x1a2a93,_0x28e016){return _0x1a2a93<_0x28e016;},'ISpDG':function(_0x322c87,_0x39c2e9){return _0x322c87*_0x39c2e9;},'gSPAG':function(_0x28927c,_0x4646b){return _0x28927c*_0x4646b;}};if(!_0x1ec23b)return'Unkno'+'wn';const _0xd7f41e=_0x4ec9db[_0x1bb2a3(0xa1)](typeof _0x1ec23b,_0x1bb2a3(0xa2)+'g')?parseInt(_0x1ec23b,0xa):_0x1ec23b,_0x149a1c=Date['now']()-_0xd7f41e;if(_0x4ec9db[_0x1bb2a3(0xf3)](_0x149a1c,0x0))return'in\x20th'+_0x1bb2a3(0x10f)+_0x1bb2a3(0x14c);const _0x341451=Math[_0x1bb2a3(0x8b)](_0x149a1c/0x3e8);if(_0x341451<0x3c)return _0x341451+(_0x1bb2a3(0x8d)+_0x1bb2a3(0x101)+'go');const _0x42f84a=Math[_0x1bb2a3(0x8b)](_0x341451/0x3c);if(_0x4ec9db[_0x1bb2a3(0xaa)](_0x42f84a,0x3c))return _0x42f84a+(_0x1bb2a3(0x90)+_0x1bb2a3(0xce)+'go');const _0x47f03b=Math[_0x1bb2a3(0x8b)](_0x4ec9db[_0x1bb2a3(0xbf)](_0x42f84a,0x3c));if(_0x4ec9db[_0x1bb2a3(0xcb)](_0x47f03b,0x18))return _0x47f03b+(_0x1bb2a3(0x124)+'s\x20ago');const _0x11c1ff=Math['floor'](_0x4ec9db[_0x1bb2a3(0xbf)](_0x47f03b,0x18));if(_0x11c1ff<0x1e)return _0x11c1ff+(_0x1bb2a3(0x96)+_0x1bb2a3(0x9a));const _0x14033b=Math[_0x1bb2a3(0x8b)](_0x149a1c/(_0x4ec9db[_0x1bb2a3(0x99)](0x1e,0x18)*0x3c*0x3c*0x3e8));if(_0x4ec9db[_0x1bb2a3(0xaa)](_0x14033b,0xc))return _0x14033b+(_0x1bb2a3(0xcf)+_0x1bb2a3(0x132)+'o');const _0x33228d=Math[_0x1bb2a3(0x8b)](_0x149a1c/_0x4ec9db[_0x1bb2a3(0xb0)](_0x4ec9db[_0x1bb2a3(0xb0)](_0x4ec9db['gSPAG'](0x16d,0x18)*0x3c,0x3c),0x3e8));return _0x33228d+(_0x1bb2a3(0xb6)+_0x1bb2a3(0xbb));}