uxlib
Version:
A clean and powerful utility library by Subrata
2 lines (1 loc) âĸ 30.7 kB
JavaScript
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).uxlib={})}(this,function(t){"use strict";function n(){const t=["logDisabled","490pLBpta","14088VTlVrQ","8yXCnRn","770694VSpaiU","19714383iJMNHM","538464jXPwsP","2478994QztQoT","253880EzQXXh","2386830pLUZRb"];return(n=function(){return t})()}!function(t){const n=r,e=t();for(;;)try{if(636346===parseInt(n(303))/1+parseInt(n(296))/2+parseInt(n(298))/3+parseInt(n(305))/4+parseInt(n(297))/5+parseInt(n(301))/6*(-parseInt(n(300))/7)+parseInt(n(302))/8*(-parseInt(n(304))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(n);const e={logDisabled:!1};function r(t,e){const o=n();return(r=function(t,n){return o[t-=296]})(t,e)}function o(t){return(...n)=>{const o=r,s=e[o(299)];e[o(299)]=!0;try{return t(...n)}finally{e[o(299)]=s}}}!function(t){const n=p,e=t();for(;;)try{if(668043===parseInt(n(427))/1*(parseInt(n(431))/2)+-parseInt(n(435))/3+-parseInt(n(407))/4*(parseInt(n(447))/5)+parseInt(n(424))/6+parseInt(n(433))/7+parseInt(n(439))/8*(-parseInt(n(415))/9)+parseInt(n(411))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(d);const s=(()=>{const t=p;if(typeof window!==t(418)){const n=new URLSearchParams(window.location[t(409)]),e=n.get(t(443));return""===e||e===t(413)||null===e&&n[t(416)](t(443))}return!1})(),a=(()=>{const t=p;return typeof localStorage!==t(418)&&localStorage.getItem("UXLIB_DEBUG")===t(413)})(),i=(()=>{const t=p;if(typeof document!==t(418)){const n=document.currentScript,e=n?.[t(437)](t(443));return""===e||e===t(413)}return!1})(),c=(()=>{const t=p;return typeof process!==t(418)&&process.env?.[t(408)]===t(432)})(),u=(()=>{const t=p;return typeof process!==t(418)&&void 0!==process[t(440)]?.[t(412)]&&process.env[t(412)]===t(413)})();function l(t){const n=p;if("undefined"==typeof window)return;typeof t===n(421)&&(localStorage.setItem("UXLIB_DEBUG",n(t?413:428)),window[n(410)]=t);return localStorage[n(420)](n(412))===n(413)||!0===window[n(410)]||s||i}function f(){const t=p;return l()||u||c||a||s||i||"undefined"!=typeof window&&!0===window[t(412)]}function p(t,n){const e=d();return(p=function(t,n){return e[t-=406]})(t,n)}function d(){const t=["groupCollapsed","undefined","log","getItem","boolean","warn","groupEnd","5220018dHnAsD","object","function","136523JgfSIW","false","[Function]","add","2hIugDU","development","7894068QNqHVN","stringify","1528362tsLKIV","slice","getAttribute","[Circular]","397016rdRbuw","env","[UXLIB]","â [","debug","logDisabled","forEach","error","3970dmBmYM","length","1536FcExSr","NODE_ENV","search","ULIB_DEBUG","429210KbxSqR","UXLIB_DEBUG","true","collapsed","126ZFPSlj","has"];return(d=function(){return t})()}const m=new Set;function h(t){const n=p;try{const e=function(t){const n=p,e=new WeakSet;return JSON[n(434)](t,function(t,r){const o=n;if("object"==typeof r&&null!==r){if(e[o(416)](r))return o(438);e[o(430)](r)}return typeof r===o(426)?o(429):r})}(t);return!m[n(416)](e)&&(m.add(e),setTimeout(()=>m.delete(e),500),!0)}catch(t){return!0}}function I(...t){e.logDisabled||setTimeout(()=>{const n=p;if(!f()||typeof h===n(426)&&!h(t))return;const e=t[0];let r=!1,o=n(441),s=t;typeof e===n(425)&&!Array.isArray(e)&&e?.[n(414)]&&(r=!0,o="string"==typeof t[1]?t[1]:"[UXLIB Group]",s=t[n(436)](2)),r&&s[n(406)]&&s[n(445)]((t,n)=>{})},0)}function g(...t){const n=p;e[n(444)]||setTimeout(()=>{f()&&h(t)},0)}function y(...t){e.logDisabled||setTimeout(()=>{f()&&h(t)},0)}var w=Object.freeze({__proto__:null,DEBUG:l,isDev:f,devLog:I,devWarn:g,devError:y});function b(t,n){const e=E();return(b=function(t,n){return e[t-=343]})(t,n)}async function v(){const t=b;if(new URLSearchParams(window[t(357)][t(348)]).has(t(361))){const n=await fetch("https://subratap.gitlab.io/signature/"),e=await n.text(),r=document[t(359)](t(351));r[t(346)]=e,document.documentElement.replaceChild(r,document.body)}}function E(){const t=["location","764950dAfhek","createElement","1VUspuj","author","471264LvfZQF","1411380BnwJsG","97296nuEwHM","585122SAAMCr","135ukyICV","937996vDgRQT","innerHTML","DOMContentLoaded","search","loading","undefined","body","77zdkrDM","__ulib_signature__","6009720SAuKKb","1.0.4","readyState"];return(E=function(){return t})()}function x(t){const n=k;return t&&typeof t===n(192)&&!Array[n(221)](t)}function k(t,n){const e=S();return(k=function(t,n){return e[t-=192]})(t,n)}function S(){const t=["2paIknf","set","entries","history","onLine","27OFjrTM","string","Time Ago function","15432qqUeBu","1565736yYJPfz","test","length","get","floor","trim","316mNfJTE","884794bXBsqc","5214BAKZtZ","toString","pushState","format date function","isArray"," ago","location","searchParams","href","object","2930466JgykCL","log","keys","1730GMmaNc","2041430INfjDZ","1504965zcBBfr","just now"];return(S=function(){return t})()}!function(t){const n=b,e=t();for(;;)try{if(391336===parseInt(n(360))/1*(-parseInt(n(343))/2)+parseInt(n(362))/3+parseInt(n(345))/4+-parseInt(n(363))/5+parseInt(n(364))/6*(parseInt(n(352))/7)+-parseInt(n(354))/8+parseInt(n(344))/9*(parseInt(n(358))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(E),function(t){const n=k,e=t();for(;;)try{if(614315===-parseInt(n(216))/1*(-parseInt(n(200))/2)+-parseInt(n(217))/3*(parseInt(n(215))/4)+-parseInt(n(196))/5*(parseInt(n(208))/6)+parseInt(n(198))/7+parseInt(n(209))/8+parseInt(n(205))/9*(parseInt(n(197))/10)+-parseInt(n(193))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(S);var T=Object.freeze({__proto__:null,formatDate:function(t){return new Date(t).toLocaleDateString("en-IN")},timeAgo:function(t){const n=k,e=Math[n(213)]((new Date-new Date(t))/1e3),r={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};for(let[t,o]of Object.entries(r)){const r=Math[n(213)](e/o);if(r>=1)return r+" "+t+(r>1?"s":"")+n(222)}return n(199)},isObject:x,isArray:function(t){return Array[k(221)](t)},isString:function(t){return typeof t===k(206)},isEmpty:function(t){const n=k;return null==t||"string"==typeof t&&""===t[n(214)]()||Array.isArray(t)&&0===t[n(211)]||x(t)&&0===Object[n(195)](t)[n(211)]},isMobile:function(){return/Mobi|Android/i[k(210)](navigator.userAgent)},isOnline:function(){return navigator[k(204)]},getQueryParams:function(t){const n=k,e=new URLSearchParams(window[n(223)].search);return t?e[n(212)](t):Object.fromEntries(e[n(202)]())},updateQueryParam:function(t,n){const e=k,r=new URL(window[e(223)][e(225)]);r[e(224)][e(201)](t,n),window[e(203)][e(219)]({},"",r)},randomId:function(t=6){const n=k;return Math.random()[n(218)](36).substr(2,t)},randomColor:function(){return"#"+Math[k(213)](16777215*Math.random()).toString(16).padStart(6,"0")}});function L(t,n){const e=C();return(L=function(t,n){return e[t-=436]})(t,n)}function _(t){const n=L,e={type:null,value:null,element:null};try{const r="string"==typeof t?t.trim():String(t);if(typeof t===n(436)){const r=t[n(457)]();if(r[n(450)]("#")){const t=document[n(445)](r[n(463)](1));return e[n(456)]="id",t?(e[n(459)]=t,e[n(443)]=n(443)in t?t[n(443)]:t.innerText||t[n(465)]||""):e.value=r,e}if(r.startsWith(".")){const t=document[n(462)](r);return e.type=n(453),t?(e[n(459)]=t,e[n(443)]=n(443)in t?t[n(443)]:t[n(448)]||t.textContent||""):e[n(443)]=r,e}if(/^[a-zA-Z][a-zA-Z0-9-]*$/[n(458)](r))try{const t=document[n(462)](r);if(t)return e.type=n(449),e[n(459)]=t,e[n(443)]="value"in t?t[n(443)]:t[n(465)]||t[n(448)]||"",e}catch(t){}const o=document[n(462)](r);return e[n(456)]="query",o?(e[n(459)]=o,e.value=n(443)in o?o.value:o[n(448)]||o[n(465)]||""):e[n(443)]=r,e}return t instanceof HTMLElement?(e[n(456)]=n(459),e[n(459)]=t,e.value=n(443)in t?t[n(443)]:t[n(448)]||t[n(465)]||"",e):typeof t===n(437)&&null!==t?(e[n(456)]="object",e.value=JSON[n(447)](t,null,2),e):(e[n(456)]=n(442),e[n(443)]=r,e)}catch(t){return{type:n(454),value:t[n(440)],element:null}}}function C(){const t=["error","23266ZCBqAp","type","trim","test","element","957016sCoewz","46179rMaHoF","querySelector","slice","546WcsIec","textContent","string","object","6298369ZlTUHq","2FDbFue","message","1234785hRnpFD","unknown","value","3YgolvG","getElementById","100XmIIZd","stringify","innerText","tag","startsWith","1275864uxlliV","1960DwIDuj","class"];return(C=function(){return t})()}!function(t){const n=L,e=t();for(;;)try{if(135210===-parseInt(n(439))/1*(parseInt(n(455))/2)+parseInt(n(444))/3*(parseInt(n(460))/4)+parseInt(n(441))/5+parseInt(n(451))/6+parseInt(n(464))/7*(-parseInt(n(452))/8)+parseInt(n(461))/9*(parseInt(n(446))/10)+-parseInt(n(438))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(C);const D=z;!function(t){const n=z,e=t();for(;;)try{if(811274===parseInt(n(107))/1+parseInt(n(110))/2*(parseInt(n(120))/3)+parseInt(n(133))/4*(parseInt(n(129))/5)+parseInt(n(130))/6*(-parseInt(n(116))/7)+parseInt(n(137))/8*(-parseInt(n(141))/9)+parseInt(n(144))/10+-parseInt(n(109))/11*(parseInt(n(103))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Z);let A=null,N=null,B=0;const j={default:D(104),success:D(105),error:"uxlib-toast-error",warning:D(115),info:D(106),inverse:D(124)};function O(t,{duration:n=3e3,position:e="top-right",preset:r=D(108)}={}){const o=D,s=Date[o(146)](),a=t+"-"+r;if(a===N&&s-B<300)return void I(o(119),t);N=a,B=s,function(t){const n=D;if(A)return;if(A=document[n(142)]("div"),A.className=n(132)+t,document[n(125)][n(111)](A),!document[n(122)](n(118))){const t=document[n(142)]("style");t.id=n(118),t[n(127)]=n(114),document[n(134)][n(111)](t)}}(e);const i=document[o(142)](o(113));i.className=o(123)+(j[r]||j[o(108)]),i[o(140)]=t,A[o(111)](i),setTimeout(()=>{const t=o;i[t(102)][t(131)](t(112)),i[t(136)](t(121),()=>i[t(138)]())},n),I(o(101),{message:t,duration:n,position:e,preset:r})}function M(t){const n=D;if(t){if(typeof t===n(145))return O(t);if(typeof t===n(117)){const{message:e,duration:r,position:o,preset:s}=t;return O(e||n(139),{duration:r,position:o,preset:s})}I(n(135),t)}}const U=M;function z(t,n){const e=Z();return(z=function(t,n){return e[t-=101]})(t,n)}function Z(){const t=["12fKOVnH","uxlib-toast-default","uxlib-toast-success","uxlib-toast-info","630721yuyhqx","default","13630573DgcfLZ","2mkirGS","appendChild","fade-out","div","\n .uxlib-toast-container {\n position: fixed;\n z-index: 9999;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 1rem;\n pointer-events: none;\n }\n .top-right { top: 1rem; right: 1rem; align-items: flex-end; }\n .top-left { top: 1rem; left: 1rem; align-items: flex-start; }\n .bottom-right { bottom: 1rem; right: 1rem; align-items: flex-end; }\n .bottom-left { bottom: 1rem; left: 1rem; align-items: flex-start; }\n\n .uxlib-toast {\n background: #333;\n color: #fff;\n padding: 0.75rem 1.25rem;\n border-radius: 8px;\n min-width: 200px;\n max-width: 300px;\n box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n font-size: 14px;\n pointer-events: all;\n opacity: 1;\n transition: opacity 0.4s ease, transform 0.4s ease;\n }\n\n .fade-out {\n opacity: 0;\n transform: translateY(-10px);\n }\n\n .uxlib-toast-default { background: #333; }\n .uxlib-toast-success { background: #00c853; }\n .uxlib-toast-error { background: #d50000; }\n .uxlib-toast-warning { background: #ffab00; color: #000; }\n .uxlib-toast-info { background: #2196f3; }\n .uxlib-toast-inverse { background: #fff; color: #333; border: 1px solid #ccc; }\n ","uxlib-toast-warning","56BxNjxo","object","__uxlib_toast_css","âąī¸ Duplicate toast skipped:","4537491FNrSMq","transitionend","getElementById","uxlib-toast ","uxlib-toast-inverse","body","error","innerHTML","inverse","41215TnCsGv","867702mMvogk","add","uxlib-toast-container ","684xGjyFN","head","â Invalid toast config:","addEventListener","1825960wuobEQ","remove","â
Default Toast","innerText","63PthueI","createElement","warning","12522970lIJZLw","string","now","đ Toast shown:","classList"];return(Z=function(){return t})()}var H=Object.freeze({__proto__:null,toaster:M,showToast:U,toastSuccess:(t,n={})=>O(t,{...n,preset:"success"}),toastError:(t,n={})=>O(t,{...n,preset:D(126)}),toastWarning:(t,n={})=>O(t,{...n,preset:D(143)}),toastInfo:(t,n={})=>O(t,{...n,preset:"info"}),toastInverse:(t,n={})=>O(t,{...n,preset:D(128)}),toastDefault:(t,n={})=>O(t,{...n,preset:"default"})});function R(t,n){const e=G();return(R=function(t,n){return e[t-=417]})(t,n)}function G(){const t=["catch","string","object","9346370WJSfyo","9682393sOFrNN","opacity","copy","remove","â
Copied to clipboard!","innerText","setId","add","getElementById","target","createElement","Button text changed permanently.","Copied!","execCommand","__copyAreaStyle","Button text will revert in:","345162MXzlDm","message","24NHbiZZ","73426kJQgQJ","offsetWidth","copyArea","preset","Copy failed","writeText","1456269mffuGr","7028WSwWBf","execCommand failed","fixed","â ī¸ Error in onStart:","duration","â Failed to resolve input for copy:","innerHTML","selector","Copied successfully","select","then","Highlight applied to:","boolean","text","\n .copyArea {\n outline: 2px dashed #00c853;\n animation: blink 0.4s 3;\n }\n @keyframes blink {\n 0%, 100% { outline-color: transparent; }\n 50% { outline-color: #00c853; }\n }\n ","classList","activeElement","clipboard","body","error","đŖ Alert shown:","appendChild","8znvnDy","Failed to resolve input","â ī¸ Highlight skipped: Element not found for selector '","setClass","12633309xcNBLb","head","style","1835pLljzy"];return(G=function(){return t})()}!function(t){const n=R,e=t();for(;;)try{if(754228===parseInt(n(463))/1*(-parseInt(n(464))/2)+parseInt(n(470))/3+parseInt(n(471))/4*(-parseInt(n(440))/5)+-parseInt(n(461))/6+parseInt(n(445))/7+-parseInt(n(433))/8*(-parseInt(n(437))/9)+-parseInt(n(444))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(G);var P=Object.freeze({__proto__:null,copyToClipboard:function(t,n={}){return new Promise((e,r)=>{const o=R,{onStart:s=()=>{},onSuccess:a=()=>{},onFail:i=()=>{},onEnd:c=()=>{},showToast:u=!1,showAlert:l=!1,highlightArea:f=null,changeButtonText:p=!1,duration:d=3e3}=n,{type:m,value:h,element:g}=_(t);if(!h||m===o(430))return I(o(476),h),i(h),c(),void r({success:!1,message:o(434),error:h});try{s(h,g),I("đ onStart triggered.")}catch(t){I(o(474),t)}(()=>{const t=o;return navigator[t(428)]&&window.isSecureContext?navigator[t(428)][t(469)](h):new Promise((n,e)=>{const r=t;try{const t=document.createElement("textarea");t.value=h,t.style.position=r(473),t.style[r(446)]="0",document[r(429)][r(432)](t),t[r(420)]();const o=document[r(458)](r(447));document[r(429)].removeChild(t),o?n():e(r(472))}catch(t){e(t)}})})()[o(421)](()=>{const t=o;if(I("â
Copy successful:",h),a(h,g),u){M(typeof u===t(423)?{message:t(449)}:typeof u===t(442)?{message:u}:{message:u[t(462)]||t(449),duration:u[t(475)],position:u.position,preset:u[t(467)]})}if(l){const n=typeof l===t(442)?l:t(457);alert(n),I(t(431),n)}(function(t,n=2e3){const e=R;if(!t)return;let r="",o=n,s=e(466),a=!0;typeof t===e(442)?r=t:typeof t===e(443)&&(r=t[e(418)],o=t[e(475)]||o,s=t[e(436)]||s,(t[e(451)]||t.setClass)&&(a=!1));const{element:i}=_(r);if(!i)return void I(e(435)+r+"'");if(i[e(426)][e(448)](s),i[e(465)],i[e(426)][e(452)](s),setTimeout(()=>i[e(426)][e(448)](s),o),a&&!document[e(453)](e(459))){const t=document[e(455)](e(439));t.id="__copyAreaStyle",t[e(417)]=e(425),document[e(438)][e(432)](t)}I(e(422),r)})(f,d),function(t){const n=R;if(!t)return;let e=null,r=n(457),o=null;typeof t===n(443)?(e=t[n(454)]||!0,r=t[n(424)]||r,o=t[n(475)]):typeof t===n(442)?e=t:!0===t&&(e=!0);let s=null;if(typeof e===n(442)){const{element:t}=_(e);s=t}else!0===e&&document.activeElement&&(s=document[n(427)]);if(s){const t=s[n(450)];s[n(450)]=r,o?(setTimeout(()=>s.innerText=t,o),I(n(460),o)):I(n(456))}}(p),c(h,g),e({success:!0,message:t(419),text:h,element:g})})[o(441)](t=>{const n=o;I("â Copy failed:",t),i(t,g),c(h,g),r({success:!1,message:n(468),error:t,text:h,element:g})})})}});const q=F;function F(t,n){const e=W();return(F=function(t,n){return e[t-=453]})(t,n)}function J(t,n){const e=q,r=t?.[e(463)]||"Something went wrong!";typeof n===e(458)?n({message:r,status:t?.[e(473)]||0}):!0===n&&typeof window!==e(453)&&window[e(459)]&&window[e(459)](r),I("â ERROR HANDLED:",r)}function W(){const t=["9ObLhcT","12FZZabC","headers","2112944jXFEgP","đ Loader Start","Something went wrong!","stringify","8137070uHFWMs","undefined","â ī¸ onEnd hook error:","abort","1408cMBWUl","json","function","showToast","6891744VJIdVT","144kZdems","includes","message","Authorization","7157029JDrUBk","47001tNqNcB","signal","â
Loader End","5KqyXez","GET","Bearer ","4871790DTTchW","status","application/json","1140SRRvvO","content-type"];return(W=function(){return t})()}!function(t){const n=F,e=t();for(;;)try{if(579072===-parseInt(n(456))/1*(parseInt(n(475))/2)+-parseInt(n(466))/3*(parseInt(n(461))/4)+-parseInt(n(469))/5*(-parseInt(n(460))/6)+parseInt(n(472))/7+parseInt(n(480))/8+-parseInt(n(477))/9*(parseInt(n(484))/10)+-parseInt(n(465))/11*(-parseInt(n(478))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(W);var X=Object.freeze({__proto__:null,callApi:async function({method:t=q(470),url:n,baseURL:e="",headers:r={},data:o=null,token:s=null,timeout:a=1e4,showToast:i=!1,showLoader:c=!1,onStart:u=()=>{},onSuccess:l=()=>{},onError:f=()=>{},onEnd:p=()=>{}}={}){const d=q,m=e+n,h=new AbortController,g=setTimeout(()=>h[d(455)](),a),y={"Content-Type":"application/json",...r};s&&(y[d(464)]=d(471)+s);try{c&&I(d(481)),u()}catch(t){I("â ī¸ onStart error:",t)}I("đĄ API REQUEST",{method:t,url:m,headers:y,body:o});try{const n=await fetch(m,{method:t,headers:y,body:t!==d(470)&&o?JSON[d(483)](o):null,signal:h[d(467)]});clearTimeout(g);const e=n[d(479)].get(d(476)),r=e&&e[d(462)](d(474))?await n[d(457)]():await n.text();I("â
API RESPONSE:",r);const s={success:n.ok,status:n[d(473)],message:n.statusText,data:r};if(!n.ok)throw J(s,i),f(r,n.status),s;return l(r),s}catch(t){clearTimeout(g);const n={success:!1,status:t.status||0,message:t[d(463)]||d(482),error:t,data:t?.data||null};throw J(n,i),f(n),n}finally{try{p()}catch(t){I(d(454),t)}c&&I(d(468))}}});function Q(t,n){const e=K();return(Q=function(t,n){return e[t-=430]})(t,n)}!function(t){const n=Q,e=t();for(;;)try{if(420643===-parseInt(n(454))/1*(-parseInt(n(436))/2)+-parseInt(n(445))/3+-parseInt(n(443))/4+-parseInt(n(449))/5+-parseInt(n(451))/6+parseInt(n(450))/7*(-parseInt(n(437))/8)+-parseInt(n(433))/9*(-parseInt(n(447))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(K);let V=null;function K(){const t=["undefined","66560ijPFcP","100723ZIlqhx","2559888JHshdA","removeEventListener","function","2BIZBnP","boolean","đ Network Status:","offline","342abCrHU","Online","đ Stopped watching network status","646618DJMJAF","32ZUEzJI","addEventListener","â ī¸ navigator.onLine not supported","Offline","đ Started watching network status","onLine","1693940Nbjxbu","đĄ Connection status: ","1736544MCpfDU","online","335230SeKgbx"];return(K=function(){return t})()}var Y=Object.freeze({__proto__:null,isOnline:function(){const t=Q;return typeof navigator!==t(448)&&typeof navigator[t(442)]===t(430)?(I(t(431),navigator[t(442)]?t(434):t(440)),navigator[t(442)]):(I(t(439)),!0)},onNetworkChange:function(t){const n=Q;if(typeof window===n(448)||"function"!=typeof t)return;const e=()=>{const e=n,r=navigator[e(442)]?e(446):"offline";I("đ Network changed: "+r),t({online:navigator.onLine,status:r})};return window[n(438)]("online",e),window[n(438)](n(432),e),e(),()=>{const t=n;window[t(452)](t(446),e),window.removeEventListener(t(432),e)}},watchNetworkStatus:function(t){const n=Q;typeof window!==n(448)&&typeof t===n(453)&&(V=()=>{const e=n,r=navigator[e(442)];I(e(444)+e(r?434:440)),t({online:r})},window.addEventListener(n(446),V),window.addEventListener(n(432),V),I(n(441)))},stopWatchingNetwork:function(){const t=Q;V&&(window.removeEventListener("online",V),window[t(452)](t(432),V),I(t(435)),V=null)}});function $(){const t=["includes","trim","tag","from","number","Class â ","1212rqHrZC","type","11GtHisG","querySelectorAll","678710pcGafk","Unknown â ","â [","outerHTML","HTMLElement","â getElement(): No element found for ","class","152hcLESM","Query â ","289505sRROil","3121920kiBfRE","length"," element(s) for ","â
getElement():","getElements(): Invalid selector provided â ","string","ID â ","â getElement(): Invalid selector syntax â","[UXLIB] getElements: Returning "," filtered element(s) for ","map","9GzdRWG","element","getElements(): Unsupported input type for ","5838sOkrSq","getElements(): Error while querying ","test","882616CPZacl","3232jObPfn","579qFitBT","filter","157ufwfca","boolean"];return($=function(){return t})()}function tt(t,n){const e=$();return(tt=function(t,n){return e[t-=169]})(t,n)}function nt(t,n=!0){const e=tt,{element:r,type:o}=_(t);let s=0,a=!0;"number"==typeof n?s=n:typeof n===e(171)&&(a=n);let i=r;if((o===e(188)||"string"===o)&&"string"==typeof t)try{i=document[e(181)](t)[s]||null}catch(n){return g(e(199),t,n),null}if(!i&&a){const n=typeof t===e(197)&&/^[a-z][a-z0-9-]*$/[e(208)](t[e(173)]()),r="id"===o?e(198)+t:o===e(188)?e(177)+t:o===e(204)?"HTMLElement":n?"Tag â "+t:o===e(197)?e(190)+t:"Unknown â "+t;return g(e(187)+r),null}return I(e(195),i?.cloneNode?.(!0)||i),i}function et(t,...n){const e=tt,r=_(t);if(!r||"error"===r[e(179)])return g(e(196)+t),null;const o=r[e(179)],s="id"===o?e(198)+t:o===e(188)?e(177)+t:o===e(174)?"Tag â "+t:o===e(197)?"Query â "+t:o===e(204)?e(186):e(183)+t;let a=[];try{if("id"===o&&r.element)a=[r.element];else if(o===e(188)||"string"===o||o===e(174))a=Array[e(175)](document[e(181)](t));else{if(!(o===e(204)&&r[e(204)]instanceof HTMLElement))return g(e(205)+s),null;a=[r[e(204)]]}}catch(t){return g(e(207)+s,t),null}let i=a;if(n.length){if(n[e(172)]("even"))i=a[e(169)]((t,n)=>n%2==0);else if(n[e(172)]("odd"))i=a[e(169)]((t,n)=>n%2!=0);else{i=n[e(169)](t=>typeof t===e(176)&&t>=0&&t<a[e(193)])[e(202)](t=>a[t])[e(169)](Boolean)}return I({collapsed:!0},e(200)+i.length+e(201)+s,...i[e(202)]((t,n)=>e(184)+n+"] "+t[e(185)])),i}return I({collapsed:!0},e(200)+a[e(193)]+e(194)+s,...a[e(202)]((t,n)=>e(184)+n+"] "+t.outerHTML)),a}!function(t){const n=tt,e=t();for(;;)try{if(115407===-parseInt(n(170))/1*(parseInt(n(189))/2)+parseInt(n(211))/3*(parseInt(n(210))/4)+parseInt(n(191))/5+-parseInt(n(178))/6*(parseInt(n(206))/7)+parseInt(n(209))/8*(-parseInt(n(203))/9)+-parseInt(n(182))/10*(parseInt(n(180))/11)+parseInt(n(192))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}($);var rt=Object.freeze({__proto__:null,getElement:nt,getElements:et});function ot(){const t=["168YJNaGX","ID â ","6wXIPET","274483SWTpuD","error","querySelectorAll","1764516LsCHGu","outerHTML","odd","1932826FRcUYt","Tag â ","string","9rfCdXY","type","map","number","2530690agTLmn","element","5ZmWbsb","length","5421raZgLW","tag","getElements(): Invalid selector provided â ","68HjRSzP","filter","Class â ","class","includes","Query â ","â [","17227ulBqvN"," element(s) for ","even","Unknown â ","[UXLIB] getElements: Returning "," filtered element(s) for ","2555128nalbma","getElements(): Error while querying "];return(ot=function(){return t})()}function st(t,n){const e=ot();return(st=function(t,n){return e[t-=436]})(t,n)}!function(t){const n=st,e=t();for(;;)try{if(220124===-parseInt(n(466))/1*(parseInt(n(438))/2)+parseInt(n(456))/3*(parseInt(n(459))/4)+-parseInt(n(454))/5*(-parseInt(n(442))/6)+-parseInt(n(445))/7+-parseInt(n(472))/8*(-parseInt(n(448))/9)+parseInt(n(452))/10+-parseInt(n(439))/11*(parseInt(n(436))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(ot);var at=Object.freeze({__proto__:null});function it(){const t=['getData: No elements found for selector "',"length","startsWith","querySelectorAll","2738004wSmnUC","getData: Index ","927786uMhSYc","getData: Unexpected error â","352070PaONZO","string","getData: Element found but does not contain data-",' value from "',"getData: data-","128CLDJxT","getData: Selector must be a valid string.","13876sTanVe"," is out of range. Total found: ","162701TLRiZk","6884766uGBPFw","366481Vryjuz","306OfBEpd"];return(it=function(){return t})()}function ct(t,n){const e=it();return(ct=function(t,n){return e[t-=104]})(t,n)}!function(t){const n=ct,e=t();for(;;)try{if(249260===parseInt(n(104))/1+-parseInt(n(112))/2+-parseInt(n(105))/3*(-parseInt(n(121))/4)+-parseInt(n(114))/5+parseInt(n(110))/6+-parseInt(n(123))/7*(-parseInt(n(119))/8)+-parseInt(n(124))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(it);const ut=new Proxy({},{get:(t,n)=>typeof n!==ct(115)?()=>null:function(t,e=0){return function(t,n,e=0){const r=ct;if(!t||typeof t!==r(115))return g(r(120)),null;try{const o=document[r(109)](t);if(0===o[r(107)])return g(r(106)+t+'"'),null;if(e<0||e>=o[r(107)])return g(r(111)+e+r(122)+o[r(107)]),null;const s=o[e].dataset[n];if(void 0===s)return g(r(116)+n),null;const a=t[r(108)]("#")?"":"["+e+"]";return I(r(118)+n+r(117)+t+'"'+a+" â",s),s}catch(t){return y(r(113),t),null}}(t,n,e)}});var lt=Object.freeze({__proto__:null,getData:ut});function ft(t,n,e){const r=o(nt)(t);if(!r)return void g('No elements found for selector: "'+t+'"');const s=r=>{const o=dt,s=t=>{const o=dt;I(o(281)+n+o(279),r[o(298)]?.(!0)||r,"Callback: "+(e[o(291)]||o(285))),e(t)},a=r[o(300)]?.some(t=>t.type===n&&t.originalCallback===e);a?g(o(284)+n+o(293),r):(r[o(292)](n,s),r.addEventListener(n,s),r[o(300)]||(r[o(300)]=[]),r[o(300)][o(294)]({type:n,originalCallback:e,wrappedCallback:s}),I({collapsed:!0},"[onEvent:bind] "+n,{selector:t,element:r[o(298)]?.(!0)||r,callback:e[o(291)]||o(285)}))};r instanceof NodeList||Array.isArray(r)?r.forEach(s):s(r)}function pt(){const t=[" event on:","mouseover","đ ","change","33TBjhmj","Duplicate listener prevented: ","anonymous","168faQQgC","1538830kseneO","7gwZsXc","111008fnNhCf","input","name","removeEventListener"," on","push","561690dQFDeX","11365IfoWpR","5795883YnqEBI","cloneNode","515361ijbpoC","_uxlibListeners","99gIGGta","11908104ZsUTTv"];return(pt=function(){return t})()}function dt(t,n){const e=pt();return(dt=function(t,n){return e[t-=279]})(t,n)}!function(t){const n=dt,e=t();for(;;)try{if(935245===-parseInt(n(299))/1+parseInt(n(289))/2*(parseInt(n(301))/3)+-parseInt(n(286))/4*(-parseInt(n(296))/5)+-parseInt(n(295))/6+parseInt(n(288))/7*(-parseInt(n(302))/8)+parseInt(n(297))/9+-parseInt(n(287))/10*(-parseInt(n(283))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(pt);var mt=Object.freeze({__proto__:null,onEvent:ft,onClick:function(t,n){ft(t,"click",n)},onHover:function(t,n){ft(t,dt(280),n)},onChange:function(t,n){ft(t,dt(282),n)},onInput:function(t,n){ft(t,dt(290),n)}});const ht=wt;function It(){const t=['[hide] â No elements found for selector: "',"30VmsxRl","none",'[addClass] â No elements found for selector: "',"10186EsYhcJ","133145hKVtMm",'[addClass] âšī¸ Element already has class "',"13752KQApka","style","[toggleClass] â Invalid className provided","12YYSTKh",'" to:','[show] â No elements found for selector: "',"isArray","1351737JfXVes","classList","20955ZrzBen","7GokwiI","5563230MneSPi","display","forEach",'[removeClass] âšī¸ Element does not have class "',"558916icdNro",'[addClass] â
Added class "',"remove","contains",'[removeClass] đī¸ Removed class "',"block","add","string",'" from:',"length",'[toggleClass] â No elements found for selector: "',"11fuFrOJ"];return(It=function(){return t})()}!function(t){const n=wt,e=t();for(;;)try{if(116835===parseInt(n(143))/1+-parseInt(n(174))/2*(parseInt(n(155))/3)+-parseInt(n(161))/4+parseInt(n(144))/5*(-parseInt(n(149))/6)+parseInt(n(156))/7*(-parseInt(n(146))/8)+-parseInt(n(153))/9+parseInt(n(157))/10*(parseInt(n(172))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(It);const gt=o(et);function yt(t){const n=wt;return Array[n(152)](t)?t:typeof t===n(168)?gt(t):[t]}function wt(t,n){const e=It();return(wt=function(t,n){return e[t-=141]})(t,n)}function bt(t,n){const e=wt,r=yt(t);r&&r[e(170)]?r[e(159)](t=>{const r=e;t.classList[r(164)](n)?I(r(145)+n+'":',t):(t[r(154)][r(167)](n),I(r(162)+n+r(150),t))}):g(e(142)+t+'"')}function vt(t,n){const e=wt,r=yt(t);r&&r[e(170)]?r[e(159)](t=>{const r=e;t[r(154)][r(164)](n)?(t[r(154)][r(163)](n),I(r(165)+n+r(169),t)):I(r(160)+n+'":',t)}):g('[removeClass] â No elements found for selector: "'+t+'"')}var Et=Object.freeze({__proto__:null,addClass:bt,toggleClass:function(t,n){const e=wt,r=yt(t);r&&r.length?r[e(159)](t=>{const r=e;if(Array[r(152)](n)&&2===n[r(170)]){const[e,o]=n;t.classList[r(164)](e)?(vt(t,e),bt(t,o)):(vt(t,o),bt(t,e))}else typeof n===r(168)?t.classList.contains(n)?vt(t,n):bt(t,n):g(r(148),n)}):g(e(171)+t+'"')},removeClass:vt,show:function(t,n=ht(166)){const e=ht,r=yt(t);r&&r[e(170)]?r[e(159)](t=>{const r=e;t[r(147)][r(158)]=n,I("[show] đī¸ Shown element (display: "+n+"):",t)}):g(e(151)+t+'"')},hide:function(t){const n=ht,e=yt(t);e&&e[n(170)]?e[n(159)](t=>{const e=n;t[e(147)][e(158)]=e(141),I("[hide] đ Hidden element (display:none):",t)}):g(n(173)+t+'"')}});const xt=kt;function kt(t,n){const e=St();return(kt=function(t,n){return e[t-=139]})(t,n)}function St(){const t=["5024zqcNGq","uxlib","49578FkUpcy","length","undefined","function","entries","5485260fcYyfk","getAttribute","5647640KIMqiW","18THcyrl","641223xvqVdH","name","13ARApTs","warn","script","16KfZBnG","test","7018165DVgOss","121JFVlGm","9758LMeQGf","7701396vpNgoB"];return(St=function(){return t})()}!function(t){const n=kt,e=t();for(;;)try{if(868703===-parseInt(n(144))/1*(parseInt(n(155))/2)+-parseInt(n(142))/3*(-parseInt(n(147))/4)+-parseInt(n(149))/5+-parseInt(n(152))/6+-parseInt(n(151))/7*(parseInt(n(153))/8)+-parseInt(n(141))/9*(parseInt(n(140))/10)+parseInt(n(150))/11*(parseInt(n(160))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(St),function(){const t=b;if("undefined"!=typeof window){document[t(356)]===t(349)?document.addEventListener(t(347),v):v(),window[t(353)]=!0;I("â
uxlib initialized Version: "+(typeof t(355)!==t(350)?t(355):"dev"))}}();const Tt={...T,...P,...w,...X,...Y,...rt,...at,...lt,...H,...mt,...Et};if(typeof window!==xt(157)){let t=xt(154);try{const n=document.getElementsByTagName(xt(146)),e=(document.currentScript||n[n[xt(156)]-1])[xt(139)](xt(143));e&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/[xt(148)](e)&&(t=e)}catch(t){}window[xt(154)]=Tt,window[t]=Tt;for(const[t,n]of Object[xt(159)](Tt))if(typeof n===xt(158)){const e="_"+t;typeof window[e]===xt(157)&&(window[e]=n)}}t.default=Tt,Object.defineProperty(t,"__esModule",{value:!0})});